Releases: magjac/d3-graphviz
Releases · magjac/d3-graphviz
When setting only SVG width, don't set height and vice versa
v2.2.2 When setting only SVG width, don't set height and vice versa
Fixed viewBox attribute parsing warnings
The problem was introduced in v2.2.0.
Added options, SVG size, graph fit & scale and return of existing renderer instance
- If a graphviz renderer instance already exists on an element, return the existing instance instead of creating a new one every time.
- Options can be set when the graphviz renderer is created
- Options can be set with the graphviz.options method
- Added options to set SVG width and height and to fit the graph to the resized SVG
- Added option to scale the graph within the SVG
Fixed relative paths in local URL's
Upgraded viz.js to version 1.8.1
- Upgraded viz.js to version 1.8.1
- Upgraded dev dependencies
Support drawing all node shapes through the draw API
This release introduces a breaking change of the Draw API. The rest of the API is backwards compatible.
- Added support for drawing all node shapes (except user-defined nodes) through the draw API.
NOTE: If the drawNode() method is going to be used, when loading the viz.js script, the script type shall be "application/javascript" or "text/javascript", e.g.:
<script src="https://unpkg.com/viz.js@1.8.0/viz.js" type="application/javascript/"></script>
If the drawNode() method is not going to be used, start-up time may be reduced by using the script type "javascript/worker", e.g.:
<script src="https://unpkg.com/viz.js@1.8.0/viz.js" type="javascript/worker"></script>
Fix "Unexpected value false parsing transform attribute."
- Fixed "Unexpected value false parsing transform attribute." error message. Probably harmless, but nevertheless...
Handle shapes with path elements
- Fixed growing edges from shapes containing path elements, e.g. the cylinder shape
- Fixed shape tweening to and from shapes with path elements, e.g. the cylinder shape
Remove SVG element attributes when node attributes are removed
Fixed removal of SVG element attributes when node attributes are removed
Transpile to ES5 + Draw API fix
Changes
- The production build is transpiled to ES5 in order to support older browsers and certain build tools such as react-scripts.
Fixes
- The draw API draws edges and nodes correctly even when more than one SVG exists in the document.