Skip to content

Commit b33942c

Browse files
authored
Merge pull request #444 from cliffsun91/fix-futpiborder-options-merge
Add `customOrder` and `disableOptimalOrderHeuristic` - fix #263 merge issues
2 parents e6d4c7f + 148f78a commit b33942c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/layout.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ function layout(g, opts) {
2121
time("layout", () => {
2222
let layoutGraph =
2323
time(" buildLayoutGraph", () => buildLayoutGraph(g));
24-
time(" runLayout", () => runLayout(layoutGraph, time));
24+
time(" runLayout", () => runLayout(layoutGraph, time, opts));
2525
time(" updateInputGraph", () => updateInputGraph(g, layoutGraph));
2626
});
2727
}
2828

29-
function runLayout(g, time) {
29+
function runLayout(g, time, opts) {
3030
time(" makeSpaceForEdgeLabels", () => makeSpaceForEdgeLabels(g));
3131
time(" removeSelfEdges", () => removeSelfEdges(g));
3232
time(" acyclic", () => acyclic.run(g));
@@ -41,7 +41,7 @@ function runLayout(g, time) {
4141
time(" normalize.run", () => normalize.run(g));
4242
time(" parentDummyChains", () => parentDummyChains(g));
4343
time(" addBorderSegments", () => addBorderSegments(g));
44-
time(" order", () => order(g));
44+
time(" order", () => order(g, opts));
4545
time(" insertSelfEdges", () => insertSelfEdges(g));
4646
time(" adjustCoordinateSystem", () => coordinateSystem.adjust(g));
4747
time(" position", () => position(g));

0 commit comments

Comments
 (0)