Ship output

Choose the smallest truthful SVG mode

Static output, embedded theme CSS, and full semantic hooks share identical geometry.

sheet
8 / 15
rev
v0.6
sections
2
compiled
2

01 / OutputSeparate geometry from interaction payload

Mode Adds Use it for
default Accessible static SVG only articles, email-safe exports, immutable assets
embedded-css isolated theme and state classes responsive themed documents
full node, port, wire, source-line, and topology datasets playground mapping and simulations

Here is the reassuring part: every mode shares one parsed document, one layout, one set of routes, one viewBox. Only the styling and metadata differ, so raising or lowering the mode never moves the drawing underneath. The raw SVG in the playground is the exact string Render View displays — not a reconstructed DOM snapshot.

With wire hooks enabled, every signal wire exposes its parser-resolved topology as data-net-id: named nets keep their author name and unnamed nets use deterministic $N identities. The compilation source map exposes the same value as SchematicWireSource.netId; relation-only UML connectors omit it.

source:SQ "battery" at (90, 130) #blue [type=battery]
switch:KB "changeover" at (290, 130) #amber [type=spdt]
load:BZ2 "buzzer" at (520, 130) #emerald [type=buzzer]

SQ.positive -> KB.in #blue [line]
KB.out -> BZ2.in #emerald [line]
compiled by @schemd/core → shown in the rail

full mode keeps diagram-local IDs and provides accessible port targets. It never injects scripts, external fonts, raster assets, data URLs, or foreignObject.

02 / BytesReuse canonical symbols

Identical components reference a single <symbol> definition, and orientation costs only an instance rotation on top of it. A family we never use adds exactly zero bytes to the diagram, which is why a large drawing of few distinct parts stays small.

capacitor:C1 "C" at (130, 120) #cyan
capacitor:C2 "C" at (350, 120) #cyan [orientation=down]
capacitor:C3 "C" at (580, 120) #cyan [orientation=left]
compiled by @schemd/core → shown in the rail