Skip to content

Support drawing all node shapes through the draw API

Compare
Choose a tag to compare
@magjac magjac released this 01 May 17:02
· 878 commits to master since this release

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>