as per license file added note files have been modified
parent
aa4e1c9cb3
commit
5014534f47
|
@ -26,9 +26,9 @@ keyHandler.bindAction(46, 'delete');</pre></blockquote><h4 class=CHeading>Codec<
|
|||
|
||||
<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="mxDefaultKeyHandler.Functions"></a>Functions</h3></div></div>
|
||||
|
||||
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxDefaultKeyHandler.bindAction"></a>bindAction</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>mxDefaultKeyHandler.prototype.bindAction = function (</td><td class="PParameter prettyprint " nowrap>code,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>action,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>control</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Binds the specified keycode to the given action in <a href="#mxDefaultKeyHandler.editor" class=LVariable id=link27 onMouseOver="ShowTip(event, 'tt4', 'link27')" onMouseOut="HideTip('tt4')">editor</a>. The optional control flag specifies if the control key must be pressed to trigger the action.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>code</td><td class=CDLDescription>Integer that specifies the keycode.</td></tr><tr><td class=CDLEntry>action</td><td class=CDLDescription>Name of the action to execute in <a href="#mxDefaultKeyHandler.editor" class=LVariable id=link28 onMouseOver="ShowTip(event, 'tt4', 'link28')" onMouseOut="HideTip('tt4')">editor</a>.</td></tr><tr><td class=CDLEntry>control</td><td class=CDLDescription>Optional boolean that specifies if control must be pressed. Default is false.</td></tr></table></div></div></div>
|
||||
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxDefaultKeyHandler.bindAction"></a>bindAction</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>mxDefaultKeyHandler.prototype.bindAction = (</td><td class="PParameter prettyprint " nowrap>code,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>action,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>control</td><td class="PAfterParameters prettyprint "nowrap>) =></td></tr></table></td></tr></table></blockquote><p>Binds the specified keycode to the given action in <a href="#mxDefaultKeyHandler.editor" class=LVariable id=link27 onMouseOver="ShowTip(event, 'tt4', 'link27')" onMouseOut="HideTip('tt4')">editor</a>. The optional control flag specifies if the control key must be pressed to trigger the action.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>code</td><td class=CDLDescription>Integer that specifies the keycode.</td></tr><tr><td class=CDLEntry>action</td><td class=CDLDescription>Name of the action to execute in <a href="#mxDefaultKeyHandler.editor" class=LVariable id=link28 onMouseOver="ShowTip(event, 'tt4', 'link28')" onMouseOut="HideTip('tt4')">editor</a>.</td></tr><tr><td class=CDLEntry>control</td><td class=CDLDescription>Optional boolean that specifies if control must be pressed. Default is false.</td></tr></table></div></div></div>
|
||||
|
||||
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxDefaultKeyHandler.destroy"></a>destroy</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">mxDefaultKeyHandler.prototype.destroy = function ()</td></tr></table></blockquote><p>Destroys the <a href="#mxDefaultKeyHandler.handler" class=LVariable id=link29 onMouseOver="ShowTip(event, 'tt5', 'link29')" onMouseOut="HideTip('tt5')">handler</a> associated with this object. This does normally not need to be called, the <a href="#mxDefaultKeyHandler.handler" class=LVariable id=link30 onMouseOver="ShowTip(event, 'tt5', 'link30')" onMouseOut="HideTip('tt5')">handler</a> is destroyed automatically when the window unloads (in IE) by <a href="mxEditor-js.html#mxEditor" class=LClass id=link31 onMouseOver="ShowTip(event, 'tt3', 'link31')" onMouseOut="HideTip('tt3')">mxEditor</a>.</p></div></div></div>
|
||||
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxDefaultKeyHandler.destroy"></a>destroy</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">mxDefaultKeyHandler.prototype.destroy = () =></td></tr></table></blockquote><p>Destroys the <a href="#mxDefaultKeyHandler.handler" class=LVariable id=link29 onMouseOver="ShowTip(event, 'tt5', 'link29')" onMouseOut="HideTip('tt5')">handler</a> associated with this object. This does normally not need to be called, the <a href="#mxDefaultKeyHandler.handler" class=LVariable id=link30 onMouseOver="ShowTip(event, 'tt5', 'link30')" onMouseOut="HideTip('tt5')">handler</a> is destroyed automatically when the window unloads (in IE) by <a href="mxEditor-js.html#mxEditor" class=LClass id=link31 onMouseOver="ShowTip(event, 'tt3', 'link31')" onMouseOut="HideTip('tt3')">mxEditor</a>.</p></div></div></div>
|
||||
|
||||
</div><!--Content-->
|
||||
|
||||
|
@ -44,7 +44,7 @@ HideAllBut([1], 13);// --></script></div><!--Menu-->
|
|||
|
||||
|
||||
<!--START_ND_TOOLTIPS-->
|
||||
<div class=CToolTip id="tt1"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>function mxDefaultKeyHandler(</td><td class="PParameter prettyprint " nowrap>editor</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Constructs a new default key handler for the mxEditor.graph in the given mxEditor. </div></div><div class=CToolTip id="tt2"><div class=CVariable><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">mxEditor.prototype.graph</td></tr></table></blockquote>Holds a mxGraph for displaying the diagram. </div></div><div class=CToolTip id="tt3"><div class=CClass>Extends mxEventSource to implement an application wrapper for a graph that adds actions, I/O using mxCodec, auto-layout using mxLayoutManager, command history using undoManager, and standard dialogs and widgets, eg. </div></div><div class=CToolTip id="tt4"><div class=CVariable><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">mxDefaultKeyHandler.prototype.editor</td></tr></table></blockquote>Reference to the enclosing mxEditor.</div></div><div class=CToolTip id="tt5"><div class=CVariable><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">mxDefaultKeyHandler.prototype.handler</td></tr></table></blockquote>Holds the mxKeyHandler for key event handling.</div></div><div class=CToolTip id="tt6"><div class=CClass>Event handler that listens to keystroke events. </div></div><div class=CToolTip id="tt7"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>mxDefaultKeyHandler.prototype.bindAction = function (</td><td class="PParameter prettyprint " nowrap>code,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>action,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>control</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Binds the specified keycode to the given action in editor. </div></div><div class=CToolTip id="tt8"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">mxDefaultKeyHandler.prototype.destroy = function ()</td></tr></table></blockquote>Destroys the handler associated with this object. </div></div><div class=CToolTip id="tt9"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>mxKeyHandler.prototype.escape = function(</td><td class="PParameter prettyprint " nowrap>evt</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Hook to process ESCAPE keystrokes. </div></div><div class=CToolTip id="tt10"><div class=CVariable><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">mxEditor.prototype.keyHandler</td></tr></table></blockquote>Holds a mxDefaultKeyHandler for handling keyboard events. </div></div><div class=CToolTip id="tt11"><div class=CClass>Custom codec for configuring mxDefaultKeyHandlers. </div></div><div class=CToolTip id="tt12"><div class=CVariable><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">ESCAPE: 'escape'</td></tr></table></blockquote>Specifies the event name for escape.</div></div><!--END_ND_TOOLTIPS-->
|
||||
<div class=CToolTip id="tt1"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>function mxDefaultKeyHandler(</td><td class="PParameter prettyprint " nowrap>editor</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Constructs a new default key handler for the mxEditor.graph in the given mxEditor. </div></div><div class=CToolTip id="tt2"><div class=CVariable><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">mxEditor.prototype.graph</td></tr></table></blockquote>Holds a mxGraph for displaying the diagram. </div></div><div class=CToolTip id="tt3"><div class=CClass>Extends mxEventSource to implement an application wrapper for a graph that adds actions, I/O using mxCodec, auto-layout using mxLayoutManager, command history using undoManager, and standard dialogs and widgets, eg. </div></div><div class=CToolTip id="tt4"><div class=CVariable><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">mxDefaultKeyHandler.prototype.editor</td></tr></table></blockquote>Reference to the enclosing mxEditor.</div></div><div class=CToolTip id="tt5"><div class=CVariable><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">mxDefaultKeyHandler.prototype.handler</td></tr></table></blockquote>Holds the mxKeyHandler for key event handling.</div></div><div class=CToolTip id="tt6"><div class=CClass>Event handler that listens to keystroke events. </div></div><div class=CToolTip id="tt7"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>mxDefaultKeyHandler.prototype.bindAction = (</td><td class="PParameter prettyprint " nowrap>code,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>action,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>control</td><td class="PAfterParameters prettyprint "nowrap>) =></td></tr></table></td></tr></table></blockquote>Binds the specified keycode to the given action in editor. </div></div><div class=CToolTip id="tt8"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">mxDefaultKeyHandler.prototype.destroy = () =></td></tr></table></blockquote>Destroys the handler associated with this object. </div></div><div class=CToolTip id="tt9"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>mxKeyHandler.prototype.escape = function(</td><td class="PParameter prettyprint " nowrap>evt</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Hook to process ESCAPE keystrokes. </div></div><div class=CToolTip id="tt10"><div class=CVariable><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">mxEditor.prototype.keyHandler</td></tr></table></blockquote>Holds a mxDefaultKeyHandler for handling keyboard events. </div></div><div class=CToolTip id="tt11"><div class=CClass>Custom codec for configuring mxDefaultKeyHandlers. </div></div><div class=CToolTip id="tt12"><div class=CVariable><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">ESCAPE: 'escape'</td></tr></table></blockquote>Specifies the event name for escape.</div></div><!--END_ND_TOOLTIPS-->
|
||||
|
||||
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -37,7 +37,7 @@ HideAllBut([3], 13);// --></script></div><!--Menu-->
|
|||
|
||||
|
||||
<!--START_ND_TOOLTIPS-->
|
||||
<div class=CToolTip id="tt1"><div class=CClass>Binds keycodes to actionnames in an editor. </div></div><div class=CToolTip id="tt2"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>codec.encode = function(</td><td class="PParameter prettyprint " nowrap>enc,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>obj</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Returns null.</div></div><div class=CToolTip id="tt3"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>codec.decode = function(</td><td class="PParameter prettyprint " nowrap>dec,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>node,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>into</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Reads a sequence of the following child nodes and attributes:</div></div><div class=CToolTip id="tt4"><div class=CClass>XML codec for JavaScript object graphs. </div></div><div class=CToolTip id="tt5"><div class=CClass>Singleton class that acts as a global registry for codecs.</div></div><div class=CToolTip id="tt6"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>mxDefaultKeyHandler.prototype.bindAction = function (</td><td class="PParameter prettyprint " nowrap>code,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>action,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>control</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Binds the specified keycode to the given action in editor. </div></div><!--END_ND_TOOLTIPS-->
|
||||
<div class=CToolTip id="tt1"><div class=CClass>Binds keycodes to actionnames in an editor. </div></div><div class=CToolTip id="tt2"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>codec.encode = function(</td><td class="PParameter prettyprint " nowrap>enc,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>obj</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Returns null.</div></div><div class=CToolTip id="tt3"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>codec.decode = function(</td><td class="PParameter prettyprint " nowrap>dec,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>node,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>into</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Reads a sequence of the following child nodes and attributes:</div></div><div class=CToolTip id="tt4"><div class=CClass>XML codec for JavaScript object graphs. </div></div><div class=CToolTip id="tt5"><div class=CClass>Singleton class that acts as a global registry for codecs.</div></div><div class=CToolTip id="tt6"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>mxDefaultKeyHandler.prototype.bindAction = (</td><td class="PParameter prettyprint " nowrap>code,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>action,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>control</td><td class="PAfterParameters prettyprint "nowrap>) =></td></tr></table></td></tr></table></blockquote>Binds the specified keycode to the given action in editor. </div></div><!--END_ND_TOOLTIPS-->
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@ HideAllBut([3], 13);// --></script></div><!--Menu-->
|
|||
|
||||
|
||||
<!--START_ND_TOOLTIPS-->
|
||||
<div class=CToolTip id="tt1"><div class=CClass>Extends mxEventSource to implement an application wrapper for a graph that adds actions, I/O using mxCodec, auto-layout using mxLayoutManager, command history using undoManager, and standard dialogs and widgets, eg. </div></div><div class=CToolTip id="tt2"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>codec.decodeChild = function(</td><td class="PParameter prettyprint " nowrap>dec,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>child,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>obj</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Overrides decode child to handle special child nodes.</div></div><div class=CToolTip id="tt3"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>codec.decodeUi = function(</td><td class="PParameter prettyprint " nowrap>dec,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>node,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>editor</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Decodes the ui elements from the given node.</div></div><div class=CToolTip id="tt4"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>codec.decodeTemplates = function(</td><td class="PParameter prettyprint " nowrap>dec,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>node,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>editor</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Decodes the cells from the given node as templates.</div></div><div class=CToolTip id="tt5"><div class=CClass>XML codec for JavaScript object graphs. </div></div><div class=CToolTip id="tt6"><div class=CClass>Singleton class that acts as a global registry for codecs.</div></div><div class=CToolTip id="tt7"><div class=CClass>Implements internationalization. </div></div><div class=CToolTip id="tt8"><div class=CClass>Basic window inside a document.</div></div><div class=CToolTip id="tt9"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>mxEditor.prototype.setGraphContainer = function (</td><td class="PParameter prettyprint " nowrap>container</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Sets the graph’s container using mxGraph.init.</div></div><div class=CToolTip id="tt10"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>mxEditor.prototype.setTitleContainer = function (</td><td class="PParameter prettyprint " nowrap>container</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Creates a listener to update the inner HTML of the specified DOM node with the value of getTitle.</div></div><div class=CToolTip id="tt11"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>mxEditor.prototype.setToolbarContainer = function (</td><td class="PParameter prettyprint " nowrap>container</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Initializes the toolbar for the given container.</div></div><div class=CToolTip id="tt12"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>mxEditor.prototype.setStatusContainer = function (</td><td class="PParameter prettyprint " nowrap>container</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Creates the status using the specified container.</div></div><!--END_ND_TOOLTIPS-->
|
||||
<div class=CToolTip id="tt1"><div class=CClass>Extends mxEventSource to implement an application wrapper for a graph that adds actions, I/O using mxCodec, auto-layout using mxLayoutManager, command history using undoManager, and standard dialogs and widgets, eg. </div></div><div class=CToolTip id="tt2"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>codec.decodeChild = function(</td><td class="PParameter prettyprint " nowrap>dec,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>child,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>obj</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Overrides decode child to handle special child nodes.</div></div><div class=CToolTip id="tt3"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>codec.decodeUi = function(</td><td class="PParameter prettyprint " nowrap>dec,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>node,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>editor</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Decodes the ui elements from the given node.</div></div><div class=CToolTip id="tt4"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>codec.decodeTemplates = function(</td><td class="PParameter prettyprint " nowrap>dec,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>node,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>editor</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Decodes the cells from the given node as templates.</div></div><div class=CToolTip id="tt5"><div class=CClass>XML codec for JavaScript object graphs. </div></div><div class=CToolTip id="tt6"><div class=CClass>Singleton class that acts as a global registry for codecs.</div></div><div class=CToolTip id="tt7"><div class=CClass>Implements internationalization. </div></div><div class=CToolTip id="tt8"><div class=CClass>Basic window inside a document.</div></div><div class=CToolTip id="tt9"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>mxEditor.prototype.setGraphContainer = (</td><td class="PParameter prettyprint " nowrap>container</td><td class="PAfterParameters prettyprint "nowrap>) =></td></tr></table></td></tr></table></blockquote>Sets the graph’s container using mxGraph.init.</div></div><div class=CToolTip id="tt10"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>mxEditor.prototype.setTitleContainer = (</td><td class="PParameter prettyprint " nowrap>container</td><td class="PAfterParameters prettyprint "nowrap>) =></td></tr></table></td></tr></table></blockquote>Creates a listener to update the inner HTML of the specified DOM node with the value of getTitle.</div></div><div class=CToolTip id="tt11"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>mxEditor.prototype.setToolbarContainer = (</td><td class="PParameter prettyprint " nowrap>container</td><td class="PAfterParameters prettyprint "nowrap>) =></td></tr></table></td></tr></table></blockquote>Initializes the toolbar for the given container.</div></div><div class=CToolTip id="tt12"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>mxEditor.prototype.setStatusContainer = (</td><td class="PParameter prettyprint " nowrap>container</td><td class="PAfterParameters prettyprint "nowrap>) =></td></tr></table></td></tr></table></blockquote>Creates the status using the specified container.</div></div><!--END_ND_TOOLTIPS-->
|
||||
|
||||
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -11,7 +11,7 @@ if (browserType) {document.write("<div class=" + browserType + ">");if (browserV
|
|||
|
||||
|
||||
|
||||
<div id=Content><div class="CClass"><div class=CTopic id=MainTopic><h1 class=CTitle><a name="mxPerimeter"></a>mxPerimeter</h1><div class=CBody><p>Provides various perimeter functions to be used in a style as the value of <a href="../util/mxConstants-js.html#mxConstants.STYLE_PERIMETER" class=LVariable id=link7 onMouseOver="ShowTip(event, 'tt1', 'link7')" onMouseOut="HideTip('tt1')">mxConstants.STYLE_PERIMETER</a>. Perimeters for rectangle, circle, rhombus and triangle are available.</p><h4 class=CHeading>Example</h4><blockquote><pre class="prettyprint"><add as="perimeter">mxPerimeter.RectanglePerimeter</add></pre></blockquote><h4 class=CHeading>Or programmatically</h4><blockquote><pre class="prettyprint">style[mxConstants.STYLE_PERIMETER] = mxPerimeter.RectanglePerimeter;</pre></blockquote><p>When adding new perimeter functions, it is recommended to use the mxPerimeter-namespace as follows:</p><blockquote><pre class="prettyprint">mxPerimeter.CustomPerimeter = function (bounds, vertex, next, orthogonal)
|
||||
<div id=Content><div class="CClass"><div class=CTopic id=MainTopic><h1 class=CTitle><a name="mxPerimeter"></a>mxPerimeter</h1><div class=CBody><p>Provides various perimeter functions to be used in a style as the value of <a href="../util/mxConstants-js.html#mxConstants.STYLE_PERIMETER" class=LVariable id=link7 onMouseOver="ShowTip(event, 'tt1', 'link7')" onMouseOut="HideTip('tt1')">mxConstants.STYLE_PERIMETER</a>. Perimeters for rectangle, circle, rhombus and triangle are available.</p><h4 class=CHeading>Example</h4><blockquote><pre class="prettyprint"><add as="perimeter">mxPerimeter.RectanglePerimeter</add></pre></blockquote><h4 class=CHeading>Or programmatically</h4><blockquote><pre class="prettyprint">style[mxConstants.STYLE_PERIMETER] = mxPerimeter.RectanglePerimeter;</pre></blockquote><p>When adding new perimeter functions, it is recommended to use the mxPerimeter-namespace as follows:</p><blockquote><pre class="prettyprint">mxPerimeter.CustomPerimeter = (bounds, vertex, next, orthogonal) =>
|
||||
{
|
||||
var x = 0; // Calculate x-coordinate
|
||||
var y = 0; // Calculate y-coordainte
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -17,7 +17,7 @@ if (browserType) {document.write("<div class=" + browserType + ">");if (browserV
|
|||
|
||||
|
||||
<!--START_ND_TOOLTIPS-->
|
||||
<div class=CToolTip id="tt1599"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>mxCompactTreeLayout.prototype.offset = function(</td><td class="PParameter prettyprint " nowrap>p1,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>p2,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>a1,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>a2,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>b1,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>b2</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote></div></div><div class=CToolTip id="tt1600"><div class=CFunction>Encodes the child recursively.</div></div><div class=CToolTip id="tt1601"><div class=CFunction>Called from within the constructor.</div></div><div class=CToolTip id="tt1602"><div class=CFunction>Called from within the constructor. </div></div><div class=CToolTip id="tt1603"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>mxEditor.prototype.open = function (</td><td class="PParameter prettyprint " nowrap>filename</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Opens the specified file synchronously and parses it using readGraphModel. </div></div><div class=CToolTip id="tt1604"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>mxPrintPreview.prototype.open = function(</td><td class="PParameter prettyprint " nowrap>css,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>targetWindow,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>forcePageBreaks,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>keepOpen</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Shows the print preview window. </div></div><div class=CToolTip id="tt1605"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>mxGraph.prototype.orderCells = function(</td><td class="PParameter prettyprint " nowrap>back,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>cells</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Moves the given cells to the front or back. </div></div><div class=CToolTip id="tt1606"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>OrthConnector: function(</td><td class="PParameter prettyprint " nowrap>state,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>sourceScaled,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>targetScaled,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>controlHints,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>result</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Implements a local orthogonal router between the given cells.</div></div><div class=CToolTip id="tt1607"><div class=CFunction>Reference to the mxGraph that renders the outline.</div></div><!--END_ND_TOOLTIPS-->
|
||||
<div class=CToolTip id="tt1599"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>mxCompactTreeLayout.prototype.offset = function(</td><td class="PParameter prettyprint " nowrap>p1,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>p2,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>a1,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>a2,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>b1,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>b2</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote></div></div><div class=CToolTip id="tt1600"><div class=CFunction>Encodes the child recursively.</div></div><div class=CToolTip id="tt1601"><div class=CFunction>Called from within the constructor.</div></div><div class=CToolTip id="tt1602"><div class=CFunction>Called from within the constructor. </div></div><div class=CToolTip id="tt1603"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>mxEditor.prototype.open = (</td><td class="PParameter prettyprint " nowrap>filename</td><td class="PAfterParameters prettyprint "nowrap>) =></td></tr></table></td></tr></table></blockquote>Opens the specified file synchronously and parses it using readGraphModel. </div></div><div class=CToolTip id="tt1604"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>mxPrintPreview.prototype.open = function(</td><td class="PParameter prettyprint " nowrap>css,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>targetWindow,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>forcePageBreaks,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>keepOpen</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Shows the print preview window. </div></div><div class=CToolTip id="tt1605"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>mxGraph.prototype.orderCells = function(</td><td class="PParameter prettyprint " nowrap>back,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>cells</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Moves the given cells to the front or back. </div></div><div class=CToolTip id="tt1606"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>OrthConnector: function(</td><td class="PParameter prettyprint " nowrap>state,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>sourceScaled,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>targetScaled,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>controlHints,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>result</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Implements a local orthogonal router between the given cells.</div></div><div class=CToolTip id="tt1607"><div class=CFunction>Reference to the mxGraph that renders the outline.</div></div><!--END_ND_TOOLTIPS-->
|
||||
|
||||
</div><!--Index-->
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1,5 +1,5 @@
|
|||
|
||||
// This code comes from the December 2009 release of Google Prettify, which is Copyright © 2006 Google Inc.
|
||||
// This code comes from the December 2009 release of Google Prettify, which is Copyright <EFBFBD> 2006 Google Inc.
|
||||
// Minor modifications are marked with "ND Change" comments.
|
||||
// As part of Natural Docs, this code is licensed under version 3 of the GNU Affero General Public License (AGPL.)
|
||||
// However, it may also be obtained separately under version 2.0 of the Apache License.
|
||||
|
@ -102,11 +102,11 @@ window['PR_normalizedHtml']
|
|||
= window['prettyPrint'] = void 0;
|
||||
|
||||
/** browser detection. @extern @returns false if not IE, otherwise the major version. */
|
||||
window['_pr_isIE6'] = function () {
|
||||
window['_pr_isIE6'] = () => {
|
||||
var ieVersion = navigator && navigator.userAgent &&
|
||||
navigator.userAgent.match(/\bMSIE ([678])\./);
|
||||
ieVersion = ieVersion ? +ieVersion[1] : false;
|
||||
window['_pr_isIE6'] = function () { return ieVersion; };
|
||||
window['_pr_isIE6'] = () => { return ieVersion; };
|
||||
return ieVersion;
|
||||
};
|
||||
|
||||
|
@ -203,7 +203,7 @@ window['_pr_isIE6'] = function () {
|
|||
*
|
||||
* @private
|
||||
*/
|
||||
var REGEXP_PRECEDER_PATTERN = function () {
|
||||
var REGEXP_PRECEDER_PATTERN = () => {
|
||||
var preceders = [
|
||||
"!", "!=", "!==", "#", "%", "%=", "&", "&&", "&&=",
|
||||
"&=", "(", "*", "*=", /* "+", */ "+=", ",", /* "-", */ "-=",
|
||||
|
@ -848,7 +848,7 @@ window['_pr_isIE6'] = function () {
|
|||
* sourceCode.
|
||||
* }
|
||||
*/
|
||||
var decorate = function (job) {
|
||||
var decorate = (job) => {
|
||||
var sourceCode = job.source, basePos = job.basePos;
|
||||
/** Even entries are positions in source in ascending order. Odd enties
|
||||
* are style markers (e.g., PR_COMMENT) that run from that position until
|
||||
|
|
|
@ -14,7 +14,7 @@ class HelloWorld extends React.Component {
|
|||
super(props);
|
||||
}
|
||||
|
||||
render() {
|
||||
render=()=>{
|
||||
// A container for the graph with a grid wallpaper
|
||||
return <>
|
||||
<h1>Hello, World! example for mxGraph</h1>
|
||||
|
@ -31,7 +31,7 @@ class HelloWorld extends React.Component {
|
|||
</>;
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
componentDidMount=()=>{
|
||||
// FIXME!!
|
||||
let mxBasePath = '../src';
|
||||
|
||||
|
@ -44,34 +44,27 @@ class HelloWorld extends React.Component {
|
|||
// is normally the first child of the root (ie. layer 0).
|
||||
let parent = graph.getDefaultParent();
|
||||
|
||||
// Adds cells to the model in a single step
|
||||
graph.getModel().beginUpdate();
|
||||
try {
|
||||
let v1 = graph.insertVertex({
|
||||
id: null,
|
||||
graph.getModel().batchUpdate(() => {
|
||||
// Add cells to the model in a single step
|
||||
let vertex1 = graph.insertVertex({
|
||||
parent: parent,
|
||||
value: 'Hello,',
|
||||
value: 'Hello',
|
||||
position: [20, 20],
|
||||
size: [80, 30]
|
||||
});
|
||||
let v2 = graph.insertVertex({
|
||||
id: null,
|
||||
let vertex2 = graph.insertVertex({
|
||||
parent: parent,
|
||||
value: 'World!',
|
||||
position: [200, 150],
|
||||
size: [80, 30]
|
||||
});
|
||||
graph.insertEdge({
|
||||
id: null,
|
||||
parent: parent,
|
||||
value: '',
|
||||
source: v1,
|
||||
target: v2
|
||||
value: 'to the',
|
||||
source: vertex1,
|
||||
target: vertex2
|
||||
});
|
||||
} finally {
|
||||
// Updates the display
|
||||
graph.getModel().endUpdate();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -2698,7 +2698,7 @@ Graph.prototype.formatDate = function(date, mask, utc)
|
|||
var token = /d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,
|
||||
timezone = /\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,
|
||||
timezoneClip = /[^-+\dA-Z]/g,
|
||||
pad = function (val, len) {
|
||||
pad = (val, len) => {
|
||||
val = String(val);
|
||||
len = len || 2;
|
||||
while (val.length < len) val = "0" + val;
|
||||
|
@ -3691,7 +3691,7 @@ Graph.prototype.selectCells = function(vertices, edges, parent)
|
|||
* parent - <mxCell> that should be used as the root of the recursion.
|
||||
* Default is <defaultParent>.
|
||||
*/
|
||||
Graph.prototype.getSwimlaneAt = function (x, y, parent)
|
||||
Graph.prototype.getSwimlaneAt = (x, y, parent) =>
|
||||
{
|
||||
var result = mxGraph.prototype.getSwimlaneAt.apply(this, arguments);
|
||||
|
||||
|
@ -5580,7 +5580,7 @@ TableLayout.prototype.execute = function(parent)
|
|||
*/
|
||||
var mxConnectorPaintLine = mxConnector.prototype.paintLine;
|
||||
|
||||
mxConnector.prototype.paintLine = function (c, absPts, rounded)
|
||||
mxConnector.prototype.paintLine = (c, absPts, rounded) =>
|
||||
{
|
||||
// Required for checking dirty state
|
||||
this.routedPoints = (this.state != null) ? this.state.routedPoints : null;
|
||||
|
|
|
@ -2108,7 +2108,7 @@
|
|||
|
||||
mxCellRenderer.registerShape('umlFrame', UmlFrame);
|
||||
|
||||
mxPerimeter.LifelinePerimeter = function (bounds, vertex, next, orthogonal)
|
||||
mxPerimeter.LifelinePerimeter = (bounds, vertex, next, orthogonal) =>
|
||||
{
|
||||
var size = UmlLifeline.prototype.size;
|
||||
|
||||
|
@ -2131,7 +2131,7 @@
|
|||
|
||||
mxStyleRegistry.putValue('lifelinePerimeter', mxPerimeter.LifelinePerimeter);
|
||||
|
||||
mxPerimeter.OrthogonalPerimeter = function (bounds, vertex, next, orthogonal)
|
||||
mxPerimeter.OrthogonalPerimeter = (bounds, vertex, next, orthogonal) =>
|
||||
{
|
||||
orthogonal = true;
|
||||
|
||||
|
@ -2140,7 +2140,7 @@
|
|||
|
||||
mxStyleRegistry.putValue('orthogonalPerimeter', mxPerimeter.OrthogonalPerimeter);
|
||||
|
||||
mxPerimeter.BackbonePerimeter = function (bounds, vertex, next, orthogonal)
|
||||
mxPerimeter.BackbonePerimeter = (bounds, vertex, next, orthogonal) =>
|
||||
{
|
||||
var sw = (parseFloat(vertex.style[mxConstants.STYLE_STROKEWIDTH] || 1) * vertex.view.scale / 2) - 1;
|
||||
|
||||
|
@ -2177,7 +2177,7 @@
|
|||
mxStyleRegistry.putValue('backbonePerimeter', mxPerimeter.BackbonePerimeter);
|
||||
|
||||
// Callout Perimeter
|
||||
mxPerimeter.CalloutPerimeter = function (bounds, vertex, next, orthogonal)
|
||||
mxPerimeter.CalloutPerimeter = (bounds, vertex, next, orthogonal) =>
|
||||
{
|
||||
return mxPerimeter.RectanglePerimeter(mxUtils.getDirectedBounds(bounds, new mxRectangle(0, 0, 0,
|
||||
Math.max(0, Math.min(bounds.height, parseFloat(mxUtils.getValue(vertex.style, 'size',
|
||||
|
@ -2188,7 +2188,7 @@
|
|||
mxStyleRegistry.putValue('calloutPerimeter', mxPerimeter.CalloutPerimeter);
|
||||
|
||||
// Parallelogram Perimeter
|
||||
mxPerimeter.ParallelogramPerimeter = function (bounds, vertex, next, orthogonal)
|
||||
mxPerimeter.ParallelogramPerimeter = (bounds, vertex, next, orthogonal) =>
|
||||
{
|
||||
var fixed = mxUtils.getValue(vertex.style, 'fixedSize', '0') != '0';
|
||||
var size = (fixed) ? ParallelogramShape.prototype.fixedSize : ParallelogramShape.prototype.size;
|
||||
|
@ -2251,7 +2251,7 @@
|
|||
mxStyleRegistry.putValue('parallelogramPerimeter', mxPerimeter.ParallelogramPerimeter);
|
||||
|
||||
// Trapezoid Perimeter
|
||||
mxPerimeter.TrapezoidPerimeter = function (bounds, vertex, next, orthogonal)
|
||||
mxPerimeter.TrapezoidPerimeter = (bounds, vertex, next, orthogonal) =>
|
||||
{
|
||||
var fixed = mxUtils.getValue(vertex.style, 'fixedSize', '0') != '0';
|
||||
var size = (fixed) ? TrapezoidShape.prototype.fixedSize : TrapezoidShape.prototype.size;
|
||||
|
@ -2324,7 +2324,7 @@
|
|||
mxStyleRegistry.putValue('trapezoidPerimeter', mxPerimeter.TrapezoidPerimeter);
|
||||
|
||||
// Step Perimeter
|
||||
mxPerimeter.StepPerimeter = function (bounds, vertex, next, orthogonal)
|
||||
mxPerimeter.StepPerimeter = (bounds, vertex, next, orthogonal) =>
|
||||
{
|
||||
var fixed = mxUtils.getValue(vertex.style, 'fixedSize', '0') != '0';
|
||||
var size = (fixed) ? StepShape.prototype.fixedSize : StepShape.prototype.size;
|
||||
|
@ -2401,7 +2401,7 @@
|
|||
mxStyleRegistry.putValue('stepPerimeter', mxPerimeter.StepPerimeter);
|
||||
|
||||
// Hexagon Perimeter 2 (keep existing one)
|
||||
mxPerimeter.HexagonPerimeter2 = function (bounds, vertex, next, orthogonal)
|
||||
mxPerimeter.HexagonPerimeter2 = (bounds, vertex, next, orthogonal) =>
|
||||
{
|
||||
var fixed = mxUtils.getValue(vertex.style, 'fixedSize', '0') != '0';
|
||||
var size = (fixed) ? HexagonShape.prototype.fixedSize : HexagonShape.prototype.size;
|
||||
|
@ -4634,7 +4634,7 @@
|
|||
|
||||
isoVVector = mxUtils.getRotatedPoint(isoVVector, cos2, sin2);
|
||||
|
||||
mxEdgeStyle.IsometricConnector = function (state, source, target, points, result)
|
||||
mxEdgeStyle.IsometricConnector = (state, source, target, points, result) =>
|
||||
{
|
||||
var view = state.view;
|
||||
var pt = (points != null && points.length > 0) ? points[0] : null;
|
||||
|
|
|
@ -690,7 +690,7 @@ var mxJSColor = {
|
|||
} catch(eOldIE) {
|
||||
p.btn.style.cursor = 'hand';
|
||||
}
|
||||
p.btn.onmousedown = function () {
|
||||
p.btn.onmousedown = () => {
|
||||
THIS.hidePicker();
|
||||
};
|
||||
p.btnS.style.lineHeight = p.btn.style.height;
|
||||
|
|
|
@ -18,7 +18,7 @@ var version = "1.3.1+HEAD.ba6f97f";
|
|||
*/
|
||||
|
||||
var freeze = Object.freeze;
|
||||
Object.freeze = function (obj) { return obj; };
|
||||
Object.freeze = (obj) => { return obj; };
|
||||
|
||||
// @function extend(dest: Object, src?: Object): Object
|
||||
// Merges the properties of the `src` object (or multiple objects) into `dest` object and returns the latter. Has an `L.extend` shortcut.
|
||||
|
@ -84,7 +84,7 @@ function stamp(obj) {
|
|||
function throttle(fn, time, context) {
|
||||
var lock, args, wrapperFn, later;
|
||||
|
||||
later = function () {
|
||||
later = () => {
|
||||
// reset lock and call if queued
|
||||
lock = false;
|
||||
if (args) {
|
||||
|
@ -93,7 +93,7 @@ function throttle(fn, time, context) {
|
|||
}
|
||||
};
|
||||
|
||||
wrapperFn = function () {
|
||||
wrapperFn = () => {
|
||||
if (lock) {
|
||||
// called too soon, queue to call later
|
||||
args = arguments;
|
||||
|
@ -289,12 +289,12 @@ var Util = (Object.freeze || Object)({
|
|||
|
||||
function Class() {}
|
||||
|
||||
Class.extend = function (props) {
|
||||
Class.extend = (props) => {
|
||||
|
||||
// @function extend(props: Object): Function
|
||||
// [Extends the current class](#class-inheritance) given the properties to be included.
|
||||
// Returns a Javascript function that is a class constructor (to be called with `new`).
|
||||
var NewClass = function () {
|
||||
var NewClass = () => {
|
||||
|
||||
// call the constructor
|
||||
if (this.initialize) {
|
||||
|
@ -343,7 +343,7 @@ Class.extend = function (props) {
|
|||
proto._initHooks = [];
|
||||
|
||||
// add method for calling all hooks
|
||||
proto.callInitHooks = function () {
|
||||
proto.callInitHooks = () => {
|
||||
|
||||
if (this._initHooksCalled) { return; }
|
||||
|
||||
|
@ -364,21 +364,21 @@ Class.extend = function (props) {
|
|||
|
||||
// @function include(properties: Object): this
|
||||
// [Includes a mixin](#class-includes) into the current class.
|
||||
Class.include = function (props) {
|
||||
Class.include = (props) => {
|
||||
extend(this.prototype, props);
|
||||
return this;
|
||||
};
|
||||
|
||||
// @function mergeOptions(options: Object): this
|
||||
// [Merges `options`](#class-options) into the defaults of the class.
|
||||
Class.mergeOptions = function (options) {
|
||||
Class.mergeOptions = (options) => {
|
||||
extend(this.prototype.options, options);
|
||||
return this;
|
||||
};
|
||||
|
||||
// @function addInitHook(fn: Function): this
|
||||
// Adds a [constructor hook](#class-constructor-hooks) to the class.
|
||||
Class.addInitHook = function (fn) { // (Function) || (String, args...)
|
||||
Class.addInitHook = (fn) => { // (Function) || (String, args...)
|
||||
var args = Array.prototype.slice.call(arguments, 1);
|
||||
|
||||
var init = typeof fn === 'function' ? fn : function () {
|
||||
|
@ -2101,7 +2101,7 @@ function _handlePointer(e, handler) {
|
|||
}
|
||||
|
||||
function _addPointerMove(obj, handler, id) {
|
||||
var onMove = function (e) {
|
||||
var onMove = (e) => {
|
||||
// don't fire touch moves when mouse isn't down
|
||||
if ((e.pointerType === e.MSPOINTER_TYPE_MOUSE || e.pointerType === 'mouse') && e.buttons === 0) { return; }
|
||||
|
||||
|
@ -2113,7 +2113,7 @@ function _addPointerMove(obj, handler, id) {
|
|||
}
|
||||
|
||||
function _addPointerEnd(obj, handler, id) {
|
||||
var onUp = function (e) {
|
||||
var onUp = (e) => {
|
||||
_handlePointer(e, handler);
|
||||
};
|
||||
|
||||
|
@ -2276,7 +2276,7 @@ function addOne(obj, type, fn, context) {
|
|||
|
||||
if (obj[eventsKey] && obj[eventsKey][id]) { return this; }
|
||||
|
||||
var handler = function (e) {
|
||||
var handler = (e) => {
|
||||
return fn.call(context || obj, e || window.event);
|
||||
};
|
||||
|
||||
|
@ -2298,7 +2298,7 @@ function addOne(obj, type, fn, context) {
|
|||
obj.addEventListener('onwheel' in obj ? 'wheel' : 'mousewheel', handler, false);
|
||||
|
||||
} else if ((type === 'mouseenter') || (type === 'mouseleave')) {
|
||||
handler = function (e) {
|
||||
handler = (e) => {
|
||||
e = e || window.event;
|
||||
if (isExternalTarget(obj, e)) {
|
||||
originalHandler(e);
|
||||
|
@ -2308,7 +2308,7 @@ function addOne(obj, type, fn, context) {
|
|||
|
||||
} else {
|
||||
if (type === 'click' && android) {
|
||||
handler = function (e) {
|
||||
handler = (e) => {
|
||||
filterClick(e, originalHandler);
|
||||
};
|
||||
}
|
||||
|
@ -2777,24 +2777,24 @@ var disableTextSelection;
|
|||
var enableTextSelection;
|
||||
var _userSelect;
|
||||
if ('onselectstart' in document) {
|
||||
disableTextSelection = function () {
|
||||
disableTextSelection = () => {
|
||||
on(window, 'selectstart', preventDefault);
|
||||
};
|
||||
enableTextSelection = function () {
|
||||
enableTextSelection = () => {
|
||||
off(window, 'selectstart', preventDefault);
|
||||
};
|
||||
} else {
|
||||
var userSelectProperty = testProp(
|
||||
['userSelect', 'WebkitUserSelect', 'OUserSelect', 'MozUserSelect', 'msUserSelect']);
|
||||
|
||||
disableTextSelection = function () {
|
||||
disableTextSelection = () => {
|
||||
if (userSelectProperty) {
|
||||
var style = document.documentElement.style;
|
||||
_userSelect = style[userSelectProperty];
|
||||
style[userSelectProperty] = 'none';
|
||||
}
|
||||
};
|
||||
enableTextSelection = function () {
|
||||
enableTextSelection = () => {
|
||||
if (userSelectProperty) {
|
||||
document.documentElement.style[userSelectProperty] = _userSelect;
|
||||
_userSelect = undefined;
|
||||
|
@ -4730,7 +4730,7 @@ var Control = Class.extend({
|
|||
}
|
||||
});
|
||||
|
||||
var control = function (options) {
|
||||
var control = (options) => {
|
||||
return new Control(options);
|
||||
};
|
||||
|
||||
|
@ -5213,7 +5213,7 @@ var Layers = Control.extend({
|
|||
|
||||
// @factory L.control.layers(baselayers?: Object, overlays?: Object, options?: Control.Layers options)
|
||||
// Creates an attribution control with the given layers. Base layers will be switched with radio buttons, while overlays will be switched with checkboxes. Note that all base layers should be passed in the base layers object, but only one should be added to the map during map instantiation.
|
||||
var layers = function (baseLayers, overlays, options) {
|
||||
var layers = (baseLayers, overlays, options) => {
|
||||
return new Layers(baseLayers, overlays, options);
|
||||
};
|
||||
|
||||
|
@ -5346,7 +5346,7 @@ Map.addInitHook(function () {
|
|||
// @namespace Control.Zoom
|
||||
// @factory L.control.zoom(options: Control.Zoom options)
|
||||
// Creates a zoom control
|
||||
var zoom = function (options) {
|
||||
var zoom = (options) => {
|
||||
return new Zoom(options);
|
||||
};
|
||||
|
||||
|
@ -5475,7 +5475,7 @@ var Scale = Control.extend({
|
|||
|
||||
// @factory L.control.scale(options?: Control.Scale options)
|
||||
// Creates an scale control with the given options.
|
||||
var scale = function (options) {
|
||||
var scale = (options) => {
|
||||
return new Scale(options);
|
||||
};
|
||||
|
||||
|
@ -5598,7 +5598,7 @@ Map.addInitHook(function () {
|
|||
// @namespace Control.Attribution
|
||||
// @factory L.control.attribution(options: Control.Attribution options)
|
||||
// Creates an attribution control.
|
||||
var attribution = function (options) {
|
||||
var attribution = (options) => {
|
||||
return new Attribution(options);
|
||||
};
|
||||
|
||||
|
@ -5663,7 +5663,7 @@ var Handler = Class.extend({
|
|||
// @section There is static function which can be called without instantiating L.Handler:
|
||||
// @function addTo(map: Map, name: String): this
|
||||
// Adds a new Handler to the given map with the given name.
|
||||
Handler.addTo = function (map, name) {
|
||||
Handler.addTo = (map, name) => {
|
||||
map.addHandler(name, this);
|
||||
return this;
|
||||
};
|
||||
|
@ -6806,7 +6806,7 @@ var LayerGroup = Layer.extend({
|
|||
|
||||
// @factory L.layerGroup(layers?: Layer[], options?: Object)
|
||||
// Create a layer group, optionally given an initial set of layers and an `options` object.
|
||||
var layerGroup = function (layers, options) {
|
||||
var layerGroup = (layers, options) => {
|
||||
return new LayerGroup(layers, options);
|
||||
};
|
||||
|
||||
|
@ -6898,7 +6898,7 @@ var FeatureGroup = LayerGroup.extend({
|
|||
|
||||
// @factory L.featureGroup(layers: Layer[])
|
||||
// Create a feature group, optionally given an initial set of layers.
|
||||
var featureGroup = function (layers) {
|
||||
var featureGroup = (layers) => {
|
||||
return new FeatureGroup(layers);
|
||||
};
|
||||
|
||||
|
@ -9132,7 +9132,7 @@ var ImageOverlay = Layer.extend({
|
|||
// @factory L.imageOverlay(imageUrl: String, bounds: LatLngBounds, options?: ImageOverlay options)
|
||||
// Instantiates an image overlay object given the URL of the image and the
|
||||
// geographical bounds it is tied to.
|
||||
var imageOverlay = function (url, bounds, options) {
|
||||
var imageOverlay = (url, bounds, options) => {
|
||||
return new ImageOverlay(url, bounds, options);
|
||||
};
|
||||
|
||||
|
@ -9701,7 +9701,7 @@ var Popup = DivOverlay.extend({
|
|||
// @namespace Popup
|
||||
// @factory L.popup(options?: Popup options, source?: Layer)
|
||||
// Instantiates a `Popup` object given an optional `options` object that describes its appearance and location and an optional `source` object that is used to tag the popup with a reference to the Layer to which it refers.
|
||||
var popup = function (options, source) {
|
||||
var popup = (options, source) => {
|
||||
return new Popup(options, source);
|
||||
};
|
||||
|
||||
|
@ -10124,7 +10124,7 @@ var Tooltip = DivOverlay.extend({
|
|||
// @namespace Tooltip
|
||||
// @factory L.tooltip(options?: Tooltip options, source?: Layer)
|
||||
// Instantiates a Tooltip object given an optional `options` object that describes its appearance and location and an optional `source` object that is used to tag the tooltip with a reference to the Layer to which it refers.
|
||||
var tooltip = function (options, source) {
|
||||
var tooltip = (options, source) => {
|
||||
return new Tooltip(options, source);
|
||||
};
|
||||
|
||||
|
|
|
@ -105,7 +105,7 @@
|
|||
|
||||
// Configures the automatic layout for the table columns
|
||||
editor.layoutSwimlanes = true;
|
||||
editor.createSwimlaneLayout = function ()
|
||||
editor.createSwimlaneLayout = () =>
|
||||
{
|
||||
var layout = new mxStackLayout(this.graph, false);
|
||||
layout.fill = true;
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
<script type="text/javascript">
|
||||
// Makes the background of the in-place editor non-transparent
|
||||
var previousStartEditing = mxCellEditor.prototype.startEditing;
|
||||
mxCellEditor.prototype.startEditing = function (cell, trigger)
|
||||
mxCellEditor.prototype.startEditing = (cell, trigger) =>
|
||||
{
|
||||
previousStartEditing.apply(this, arguments);
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ var mxgraph = require("../../../dist/build")({
|
|||
mxRubberband = mxgraph.mxRubberband,
|
||||
mxCellState = mxgraph.mxCellState;
|
||||
|
||||
window.onload = function () {
|
||||
window.onload = () => {
|
||||
// Overridden to define per-shape connection points
|
||||
mxGraph.prototype.getAllConnectionConstraints = function(terminal, source)
|
||||
{
|
||||
|
|
|
@ -173,7 +173,7 @@ for storing references to ports.)
|
|||
|
||||
// White in-place editor text color
|
||||
mxCellEditorStartEditing = mxCellEditor.prototype.startEditing;
|
||||
mxCellEditor.prototype.startEditing = function (cell, trigger)
|
||||
mxCellEditor.prototype.startEditing = (cell, trigger) =>
|
||||
{
|
||||
mxCellEditorStartEditing.apply(this, arguments);
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/**
|
||||
* Copyright (c) 2006-2015, JGraph Ltd
|
||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
||||
* Updated to ES9 syntax by David Morrissey 2021
|
||||
*/
|
||||
|
||||
import mxKeyHandler from "../handler/mxKeyHandler";
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/**
|
||||
* Copyright (c) 2006-2015, JGraph Ltd
|
||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
||||
* Updated to ES9 syntax by David Morrissey 2021
|
||||
*/
|
||||
import mxResources from "../util/mxResources";
|
||||
import mxUtils from "../util/mxUtils";
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/**
|
||||
* Copyright (c) 2006-2015, JGraph Ltd
|
||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
||||
* Updated to ES9 syntax by David Morrissey 2021
|
||||
*/
|
||||
|
||||
import mxClient from "../mxClient";
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/**
|
||||
* Copyright (c) 2006-2015, JGraph Ltd
|
||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
||||
* Updated to ES9 syntax by David Morrissey 2021
|
||||
*/
|
||||
|
||||
class mxCellHighlight {
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/**
|
||||
* Copyright (c) 2006-2015, JGraph Ltd
|
||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
||||
* Updated to ES9 syntax by David Morrissey 2021
|
||||
*/
|
||||
|
||||
class mxCellMarker extends mxEventSource {
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/**
|
||||
* Copyright (c) 2006-2015, JGraph Ltd
|
||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
||||
* Updated to ES9 syntax by David Morrissey 2021
|
||||
*/
|
||||
|
||||
class mxCellTracker extends mxCellMarker {
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/**
|
||||
* Copyright (c) 2006-2015, JGraph Ltd
|
||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
||||
* Updated to ES9 syntax by David Morrissey 2021
|
||||
*/
|
||||
|
||||
class mxConstraintHandler {
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/**
|
||||
* Copyright (c) 2006-2015, JGraph Ltd
|
||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
||||
* Updated to ES9 syntax by David Morrissey 2021
|
||||
*/
|
||||
|
||||
class mxEdgeHandler {
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/**
|
||||
* Copyright (c) 2006-2015, JGraph Ltd
|
||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
||||
* Updated to ES9 syntax by David Morrissey 2021
|
||||
*/
|
||||
|
||||
class mxEdgeSegmentHandler extends mxElbowEdgeHandler {
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/**
|
||||
* Copyright (c) 2006-2015, JGraph Ltd
|
||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
||||
* Updated to ES9 syntax by David Morrissey 2021
|
||||
*/
|
||||
|
||||
class mxElbowEdgeHandler extends mxEdgeHandler {
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/**
|
||||
* Copyright (c) 2006-2015, JGraph Ltd
|
||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
||||
* Updated to ES9 syntax by David Morrissey 2021
|
||||
*/
|
||||
|
||||
class mxGraphHandler {
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/**
|
||||
* Copyright (c) 2006-2015, JGraph Ltd
|
||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
||||
* Updated to ES9 syntax by David Morrissey 2021
|
||||
*/
|
||||
|
||||
class mxHandle {
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/**
|
||||
* Copyright (c) 2006-2015, JGraph Ltd
|
||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
||||
* Updated to ES9 syntax by David Morrissey 2021
|
||||
*/
|
||||
|
||||
class mxKeyHandler {
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/**
|
||||
* Copyright (c) 2006-2015, JGraph Ltd
|
||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
||||
* Updated to ES9 syntax by David Morrissey 2021
|
||||
*/
|
||||
import mxEventSource from "../util/mxEventSource";
|
||||
import mxUtils from "../util/mxUtils";
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/**
|
||||
* Copyright (c) 2006-2015, JGraph Ltd
|
||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
||||
* Updated to ES9 syntax by David Morrissey 2021
|
||||
*/
|
||||
import mxPopupMenu from "../util/mxPopupMenu";
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/**
|
||||
* Copyright (c) 2006-2015, JGraph Ltd
|
||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
||||
* Updated to ES9 syntax by David Morrissey 2021
|
||||
*/
|
||||
|
||||
class mxSelectionCellsHandler extends mxEventSource {
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/**
|
||||
* Copyright (c) 2006-2015, JGraph Ltd
|
||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
||||
* Updated to ES9 syntax by David Morrissey 2021
|
||||
*/
|
||||
|
||||
class mxTooltipHandler {
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/**
|
||||
* Copyright (c) 2006-2015, JGraph Ltd
|
||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
||||
* Updated to ES9 syntax by David Morrissey 2021
|
||||
*/
|
||||
|
||||
class mxVertexHandler {
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/**
|
||||
* Copyright (c) 2006-2015, JGraph Ltd
|
||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
||||
* Updated to ES9 syntax by David Morrissey 2021
|
||||
*/
|
||||
|
||||
import mxCell from "FIXME";
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/**
|
||||
* Copyright (c) 2006-2015, JGraph Ltd
|
||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
||||
* Updated to ES9 syntax by David Morrissey 2021
|
||||
*/
|
||||
|
||||
import mxObjectCodec from "./mxObjectCodec";
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/**
|
||||
* Copyright (c) 2006-2015, JGraph Ltd
|
||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
||||
* Updated to ES9 syntax by David Morrissey 2021
|
||||
*/
|
||||
|
||||
import mxUtils from "../util/mxUtils";
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/**
|
||||
* Copyright (c) 2006-2015, JGraph Ltd
|
||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
||||
* Updated to ES9 syntax by David Morrissey 2021
|
||||
*/
|
||||
|
||||
import mxUtils from "../util/mxUtils";
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/**
|
||||
* Copyright (c) 2006-2015, JGraph Ltd
|
||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
||||
* Updated to ES9 syntax by David Morrissey 2021
|
||||
*/
|
||||
|
||||
import mxObjectCodec from "FIXME";
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/**
|
||||
* Copyright (c) 2006-2015, JGraph Ltd
|
||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
||||
* Updated to ES9 syntax by David Morrissey 2021
|
||||
*/
|
||||
|
||||
import mxDefaultPopupMenu from "FIXME";
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/**
|
||||
* Copyright (c) 2006-2015, JGraph Ltd
|
||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
||||
* Updated to ES9 syntax by David Morrissey 2021
|
||||
*/
|
||||
|
||||
import mxObjectCodec from "FIXME";
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/**
|
||||
* Copyright (c) 2006-2015, JGraph Ltd
|
||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
||||
* Updated to ES9 syntax by David Morrissey 2021
|
||||
*/
|
||||
|
||||
import mxEditor from "FIXME";
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/**
|
||||
* Copyright (c) 2006-2015, JGraph Ltd
|
||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
||||
* Updated to ES9 syntax by David Morrissey 2021
|
||||
*/
|
||||
|
||||
import mxObjectCodec from "FIXME";
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/**
|
||||
* Copyright (c) 2006-2015, JGraph Ltd
|
||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
||||
* Updated to ES9 syntax by David Morrissey 2021
|
||||
*/
|
||||
|
||||
import mxGraph from "FIXME";
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/**
|
||||
* Copyright (c) 2006-2015, JGraph Ltd
|
||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
||||
* Updated to ES9 syntax by David Morrissey 2021
|
||||
*/
|
||||
|
||||
import mxGraphView from "FIXME";
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/**
|
||||
* Copyright (c) 2006-2015, JGraph Ltd
|
||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
||||
* Updated to ES9 syntax by David Morrissey 2021
|
||||
*/
|
||||
|
||||
import mxGraphModel from "FIXME";
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/**
|
||||
* Copyright (c) 2006-2015, JGraph Ltd
|
||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
||||
* Updated to ES9 syntax by David Morrissey 2021
|
||||
*/
|
||||
|
||||
class mxObjectCodec {
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/**
|
||||
* Copyright (c) 2006-2015, JGraph Ltd
|
||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
||||
* Updated to ES9 syntax by David Morrissey 2021
|
||||
*/
|
||||
|
||||
import mxRootChange from "FIXME";
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/**
|
||||
* Copyright (c) 2006-2015, JGraph Ltd
|
||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
||||
* Updated to ES9 syntax by David Morrissey 2021
|
||||
*/
|
||||
|
||||
import mxUtils from "../util/mxUtils";
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/**
|
||||
* Copyright (c) 2006-2015, JGraph Ltd
|
||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
||||
* Updated to ES9 syntax by David Morrissey 2021
|
||||
*/
|
||||
|
||||
import mxObjectCodec from "FIXME";
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/**
|
||||
* Copyright (c) 2006-2015, JGraph Ltd
|
||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
||||
* Updated to ES9 syntax by David Morrissey 2021
|
||||
*/
|
||||
|
||||
class mxGraphAbstractHierarchyCell {
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/**
|
||||
* Copyright (c) 2006-2015, JGraph Ltd
|
||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
||||
* Updated to ES9 syntax by David Morrissey 2021
|
||||
*/
|
||||
|
||||
class mxGraphHierarchyEdge extends mxGraphAbstractHierarchyCell {
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/**
|
||||
* Copyright (c) 2006-2015, JGraph Ltd
|
||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
||||
* Updated to ES9 syntax by David Morrissey 2021
|
||||
*/
|
||||
|
||||
import mxDictionary from "FIXME";
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/**
|
||||
* Copyright (c) 2006-2015, JGraph Ltd
|
||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
||||
* Updated to ES9 syntax by David Morrissey 2021
|
||||
*/
|
||||
|
||||
class mxGraphHierarchyNode extends mxGraphAbstractHierarchyCell {
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/**
|
||||
* Copyright (c) 2006-2018, JGraph Ltd
|
||||
* Copyright (c) 2006-2018, Gaudenz Alder
|
||||
* Updated to ES9 syntax by David Morrissey 2021
|
||||
*/
|
||||
|
||||
class mxSwimlaneModel {
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/**
|
||||
* Copyright (c) 2006-2018, JGraph Ltd
|
||||
* Copyright (c) 2006-2018, Gaudenz Alder
|
||||
* Updated to ES9 syntax by David Morrissey 2021
|
||||
*/
|
||||
|
||||
class mxHierarchicalLayout extends mxGraphLayout {
|
||||
|
@ -610,8 +611,8 @@ class mxHierarchicalLayout extends mxGraphLayout {
|
|||
* null for the first step of the traversal.
|
||||
* allVertices - Array of cell paths for the visited cells.
|
||||
*/
|
||||
traverse = function (vertex, directed, edge, allVertices, currentComp,
|
||||
hierarchyVertices, filledVertexSet) {
|
||||
traverse = (vertex, directed, edge, allVertices, currentComp,
|
||||
hierarchyVertices, filledVertexSet) => {
|
||||
if (vertex != null && allVertices != null) {
|
||||
// Has this vertex been seen before in any traversal
|
||||
// And if the filled vertex set is populated, only
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/**
|
||||
* Copyright (c) 2006-2015, JGraph Ltd
|
||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
||||
* Updated to ES9 syntax by David Morrissey 2021
|
||||
*/
|
||||
|
||||
class mxSwimlaneLayout extends mxGraphLayout {
|
||||
|
@ -707,8 +708,8 @@ class mxSwimlaneLayout extends mxGraphLayout {
|
|||
* allVertices - Array of cell paths for the visited cells.
|
||||
* swimlaneIndex - the laid out order index of the swimlane vertex is contained in
|
||||
*/
|
||||
traverse = function (vertex, directed, edge, allVertices, currentComp,
|
||||
hierarchyVertices, filledVertexSet, swimlaneIndex) {
|
||||
traverse = (vertex, directed, edge, allVertices, currentComp,
|
||||
hierarchyVertices, filledVertexSet, swimlaneIndex) => {
|
||||
if (vertex != null && allVertices != null) {
|
||||
// Has this vertex been seen before in any traversal
|
||||
// And if the filled vertex set is populated, only
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/**
|
||||
* Copyright (c) 2006-2018, JGraph Ltd
|
||||
* Copyright (c) 2006-2018, Gaudenz Alder
|
||||
* Updated to ES9 syntax by David Morrissey 2021
|
||||
*/
|
||||
import mxHierarchicalLayoutStage from "./mxHierarchicalLayoutStage";
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/**
|
||||
* Copyright (c) 2006-2015, JGraph Ltd
|
||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
||||
* Updated to ES9 syntax by David Morrissey 2021
|
||||
*/
|
||||
|
||||
class mxHierarchicalLayoutStage {
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/**
|
||||
* Copyright (c) 2006-2015, JGraph Ltd
|
||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
||||
* Updated to ES9 syntax by David Morrissey 2021
|
||||
*/
|
||||
import mxHierarchicalLayoutStage from "./mxHierarchicalLayoutStage";
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/**
|
||||
* Copyright (c) 2006-2015, JGraph Ltd
|
||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
||||
* Updated to ES9 syntax by David Morrissey 2021
|
||||
*/
|
||||
import mxHierarchicalLayoutStage from "./mxHierarchicalLayoutStage";
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/**
|
||||
* Copyright (c) 2006-2015, JGraph Ltd
|
||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
||||
* Updated to ES9 syntax by David Morrissey 2021
|
||||
*/
|
||||
import mxHierarchicalLayoutStage from "./mxHierarchicalLayoutStage";
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/**
|
||||
* Copyright (c) 2006-2015, JGraph Ltd
|
||||
* Copyright (c) 2006-2015, Gaudenz Alder
|
||||
* Updated to ES9 syntax by David Morrissey 2021
|
||||
*/
|
||||
|
||||
class mxCircleLayout extends mxGraphLayout {
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue