Kino.VizJS (KinoVizjs v0.9.0)

Copy Markdown View Source

A Kino component for rendering Graphviz variables (DOT strings) via WebAssembly.

Summary

Functions

Creates a new Kino component to render the given DOT string using WebAssembly.

Functions

render(dot_string, options \\ [])

@spec render(String.t(), [option()]) :: Kino.JS.t()

Creates a new Kino component to render the given DOT string using WebAssembly.

Options

  • :engine - The GraphViz engine to use. Must be one of ["dot", "circo", "neato", "fdp", "twopi", "osage"]. Defaults to "dot".
  • :height - The height of the graph container. Can be an integer (pixels) or a string (e.g. "400px", "50vh"). If an integer is provided, "px" is assumed. Defaults to "300px".
  • :width - The width of the graph container. Can be an integer (pixels) or a string (e.g. "100%", "500px"). If an integer is provided, "px" is assumed. Defaults to "100%".