UNPKG

create-gojs-kit

Version:

A CLI for downloading GoJS samples, extensions, and docs

294 lines 99.7 kB
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><link rel="stylesheet" href="../../assets/css/style.css"/><link rel="preconnect" href="https://rsms.me/"/><link rel="stylesheet" href="https://rsms.me/inter/inter.css"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>LayeredDigraphLayout | GoJS API</title><meta name="description" content="Documentation for GoJS API"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><link rel="stylesheet" href="../assets/custom.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script type="text/javascript">// formerly in api.js
  var hash = null;
  function changeHash() {
      var panels = document.getElementsByClassName("tsd-panel");
      for (let i = 0; i < panels.length; i++) {
          var p = panels[i];
          p.classList.remove("targeted");
      }
      hash = window.location.hash.slice(1);
      if (hash) {
          var elt = document.getElementById(hash);
          if (elt) elt.parentNode.classList.add("targeted");
      }
  }
  document.addEventListener("DOMContentLoaded", changeHash);
  window.addEventListener("hashchange", changeHash);</script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header><nav id="navTop" class="w-full h-[var(--topnav-h)] z-30 bg-[var(--color-background-secondary)] border-b border-b-[var(--color-accent)]"><div class="max-w-screen-xl mx-auto flex flex-wrap items-start justify-between px-4"><a class="!text-white bg-nwoods-primary font-bold !leading-[calc(var(--topnav-h)_-_1px)] my-0 px-2 text-4xl lg:text-5xl logo" href="../../index.html">GoJS</a><div class="relative"><button id="topnavButton" class="h-[calc(var(--topnav-h)_-_1px)] px-2 m-0 text-[var(--color-text)] bg-inherit shadow-none md:hidden hover:!bg-inherit hover:!text-nwoods-accent hover:!shadow-none" aria-label="Navigation"><svg class="h-7 w-7 block" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24"><path d="M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5" stroke-linecap="round" stroke-linejoin="round"></path></svg></button><div id="topnavList" class="hidden md:block"><div class="absolute right-0 z-30 flex flex-col items-end rounded border border-[var(--color-accent)] p-4 pl-12 shadow bg-[var(--color-background-secondary)] text-[var(--color-text)] font-semibold
                        md:flex-row md:space-x-4 md:items-start md:border-0 md:p-0 md:shadow-none md:!bg-inherit"><a href="../../learn/index.html">Learn</a><a href="../../samples/index.html">Samples</a><a href="../../intro/index.html">Intro</a><a class="active" href="../../api/index.html">API</a><a href="../../download.html">Download</a><a href="https://forum.nwoods.com/c/gojs/11" target="_blank" rel="noopener">Forum</a><a href="https://nwoods.com/contact.html" target="_blank" rel="noopener" id="contactBtn">Contact</a><a href="https://nwoods.com/sales/index.html" target="_blank" rel="noopener" id="buyBtn">Buy</a></div></div></div></div></nav><script>window.addEventListener("DOMContentLoaded", function () {
    // topnav
    var topButton = document.getElementById("topnavButton");
    var topnavList = document.getElementById("topnavList");
    if (topButton && topnavList) {
      topButton.addEventListener("click", function (e) {
        topnavList
          .classList
          .toggle("hidden");
        e.stopPropagation();
      });
      document.addEventListener("click", function (e) {
        // if the clicked element isn't the list, close the list
        if (!topnavList.classList.contains("hidden") && !e.target.closest("#topnavList")) {
          topButton.click();
        }
      });

      // set active <a> element
      // done via active tag below, always API
    }
  });</script><div class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><div id="tsd-search-help"><code class="!text-lg">/</code> to search</div><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></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">GoJS API</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><div class="flex w-full max-w-screen-xl mx-auto px-2 items-center justify-between"><div><ul class="tsd-breadcrumb"><li><a href="../index.html">GoJS API</a></li><li><a href="LayeredDigraphLayout.html">LayeredDigraphLayout</a></li></ul><h1 class="flex items-center">Class LayeredDigraphLayout</h1></div><div class="text-xs"><b>GoJS</b>® Diagramming Components<br/>version 3.1.0<br/>by <a href="https://nwoods.com/">Northwoods Software®</a></div></div></div><section class="tsd-panel tsd-hierarchy"><h4>Hierarchy (<a class="link" href="../hierarchy.html#LayeredDigraphLayout">view full</a>)</h4><ul class="tsd-hierarchy"><li><a href="Layout.html" class="tsd-signature-type tsd-kind-class">Layout</a><ul class="tsd-hierarchy"><li><span class="target">LayeredDigraphLayout</span><ul class="tsd-hierarchy"><li><a href="SwimLaneLayout.html" class="tsd-signature-type tsd-kind-class">SwimLaneLayout</a></li></ul></li></ul></li></ul></section><section class="tsd-panel tsd-comment"><div class="tsd-comment tsd-typography"><p>This arranges nodes of directed graphs into layers (rows or columns).
There are many samples that use LayeredDigraphLayout.</p>
<p class="boxrun">
If you want to experiment interactively with most of the properties, try the <a href="../../samples/ldLayout.html">Layered Digraph Layout</a> sample.
See samples that make use of LayeredDigraphLayout in the <a href="../../samples/index.html#layered-digraph">samples index</a>.

