Skip to content

Releases: mdaines/viz-js

@viz-js/viz 3.2.2

24 Oct 18:30
Compare
Choose a tag to compare
  • Include types condition in exports

@viz-js/lang-dot 1.0.4

24 Oct 19:12
Compare
Choose a tag to compare
  • Fix that types condition should be listed first

@viz-js/lang-dot 1.0.3

24 Oct 19:06
Compare
Choose a tag to compare
  • Include types condition in exports

@viz-js/viz 3.2.1

09 Oct 18:36
26f1232
Compare
Choose a tag to compare
  • Update TypeScript declarations to match API docs

@viz-js/lang-dot 1.0.2

09 Oct 18:24
53db73c
Compare
Choose a tag to compare
  • Add TypeScript declaration file to package

@viz-js/lang-dot 1.0.1

09 Oct 17:21
d670ce4
Compare
Choose a tag to compare
  • Add TypeScript declaration file

@viz-js/viz 3.2.0

12 Sep 22:18
Compare
Choose a tag to compare
  • Update Graphviz to 9.0.0.

  • Update Emscripten SDK to 3.1.45.

  • Accept HTML attribute values in object input.

    HTML attribute values are written as an object literal with a "html" property:

    { label: { html: "<i>the label</i>" } }
    
  • Accept a "reduce" option. This has the same effect as using the -x Graphviz command-line option. When using the neato layout engine, it prunes isolated nodes.

  • Accept default attributes for graphs, nodes, and edges in render options. This is similar to the -G, -N, -E options provided by the Graphviz command-line.

    Setting the default shape for nodes:

    viz.render("digraph { a -> b }", { nodeAttributes: { shape: "circle" } } });
    

    These attributes take precedence over default attributes specified in string and object input.

  • Accept an object that represents a graph as input for render(). This is a JSON object similar in structure to the Graphviz DOT syntax.

    Rendering with an object:

    // DOT: digraph { a -> b }
    viz.render({ directed: true, edges: [{ tail: "a", head: "b" }] });
    

    Another example:

    viz.render({
      nodeAttributes: {
        shape: "circle"
      },
      nodes: [
        { name: "a", attributes: { label: "A", color: "red" } },
      ],
      edges: [
        { tail: "a", head: "b" },
      ],
      subgraphs: [
        {
          name: "cluster_1",
          nodes: [
            { name: "b", attributes: { label: "B", color: "blue" } }
          ]
        }
      ]
    });
    

    Edge ports can be specified using the headport and tailport attributes.

@viz-js/lang-dot 1.0.0

01 Aug 15:11
03f4a0f
Compare
Choose a tag to compare
  • Initial release

v3.1.0

16 Jul 22:13
Compare
Choose a tag to compare
  • Update Graphviz to 8.1.0.

  • Export the Graphviz version, supported formats, and supported engines as constants generated at build time.

  • Include an ES module build as well as UMD.

  • Add Typescript declarations.

v3.0.1

15 Jun 18:43
Compare
Choose a tag to compare
  • Catch the error Emscripten throws when exit() is called.

  • Don't add an error message about no valid graphs in input.

  • Improve error message handling when an error reported from agerr has multiple lines.