@ene-diagram/svg
v0.2.0
Published
Animated SVG renderer for ene diagrams
Maintainers
Readme
@ene-diagram/svg
Renders an ene diagram to a self-contained animated SVG (SMIL, no script), ready for READMEs and <img>.
npm i @ene-diagram/svgimport { parse, buildTimeline } from "@ene-diagram/core";
import { layout } from "@ene-diagram/layout";
import { renderSvg } from "@ene-diagram/svg";
const { doc } = parse(src);
const tl = buildTimeline(doc);
const svg = renderSvg(await layout(doc, tl), tl, { title: doc.title, lang: "en" });Options: title, icons, notes (step captions, default on), theme (default, mono, high-contrast), lang (en or ko, for the accessible description).
Syntax, examples and the other packages: github.com/ene-diagram/ene. MIT license.
