@sentropic/design-system-svelte 0.40.0 → 0.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.THIRD-PARTY.md +2 -1
- package/README.md +7 -0
- package/dist/DiagramCard.svelte +25 -36
- package/dist/DiagramCard.svelte.d.ts +4 -8
- package/dist/DiagramCard.svelte.d.ts.map +1 -1
- package/dist/DiagramCardHeader.svelte +11 -10
- package/dist/DiagramCardHeader.svelte.d.ts.map +1 -1
- package/dist/DiagramSceneFigure.svelte +399 -33
- package/dist/DiagramSceneFigure.svelte.d.ts +24 -4
- package/dist/DiagramSceneFigure.svelte.d.ts.map +1 -1
- package/dist/DiagramZone.svelte +21 -47
- package/dist/DiagramZone.svelte.d.ts +2 -4
- package/dist/DiagramZone.svelte.d.ts.map +1 -1
- package/dist/DiagramZoneHeader.svelte +2 -1
- package/dist/DiagramZoneHeader.svelte.d.ts.map +1 -1
- package/dist/diagram-icons/PROVENANCE.md +4 -0
- package/dist/diagram-icons/registry.d.ts.map +1 -1
- package/dist/diagram-icons/registry.js +2 -1
- package/dist/diagram-render/renderCardSvg.d.ts +5 -15
- package/dist/diagram-render/renderCardSvg.d.ts.map +1 -1
- package/dist/diagram-render/renderCardSvg.js +9 -15
- package/dist/diagram-render/renderZoneSvg.d.ts +2 -11
- package/dist/diagram-render/renderZoneSvg.d.ts.map +1 -1
- package/dist/diagram-render/renderZoneSvg.js +5 -10
- package/dist/diagramCardModel.d.ts +2 -611
- package/dist/diagramCardModel.d.ts.map +1 -1
- package/dist/diagramCardModel.js +2 -1164
- package/dist/diagramFontMeasure.d.ts +5 -0
- package/dist/diagramFontMeasure.d.ts.map +1 -0
- package/dist/diagramFontMeasure.js +41 -0
- package/dist/diagramRenderedBounds.d.ts +6 -0
- package/dist/diagramRenderedBounds.d.ts.map +1 -0
- package/dist/diagramRenderedBounds.js +51 -0
- package/package.json +8 -6
|
@@ -1,612 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* Pure TypeScript, zero imports: the Svelte `DiagramCard` (barrel graph)
|
|
5
|
-
* and the `diagram-render` pure renderer (subpath graph) both consume this
|
|
6
|
-
* module, so it must live outside both subpath directories and import
|
|
7
|
-
* nothing. Glyph path data arrives via props (resolved by the caller from
|
|
8
|
-
* the `diagram-icons` subpath); this module never resolves a glyph name.
|
|
9
|
-
*
|
|
10
|
-
* One geometry source (§5.6): every number below is frozen by
|
|
11
|
-
* spec/SPEC_EVOL_DS_DIAGRAM_CARDS.md §5.3/Appendix A and mirrors
|
|
12
|
-
* - the `diagramCard` component tokens (`packages/tokens/src/component.ts`),
|
|
13
|
-
* - `packages/diagram-canvas/src/layout/measure.ts`
|
|
14
|
-
* (`FIXED_CARD_WIDTH 460`, `FIXED_CARD_HEIGHT 200`,
|
|
15
|
-
* `TOGGLE_ALLOCATION 66`, `CONTENT_INSET 16`, `RULE_GAP 4`).
|
|
16
|
-
* The token↔constant agreement test asserts the sources agree.
|
|
17
|
-
*
|
|
18
|
-
* Line boxes use the kit's 1/64 px grid (`floor(size * 1.3 * 64) / 64`,
|
|
19
|
-
* cf. `frameHeaderContent`): with those boxes the frozen content sums
|
|
20
|
-
* exactly — footer text-box bottom at `198 − 9.25`, rule gaps 4/4 — instead
|
|
21
|
-
* of drifting by fractional pixels (DIF-04). Text baselines follow the
|
|
22
|
-
* kit's glyph bounds: a 24 px role sits 22 px above its baseline, the
|
|
23
|
-
* 22 px kicker and the 32 px title at their own size (cf. the frozen SVG:
|
|
24
|
-
* kicker baseline `headerY + 16 + 22`, title `+ 32`, subtitle `+ 22`).
|
|
25
|
-
*/
|
|
26
|
-
/** Frozen card geometry, in card pixels (spec §5.3, Appendix A). */
|
|
27
|
-
export declare const CARD_GEOMETRY: {
|
|
28
|
-
readonly width: 460;
|
|
29
|
-
readonly height: 200;
|
|
30
|
-
readonly borderWidth: 2;
|
|
31
|
-
readonly accentWidth: 8;
|
|
32
|
-
readonly padding: 8;
|
|
33
|
-
/** Card left edge → header icon left edge (accent 8 + padding 8). */
|
|
34
|
-
readonly headerInset: 16;
|
|
35
|
-
readonly iconSize: 70;
|
|
36
|
-
readonly iconTextGap: 6;
|
|
37
|
-
readonly kicker: {
|
|
38
|
-
readonly size: 22;
|
|
39
|
-
readonly weight: 400;
|
|
40
|
-
readonly lineHeight: 1.3;
|
|
41
|
-
readonly letterSpacingEm: 0.04;
|
|
42
|
-
};
|
|
43
|
-
readonly title: {
|
|
44
|
-
readonly size: 32;
|
|
45
|
-
readonly weight: 700;
|
|
46
|
-
readonly lineHeight: 1.3;
|
|
47
|
-
};
|
|
48
|
-
/** Header row → body block. */
|
|
49
|
-
readonly gap: 6;
|
|
50
|
-
readonly body: {
|
|
51
|
-
readonly size: 24;
|
|
52
|
-
readonly weight: 400;
|
|
53
|
-
readonly lineHeight: 1.3;
|
|
54
|
-
};
|
|
55
|
-
/**
|
|
56
|
-
* Edge-label text (BF-6): 18px so one line plus margins fits the 32px
|
|
57
|
-
* gutter cap (22 + 2 × 4 = 30 ≤ 32). Mirrors the
|
|
58
|
-
* `diagramScene.edgeLabelFontSize` / `edgeLabelLineHeight` tokens;
|
|
59
|
-
* additive, frozen card sizes unchanged.
|
|
60
|
-
*/
|
|
61
|
-
readonly edgeLabel: {
|
|
62
|
-
readonly size: 18;
|
|
63
|
-
readonly weight: 400;
|
|
64
|
-
readonly lineHeight: number;
|
|
65
|
-
};
|
|
66
|
-
/** Accent-bar left edge → first body glyph. */
|
|
67
|
-
readonly bodyInsetFromBar: 14;
|
|
68
|
-
readonly ruleHeight: 1;
|
|
69
|
-
readonly ruleMargin: 4;
|
|
70
|
-
readonly ruleInsetStart: 16;
|
|
71
|
-
readonly ruleInsetEnd: 10;
|
|
72
|
-
readonly footer: {
|
|
73
|
-
readonly size: 24;
|
|
74
|
-
readonly weight: 700;
|
|
75
|
-
readonly lineHeight: 1.3;
|
|
76
|
-
};
|
|
77
|
-
/** Footer text-box bottom → inner edge of the bottom border. */
|
|
78
|
-
readonly footerBottomInset: 9.25;
|
|
79
|
-
/**
|
|
80
|
-
* Title/kicker width reservation when the toggle slot is present
|
|
81
|
-
* (hrpn tints.css `header { padding-right: 66px }`: the 66 px the +/−
|
|
82
|
-
* control needs in the header's inline-end).
|
|
83
|
-
*/
|
|
84
|
-
readonly toggleAllocation: 66;
|
|
85
|
-
/** The toggle slot box itself: the 32 px DS IconButton (sm) square. */
|
|
86
|
-
readonly toggleBoxSize: 32;
|
|
87
|
-
/**
|
|
88
|
-
* Header text width of a folded card (toggle present, icon present):
|
|
89
|
-
* the owner-pinned 290 px — the hrpn folded-card title width
|
|
90
|
-
* (356 − 66 = 290). Plain cards keep `contentRight − headerTextX`
|
|
91
|
-
* (358 px with the icon).
|
|
92
|
-
*/
|
|
93
|
-
readonly foldedHeaderTextWidth: 290;
|
|
94
|
-
/** Card allocations, frozen-box-derived (see module doc). */
|
|
95
|
-
readonly allocatedLines: {
|
|
96
|
-
readonly kicker: 1;
|
|
97
|
-
readonly title: 2;
|
|
98
|
-
readonly body: 2;
|
|
99
|
-
readonly footer: 1;
|
|
100
|
-
};
|
|
101
|
-
};
|
|
102
|
-
/**
|
|
103
|
-
* Edge label typography (DC-2a, tokens `diagramScene.edgeLabelFontSize` /
|
|
104
|
-
* `diagramScene.edgeLabelLineHeight`): 18 px on a 22 px line box. One line
|
|
105
|
-
* plus the engine's two 4 px label margins is 30 px, inside the 32 px sibling
|
|
106
|
-
* gap cap; at the 0.45 readability floor it renders at 8.1 CSS px.
|
|
107
|
-
*/
|
|
108
|
-
export declare const EDGE_LABEL_GEOMETRY: {
|
|
109
|
-
readonly size: 18;
|
|
110
|
-
readonly weight: 400;
|
|
111
|
-
readonly lineHeight: 22;
|
|
112
|
-
};
|
|
113
|
-
/** Line box height for a size at 1.3, on the 1/64 px grid. */
|
|
114
|
-
export declare function lineBoxHeight(size: number): number;
|
|
115
|
-
/**
|
|
116
|
-
* Alphabetic baseline inside a line box starting at `top`, per the kit's
|
|
117
|
-
* glyph bounds: 24 px roles (body/subtitle/footer) sit 22 px above the
|
|
118
|
-
* baseline; the 22 px kicker and the 32 px title at their own size.
|
|
119
|
-
*/
|
|
120
|
-
export declare function baselineOf(top: number, size: number): number;
|
|
121
|
-
/** Presentation-shaped input (structural subset of `EntityPresentation`,
|
|
122
|
-
* `diagram-presentation@1` — no import so this module stays dependency-free). */
|
|
123
|
-
export interface CardPresentationInput {
|
|
124
|
-
readonly form: "card" | "container" | "legend" | "legend-key";
|
|
125
|
-
readonly text: {
|
|
126
|
-
readonly title?: string;
|
|
127
|
-
readonly kicker?: string;
|
|
128
|
-
readonly body?: string;
|
|
129
|
-
readonly detail?: string;
|
|
130
|
-
readonly subtitle?: string;
|
|
131
|
-
readonly footer?: string;
|
|
132
|
-
};
|
|
133
|
-
readonly icon?: string;
|
|
134
|
-
readonly categoryRef?: string;
|
|
135
|
-
/** Neutral status prop: drawn as a dashed border, independent of tint. */
|
|
136
|
-
readonly proposed?: boolean;
|
|
137
|
-
}
|
|
138
|
-
/** Resolved glyph path data (structural twin of the `diagram-icons`
|
|
139
|
-
* registry record — no import so the barrel never resolves that graph). */
|
|
140
|
-
export interface DiagramGlyphPaths {
|
|
141
|
-
readonly face: string;
|
|
142
|
-
readonly line?: string;
|
|
143
|
-
readonly darkLine?: true;
|
|
144
|
-
readonly text?: string;
|
|
145
|
-
}
|
|
146
|
-
export interface DiagramCardToggle {
|
|
147
|
-
readonly collapsed: boolean;
|
|
148
|
-
readonly label: string;
|
|
149
|
-
/**
|
|
150
|
-
* Host wiring (Svelte `DiagramCard` calls it; the static SVG renderer
|
|
151
|
-
* ignores it). Kept on the shared type so both renderers accept the same
|
|
152
|
-
* toggle value.
|
|
153
|
-
*/
|
|
154
|
-
readonly onToggle?: () => void;
|
|
155
|
-
}
|
|
156
|
-
export interface DiagramCardProps {
|
|
157
|
-
readonly entityId: string;
|
|
158
|
-
readonly kicker?: string;
|
|
159
|
-
readonly title: string;
|
|
160
|
-
/** Body lines in order; trailing `detailCount` lines render secondary. */
|
|
161
|
-
readonly body: readonly string[];
|
|
162
|
-
readonly detailCount?: number;
|
|
163
|
-
readonly footer?: string;
|
|
164
|
-
readonly icon?: string;
|
|
165
|
-
readonly iconGlyph?: DiagramGlyphPaths;
|
|
166
|
-
readonly tone?: string;
|
|
167
|
-
/**
|
|
168
|
-
* Neutral status prop: `true` draws the border dashed (owner criterion:
|
|
169
|
-
* a proposed state is always dashed), independently of `tone` — the tint
|
|
170
|
-
* stays host-supplied legend meaning.
|
|
171
|
-
*/
|
|
172
|
-
readonly proposed?: boolean;
|
|
173
|
-
readonly toggle?: DiagramCardToggle;
|
|
174
|
-
/**
|
|
175
|
-
* Owner variant: `"center"` centres every text slot horizontally inside its
|
|
176
|
-
* frozen allocation (same 460 × 200 box). Default `"left"`.
|
|
177
|
-
*/
|
|
178
|
-
readonly align?: "left" | "center";
|
|
179
|
-
/**
|
|
180
|
-
* Body rendering mode. `"leaf"` (default): left/top-aligned function/detail
|
|
181
|
-
* lines at the body inset. `"subtitle"`: the collapsed-zone subtitle —
|
|
182
|
-
* wrapped at the frozen 396 px measure and centred horizontally and
|
|
183
|
-
* vertically inside the card body area (§6.2.1).
|
|
184
|
-
*/
|
|
185
|
-
readonly bodyMode?: "leaf" | "subtitle";
|
|
186
|
-
}
|
|
187
|
-
export type CardResolveResult = {
|
|
188
|
-
readonly kind: "card";
|
|
189
|
-
readonly props: DiagramCardProps;
|
|
190
|
-
} | {
|
|
191
|
-
readonly kind: "label";
|
|
192
|
-
};
|
|
193
|
-
export interface ProjectCardOptions {
|
|
194
|
-
readonly entityId: string;
|
|
195
|
-
readonly toggle?: DiagramCardToggle;
|
|
196
|
-
readonly resolveGlyph?: (name: string) => DiagramGlyphPaths | undefined;
|
|
197
|
-
}
|
|
198
|
-
/**
|
|
199
|
-
* Shared `EntityPresentation` → props projection (§4.2), consumed by both
|
|
200
|
-
* renderers. A missing presentation entry (or a non-card form, or no title)
|
|
201
|
-
* resolves to `{ kind: "label" }`: the host renders a simple label node and
|
|
202
|
-
* no card (L-R12). The glyph name maps through the injected resolver, which
|
|
203
|
-
* the `diagram-render` subpath wires to the icon registry; a name with no
|
|
204
|
-
* record yields no glyph and the layout raises `card-icon-unknown`.
|
|
205
|
-
*/
|
|
206
|
-
export declare function projectCardProps(presentation: CardPresentationInput | undefined, opts: ProjectCardOptions): CardResolveResult;
|
|
207
|
-
/** Text wrapping injected by the host (the shipped `LineMeasurer` in
|
|
208
|
-
* production; a deterministic greedy wrapper in tests). `tooWide` is true
|
|
209
|
-
* when an emitted line exceeds `availableWidth` (typically one unbreakable
|
|
210
|
-
* word wider than the allocation) — the layout raises `card-overflow` for
|
|
211
|
-
* it exactly like for a line-count overflow (DC-D4). `lineWidths` carries
|
|
212
|
-
* the measured width of every emitted line so horizontal overflow is
|
|
213
|
-
* reported as `neededPx > allocatedPx` (Astra J4); hosts injecting a
|
|
214
|
-
* measurer without per-line widths still get the line-count diagnostic. */
|
|
215
|
-
export interface CardMeasuredText {
|
|
216
|
-
readonly lines: readonly string[];
|
|
217
|
-
readonly tooWide: boolean;
|
|
218
|
-
readonly lineWidths?: readonly number[];
|
|
219
|
-
}
|
|
220
|
-
export type CardLineMeasure = (text: string, role: "kicker" | "title" | "body" | "footer", availableWidth: number, allocatedLines: number) => CardMeasuredText;
|
|
221
|
-
/**
|
|
222
|
-
* Deterministic greedy wrapper over the pinned per-character advances.
|
|
223
|
-
* Production hosts inject their measured ‘LineMeasurer’; tests and
|
|
224
|
-
* static strings use this. It mirrors the frozen reference measurer
|
|
225
|
-
* (`cardTextWidth`/`wrapText` of the pinned kit): every candidate line is
|
|
226
|
-
* measured as a whole — `sum(advance × size) + 2` px safety — with the
|
|
227
|
-
* unknown-glyph fallback at 0.7 em, and the kicker is uppercased and
|
|
228
|
-
* tracked at 0.04 em before lookup (the kicker renders uppercase with
|
|
229
|
-
* `letter-spacing: 0.04em`). Corpus fixtures wrap exactly where the
|
|
230
|
-
* reference wraps; overflow fixtures overflow under every metric.
|
|
231
|
-
*/
|
|
232
|
-
export declare function defaultCardMeasure(text: string, role: "kicker" | "title" | "body" | "footer", availableWidth: number): CardMeasuredText;
|
|
233
|
-
/**
|
|
234
|
-
* Structural twin of the `diagram-canvas` `MeasureRequest` (no import —
|
|
235
|
-
* this module stays dependency-free): every canvas `TextRole` is listed,
|
|
236
|
-
* so a `(request: CardMeasureRequest) => CardLineLayout` function is
|
|
237
|
-
* assignable to the canvas `LineMeasurer` without a cast.
|
|
238
|
-
*/
|
|
239
|
-
export interface CardMeasureRequest {
|
|
240
|
-
readonly text: string;
|
|
241
|
-
readonly role: "kicker" | "title" | "body" | "footer" | "subtitle" | "detail" | "legend-label" | "edge-label";
|
|
242
|
-
readonly availableWidth: number;
|
|
243
|
-
readonly allocatedLines: number;
|
|
244
|
-
readonly folded?: boolean;
|
|
245
|
-
}
|
|
246
|
-
/** Structural twin of the `diagram-canvas` `LineLayout`. */
|
|
247
|
-
export interface CardLineLayout {
|
|
248
|
-
readonly lines: readonly string[];
|
|
249
|
-
readonly width: number;
|
|
250
|
-
readonly height: number;
|
|
251
|
-
readonly overflow: boolean;
|
|
252
|
-
}
|
|
253
|
-
export declare const DEFAULT_CARD_MEASURER_VERSION = "pinned-kit-1px";
|
|
254
|
-
/**
|
|
255
|
-
* Bridge from the card measurer to the canvas `LineMeasurer` shape: a host
|
|
256
|
-
* pairing `diagram-canvas` with these renderers passes `cardLineMeasurer()`
|
|
257
|
-
* straight as the injected `LineMeasurer` — no adapter, no role cast.
|
|
258
|
-
* Every canvas role maps onto the card role with the same font size
|
|
259
|
-
* (subtitle, detail and legend-label measure as body), `width` is the
|
|
260
|
-
* widest emitted line, `height` the line count at the role's line box, and
|
|
261
|
-
* `overflow` reports a too-wide line or a line-count overflow.
|
|
262
|
-
*
|
|
263
|
-
* The edge label has its own size (`EDGE_LABEL_GEOMETRY`, 18 px on 22 px):
|
|
264
|
-
* it is the body face scaled by 18/24. The injected measure only knows the
|
|
265
|
-
* four card roles, so the label is wrapped as body text in a width scaled up
|
|
266
|
-
* by 24/18 and its line widths are scaled back down — advances are linear in
|
|
267
|
-
* the font size, so this is the 18 px measurement.
|
|
268
|
-
*/
|
|
269
|
-
export declare function cardLineMeasurer(measure?: CardLineMeasure): ((request: CardMeasureRequest) => CardLineLayout) & {
|
|
270
|
-
readonly version?: string;
|
|
271
|
-
};
|
|
272
|
-
export interface LaidOutLine {
|
|
273
|
-
readonly text: string;
|
|
274
|
-
/** Anchor x: start edge for `"start"`, centre for `"middle"` (align variant). */
|
|
275
|
-
readonly x: number;
|
|
276
|
-
readonly baseline: number;
|
|
277
|
-
readonly size: number;
|
|
278
|
-
readonly weight: number;
|
|
279
|
-
readonly secondary: boolean;
|
|
280
|
-
readonly anchor: "start" | "middle";
|
|
281
|
-
}
|
|
282
|
-
export interface CardDiagnostic {
|
|
283
|
-
readonly code: "card-overflow" | "card-icon-unknown";
|
|
284
|
-
readonly slot: string;
|
|
285
|
-
readonly entityId: string;
|
|
286
|
-
readonly neededPx: number;
|
|
287
|
-
readonly allocatedPx: number;
|
|
288
|
-
/**
|
|
289
|
-
* Original, unwrapped slot text. Overflow is refused, never shortened
|
|
290
|
-
* (owner criterion: overflow = refusal, never a truncation), so the
|
|
291
|
-
* diagnostic carries the source string the host must shorten.
|
|
292
|
-
*/
|
|
293
|
-
readonly text?: string;
|
|
294
|
-
}
|
|
295
|
-
/**
|
|
296
|
-
* Overflow = refusal (owner criterion, DC-1 review): the first overflow
|
|
297
|
-
* diagnostic of a layout, or `undefined` when the content fits. Both
|
|
298
|
-
* renderers (pure SVG and Svelte) refuse on exactly this predicate, so the
|
|
299
|
-
* two contracts cannot diverge.
|
|
300
|
-
*/
|
|
301
|
-
export declare function firstOverflowDiagnostic<D extends {
|
|
302
|
-
readonly code: string;
|
|
303
|
-
}>(diagnostics: readonly D[]): D | undefined;
|
|
304
|
-
/**
|
|
305
|
-
* Optional-slot header geometry, derived ONCE here and applied identically
|
|
306
|
-
* by `layoutCard`, `layoutZone`, `renderCardSvg`/`renderZoneSvg` and the
|
|
307
|
-
* Svelte header row (review pass 2, item 10). The 70 px icon floor applies
|
|
308
|
-
* only when the icon slot is present: without an icon the header row is
|
|
309
|
-
* exactly the kicker + title line boxes, so the body/subtitle start no
|
|
310
|
-
* longer jumps by ~28 px between the model and the Svelte header. With an
|
|
311
|
-
* icon, both the icon and the text band are centred in the block — the same
|
|
312
|
-
* `align-items: center` the Svelte header row paints.
|
|
313
|
-
*/
|
|
314
|
-
export interface HeaderSlotGeometry {
|
|
315
|
-
readonly kickerHeight: number;
|
|
316
|
-
readonly titleHeight: number;
|
|
317
|
-
/** Kicker + title line-box height (0 when both slots are omitted). */
|
|
318
|
-
readonly contentHeight: number;
|
|
319
|
-
/** Header row height: `max(icon 70, content)` with icon, `content` without. */
|
|
320
|
-
readonly blockHeight: number;
|
|
321
|
-
/** Text band top, relative to the block top: centred in the block. */
|
|
322
|
-
readonly textTopOffset: number;
|
|
323
|
-
/** Icon top, relative to the block top: centred in the block (0 without icon). */
|
|
324
|
-
readonly iconTopOffset: number;
|
|
325
|
-
}
|
|
326
|
-
export declare function headerSlotGeometry(opts: {
|
|
327
|
-
readonly hasIcon: boolean;
|
|
328
|
-
readonly kickerLines: number;
|
|
329
|
-
readonly titleLines: number;
|
|
330
|
-
}): HeaderSlotGeometry;
|
|
331
|
-
export interface CardLayout {
|
|
332
|
-
readonly box: {
|
|
333
|
-
readonly width: number;
|
|
334
|
-
readonly height: number;
|
|
335
|
-
};
|
|
336
|
-
readonly contentTop: number;
|
|
337
|
-
readonly contentRight: number;
|
|
338
|
-
readonly iconBox?: {
|
|
339
|
-
readonly x: number;
|
|
340
|
-
readonly y: number;
|
|
341
|
-
readonly size: number;
|
|
342
|
-
};
|
|
343
|
-
readonly headerTextX: number;
|
|
344
|
-
readonly headerTextWidth: number;
|
|
345
|
-
readonly kicker: readonly LaidOutLine[];
|
|
346
|
-
readonly title: readonly LaidOutLine[];
|
|
347
|
-
readonly headerBlockHeight: number;
|
|
348
|
-
readonly bodyX: number;
|
|
349
|
-
readonly bodyWidth: number;
|
|
350
|
-
/** Body allocation: vertical centring reference in `subtitle` body mode (§6.2.1). */
|
|
351
|
-
readonly bodyArea: {
|
|
352
|
-
readonly top: number;
|
|
353
|
-
readonly bottom: number;
|
|
354
|
-
};
|
|
355
|
-
readonly body: readonly LaidOutLine[];
|
|
356
|
-
readonly bodyBottom: number;
|
|
357
|
-
/** Present only when `footer` is set: exactly one rule (§5.4, DH-04). */
|
|
358
|
-
readonly ruleY?: number;
|
|
359
|
-
readonly ruleX1: number;
|
|
360
|
-
readonly ruleX2: number;
|
|
361
|
-
/** Footer lines as measured (wrapped, never joined back), pinned bottom-up. */
|
|
362
|
-
readonly footerLines: readonly LaidOutLine[];
|
|
363
|
-
/** Footer text-box bottom (pinned at `height − border − 9.25`). */
|
|
364
|
-
readonly footerBottom: number;
|
|
365
|
-
readonly toggleBox?: {
|
|
366
|
-
readonly x: number;
|
|
367
|
-
readonly y: number;
|
|
368
|
-
readonly size: number;
|
|
369
|
-
};
|
|
370
|
-
readonly diagnostics: readonly CardDiagnostic[];
|
|
371
|
-
}
|
|
372
|
-
/**
|
|
373
|
-
* Lay out one card: wrap every slot against its frozen allocation, position
|
|
374
|
-
* every line, pin the footer, emit diagnostics. Never truncates or clips
|
|
375
|
-
* (DC-D4): the layout always describes the complete content inside the
|
|
376
|
-
* fixed 460 × 200 box. Any overflow — a too-wide line, a line-count
|
|
377
|
-
* overflow, or a combined header+body height that does not fit the space
|
|
378
|
-
* above the pinned rule — raises `card-overflow` carrying the original slot
|
|
379
|
-
* text, and both renderers refuse on it (overflow = refusal, owner
|
|
380
|
-
* criterion): no normal card is emitted until the content fits. An icon
|
|
381
|
-
* name with no glyph data raises `card-icon-unknown` and the slot collapses.
|
|
382
|
-
*/
|
|
383
|
-
export declare function layoutCard(props: DiagramCardProps, measure: CardLineMeasure): CardLayout;
|
|
384
|
-
/**
|
|
385
|
-
* Frozen zone geometry (spec §6.4). Mirrors the `diagramZone` component
|
|
386
|
-
* tokens (`packages/tokens/src/component.ts`) and the `diagram-canvas`
|
|
387
|
-
* `measure.ts` constants (`CONTENT_INSET 16`, `RULE_GAP 4`,
|
|
388
|
-
* `SUBTITLE_TO_RULE_GAP 4`, `RULE_TO_FIRST_CHILD_GAP 16`,
|
|
389
|
-
* `LAST_CHILD_TO_BOTTOM_GAP 16`, `TOGGLE_ALLOCATION 66`,
|
|
390
|
-
* `FIXED_CARD_WIDTH 460`, `FIXED_CARD_HEIGHT 200`); the token↔constant
|
|
391
|
-
* agreement test asserts the sources agree. Fields shared with the atomic
|
|
392
|
-
* card alias `CARD_GEOMETRY` directly — one geometry source (§5.6).
|
|
393
|
-
*/
|
|
394
|
-
export declare const ZONE_GEOMETRY: {
|
|
395
|
-
readonly radius: 0;
|
|
396
|
-
readonly borderWidth: 1.5;
|
|
397
|
-
readonly headerInset: 16;
|
|
398
|
-
readonly iconSize: 70;
|
|
399
|
-
readonly iconTextGap: 6;
|
|
400
|
-
readonly kicker: {
|
|
401
|
-
readonly size: 22;
|
|
402
|
-
readonly weight: 400;
|
|
403
|
-
readonly lineHeight: 1.3;
|
|
404
|
-
readonly letterSpacingEm: 0.04;
|
|
405
|
-
};
|
|
406
|
-
readonly title: {
|
|
407
|
-
readonly size: 32;
|
|
408
|
-
readonly weight: 700;
|
|
409
|
-
readonly lineHeight: 1.3;
|
|
410
|
-
};
|
|
411
|
-
readonly subtitle: {
|
|
412
|
-
readonly size: 24;
|
|
413
|
-
readonly weight: 400;
|
|
414
|
-
readonly lineHeight: 1.3;
|
|
415
|
-
};
|
|
416
|
-
/** Rendered title → subtitle gap: alias of the card `gap` (§6.4). */
|
|
417
|
-
readonly subtitleGap: 6;
|
|
418
|
-
readonly headerRuleGap: 4;
|
|
419
|
-
readonly contentInsetTop: 16;
|
|
420
|
-
readonly contentInsetBottom: 16;
|
|
421
|
-
readonly contentInsetInline: 16;
|
|
422
|
-
readonly ruleHeight: 1;
|
|
423
|
-
readonly ruleMargin: 4;
|
|
424
|
-
readonly ruleInsetStart: 16;
|
|
425
|
-
readonly ruleInsetEnd: 10;
|
|
426
|
-
readonly footer: {
|
|
427
|
-
readonly size: 24;
|
|
428
|
-
readonly weight: 700;
|
|
429
|
-
readonly lineHeight: 1.3;
|
|
430
|
-
};
|
|
431
|
-
readonly footerBottomInset: 9.25;
|
|
432
|
-
readonly toggleAllocation: 66;
|
|
433
|
-
readonly toggleBoxSize: 32;
|
|
434
|
-
/**
|
|
435
|
-
* Expanded toggle top inset: the frozen SVG places every zone toggle at
|
|
436
|
-
* `y + 10` (flush under the frame's top edge), while the header band
|
|
437
|
-
* starts at `y + 16`.
|
|
438
|
-
*/
|
|
439
|
-
readonly toggleTopInset: 10;
|
|
440
|
-
/**
|
|
441
|
-
* Expanded header text inset from the frame's left edge: the kit wraps
|
|
442
|
-
* kicker/title at `width − 178` (icon 16 + 70 + gap 6, toggle room, right
|
|
443
|
-
* inset) — 314 px at the PEOPLE width 492.
|
|
444
|
-
*/
|
|
445
|
-
readonly headerTextInset: 178;
|
|
446
|
-
readonly collapsedWidth: 460;
|
|
447
|
-
readonly collapsedHeight: 200;
|
|
448
|
-
readonly collapsedInset: 16;
|
|
449
|
-
readonly collapsedSubtitleMarginInline: 16;
|
|
450
|
-
readonly allocatedLines: {
|
|
451
|
-
readonly kicker: 1;
|
|
452
|
-
readonly title: 2;
|
|
453
|
-
readonly subtitle: 2;
|
|
454
|
-
readonly footer: 1;
|
|
455
|
-
};
|
|
456
|
-
};
|
|
457
|
-
/** Centred collapsed-subtitle measure (§6.2.1): 460 − 2 × (16 + 16). */
|
|
458
|
-
export declare const COLLAPSED_SUBTITLE_MEASURE: number;
|
|
459
|
-
export interface DiagramZoneToggle {
|
|
460
|
-
readonly collapsed: boolean;
|
|
461
|
-
readonly label: string;
|
|
462
|
-
readonly onToggle?: () => void;
|
|
463
|
-
}
|
|
464
|
-
export interface DiagramZoneProps {
|
|
465
|
-
readonly entityId: string;
|
|
466
|
-
readonly kicker?: string;
|
|
467
|
-
readonly title: string;
|
|
468
|
-
readonly subtitle?: string;
|
|
469
|
-
/**
|
|
470
|
-
* Zone footer, both states (§6.1): folding never changes the footer —
|
|
471
|
-
* collapsed it pins the card rule, expanded it pins at the frame bottom.
|
|
472
|
-
*/
|
|
473
|
-
readonly footer?: string;
|
|
474
|
-
readonly icon?: string;
|
|
475
|
-
readonly iconGlyph?: DiagramGlyphPaths;
|
|
476
|
-
readonly tone?: string;
|
|
477
|
-
/** Neutral status prop: dashed border in both states, independent of tint. */
|
|
478
|
-
readonly proposed?: boolean;
|
|
479
|
-
readonly collapsed: boolean;
|
|
480
|
-
readonly toggleLabel?: string;
|
|
481
|
-
/** Owner variant: `"center"` centres every text slot, both states. */
|
|
482
|
-
readonly align?: "left" | "center";
|
|
483
|
-
/**
|
|
484
|
-
* Occurrence box supplied by the host layout (§6.1: the component paints
|
|
485
|
-
* around the box it is given). Collapsed, the box is the frozen
|
|
486
|
-
* 460 × 200 card; expanded, `width`/`height` size the frame.
|
|
487
|
-
*/
|
|
488
|
-
readonly x?: number;
|
|
489
|
-
readonly y?: number;
|
|
490
|
-
readonly width?: number;
|
|
491
|
-
readonly height?: number;
|
|
492
|
-
}
|
|
493
|
-
/**
|
|
494
|
-
* Collapsed-zone → atomic-card props mapping (§6.2 field table): the
|
|
495
|
-
* subtitle becomes the centred body (`bodyMode: "subtitle"`), the footer
|
|
496
|
-
* pins the rule, the toggle takes the top-right slot. Shared by
|
|
497
|
-
* `layoutZone` and both renderers so the collapsed zone is the card.
|
|
498
|
-
*/
|
|
499
|
-
export declare function zoneCollapsedCardProps(props: DiagramZoneProps): DiagramCardProps;
|
|
500
|
-
export interface ZoneDiagnostic {
|
|
501
|
-
/**
|
|
502
|
-
* `zone-overflow` / `zone-icon-unknown` are the zone's own; a descendant
|
|
503
|
-
* card or nested zone keeps its own `card-overflow` / `card-icon-unknown`
|
|
504
|
-
* code with its own `entityId` when `renderZoneSvg` aggregates them.
|
|
505
|
-
*/
|
|
506
|
-
readonly code: "zone-overflow" | "zone-icon-unknown" | "card-overflow" | "card-icon-unknown";
|
|
507
|
-
readonly slot: string;
|
|
508
|
-
readonly entityId: string;
|
|
509
|
-
readonly neededPx: number;
|
|
510
|
-
readonly allocatedPx: number;
|
|
511
|
-
/** Original, unwrapped slot text (overflow = refusal keeps the source). */
|
|
512
|
-
readonly text?: string;
|
|
513
|
-
}
|
|
514
|
-
export interface ZoneChildSpec {
|
|
515
|
-
readonly kind: "card" | "zone";
|
|
516
|
-
readonly x: number;
|
|
517
|
-
readonly y: number;
|
|
518
|
-
readonly card?: DiagramCardProps;
|
|
519
|
-
readonly zone?: DiagramZoneProps;
|
|
520
|
-
readonly children?: readonly ZoneChildSpec[];
|
|
521
|
-
}
|
|
522
|
-
export interface ZoneLayout {
|
|
523
|
-
readonly box: {
|
|
524
|
-
readonly x: number;
|
|
525
|
-
readonly y: number;
|
|
526
|
-
readonly width: number;
|
|
527
|
-
readonly height: number;
|
|
528
|
-
};
|
|
529
|
-
readonly collapsed: boolean;
|
|
530
|
-
/** Collapsed: the card layout of the folded card (same geometry source). */
|
|
531
|
-
readonly card?: CardLayout;
|
|
532
|
-
/** Expanded: header + rule + footer geometry inside the frame. */
|
|
533
|
-
readonly header?: {
|
|
534
|
-
readonly iconBox?: {
|
|
535
|
-
readonly x: number;
|
|
536
|
-
readonly y: number;
|
|
537
|
-
readonly size: number;
|
|
538
|
-
} | undefined;
|
|
539
|
-
readonly headerTextX: number;
|
|
540
|
-
readonly headerTextWidth: number;
|
|
541
|
-
readonly kicker: readonly LaidOutLine[];
|
|
542
|
-
readonly title: readonly LaidOutLine[];
|
|
543
|
-
readonly headerBlockHeight: number;
|
|
544
|
-
readonly subtitle: readonly LaidOutLine[];
|
|
545
|
-
/** Subtitle wrap width: `min(width, 460) − 26` — the single geometry
|
|
546
|
-
* source shared with `renderZoneSvg` and the Svelte header. */
|
|
547
|
-
readonly subtitleWidth: number;
|
|
548
|
-
readonly subtitleBottom: number;
|
|
549
|
-
readonly ruleY: number;
|
|
550
|
-
readonly contentTop: number;
|
|
551
|
-
readonly toggleBox?: {
|
|
552
|
-
readonly x: number;
|
|
553
|
-
readonly y: number;
|
|
554
|
-
readonly size: number;
|
|
555
|
-
} | undefined;
|
|
556
|
-
/** Footer lines, pinned at the frame bottom in the expanded state too
|
|
557
|
-
* (§6.1: folding never changes the footer). */
|
|
558
|
-
readonly footer: readonly LaidOutLine[];
|
|
559
|
-
/** Rule above the footer block (same insets as the header rule). */
|
|
560
|
-
readonly footerRuleY?: number;
|
|
561
|
-
readonly footerBottom: number;
|
|
562
|
-
};
|
|
563
|
-
readonly diagnostics: readonly ZoneDiagnostic[];
|
|
564
|
-
}
|
|
565
|
-
/**
|
|
566
|
-
* Lay out one zone. Collapsed, the zone IS the atomic card (§6.2): the
|
|
567
|
-
* subtitle wraps at the frozen 396 px measure and centres in the card body
|
|
568
|
-
* area (`bodyMode: "subtitle"`), the footer pins the rule, and the toggle
|
|
569
|
-
* takes the top-right slot. Expanded, the frame carries the shared header
|
|
570
|
-
* (icon 70 at the 16 px inset, text at x + 92), the subtitle under the
|
|
571
|
-
* icon from the left inset, the header rule 4 px under the subtitle (or
|
|
572
|
-
* the header block), and the content box 16 px under the rule.
|
|
573
|
-
*/
|
|
574
|
-
export declare function layoutZone(props: DiagramZoneProps, measure: CardLineMeasure, children?: readonly ZoneChildSpec[]): ZoneLayout;
|
|
575
|
-
/** Presentation-shaped zone input (structural subset of `EntityPresentation`). */
|
|
576
|
-
export interface ZonePresentationInput {
|
|
577
|
-
readonly form: "card" | "container" | "legend" | "legend-key";
|
|
578
|
-
readonly text: {
|
|
579
|
-
readonly title?: string;
|
|
580
|
-
readonly kicker?: string;
|
|
581
|
-
readonly subtitle?: string;
|
|
582
|
-
readonly footer?: string;
|
|
583
|
-
};
|
|
584
|
-
readonly icon?: string;
|
|
585
|
-
readonly categoryRef?: string;
|
|
586
|
-
/** Neutral status prop: drawn as a dashed border, independent of tint. */
|
|
587
|
-
readonly proposed?: boolean;
|
|
588
|
-
}
|
|
589
|
-
export type ZoneResolveResult = {
|
|
590
|
-
readonly kind: "zone";
|
|
591
|
-
readonly props: DiagramZoneProps;
|
|
592
|
-
} | {
|
|
593
|
-
readonly kind: "label";
|
|
594
|
-
};
|
|
595
|
-
export interface ProjectZoneOptions {
|
|
596
|
-
readonly entityId: string;
|
|
597
|
-
readonly collapsed: boolean;
|
|
598
|
-
readonly toggleLabel?: string;
|
|
599
|
-
readonly align?: "left" | "center";
|
|
600
|
-
readonly x?: number;
|
|
601
|
-
readonly y?: number;
|
|
602
|
-
readonly width?: number;
|
|
603
|
-
readonly height?: number;
|
|
604
|
-
readonly resolveGlyph?: (name: string) => DiagramGlyphPaths | undefined;
|
|
605
|
-
}
|
|
606
|
-
/**
|
|
607
|
-
* Shared `EntityPresentation` → zone props projection (§4.2/§6.1): container
|
|
608
|
-
* and legend forms resolve to a zone; a missing entry or no title resolves
|
|
609
|
-
* to `{ kind: "label" }` (L-R12).
|
|
610
|
-
*/
|
|
611
|
-
export declare function projectZoneProps(presentation: ZonePresentationInput | undefined, opts: ProjectZoneOptions): ZoneResolveResult;
|
|
1
|
+
/** Framework-neutral card geometry shared with the Vue host and static renderers. */
|
|
2
|
+
export * from "@sentropic/diagram-canvas/diagramCardModel";
|
|
612
3
|
//# sourceMappingURL=diagramCardModel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"diagramCardModel.d.ts","sourceRoot":"","sources":["../src/lib/diagramCardModel.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,oEAAoE;AACpE,eAAO,MAAM,aAAa;;;;;;IAMxB,qEAAqE;;;;;;;;;;;;;;;IAMrE,+BAA+B;;;;;;;IAG/B;;;;;OAKG;;;;;;IAEH,+CAA+C;;;;;;;;;;;IAO/C,gEAAgE;;IAEhE;;;;OAIG;;IAEH,uE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