dagre icon indicating copy to clipboard operation
dagre copied to clipboard

options passed to layout not used

Open mvolkmann opened this issue 4 years ago • 0 comments

The documentation at https://github.com/dagrejs/dagre/wiki#configuring-the-layout says "The layout can be configured by either setting the properties in the table below on the appropriate objects in the graph or by passing a second arg to layout with these properties set. The latter takes precedence." I want to use the second approach.

But looking at the code at https://github.com/dagrejs/dagre/blob/76058e545939b4381f4e5f748f6f2f800a803479/lib/layout.js#L20 it seems that the only option that is used is debugTiming. Shouldn't that function do more with opts?

I can set graph configuration properties on the object passed to g.setGraph(opts), so that's an alternative.

mvolkmann avatar Dec 09 '20 15:12 mvolkmann