Appearance
Interface: Image
graphviz.Image
Example: Passing a web hosted Image to GraphViz:
ts
import { Graphviz } from "@hpcc-js/wasm/graphviz";
const graphviz = await Graphviz.load();
const svg = graphviz.layout('digraph { a[image="https://.../image.png"]; }', "svg", "dot", {
images: [{
path: "https://.../image.png",
width: "272px",
height: "92px"
}]
});
document.getElementById("placeholder").innerHTML = svg;
Properties
path
• path: string
Full URL to image
Defined in
width
• width: string
Defined in
height
• height: string