Releases: magjac/d3-graphviz
Releases · magjac/d3-graphviz
Asynchronous DOT layout in web worker
- The layout work is performed in a web worker to avoid unresponsiveness
- Callbacks and event dispatching to cope with the asynchronicity introduced
- New on() method to register event listeners
- Queuing system to handle application requests while busy
- The transition method accepts a transition factory function for customized transitions and easier animation smoothness and synchronization from an application
- New logEvents() method for debugging and for tuning transition delay and duration
NOTE 1: Although the API in itself is backwards compatible, the behavior is somewhat different because of the asynchronous behavior of web workers. The dot() and renderDot() methods now return "immediately", while the graph layout is being performed in the background. This will for some use cases require adding event listeners to one of the new events. See the README and the example directory for guidance.
NOTE 2: When loading the viz.js script, 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>