Members
(constant) dataStorage
A storage solution aimed at replacing jQuerys data function. Implementation Note: Elements are stored in a (WeakMap)[https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap]. This makes sure the data is garbage collected when the node is removed.
- Source:
(constant) name
This is a very basic SVG-Edit extension. It adds a "Hello World" button in the left ("mode") panel. Clicking on the button, and then the canvas will show the user the point on the canvas that was clicked on.
Methods
attributeChangedCallback(name, oldValue, newValue) → {void}
Parameters:
Name | Type | Description |
---|---|---|
name |
string | |
oldValue |
string | |
newValue |
string |
- Source:
Returns:
- Type
- void
attributeChangedCallback(name, oldValue, newValue) → {void}
Parameters:
Name | Type | Description |
---|---|---|
name |
string | |
oldValue |
string | |
newValue |
string |
Returns:
- Type
- void
attributeChangedCallback(name, oldValue, newValue) → {void}
Parameters:
Name | Type | Description |
---|---|---|
name |
string | |
oldValue |
string | |
newValue |
string |
- Source:
Returns:
- Type
- void
attributeChangedCallback(name, oldValue, newValue) → {void}
Parameters:
Name | Type | Description |
---|---|---|
name |
string | |
oldValue |
string | |
newValue |
string |
Returns:
- Type
- void
attributeChangedCallback(name, oldValue, newValue) → {void}
Parameters:
Name | Type | Description |
---|---|---|
name |
string | |
oldValue |
string | |
newValue |
string |
Returns:
- Type
- void
attributeChangedCallback(name, oldValue, newValue) → {void}
Parameters:
Name | Type | Description |
---|---|---|
name |
string | |
oldValue |
string | |
newValue |
string |
- Source:
Returns:
- Type
- void
attributeChangedCallback(name, oldValue, newValue) → {void}
Parameters:
Name | Type | Description |
---|---|---|
name |
string | |
oldValue |
string | |
newValue |
string |
- Source:
Returns:
- Type
- void
attributeChangedCallback(name, oldValue, newValue) → {void}
Parameters:
Name | Type | Description |
---|---|---|
name |
string | |
oldValue |
string | |
newValue |
string |
- Source:
Returns:
- Type
- void
attributeChangedCallback(name, oldValue, newValue) → {void}
Parameters:
Name | Type | Description |
---|---|---|
name |
string | |
oldValue |
string | |
newValue |
string |
- Source:
Returns:
- Type
- void
attributeChangedCallback(name, oldValue, newValue) → {void}
Parameters:
Name | Type | Description |
---|---|---|
name |
string | |
oldValue |
string | |
newValue |
string |
- Source:
Returns:
- Type
- void
attributeChangedCallback(name, oldValue, newValue) → {void}
Parameters:
Name | Type | Description |
---|---|---|
name |
string | |
oldValue |
string | |
newValue |
string |
- Source:
Returns:
- Type
- void
attributeChangedCallback(name, oldValue, newValue) → {void}
Parameters:
Name | Type | Description |
---|---|---|
name |
string | |
oldValue |
string | |
newValue |
string |
- Source:
Returns:
- Type
- void
attributeChangedCallback(name, oldValue, newValue) → {void}
Parameters:
Name | Type | Description |
---|---|---|
name |
string | |
oldValue |
string | |
newValue |
string |
- Source:
Returns:
- Type
- void
attributeChangedCallback(name, oldValue, newValue) → {void}
Parameters:
Name | Type | Description |
---|---|---|
name |
string | |
oldValue |
string | |
newValue |
string |
- Source:
Returns:
- Type
- void
attributeChangedCallback(name, oldValue, newValue) → {void}
Parameters:
Name | Type | Description |
---|---|---|
name |
string | |
oldValue |
string | |
newValue |
string |
- Source:
Returns:
- Type
- void
attributeChangedCallback(name, oldValue, newValue) → {void}
Parameters:
Name | Type | Description |
---|---|---|
name |
string | |
oldValue |
string | |
newValue |
string |
- Source:
Returns:
- Type
- void
attributeChangedCallback(name, oldValue, newValue) → {void}
Parameters:
Name | Type | Description |
---|---|---|
name |
string | |
oldValue |
string | |
newValue |
string |
Returns:
- Type
- void
attributeChangedCallback(name, oldValue, newValue) → {void}
Parameters:
Name | Type | Description |
---|---|---|
name |
string | |
oldValue |
string | |
newValue |
string |
Returns:
- Type
- void
attributeChangedCallback(name, oldValue, newValue) → {void}
Parameters:
Name | Type | Description |
---|---|---|
name |
string | |
oldValue |
string | |
newValue |
string |
- Source:
Returns:
- Type
- void
attributeChangedCallback(name, oldValue, newValue) → {void}
Parameters:
Name | Type | Description |
---|---|---|
name |
string | |
oldValue |
string | |
newValue |
string |
Returns:
- Type
- void
attributeChangedCallback(name, oldValue, newValue) → {void}
Parameters:
Name | Type | Description |
---|---|---|
name |
string | |
oldValue |
string | |
newValue |
string |
Returns:
- Type
- void
attributeChangedCallback(name, oldValue, newValue) → {void}
Parameters:
Name | Type | Description |
---|---|---|
name |
string | |
oldValue |
string | |
newValue |
string |
- Source:
Returns:
- Type
- void
attributeChangedCallback(name, oldValue, newValue) → {void}
Parameters:
Name | Type | Description |
---|---|---|
name |
string | |
oldValue |
string | |
newValue |
string |
- Source:
Returns:
- Type
- void
attributeChangedCallback(name, oldValue, newValue) → {void}
Parameters:
Name | Type | Description |
---|---|---|
name |
string | |
oldValue |
string | |
newValue |
string |
Returns:
- Type
- void
connectedCallback() → {void}
- Source:
Returns:
- Type
- void
connectedCallback() → {void}
Returns:
- Type
- void
connectedCallback() → {void}
Returns:
- Type
- void
connectedCallback() → {void}
Returns:
- Type
- void
connectedCallback() → {void}
- Source:
Returns:
- Type
- void
connectedCallback() → {void}
- Source:
Returns:
- Type
- void
connectedCallback() → {void}
- Source:
Returns:
- Type
- void
connectedCallback() → {void}
- Source:
Returns:
- Type
- void
connectedCallback() → {void}
- Source:
Returns:
- Type
- void
connectedCallback() → {void}
- Source:
Returns:
- Type
- void
connectedCallback() → {void}
- Source:
Returns:
- Type
- void
connectedCallback() → {void}
- Source:
Returns:
- Type
- void
connectedCallback() → {void}
Returns:
- Type
- void
connectedCallback() → {void}
Returns:
- Type
- void
connectedCallback() → {void}
- Source:
Returns:
- Type
- void
connectedCallback() → {void}
Returns:
- Type
- void
connectedCallback() → {void}
Returns:
- Type
- void
connectedCallback() → {void}
Returns:
- Type
- void
constructor()
- Source:
constructor()
constructor()
constructor()
constructor()
- Source:
constructor()
- Source:
constructor()
- Source:
constructor()
- Source:
constructor()
- Source:
constructor()
- Source:
constructor()
- Source:
constructor()
- Source:
constructor()
- Source:
constructor()
- Source:
constructor()
constructor()
constructor()
- Source:
constructor()
constructor()
- Source:
constructor()
- Source:
constructor()
expireCookie(cookie) → {void}
Set the cookie to expire.
Parameters:
Name | Type | Description |
---|---|---|
cookie |
string |
Returns:
- Type
- void
findPos(obj) → {any}
Parameters:
Name | Type | Description |
---|---|---|
obj |
any |
Returns:
- Type
- any
formatValue Format the numeric value as a string. This is used after incrementing/decrementing the value to reformat the value as a string.(value, precision) → {number}
Parameters:
Name | Type | Description |
---|---|---|
value |
number | |
precision |
number |
Returns:
- Type
- number
get() → {any}
- Source:
Returns:
- Type
- any
get() → {any}
- Source:
Returns:
- Type
- any
get() → {any}
- Source:
Returns:
- Type
- any
get() → {any}
- Source:
Returns:
- Type
- any
get() → {any}
- Source:
Returns:
- Type
- any
get() → {any}
Returns:
- Type
- any
get() → {any}
Returns:
- Type
- any
get() → {any}
Returns:
- Type
- any
get() → {PlainObject}
- Source:
Returns:
- Type
- PlainObject
get() → {PlainObject}
- Source:
Returns:
- Type
- PlainObject
get() → {any}
Returns:
- Type
- any
get() → {any}
Returns:
- Type
- any
get() → {any}
Returns:
- Type
- any
get() → {any}
Returns:
- Type
- any
get() → {any}
Returns:
- Type
- any
get() → {any}
Returns:
- Type
- any
get() → {any}
Returns:
- Type
- any
get() → {any}
- Source:
Returns:
- Type
- any
get() → {any}
- Source:
Returns:
- Type
- any
get() → {any}
- Source:
Returns:
- Type
- any
get() → {any}
- Source:
Returns:
- Type
- any
get() → {any}
- Source:
Returns:
- Type
- any
get() → {any}
- Source:
Returns:
- Type
- any
get() → {any}
- Source:
Returns:
- Type
- any
get() → {any}
- Source:
Returns:
- Type
- any
get() → {any}
- Source:
Returns:
- Type
- any
get() → {any}
- Source:
Returns:
- Type
- any
get() → {any}
- Source:
Returns:
- Type
- any
get() → {any}
- Source:
Returns:
- Type
- any
get() → {any}
- Source:
Returns:
- Type
- any
get() → {any}
- Source:
Returns:
- Type
- any
get() → {any}
- Source:
Returns:
- Type
- any
get() → {any}
- Source:
Returns:
- Type
- any
get() → {any}
- Source:
Returns:
- Type
- any
get() → {PlainObject}
Returns:
- Type
- PlainObject
get() → {PlainObject}
Returns:
- Type
- PlainObject
get() → {any}
- Source:
Returns:
- Type
- any
get() → {any}
- Source:
Returns:
- Type
- any
get() → {any}
- Source:
Returns:
- Type
- any
get() → {any}
- Source:
Returns:
- Type
- any
get() → {any}
- Source:
Returns:
- Type
- any
get() → {any}
- Source:
Returns:
- Type
- any
get() → {any}
- Source:
Returns:
- Type
- any
get() → {any}
- Source:
Returns:
- Type
- any
get() → {any}
- Source:
Returns:
- Type
- any
get() → {any}
- Source:
Returns:
- Type
- any
get() → {any}
- Source:
Returns:
- Type
- any
get() → {any}
- Source:
Returns:
- Type
- any
get() → {any}
- Source:
Returns:
- Type
- any
get() → {PlainObject}
- Source:
Returns:
- Type
- PlainObject
get() → {PlainObject}
- Source:
Returns:
- Type
- PlainObject
get() → {PlainObject}
Returns:
- Type
- PlainObject
get() → {any}
- Source:
Returns:
- Type
- any
get() → {any}
- Source:
Returns:
- Type
- any
get() → {any}
- Source:
Returns:
- Type
- any
get() → {any}
Returns:
- Type
- any
get() → {any}
Returns:
- Type
- any
get() → {any}
Returns:
- Type
- any
get() → {any}
Returns:
- Type
- any
get() → {any}
Returns:
- Type
- any
get() → {any}
Returns:
- Type
- any
get() → {any}
Returns:
- Type
- any
get() → {any}
Returns:
- Type
- any
get() → {any}
Returns:
- Type
- any
get() → {any}
Returns:
- Type
- any
get() → {any}
Returns:
- Type
- any
get() → {any}
- Source:
Returns:
- Type
- any
get() → {any}
Returns:
- Type
- any
get() → {any}
Returns:
- Type
- any
get() → {any}
Returns:
- Type
- any
get() → {any}
Returns:
- Type
- any
get() → {any}
Returns:
- Type
- any
get() → {any}
Returns:
- Type
- any
get() → {any}
Returns:
- Type
- any
get() → {any}
- Source:
Returns:
- Type
- any
get() → {any}
- Source:
Returns:
- Type
- any
get() → {any}
Returns:
- Type
- any
get() → {any}
Returns:
- Type
- any
get() → {any}
Returns:
- Type
- any
get() → {any}
Returns:
- Type
- any
get() → {any}
Returns:
- Type
- any
getClosest(elem, selector) → {Boolean|Element}
Get the closest matching element up the DOM tree.
Parameters:
Name | Type | Description |
---|---|---|
elem |
Element | Starting element |
selector |
String | Selector to match against (class, ID, data attribute, or tag) |
Returns:
Returns null if not match found
- Type
- Boolean | Element
getParents(elem, selector) → {Array}
Get all DOM element up the tree that contain a class, ID, or data attribute
Parameters:
Name | Type | Description |
---|---|---|
elem |
Node | The base element |
selector |
String | The class, id, data attribute, or tag to look for |
Returns:
Null if no match
- Type
- Array
init(name) → {void}
Parameters:
Name | Type | Description |
---|---|---|
name |
any |
Returns:
- Type
- void
init(name) → {void}
Parameters:
Name | Type | Description |
---|---|---|
name |
any |
- Source:
Returns:
- Type
- void
init(name) → {void}
Parameters:
Name | Type | Description |
---|---|---|
name |
any |
- Source:
Returns:
- Type
- void
init(name) → {void}
Parameters:
Name | Type | Description |
---|---|---|
name |
any |
Returns:
- Type
- void
init(name) → {void}
Parameters:
Name | Type | Description |
---|---|---|
name |
any |
Returns:
- Type
- void
init(name) → {void}
Parameters:
Name | Type | Description |
---|---|---|
name |
any |
- Source:
Returns:
- Type
- void
init(name) → {void}
Parameters:
Name | Type | Description |
---|---|---|
name |
any |
Returns:
- Type
- void
init(name) → {void}
Parameters:
Name | Type | Description |
---|---|---|
name |
any |
- Source:
Returns:
- Type
- void
init(name) → {void}
Parameters:
Name | Type | Description |
---|---|---|
name |
any |
Returns:
- Type
- void
inputsize() → {string}
- Source:
Returns:
src
- Type
- string
inputsize() → {string}
- Source:
Returns:
src
- Type
- string
isNullish(val) → {boolean}
Whether a value is null
or undefined
.
Parameters:
Name | Type | Description |
---|---|---|
val |
any |
Returns:
- Type
- boolean
load load Config() → {void}
- Source:
Returns:
- Type
- void
loadFromURL Load config/data from URL if given() → {void}
- Source:
Returns:
- Type
- void
observedAttributes() → {any}
- Source:
Returns:
observed
- Type
- any
observedAttributes() → {any}
Returns:
observed
- Type
- any
observedAttributes() → {any}
- Source:
Returns:
observed
- Type
- any
observedAttributes() → {any}
Returns:
observed
- Type
- any
observedAttributes() → {any}
Returns:
observed
- Type
- any
observedAttributes() → {any}
- Source:
Returns:
observed
- Type
- any
observedAttributes() → {any}
- Source:
Returns:
observed
- Type
- any
observedAttributes() → {any}
- Source:
Returns:
observed
- Type
- any
observedAttributes() → {any}
- Source:
Returns:
observed
- Type
- any
observedAttributes() → {any}
- Source:
Returns:
observed
- Type
- any
observedAttributes() → {any}
- Source:
Returns:
observed
- Type
- any
observedAttributes() → {any}
- Source:
Returns:
observed
- Type
- any
observedAttributes() → {any}
- Source:
Returns:
observed
- Type
- any
observedAttributes() → {any}
- Source:
Returns:
observed
- Type
- any
observedAttributes() → {any}
- Source:
Returns:
observed
- Type
- any
observedAttributes() → {any}
- Source:
Returns:
observed
- Type
- any
observedAttributes() → {any}
Returns:
observed
- Type
- any
observedAttributes() → {any}
Returns:
observed
- Type
- any
observedAttributes() → {any}
- Source:
Returns:
observed
- Type
- any
observedAttributes() → {any}
Returns:
observed
- Type
- any
observedAttributes() → {any}
Returns:
observed
- Type
- any
observedAttributes() → {any}
- Source:
Returns:
observed
- Type
- any
observedAttributes() → {any}
- Source:
Returns:
observed
- Type
- any
observedAttributes() → {any}
Returns:
observed
- Type
- any
parseValue(value, precision) → {int}
Parameters:
Name | Type | Description |
---|---|---|
value |
number | |
precision |
number |
Returns:
- Type
- int
pref(key, valopt, mayBeEmptyopt) → {string|void}
Store and retrieve preferences.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
key |
string | The preference name to be retrieved or set |
|
val |
string |
<optional> |
The value. If the value supplied is missing or falsey, no change to the preference will
be made unless |
mayBeEmpty |
boolean |
<optional> |
If value may be falsey. |
- Source:
- To Do:
-
- Review whether any remaining existing direct references to getting `curPrefs` can be changed to use `svgEditor.configObj.pref()` getting to ensure `defaultPrefs` fallback (also for sake of `allowInitialUserOverride`); specifically, `bkgd_color` could be changed so that the pref dialog has a button to auto-calculate background, but otherwise uses `svgEditor.configObj.pref()` to be able to get default prefs or overridable settings
Returns:
If val is missing or falsey and mayBeEmpty
is not set, the
value of the previously stored preference will be returned.
- Type
- string | void
readySignal() → {void}
- Source:
Fires:
- module:svgcanvas.SvgCanvas#event:svgEditorReady
Returns:
- Type
- void
regexEscape(str) → {string}
Escapes special characters in a regular expression.
Parameters:
Name | Type | Description |
---|---|---|
str |
string |
- Source:
Returns:
- Type
- string
removeStoragePrefCookie() → {void}
Expire the storage cookie.
Returns:
- Type
- void
replaceStoragePrompt(val) → {void}
Replace storagePrompt
parameter within URL.
Parameters:
Name | Type | Description |
---|---|---|
val |
string |
- Source:
- To Do:
-
- Replace the string manipulation with `searchParams.set`
Returns:
- Type
- void
set() → {void}
- Source:
Returns:
- Type
- void
set() → {void}
- Source:
Returns:
- Type
- void
set() → {void}
- Source:
Returns:
- Type
- void
set() → {void}
- Source:
Returns:
- Type
- void
set() → {void}
- Source:
Returns:
- Type
- void
set() → {void}
Returns:
- Type
- void
set() → {void}
Returns:
- Type
- void
set() → {void}
Returns:
- Type
- void
set() → {void}
Returns:
- Type
- void
set() → {void}
Returns:
- Type
- void
set() → {void}
Returns:
- Type
- void
set() → {void}
Returns:
- Type
- void
set() → {void}
Returns:
- Type
- void
set() → {void}
Returns:
- Type
- void
set() → {void}
Returns:
- Type
- void
set() → {void}
- Source:
Returns:
- Type
- void
set() → {void}
- Source:
Returns:
- Type
- void
set() → {void}
- Source:
Returns:
- Type
- void
set() → {void}
- Source:
Returns:
- Type
- void
set() → {void}
- Source:
Returns:
- Type
- void
set() → {void}
- Source:
Returns:
- Type
- void
set() → {void}
- Source:
Returns:
- Type
- void
set() → {void}
- Source:
Returns:
- Type
- void
set() → {void}
- Source:
Returns:
- Type
- void
set() → {void}
- Source:
Returns:
- Type
- void
set() → {void}
- Source:
Returns:
- Type
- void
set() → {void}
- Source:
Returns:
- Type
- void
set() → {void}
- Source:
Returns:
- Type
- void
set() → {void}
- Source:
Returns:
- Type
- void
set() → {void}
- Source:
Returns:
- Type
- void
set() → {void}
- Source:
Returns:
- Type
- void
set() → {void}
- Source:
Returns:
- Type
- void
set() → {void}
- Source:
Returns:
- Type
- void
set() → {void}
- Source:
Returns:
- Type
- void
set() → {void}
- Source:
Returns:
- Type
- void
set() → {void}
- Source:
Returns:
- Type
- void
set() → {void}
- Source:
Returns:
- Type
- void
set() → {void}
- Source:
Returns:
- Type
- void
set() → {void}
- Source:
Returns:
- Type
- void
set() → {void}
- Source:
Returns:
- Type
- void
set() → {void}
- Source:
Returns:
- Type
- void
set() → {void}
- Source:
Returns:
- Type
- void
set() → {void}
- Source:
Returns:
- Type
- void
set() → {void}
- Source:
Returns:
- Type
- void
set() → {void}
- Source:
Returns:
- Type
- void
set() → {void}
- Source:
Returns:
- Type
- void
set() → {void}
- Source:
Returns:
- Type
- void
set() → {void}
- Source:
Returns:
- Type
- void
set() → {void}
Returns:
- Type
- void
set() → {void}
Returns:
- Type
- void
set() → {void}
Returns:
- Type
- void
set() → {void}
Returns:
- Type
- void
set() → {void}
Returns:
- Type
- void
set() → {void}
Returns:
- Type
- void
set() → {void}
Returns:
- Type
- void
set() → {void}
Returns:
- Type
- void
set() → {void}
Returns:
- Type
- void
set() → {void}
Returns:
- Type
- void
set() → {void}
Returns:
- Type
- void
set() → {void}
- Source:
Returns:
- Type
- void
set() → {void}
Returns:
- Type
- void
set() → {void}
Returns:
- Type
- void
set() → {void}
Returns:
- Type
- void
set() → {void}
Returns:
- Type
- void
set() → {void}
Returns:
- Type
- void
set() → {void}
Returns:
- Type
- void
set() → {void}
Returns:
- Type
- void
set() → {void}
Returns:
- Type
- void
set() → {void}
- Source:
Returns:
- Type
- void
set() → {void}
- Source:
Returns:
- Type
- void
set() → {void}
Returns:
- Type
- void
set() → {void}
Returns:
- Type
- void
set() → {void}
Returns:
- Type
- void
set() → {void}
Returns:
- Type
- void
set() → {void}
Returns:
- Type
- void
setupCurConfig() → {void}
Sets up current config based on defaults.
- Source:
Returns:
- Type
- void
setupCurPrefs() → {void}
- Source:
Returns:
- Type
- void
src() → {string}
- Source:
Returns:
src
- Type
- string
src() → {void}
- Source:
Returns:
- Type
- void
src() → {void}
- Source:
Returns:
- Type
- void
src() → {string}
- Source:
Returns:
src
- Type
- string
src() → {void}
- Source:
Returns:
- Type
- void
src() → {void}
- Source:
Returns:
- Type
- void
stateEffects(state, changed) → {any}
Parameters:
Name | Type | Description |
---|---|---|
state |
any | |
changed |
any |
Returns:
- Type
- any
stepDown() → {void}
Returns:
- Type
- void
stepUp() → {void}
Returns:
- Type
- void
touchHandler(ev) → {void}
Parameters:
Name | Type | Description |
---|---|---|
ev |
Event |
- Source:
Returns:
- Type
- void
updateLib(lib) → {void}
Parameters:
Name | Type | Description |
---|---|---|
lib |
string |
Returns:
- Type
- void
value() → {string}
- Source:
Returns:
src
- Type
- string
value() → {void}
- Source:
Returns:
- Type
- void
value() → {string}
- Source:
Returns:
src
- Type
- string
value() → {void}
- Source:
Returns:
- Type
- void
Type Definitions
ArbitraryCallbackResult
This should only be used when the return result from a callback is not known as to type.
Type:
- any
- Source:
ArbitraryModule
Type:
- object
- Source:
ArbitraryObject
This should only be used for objects known to be potentially arbitrary in form.
For those whose determination has not yet been made, simply use type object
(or type ?
if it may also be a primitive).
Type:
- object
- Source:
ArgumentsArray
This should only be used for arrays known to be potentially arbitrary in form and representing arguments for passing around.
Type:
- Source:
Float
Type:
- number
- Source:
GenericArray
This should only be used for arrays known to be potentially arbitrary in form.
For those whose determination has not yet been made, simply use type Array
.
Type:
- Array
- Source:
GenericCallback(…args) → {ArbitraryCallbackResult}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
args |
any |
<repeatable> |
Signature dependent on the function |
- Source:
Returns:
Return dependent on the function
Integer
Type:
- Source:
JSON
Type:
- null | boolean | Float | string | GenericArray | PlainObject
- Source:
PlainObject
This should only be used for objects known to be potentially arbitrary in form,
but not of a special type.
For those whose determination has not yet been made, simply use type object
.
Type:
- Source: