Class: EditorStartup

EditorStartup()

new EditorStartup()

Source:

Members

enableToolCancel

if true - selected tool can be cancelled with Esc key disables on dragging (mousedown) to avoid changing mode in the middle of drawing

Source:

Methods

cancelTool()

Listens for Esc key to be pressed to cancel active mode, sets mode to Select

Source:

(async) extAndLocaleFunc() → {Promise.<module:locale.LangAndData>}

Source:
Fires:
  • module:svgcanvas.SvgCanvas#event:ext_addLangData
  • module:svgcanvas.SvgCanvas#event:ext_langReady
  • module:svgcanvas.SvgCanvas#event:ext_langChanged
  • module:svgcanvas.SvgCanvas#event:extensions_added
Returns:

Resolves to result of module:locale.readLang

Type
Promise.<module:locale.LangAndData>

modeListener(evt)

Listens to the mode change, listener is to be added on document

Parameters:
Name Type Description
evt Event

custom modeChange event

Source:

setCursorStyle(mode)

sets cursor styling for workarea depending on the current mode

Parameters:
Name Type Description
mode string
Source: