diff --git a/lib/layout.js b/lib/layout.js index dfccf301..5846495b 100644 --- a/lib/layout.js +++ b/lib/layout.js @@ -21,12 +21,12 @@ function layout(g, opts) { time("layout", () => { let layoutGraph = time(" buildLayoutGraph", () => buildLayoutGraph(g)); - time(" runLayout", () => runLayout(layoutGraph, time)); + time(" runLayout", () => runLayout(layoutGraph, time, opts)); time(" updateInputGraph", () => updateInputGraph(g, layoutGraph)); }); } -function runLayout(g, time) { +function runLayout(g, time, opts) { time(" makeSpaceForEdgeLabels", () => makeSpaceForEdgeLabels(g)); time(" removeSelfEdges", () => removeSelfEdges(g)); time(" acyclic", () => acyclic.run(g)); @@ -41,7 +41,7 @@ function runLayout(g, time) { time(" normalize.run", () => normalize.run(g)); time(" parentDummyChains", () => parentDummyChains(g)); time(" addBorderSegments", () => addBorderSegments(g)); - time(" order", () => order(g)); + time(" order", () => order(g, opts)); time(" insertSelfEdges", () => insertSelfEdges(g)); time(" adjustCoordinateSystem", () => coordinateSystem.adjust(g)); time(" position", () => position(g));