Release Diagram Tools 0.2.0
Verify / verify (push) Canceled after 0s

This commit is contained in:
2026-09-02 12:11:46 +02:00
parent b78f20f66a
commit f128568e4e
24 changed files with 599 additions and 77 deletions
+12 -1
View File
@@ -1,3 +1,14 @@
# Architecture
`core/diagram.ts` parses one fixed grammar into nodes, edges and line diagnostics, then lays it out deterministically as escaped SVG. Sequence diagrams use lifelines; other modes use a bounded grid. React shows the last successful SVG after errors and delegates PNG rasterization to a local canvas.
`core/diagram.ts` parses fixed, bounded flowchart, sequence, class, state, ER,
mind-map and timeline grammars into nodes, edges and line diagnostics, then lays
them out deterministically as escaped SVG. ER attribute blocks and sequence
notes, class member blocks and labelled state transitions/boundaries become
inert model data; directives, click handlers, remote resources and styling
commands are rejected rather than interpreted. Layout dimensions are derived
from the bounded model rather than clipping nodes to a fixed viewport.
React retains the last successful SVG after errors, imports/exports source and
the normalized JSON model, and delegates optional PNG rasterization to a local
canvas. Generated SVG contains only application-owned geometry and escaped
text.