Releases: mdaines/viz-js
@viz-js/viz 3.2.4
@viz-js/viz 3.2.3
- Add a workaround for node names not being used as labels (#218)
@viz-js/viz 3.2.2
- Include types condition in exports
@viz-js/lang-dot 1.0.4
- Fix that types condition should be listed first
@viz-js/lang-dot 1.0.3
- Include types condition in exports
@viz-js/viz 3.2.1
- Update TypeScript declarations to match API docs
@viz-js/lang-dot 1.0.2
- Add TypeScript declaration file to package
@viz-js/lang-dot 1.0.1
- Add TypeScript declaration file
@viz-js/viz 3.2.0
-
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
- Initial release