290 lines
145 KiB
HTML
290 lines
145 KiB
HTML
<!DOCTYPE html><html class="default"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>RadialTreeLayout | @maxgraph/core</title><meta name="description" content="Documentation for @maxgraph/core"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.body.classList.add(localStorage.getItem("tsd-theme") || "os")</script><header><div class="tsd-page-toolbar"><div class="container"><div class="table-wrap"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget search no-caption">Search</label><input type="text" id="tsd-search-field"/></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@maxgraph/core</a></div><div class="table-cell" id="tsd-widgets"><div id="tsd-filter"><a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a><div class="tsd-filter-group"><div class="tsd-select" id="tsd-filter-visibility"><span class="tsd-select-label">All</span><ul class="tsd-select-list"><li data-value="public">Public</li><li data-value="protected">Public/Protected</li><li data-value="private" class="selected">All</li></ul></div> <input type="checkbox" id="tsd-filter-inherited" checked/><label class="tsd-widget" for="tsd-filter-inherited">Inherited</label></div></div><a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a></div></div></div></div><div class="tsd-page-title"><div class="container"><ul class="tsd-breadcrumb"><li><a href="../index.html">@maxgraph/core</a></li><li><a href="RadialTreeLayout.html">RadialTreeLayout</a></li></ul><h1>Class RadialTreeLayout</h1></div></div></header><div class="container container-main"><div class="row"><div class="col-8 col-content"><section class="tsd-panel tsd-comment"><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Extends {@link mxGraphLayout} to implement a radial tree algorithm. This
|
|
layout is suitable for graphs that have no cycles (trees). Vertices that are
|
|
not connected to the tree will be ignored by this layout.</p>
|
|
</div><div><pre><code class="language-javascript"><span class="hl-3">var</span><span class="hl-1"> </span><span class="hl-0">layout</span><span class="hl-1"> = </span><span class="hl-3">new</span><span class="hl-1"> </span><span class="hl-2">mxRadialTreeLayout</span><span class="hl-1">(</span><span class="hl-0">graph</span><span class="hl-1">);</span><br/><span class="hl-0">layout</span><span class="hl-1">.</span><span class="hl-2">execute</span><span class="hl-1">(</span><span class="hl-0">graph</span><span class="hl-1">.</span><span class="hl-2">getDefaultParent</span><span class="hl-1">());</span>
|
|
</code></pre>
|
|
</div></div></section><section class="tsd-panel tsd-hierarchy"><h3>Hierarchy</h3><ul class="tsd-hierarchy"><li><a href="CompactTreeLayout.html" class="tsd-signature-type" data-tsd-kind="Class">CompactTreeLayout</a><ul class="tsd-hierarchy"><li><span class="target">RadialTreeLayout</span></li></ul></li></ul></section><section class="tsd-panel-group tsd-index-group"><h2>Index</h2><section class="tsd-panel tsd-index-panel"><div class="tsd-index-content"><section class="tsd-index-section "><h3>Constructors</h3><ul class="tsd-index-list"><li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite"><a href="RadialTreeLayout.html#constructor" class="tsd-kind-icon">constructor</a></li></ul></section><section class="tsd-index-section "><h3>Properties</h3><ul class="tsd-index-list"><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#alignRanks" class="tsd-kind-icon">align<wbr/>Ranks</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="RadialTreeLayout.html#angleOffset" class="tsd-kind-icon">angle<wbr/>Offset</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="RadialTreeLayout.html#autoRadius" class="tsd-kind-icon">auto<wbr/>Radius</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="RadialTreeLayout.html#centerX" class="tsd-kind-icon">centerX</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="RadialTreeLayout.html#centerY" class="tsd-kind-icon">centerY</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#channelBuffer" class="tsd-kind-icon">channel<wbr/>Buffer</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#edgeRouting" class="tsd-kind-icon">edge<wbr/>Routing</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#graph" class="tsd-kind-icon">graph</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#groupPadding" class="tsd-kind-icon">group<wbr/>Padding</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#groupPaddingBottom" class="tsd-kind-icon">group<wbr/>Padding<wbr/>Bottom</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#groupPaddingLeft" class="tsd-kind-icon">group<wbr/>Padding<wbr/>Left</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#groupPaddingRight" class="tsd-kind-icon">group<wbr/>Padding<wbr/>Right</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#groupPaddingTop" class="tsd-kind-icon">group<wbr/>Padding<wbr/>Top</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#horizontal" class="tsd-kind-icon">horizontal</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#invert" class="tsd-kind-icon">invert</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-overwrite"><a href="RadialTreeLayout.html#levelDistance" class="tsd-kind-icon">level<wbr/>Distance</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#maintainParentLocation" class="tsd-kind-icon">maintain<wbr/>Parent<wbr/>Location</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#maxRankHeight" class="tsd-kind-icon">max<wbr/>Rank<wbr/>Height</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#minEdgeJetty" class="tsd-kind-icon">min<wbr/>Edge<wbr/>Jetty</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#moveTree" class="tsd-kind-icon">move<wbr/>Tree</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#node" class="tsd-kind-icon">node</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-overwrite"><a href="RadialTreeLayout.html#nodeDistance" class="tsd-kind-icon">node<wbr/>Distance</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#parent" class="tsd-kind-icon">parent</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#parentX" class="tsd-kind-icon">parentX</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#parentY" class="tsd-kind-icon">parentY</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#parentsChanged" class="tsd-kind-icon">parents<wbr/>Changed</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#prefHozEdgeSep" class="tsd-kind-icon">pref<wbr/>Hoz<wbr/>Edge<wbr/>Sep</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#prefVertEdgeOff" class="tsd-kind-icon">pref<wbr/>Vert<wbr/>Edge<wbr/>Off</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#resetEdges" class="tsd-kind-icon">reset<wbr/>Edges</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#resizeParent" class="tsd-kind-icon">resize<wbr/>Parent</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#root" class="tsd-kind-icon">root</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="RadialTreeLayout.html#rootx" class="tsd-kind-icon">rootx</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="RadialTreeLayout.html#rooty" class="tsd-kind-icon">rooty</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="RadialTreeLayout.html#row" class="tsd-kind-icon">row</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="RadialTreeLayout.html#rowMaxCenX" class="tsd-kind-icon">row<wbr/>Max<wbr/>CenX</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="RadialTreeLayout.html#rowMaxX" class="tsd-kind-icon">row<wbr/>MaxX</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="RadialTreeLayout.html#rowMinCenX" class="tsd-kind-icon">row<wbr/>Min<wbr/>CenX</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="RadialTreeLayout.html#rowMinX" class="tsd-kind-icon">row<wbr/>MinX</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="RadialTreeLayout.html#rowRadi" class="tsd-kind-icon">row<wbr/>Radi</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-overwrite"><a href="RadialTreeLayout.html#sortEdges" class="tsd-kind-icon">sort<wbr/>Edges</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#useBoundingBox" class="tsd-kind-icon">use<wbr/>Bounding<wbr/>Box</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#visited" class="tsd-kind-icon">visited</a></li></ul></section><section class="tsd-index-section "><h3>Methods</h3><ul class="tsd-index-list"><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#adjustParents" class="tsd-kind-icon">adjust<wbr/>Parents</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#apply" class="tsd-kind-icon">apply</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#arrangeGroups" class="tsd-kind-icon">arrange<wbr/>Groups</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#attachParent" class="tsd-kind-icon">attach<wbr/>Parent</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#bridge" class="tsd-kind-icon">bridge</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="RadialTreeLayout.html#calcRowDims" class="tsd-kind-icon">calc<wbr/>Row<wbr/>Dims</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#createLine" class="tsd-kind-icon">create<wbr/>Line</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#createNode" class="tsd-kind-icon">create<wbr/>Node</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#dfs" class="tsd-kind-icon">dfs</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="RadialTreeLayout.html#execute" class="tsd-kind-icon">execute</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#findRankHeights" class="tsd-kind-icon">find<wbr/>Rank<wbr/>Heights</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#getConstraint" class="tsd-kind-icon">get<wbr/>Constraint</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#getGraph" class="tsd-kind-icon">get<wbr/>Graph</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#getParentOffset" class="tsd-kind-icon">get<wbr/>Parent<wbr/>Offset</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#getVertexBounds" class="tsd-kind-icon">get<wbr/>Vertex<wbr/>Bounds</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#horizontalLayout" class="tsd-kind-icon">horizontal<wbr/>Layout</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#isAncestor" class="tsd-kind-icon">is<wbr/>Ancestor</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#isEdgeIgnored" class="tsd-kind-icon">is<wbr/>Edge<wbr/>Ignored</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#isHorizontal" class="tsd-kind-icon">is<wbr/>Horizontal</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="RadialTreeLayout.html#isVertexIgnored" class="tsd-kind-icon">is<wbr/>Vertex<wbr/>Ignored</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#isVertexMovable" class="tsd-kind-icon">is<wbr/>Vertex<wbr/>Movable</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#join" class="tsd-kind-icon">join</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#layout" class="tsd-kind-icon">layout</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#layoutLeaf" class="tsd-kind-icon">layout<wbr/>Leaf</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#localEdgeProcessing" class="tsd-kind-icon">local<wbr/>Edge<wbr/>Processing</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#merge" class="tsd-kind-icon">merge</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#moveCell" class="tsd-kind-icon">move<wbr/>Cell</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#moveNode" class="tsd-kind-icon">move<wbr/>Node</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#offset" class="tsd-kind-icon">offset</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#processNodeOutgoing" class="tsd-kind-icon">process<wbr/>Node<wbr/>Outgoing</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#resizeCell" class="tsd-kind-icon">resize<wbr/>Cell</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#setCellHeights" class="tsd-kind-icon">set<wbr/>Cell<wbr/>Heights</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#setEdgePoints" class="tsd-kind-icon">set<wbr/>Edge<wbr/>Points</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#setEdgeStyleEnabled" class="tsd-kind-icon">set<wbr/>Edge<wbr/>Style<wbr/>Enabled</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#setOrthogonalEdge" class="tsd-kind-icon">set<wbr/>Orthogonal<wbr/>Edge</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#setVertexLocation" class="tsd-kind-icon">set<wbr/>Vertex<wbr/>Location</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#sortOutgoingEdges" class="tsd-kind-icon">sort<wbr/>Outgoing<wbr/>Edges</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#traverse" class="tsd-kind-icon">traverse</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#verticalLayout" class="tsd-kind-icon">vertical<wbr/>Layout</a></li></ul></section></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Constructors</h2><section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite"><a id="constructor" class="tsd-anchor"></a><h3>constructor</h3><ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite"><li class="tsd-signature tsd-kind-icon">new <wbr/>Radial<wbr/>Tree<wbr/>Layout<span class="tsd-signature-symbol">(</span>graph<span class="tsd-signature-symbol">: </span><a href="Graph.html" class="tsd-signature-type" data-tsd-kind="Class">Graph</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="RadialTreeLayout.html" class="tsd-signature-type" data-tsd-kind="Class">RadialTreeLayout</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Overrides <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#constructor">constructor</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/RadialTreeLayout.ts#L26">view/layout/RadialTreeLayout.ts:26</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>graph: <a href="Graph.html" class="tsd-signature-type" data-tsd-kind="Class">Graph</a></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="RadialTreeLayout.html" class="tsd-signature-type" data-tsd-kind="Class">RadialTreeLayout</a></h4></li></ul></section></section><section class="tsd-panel-group tsd-member-group "><h2>Properties</h2><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="alignRanks" class="tsd-anchor"></a><h3>align<wbr/>Ranks</h3><div class="tsd-signature tsd-kind-icon">align<wbr/>Ranks<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></div><aside class="tsd-sources"><p>Inherited from <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#alignRanks">alignRanks</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/CompactTreeLayout.ts#L198">view/layout/CompactTreeLayout.ts:198</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Whether or not the tops of cells in each rank should be aligned
|
|
across the rank</p>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="angleOffset" class="tsd-anchor"></a><h3>angle<wbr/>Offset</h3><div class="tsd-signature tsd-kind-icon">angle<wbr/>Offset<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0.5</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/RadialTreeLayout.ts#L37">view/layout/RadialTreeLayout.ts:37</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>The initial offset to compute the angle position.</p>
|
|
</div><dl class="tsd-comment-tags"><dt>default</dt><dd><p>0.5</p>
|
|
</dd></dl></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="autoRadius" class="tsd-anchor"></a><h3>auto<wbr/>Radius</h3><div class="tsd-signature tsd-kind-icon">auto<wbr/>Radius<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/RadialTreeLayout.ts#L67">view/layout/RadialTreeLayout.ts:67</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Specifies if the radios should be computed automatically</p>
|
|
</div><dl class="tsd-comment-tags"><dt>default</dt><dd><p>false</p>
|
|
</dd></dl></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="centerX" class="tsd-anchor"></a><h3>centerX</h3><div class="tsd-signature tsd-kind-icon">centerX<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = null</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/RadialTreeLayout.ts#L30">view/layout/RadialTreeLayout.ts:30</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="centerY" class="tsd-anchor"></a><h3>centerY</h3><div class="tsd-signature tsd-kind-icon">centerY<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = null</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/RadialTreeLayout.ts#L31">view/layout/RadialTreeLayout.ts:31</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="channelBuffer" class="tsd-anchor"></a><h3>channel<wbr/>Buffer</h3><div class="tsd-signature tsd-kind-icon">channel<wbr/>Buffer<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 4</span></div><aside class="tsd-sources"><p>Inherited from <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#channelBuffer">channelBuffer</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/CompactTreeLayout.ts#L181">view/layout/CompactTreeLayout.ts:181</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>The size of the vertical buffer in the center of inter-rank channels
|
|
where edge control points should not be placed.</p>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="edgeRouting" class="tsd-anchor"></a><h3>edge<wbr/>Routing</h3><div class="tsd-signature tsd-kind-icon">edge<wbr/>Routing<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = true</span></div><aside class="tsd-sources"><p>Inherited from <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#edgeRouting">edgeRouting</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/CompactTreeLayout.ts#L186">view/layout/CompactTreeLayout.ts:186</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Whether or not to apply the internal tree edge routing.</p>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="graph" class="tsd-anchor"></a><h3>graph</h3><div class="tsd-signature tsd-kind-icon">graph<span class="tsd-signature-symbol">:</span> <a href="Graph.html" class="tsd-signature-type" data-tsd-kind="Class">Graph</a></div><aside class="tsd-sources"><p>Inherited from <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#graph">graph</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/GraphLayout.ts#L37">view/layout/GraphLayout.ts:37</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Reference to the enclosing {@link mxGraph}.</p>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="groupPadding" class="tsd-anchor"></a><h3>group<wbr/>Padding</h3><div class="tsd-signature tsd-kind-icon">group<wbr/>Padding<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 10</span></div><aside class="tsd-sources"><p>Inherited from <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#groupPadding">groupPadding</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/CompactTreeLayout.ts#L104">view/layout/CompactTreeLayout.ts:104</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Padding added to resized parents.</p>
|
|
</div><dl class="tsd-comment-tags"><dt>default</dt><dd><p>10</p>
|
|
</dd></dl></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="groupPaddingBottom" class="tsd-anchor"></a><h3>group<wbr/>Padding<wbr/>Bottom</h3><div class="tsd-signature tsd-kind-icon">group<wbr/>Padding<wbr/>Bottom<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0</span></div><aside class="tsd-sources"><p>Inherited from <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#groupPaddingBottom">groupPaddingBottom</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/CompactTreeLayout.ts#L122">view/layout/CompactTreeLayout.ts:122</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Bottom padding added to resized parents.</p>
|
|
</div><dl class="tsd-comment-tags"><dt>default</dt><dd><p>0</p>
|
|
</dd></dl></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="groupPaddingLeft" class="tsd-anchor"></a><h3>group<wbr/>Padding<wbr/>Left</h3><div class="tsd-signature tsd-kind-icon">group<wbr/>Padding<wbr/>Left<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0</span></div><aside class="tsd-sources"><p>Inherited from <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#groupPaddingLeft">groupPaddingLeft</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/CompactTreeLayout.ts#L128">view/layout/CompactTreeLayout.ts:128</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Left padding added to resized parents.</p>
|
|
</div><dl class="tsd-comment-tags"><dt>default</dt><dd><p>0</p>
|
|
</dd></dl></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="groupPaddingRight" class="tsd-anchor"></a><h3>group<wbr/>Padding<wbr/>Right</h3><div class="tsd-signature tsd-kind-icon">group<wbr/>Padding<wbr/>Right<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0</span></div><aside class="tsd-sources"><p>Inherited from <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#groupPaddingRight">groupPaddingRight</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/CompactTreeLayout.ts#L116">view/layout/CompactTreeLayout.ts:116</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Right padding added to resized parents.</p>
|
|
</div><dl class="tsd-comment-tags"><dt>default</dt><dd><p>0</p>
|
|
</dd></dl></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="groupPaddingTop" class="tsd-anchor"></a><h3>group<wbr/>Padding<wbr/>Top</h3><div class="tsd-signature tsd-kind-icon">group<wbr/>Padding<wbr/>Top<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0</span></div><aside class="tsd-sources"><p>Inherited from <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#groupPaddingTop">groupPaddingTop</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/CompactTreeLayout.ts#L110">view/layout/CompactTreeLayout.ts:110</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Top padding added to resized parents.</p>
|
|
</div><dl class="tsd-comment-tags"><dt>default</dt><dd><p>0</p>
|
|
</dd></dl></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="horizontal" class="tsd-anchor"></a><h3>horizontal</h3><div class="tsd-signature tsd-kind-icon">horizontal<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = true</span></div><aside class="tsd-sources"><p>Inherited from <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#horizontal">horizontal</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/CompactTreeLayout.ts#L77">view/layout/CompactTreeLayout.ts:77</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Specifies the orientation of the layout.</p>
|
|
</div><dl class="tsd-comment-tags"><dt>default</dt><dd><p>true</p>
|
|
</dd></dl></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="invert" class="tsd-anchor"></a><h3>invert</h3><div class="tsd-signature tsd-kind-icon">invert<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></div><aside class="tsd-sources"><p>Inherited from <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#invert">invert</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/CompactTreeLayout.ts#L83">view/layout/CompactTreeLayout.ts:83</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Specifies if edge directions should be inverted.</p>
|
|
</div><dl class="tsd-comment-tags"><dt>default</dt><dd><p>false.</p>
|
|
</dd></dl></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-overwrite"><a id="levelDistance" class="tsd-anchor"></a><h3>level<wbr/>Distance</h3><div class="tsd-signature tsd-kind-icon">level<wbr/>Distance<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 120</span></div><aside class="tsd-sources"><p>Overrides <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#levelDistance">levelDistance</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/RadialTreeLayout.ts#L55">view/layout/RadialTreeLayout.ts:55</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Holds the levelDistance.</p>
|
|
</div><dl class="tsd-comment-tags"><dt>default</dt><dd><p>120</p>
|
|
</dd></dl></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="maintainParentLocation" class="tsd-anchor"></a><h3>maintain<wbr/>Parent<wbr/>Location</h3><div class="tsd-signature tsd-kind-icon">maintain<wbr/>Parent<wbr/>Location<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></div><aside class="tsd-sources"><p>Inherited from <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#maintainParentLocation">maintainParentLocation</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/CompactTreeLayout.ts#L98">view/layout/CompactTreeLayout.ts:98</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Specifies if the parent location should be maintained, so that the
|
|
top, left corner stays the same before and after execution of
|
|
the layout. Default is false for backwards compatibility.</p>
|
|
</div><dl class="tsd-comment-tags"><dt>default</dt><dd><p>false</p>
|
|
</dd></dl></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="maxRankHeight" class="tsd-anchor"></a><h3>max<wbr/>Rank<wbr/>Height</h3><div class="tsd-signature tsd-kind-icon">max<wbr/>Rank<wbr/>Height<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="CellArray.html" class="tsd-signature-type" data-tsd-kind="Class">CellArray</a><span class="tsd-signature-symbol"> = null</span></div><aside class="tsd-sources"><p>Inherited from <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#maxRankHeight">maxRankHeight</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/CompactTreeLayout.ts#L204">view/layout/CompactTreeLayout.ts:204</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>An array of the maximum height of cells (relative to the layout direction)
|
|
per rank</p>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="minEdgeJetty" class="tsd-anchor"></a><h3>min<wbr/>Edge<wbr/>Jetty</h3><div class="tsd-signature tsd-kind-icon">min<wbr/>Edge<wbr/>Jetty<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 8</span></div><aside class="tsd-sources"><p>Inherited from <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#minEdgeJetty">minEdgeJetty</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/CompactTreeLayout.ts#L175">view/layout/CompactTreeLayout.ts:175</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>The minimum distance for an edge jetty from a vertex.</p>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="moveTree" class="tsd-anchor"></a><h3>move<wbr/>Tree</h3><div class="tsd-signature tsd-kind-icon">move<wbr/>Tree<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></div><aside class="tsd-sources"><p>Inherited from <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#moveTree">moveTree</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/CompactTreeLayout.ts#L141">view/layout/CompactTreeLayout.ts:141</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Specifies if the tree should be moved to the top, left corner
|
|
if it is inside a top-level layer.</p>
|
|
</div><dl class="tsd-comment-tags"><dt>default</dt><dd><p>false</p>
|
|
</dd></dl></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="node" class="tsd-anchor"></a><h3>node</h3><div class="tsd-signature tsd-kind-icon">node<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">_mxCompactTreeLayoutNode</span><span class="tsd-signature-symbol"> = null</span></div><aside class="tsd-sources"><p>Inherited from <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#node">node</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/CompactTreeLayout.ts#L215">view/layout/CompactTreeLayout.ts:215</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>The internal node representation of the root cell. Do not set directly
|
|
, this value is only exposed to assist with post-processing functionality</p>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-overwrite"><a id="nodeDistance" class="tsd-anchor"></a><h3>node<wbr/>Distance</h3><div class="tsd-signature tsd-kind-icon">node<wbr/>Distance<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 10</span></div><aside class="tsd-sources"><p>Overrides <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#nodeDistance">nodeDistance</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/RadialTreeLayout.ts#L61">view/layout/RadialTreeLayout.ts:61</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Holds the nodeDistance.</p>
|
|
</div><dl class="tsd-comment-tags"><dt>default</dt><dd><p>10</p>
|
|
</dd></dl></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="parent" class="tsd-anchor"></a><h3>parent</h3><div class="tsd-signature tsd-kind-icon">parent<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="Cell.html" class="tsd-signature-type" data-tsd-kind="Class">Cell</a><span class="tsd-signature-symbol"> = null</span></div><aside class="tsd-sources"><p>Inherited from <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#parent">parent</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/GraphLayout.ts#L48">view/layout/GraphLayout.ts:48</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>The parent cell of the layout, if any</p>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="parentX" class="tsd-anchor"></a><h3>parentX</h3><div class="tsd-signature tsd-kind-icon">parentX<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = null</span></div><aside class="tsd-sources"><p>Inherited from <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#parentX">parentX</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/CompactTreeLayout.ts#L69">view/layout/CompactTreeLayout.ts:69</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="parentY" class="tsd-anchor"></a><h3>parentY</h3><div class="tsd-signature tsd-kind-icon">parentY<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = null</span></div><aside class="tsd-sources"><p>Inherited from <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#parentY">parentY</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/CompactTreeLayout.ts#L70">view/layout/CompactTreeLayout.ts:70</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="parentsChanged" class="tsd-anchor"></a><h3>parents<wbr/>Changed</h3><div class="tsd-signature tsd-kind-icon">parents<wbr/>Changed<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-symbol">{}</span><span class="tsd-signature-symbol"> = null</span></div><aside class="tsd-sources"><p>Inherited from <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#parentsChanged">parentsChanged</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/CompactTreeLayout.ts#L134">view/layout/CompactTreeLayout.ts:134</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>A set of the parents that need updating based on children
|
|
process as part of the layout.</p>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="prefHozEdgeSep" class="tsd-anchor"></a><h3>pref<wbr/>Hoz<wbr/>Edge<wbr/>Sep</h3><div class="tsd-signature tsd-kind-icon">pref<wbr/>Hoz<wbr/>Edge<wbr/>Sep<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 5</span></div><aside class="tsd-sources"><p>Inherited from <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#prefHozEdgeSep">prefHozEdgeSep</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/CompactTreeLayout.ts#L165">view/layout/CompactTreeLayout.ts:165</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>The preferred horizontal distance between edges exiting a vertex.</p>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="prefVertEdgeOff" class="tsd-anchor"></a><h3>pref<wbr/>Vert<wbr/>Edge<wbr/>Off</h3><div class="tsd-signature tsd-kind-icon">pref<wbr/>Vert<wbr/>Edge<wbr/>Off<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 4</span></div><aside class="tsd-sources"><p>Inherited from <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#prefVertEdgeOff">prefVertEdgeOff</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/CompactTreeLayout.ts#L170">view/layout/CompactTreeLayout.ts:170</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>The preferred vertical offset between edges exiting a vertex.</p>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="resetEdges" class="tsd-anchor"></a><h3>reset<wbr/>Edges</h3><div class="tsd-signature tsd-kind-icon">reset<wbr/>Edges<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = true</span></div><aside class="tsd-sources"><p>Inherited from <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#resetEdges">resetEdges</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/CompactTreeLayout.ts#L160">view/layout/CompactTreeLayout.ts:160</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Specifies if all edge points of traversed edges should be removed.</p>
|
|
</div><dl class="tsd-comment-tags"><dt>default</dt><dd><p>true</p>
|
|
</dd></dl></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="resizeParent" class="tsd-anchor"></a><h3>resize<wbr/>Parent</h3><div class="tsd-signature tsd-kind-icon">resize<wbr/>Parent<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = true</span></div><aside class="tsd-sources"><p>Inherited from <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#resizeParent">resizeParent</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/CompactTreeLayout.ts#L90">view/layout/CompactTreeLayout.ts:90</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>If the parents should be resized to match the width/height of the
|
|
children. Default is true.</p>
|
|
</div><dl class="tsd-comment-tags"><dt>default</dt><dd><p>true</p>
|
|
</dd></dl></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="root" class="tsd-anchor"></a><h3>root</h3><div class="tsd-signature tsd-kind-icon">root<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="Cell.html" class="tsd-signature-type" data-tsd-kind="Class">Cell</a><span class="tsd-signature-symbol"> = null</span></div><aside class="tsd-sources"><p>Inherited from <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#root">root</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/CompactTreeLayout.ts#L209">view/layout/CompactTreeLayout.ts:209</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>The cell to use as the root of the tree</p>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="rootx" class="tsd-anchor"></a><h3>rootx</h3><div class="tsd-signature tsd-kind-icon">rootx<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/RadialTreeLayout.ts#L43">view/layout/RadialTreeLayout.ts:43</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>The X co-ordinate of the root cell</p>
|
|
</div><dl class="tsd-comment-tags"><dt>default</dt><dd><p>0</p>
|
|
</dd></dl></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="rooty" class="tsd-anchor"></a><h3>rooty</h3><div class="tsd-signature tsd-kind-icon">rooty<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/RadialTreeLayout.ts#L49">view/layout/RadialTreeLayout.ts:49</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>The Y co-ordinate of the root cell</p>
|
|
</div><dl class="tsd-comment-tags"><dt>default</dt><dd><p>0</p>
|
|
</dd></dl></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="row" class="tsd-anchor"></a><h3>row</h3><div class="tsd-signature tsd-kind-icon">row<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">_mxCompactTreeLayoutNode</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> = []</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/RadialTreeLayout.ts#L104">view/layout/RadialTreeLayout.ts:104</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Array of vertices on each row</p>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="rowMaxCenX" class="tsd-anchor"></a><h3>row<wbr/>Max<wbr/>CenX</h3><div class="tsd-signature tsd-kind-icon">row<wbr/>Max<wbr/>CenX<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{}</span><span class="tsd-signature-symbol"> = {}</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/RadialTreeLayout.ts#L94">view/layout/RadialTreeLayout.ts:94</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Array of x coordinate of rightmost vertex of each row</p>
|
|
</div></div><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter-index-signature"><h5><span class="tsd-signature-symbol">[</span>key: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">]: </span><span class="tsd-signature-type">number</span></h5></li></ul></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="rowMaxX" class="tsd-anchor"></a><h3>row<wbr/>MaxX</h3><div class="tsd-signature tsd-kind-icon">row<wbr/>MaxX<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{}</span><span class="tsd-signature-symbol"> = {}</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/RadialTreeLayout.ts#L84">view/layout/RadialTreeLayout.ts:84</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Array of rightmost x coordinate of each row</p>
|
|
</div></div><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter-index-signature"><h5><span class="tsd-signature-symbol">[</span>key: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">]: </span><span class="tsd-signature-type">number</span></h5></li></ul></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="rowMinCenX" class="tsd-anchor"></a><h3>row<wbr/>Min<wbr/>CenX</h3><div class="tsd-signature tsd-kind-icon">row<wbr/>Min<wbr/>CenX<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{}</span><span class="tsd-signature-symbol"> = {}</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/RadialTreeLayout.ts#L89">view/layout/RadialTreeLayout.ts:89</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Array of x coordinate of leftmost vertex of each row</p>
|
|
</div></div><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter-index-signature"><h5><span class="tsd-signature-symbol">[</span>key: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">]: </span><span class="tsd-signature-type">number</span></h5></li></ul></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="rowMinX" class="tsd-anchor"></a><h3>row<wbr/>MinX</h3><div class="tsd-signature tsd-kind-icon">row<wbr/>MinX<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{}</span><span class="tsd-signature-symbol"> = {}</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/RadialTreeLayout.ts#L79">view/layout/RadialTreeLayout.ts:79</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Array of leftmost x coordinate of each row</p>
|
|
</div></div><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter-index-signature"><h5><span class="tsd-signature-symbol">[</span>key: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">]: </span><span class="tsd-signature-type">number</span></h5></li></ul></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="rowRadi" class="tsd-anchor"></a><h3>row<wbr/>Radi</h3><div class="tsd-signature tsd-kind-icon">row<wbr/>Radi<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{}</span><span class="tsd-signature-symbol"> = {}</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/RadialTreeLayout.ts#L99">view/layout/RadialTreeLayout.ts:99</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Array of y deltas of each row behind root vertex, also the radius in the tree</p>
|
|
</div></div><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter-index-signature"><h5><span class="tsd-signature-symbol">[</span>key: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">]: </span><span class="tsd-signature-type">number</span></h5></li></ul></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-overwrite"><a id="sortEdges" class="tsd-anchor"></a><h3>sort<wbr/>Edges</h3><div class="tsd-signature tsd-kind-icon">sort<wbr/>Edges<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></div><aside class="tsd-sources"><p>Overrides <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#sortEdges">sortEdges</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/RadialTreeLayout.ts#L74">view/layout/RadialTreeLayout.ts:74</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Specifies if edges should be sorted according to the order of their
|
|
opposite terminal cell in the model.</p>
|
|
</div><dl class="tsd-comment-tags"><dt>default</dt><dd><p>false</p>
|
|
</dd></dl></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="useBoundingBox" class="tsd-anchor"></a><h3>use<wbr/>Bounding<wbr/>Box</h3><div class="tsd-signature tsd-kind-icon">use<wbr/>Bounding<wbr/>Box<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = true</span></div><aside class="tsd-sources"><p>Inherited from <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#useBoundingBox">useBoundingBox</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/GraphLayout.ts#L43">view/layout/GraphLayout.ts:43</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Boolean indicating if the bounding box of the label should be used if
|
|
its available. Default is true.</p>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a id="visited" class="tsd-anchor"></a><h3>visited</h3><div class="tsd-signature tsd-kind-icon">visited<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{}</span><span class="tsd-signature-symbol"> = {}</span></div><aside class="tsd-sources"><p>Inherited from <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#visited">visited</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/CompactTreeLayout.ts#L71">view/layout/CompactTreeLayout.ts:71</a></li></ul></aside><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter-index-signature"><h5><span class="tsd-signature-symbol">[</span>key: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">]: </span><a href="Cell.html" class="tsd-signature-type" data-tsd-kind="Class">Cell</a></h5></li></ul></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Methods</h2><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="adjustParents" class="tsd-anchor"></a><h3>adjust<wbr/>Parents</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">adjust<wbr/>Parents<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#adjustParents">adjustParents</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/CompactTreeLayout.ts#L869">view/layout/CompactTreeLayout.ts:869</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Adjust parent cells whose child geometries have changed. The default
|
|
implementation adjusts the group to just fit around the children with
|
|
a padding.</p>
|
|
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="apply" class="tsd-anchor"></a><h3>apply</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">apply<span class="tsd-signature-symbol">(</span>node<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">_mxCompactTreeLayoutNode</span>, bounds<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="Rectangle.html" class="tsd-signature-type" data-tsd-kind="Class">Rectangle</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="Rectangle.html" class="tsd-signature-type" data-tsd-kind="Class">Rectangle</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#apply">apply</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/CompactTreeLayout.ts#L816">view/layout/CompactTreeLayout.ts:816</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Starts the actual compact tree layout algorithm
|
|
at the given node.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>node: <span class="tsd-signature-type">_mxCompactTreeLayoutNode</span></h5></li><li><h5>bounds: <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="Rectangle.html" class="tsd-signature-type" data-tsd-kind="Class">Rectangle</a><span class="tsd-signature-symbol"> = null</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="Rectangle.html" class="tsd-signature-type" data-tsd-kind="Class">Rectangle</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="arrangeGroups" class="tsd-anchor"></a><h3>arrange<wbr/>Groups</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">arrange<wbr/>Groups<span class="tsd-signature-symbol">(</span>cells<span class="tsd-signature-symbol">: </span><a href="CellArray.html" class="tsd-signature-type" data-tsd-kind="Class">CellArray</a>, border<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, topBorder<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, rightBorder<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, bottomBorder<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, leftBorder<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="CellArray.html" class="tsd-signature-type" data-tsd-kind="Class">CellArray</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#arrangeGroups">arrangeGroups</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/GraphLayout.ts#L410">view/layout/GraphLayout.ts:410</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Shortcut to {@link Graph#updateGroupBounds} with moveGroup set to true.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>cells: <a href="CellArray.html" class="tsd-signature-type" data-tsd-kind="Class">CellArray</a></h5></li><li><h5>border: <span class="tsd-signature-type">number</span></h5></li><li><h5>topBorder: <span class="tsd-signature-type">number</span></h5></li><li><h5>rightBorder: <span class="tsd-signature-type">number</span></h5></li><li><h5>bottomBorder: <span class="tsd-signature-type">number</span></h5></li><li><h5>leftBorder: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="CellArray.html" class="tsd-signature-type" data-tsd-kind="Class">CellArray</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="attachParent" class="tsd-anchor"></a><h3>attach<wbr/>Parent</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">attach<wbr/>Parent<span class="tsd-signature-symbol">(</span>node<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, height<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#attachParent">attachParent</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/CompactTreeLayout.ts#L609">view/layout/CompactTreeLayout.ts:609</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Starts the actual compact tree layout algorithm
|
|
at the given node.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>node: <span class="tsd-signature-type">any</span></h5></li><li><h5>height: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="bridge" class="tsd-anchor"></a><h3>bridge</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">bridge<span class="tsd-signature-symbol">(</span>line1<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">_mxCompactTreeLayoutLine</span>, x1<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, y1<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, line2<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">_mxCompactTreeLayoutLine</span>, x2<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, y2<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">_mxCompactTreeLayoutLine</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#bridge">bridge</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/CompactTreeLayout.ts#L757">view/layout/CompactTreeLayout.ts:757</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>line1: <span class="tsd-signature-type">_mxCompactTreeLayoutLine</span></h5></li><li><h5>x1: <span class="tsd-signature-type">number</span></h5></li><li><h5>y1: <span class="tsd-signature-type">number</span></h5></li><li><h5>line2: <span class="tsd-signature-type">_mxCompactTreeLayoutLine</span></h5></li><li><h5>x2: <span class="tsd-signature-type">number</span></h5></li><li><h5>y2: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">_mxCompactTreeLayoutLine</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="calcRowDims" class="tsd-anchor"></a><h3>calc<wbr/>Row<wbr/>Dims</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">calc<wbr/>Row<wbr/>Dims<span class="tsd-signature-symbol">(</span>row<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">_mxCompactTreeLayoutNode</span><span class="tsd-signature-symbol">[]</span>, rowNum<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/RadialTreeLayout.ts#L234">view/layout/RadialTreeLayout.ts:234</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Recursive function to calculate the dimensions of each row</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>row: <span class="tsd-signature-type">_mxCompactTreeLayoutNode</span><span class="tsd-signature-symbol">[]</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Array of internal nodes, the children of which are to be processed.</p>
|
|
</div></div></li><li><h5>rowNum: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Integer indicating which row is being processed.</p>
|
|
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="createLine" class="tsd-anchor"></a><h3>create<wbr/>Line</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">create<wbr/>Line<span class="tsd-signature-symbol">(</span>dx<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, dy<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, next<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">_mxCompactTreeLayoutLine</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#createLine">createLine</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/CompactTreeLayout.ts#L855">view/layout/CompactTreeLayout.ts:855</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Starts the actual compact tree layout algorithm
|
|
at the given node.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>dx: <span class="tsd-signature-type">number</span></h5></li><li><h5>dy: <span class="tsd-signature-type">number</span></h5></li><li><h5>next: <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol"> = null</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">_mxCompactTreeLayoutLine</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="createNode" class="tsd-anchor"></a><h3>create<wbr/>Node</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">create<wbr/>Node<span class="tsd-signature-symbol">(</span>cell<span class="tsd-signature-symbol">: </span><a href="Cell.html" class="tsd-signature-type" data-tsd-kind="Class">Cell</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">_mxCompactTreeLayoutNode</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#createNode">createNode</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/CompactTreeLayout.ts#L786">view/layout/CompactTreeLayout.ts:786</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Starts the actual compact tree layout algorithm
|
|
at the given node.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>cell: <a href="Cell.html" class="tsd-signature-type" data-tsd-kind="Class">Cell</a></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">_mxCompactTreeLayoutNode</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="dfs" class="tsd-anchor"></a><h3>dfs</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">dfs<span class="tsd-signature-symbol">(</span>cell<span class="tsd-signature-symbol">: </span><a href="Cell.html" class="tsd-signature-type" data-tsd-kind="Class">Cell</a>, parent<span class="tsd-signature-symbol">: </span><a href="Cell.html" class="tsd-signature-type" data-tsd-kind="Class">Cell</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">_mxCompactTreeLayoutNode</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#dfs">dfs</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/CompactTreeLayout.ts#L465">view/layout/CompactTreeLayout.ts:465</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Does a depth first search starting at the specified cell.
|
|
Makes sure the specified parent is never left by the
|
|
algorithm.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>cell: <a href="Cell.html" class="tsd-signature-type" data-tsd-kind="Class">Cell</a></h5></li><li><h5>parent: <a href="Cell.html" class="tsd-signature-type" data-tsd-kind="Class">Cell</a></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">_mxCompactTreeLayoutNode</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a id="execute" class="tsd-anchor"></a><h3>execute</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><li class="tsd-signature tsd-kind-icon">execute<span class="tsd-signature-symbol">(</span>parent<span class="tsd-signature-symbol">: </span><a href="Cell.html" class="tsd-signature-type" data-tsd-kind="Class">Cell</a>, root<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="Cell.html" class="tsd-signature-type" data-tsd-kind="Class">Cell</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Overrides <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#execute">execute</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/RadialTreeLayout.ts#L128">view/layout/RadialTreeLayout.ts:128</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Implements {@link GraphLayout#execute}.</p>
|
|
</div><div><p>If the parent has any connected edges, then it is used as the root of
|
|
the tree. Else, {@link Graph#findTreeRoots} will be used to find a suitable
|
|
root node within the set of children of the given parent.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>parent: <a href="Cell.html" class="tsd-signature-type" data-tsd-kind="Class">Cell</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>{@link mxCell} whose children should be laid out.</p>
|
|
</div></div></li><li><h5>root: <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="Cell.html" class="tsd-signature-type" data-tsd-kind="Class">Cell</a><span class="tsd-signature-symbol"> = null</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Optional {@link mxCell} that will be used as the root of the tree.</p>
|
|
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="findRankHeights" class="tsd-anchor"></a><h3>find<wbr/>Rank<wbr/>Heights</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">find<wbr/>Rank<wbr/>Heights<span class="tsd-signature-symbol">(</span>node<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, rank<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#findRankHeights">findRankHeights</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/CompactTreeLayout.ts#L430">view/layout/CompactTreeLayout.ts:430</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Stores the maximum height (relative to the layout
|
|
direction) of cells in each rank</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>node: <span class="tsd-signature-type">any</span></h5></li><li><h5>rank: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="getConstraint" class="tsd-anchor"></a><h3>get<wbr/>Constraint</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">get<wbr/>Constraint<span class="tsd-signature-symbol">(</span>key<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, cell<span class="tsd-signature-symbol">: </span><a href="Cell.html" class="tsd-signature-type" data-tsd-kind="Class">Cell</a>, edge<span class="tsd-signature-symbol">?: </span><a href="Cell.html" class="tsd-signature-type" data-tsd-kind="Class">Cell</a>, source<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#getConstraint">getConstraint</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/GraphLayout.ts#L102">view/layout/GraphLayout.ts:102</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Returns the constraint for the given key and cell. The optional edge and
|
|
source arguments are used to return inbound and outgoing routing-
|
|
constraints for the given edge and vertex. This implementation always
|
|
returns the value for the given key in the style of the given cell.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>key: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Key of the constraint to be returned.</p>
|
|
</div></div></li><li><h5>cell: <a href="Cell.html" class="tsd-signature-type" data-tsd-kind="Class">Cell</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>{@link mxCell} whose constraint should be returned.</p>
|
|
</div></div></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> edge: <a href="Cell.html" class="tsd-signature-type" data-tsd-kind="Class">Cell</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Optional {@link mxCell} that represents the connection whose constraint
|
|
should be returned. Default is null.</p>
|
|
</div></div></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> source: <span class="tsd-signature-type">boolean</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Optional boolean that specifies if the connection is incoming
|
|
or outgoing. Default is null.</p>
|
|
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">any</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="getGraph" class="tsd-anchor"></a><h3>get<wbr/>Graph</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">get<wbr/>Graph<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="Graph.html" class="tsd-signature-type" data-tsd-kind="Class">Graph</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#getGraph">getGraph</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/GraphLayout.ts#L85">view/layout/GraphLayout.ts:85</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Returns the graph that this layout operates on.</p>
|
|
</div></div><h4 class="tsd-returns-title">Returns <a href="Graph.html" class="tsd-signature-type" data-tsd-kind="Class">Graph</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="getParentOffset" class="tsd-anchor"></a><h3>get<wbr/>Parent<wbr/>Offset</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">get<wbr/>Parent<wbr/>Offset<span class="tsd-signature-symbol">(</span>parent<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="Cell.html" class="tsd-signature-type" data-tsd-kind="Class">Cell</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="Point.html" class="tsd-signature-type" data-tsd-kind="Class">Point</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#getParentOffset">getParentOffset</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/GraphLayout.ts#L247">view/layout/GraphLayout.ts:247</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Determines the offset of the given parent to the parent
|
|
of the layout</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>parent: <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="Cell.html" class="tsd-signature-type" data-tsd-kind="Class">Cell</a></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="Point.html" class="tsd-signature-type" data-tsd-kind="Class">Point</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="getVertexBounds" class="tsd-anchor"></a><h3>get<wbr/>Vertex<wbr/>Bounds</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">get<wbr/>Vertex<wbr/>Bounds<span class="tsd-signature-symbol">(</span>cell<span class="tsd-signature-symbol">: </span><a href="Cell.html" class="tsd-signature-type" data-tsd-kind="Class">Cell</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="Rectangle.html" class="tsd-signature-type" data-tsd-kind="Class">Rectangle</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#getVertexBounds">getVertexBounds</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/GraphLayout.ts#L366">view/layout/GraphLayout.ts:366</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Returns an <a href="Rectangle.html">Rectangle</a> that defines the bounds of the given cell or
|
|
the bounding box if <a href="RadialTreeLayout.html#useBoundingBox">useBoundingBox</a> is true.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>cell: <a href="Cell.html" class="tsd-signature-type" data-tsd-kind="Class">Cell</a></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="Rectangle.html" class="tsd-signature-type" data-tsd-kind="Class">Rectangle</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="horizontalLayout" class="tsd-anchor"></a><h3>horizontal<wbr/>Layout</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">horizontal<wbr/>Layout<span class="tsd-signature-symbol">(</span>node<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, x0<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, y0<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, bounds<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="Rectangle.html" class="tsd-signature-type" data-tsd-kind="Class">Rectangle</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="Rectangle.html" class="tsd-signature-type" data-tsd-kind="Class">Rectangle</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#horizontalLayout">horizontalLayout</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/CompactTreeLayout.ts#L549">view/layout/CompactTreeLayout.ts:549</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Starts the actual compact tree layout algorithm
|
|
at the given node.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>node: <span class="tsd-signature-type">any</span></h5></li><li><h5>x0: <span class="tsd-signature-type">number</span></h5></li><li><h5>y0: <span class="tsd-signature-type">number</span></h5></li><li><h5>bounds: <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="Rectangle.html" class="tsd-signature-type" data-tsd-kind="Class">Rectangle</a><span class="tsd-signature-symbol"> = null</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="Rectangle.html" class="tsd-signature-type" data-tsd-kind="Class">Rectangle</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="isAncestor" class="tsd-anchor"></a><h3>is<wbr/>Ancestor</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">is<wbr/>Ancestor<span class="tsd-signature-symbol">(</span>parent<span class="tsd-signature-symbol">: </span><a href="Cell.html" class="tsd-signature-type" data-tsd-kind="Class">Cell</a>, child<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="Cell.html" class="tsd-signature-type" data-tsd-kind="Class">Cell</a>, traverseAncestors<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#isAncestor">isAncestor</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/GraphLayout.ts#L175">view/layout/GraphLayout.ts:175</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Returns true if the given parent is an ancestor of the given child.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>parent: <a href="Cell.html" class="tsd-signature-type" data-tsd-kind="Class">Cell</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>{@link mxCell} that specifies the parent.</p>
|
|
</div></div></li><li><h5>child: <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="Cell.html" class="tsd-signature-type" data-tsd-kind="Class">Cell</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>{@link mxCell} that specifies the child.</p>
|
|
</div></div></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> traverseAncestors: <span class="tsd-signature-type">boolean</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>boolean whether to</p>
|
|
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="isEdgeIgnored" class="tsd-anchor"></a><h3>is<wbr/>Edge<wbr/>Ignored</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">is<wbr/>Edge<wbr/>Ignored<span class="tsd-signature-symbol">(</span>edge<span class="tsd-signature-symbol">: </span><a href="Cell.html" class="tsd-signature-type" data-tsd-kind="Class">Cell</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#isEdgeIgnored">isEdgeIgnored</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/GraphLayout.ts#L218">view/layout/GraphLayout.ts:218</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Returns a boolean indicating if the given {@link mxCell} should be ignored by
|
|
the algorithm. This implementation returns false for all vertices.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>edge: <a href="Cell.html" class="tsd-signature-type" data-tsd-kind="Class">Cell</a></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="isHorizontal" class="tsd-anchor"></a><h3>is<wbr/>Horizontal</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">is<wbr/>Horizontal<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#isHorizontal">isHorizontal</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/CompactTreeLayout.ts#L232">view/layout/CompactTreeLayout.ts:232</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Returns <a href="RadialTreeLayout.html#horizontal">horizontal</a>.</p>
|
|
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a id="isVertexIgnored" class="tsd-anchor"></a><h3>is<wbr/>Vertex<wbr/>Ignored</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><li class="tsd-signature tsd-kind-icon">is<wbr/>Vertex<wbr/>Ignored<span class="tsd-signature-symbol">(</span>vertex<span class="tsd-signature-symbol">: </span><a href="Cell.html" class="tsd-signature-type" data-tsd-kind="Class">Cell</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Overrides <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#isVertexIgnored">isVertexIgnored</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/RadialTreeLayout.ts#L112">view/layout/RadialTreeLayout.ts:112</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Returns a boolean indicating if the given {@link mxCell} should be ignored as a vertex.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>vertex: <a href="Cell.html" class="tsd-signature-type" data-tsd-kind="Class">Cell</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>{@link mxCell} whose ignored state should be returned.</p>
|
|
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><div><p>true if the cell has no connections.</p>
|
|
</div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="isVertexMovable" class="tsd-anchor"></a><h3>is<wbr/>Vertex<wbr/>Movable</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">is<wbr/>Vertex<wbr/>Movable<span class="tsd-signature-symbol">(</span>cell<span class="tsd-signature-symbol">: </span><a href="Cell.html" class="tsd-signature-type" data-tsd-kind="Class">Cell</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#isVertexMovable">isVertexMovable</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/GraphLayout.ts#L198">view/layout/GraphLayout.ts:198</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Returns a boolean indicating if the given {@link mxCell} is movable or
|
|
bendable by the algorithm. This implementation returns true if the given
|
|
cell is movable in the graph.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>cell: <a href="Cell.html" class="tsd-signature-type" data-tsd-kind="Class">Cell</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>{@link mxCell} whose movable state should be returned.</p>
|
|
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="join" class="tsd-anchor"></a><h3>join</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">join<span class="tsd-signature-symbol">(</span>node<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#join">join</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/CompactTreeLayout.ts#L651">view/layout/CompactTreeLayout.ts:651</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Starts the actual compact tree layout algorithm
|
|
at the given node.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>node: <span class="tsd-signature-type">any</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="layout" class="tsd-anchor"></a><h3>layout</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">layout<span class="tsd-signature-symbol">(</span>node<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#layout">layout</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/CompactTreeLayout.ts#L530">view/layout/CompactTreeLayout.ts:530</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Starts the actual compact tree layout algorithm
|
|
at the given node.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>node: <span class="tsd-signature-type">any</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="layoutLeaf" class="tsd-anchor"></a><h3>layout<wbr/>Leaf</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">layout<wbr/>Leaf<span class="tsd-signature-symbol">(</span>node<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#layoutLeaf">layoutLeaf</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/CompactTreeLayout.ts#L634">view/layout/CompactTreeLayout.ts:634</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Starts the actual compact tree layout algorithm
|
|
at the given node.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>node: <span class="tsd-signature-type">any</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="localEdgeProcessing" class="tsd-anchor"></a><h3>local<wbr/>Edge<wbr/>Processing</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">local<wbr/>Edge<wbr/>Processing<span class="tsd-signature-symbol">(</span>node<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">_mxCompactTreeLayoutNode</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#localEdgeProcessing">localEdgeProcessing</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/CompactTreeLayout.ts#L889">view/layout/CompactTreeLayout.ts:889</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Moves the specified node and all of its children by the given amount.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>node: <span class="tsd-signature-type">_mxCompactTreeLayoutNode</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="merge" class="tsd-anchor"></a><h3>merge</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">merge<span class="tsd-signature-symbol">(</span>p1<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, p2<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#merge">merge</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/CompactTreeLayout.ts#L676">view/layout/CompactTreeLayout.ts:676</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Starts the actual compact tree layout algorithm
|
|
at the given node.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>p1: <span class="tsd-signature-type">any</span></h5></li><li><h5>p2: <span class="tsd-signature-type">any</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="moveCell" class="tsd-anchor"></a><h3>move<wbr/>Cell</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">move<wbr/>Cell<span class="tsd-signature-symbol">(</span>cell<span class="tsd-signature-symbol">: </span><a href="Cell.html" class="tsd-signature-type" data-tsd-kind="Class">Cell</a>, x<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, y<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#moveCell">moveCell</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/GraphLayout.ts#L62">view/layout/GraphLayout.ts:62</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Notified when a cell is being moved in a parent that has automatic
|
|
layout to update the cell state (eg. index) so that the outcome of the
|
|
layout will position the vertex as close to the point (x, y) as
|
|
possible.</p>
|
|
</div><div><p>Empty implementation.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>cell: <a href="Cell.html" class="tsd-signature-type" data-tsd-kind="Class">Cell</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>{@link mxCell} which has been moved.</p>
|
|
</div></div></li><li><h5>x: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>X-coordinate of the new cell location.</p>
|
|
</div></div></li><li><h5>y: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Y-coordinate of the new cell location.</p>
|
|
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="moveNode" class="tsd-anchor"></a><h3>move<wbr/>Node</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">move<wbr/>Node<span class="tsd-signature-symbol">(</span>node<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, dx<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, dy<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#moveNode">moveNode</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/CompactTreeLayout.ts#L386">view/layout/CompactTreeLayout.ts:386</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Moves the specified node and all of its children by the given amount.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>node: <span class="tsd-signature-type">any</span></h5></li><li><h5>dx: <span class="tsd-signature-type">number</span></h5></li><li><h5>dy: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="offset" class="tsd-anchor"></a><h3>offset</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">offset<span class="tsd-signature-symbol">(</span>p1<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, p2<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, a1<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, a2<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, b1<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, b2<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#offset">offset</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/CompactTreeLayout.ts#L722">view/layout/CompactTreeLayout.ts:722</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Starts the actual compact tree layout algorithm
|
|
at the given node.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>p1: <span class="tsd-signature-type">number</span></h5></li><li><h5>p2: <span class="tsd-signature-type">number</span></h5></li><li><h5>a1: <span class="tsd-signature-type">number</span></h5></li><li><h5>a2: <span class="tsd-signature-type">number</span></h5></li><li><h5>b1: <span class="tsd-signature-type">number</span></h5></li><li><h5>b2: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="processNodeOutgoing" class="tsd-anchor"></a><h3>process<wbr/>Node<wbr/>Outgoing</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">process<wbr/>Node<wbr/>Outgoing<span class="tsd-signature-symbol">(</span>node<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">_mxCompactTreeLayoutNode</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#processNodeOutgoing">processNodeOutgoing</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/CompactTreeLayout.ts#L902">view/layout/CompactTreeLayout.ts:902</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Separates the x position of edges as they connect to vertices</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>node: <span class="tsd-signature-type">_mxCompactTreeLayoutNode</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="resizeCell" class="tsd-anchor"></a><h3>resize<wbr/>Cell</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">resize<wbr/>Cell<span class="tsd-signature-symbol">(</span>cell<span class="tsd-signature-symbol">: </span><a href="Cell.html" class="tsd-signature-type" data-tsd-kind="Class">Cell</a>, bounds<span class="tsd-signature-symbol">: </span><a href="Rectangle.html" class="tsd-signature-type" data-tsd-kind="Class">Rectangle</a>, prev<span class="tsd-signature-symbol">?: </span><a href="Cell.html" class="tsd-signature-type" data-tsd-kind="Class">Cell</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#resizeCell">resizeCell</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/GraphLayout.ts#L73">view/layout/GraphLayout.ts:73</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Notified when a cell is being resized in a parent that has automatic
|
|
layout to update the other cells in the layout.</p>
|
|
</div><div><p>Empty implementation.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>cell: <a href="Cell.html" class="tsd-signature-type" data-tsd-kind="Class">Cell</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p><Cell> which has been moved.</p>
|
|
</div></div></li><li><h5>bounds: <a href="Rectangle.html" class="tsd-signature-type" data-tsd-kind="Class">Rectangle</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p><a href="Rectangle.html">Rectangle</a> that represents the new cell bounds.</p>
|
|
</div></div></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> prev: <a href="Cell.html" class="tsd-signature-type" data-tsd-kind="Class">Cell</a></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="setCellHeights" class="tsd-anchor"></a><h3>set<wbr/>Cell<wbr/>Heights</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">set<wbr/>Cell<wbr/>Heights<span class="tsd-signature-symbol">(</span>node<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, rank<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#setCellHeights">setCellHeights</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/CompactTreeLayout.ts#L447">view/layout/CompactTreeLayout.ts:447</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Set the cells heights (relative to the layout
|
|
direction) when the tops of each rank are to be aligned</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>node: <span class="tsd-signature-type">any</span></h5></li><li><h5>rank: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="setEdgePoints" class="tsd-anchor"></a><h3>set<wbr/>Edge<wbr/>Points</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">set<wbr/>Edge<wbr/>Points<span class="tsd-signature-symbol">(</span>edge<span class="tsd-signature-symbol">: </span><a href="Cell.html" class="tsd-signature-type" data-tsd-kind="Class">Cell</a>, points<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="Point.html" class="tsd-signature-type" data-tsd-kind="Class">Point</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#setEdgePoints">setEdgePoints</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/GraphLayout.ts#L272">view/layout/GraphLayout.ts:272</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Replaces the array of Point in the geometry of the given edge
|
|
with the given array of Point.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>edge: <a href="Cell.html" class="tsd-signature-type" data-tsd-kind="Class">Cell</a></h5></li><li><h5>points: <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="Point.html" class="tsd-signature-type" data-tsd-kind="Class">Point</a><span class="tsd-signature-symbol">[]</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="setEdgeStyleEnabled" class="tsd-anchor"></a><h3>set<wbr/>Edge<wbr/>Style<wbr/>Enabled</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">set<wbr/>Edge<wbr/>Style<wbr/>Enabled<span class="tsd-signature-symbol">(</span>edge<span class="tsd-signature-symbol">: </span><a href="Cell.html" class="tsd-signature-type" data-tsd-kind="Class">Cell</a>, value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#setEdgeStyleEnabled">setEdgeStyleEnabled</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/GraphLayout.ts#L232">view/layout/GraphLayout.ts:232</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Disables or enables the edge style of the given edge.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>edge: <a href="Cell.html" class="tsd-signature-type" data-tsd-kind="Class">Cell</a></h5></li><li><h5>value: <span class="tsd-signature-type">any</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="setOrthogonalEdge" class="tsd-anchor"></a><h3>set<wbr/>Orthogonal<wbr/>Edge</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">set<wbr/>Orthogonal<wbr/>Edge<span class="tsd-signature-symbol">(</span>edge<span class="tsd-signature-symbol">: </span><a href="Cell.html" class="tsd-signature-type" data-tsd-kind="Class">Cell</a>, value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#setOrthogonalEdge">setOrthogonalEdge</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/GraphLayout.ts#L239">view/layout/GraphLayout.ts:239</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Disables or enables orthogonal end segments of the given edge.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>edge: <a href="Cell.html" class="tsd-signature-type" data-tsd-kind="Class">Cell</a></h5></li><li><h5>value: <span class="tsd-signature-type">any</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="setVertexLocation" class="tsd-anchor"></a><h3>set<wbr/>Vertex<wbr/>Location</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">set<wbr/>Vertex<wbr/>Location<span class="tsd-signature-symbol">(</span>cell<span class="tsd-signature-symbol">: </span><a href="Cell.html" class="tsd-signature-type" data-tsd-kind="Class">Cell</a>, x<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, y<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="Rectangle.html" class="tsd-signature-type" data-tsd-kind="Class">Rectangle</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#setVertexLocation">setVertexLocation</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/GraphLayout.ts#L310">view/layout/GraphLayout.ts:310</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Sets the new position of the given cell taking into account the size of
|
|
the bounding box if <a href="RadialTreeLayout.html#useBoundingBox">useBoundingBox</a> is true. The change is only carried
|
|
out if the new location is not equal to the existing location, otherwise
|
|
the geometry is not replaced with an updated instance. The new or old
|
|
bounds are returned (including overlapping labels).</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>cell: <a href="Cell.html" class="tsd-signature-type" data-tsd-kind="Class">Cell</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>{@link mxCell} whose geometry is to be set.</p>
|
|
</div></div></li><li><h5>x: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Integer that defines the x-coordinate of the new location.</p>
|
|
</div></div></li><li><h5>y: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Integer that defines the y-coordinate of the new location.</p>
|
|
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="Rectangle.html" class="tsd-signature-type" data-tsd-kind="Class">Rectangle</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="sortOutgoingEdges" class="tsd-anchor"></a><h3>sort<wbr/>Outgoing<wbr/>Edges</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">sort<wbr/>Outgoing<wbr/>Edges<span class="tsd-signature-symbol">(</span>source<span class="tsd-signature-symbol">: </span><a href="Cell.html" class="tsd-signature-type" data-tsd-kind="Class">Cell</a>, edges<span class="tsd-signature-symbol">: </span><a href="CellArray.html" class="tsd-signature-type" data-tsd-kind="Class">CellArray</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#sortOutgoingEdges">sortOutgoingEdges</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/CompactTreeLayout.ts#L402">view/layout/CompactTreeLayout.ts:402</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Called if <a href="RadialTreeLayout.html#sortEdges">sortEdges</a> is true to sort the array of outgoing edges in place.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>source: <a href="Cell.html" class="tsd-signature-type" data-tsd-kind="Class">Cell</a></h5></li><li><h5>edges: <a href="CellArray.html" class="tsd-signature-type" data-tsd-kind="Class">CellArray</a></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="traverse" class="tsd-anchor"></a><h3>traverse</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">traverse<span class="tsd-signature-symbol">(</span>vertex<span class="tsd-signature-symbol">: </span><a href="Cell.html" class="tsd-signature-type" data-tsd-kind="Class">Cell</a>, directed<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span>, func<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Function</span>, edge<span class="tsd-signature-symbol">?: </span><a href="Cell.html" class="tsd-signature-type" data-tsd-kind="Class">Cell</a>, visited<span class="tsd-signature-symbol">?: </span><a href="Dictionary.html" class="tsd-signature-type" data-tsd-kind="Class">Dictionary</a><span class="tsd-signature-symbol"><</span><a href="Cell.html" class="tsd-signature-type" data-tsd-kind="Class">Cell</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#traverse">traverse</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/GraphLayout.ts#L134">view/layout/GraphLayout.ts:134</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Traverses the (directed) graph invoking the given function for each
|
|
visited vertex and edge. The function is invoked with the current vertex
|
|
and the incoming edge as a parameter. This implementation makes sure
|
|
each vertex is only visited once. The function may return false if the
|
|
traversal should stop at the given vertex.</p>
|
|
</div><div><p>Example:</p>
|
|
<pre><code class="language-javascript"><span class="hl-0">MaxLog</span><span class="hl-1">.</span><span class="hl-2">show</span><span class="hl-1">();</span><br/><span class="hl-3">var</span><span class="hl-1"> </span><span class="hl-0">cell</span><span class="hl-1"> = </span><span class="hl-0">graph</span><span class="hl-1">.</span><span class="hl-2">getSelectionCell</span><span class="hl-1">();</span><br/><span class="hl-0">graph</span><span class="hl-1">.</span><span class="hl-2">traverse</span><span class="hl-1">(</span><span class="hl-0">cell</span><span class="hl-1">, </span><span class="hl-3">false</span><span class="hl-1">, </span><span class="hl-3">function</span><span class="hl-1">(</span><span class="hl-0">vertex</span><span class="hl-1">, </span><span class="hl-0">edge</span><span class="hl-1">)</span><br/><span class="hl-1">{</span><br/><span class="hl-1"> </span><span class="hl-0">MaxLog</span><span class="hl-1">.</span><span class="hl-2">debug</span><span class="hl-1">(</span><span class="hl-0">graph</span><span class="hl-1">.</span><span class="hl-2">getLabel</span><span class="hl-1">(</span><span class="hl-0">vertex</span><span class="hl-1">));</span><br/><span class="hl-1">});</span>
|
|
</code></pre>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>vertex: <a href="Cell.html" class="tsd-signature-type" data-tsd-kind="Class">Cell</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>{@link mxCell} that represents the vertex where the traversal starts.</p>
|
|
</div></div></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> directed: <span class="tsd-signature-type">boolean</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Optional boolean indicating if edges should only be traversed
|
|
from source to target. Default is true.</p>
|
|
</div></div></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> func: <span class="tsd-signature-type">Function</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Visitor function that takes the current vertex and the incoming
|
|
edge as arguments. The traversal stops if the function returns false.</p>
|
|
</div></div></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> edge: <a href="Cell.html" class="tsd-signature-type" data-tsd-kind="Class">Cell</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Optional {@link mxCell} that represents the incoming edge. This is
|
|
null for the first step of the traversal.</p>
|
|
</div></div></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> visited: <a href="Dictionary.html" class="tsd-signature-type" data-tsd-kind="Class">Dictionary</a><span class="tsd-signature-symbol"><</span><a href="Cell.html" class="tsd-signature-type" data-tsd-kind="Class">Cell</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">></span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Optional <a href="Dictionary.html">Dictionary</a> of cell paths for the visited cells.</p>
|
|
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a id="verticalLayout" class="tsd-anchor"></a><h3>vertical<wbr/>Layout</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">vertical<wbr/>Layout<span class="tsd-signature-symbol">(</span>node<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">_mxCompactTreeLayoutNode</span>, parent<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">_mxCompactTreeLayoutNode</span>, x0<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, y0<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, bounds<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="Rectangle.html" class="tsd-signature-type" data-tsd-kind="Class">Rectangle</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="Rectangle.html" class="tsd-signature-type" data-tsd-kind="Class">Rectangle</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="CompactTreeLayout.html">CompactTreeLayout</a>.<a href="CompactTreeLayout.html#verticalLayout">verticalLayout</a></p><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/layout/CompactTreeLayout.ts#L573">view/layout/CompactTreeLayout.ts:573</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Starts the actual compact tree layout algorithm
|
|
at the given node.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>node: <span class="tsd-signature-type">_mxCompactTreeLayoutNode</span></h5></li><li><h5>parent: <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">_mxCompactTreeLayoutNode</span></h5></li><li><h5>x0: <span class="tsd-signature-type">number</span></h5></li><li><h5>y0: <span class="tsd-signature-type">number</span></h5></li><li><h5>bounds: <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="Rectangle.html" class="tsd-signature-type" data-tsd-kind="Class">Rectangle</a><span class="tsd-signature-symbol"> = null</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="Rectangle.html" class="tsd-signature-type" data-tsd-kind="Class">Rectangle</a></h4></li></ul></section></section></div><div class="col-4 col-menu menu-sticky-wrap menu-highlight"><nav class="tsd-navigation primary"><ul><li class=""><a href="../index.html">Exports</a></li><li class=" tsd-kind-namespace"><a href="../modules/DomHelpers.html">Dom<wbr/>Helpers</a></li><li class=" tsd-kind-namespace"><a href="../modules/cloneUtils.html">clone<wbr/>Utils</a></li><li class=" tsd-kind-namespace"><a href="../modules/constants.html">constants</a></li><li class=" tsd-kind-namespace"><a href="../modules/domUtils.html">dom<wbr/>Utils</a></li><li class=" tsd-kind-namespace"><a href="../modules/eventUtils.html">event<wbr/>Utils</a></li><li class=" tsd-kind-namespace"><a href="../modules/gestureUtils.html">gesture<wbr/>Utils</a></li><li class=" tsd-kind-namespace"><a href="../modules/mathUtils.html">math<wbr/>Utils</a></li><li class=" tsd-kind-namespace"><a href="../modules/stringUtils.html">string<wbr/>Utils</a></li><li class=" tsd-kind-namespace"><a href="../modules/styleUtils.html">style<wbr/>Utils</a></li><li class=" tsd-kind-namespace"><a href="../modules/utils.html">utils</a></li><li class=" tsd-kind-namespace"><a href="../modules/xmlUtils.html">xml<wbr/>Utils</a></li></ul></nav><nav class="tsd-navigation secondary menu-sticky"><ul><li class="current tsd-kind-class"><a href="RadialTreeLayout.html" class="tsd-kind-icon">Radial<wbr/>Tree<wbr/>Layout</a><ul><li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite"><a href="RadialTreeLayout.html#constructor" class="tsd-kind-icon">constructor</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#alignRanks" class="tsd-kind-icon">align<wbr/>Ranks</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="RadialTreeLayout.html#angleOffset" class="tsd-kind-icon">angle<wbr/>Offset</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="RadialTreeLayout.html#autoRadius" class="tsd-kind-icon">auto<wbr/>Radius</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="RadialTreeLayout.html#centerX" class="tsd-kind-icon">centerX</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="RadialTreeLayout.html#centerY" class="tsd-kind-icon">centerY</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#channelBuffer" class="tsd-kind-icon">channel<wbr/>Buffer</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#edgeRouting" class="tsd-kind-icon">edge<wbr/>Routing</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#graph" class="tsd-kind-icon">graph</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#groupPadding" class="tsd-kind-icon">group<wbr/>Padding</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#groupPaddingBottom" class="tsd-kind-icon">group<wbr/>Padding<wbr/>Bottom</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#groupPaddingLeft" class="tsd-kind-icon">group<wbr/>Padding<wbr/>Left</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#groupPaddingRight" class="tsd-kind-icon">group<wbr/>Padding<wbr/>Right</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#groupPaddingTop" class="tsd-kind-icon">group<wbr/>Padding<wbr/>Top</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#horizontal" class="tsd-kind-icon">horizontal</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#invert" class="tsd-kind-icon">invert</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-overwrite"><a href="RadialTreeLayout.html#levelDistance" class="tsd-kind-icon">level<wbr/>Distance</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#maintainParentLocation" class="tsd-kind-icon">maintain<wbr/>Parent<wbr/>Location</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#maxRankHeight" class="tsd-kind-icon">max<wbr/>Rank<wbr/>Height</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#minEdgeJetty" class="tsd-kind-icon">min<wbr/>Edge<wbr/>Jetty</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#moveTree" class="tsd-kind-icon">move<wbr/>Tree</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#node" class="tsd-kind-icon">node</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-overwrite"><a href="RadialTreeLayout.html#nodeDistance" class="tsd-kind-icon">node<wbr/>Distance</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#parent" class="tsd-kind-icon">parent</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#parentX" class="tsd-kind-icon">parentX</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#parentY" class="tsd-kind-icon">parentY</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#parentsChanged" class="tsd-kind-icon">parents<wbr/>Changed</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#prefHozEdgeSep" class="tsd-kind-icon">pref<wbr/>Hoz<wbr/>Edge<wbr/>Sep</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#prefVertEdgeOff" class="tsd-kind-icon">pref<wbr/>Vert<wbr/>Edge<wbr/>Off</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#resetEdges" class="tsd-kind-icon">reset<wbr/>Edges</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#resizeParent" class="tsd-kind-icon">resize<wbr/>Parent</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#root" class="tsd-kind-icon">root</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="RadialTreeLayout.html#rootx" class="tsd-kind-icon">rootx</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="RadialTreeLayout.html#rooty" class="tsd-kind-icon">rooty</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="RadialTreeLayout.html#row" class="tsd-kind-icon">row</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="RadialTreeLayout.html#rowMaxCenX" class="tsd-kind-icon">row<wbr/>Max<wbr/>CenX</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="RadialTreeLayout.html#rowMaxX" class="tsd-kind-icon">row<wbr/>MaxX</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="RadialTreeLayout.html#rowMinCenX" class="tsd-kind-icon">row<wbr/>Min<wbr/>CenX</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="RadialTreeLayout.html#rowMinX" class="tsd-kind-icon">row<wbr/>MinX</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="RadialTreeLayout.html#rowRadi" class="tsd-kind-icon">row<wbr/>Radi</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-overwrite"><a href="RadialTreeLayout.html#sortEdges" class="tsd-kind-icon">sort<wbr/>Edges</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#useBoundingBox" class="tsd-kind-icon">use<wbr/>Bounding<wbr/>Box</a></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#visited" class="tsd-kind-icon">visited</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#adjustParents" class="tsd-kind-icon">adjust<wbr/>Parents</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#apply" class="tsd-kind-icon">apply</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#arrangeGroups" class="tsd-kind-icon">arrange<wbr/>Groups</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#attachParent" class="tsd-kind-icon">attach<wbr/>Parent</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#bridge" class="tsd-kind-icon">bridge</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="RadialTreeLayout.html#calcRowDims" class="tsd-kind-icon">calc<wbr/>Row<wbr/>Dims</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#createLine" class="tsd-kind-icon">create<wbr/>Line</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#createNode" class="tsd-kind-icon">create<wbr/>Node</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#dfs" class="tsd-kind-icon">dfs</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="RadialTreeLayout.html#execute" class="tsd-kind-icon">execute</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#findRankHeights" class="tsd-kind-icon">find<wbr/>Rank<wbr/>Heights</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#getConstraint" class="tsd-kind-icon">get<wbr/>Constraint</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#getGraph" class="tsd-kind-icon">get<wbr/>Graph</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#getParentOffset" class="tsd-kind-icon">get<wbr/>Parent<wbr/>Offset</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#getVertexBounds" class="tsd-kind-icon">get<wbr/>Vertex<wbr/>Bounds</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#horizontalLayout" class="tsd-kind-icon">horizontal<wbr/>Layout</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#isAncestor" class="tsd-kind-icon">is<wbr/>Ancestor</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#isEdgeIgnored" class="tsd-kind-icon">is<wbr/>Edge<wbr/>Ignored</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#isHorizontal" class="tsd-kind-icon">is<wbr/>Horizontal</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="RadialTreeLayout.html#isVertexIgnored" class="tsd-kind-icon">is<wbr/>Vertex<wbr/>Ignored</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#isVertexMovable" class="tsd-kind-icon">is<wbr/>Vertex<wbr/>Movable</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#join" class="tsd-kind-icon">join</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#layout" class="tsd-kind-icon">layout</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#layoutLeaf" class="tsd-kind-icon">layout<wbr/>Leaf</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#localEdgeProcessing" class="tsd-kind-icon">local<wbr/>Edge<wbr/>Processing</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#merge" class="tsd-kind-icon">merge</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#moveCell" class="tsd-kind-icon">move<wbr/>Cell</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#moveNode" class="tsd-kind-icon">move<wbr/>Node</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#offset" class="tsd-kind-icon">offset</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#processNodeOutgoing" class="tsd-kind-icon">process<wbr/>Node<wbr/>Outgoing</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#resizeCell" class="tsd-kind-icon">resize<wbr/>Cell</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#setCellHeights" class="tsd-kind-icon">set<wbr/>Cell<wbr/>Heights</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#setEdgePoints" class="tsd-kind-icon">set<wbr/>Edge<wbr/>Points</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#setEdgeStyleEnabled" class="tsd-kind-icon">set<wbr/>Edge<wbr/>Style<wbr/>Enabled</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#setOrthogonalEdge" class="tsd-kind-icon">set<wbr/>Orthogonal<wbr/>Edge</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#setVertexLocation" class="tsd-kind-icon">set<wbr/>Vertex<wbr/>Location</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#sortOutgoingEdges" class="tsd-kind-icon">sort<wbr/>Outgoing<wbr/>Edges</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#traverse" class="tsd-kind-icon">traverse</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="RadialTreeLayout.html#verticalLayout" class="tsd-kind-icon">vertical<wbr/>Layout</a></li></ul></li></ul></nav></div></div></div><footer class="with-border-bottom"><div class="container"><h2>Legend</h2><div class="tsd-legend-group"><ul class="tsd-legend"><li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li><li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li><li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li><li class="tsd-kind-accessor tsd-parent-kind-class"><span class="tsd-kind-icon">Accessor</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited property</span></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited method</span></li><li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited accessor</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static property</span></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static method</span></li></ul></div><h2>Settings</h2><p>Theme <select id="theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></p></div></footer><div class="container tsd-generator"><p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div><div class="overlay"></div><script src="../assets/main.js"></script></body></html> |