graphviz-react
graphviz-react copied to clipboard
Allow Zoom to be Disabled
Currently (as per #29) if zoom
is enabled for a graph then disabling will have no effect and scrolling will still zoom in and out of the graph. The expected behaviour is that disabling zoom should prevent the graph from scaling in and out on scroll.
This appears to be a bug in the underlying package (d3-graphviz
) and there is an open issue for it there: d3-graphviz#180 but because d3-graphviz
is a major version ahead of graphviz-react
any bugfix may not be backported to the version used by graphviz-react
. Therefore we are putting a fix in place here until we are able to upgrade to the latest version to ensure the behaviour is as expected.