<p>The <a href="LayeredDigraphLayout.html#layerSpacing" class="tsd-kind-accessor">layerSpacing</a> property controls the distance between layers.
The <a href="LayeredDigraphLayout.html#columnSpacing" class="tsd-kind-accessor">columnSpacing</a> property controls the breadth of each &quot;column&quot; --
this affects the distance between nodes within a layer, although the exact distance also depends on the breadth of each node.
The <a href="LayeredDigraphLayout.html#layeringOption" class="tsd-kind-accessor">layeringOption</a> property determines whether nodes without links coming in or without links going out are
lined up at the edge of the graph, or whether they are positioned close to their connected nodes.</p>
<p>By default the layout will route the links in a manner that is consistent with the <a href="LayeredDigraphLayout.html#direction" class="tsd-kind-accessor">direction</a>.
So, for example, if the <a href="LayeredDigraphLayout.html#direction" class="tsd-kind-accessor">direction</a> is 90 degrees (i.e. downward), the links are expected to go from the top towards the bottom.
That means the links should come out from the bottom of the ports and should go into the top of the ports.
Basically the layout will set <a href="Link.html#fromSpot" class="tsd-kind-accessor">Link.fromSpot</a> to <code>Spot.Bottom</code> and <a href="Link.html#toSpot" class="tsd-kind-accessor">Link.toSpot</a> to <code>Spot.Top</code>.</p>
<p>If you want to the links to use the spots that are given by the ports or by the links themselves, you will need to set
<a href="LayeredDigraphLayout.html#setsPortSpots" class="tsd-kind-accessor">setsPortSpots</a> to false to prevent this layout from setting the spots on the links.
For example, if each node only has one port that is the whole node, and if you want the links to be spread out along the sides
of the nodes, then you should set <a href="LayeredDigraphLayout.html#setsPortSpots" class="tsd-kind-accessor">setsPortSpots</a> to false and set the node&#39;s <a href="GraphObject.html#fromSpot" class="tsd-kind-accessor">GraphObject.fromSpot</a> to
<code>Spot.BottomSide</code> and <a href="GraphObject.html#toSpot" class="tsd-kind-accessor">GraphObject.toSpot</a> to <code>Spot.TopSide</code>.</p>
<p>This layout handles links that form cycles better than <a href="TreeLayout.html" class="tsd-kind-class">TreeLayout</a> does.
The normal routing behavior for &quot;backwards&quot; links is to route them &quot;around&quot; the source node and &quot;around&quot; the destination node,
so that all links come in one side and go out the other side.
However if you want &quot;backwards&quot; links to go more directly between nodes, set <a href="LayeredDigraphLayout.html#setsPortSpots" class="tsd-kind-accessor">setsPortSpots</a> to false and
the node&#39;s <a href="GraphObject.html#fromSpot" class="tsd-kind-accessor">GraphObject.fromSpot</a> and <a href="GraphObject.html#toSpot" class="tsd-kind-accessor">GraphObject.toSpot</a> both to <code>Spot.TopBottomSides</code>.
(Of course if the <a href="LayeredDigraphLayout.html#direction" class="tsd-kind-accessor">direction</a> is zero or 180, you&#39;ll want to use <code>Spot.LeftRightSides</code>.)</p>
<p>If the diagram is structured in a tree-like fashion,
it may be better to use <a href="TreeLayout.html" class="tsd-kind-class">TreeLayout</a>,
which has more options specific to trees.
<a href="TreeLayout.html" class="tsd-kind-class">TreeLayout</a> is much faster than LayeredDigraphLayout,
and can handle a limited number of links that would prevent the
graph structure from being a true tree (i.e. some nodes having multiple parents).</p>
<p>This layout makes use of a <a href="LayoutNetwork.html" class="tsd-kind-class">LayoutNetwork</a> of
<a href="LayeredDigraphVertex.html" class="tsd-kind-class">LayeredDigraphVertex</a>es and <a href="LayeredDigraphEdge.html" class="tsd-kind-class">LayeredDigraphEdge</a>s that normally
correspond to the <a href="Node.html" class="tsd-kind-class">Node</a>s and <a href="Link.html" class="tsd-kind-class">Link</a>s of the <a href="Diagram.html" class="tsd-kind-class">Diagram</a>.</p>
<p>The layout algorithm consists of four-major steps: Cycle Removal,
Layer Assignment, Crossing Reduction, and Straightening and Packing.
The layout cannot guarantee that it provides optimal positioning of nodes or routing of links.</p>
<p>The Layer Assignment step can be slow if <a href="LayeredDigraphLayout.html#layeringOption" class="tsd-kind-accessor">layeringOption</a> is
<a href="LayeredDigraphLayering.html#OptimalLinkLength" class="tsd-kind-enum-member">LayeredDigraphLayering.OptimalLinkLength</a>, which is the default value.</p>
<p>The CrossingReduction step is usually slow, but it can be avoided if you want to
maintain a certain order within each layer by setting <a href="LayeredDigraphLayout.html#aggressiveOption" class="tsd-kind-accessor">LayeredDigraphLayout.aggressiveOption</a>
to <a href="LayeredDigraphAggressive.html#None" class="tsd-kind-enum-member">LayeredDigraphAggressive.None</a>.</p>
<p>The Straightening and Packing step is usually much slower if you set <a href="LayeredDigraphLayout.html#alignOption" class="tsd-kind-accessor">alignOption</a> to
<a href="LayeredDigraphAlign.html#None" class="tsd-kind-enum-member">LayeredDigraphAlign.None</a>, which causes the older
<a href="LayeredDigraphLayout.html#packOption" class="tsd-kind-accessor">packOption</a> to be used.</p>
<p>If performance remains a problem, contact us.</p>
</div></section><section class="tsd-panel-group tsd-index-group"><section class="tsd-panel tsd-index-panel"><details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary"><h5 class="tsd-index-heading uppercase" role="button" aria-expanded="true" tabIndex="0"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-chevronSmall"></use></svg> Index</h5></summary><div class="tsd-accordion-details"><section class="tsd-index-section"><h3 class="tsd-index-heading">Constructors</h3><div class="tsd-index-list"><a href="LayeredDigraphLayout.html#constructor" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-512"></use></svg><span>constructor</span></a>
</div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Accessors</h3><div class="tsd-index-list"><a href="LayeredDigraphLayout.html#aggressiveOption" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-262144"></use></svg><span>aggressive<wbr/>Option</span></a>
<a href="LayeredDigraphLayout.html#alignOption" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-262144"></use></svg><span>align<wbr/>Option</span></a>
<a href="LayeredDigraphLayout.html#centered" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-262144"></use></svg><span>centered</span></a>
<a href="LayeredDigraphLayout.html#columnSpacing" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-262144"></use></svg><span>column<wbr/>Spacing</span></a>
<a href="LayeredDigraphLayout.html#cycleRemoveOption" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-262144"></use></svg><span>cycle<wbr/>Remove<wbr/>Option</span></a>
<a href="LayeredDigraphLayout.html#direction" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-262144"></use></svg><span>direction</span></a>
<a href="LayeredDigraphLayout.html#initializeOption" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-262144"></use></svg><span>initialize<wbr/>Option</span></a>
<a href="LayeredDigraphLayout.html#iterations" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-262144"></use></svg><span>iterations</span></a>
<a href="LayeredDigraphLayout.html#layerSpacing" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-262144"></use></svg><span>layer<wbr/>Spacing</span></a>
<a href="LayeredDigraphLayout.html#layeringOption" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-262144"></use></svg><span>layering<wbr/>Option</span></a>
<a href="LayeredDigraphLayout.html#maxColumn" class="tsd-index-link"><svg class="readonly tsd-subicon" viewBox="0 0 28 28"><g id="subicon-R,#FF4D4D"><rect fill="var(--color-icon-background)" width="28" height="28" rx="14"></rect><path transform="translate(2, 2)" fill="none" stroke-width="1.5" stroke="var(--color-text)" d="M16.5 10.5V6.75a4.5 4.5 0 1 0-9 0v3.75m-.75 11.25h10.5a2.25 2.25 0 0 0 2.25-2.25v-6.75a2.25 2.25 0 0 0-2.25-2.25H6.75a2.25 2.25 0 0 0-2.25 2.25v6.75a2.25 2.25 0 0 0 2.25 2.25Z" stroke-linecap="round" stroke-linejoin="round"></path></g></svg><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-262144"></use></svg><span>max<wbr/>Column</span></a>
<a href="LayeredDigraphLayout.html#maxIndex" class="tsd-index-link"><svg class="readonly tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-R,#FF4D4D"></use></svg><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-262144"></use></svg><span>max<wbr/>Index</span></a>
<a href="LayeredDigraphLayout.html#maxIndexLayer" class="tsd-index-link"><svg class="readonly tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-R,#FF4D4D"></use></svg><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-262144"></use></svg><span>max<wbr/>Index<wbr/>Layer</span></a>
<a href="LayeredDigraphLayout.html#maxLayer" class="tsd-index-link"><svg class="readonly tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-R,#FF4D4D"></use></svg><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-262144"></use></svg><span>max<wbr/>Layer</span></a>
<a href="LayeredDigraphLayout.html#minIndexLayer" class="tsd-index-link"><svg class="readonly tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-R,#FF4D4D"></use></svg><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-262144"></use></svg><span>min<wbr/>Index<wbr/>Layer</span></a>
<a href="LayeredDigraphLayout.html#packOption" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-262144"></use></svg><span>pack<wbr/>Option</span></a>
<a href="LayeredDigraphLayout.html#setsPortSpots" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-262144"></use></svg><span>sets<wbr/>Port<wbr/>Spots</span></a>
</div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Methods</h3><div class="tsd-index-list"><a href="LayeredDigraphLayout.html#assignLayers" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>assign<wbr/>Layers</span></a>
<a href="LayeredDigraphLayout.html#commitLayers" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>commit<wbr/>Layers</span></a>
<a href="LayeredDigraphLayout.html#commitLayout" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>commit<wbr/>Layout</span></a>
<a href="LayeredDigraphLayout.html#commitLinks" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>commit<wbr/>Links</span></a>
<a href="LayeredDigraphLayout.html#commitNodes" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>commit<wbr/>Nodes</span></a>
<a href="LayeredDigraphLayout.html#createNetwork" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>create<wbr/>Network</span></a>
<a href="LayeredDigraphLayout.html#doLayout" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>do<wbr/>Layout</span></a>
</div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Properties</h3><div class="tsd-index-list"><a href="LayeredDigraphLayout.html#AggressiveLess" class="tsd-index-link deprecated"><svg class="static tsd-subicon" viewBox="0 0 28 28"><g id="subicon-S,#FF984D"><rect fill="var(--color-icon-background)" width="28" height="28" rx="14"></rect><path transform="translate(2, 2)" fill="none" stroke-width="1.5" stroke="var(--color-text)" d="M5.25 8.25h15m-16.5 7.5h15m-1.8-13.5-3.9 19.5m-2.1-19.5-3.9 19.5" stroke-linecap="round" stroke-linejoin="round"></path></g></svg><svg class="readonly tsd-subicon" viewBox="0 0 28 28"><g id="subicon-R,#FF984D"><rect fill="var(--color-icon-background)" width="28" height="28" rx="14"></rect><path transform="translate(2, 2)" fill="none" stroke-width="1.5" stroke="var(--color-text)" d="M16.5 10.5V6.75a4.5 4.5 0 1 0-9 0v3.75m-.75 11.25h10.5a2.25 2.25 0 0 0 2.25-2.25v-6.75a2.25 2.25 0 0 0-2.25-2.25H6.75a2.25 2.25 0 0 0-2.25 2.25v6.75a2.25 2.25 0 0 0 2.25 2.25Z" stroke-linecap="round" stroke-linejoin="round"></path></g></svg><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>Aggressive<wbr/>Less</span></a>
<a href="LayeredDigraphLayout.html#AggressiveMore" class="tsd-index-link deprecated"><svg class="static tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-S,#FF984D"></use></svg><svg class="readonly tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-R,#FF984D"></use></svg><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>Aggressive<wbr/>More</span></a>
<a href="LayeredDigraphLayout.html#AggressiveNone" class="tsd-index-link deprecated"><svg class="static tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-S,#FF984D"></use></svg><svg class="readonly tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-R,#FF984D"></use></svg><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>Aggressive<wbr/>None</span></a>
<a href="LayeredDigraphLayout.html#AlignAll" class="tsd-index-link deprecated"><svg class="static tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-S,#FF984D"></use></svg><svg class="readonly tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-R,#FF984D"></use></svg><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>Align<wbr/>All</span></a>
<a href="LayeredDigraphLayout.html#AlignLowerLeft" class="tsd-index-link deprecated"><svg class="static tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-S,#FF984D"></use></svg><svg class="readonly tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-R,#FF984D"></use></svg><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>Align<wbr/>Lower<wbr/>Left</span></a>
<a href="LayeredDigraphLayout.html#AlignLowerRight" class="tsd-index-link deprecated"><svg class="static tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-S,#FF984D"></use></svg><svg class="readonly tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-R,#FF984D"></use></svg><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>Align<wbr/>Lower<wbr/>Right</span></a>
<a href="LayeredDigraphLayout.html#AlignNone" class="tsd-index-link deprecated"><svg class="static tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-S,#FF984D"></use></svg><svg class="readonly tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-R,#FF984D"></use></svg><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>Align<wbr/>None</span></a>
<a href="LayeredDigraphLayout.html#AlignUpperLeft" class="tsd-index-link deprecated"><svg class="static tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-S,#FF984D"></use></svg><svg class="readonly tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-R,#FF984D"></use></svg><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>Align<wbr/>Upper<wbr/>Left</span></a>
<a href="LayeredDigraphLayout.html#AlignUpperRight" class="tsd-index-link deprecated"><svg class="static tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-S,#FF984D"></use></svg><svg class="readonly tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-R,#FF984D"></use></svg><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>Align<wbr/>Upper<wbr/>Right</span></a>
<a href="LayeredDigraphLayout.html#CycleDepthFirst" class="tsd-index-link deprecated"><svg class="static tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-S,#FF984D"></use></svg><svg class="readonly tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-R,#FF984D"></use></svg><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>Cycle<wbr/>Depth<wbr/>First</span></a>
<a href="LayeredDigraphLayout.html#CycleFromLayers" class="tsd-index-link deprecated"><svg class="static tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-S,#FF984D"></use></svg><svg class="readonly tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-R,#FF984D"></use></svg><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>Cycle<wbr/>From<wbr/>Layers</span></a>
<a href="LayeredDigraphLayout.html#CycleGreedy" class="tsd-index-link deprecated"><svg class="static tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-S,#FF984D"></use></svg><svg class="readonly tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-R,#FF984D"></use></svg><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>Cycle<wbr/>Greedy</span></a>
<a href="LayeredDigraphLayout.html#InitDepthFirstIn" class="tsd-index-link deprecated"><svg class="static tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-S,#FF984D"></use></svg><svg class="readonly tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-R,#FF984D"></use></svg><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>Init<wbr/>Depth<wbr/>First<wbr/>In</span></a>
<a href="LayeredDigraphLayout.html#InitDepthFirstOut" class="tsd-index-link deprecated"><svg class="static tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-S,#FF984D"></use></svg><svg class="readonly tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-R,#FF984D"></use></svg><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>Init<wbr/>Depth<wbr/>First<wbr/>Out</span></a>
<a href="LayeredDigraphLayout.html#InitNaive" class="tsd-index-link deprecated"><svg class="static tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-S,#FF984D"></use></svg><svg class="readonly tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-R,#FF984D"></use></svg><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>Init<wbr/>Naive</span></a>
<a href="LayeredDigraphLayout.html#LayerLongestPathSink" class="tsd-index-link deprecated"><svg class="static tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-S,#FF984D"></use></svg><svg class="readonly tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-R,#FF984D"></use></svg><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>Layer<wbr/>Longest<wbr/>Path<wbr/>Sink</span></a>
<a href="LayeredDigraphLayout.html#LayerLongestPathSource" class="tsd-index-link deprecated"><svg class="static tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-S,#FF984D"></use></svg><svg class="readonly tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-R,#FF984D"></use></svg><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>Layer<wbr/>Longest<wbr/>Path<wbr/>Source</span></a>
<a href="LayeredDigraphLayout.html#LayerOptimalLinkLength" class="tsd-index-link deprecated"><svg class="static tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-S,#FF984D"></use></svg><svg class="readonly tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-R,#FF984D"></use></svg><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>Layer<wbr/>Optimal<wbr/>Link<wbr/>Length</span></a>
<a href="LayeredDigraphLayout.html#PackAll" class="tsd-index-link deprecated"><svg class="static tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-S,#FF984D"></use></svg><svg class="readonly tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-R,#FF984D"></use></svg><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>Pack<wbr/>All</span></a>
<a href="LayeredDigraphLayout.html#PackExpand" class="tsd-index-link deprecated"><svg class="static tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-S,#FF984D"></use></svg><svg class="readonly tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-R,#FF984D"></use></svg><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>Pack<wbr/>Expand</span></a>
<a href="LayeredDigraphLayout.html#PackMedian" class="tsd-index-link deprecated"><svg class="static tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-S,#FF984D"></use></svg><svg class="readonly tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-R,#FF984D"></use></svg><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>Pack<wbr/>Median</span></a>
<a href="LayeredDigraphLayout.html#PackNone" class="tsd-index-link deprecated"><svg class="static tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-S,#FF984D"></use></svg><svg class="readonly tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-R,#FF984D"></use></svg><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>Pack<wbr/>None</span></a>
<a href="LayeredDigraphLayout.html#PackStraighten" class="tsd-index-link deprecated"><svg class="static tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-S,#FF984D"></use></svg><svg class="readonly tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-R,#FF984D"></use></svg><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>Pack<wbr/>Straighten</span></a>
</div></section></div></details></section></section><section class="tsd-panel-group tsd-index-group tsd-is-inherited"><section class="tsd-panel tsd-index-panel"><details class="tsd-index-content tsd-index-accordion"><summary class="tsd-accordion-summary tsd-index-summary"><h5 class="tsd-index-heading uppercase" role="button" aria-expanded="false" tabIndex="0"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-chevronSmall"></use></svg> Inherited Index</h5></summary><div class="tsd-accordion-details"><div class="tsd-index-content"><section class="tsd-index-section"><h3 class="tsd-index-heading">Accessors</h3><div class="tsd-index-list"><a href="Layout.html#arrangementOrigin" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-262144"></use></svg><span>Layout.arrangement<wbr/>Origin</span></a>
<a href="Layout.html#boundsComputation" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-262144"></use></svg><span>Layout.bounds<wbr/>Computation</span></a>
<a href="Layout.html#diagram" class="tsd-index-link"><svg class="readonly tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-R,#FF4D4D"></use></svg><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-262144"></use></svg><span>Layout.diagram</span></a>
<a href="Layout.html#group" class="tsd-index-link"><svg class="readonly tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-R,#FF4D4D"></use></svg><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-262144"></use></svg><span>Layout.group</span></a>
<a href="Layout.html#isInitial" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-262144"></use></svg><span>Layout.is<wbr/>Initial</span></a>
<a href="Layout.html#isOngoing" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-262144"></use></svg><span>Layout.is<wbr/>Ongoing</span></a>
<a href="Layout.html#isRealtime" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-262144"></use></svg><span>Layout.is<wbr/>Realtime</span></a>
<a href="Layout.html#isRouting" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-262144"></use></svg><span>Layout.is<wbr/>Routing</span></a>
<a href="Layout.html#isValidLayout" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-262144"></use></svg><span>Layout.is<wbr/>Valid<wbr/>Layout</span></a>
<a href="Layout.html#isViewportSized" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-262144"></use></svg><span>Layout.is<wbr/>Viewport<wbr/>Sized</span></a>
<a href="Layout.html#network" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-262144"></use></svg><span>Layout.network</span></a>
</div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Methods</h3><div class="tsd-index-list"><a href="Layout.html#collectParts" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>Layout.collect<wbr/>Parts</span></a>
<a href="Layout.html#copy" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>Layout.copy</span></a>
<a href="Layout.html#getLayoutBounds" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>Layout.get<wbr/>Layout<wbr/>Bounds</span></a>
<a href="Layout.html#initialOrigin" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>Layout.initial<wbr/>Origin</span></a>
<a href="Layout.html#invalidateLayout" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>Layout.invalidate<wbr/>Layout</span></a>
<a href="Layout.html#makeNetwork" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>Layout.make<wbr/>Network</span></a>
<a href="Layout.html#updateParts" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>Layout.update<wbr/>Parts</span></a>
</div></section></div></div></details></section></section><section class="tsd-panel-group tsd-member-group"><h2>Constructors</h2><section class="tsd-panel tsd-member"><a id="constructor" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>constructor</span><a href="#constructor" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="constructor.new_LayeredDigraphLayout" class="tsd-anchor"></a><span class="tsd-kind-constructor-signature">new <wbr/>Layered<wbr/>Digraph<wbr/>Layout</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">init</span><span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Partial</span><span class="tsd-signature-symbol">&lt;</span><a href="LayeredDigraphLayout.html" class="tsd-signature-type tsd-kind-class">LayeredDigraphLayout</a><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="LayeredDigraphLayout.html" class="tsd-signature-type tsd-kind-class">LayeredDigraphLayout</a><a href="#constructor.new_LayeredDigraphLayout" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Constructs a <a href="LayeredDigraphLayout.html" class="tsd-kind-class">LayeredDigraphLayout</a> with no <a href="Layout.html#network" class="tsd-kind-accessor">Layout.network</a>
and with no owning <a href="Layout.html#diagram" class="tsd-kind-accessor">Layout.diagram</a>.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">init</span>: <span class="tsd-signature-type">Partial</span><span class="tsd-signature-symbol">&lt;</span><a href="LayeredDigraphLayout.html" class="tsd-signature-type tsd-kind-class">LayeredDigraphLayout</a><span class="tsd-signature-symbol">&gt;</span></h5><div class="tsd-comment tsd-typography"><p>Optional initialization properties.</p>
</div></li></ul></div><h4 class="tsd-returns-title">Returns <a href="LayeredDigraphLayout.html" class="tsd-signature-type tsd-kind-class">LayeredDigraphLayout</a></h4></li></ul></section></section><section class="tsd-panel-group tsd-member-group"><h2>Accessors</h2><section class="tsd-panel tsd-member"><a id="aggressiveOption" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>aggressive<wbr/>Option</span><div class="membertype"><span class="tsd-signature-symbol">: </span><a href="LayeredDigraphAggressive.html" class="tsd-signature-type tsd-kind-enum">LayeredDigraphAggressive</a></div><a href="#aggressiveOption" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Gets or sets which aggressive option is being used to look for link crossings.
The default value is <a href="LayeredDigraphAggressive.html#Less" class="tsd-kind-enum-member">LayeredDigraphAggressive.Less</a>.
The fastest option is <a href="LayeredDigraphAggressive.html#None" class="tsd-kind-enum-member">LayeredDigraphAggressive.None</a>.</p>
</div></li></ul></section><section class="tsd-panel tsd-member"><a id="alignOption" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>align<wbr/>Option</span><div class="membertype"><span class="tsd-signature-symbol">: </span><a href="LayeredDigraphAlign.html" class="tsd-signature-type tsd-kind-enum">LayeredDigraphAlign</a></div><a href="#alignOption" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Gets or sets the options used by the straighten and pack function, as a faster
alternative to <a href="LayeredDigraphLayout.html#packOption" class="tsd-kind-accessor">packOption</a>.</p>
<p>When using this option, nodes are assigned coordinates within their layers
to produce straighter paths of nodes and small edge lengths.</p>
<p>When used as an alternative to <a href="LayeredDigraphLayout.html#packOption" class="tsd-kind-accessor">packOption</a>, this tends to be faster,
particularly for larger graphs.
Larger graphs, however, will usually be less compact than when using packOption.
If this option is set, packOption is ignored.</p>
<p>This option does not use columns, but rather uses <a href="LayeredDigraphLayout.html#columnSpacing" class="tsd-kind-accessor">columnSpacing</a> to space nodes within a layer.</p>
<p>The value must be a combination of the <a href="LayeredDigraphAlign.html" class="tsd-kind-enum">LayeredDigraphAlign</a> bit flags.</p>
<p>Using <a href="LayeredDigraphAlign.html#All" class="tsd-kind-enum-member">LayeredDigraphAlign.All</a> will tend to provide the most balanced results
and is what we recommend starting with.</p>
<p>The default value is <a href="LayeredDigraphAlign.html#All" class="tsd-kind-enum-member">LayeredDigraphAlign.All</a>.
When the value is <a href="LayeredDigraphAlign.html#None" class="tsd-kind-enum-member">LayeredDigraphAlign.None</a>, the <a href="LayeredDigraphLayout.html#packOption" class="tsd-kind-accessor">packOption</a> is used instead.</p>
</div><div class="tsd-comment-tags tsd-typography"><div class="flex items-center"><code class="tsd-tag">see</code><p><a href="LayeredDigraphLayout.html#packOption" class="tsd-kind-accessor">packOption</a></p>
</div><div class="flex items-center"><code class="tsd-tag">since</code><p>2.3</p>
</div></div></li></ul></section><section class="tsd-panel tsd-member"><a id="centered" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>centered</span><div class="membertype"><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></div><a href="#centered" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Gets or sets how the nodes in each layer are positioned within each layer.
Each node is aligned in the center of its layer according to its <a href="LayoutVertex.html#focus" class="tsd-kind-accessor">LayoutVertex.focus</a> (the default positioning)
or at the top or the left side of the layer if <a href="LayeredDigraphVertex.html#centered" class="tsd-kind-accessor">LayeredDigraphVertex.centered</a> is false.</p>
<p>The default value is true.
This property provides the default value for <a href="LayeredDigraphVertex.html#centered" class="tsd-kind-accessor">LayeredDigraphVertex.centered</a>.</p>
</div><div class="tsd-comment-tags tsd-typography"><div class="flex items-center"><code class="tsd-tag">since</code><p>3.1</p>
</div></div></li></ul></section><section class="tsd-panel tsd-member"><a id="columnSpacing" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>column<wbr/>Spacing</span><div class="membertype"><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></div><a href="#columnSpacing" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Gets or sets the size of each column.
This value must be positive and it defaults to 25.</p>
<p>When using <a href="LayeredDigraphLayout.html#alignOption" class="tsd-kind-accessor">alignOption</a>, this will act as node spacing for nodes within a layer.</p>
</div></li></ul></section><section class="tsd-panel tsd-member"><a id="cycleRemoveOption" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>cycle<wbr/>Remove<wbr/>Option</span><div class="membertype"><span class="tsd-signature-symbol">: </span><a href="LayeredDigraphCycleRemove.html" class="tsd-signature-type tsd-kind-enum">LayeredDigraphCycleRemove</a></div><a href="#cycleRemoveOption" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Gets or set which cycle removal option is used.
The value must be a <a href="LayeredDigraphCycleRemove.html" class="tsd-kind-enum">LayeredDigraphCycleRemove</a> value.
The default value is <a href="LayeredDigraphCycleRemove.html#DepthFirst" class="tsd-kind-enum-member">LayeredDigraphCycleRemove.DepthFirst</a>.</p>
</div></li></ul></section><section class="tsd-panel tsd-member"><a id="direction" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>direction</span><div class="membertype"><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></div><a href="#direction" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Gets or sets the direction the graph grows towards.
0 is towards the right, 90 is downwards, 180 is towards the left, and 270 is upwards.
The default value is 0.</p>
</div></li></ul></section><section class="tsd-panel tsd-member"><a id="initializeOption" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>initialize<wbr/>Option</span><div class="membertype"><span class="tsd-signature-symbol">: </span><a href="LayeredDigraphInit.html" class="tsd-signature-type tsd-kind-enum">LayeredDigraphInit</a></div><a href="#initializeOption" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Gets or sets which indices initialization option is being used.
The value must be a <a href="LayeredDigraphInit.html" class="tsd-kind-enum">LayeredDigraphInit</a> value.
The default value is <a href="LayeredDigraphInit.html#DepthFirstOut" class="tsd-kind-enum-member">LayeredDigraphInit.DepthFirstOut</a>.</p>
</div></li></ul></section><section class="tsd-panel tsd-member"><a id="iterations" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>iterations</span><div class="membertype"><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></div><a href="#iterations" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Gets or sets the number of iterations to be done.
The value must be non-negative.  The default value is 4.</p>
</div></li></ul></section><section class="tsd-panel tsd-member"><a id="layerSpacing" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>layer<wbr/>Spacing</span><div class="membertype"><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></div><a href="#layerSpacing" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Gets or sets the space between each layer.
This value must be non-negative and it defaults to 25.</p>
</div></li></ul></section><section class="tsd-panel tsd-member"><a id="layeringOption" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>layering<wbr/>Option</span><div class="membertype"><span class="tsd-signature-symbol">: </span><a href="LayeredDigraphLayering.html" class="tsd-signature-type tsd-kind-enum">LayeredDigraphLayering</a></div><a href="#layeringOption" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Gets or sets which layering option is being used.
The value must be a <a href="LayeredDigraphLayering.html" class="tsd-kind-enum">LayeredDigraphLayering</a> value.
The default value is <a href="LayeredDigraphLayering.html#OptimalLinkLength" class="tsd-kind-enum-member">LayeredDigraphLayering.OptimalLinkLength</a>,
which is also the slowest option.</p>
</div></li></ul></section><section class="tsd-panel tsd-member"><a id="maxColumn" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagReadOnly">Readonly</code><span>max<wbr/>Column</span><div class="membertype"><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></div><a href="#maxColumn" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>This read-only property returns the largest column value.</p>
</div></li></ul></section><section class="tsd-panel tsd-member"><a id="maxIndex" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagReadOnly">Readonly</code><span>max<wbr/>Index</span><div class="membertype"><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></div><a href="#maxIndex" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>This read-only property returns the largest index value.</p>
</div></li></ul></section><section class="tsd-panel tsd-member"><a id="maxIndexLayer" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagReadOnly">Readonly</code><span>max<wbr/>Index<wbr/>Layer</span><div class="membertype"><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></div><a href="#maxIndexLayer" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>This read-only property returns the larges index layer.</p>
</div></li></ul></section><section class="tsd-panel tsd-member"><a id="maxLayer" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagReadOnly">Readonly</code><span>max<wbr/>Layer</span><div class="membertype"><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></div><a href="#maxLayer" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>This read-only property returns the largest layer value.</p>
</div></li></ul></section><section class="tsd-panel tsd-member"><a id="minIndexLayer" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagReadOnly">Readonly</code><span>min<wbr/>Index<wbr/>Layer</span><div class="membertype"><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></div><a href="#minIndexLayer" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>This read-only property returns the smallest index layer.</p>
</div></li></ul></section><section class="tsd-panel tsd-member"><a id="packOption" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>pack<wbr/>Option</span><div class="membertype"><span class="tsd-signature-symbol">: </span><a href="LayeredDigraphPack.html" class="tsd-signature-type tsd-kind-enum">LayeredDigraphPack</a></div><a href="#packOption" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Gets or sets the options used by the straighten and pack function;
this option is deprecated -- <a href="LayeredDigraphLayout.html#alignOption" class="tsd-kind-accessor">alignOption</a> usually produces a better alignment, faster.</p>
<p>The value must be a combination of bit flags.
The default value is <a href="LayeredDigraphLayout.html#PackAll" class="tsd-kind-property">LayeredDigraphLayout.PackAll</a>, which is a combination of all three flags.</p>
<p>Each of the flags has a cost; Expand is particularly slow.
However if you do not set this property, this layout will automatically turn off the Expand
option for you if the graph is large enough.
You can set this property value to <a href="LayeredDigraphLayout.html#PackNone" class="tsd-kind-property">LayeredDigraphLayout.PackNone</a> to avoid most of the work.</p>
<p>This option is ignored if <a href="LayeredDigraphLayout.html#alignOption" class="tsd-kind-accessor">alignOption</a> is set to a value other than <a href="LayeredDigraphAlign.html#None" class="tsd-kind-enum-member">LayeredDigraphAlign.None</a>.
This tends to be slower than <a href="LayeredDigraphLayout.html#alignOption" class="tsd-kind-accessor">alignOption</a>, particularly for larger graphs.
Larger graphs, however, will usually be more compact than when using alignOption.</p>
</div><div class="tsd-comment-tags tsd-typography"><div class="flex items-center"><code class="tsd-tag">deprecated</code></div><div class="flex items-center"><code class="tsd-tag">see</code><p><a href="LayeredDigraphLayout.html#alignOption" class="tsd-kind-accessor">alignOption</a></p>
</div></div></li></ul></section><section class="tsd-panel tsd-member"><a id="setsPortSpots" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>sets<wbr/>Port<wbr/>Spots</span><div class="membertype"><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></div><a href="#setsPortSpots" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Gets or sets whether the FromSpot and ToSpot of each link should be set
to values appropriate for the given value of <a href="LayeredDigraphLayout.html#direction" class="tsd-kind-accessor">LayeredDigraphLayout.direction</a>.
The default value is true.</p>
<p>If you set this to false, the spot values of the links and port objects will be used.
If you do not set the spot values to sensible values matching the <a href="LayeredDigraphLayout.html#direction" class="tsd-kind-accessor">direction</a>,
the routing results may be poor and they may cross over nodes.</p>
</div></li></ul></section></section><section class="tsd-panel-group tsd-member-group"><h2>Methods</h2><section class="tsd-panel tsd-member tsd-is-protected"><a id="assignLayers" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagProtected">Protected</code> <code class="tsd-tag ts-flagVirtual">Virtual</code><span>assign<wbr/>Layers</span><a href="#assignLayers" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-protected"><li class="tsd-signature tsd-anchor-link"><a id="assignLayers.assignLayers-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">assign<wbr/>Layers</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><a href="#assignLayers.assignLayers-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Assigns every vertex in the input network to a layer.
The layer is a non-negative integer describing which row of vertexes each vertex belongs in.
(Do not confuse this concept of &quot;layer&quot; with <a href="Layer.html" class="tsd-kind-class">Layer</a>s that control the Z-ordering of Parts.)</p>
<p>The layering satisfies the following relationship:
if L is a link from node U to node V, then U.layer &gt; V.layer.</p>
<p>This method can be overridden to customize how nodes are assigned layers.
Please read the Introduction page on <a href="../../intro/extensions.html">Extensions</a> for how to override methods and how to call this base method.
By default, this does the appropriate assignments given the value of <a href="LayeredDigraphLayout.html#layeringOption" class="tsd-kind-accessor">layeringOption</a>.</p>
</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-is-protected"><a id="commitLayers" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagProtected">Protected</code> <code class="tsd-tag ts-flagVirtual">Virtual</code><span>commit<wbr/>Layers</span><a href="#commitLayers" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-protected"><li class="tsd-signature tsd-anchor-link"><a id="commitLayers.commitLayers-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">commit<wbr/>Layers</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">layerRects</span><span class="tsd-signature-symbol">: </span><a href="Rect.html" class="tsd-signature-type tsd-kind-class">Rect</a><span class="tsd-signature-symbol">[]</span>, <span class="tsd-kind-parameter">offset</span><span class="tsd-signature-symbol">: </span><a href="Point.html" class="tsd-signature-type tsd-kind-class">Point</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><a href="#commitLayers.commitLayers-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>This overridable method is called by <a href="LayeredDigraphLayout.html#commitLayout" class="tsd-kind-method">commitLayout</a>
to support custom arrangement of bands or labels across each layout layer.
By default this method does nothing.</p>
<p>The coordinates used in the resulting Rects may need to be offset by the <a href="Layout.html#arrangementOrigin" class="tsd-kind-accessor">Layout.arrangementOrigin</a>.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><h5><span class="tsd-kind-parameter">layerRects</span>: <a href="Rect.html" class="tsd-signature-type tsd-kind-class">Rect</a><span class="tsd-signature-symbol">[]</span></h5><div class="tsd-comment tsd-typography"><p>an Array of <a href="Rect.html" class="tsd-kind-class">Rect</a>s with the bounds of each of the &quot;layers&quot;</p>
</div></li><li><h5><span class="tsd-kind-parameter">offset</span>: <a href="Point.html" class="tsd-signature-type tsd-kind-class">Point</a></h5><div class="tsd-comment tsd-typography"><p>the position of the top-left corner of the banded area relative to the coordinates given by the layerRects</p>
</div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member"><a id="commitLayout" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagOverride">Override</code><span>commit<wbr/>Layout</span><a href="#commitLayout" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="commitLayout.commitLayout-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">commit<wbr/>Layout</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><a href="#commitLayout.commitLayout-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Set the fromSpot and toSpot on each Link, position each Node according
to the vertex position, and then position/route the Links.</p>
<p>This calls the <a href="LayeredDigraphLayout.html#commitNodes" class="tsd-kind-method">commitNodes</a> and <a href="LayeredDigraphLayout.html#commitLinks" class="tsd-kind-method">commitLinks</a> methods, the latter only if isRouting is true.
You should not call this method -- it is a &quot;protected virtual&quot; method.
Please read the Introduction page on <a href="../../intro/extensions.html">Extensions</a> for how to override methods and how to call this base method.</p>
</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-is-protected"><a id="commitLinks" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagProtected">Protected</code> <code class="tsd-tag ts-flagVirtual">Virtual</code><span>commit<wbr/>Links</span><a href="#commitLinks" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-protected"><li class="tsd-signature tsd-anchor-link"><a id="commitLinks.commitLinks-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">commit<wbr/>Links</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><a href="#commitLinks.commitLinks-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Routes the links.</p>
<p>This is called by <a href="LayeredDigraphLayout.html#commitLayout" class="tsd-kind-method">commitLayout</a>.
This is only called if <a href="Layout.html#isRouting" class="tsd-kind-accessor">Layout.isRouting</a> is true.
See also <a href="LayeredDigraphLayout.html#commitNodes" class="tsd-kind-method">commitNodes</a>.
Please read the Introduction page on <a href="../../intro/extensions.html">Extensions</a> for how to override methods and how to call this base method.</p>
</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-is-protected"><a id="commitNodes" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagProtected">Protected</code> <code class="tsd-tag ts-flagVirtual">Virtual</code><span>commit<wbr/>Nodes</span><a href="#commitNodes" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-protected"><li class="tsd-signature tsd-anchor-link"><a id="commitNodes.commitNodes-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">commit<wbr/>Nodes</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><a href="#commitNodes.commitNodes-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Commit the position of all nodes.</p>
<p>This is called by <a href="LayeredDigraphLayout.html#commitLayout" class="tsd-kind-method">commitLayout</a>.
See also <a href="LayeredDigraphLayout.html#commitLinks" class="tsd-kind-method">commitLinks</a>.
Please read the Introduction page on <a href="../../intro/extensions.html">Extensions</a> for how to override methods and how to call this base method.</p>
</div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member"><a id="createNetwork" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagVirtual">Virtual</code><code class="tsd-tag ts-flagOverride">Override</code><span>create<wbr/>Network</span><a href="#createNetwork" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="createNetwork.createNetwork-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">create<wbr/>Network</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="LayeredDigraphNetwork.html" class="tsd-signature-type tsd-kind-class">LayeredDigraphNetwork</a><a href="#createNetwork.createNetwork-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Create a new <a href="LayoutNetwork.html" class="tsd-kind-class">LayoutNetwork</a> of <a href="LayeredDigraphVertex.html" class="tsd-kind-class">LayeredDigraphVertex</a>es and <a href="LayeredDigraphEdge.html" class="tsd-kind-class">LayeredDigraphEdge</a>s.</p>
</div><h4 class="tsd-returns-title">Returns <a href="LayeredDigraphNetwork.html" class="tsd-signature-type tsd-kind-class">LayeredDigraphNetwork</a></h4><p>a new <a href="LayoutNetwork.html" class="tsd-kind-class">LayoutNetwork</a>.</p>
</li></ul></section><section class="tsd-panel tsd-member"><a id="doLayout" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagOverride">Override</code><span>do<wbr/>Layout</span><a href="#doLayout" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="doLayout.doLayout-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">do<wbr/>Layout</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">coll</span><span class="tsd-signature-symbol">: </span><a href="Diagram.html" class="tsd-signature-type tsd-kind-class">Diagram</a><span class="tsd-signature-symbol"> | </span><a href="Iterable.html" class="tsd-signature-type tsd-kind-interface">Iterable</a><span class="tsd-signature-symbol">&lt;</span><a href="Part.html" class="tsd-signature-type tsd-kind-class">Part</a><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol"> | </span><a href="Group.html" class="tsd-signature-type tsd-kind-class">Group</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><a href="#doLayout.doLayout-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Perform the layered digraph layout.</p>
<p>If there is no <a href="Layout.html#network" class="tsd-kind-accessor">Layout.network</a>, this calls makeNetwork to create a <a href="LayoutNetwork.html" class="tsd-kind-class">LayoutNetwork</a> from the given collection of Parts.
This removes any reflexive edges in the network, since they should be ignored.</p>
<p>In order to influence a vertex&#39;s layer, you can override <a href="LayeredDigraphLayout.html#assignLayers" class="tsd-kind-method">assignLayers</a>.</p>
<p>Finally this calls <a href="Layout.html#updateParts" class="tsd-kind-method">Layout.updateParts</a> to commit the Node positions from the vertex positions.
<a href="Layout.html#updateParts" class="tsd-kind-method">Layout.updateParts</a> calls <a href="LayeredDigraphLayout.html#commitLayout" class="tsd-kind-method">commitLayout</a> within a transaction.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><h5><span class="tsd-kind-parameter">coll</span>: <a href="Diagram.html" class="tsd-signature-type tsd-kind-class">Diagram</a><span class="tsd-signature-symbol"> | </span><a href="Iterable.html" class="tsd-signature-type tsd-kind-interface">Iterable</a><span class="tsd-signature-symbol">&lt;</span><a href="Part.html" class="tsd-signature-type tsd-kind-class">Part</a><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol"> | </span><a href="Group.html" class="tsd-signature-type tsd-kind-class">Group</a></h5><div class="tsd-comment tsd-typography"><p>A <a href="Diagram.html" class="tsd-kind-class">Diagram</a> or a <a href="Group.html" class="tsd-kind-class">Group</a> or a collection of <a href="Part.html" class="tsd-kind-class">Part</a>s.</p>
</div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section></section><section class="tsd-panel-group tsd-member-group"><h2>Properties</h2><section class="tsd-panel tsd-member"><a id="AggressiveLess" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <code class="tsd-tag ts-flagReadonly">Readonly</code> <span class="deprecated">Aggressive<wbr/>Less</span><a href="#AggressiveLess" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-comment-tags tsd-typography"><div class="flex items-center"><code class="tsd-tag">deprecated</code><p>See <a href="LayeredDigraphAggressive.html#Less" class="tsd-kind-enum-member">LayeredDigraphAggressive.Less</a>.</p>
</div></div></section><section class="tsd-panel tsd-member"><a id="AggressiveMore" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <code class="tsd-tag ts-flagReadonly">Readonly</code> <span class="deprecated">Aggressive<wbr/>More</span><a href="#AggressiveMore" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-comment-tags tsd-typography"><div class="flex items-center"><code class="tsd-tag">deprecated</code><p>See <a href="LayeredDigraphAggressive.html#More" class="tsd-kind-enum-member">LayeredDigraphAggressive.More</a>.</p>
</div></div></section><section class="tsd-panel tsd-member"><a id="AggressiveNone" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <code class="tsd-tag ts-flagReadonly">Readonly</code> <span class="deprecated">Aggressive<wbr/>None</span><a href="#AggressiveNone" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-comment-tags tsd-typography"><div class="flex items-center"><code class="tsd-tag">deprecated</code><p>See <a href="LayeredDigraphAggressive.html#None" class="tsd-kind-enum-member">LayeredDigraphAggressive.None</a>.</p>
</div></div></section><section class="tsd-panel tsd-member"><a id="AlignAll" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <code class="tsd-tag ts-flagReadonly">Readonly</code> <span class="deprecated">Align<wbr/>All</span><a href="#AlignAll" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-comment-tags tsd-typography"><div class="flex items-center"><code class="tsd-tag">deprecated</code><p>See <a href="LayeredDigraphAlign.html#All" class="tsd-kind-enum-member">LayeredDigraphAlign.All</a>.</p>
</div></div></section><section class="tsd-panel tsd-member"><a id="AlignLowerLeft" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <code class="tsd-tag ts-flagReadonly">Readonly</code> <span class="deprecated">Align<wbr/>Lower<wbr/>Left</span><a href="#AlignLowerLeft" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-comment-tags tsd-typography"><div class="flex items-center"><code class="tsd-tag">deprecated</code><p>See <a href="LayeredDigraphAlign.html#LowerLeft" class="tsd-kind-enum-member">LayeredDigraphAlign.LowerLeft</a>.</p>
</div></div></section><section class="tsd-panel tsd-member"><a id="AlignLowerRight" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <code class="tsd-tag ts-flagReadonly">Readonly</code> <span class="deprecated">Align<wbr/>Lower<wbr/>Right</span><a href="#AlignLowerRight" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-comment-tags tsd-typography"><div class="flex items-center"><code class="tsd-tag">deprecated</code><p>See <a href="LayeredDigraphAlign.html#LowerRight" class="tsd-kind-enum-member">LayeredDigraphAlign.LowerRight</a>.</p>
</div></div></section><section class="tsd-panel tsd-member"><a id="AlignNone" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <code class="tsd-tag ts-flagReadonly">Readonly</code> <span class="deprecated">Align<wbr/>None</span><a href="#AlignNone" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-comment-tags tsd-typography"><div class="flex items-center"><code class="tsd-tag">deprecated</code><p>See <a href="LayeredDigraphAlign.html#None" class="tsd-kind-enum-member">LayeredDigraphAlign.None</a>.</p>
</div></div></section><section class="tsd-panel tsd-member"><a id="AlignUpperLeft" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <code class="tsd-tag ts-flagReadonly">Readonly</code> <span class="deprecated">Align<wbr/>Upper<wbr/>Left</span><a href="#AlignUpperLeft" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-comment-tags tsd-typography"><div class="flex items-center"><code class="tsd-tag">deprecated</code><p>See <a href="LayeredDigraphAlign.html#UpperLeft" class="tsd-kind-enum-member">LayeredDigraphAlign.UpperLeft</a>.</p>
</div></div></section><section class="tsd-panel tsd-member"><a id="AlignUpperRight" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <code class="tsd-tag ts-flagReadonly">Readonly</code> <span class="deprecated">Align<wbr/>Upper<wbr/>Right</span><a href="#AlignUpperRight" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-comment-tags tsd-typography"><div class="flex items-center"><code class="tsd-tag">deprecated</code><p>See <a href="LayeredDigraphAlign.html#UpperRight" class="tsd-kind-enum-member">LayeredDigraphAlign.UpperRight</a>.</p>
</div></div></section><section class="tsd-panel tsd-member"><a id="CycleDepthFirst" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <code class="tsd-tag ts-flagReadonly">Readonly</code> <span class="deprecated">Cycle<wbr/>Depth<wbr/>First</span><a href="#CycleDepthFirst" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-comment-tags tsd-typography"><div class="flex items-center"><code class="tsd-tag">deprecated</code><p>See <a href="LayeredDigraphCycleRemove.html#DepthFirst" class="tsd-kind-enum-member">LayeredDigraphCycleRemove.DepthFirst</a>.</p>
</div></div></section><section class="tsd-panel tsd-member"><a id="CycleFromLayers" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <code class="tsd-tag ts-flagReadonly">Readonly</code> <span class="deprecated">Cycle<wbr/>From<wbr/>Layers</span><a href="#CycleFromLayers" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-comment-tags tsd-typography"><div class="flex items-center"><code class="tsd-tag">deprecated</code><p>See <a href="LayeredDigraphCycleRemove.html#FromLayers" class="tsd-kind-enum-member">LayeredDigraphCycleRemove.FromLayers</a>.</p>
</div></div></section><section class="tsd-panel tsd-member"><a id="CycleGreedy" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <code class="tsd-tag ts-flagReadonly">Readonly</code> <span class="deprecated">Cycle<wbr/>Greedy</span><a href="#CycleGreedy" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-comment-tags tsd-typography"><div class="flex items-center"><code class="tsd-tag">deprecated</code><p>See <a href="LayeredDigraphCycleRemove.html#Greedy" class="tsd-kind-enum-member">LayeredDigraphCycleRemove.Greedy</a>.</p>
</div></div></section><section class="tsd-panel tsd-member"><a id="InitDepthFirstIn" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <code class="tsd-tag ts-flagReadonly">Readonly</code> <span class="deprecated">Init<wbr/>Depth<wbr/>First<wbr/>In</span><a href="#InitDepthFirstIn" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-comment-tags tsd-typography"><div class="flex items-center"><code class="tsd-tag">deprecated</code><p>See <a href="LayeredDigraphInit.html#DepthFirstIn" class="tsd-kind-enum-member">LayeredDigraphInit.DepthFirstIn</a>.</p>
</div></div></section><section class="tsd-panel tsd-member"><a id="InitDepthFirstOut" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <code class="tsd-tag ts-flagReadonly">Readonly</code> <span class="deprecated">Init<wbr/>Depth<wbr/>First<wbr/>Out</span><a href="#InitDepthFirstOut" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-comment-tags tsd-typography"><div class="flex items-center"><code class="tsd-tag">deprecated</code><p>See <a href="LayeredDigraphInit.html#DepthFirstOut" class="tsd-kind-enum-member">LayeredDigraphInit.DepthFirstOut</a>.</p>
</div></div></section><section class="tsd-panel tsd-member"><a id="InitNaive" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <code class="tsd-tag ts-flagReadonly">Readonly</code> <span class="deprecated">Init<wbr/>Naive</span><a href="#InitNaive" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-comment-tags tsd-typography"><div class="flex items-center"><code class="tsd-tag">deprecated</code><p>See <a href="LayeredDigraphInit.html#Naive" class="tsd-kind-enum-member">LayeredDigraphInit.Naive</a>.</p>
</div></div></section><section class="tsd-panel tsd-member"><a id="LayerLongestPathSink" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <code class="tsd-tag ts-flagReadonly">Readonly</code> <span class="deprecated">Layer<wbr/>Longest<wbr/>Path<wbr/>Sink</span><a href="#LayerLongestPathSink" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-comment-tags tsd-typography"><div class="flex items-center"><code class="tsd-tag">deprecated</code><p>See <a href="LayeredDigraphLayering.html#LongestPathSink" class="tsd-kind-enum-member">LayeredDigraphLayering.LongestPathSink</a>.</p>
</div></div></section><section class="tsd-panel tsd-member"><a id="LayerLongestPathSource" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <code class="tsd-tag ts-flagReadonly">Readonly</code> <span class="deprecated">Layer<wbr/>Longest<wbr/>Path<wbr/>Source</span><a href="#LayerLongestPathSource" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-comment-tags tsd-typography"><div class="flex items-center"><code class="tsd-tag">deprecated</code><p>See <a href="LayeredDigraphLayering.html#LongestPathSource" class="tsd-kind-enum-member">LayeredDigraphLayering.LongestPathSource</a>.</p>
</div></div></section><section class="tsd-panel tsd-member"><a id="LayerOptimalLinkLength" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <code class="tsd-tag ts-flagReadonly">Readonly</code> <span class="deprecated">Layer<wbr/>Optimal<wbr/>Link<wbr/>Length</span><a href="#LayerOptimalLinkLength" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-comment-tags tsd-typography"><div class="flex items-center"><code class="tsd-tag">deprecated</code><p>See <a href="LayeredDigraphLayering.html#OptimalLinkLength" class="tsd-kind-enum-member">LayeredDigraphLayering.OptimalLinkLength</a>.</p>
</div></div></section><section class="tsd-panel tsd-member"><a id="PackAll" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <code class="tsd-tag ts-flagReadonly">Readonly</code> <span class="deprecated">Pack<wbr/>All</span><a href="#PackAll" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-comment-tags tsd-typography"><div class="flex items-center"><code class="tsd-tag">deprecated</code></div></div></section><section class="tsd-panel tsd-member"><a id="PackExpand" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <code class="tsd-tag ts-flagReadonly">Readonly</code> <span class="deprecated">Pack<wbr/>Expand</span><a href="#PackExpand" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-comment-tags tsd-typography"><div class="flex items-center"><code class="tsd-tag">deprecated</code></div></div></section><section class="tsd-panel tsd-member"><a id="PackMedian" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <code class="tsd-tag ts-flagReadonly">Readonly</code> <span class="deprecated">Pack<wbr/>Median</span><a href="#PackMedian" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-comment-tags tsd-typography"><div class="flex items-center"><code class="tsd-tag">deprecated</code></div></div></section><section class="tsd-panel tsd-member"><a id="PackNone" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <code class="tsd-tag ts-flagReadonly">Readonly</code> <span class="deprecated">Pack<wbr/>None</span><a href="#PackNone" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-comment-tags tsd-typography"><div class="flex items-center"><code class="tsd-tag">deprecated</code></div></div></section><section class="tsd-panel tsd-member"><a id="PackStraighten" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagStatic">Static</code> <code class="tsd-tag ts-flagReadonly">Readonly</code> <span class="deprecated">Pack<wbr/>Straighten</span><a href="#PackStraighten" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-comment-tags tsd-typography"><div class="flex items-center"><code class="tsd-tag">deprecated</code></div></div></section></section></div><div class="col-sidebar"><div class="page-menu"><details open class="tsd-index-accordion tsd-page-navigation"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>On This Page</h3></summary><div class="tsd-accordion-details"><ul><li><a href="#constructor"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-512"></use></svg><span>constructor</span></a></li><li><a href="#aggressiveOption"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-262144"></use></svg><span>aggressive<wbr/>Option</span></a></li><li><a href="#alignOption"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-262144"></use></svg><span>align<wbr/>Option</span></a></li><li><a href="#centered"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-262144"></use></svg><span>centered</span></a></li><li><a href="#columnSpacing"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-262144"></use></svg><span>column<wbr/>Spacing</span></a></li><li><a href="#cycleRemoveOption"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-262144"></use></svg><span>cycle<wbr/>Remove<wbr/>Option</span></a></li><li><a href="#direction"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-262144"></use></svg><span>direction</span></a></li><li><a href="#initializeOption"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-262144"></use></svg><span>initialize<wbr/>Option</span></a></li><li><a href="#iterations"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-262144"></use></svg><span>iterations</span></a></li><li><a href="#layerSpacing"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-262144"></use></svg><span>layer<wbr/>Spacing</span></a></li><li><a href="#layeringOption"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-262144"></use></svg><span>layering<wbr/>Option</span></a></li><li><a href="#maxColumn"><svg class="readonly tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-R,#FF4D4D"></use></svg><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-262144"></use></svg><span>max<wbr/>Column</span></a></li><li><a href="#maxIndex"><svg class="readonly tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-R,#FF4D4D"></use></svg><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-262144"></use></svg><span>max<wbr/>Index</span></a></li><li><a href="#maxIndexLayer"><svg class="readonly tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-R,#FF4D4D"></use></svg><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-262144"></use></svg><span>max<wbr/>Index<wbr/>Layer</span></a></li><li><a href="#maxLayer"><svg class="readonly tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-R,#FF4D4D"></use></svg><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-262144"></use></svg><span>max<wbr/>Layer</span></a></li><li><a href="#minIndexLayer"><svg class="readonly tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-R,#FF4D4D"></use></svg><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-262144"></use></svg><span>min<wbr/>Index<wbr/>Layer</span></a></li><li><a href="#packOption"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-262144"></use></svg><span>pack<wbr/>Option</span></a></li><li><a href="#setsPortSpots"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-262144"></use></svg><span>sets<wbr/>Port<wbr/>Spots</span></a></li><li><a href="#assignLayers" class="tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>assign<wbr/>Layers</span></a></li><li><a href="#commitLayers" class="tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>commit<wbr/>Layers</span></a></li><li><a href="#commitLayout"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>commit<wbr/>Layout</span></a></li><li><a href="#commitLinks" class="tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>commit<wbr/>Links</span></a></li><li><a href="#commitNodes" class="tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>commit<wbr/>Nodes</span></a></li><li><a href="#createNetwork"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>create<wbr/>Network</span></a></li><li><a href="#doLayout"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>do<wbr/>Layout</span></a></li><li><a href="#AggressiveLess" class="deprecated"><svg class="static tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-S,#FF984D"></use></svg><svg class="readonly tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-R,#FF984D"></use></svg><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>Aggressive<wbr/>Less</span></a></li><li><a href="#AggressiveMore" class="deprecated"><svg class="static tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-S,#FF984D"></use></svg><svg class="readonly tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-R,#FF984D"></use></svg><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>Aggressive<wbr/>More</span></a></li><li><a href="#AggressiveNone" class="deprecated"><svg class="static tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-S,#FF984D"></use></svg><svg class="readonly tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-R,#FF984D"></use></svg><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>Aggressive<wbr/>None</span></a></li><li><a href="#AlignAll" class="deprecated"><svg class="static tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-S,#FF984D"></use></svg><svg class="readonly tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-R,#FF984D"></use></svg><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>Align<wbr/>All</span></a></li><li><a href="#AlignLowerLeft" class="deprecated"><svg class="static tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-S,#FF984D"></use></svg><svg class="readonly tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-R,#FF984D"></use></svg><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>Align<wbr/>Lower<wbr/>Left</span></a></li><li><a href="#AlignLowerRight" class="deprecated"><svg class="static tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-S,#FF984D"></use></svg><svg class="readonly tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-R,#FF984D"></use></svg><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>Align<wbr/>Lower<wbr/>Right</span></a></li><li><a href="#AlignNone" class="deprecated"><svg class="static tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-S,#FF984D"></use></svg><svg class="readonly tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-R,#FF984D"></use></svg><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>Align<wbr/>None</span></a></li><li><a href="#AlignUpperLeft" class="deprecated"><svg class="static tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-S,#FF984D"></use></svg><svg class="readonly tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-R,#FF984D"></use></svg><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>Align<wbr/>Upper<wbr/>Left</span></a></li><li><a href="#AlignUpperRight" class="deprecated"><svg class="static tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-S,#FF984D"></use></svg><svg class="readonly tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-R,#FF984D"></use></svg><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>Align<wbr/>Upper<wbr/>Right</span></a></li><li><a href="#CycleDepthFirst" class="deprecated"><svg class="static tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-S,#FF984D"></use></svg><svg class="readonly tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-R,#FF984D"></use></svg><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>Cycle<wbr/>Depth<wbr/>First</span></a></li><li><a href="#CycleFromLayers" class="deprecated"><svg class="static tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-S,#FF984D"></use></svg><svg class="readonly tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-R,#FF984D"></use></svg><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>Cycle<wbr/>From<wbr/>Layers</span></a></li><li><a href="#CycleGreedy" class="deprecated"><svg class="static tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-S,#FF984D"></use></svg><svg class="readonly tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-R,#FF984D"></use></svg><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>Cycle<wbr/>Greedy</span></a></li><li><a href="#InitDepthFirstIn" class="deprecated"><svg class="static tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-S,#FF984D"></use></svg><svg class="readonly tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-R,#FF984D"></use></svg><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>Init<wbr/>Depth<wbr/>First<wbr/>In</span></a></li><li><a href="#InitDepthFirstOut" class="deprecated"><svg class="static tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-S,#FF984D"></use></svg><svg class="readonly tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-R,#FF984D"></use></svg><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>Init<wbr/>Depth<wbr/>First<wbr/>Out</span></a></li><li><a href="#InitNaive" class="deprecated"><svg class="static tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-S,#FF984D"></use></svg><svg class="readonly tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-R,#FF984D"></use></svg><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>Init<wbr/>Naive</span></a></li><li><a href="#LayerLongestPathSink" class="deprecated"><svg class="static tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-S,#FF984D"></use></svg><svg class="readonly tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-R,#FF984D"></use></svg><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>Layer<wbr/>Longest<wbr/>Path<wbr/>Sink</span></a></li><li><a href="#LayerLongestPathSource" class="deprecated"><svg class="static tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-S,#FF984D"></use></svg><svg class="readonly tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-R,#FF984D"></use></svg><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>Layer<wbr/>Longest<wbr/>Path<wbr/>Source</span></a></li><li><a href="#LayerOptimalLinkLength" class="deprecated"><svg class="static tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-S,#FF984D"></use></svg><svg class="readonly tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-R,#FF984D"></use></svg><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>Layer<wbr/>Optimal<wbr/>Link<wbr/>Length</span></a></li><li><a href="#PackAll" class="deprecated"><svg class="static tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-S,#FF984D"></use></svg><svg class="readonly tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-R,#FF984D"></use></svg><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>Pack<wbr/>All</span></a></li><li><a href="#PackExpand" class="deprecated"><svg class="static tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-S,#FF984D"></use></svg><svg class="readonly tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-R,#FF984D"></use></svg><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>Pack<wbr/>Expand</span></a></li><li><a href="#PackMedian" class="deprecated"><svg class="static tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-S,#FF984D"></use></svg><svg class="readonly tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-R,#FF984D"></use></svg><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>Pack<wbr/>Median</span></a></li><li><a href="#PackNone" class="deprecated"><svg class="static tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-S,#FF984D"></use></svg><svg class="readonly tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-R,#FF984D"></use></svg><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>Pack<wbr/>None</span></a></li><li><a href="#PackStraighten" class="deprecated"><svg class="static tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-S,#FF984D"></use></svg><svg class="readonly tsd-subicon" viewBox="0 0 28 28"><use href="#subicon-R,#FF984D"></use></svg><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>Pack<wbr/>Straighten</span></a></li></ul></div></details><div class="tsd-navigation settings"><div class="tsd-theme-toggle"><h4 class="uppercase">Theme</h4><select id="tsd-theme"><option value="os">System</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../index.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1"></use></svg><span>GoJS API</span></a><ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base=".."><li>Loading...</li></ul></nav></div></div></div><div class="tsd w-full max-w-screen-xl mx-auto px-2"><div class="bottom-copyright">Copyright © 1998-2025 by Northwoods Software Corporation.</div></div><div class="overlay"></div><script async src="https://www.googletagmanager.com/gtag/js?id=G-S5QK8VSK84"></script><script>window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-S5QK8VSK84');
var getOutboundLink = function(url, label) {
  gtag('event', 'click', {
  'event_category': 'outbound',
  'event_label': label,
  'transport_type': 'beacon'
  });
}

document.getElementById("contactBtn").addEventListener("click", function() {
  getOutboundLink('https://nwoods.com/contact.html', 'contact');
});
document.getElementById("buyBtn").addEventListener("click", function() {
  getOutboundLink('https://nwoods.com/sales/index.html', 'buy');
});</script></body></html>