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; }); }