The settings interface type, defaults to AcApSettings
Readonly
eventsEvents fired when settings are modified
Fired when any setting is modified
Sets the font mapping configuration.
The new font mapping
Gets whether debug mode is enabled.
True if debug mode is enabled
Sets whether debug mode is enabled.
True to enable debug mode
Gets whether the command line is visible.
True if command line should be shown
Sets whether the command line is visible.
True to show the command line
Gets whether coordinate display is visible.
True if coordinates should be displayed
Sets whether coordinate display is visible.
True to show coordinates
Gets whether performance statistics are displayed.
True if stats should be shown
Sets whether performance statistics are displayed.
True to show stats
Gets whether the toolbar is visible.
True if toolbar should be shown
Sets whether the toolbar is visible.
True to show the toolbar
Gets the current settings object.
This method combines localStorage values with default values.
The current settings object
Static
instanceGets the singleton instance of the settings manager.
Creates a new instance if one doesn't exist yet.
The singleton settings manager instance
Gets a setting value.
Returns the stored value or the default value if not set.
The setting key to retrieve
The setting value
Sets a single font mapping entry.
The original font name
The replacement font name
Toggles a boolean setting value.
Only works with boolean settings. The caller should ensure the setting is boolean.
The boolean setting key to toggle
Singleton settings manager for the CAD application.
This class manages application-wide settings with:
The settings are automatically saved to localStorage and restored on application start.
Example