@aduh95/viz.js
Version:
A hack to put Graphviz on the web.
9 lines (8 loc) • 388 B
TypeScript
import type { RenderOptions } from "./types";
/**
* Renders a DOT graph to the specified format.
* @param src DOT representation of the graph to render.
* @param options Options for the rendering engine.
* @returns Raw output of Graphviz as a string.
*/
export default function renderStringSync(src: string, { format, engine, files, images, yInvert, nop, }?: RenderOptions): string;