Skip to content

Commit

Permalink
Pass opts through to 'order' function
Browse files Browse the repository at this point in the history
Fixes a merge issue where the changes to layout.js in this PR (https://github.com/dagrejs/dagre/pull/263/files) didn't make it in for some reason.
  • Loading branch information
cliffsun91 authored Jun 24, 2024
1 parent e6d4c7f commit 148f78a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand All @@ -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));
Expand Down

0 comments on commit 148f78a

Please sign in to comment.