bound line 42 · specs/consumers/spec-studio.diagrams.sdp.md:4240 boxes and 100 edges per diagram, counting every box a drawing holds, folded and planned boxes included, and every edge it draws.no citation recorded
density line 43 · specs/consumers/spec-studio.diagrams.sdp.md:43- For requirement, trace, capability and dependency drawings, trigger the existing folds before the hard bound when deterministic layout height exceeds
2000 logical pixels. Measure height from the box and lane layout before routing, using the same label metrics and width budget as the drawing. A fold triggered by these limits must strictly lower that height and hold at least two boxes, keeping the same scope, claims and complete text equivalent. If no lawful fold fits the height budget, omit the SVG and open the text equivalent. labelMetrics line 44 · specs/consumers/spec-studio.diagrams.sdp.md:44- A title or recorded label leads at fourteen pixels, followed by the displayed id at twelve pixels and remaining words such as a component's member count. Title lines hold at most
28 characters and id lines 30, with an eight-pixel character advance. Wrap at spaces or id punctuation, then by code point, and calculate box height from every line. cellWrap line 45 · specs/consumers/spec-studio.diagrams.sdp.md:45- Wrap a cell's boxes within the fixed logical width budget instead of a fixed box count; retain context columns with local scrolling when they exceed it. Layout reads no browser or font measurement.
widthBudget line 46 · specs/consumers/spec-studio.diagrams.sdp.md:46880 logical pixels for a band or grid, band labels included above their band; 264 per context cell when several contexts share a grid, the full band budget when only one context is shown, and 24 between boxes. Routing gutters may widen the SVG to preserve distinct lanes. A drawing wider than 880 scrolls inside its figure and receives the build-written instruction Scroll horizontally to read the whole drawing.no citation recorded
shortId line 47 · specs/consumers/spec-studio.diagrams.sdp.md:47- Drop the namespace and leading dotted segments every id in the figure shares, marking elision with
…; keep more segments on collisions. A displayed id carries a namespace only when shown in full. Full ids remain in link titles, the text equivalent and source. edgeRouting line 48 · specs/consumers/spec-studio.diagrams.sdp.md:48- Reserve boxes and labels as obstacles, route orthogonally with distinct ports and lanes eight pixels apart, and never share a collinear segment or overlap labels. Crossings are permitted only at free points. Keep exact relations and claims through the words-beside-style rule. A deterministic finite routing failure omits the SVG, opens its text equivalent and explains the failure; the build owns search mechanics.
edgeKinds line 49 · specs/consumers/spec-studio.diagrams.sdp.md:49uses for a realized use, drawn solid; plans to use for a use a component design states, drawn dashed; on a trace graph the relation's type; an arrow points from the unit or Spec that uses or declares to the one it names.no citation recorded
svgMarkup line 50 · specs/consumers/spec-studio.diagrams.sdp.md:50- the
svg carries role="img", a title, aria-describedby naming its text equivalent and a viewBox of its own size; a box is a g with class node and data-id, plus data-planned="true" or data-folded="true" when it is planned or folded, holding a link to the box's target; an edge is a g with class edge, data-from, data-to and data-kind; a band is a g with class band and data-label, a column a g with class lane and data-label, each also drawing its label as text. An edge also carries data-claim and a stable data-edge-key when its label uses a legend key; route and label coordinates are presentation values and mint no graph edge. boxTargets line 51 · specs/consumers/spec-studio.diagrams.sdp.md:51- a component's box links to its detail on the architecture lens, a planned component's to its component design's Spec page, a context's or layer's folded box to its section on the same page, a Spec's to its page, and a folded relation group's to the Spec page's relations.
textEquivalent line 52 · specs/consumers/spec-studio.diagrams.sdp.md:52- a
details element closed by default, summary The diagram as text, holding one li per box, <id>: <words>, followed by · folded members: <ids> when folded identities are present, and then one li per edge, <from> <kind> <to>, followed by · <claim> when present, (<n> unit edges) when the edge aggregates more than one, and — <reason> when present. diagramElement line 53 · specs/consumers/spec-studio.diagrams.sdp.md:53sdp-diagram with subject, the rooted Spec, Pack, component or context id, or architecture, wraps one figure containing its caption and legend, any build-written scroll instruction, a keyboard-focusable named .diagram-scroll region containing the SVG, its text equivalent and, when offered, its closed Mermaid-source disclosure with labelled read-only textarea and sdp-copy. Caption, legend and source stay outside the scroll region. On upgrade it adds Zoom in, Zoom out and Reset buttons and handles drag, a wheel with Control or Command held, and pinch; it adds no layout or copy behavior.no citation recorded
elementIds line 54 · specs/consumers/spec-studio.diagrams.sdp.md:54- a diagram's text equivalent has the id
diagram.<subject>.text and its arrow has the id diagram.<subject>.arrow. A page that draws a second view of one subject inserts that view's name before text or arrow, so the Spec page's realization drawing uses diagram.<subject>.realization.text and diagram.<subject>.realization.arrow; its trace graph keeps the unqualified ids. Every id is unique on its page. omittedDrawing line 55 · specs/consumers/spec-studio.diagrams.sdp.md:55- A drawing over the bound keeps its figure and caption, writes
Shown as text: this drawing exceeds the bound of <b> boxes and <e> edges., and opens its text equivalent. A routing failure instead writes Shown as text: a distinct route or label could not be placed within the routing budget. and opens the same complete box-and-edge reading. A drawing still above the height budget after lawful folds instead writes Shown as text: this drawing exceeds the height budget of <h> pixels after folding. and opens its text equivalent. No omission offers partial Mermaid source.