UNPKG

svgedit

Version:

Powerful SVG-Editor for your browser

4,704 lines (1,094 loc) 59.2 kB
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>JSDoc: Class: Editor</title> <script src="scripts/prettify/prettify.js"> </script> <script src="scripts/prettify/lang-css.js"> </script> <!--[if lt IE 9]> <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css"> <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css"> </head> <body> <div id="main"> <h1 class="page-title">Class: Editor</h1> <section> <header> <h2><span class="attribs"><span class="type-signature"></span></span> <span class="ancestors"><a href="module-SVGEditor.html">SVGEditor</a>~</span>Editor<span class="signature">()</span><span class="type-signature"></span></h2> </header> <article> <div class="container-overview"> <h4 class="name" id="Editor"><span class="type-signature"></span>new Editor<span class="signature">()</span><span class="type-signature"></span></h4> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="editor_Editor.js.html">editor/Editor.js</a>, <a href="editor_Editor.js.html#line39">line 39</a> </li></ul></dd> </dl> </div> <h3 class="subsection-title">Members</h3> <h4 class="name" id="langChanged"><span class="type-signature"></span>langChanged<span class="type-signature"> :boolean</span></h4> <h5>Type:</h5> <ul> <li> <span class="param-type">boolean</span> </li> </ul> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="editor_Editor.js.html">editor/Editor.js</a>, <a href="editor_Editor.js.html#line48">line 48</a> </li></ul></dd> </dl> <h4 class="name" id="showSaveWarning"><span class="type-signature"></span>showSaveWarning<span class="type-signature"> :boolean</span></h4> <h5>Type:</h5> <ul> <li> <span class="param-type">boolean</span> </li> </ul> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="editor_Editor.js.html">editor/Editor.js</a>, <a href="editor_Editor.js.html#line52">line 52</a> </li></ul></dd> </dl> <h4 class="name" id="storagePromptState"><span class="type-signature"></span>storagePromptState<span class="type-signature"> :"ignore"|"waiting"|"closed"</span></h4> <div class="description"> <p>Will be set to a boolean by <code>ext-storage.js</code></p> </div> <h5>Type:</h5> <ul> <li> <span class="param-type">"ignore"</span> | <span class="param-type">"waiting"</span> | <span class="param-type">"closed"</span> </li> </ul> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="editor_Editor.js.html">editor/Editor.js</a>, <a href="editor_Editor.js.html#line57">line 57</a> </li></ul></dd> </dl> <h3 class="subsection-title">Methods</h3> <h4 class="name" id="cancelOverlays"><span class="type-signature"></span>cancelOverlays<span class="signature">(e)</span><span class="type-signature"> &rarr; {void}</span></h4> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>e</code></td> <td class="type"> <span class="param-type">Event</span> </td> <td class="description last"></td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="editor_Editor.js.html">editor/Editor.js</a>, <a href="editor_Editor.js.html#line869">line 869</a> </li></ul></dd> </dl> <h5>Returns:</h5> <div class="param-desc"> <p>Resolves to <code>undefined</code></p> </div> <dl> <dt> Type </dt> <dd> <span class="param-type">void</span> </dd> </dl> <h4 class="name" id="contextChanged"><span class="type-signature"></span>contextChanged<span class="signature">(win, context)</span><span class="type-signature"> &rarr; {void}</span></h4> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>win</code></td> <td class="type"> <span class="param-type"><a href="external-Window.html">external:Window</a></span> </td> <td class="description last"></td> </tr> <tr> <td class="name"><code>context</code></td> <td class="type"> <span class="param-type"><a href="module-svgcanvas.SvgCanvas.html#event:event:contextset">module:svgcanvas.SvgCanvas#event:contextset</a></span> </td> <td class="description last"></td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="editor_Editor.js.html">editor/Editor.js</a>, <a href="editor_Editor.js.html#line650">line 650</a> </li></ul></dd> </dl> <h5>Listens to Events:</h5> <ul> <li><a href="module-svgcanvas.SvgCanvas.html#event:event:contextset">module:svgcanvas.SvgCanvas#event:contextset</a></li> </ul> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">void</span> </dd> </dl> <h4 class="name" id="cutSelected"><span class="type-signature"></span>cutSelected<span class="signature">()</span><span class="type-signature"> &rarr; {void}</span></h4> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="editor_Editor.js.html">editor/Editor.js</a>, <a href="editor_Editor.js.html#line744">line 744</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">void</span> </dd> </dl> <h4 class="name" id="elementChanged"><span class="type-signature"></span>elementChanged<span class="signature">(win, elems)</span><span class="type-signature"> &rarr; {void}</span></h4> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>win</code></td> <td class="type"> <span class="param-type"><a href="external-Window.html">external:Window</a></span> </td> <td class="description last"></td> </tr> <tr> <td class="name"><code>elems</code></td> <td class="type"> <span class="param-type">Array.&lt;<a href="global.html#PlainObject">PlainObject</a>></span> </td> <td class="description last"></td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="editor_Editor.js.html">editor/Editor.js</a>, <a href="editor_Editor.js.html#line544">line 544</a> </li></ul></dd> </dl> <h5>Fires:</h5> <ul> <li><a href="module-svgcanvas.SvgCanvas.html#event:event:ext_elementChanged">module:svgcanvas.SvgCanvas#event:ext_elementChanged</a></li> </ul> <h5>Listens to Events:</h5> <ul> <li><a href="module-svgcanvas.SvgCanvas.html#event:event:changed">module:svgcanvas.SvgCanvas#event:changed</a></li> </ul> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">void</span> </dd> </dl> <h4 class="name" id="elementTransition"><span class="type-signature"></span>elementTransition<span class="signature">(win, elems)</span><span class="type-signature"> &rarr; {void}</span></h4> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>win</code></td> <td class="type"> <span class="param-type"><a href="external-Window.html">external:Window</a></span> </td> <td class="description last"></td> </tr> <tr> <td class="name"><code>elems</code></td> <td class="type"> <span class="param-type"><a href="module-svgcanvas.SvgCanvas.html#event:event:transition">module:svgcanvas.SvgCanvas#event:transition</a></span> </td> <td class="description last"></td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="editor_Editor.js.html">editor/Editor.js</a>, <a href="editor_Editor.js.html#line511">line 511</a> </li></ul></dd> </dl> <h5>Fires:</h5> <ul> <li><a href="module-svgcanvas.SvgCanvas.html#event:event:ext_elementTransition">module:svgcanvas.SvgCanvas#event:ext_elementTransition</a></li> </ul> <h5>Listens to Events:</h5> <ul> <li><a href="module-svgcanvas.SvgCanvas.html#event:event:transition">module:svgcanvas.SvgCanvas#event:transition</a></li> </ul> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">void</span> </dd> </dl> <h4 class="name" id="enableOrDisableClipboard"><span class="type-signature"></span>enableOrDisableClipboard<span class="signature">()</span><span class="type-signature"> &rarr; {void}</span></h4> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="editor_Editor.js.html">editor/Editor.js</a>, <a href="editor_Editor.js.html#line896">line 896</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">void</span> </dd> </dl> <h4 class="name" id="exportHandler"><span class="type-signature"></span>exportHandler<span class="signature">(win, data)</span><span class="type-signature"> &rarr; {void}</span></h4> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>win</code></td> <td class="type"> <span class="param-type"><a href="external-Window.html">external:Window</a></span> </td> <td class="description last"></td> </tr> <tr> <td class="name"><code>data</code></td> <td class="type"> <span class="param-type"><a href="module-svgcanvas.SvgCanvas.html#event:event:exported">module:svgcanvas.SvgCanvas#event:exported</a></span> </td> <td class="description last"></td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="editor_Editor.js.html">editor/Editor.js</a>, <a href="editor_Editor.js.html#line314">line 314</a> </li></ul></dd> </dl> <h5>Listens to Events:</h5> <ul> <li><a href="module-svgcanvas.SvgCanvas.html#event:event:exported">module:svgcanvas.SvgCanvas#event:exported</a></li> </ul> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">void</span> </dd> </dl> <h4 class="name" id="extAdded"><span class="type-signature">(async) </span>extAdded<span class="signature">(win, ext)</span><span class="type-signature"> &rarr; {Promise.&lt;void>|void}</span></h4> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>win</code></td> <td class="type"> <span class="param-type"><a href="external-Window.html">external:Window</a></span> </td> <td class="description last"></td> </tr> <tr> <td class="name"><code>ext</code></td> <td class="type"> <span class="param-type"><a href="module-svgcanvas.SvgCanvas.html#event:event:extension_added">module:svgcanvas.SvgCanvas#event:extension_added</a></span> </td> <td class="description last"></td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="editor_Editor.js.html">editor/Editor.js</a>, <a href="editor_Editor.js.html#line702">line 702</a> </li></ul></dd> </dl> <h5>Listens to Events:</h5> <ul> <li><a href="module-svgcanvas.SvgCanvas.html#event:event:extension_added">module:svgcanvas.SvgCanvas#event:extension_added</a></li> </ul> <h5>Returns:</h5> <div class="param-desc"> <p>Resolves to <code>undefined</code></p> </div> <dl> <dt> Type </dt> <dd> <span class="param-type">Promise.&lt;void></span> | <span class="param-type">void</span> </dd> </dl> <h4 class="name" id="getButtonData"><span class="type-signature"></span>getButtonData<span class="signature">(sel)</span><span class="type-signature"> &rarr; {module:SVGthis.ToolButton}</span></h4> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>sel</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="description last"><p>Selector to match</p></td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="editor_Editor.js.html">editor/Editor.js</a>, <a href="editor_Editor.js.html#line302">line 302</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">module:SVGthis.ToolButton</span> </dd> </dl> <h4 class="name" id="hideSourceEditor"><span class="type-signature"></span>hideSourceEditor<span class="signature">()</span><span class="type-signature"> &rarr; {void}</span></h4> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="editor_Editor.js.html">editor/Editor.js</a>, <a href="editor_Editor.js.html#line833">line 833</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">void</span> </dd> </dl> <h4 class="name" id="loadSvgString"><span class="type-signature"></span>loadSvgString<span class="signature">(str, opts<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {void}</span></h4> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th>Attributes</th> <th>Default</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>str</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="attributes"> </td> <td class="default"> </td> <td class="description last"><p>SVG string</p></td> </tr> <tr> <td class="name"><code>opts</code></td> <td class="type"> <span class="param-type"><a href="global.html#PlainObject">PlainObject</a></span> </td> <td class="attributes"> &lt;optional><br> </td> <td class="default"> {} </td> <td class="description last"> <h6>Properties</h6> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th>Attributes</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>noAlert</code></td> <td class="type"> <span class="param-type">boolean</span> </td> <td class="attributes"> &lt;optional><br> </td> <td class="description last"></td> </tr> </tbody> </table> </td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="editor_Editor.js.html">editor/Editor.js</a>, <a href="editor_Editor.js.html#line130">line 130</a> </li></ul></dd> </dl> <h5>Throws:</h5> <dl> <dt> <div class="param-desc"> <p>Upon failure to load SVG</p> </div> </dt> <dd></dd> <dt> <dl> <dt> Type </dt> <dd> <span class="param-type">Error</span> </dd> </dl> </dt> <dd></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">void</span> </dd> </dl> <h4 class="name" id="moveSelected"><span class="type-signature"></span>moveSelected<span class="signature">(dx, dy)</span><span class="type-signature"> &rarr; {void}</span></h4> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>dx</code></td> <td class="type"> <span class="param-type"><a href="global.html#Float">Float</a></span> </td> <td class="description last"></td> </tr> <tr> <td class="name"><code>dy</code></td> <td class="type"> <span class="param-type"><a href="global.html#Float">Float</a></span> </td> <td class="description last"></td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="editor_Editor.js.html">editor/Editor.js</a>, <a href="editor_Editor.js.html#line787">line 787</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">void</span> </dd> </dl> <h4 class="name" id="moveUpDownSelected"><span class="type-signature"></span>moveUpDownSelected<span class="signature">(dir)</span><span class="type-signature"> &rarr; {void}</span></h4> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>dir</code></td> <td class="type"> <span class="param-type">"Up"</span> | <span class="param-type">"Down"</span> </td> <td class="description last"></td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="editor_Editor.js.html">editor/Editor.js</a>, <a href="editor_Editor.js.html#line776">line 776</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">void</span> </dd> </dl> <h4 class="name" id="onDragEnter"><span class="type-signature"></span>onDragEnter<span class="signature">(e)</span><span class="type-signature"> &rarr; {void}</span></h4> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>e</code></td> <td class="type"> <span class="param-type">Event</span> </td> <td class="description last"></td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="editor_Editor.js.html">editor/Editor.js</a>, <a href="editor_Editor.js.html#line922">line 922</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">void</span> </dd> </dl> <h4 class="name" id="onDragLeave"><span class="type-signature"></span>onDragLeave<span class="signature">(e)</span><span class="type-signature"> &rarr; {void}</span></h4> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>e</code></td> <td class="type"> <span class="param-type">Event</span> </td> <td class="description last"></td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="editor_Editor.js.html">editor/Editor.js</a>, <a href="editor_Editor.js.html#line945">line 945</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">void</span> </dd> </dl> <h4 class="name" id="onDragOver"><span class="type-signature"></span>onDragOver<span class="signature">(e)</span><span class="type-signature"> &rarr; {void}</span></h4> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>e</code></td> <td class="type"> <span class="param-type">Event</span> </td> <td class="description last"></td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="editor_Editor.js.html">editor/Editor.js</a>, <a href="editor_Editor.js.html#line934">line 934</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">void</span> </dd> </dl> <h4 class="name" id="pasteInCenter"><span class="type-signature"></span>pasteInCenter<span class="signature">()</span><span class="type-signature"> &rarr; {void}</span></h4> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="editor_Editor.js.html">editor/Editor.js</a>, <a href="editor_Editor.js.html#line764">line 764</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">void</span> </dd> </dl> <h4 class="name" id="rotateSelected"><span class="type-signature"></span>rotateSelected<span class="signature">(cw, step)</span><span class="type-signature"> &rarr; {void}</span></h4> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>cw</code></td> <td class="type"> <span class="param-type">0</span> | <span class="param-type">1</span> </td> <td class="description last"></td> </tr> <tr> <td class="name"><code>step</code></td> <td class="type"> <span class="param-type"><a href="global.html#Integer">Integer</a></span> </td> <td class="description last"></td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="editor_Editor.js.html">editor/Editor.js</a>, <a href="editor_Editor.js.html#line820">line 820</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">void</span> </dd> </dl> <h4 class="name" id="saveSourceEditor"><span class="type-signature">(async) </span>saveSourceEditor<span class="signature">(e)</span><span class="type-signature"> &rarr; {void}</span></h4> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>e</code></td> <td class="type"> <span class="param-type">Event</span> </td> <td class="description last"></td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="editor_Editor.js.html">editor/Editor.js</a>, <a href="editor_Editor.js.html#line842">line 842</a> </li></ul></dd> </dl> <h5>Returns:</h5> <div class="param-desc"> <p>Resolves to <code>undefined</code></p> </div> <dl> <dt> Type </dt> <dd> <span class="param-type">void</span> </dd> </dl> <h4 class="name" id="selectedChanged"><span class="type-signature"></span>selectedChanged<span class="signature">(win, elems)</span><span class="type-signature"> &rarr; {void}</span></h4> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>win</code></td> <td class="type"> <span class="param-type"><a href="external-Window.html">external:Window</a></span> </td> <td class="description last"></td> </tr> <tr> <td class="name"><code>elems</code></td> <td class="type"> <span class="param-type"><a href="module-svgcanvas.SvgCanvas.html#event:event:selected">module:svgcanvas.SvgCanvas#event:selected</a></span> </td> <td class="description last"><p>Array of elements that were selected</p></td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="editor_Editor.js.html">editor/Editor.js</a>, <a href="editor_Editor.js.html#line479">line 479</a> </li></ul></dd> </dl> <h5>Fires:</h5> <ul> <li><a href="module-svgcanvas.SvgCanvas.html#event:event:ext_selectedChanged">module:svgcanvas.SvgCanvas#event:ext_selectedChanged</a></li> </ul> <h5>Listens to Events:</h5> <ul> <li><a href="module-svgcanvas.SvgCanvas.html#event:event:selected">module:svgcanvas.SvgCanvas#event:selected</a></li> </ul> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">void</span> </dd> </dl> <h4 class="name" id="selectNext"><span class="type-signature"></span>selectNext<span class="signature">()</span><span class="type-signature"> &rarr; {void}</span></h4> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="editor_Editor.js.html">editor/Editor.js</a>, <a href="editor_Editor.js.html#line803">line 803</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">void</span> </dd> </dl> <h4 class="name" id="selectPrev"><span class="type-signature"></span>selectPrev<span class="signature">()</span><span class="type-signature"> &rarr; {void}</span></h4> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="editor_Editor.js.html">editor/Editor.js</a>, <a href="editor_Editor.js.html#line811">line 811</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">void</span> </dd> </dl> <h4 class="name" id="setAll"><span class="type-signature"></span>setAll<span class="signature">()</span><span class="type-signature"> &rarr; {void}</span></h4> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="editor_Editor.js.html">editor/Editor.js</a>, <a href="editor_Editor.js.html#line195">line 195</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">void</span> </dd> </dl> <h4 class="name" id="setBackground"><span class="type-signature"></span>setBackground<span class="signature">(color, url)</span><span class="type-signature"> &rarr; {void}</span></h4> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>color</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="description last"></td> </tr> <tr> <td class="name"><code>url</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="description last"></td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="editor_Editor.js.html">editor/Editor.js</a>, <a href="editor_Editor.js.html#line348">line 348</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">void</span> </dd> </dl> <h4 class="name" id="setTitles"><span class="type-signature"></span>setTitles<span class="signature">()</span><span class="type-signature"> &rarr; {void}</span></h4> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="editor_Editor.js.html">editor/Editor.js</a>, <a href="editor_Editor.js.html#line267">line 267</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">void</span> </dd> </dl> <h4 class="name" id="updateTitle"><span class="type-signature"></span>updateTitle<span class="signature">(title<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {void}</span></h4> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th>Attributes</th> <th>Default</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>title</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="attributes"> &lt;optional><br> </td> <td class="default"> svgCanvas.getDocumentTitle() </td> <td class="description last"></td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="editor_Editor.js.html">editor/Editor.js</a>, <a href="editor_Editor.js.html#line459">line 459</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">void</span> </dd> </dl> <h4 class="name" id="updateWireFrame"><span class="type-signature"></span>updateWireFrame<span class="signature">()</span><span class="type-signature"> &rarr; {void}</span></h4> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="editor_Editor.js.html">editor/Editor.js</a>, <a href="editor_Editor.js.html#line444">line 444</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">void</span> </dd> </dl> <h4 class="name" id="zoomDone"><span class="type-signature"></span>zoomDone<span class="signature">()</span><span class="type-signature"> &rarr; {void}</span></h4> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="editor_Editor.js.html">editor/Editor.js</a>, <a href="editor_Editor.js.html#line590">line 590</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">void</span> </dd> </dl> <h4 class="name" id="zoomImage"><span class="type-signature"></span>zoomImage<span class="signature">(multiplier)</span><span class="type-signature"> &rarr; {void}</span></h4> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>multiplier</code></td> <td class="type"> <span class="param-type"><a href="global.html#Float">Float</a></span> </td> <td class="description last"></td> </tr> </tbody> </table> <dl class="details"> <dt class="tag-source">Source:</dt> <dd class="tag-source"><ul class="dummy"><li> <a href="editor_Editor.js.html">editor/Editor.js</a>, <a href="editor_Editor.js.html#line730">line 730</a> </li></ul></dd> </dl> <h5>Returns:</h5> <dl> <dt> Type </dt> <dd> <span class="param-type">void</span> </dd> </dl> </article> </section> </div> <nav> <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-blur.html">blur</a></li><li><a href="module-browser.html">browser</a></li><li><a href="module-clear.html">clear</a></li><li><a href="module-contextmenu.html">contextmenu</a></li><li><a href="module-coords.html">coords</a></li><li><a href="module-draw.html">draw</a></li><li><a href="module-elem-get-set%2520get%2520and%2520set%2520methods..html">elem-get-set get and set methods.</a></li><li><a href="module-event.html">event</a></li><li><a href="module-history.html">history</a></li><li><a href="module-jGraduate.html">jGraduate</a></li><li><a href="module-jPicker.html">jPicker</a></li><li><a href="module-jQueryAttr.html">jQueryAttr</a></li><li><a href="module-layer.html">layer</a></li><li><a href="module-locale.html">locale</a></li><li><a href="module-math.html">math</a></li><li><a href="module-namespaces.html">namespaces</a></li><li><a href="module-path.html">path</a></li><li><a href="module-recalculate.html">recalculate</a></li><li><a href="module-sanitize.html">sanitize</a></li><li><a href="module-select.html">select</a></li><li><a href="module-selected-elem.html">selected-elem</a></li><li><a href="module-selection.html">selection</a></li><li><a href="module-svg.html">svg</a></li><li><a href="module-svgcanvas.html">svgcanvas</a></li><li><a href="module-SVGEditor.html">SVGEditor</a></li><li><a href="module-text-actions%2520Tools%2520for%2520Text%2520edit%2520functions.html">text-actions Tools for Text edit functions</a></li><li><a href="module-undo.html">undo</a></li><li><a href="module-units.html">units</a></li><li><a href="module-utilities.html">utilities</a></li></ul><h3>Externals</h3><ul><li><a href="external-JamilihArray.html">JamilihArray</a></li><li><a href="external-jQuery.html">jQuery</a></li><li><a href="external-Math.html">Math</a></li><li><a href="external-MouseEvent.html">MouseEvent</a></li><li><a href="external-Window.html">Window</a></li></ul><h3>Namespaces</h3><ul><li><a href="external-jQuery.fn.html">fn</a></li><li><a href="external-jQuery.fn.$.fn.jPicker.defaults.html">defaults</a></li><li><a href="external-jQuery.fn.exports.jPickerMethod.html">exports.jPickerMethod</a></li><li><a href="external-jQuery.fn.jGraduateDefaults.html">jGraduateDefaults</a></li><li><a href="external-jQuery.fn.jGraduateDefaults.images.html">images</a></li><li><a href="external-jQuery.fn.jGraduateDefaults.window.html">window</a></li><li><a href="external-jQuery.jGraduate.html">jGraduate</a></li><li><a href="external-jQuery.jPicker.html">jPicker</a></li><li><a href="external-jQuery.jPicker.ColorMethods.html">ColorMethods</a></li><li><a href="module-path.html#.pathActions">pathActions</a></li><li><a href="module-svgcanvas.SvgCanvas_pathActions.html">pathActions</a></li><li><a href="module-svgcanvas.SvgCanvas_textActions.html">textActions</a></li></ul><h3>Classes</h3><ul><li><a href="BottomPanel.html">BottomPanel</a></li><li><a href="configObj.html">configObj</a></li><li><a href="Dropdown.html">Dropdown</a></li><li><a href="EditorStartup.html">EditorStartup</a></li><li><a href="ElixMenuButton.html">ElixMenuButton</a></li><li><a href="ElixNumberSpinBox.html">ElixNumberSpinBox</a></li><li><a href="ExplorerButton.html">ExplorerButton</a></li><li><a href="external-jQuery.jGraduate.Paint.html">Paint</a></li><li><a href="external-jQuery.jPicker.Color.html">Color</a></li><li><a href="FlyingButton.html">FlyingButton</a></li><li><a href="LayersPanel.html">LayersPanel</a></li><li><a href="LeftPanel.html">LeftPanel</a></li><li><a href="MainMenu.html">MainMenu</a></li><li><a href="module.exports.html">exports</a></li><li><a href="module.exports_module.exports.html">exports</a></li><li><a href="module-draw.Drawing.html">Drawing</a></li><li><a href="module-draw.Layer.html">Layer</a></li><li><a href="module-history.BatchCommand.html">BatchCommand</a></li><li><a href="module-history.ChangeElementCommand.html">ChangeElementCommand</a></li><li><a href="module-history.Command.html">Command</a></li><li><a href="module-history.HistoryRecordingService.html">HistoryRecordingService</a></li><li><a href="module-history.InsertElementCommand.html">InsertElementCommand</a></li><li><a