Skip to content

Releases: magjac/d3-graphviz

Corrected help text spelling

03 Apr 05:22
Compare
Choose a tag to compare

Corrected help text spelling in the proof-of-concept GUI Editor.

Draw API

03 Apr 05:18
Compare
Choose a tag to compare

Changes

Added a new API for drawing nodes and edges on an existing graph and animating the transition into a new graph layout.

Try the proof-of-concept D3 Graphviz GUI Editor made with it.

The new methods are:

Fixes

  • Corrected pan and zoom not working after the graph ID had been changed

Support not using web worker

11 Mar 22:50
Compare
Choose a tag to compare
  • Support not using a web worker by setting the new argument useWorker=false in the call to the graphviz() create method.

NOTE: When a web worker is not used, when loading of the viz.js script, the script type shall be "text/javascript", e.g.:
<script src="https://unpkg.com/viz.js@1.8.0/viz.js" type="test/javascript"></script>
When using a web worker, the script type shall be "javascript/worker", e.g.:
<script src="https://unpkg.com/viz.js@1.8.0/viz.js" type="javascript/worker"></script>

Maintenance release

17 Feb 16:08
Compare
Choose a tag to compare

This release does not contain any significant new functionality. It's basically just a consolidation of refactorings made in order to clean up the code and increase the code coverage. A few very minor internal changes and fixes are included, but they are probably not noticeable for a normal user.

Changes

  • The temporary svg used for data extraction is generated in a Document Fragment.
  • The first data post processing stage has been separated from the data extraction stage.
  • Added data processing pass 1 & 2 events.
  • Handle arbitrary event type name length in event logging.
  • Removed test environment workarounds from the production code and replaced them with jsdom polyfills in the test environment.

Fixes

  • Corrected the removal of the style attribute (containing the opacity property) from top level g after fade in when zooming was enabled. No visible difference to the user though.
  • Corrected interpolation used during transitioned zoom reset.
  • Handle onerror also when a web worker is not available. Essentially this is for test purposes only, since d3-graphviz requires a modern browser, where web workers are available.
  • Fixed renderEnd event logging when no transition is used, by not trying to access the non-existent transition. Fixes #33.
  • Corrected keyMode "title" to use title from direct child only. Before this fix the top level svg got the key from the "g" child title instead of falling back to the tag-index key mode.

Rendering callbacks fixed

11 Jan 06:01
Compare
Choose a tag to compare
  • Fixed render and renderDot callbacks

Fix property matrix

07 Jan 15:27
Compare
Choose a tag to compare

Fixed getting SVG transform matrix

onerror, active & fixes

27 Dec 22:17
Compare
Choose a tag to compare
  • Added an onerror() method for catching errors in the DOT source.
  • Added an active() method that returns the active transition on the generated graph's top level svg.
  • Fixed zoomReset() after transition.
  • Fixed panning and zooming during transitions.
  • Fixed bug when graphviz instance is attached to a DOM element with sub-nodes.

Zoom reset with transition

06 Dec 16:53
Compare
Choose a tag to compare
v1.2.0

resetZoom with transition

resetZoom, selectWithoutDataPropagation & fixes

29 Nov 19:56
Compare
Choose a tag to compare
  • Added a selectWithoutDataPropagation() method as an extension of the d3-selection prototype.
  • Added a resetZoom() method.
  • Fixed #11, #13, #14 and some minor stuff.

Load worker script from string via blob instead of from file

17 Nov 07:33
Compare
Choose a tag to compare