Skip to content

@viz-js/viz 3.3.0

Compare
Choose a tag to compare
@github-actions github-actions released this 22 Feb 14:48
· 18 commits to v3 since this release
  • Add support for an images option, similar to the previous version.

    Sizes of images referenced by the image attribute can be specified using an "images" render option:

    viz.render("graph { a[image=\"test.png\"] }", {
      images: [
        { name: "test.png", width: 300, height: 200 }
      ]
    });
    

    The property "name" is used instead of "path" to match the Graphviz documentation.