The main module for the visual SVG this.
- Copyright:
- 2010 Alexis Deveria 2010 Pavol Rusnak 2010 Jeff Schiller 2010 Narendra Sisodiya 2014 Brett Zamir 2020 OptimistikSAS
- License:
- MIT
- Source:
Classes
Interfaces
Members
(inner) defaultExtensions :Array.<string>
Type:
- Array.<string>
- Source:
Methods
(static) clickSelect() → {void}
Unless the select toolbar button is disabled, sets the button and sets the select mode and cursor styles.
- Source:
Returns:
- Type
- void
(static) loadContentAndPrefs() → {void}
Where permitted, sets canvas and/or configObj.defaultPrefs
based on previous
storage. This will override URL settings (for security reasons) but
not svgedit-config-iife.js
configuration (unless initial user
overriding is explicitly permitted there via allowInitialUserOverride
).
- Source:
- To Do:
-
- Split `allowInitialUserOverride` into `allowOverrideByURL` and `allowOverrideByUserStorage` so `svgedit-config-iife.js` can disallow some individual items for URL setting but allow for user storage AND/OR change URL setting so that it always uses a different namespace, so it won't affect pre-existing user storage (but then if users saves that, it will then be subject to tampering
Returns:
- Type
- void
(static) setConfig(opts, cfgCfgopt) → {void}
Allows setting of preferences or configuration (including extensions).
Parameters:
Name | Type | Attributes | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
module:SVGEditor.Config | module:SVGEditor.Prefs | The preferences or configuration (including extensions). See the tutorial on Config Options for info on config and preferences. |
||||||||||||||||
cfgCfg |
PlainObject |
<optional> |
Describes configuration which applies to the particular batch of supplied options Properties
|
- Source:
Returns:
- Type
- void
(static) setIcon(elem, iconId) → {void}
Parameters:
Name | Type | Description |
---|---|---|
elem |
string | Element | external:jQuery | |
iconId |
string | external:jQuery |
- Source:
Returns:
- Type
- void
(inner) copySelected() → {void}
- Source:
Returns:
- Type
- void
Events
event:svgEditorReadyEvent
Triggered on a containing document
(of window.opener
or window.parent
) when the editor is loaded.
Type:
- Event
Properties:
Name | Type | Description |
---|---|---|
bubbles |
true | |
cancelable |
true |
- Source: