From 596dbfd362881c5cc4c68455ad15b0f3b90e2a12 Mon Sep 17 00:00:00 2001 From: Brian Hawthorne Date: Mon, 30 Nov 2020 17:53:20 -0800 Subject: [PATCH] Return layout graph from main layout function --- lib/layout.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/layout.js b/lib/layout.js index 26b07304..c115ab01 100644 --- a/lib/layout.js +++ b/lib/layout.js @@ -19,11 +19,12 @@ module.exports = layout; function layout(g, opts) { var time = opts && opts.debugTiming ? util.time : util.notime; - time("layout", function() { + return time("layout", function() { var layoutGraph = time(" buildLayoutGraph", function() { return buildLayoutGraph(g); }); time(" runLayout", function() { runLayout(layoutGraph, time); }); time(" updateInputGraph", function() { updateInputGraph(g, layoutGraph); }); + return layoutGraph; }); }