@octopus-diagram/svg
v0.1.0
Published
SVG renderer and DOM interaction binding for @octopus-diagram/core.
Maintainers
Readme
@octopus-diagram/svg
Incremental SVG renderer and DOM interaction binding for @octopus-diagram/core.
import { BpmnDiagram } from '@octopus-diagram/core';
import { BpmnEditor, SvgRenderer } from '@octopus-diagram/svg';
const diagram = new BpmnDiagram();
new SvgRenderer().render(diagram, document.getElementById('view')!); // read-only view
const editor = new BpmnEditor({ container: document.getElementById('editor')!, diagram, snap: 10 });Features: per-element incremental updates, themes, custom shape renderers via SvgPlugin /
defineCustomElement, selection and handle overlay, viewport culling, ARIA roles and labels,
keyboard support, SVG export. See the API reference.
License: MIT.
