Skip to content

Releases: magjac/d3-graphviz

When setting only SVG width, don't set height and vice versa

15 Jun 05:35
Compare
Choose a tag to compare
v2.2.2

When setting only SVG width, don't set height and vice versa

Fixed viewBox attribute parsing warnings

12 Jun 17:25
Compare
Choose a tag to compare

The problem was introduced in v2.2.0.

Added options, SVG size, graph fit & scale and return of existing renderer instance

10 Jun 15:39
Compare
Choose a tag to compare
  • 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

04 Jun 05:10
Compare
Choose a tag to compare
  • Fixed relative paths in local URL's. Thanks, @sjlevine! (#61)

Upgraded viz.js to version 1.8.1

04 May 05:22
Compare
Choose a tag to compare
  • Upgraded viz.js to version 1.8.1
  • Upgraded dev dependencies

Support drawing all node shapes through the draw API

01 May 17:02
Compare
Choose a tag to compare

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."

28 Apr 14:06
Compare
Choose a tag to compare
  • Fixed "Unexpected value false parsing transform attribute." error message. Probably harmless, but nevertheless...

Handle shapes with path elements

24 Apr 16:15
Compare
Choose a tag to compare
  • 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

11 Apr 22:24
Compare
Choose a tag to compare

Fixed removal of SVG element attributes when node attributes are removed

Transpile to ES5 + Draw API fix

08 Apr 12:11
Compare
Choose a tag to compare

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.