Global

Members

(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.

Source:

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
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
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
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}

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}

Source:
Returns:
Type
void

connectedCallback() → {void}

Source:
Returns:
Type
void

connectedCallback() → {void}

Source:
Returns:
Type
void

constructor()

Source:

constructor()

Source:

constructor()

Source:

constructor()

Source:

constructor()

Source:

constructor()

Source:

constructor()

Source:

constructor()

Source:

constructor()

Source:

constructor()

Source:

constructor()

Source:

constructor()

Source:

constructor()

Source:

constructor()

Source:

constructor()

Source:

constructor()

Source:

constructor()

Source:

constructor()

Source:

constructor()

Source:

constructor()

Source:

constructor()

Source:

createTemplate(imgPath) → {any}

Parameters:
Name Type Description
imgPath string
Source:
Returns:

template

Type
any

createTemplate(imgPath) → {any}

Parameters:
Name Type Description
imgPath string
Source:
Returns:

template

Type
any

decrement() → {void}

Source:
Returns:
Type
void

expireCookie(cookie) → {void}

Set the cookie to expire.

Parameters:
Name Type Description
cookie string
Source:
Returns:
Type
void

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
Source:
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}

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() → {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() → {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() → {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}

Source:
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() → {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

handleClick() → {void}

Source:
Returns:
Type
void

handleClose(e) → {void}

Parameters:
Name Type Description
e Event
Source:
Returns:

Close the popup menu

Type
void

handleInput() → {void}

Source:
Returns:
Type
void

handleKeyDown(e) → {void}

Parameters:
Name Type Description
e Event
Source:
Returns:
Type
void

handleMouseDown(dir, isFirst) → {void}

Parameters:
Name Type Description
dir string
isFirst boolean
Source:
Returns:

Increment/Decrement on mouse held down, if its the first call add a delay before starting

Type
void

handleMouseUp(dir) → {void}

Parameters:
Name Type Description
dir string
Source:
Returns:
Type
void

handleOptionsChange() → {void}

Source:
Returns:
Type
void

handleSelect(e) → {void}

Parameters:
Name Type Description
e Event
Source:
Returns:
Type
void

handleShow() → {void}

Source:
Returns:

initialises the popup menu position

Type
void

increment() → {void}

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
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
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
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
Source:
Returns:
Type
void

init(name) → {void}

Parameters:
Name Type Description
name any
Source:
Returns:
Type
void

inputsize() → {string}

Source:
Returns:

src

Type
string

isNullish(val) → {boolean}

Whether a value is null or undefined.

Parameters:
Name Type Description
val any
Source:
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}

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}

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

parseValue(value, precision) → {int}

Parameters:
Name Type Description
value number
precision number
Source:
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 is set.

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.

Source:
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}

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}

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}

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

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

stateEffects(state, changed) → {any}

Parameters:
Name Type Description
state any
changed any
Source:
Returns:
Type
any

stepDown() → {void}

Source:
Returns:
Type
void

stepUp() → {void}

Source:
Returns:
Type
void

triggerInputChanged() → {void}

Source:
Returns:
Type
void

updateLib(lib) → {void}

Parameters:
Name Type Description
lib string
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

Type
ArbitraryCallbackResult

Integer

Type:
Source:

JSON

Type:
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: