@sentropic/diagram-canvas 0.2.5 → 0.3.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.
@@ -0,0 +1,645 @@
1
+ {
2
+ "contractId": "diagram-anatomy/v2",
3
+ "source": "DE-1 compact card anatomy; padding 6, header inset 12, accent 6, icon 52 / gap 4, type scale unchanged",
4
+ "appliesTo": [
5
+ "svelte",
6
+ "vue",
7
+ "react",
8
+ "angular",
9
+ "preact"
10
+ ],
11
+ "cardGeometry": {
12
+ "width": 352,
13
+ "height": 154,
14
+ "borderWidth": 2,
15
+ "accentWidth": 6,
16
+ "padding": 6,
17
+ "headerInset": 12,
18
+ "iconSize": 52,
19
+ "iconTextGap": 4,
20
+ "kicker": {
21
+ "size": 22,
22
+ "weight": 400,
23
+ "lineHeight": 1.3,
24
+ "letterSpacingEm": 0.04
25
+ },
26
+ "title": {
27
+ "size": 32,
28
+ "weight": 700,
29
+ "lineHeight": 1.3
30
+ },
31
+ "gap": 6,
32
+ "body": {
33
+ "size": 24,
34
+ "weight": 400,
35
+ "lineHeight": 1.3
36
+ },
37
+ "edgeLabel": {
38
+ "size": 18,
39
+ "weight": 400,
40
+ "lineHeight": 1.2222222222222223
41
+ },
42
+ "bodyInsetFromBar": 14,
43
+ "ruleHeight": 1,
44
+ "ruleMargin": 4,
45
+ "ruleInsetStart": 16,
46
+ "ruleInsetEnd": 10,
47
+ "footer": {
48
+ "size": 24,
49
+ "weight": 700,
50
+ "lineHeight": 1.3
51
+ },
52
+ "footerBottomInset": 9.25,
53
+ "toggleAllocation": 66,
54
+ "toggleBoxSize": 32,
55
+ "toggleInset": 8,
56
+ "foldedHeaderTextWidth": 210,
57
+ "allocatedLines": {
58
+ "kicker": 1,
59
+ "title": 1,
60
+ "body": 2,
61
+ "footer": 1
62
+ }
63
+ },
64
+ "zoneGeometry": {
65
+ "radius": 0,
66
+ "borderWidth": 1.5,
67
+ "headerInset": 12,
68
+ "iconSize": 52,
69
+ "iconTextGap": 4,
70
+ "kicker": {
71
+ "size": 22,
72
+ "weight": 400,
73
+ "lineHeight": 1.3,
74
+ "letterSpacingEm": 0.04
75
+ },
76
+ "title": {
77
+ "size": 32,
78
+ "weight": 700,
79
+ "lineHeight": 1.3
80
+ },
81
+ "subtitle": {
82
+ "size": 24,
83
+ "weight": 400,
84
+ "lineHeight": 1.3
85
+ },
86
+ "subtitleGap": 6,
87
+ "headerRuleGap": 4,
88
+ "contentInsetTop": 16,
89
+ "contentInsetBottom": 16,
90
+ "contentInsetInline": 16,
91
+ "ruleHeight": 1,
92
+ "ruleMargin": 4,
93
+ "ruleInsetStart": 16,
94
+ "ruleInsetEnd": 10,
95
+ "footer": {
96
+ "size": 24,
97
+ "weight": 700,
98
+ "lineHeight": 1.3
99
+ },
100
+ "footerBottomInset": 9.25,
101
+ "toggleAllocation": 66,
102
+ "toggleBoxSize": 32,
103
+ "toggleTopInset": 8,
104
+ "toggleInset": 8,
105
+ "headerTextInset": 154,
106
+ "collapsedWidth": 352,
107
+ "collapsedHeight": 154,
108
+ "collapsedInset": 16,
109
+ "collapsedSubtitleMarginInline": 16,
110
+ "allocatedLines": {
111
+ "kicker": 1,
112
+ "title": 1,
113
+ "subtitle": 2,
114
+ "footer": 1
115
+ }
116
+ },
117
+ "compactCard": {
118
+ "icon": {
119
+ "name": "base",
120
+ "glyph": {
121
+ "base": "M8 53L32 44L56 53L32 62Z",
122
+ "face": "M10 12H54V48H10Z",
123
+ "line": "M18 22H46M18 32H40"
124
+ }
125
+ },
126
+ "box": {
127
+ "width": 352,
128
+ "height": 154
129
+ },
130
+ "contentTop": 8,
131
+ "contentRight": 344,
132
+ "iconBox": {
133
+ "x": 12,
134
+ "y": 8,
135
+ "size": 52
136
+ },
137
+ "headerTextX": 68,
138
+ "headerTextWidth": 276,
139
+ "kicker": [],
140
+ "title": [
141
+ {
142
+ "text": "Title",
143
+ "x": 206,
144
+ "baseline": 45.203125,
145
+ "size": 32,
146
+ "weight": 700,
147
+ "secondary": false,
148
+ "anchor": "middle"
149
+ }
150
+ ],
151
+ "headerBlockHeight": 52,
152
+ "bodyX": 14,
153
+ "bodyWidth": 330,
154
+ "bodyArea": {
155
+ "top": 66,
156
+ "bottom": 146
157
+ },
158
+ "body": [
159
+ {
160
+ "text": "Body",
161
+ "x": 179,
162
+ "baseline": 112.40625,
163
+ "size": 24,
164
+ "weight": 400,
165
+ "secondary": false,
166
+ "anchor": "middle"
167
+ }
168
+ ],
169
+ "bodyBottom": 121.59375,
170
+ "ruleX1": 16,
171
+ "ruleX2": 342,
172
+ "footerLines": [],
173
+ "footerBottom": 142.75,
174
+ "diagnostics": []
175
+ },
176
+ "card": {
177
+ "icon": {
178
+ "name": "base",
179
+ "glyph": {
180
+ "base": "M8 53L32 44L56 53L32 62Z",
181
+ "face": "M10 12H54V48H10Z",
182
+ "line": "M18 22H46M18 32H40"
183
+ }
184
+ },
185
+ "box": {
186
+ "width": 460,
187
+ "height": 200
188
+ },
189
+ "contentTop": 10,
190
+ "contentRight": 450,
191
+ "iconBox": {
192
+ "x": 16,
193
+ "y": 10.09375,
194
+ "size": 70
195
+ },
196
+ "headerTextX": 92,
197
+ "headerTextWidth": 290,
198
+ "kicker": [
199
+ {
200
+ "text": "KICKER",
201
+ "x": 237,
202
+ "baseline": 32,
203
+ "size": 22,
204
+ "weight": 400,
205
+ "secondary": true,
206
+ "anchor": "middle"
207
+ }
208
+ ],
209
+ "title": [
210
+ {
211
+ "text": "Title",
212
+ "x": 237,
213
+ "baseline": 70.59375,
214
+ "size": 32,
215
+ "weight": 700,
216
+ "secondary": false,
217
+ "anchor": "middle"
218
+ }
219
+ ],
220
+ "headerBlockHeight": 70.1875,
221
+ "bodyX": 14,
222
+ "bodyWidth": 436,
223
+ "bodyArea": {
224
+ "top": 86.1875,
225
+ "bottom": 148.5625
226
+ },
227
+ "body": [
228
+ {
229
+ "text": "Body",
230
+ "x": 232,
231
+ "baseline": 108.1875,
232
+ "size": 24,
233
+ "weight": 400,
234
+ "secondary": false,
235
+ "anchor": "middle"
236
+ },
237
+ {
238
+ "text": "Detail",
239
+ "x": 232,
240
+ "baseline": 139.375,
241
+ "size": 24,
242
+ "weight": 400,
243
+ "secondary": true,
244
+ "anchor": "middle"
245
+ }
246
+ ],
247
+ "bodyBottom": 148.5625,
248
+ "ruleY": 152.5625,
249
+ "ruleX1": 16,
250
+ "ruleX2": 450,
251
+ "footerLines": [
252
+ {
253
+ "text": "Footer",
254
+ "x": 233,
255
+ "baseline": 179.5625,
256
+ "size": 24,
257
+ "weight": 700,
258
+ "secondary": false,
259
+ "anchor": "middle"
260
+ }
261
+ ],
262
+ "footerBottom": 188.75,
263
+ "toggleBox": {
264
+ "x": 420,
265
+ "y": 8,
266
+ "size": 32
267
+ },
268
+ "diagnostics": [
269
+ {
270
+ "code": "card-overflow",
271
+ "slot": "body",
272
+ "entityId": "contract",
273
+ "neededPx": 62.375,
274
+ "allocatedPx": 0,
275
+ "text": "Body\nDetail",
276
+ "severity": "info",
277
+ "reason": "fallback-v1"
278
+ }
279
+ ],
280
+ "anatomyFallback": "v1"
281
+ },
282
+ "zones": [
283
+ {
284
+ "icon": {
285
+ "name": "cluster",
286
+ "glyph": {
287
+ "base": "M8 53L32 44L56 53L32 62Z",
288
+ "face": "M32 7L54 20V44L32 57L10 44V20Z",
289
+ "line": "M32 19V32M21 26L32 32L43 26M32 32V46M32 32L20 40M32 32L44 40"
290
+ }
291
+ },
292
+ "box": {
293
+ "x": 0,
294
+ "y": 0,
295
+ "width": 460,
296
+ "height": 200
297
+ },
298
+ "collapsed": true,
299
+ "card": {
300
+ "icon": {
301
+ "name": "cluster",
302
+ "glyph": {
303
+ "base": "M8 53L32 44L56 53L32 62Z",
304
+ "face": "M32 7L54 20V44L32 57L10 44V20Z",
305
+ "line": "M32 19V32M21 26L32 32L43 26M32 32V46M32 32L20 40M32 32L44 40"
306
+ }
307
+ },
308
+ "box": {
309
+ "width": 460,
310
+ "height": 200
311
+ },
312
+ "contentTop": 10,
313
+ "contentRight": 450,
314
+ "iconBox": {
315
+ "x": 16,
316
+ "y": 10.09375,
317
+ "size": 70
318
+ },
319
+ "headerTextX": 92,
320
+ "headerTextWidth": 290,
321
+ "kicker": [
322
+ {
323
+ "text": "KICKER",
324
+ "x": 237,
325
+ "baseline": 32,
326
+ "size": 22,
327
+ "weight": 400,
328
+ "secondary": true,
329
+ "anchor": "middle"
330
+ }
331
+ ],
332
+ "title": [
333
+ {
334
+ "text": "Zone",
335
+ "x": 237,
336
+ "baseline": 70.59375,
337
+ "size": 32,
338
+ "weight": 700,
339
+ "secondary": false,
340
+ "anchor": "middle"
341
+ }
342
+ ],
343
+ "headerBlockHeight": 70.1875,
344
+ "bodyX": 32,
345
+ "bodyWidth": 396,
346
+ "bodyArea": {
347
+ "top": 86.1875,
348
+ "bottom": 148.5625
349
+ },
350
+ "body": [
351
+ {
352
+ "text": "Subtitle",
353
+ "x": 230,
354
+ "baseline": 123.78125,
355
+ "size": 24,
356
+ "weight": 400,
357
+ "secondary": false,
358
+ "anchor": "middle"
359
+ }
360
+ ],
361
+ "bodyBottom": 132.96875,
362
+ "ruleY": 152.5625,
363
+ "ruleX1": 16,
364
+ "ruleX2": 450,
365
+ "footerLines": [
366
+ {
367
+ "text": "Footer",
368
+ "x": 233,
369
+ "baseline": 179.5625,
370
+ "size": 24,
371
+ "weight": 700,
372
+ "secondary": false,
373
+ "anchor": "middle"
374
+ }
375
+ ],
376
+ "footerBottom": 188.75,
377
+ "toggleBox": {
378
+ "x": 420,
379
+ "y": 8,
380
+ "size": 32
381
+ },
382
+ "diagnostics": [
383
+ {
384
+ "code": "card-overflow",
385
+ "slot": "collapsed-subtitle",
386
+ "entityId": "contract-zone",
387
+ "neededPx": 31.1875,
388
+ "allocatedPx": 0,
389
+ "text": "Subtitle",
390
+ "severity": "info",
391
+ "reason": "fallback-v1"
392
+ }
393
+ ],
394
+ "anatomyFallback": "v1"
395
+ },
396
+ "diagnostics": [
397
+ {
398
+ "code": "zone-overflow",
399
+ "slot": "collapsed-subtitle",
400
+ "entityId": "contract-zone",
401
+ "neededPx": 31.1875,
402
+ "allocatedPx": 0,
403
+ "text": "Subtitle",
404
+ "severity": "info",
405
+ "reason": "fallback-v1"
406
+ }
407
+ ]
408
+ },
409
+ {
410
+ "icon": {
411
+ "name": "cluster",
412
+ "glyph": {
413
+ "base": "M8 53L32 44L56 53L32 62Z",
414
+ "face": "M32 7L54 20V44L32 57L10 44V20Z",
415
+ "line": "M32 19V32M21 26L32 32L43 26M32 32V46M32 32L20 40M32 32L44 40"
416
+ }
417
+ },
418
+ "box": {
419
+ "x": 0,
420
+ "y": 0,
421
+ "width": 600,
422
+ "height": 204.8125
423
+ },
424
+ "collapsed": false,
425
+ "header": {
426
+ "iconBox": {
427
+ "x": 12,
428
+ "y": 21.09375,
429
+ "size": 52
430
+ },
431
+ "headerTextX": 68,
432
+ "headerTextWidth": 446,
433
+ "kicker": [
434
+ {
435
+ "text": "KICKER",
436
+ "x": 291,
437
+ "baseline": 34,
438
+ "size": 22,
439
+ "weight": 400,
440
+ "secondary": true,
441
+ "anchor": "middle"
442
+ }
443
+ ],
444
+ "title": [
445
+ {
446
+ "text": "Zone",
447
+ "x": 291,
448
+ "baseline": 72.59375,
449
+ "size": 32,
450
+ "weight": 700,
451
+ "secondary": false,
452
+ "anchor": "middle"
453
+ }
454
+ ],
455
+ "headerBlockHeight": 70.1875,
456
+ "subtitle": [
457
+ {
458
+ "text": "Subtitle",
459
+ "x": 175,
460
+ "baseline": 110.1875,
461
+ "size": 24,
462
+ "weight": 400,
463
+ "secondary": false,
464
+ "anchor": "middle"
465
+ }
466
+ ],
467
+ "subtitleWidth": 326,
468
+ "subtitleBottom": 119.375,
469
+ "ruleY": 123.375,
470
+ "contentTop": 139.375,
471
+ "toggleBox": {
472
+ "x": 560,
473
+ "y": 8,
474
+ "size": 32
475
+ },
476
+ "footer": [
477
+ {
478
+ "text": "Footer",
479
+ "x": 300,
480
+ "baseline": 184.875,
481
+ "size": 24,
482
+ "weight": 700,
483
+ "secondary": false,
484
+ "anchor": "middle"
485
+ }
486
+ ],
487
+ "footerRuleY": 157.875,
488
+ "footerBottom": 194.0625
489
+ },
490
+ "diagnostics": []
491
+ }
492
+ ],
493
+ "tokens": {
494
+ "card": {
495
+ "width": "352px",
496
+ "height": "154px",
497
+ "radius": "var(--st-component-diagramCard-radius)",
498
+ "borderWidth": "var(--st-component-diagramCard-borderWidth)",
499
+ "accentWidth": "6px",
500
+ "padding": "6px",
501
+ "headerInset": "12px",
502
+ "iconSize": "52px",
503
+ "iconTextGap": "4px",
504
+ "kickerFontSize": "var(--st-component-diagramCard-kickerFontSize)",
505
+ "kickerFontWeight": "var(--st-component-diagramCard-kickerFontWeight)",
506
+ "kickerLineHeight": "var(--st-component-diagramCard-kickerLineHeight)",
507
+ "kickerLetterSpacing": "var(--st-component-diagramCard-kickerLetterSpacing)",
508
+ "kickerTextTransform": "var(--st-component-diagramCard-kickerTextTransform)",
509
+ "titleFontSize": "var(--st-component-diagramCard-titleFontSize)",
510
+ "titleFontWeight": "var(--st-component-diagramCard-titleFontWeight)",
511
+ "titleLineHeight": "var(--st-component-diagramCard-titleLineHeight)",
512
+ "gap": "var(--st-component-diagramCard-gap)",
513
+ "bodyFontSize": "var(--st-component-diagramCard-bodyFontSize)",
514
+ "bodyFontWeight": "var(--st-component-diagramCard-bodyFontWeight)",
515
+ "bodyLineHeight": "var(--st-component-diagramCard-bodyLineHeight)",
516
+ "bodyInsetFromBar": "var(--st-component-diagramCard-bodyInsetFromBar)",
517
+ "ruleHeight": "var(--st-component-diagramCard-ruleHeight)",
518
+ "ruleMargin": "var(--st-component-diagramCard-ruleMargin)",
519
+ "ruleInsetStart": "var(--st-component-diagramCard-ruleInsetStart)",
520
+ "ruleInsetEnd": "var(--st-component-diagramCard-ruleInsetEnd)",
521
+ "footerFontSize": "var(--st-component-diagramCard-footerFontSize)",
522
+ "footerFontWeight": "var(--st-component-diagramCard-footerFontWeight)",
523
+ "footerLineHeight": "var(--st-component-diagramCard-footerLineHeight)",
524
+ "footerBottomInset": "var(--st-component-diagramCard-footerBottomInset)",
525
+ "toggleAllocation": "var(--st-component-diagramCard-toggleAllocation)",
526
+ "toggleBoxSize": "var(--st-component-diagramCard-toggleBoxSize)",
527
+ "toggleInset": "var(--st-component-diagramCard-toggleInset)",
528
+ "foldedHeaderTextWidth": "210px",
529
+ "proposedDashArray": "var(--st-component-diagramCard-proposedDashArray)",
530
+ "fontFamily": "var(--st-component-diagramCard-fontFamily)",
531
+ "border": "var(--st-component-diagramCard-border)",
532
+ "accent": "var(--st-component-diagramCard-accent)",
533
+ "surface": "var(--st-component-diagramCard-surface)",
534
+ "text": "var(--st-component-diagramCard-text)",
535
+ "secondaryText": "var(--st-component-diagramCard-secondaryText)",
536
+ "rule": "var(--st-component-diagramCard-rule)"
537
+ },
538
+ "zone": {
539
+ "toggleInset": "8px",
540
+ "radius": "0",
541
+ "borderWidth": "1.5px",
542
+ "headerInset": "16px",
543
+ "iconSize": "70px",
544
+ "iconTextGap": "6px",
545
+ "kickerFontSize": "var(--st-component-diagramCard-kickerFontSize)",
546
+ "kickerFontWeight": "var(--st-component-diagramCard-kickerFontWeight)",
547
+ "kickerLineHeight": "var(--st-component-diagramCard-kickerLineHeight)",
548
+ "kickerLetterSpacing": "var(--st-component-diagramCard-kickerLetterSpacing)",
549
+ "kickerTextTransform": "var(--st-component-diagramCard-kickerTextTransform)",
550
+ "titleFontSize": "var(--st-component-diagramCard-titleFontSize)",
551
+ "titleFontWeight": "var(--st-component-diagramCard-titleFontWeight)",
552
+ "titleLineHeight": "var(--st-component-diagramCard-titleLineHeight)",
553
+ "subtitleFontSize": "24px",
554
+ "subtitleFontWeight": "400",
555
+ "subtitleLineHeight": "1.3",
556
+ "subtitleGap": "var(--st-component-diagramCard-gap)",
557
+ "headerRuleGap": "4px",
558
+ "contentInsetTop": "var(--st-component-diagramScene-containerPadding)",
559
+ "contentInsetBottom": "var(--st-component-diagramScene-containerPadding)",
560
+ "contentInsetInline": "var(--st-component-diagramScene-containerPadding)",
561
+ "collapsedWidth": "460px",
562
+ "collapsedHeight": "200px",
563
+ "collapsedInset": "16px",
564
+ "collapsedSubtitleMarginInline": "16px",
565
+ "toggleAllocation": "var(--st-component-diagramCard-toggleAllocation)",
566
+ "toggleBoxSize": "var(--st-component-diagramCard-toggleBoxSize)",
567
+ "headerTextInset": "178px",
568
+ "toggleTopInset": "var(--st-component-diagramZone-toggleInset)",
569
+ "footerBottomInset": "var(--st-component-diagramCard-footerBottomInset)",
570
+ "proposedDashArray": "4 5",
571
+ "childGapInline": "var(--st-component-diagramScene-gapMin)",
572
+ "childGapBlock": "var(--st-component-diagramScene-gapMinBlock)",
573
+ "gapInlineMax": "var(--st-component-diagramScene-gapMax)",
574
+ "gapBlockMax": "var(--st-component-diagramScene-gapMax)",
575
+ "rowPackTargetAspect": "1.78",
576
+ "border": "#94a3b8",
577
+ "surface": "#ffffff",
578
+ "surface1": "#ffffff",
579
+ "surface2": "#f8fafc",
580
+ "text": "#0f172a",
581
+ "secondaryText": "#475569",
582
+ "rule": "#e2e8f0"
583
+ },
584
+ "icon": {
585
+ "viewBox": "0 0 64 64",
586
+ "basePath": "M8 53L32 44L56 53L32 62Z",
587
+ "faceStrokeWidth": "1.5",
588
+ "lineStrokeWidth": "2.5",
589
+ "baseFill": "color-mix(in srgb, var(--st-semantic-feedback-info) 18%, var(--st-semantic-surface-raised))",
590
+ "faceFill": "color-mix(in srgb, var(--st-semantic-feedback-info) 75%, var(--st-semantic-surface-raised))",
591
+ "faceStroke": "var(--st-semantic-feedback-info)",
592
+ "lineStroke": "var(--st-semantic-surface-raised)",
593
+ "lineDarkStroke": "var(--st-semantic-feedback-info)"
594
+ }
595
+ },
596
+ "hostStyles": {
597
+ "packages/components-svelte/src/lib/DiagramCard.svelte": "9a5ba42f489d62df63f68050559e1bcf5297af92e30afd9df9e1cacd02abe0d1",
598
+ "packages/components-svelte/src/lib/DiagramZone.svelte": "73d2d2b2d04d00744447f760adec3209a083a44ca3ec37d0afdeca6b01d9a14d",
599
+ "packages/components-svelte/src/lib/DiagramCardHeader.svelte": "0495fec195f2ad5c44b154fb5de41b307eeccbfd594d21c17c8d257f5c2cf36e",
600
+ "packages/components-svelte/src/lib/DiagramZoneHeader.svelte": "a7b16b82699981e16191af4736d86d3f6a6ef341fad5e2f13306d2cebd687bd8",
601
+ "packages/components-vue/src/DiagramCard.vue": "3f98c68f5931a2b43d19943f3230875c390048557dd00631186258c4f163fe31",
602
+ "packages/components-vue/src/DiagramZone.vue": "abedd7be2f9a1d84b5451119fb536dd88215eb5a7541346301a0a7b0d7aea08b",
603
+ "packages/components-vue/src/DiagramCardHeader.vue": "6c78015c3d3f5dd458513ae0acff9cb8b079171f8e36ab32eacf4e9cf56ed9f4",
604
+ "packages/components-vue/src/DiagramZoneHeader.vue": "81c5fe3eab9ec65707303ecc7fa7892ce0adddbbc317947e1e3a11cdd0d117f7",
605
+ "packages/components-svelte/src/lib/IconButton.svelte": "51618e6040428586928c0a45563807442c3c2f18207b6f4052a296d05103133c"
606
+ },
607
+ "colors": {
608
+ "edge": "#64748b",
609
+ "labelSurface": "#ffffff",
610
+ "labelBorder": "#cbd5e1",
611
+ "labelText": "#172033"
612
+ },
613
+ "fontFamily": "Inter, system-ui, sans-serif",
614
+ "buttonCss": [
615
+ ".st-iconButton {\n align-items: center;\n background: transparent;\n border: 1px solid transparent;\n border-radius: var(--st-component-iconButton-radius, 0.375rem);\n color: var(--st-component-iconButton-text, var(--st-semantic-text-primary));\n cursor: pointer;\n display: inline-flex;\n flex: 0 0 auto;\n font: inherit;\n justify-content: center;\n padding: 0;\n transition:\n background-color var(--st-motion-fast, 120ms) var(--st-motion-easing, ease),\n border-color var(--st-motion-fast, 120ms) var(--st-motion-easing, ease),\n color var(--st-motion-fast, 120ms) var(--st-motion-easing, ease);\n }",
616
+ ".st-iconButton--sm {\n height: var(--st-component-iconButton-smSize, 2rem);\n width: var(--st-component-iconButton-smSize, 2rem);\n }",
617
+ ".st-iconButton--md {\n height: var(--st-component-iconButton-mdSize, 2.25rem);\n width: var(--st-component-iconButton-mdSize, 2.25rem);\n }",
618
+ ".st-iconButton--lg {\n height: var(--st-component-iconButton-lgSize, 2.5rem);\n width: var(--st-component-iconButton-lgSize, 2.5rem);\n }",
619
+ ".st-iconButton--secondary {\n background: var(--st-component-control-background, var(--st-semantic-surface-default));\n border-color: var(--st-component-control-border, var(--st-semantic-border-subtle));\n }",
620
+ ".st-iconButton--danger {\n color: var(--st-semantic-feedback-error, #b91c1c);\n }",
621
+ ".st-iconButton:hover:not(:disabled) {\n background: var(--st-component-iconButton-hoverBackground, var(--st-semantic-surface-subtle));\n }",
622
+ ".st-iconButton--secondary:hover:not(:disabled) {\n border-color: var(--st-component-control-hoverBorder, var(--st-semantic-border-strong));\n }",
623
+ ".st-iconButton:focus-visible {\n border-color: var(--st-component-iconButton-focusRing, var(--st-semantic-border-interactive));\n box-shadow: 0 0 0 2px var(--st-component-iconButton-focusRing, var(--st-semantic-border-interactive));\n outline: none;\n }",
624
+ ".st-iconButton:disabled {\n color: var(--st-component-control-disabledText, var(--st-semantic-text-muted));\n cursor: not-allowed;\n }"
625
+ ],
626
+ "diagramCardCss": [
627
+ ".st-diagramCard {\n width: var(--st-component-diagramCard-width, 460px);\n height: var(--st-component-diagramCard-height, 200px);\n box-sizing: border-box;\n border: var(--st-component-diagramCard-borderWidth, 2px) solid\n var(--st-component-diagramCard-border, var(--st-semantic-border-strong));\n border-left: var(--st-component-diagramCard-accentWidth, 8px) solid\n var(--st-component-diagramCard-accent, var(--st-semantic-data-category1));\n border-radius: var(--st-component-diagramCard-radius, 0);\n background: var(--st-component-diagramCard-surface, var(--st-semantic-surface-raised));\n color: var(--st-component-diagramCard-text, var(--st-semantic-text-primary));\n padding: var(--st-component-diagramCard-padding, 8px);\n display: flex;\n flex-direction: column;\n text-align: left;\n font-family: var(--st-component-diagramCard-fontFamily, var(--st-font-sans));\n }",
628
+ ".st-diagramCard--center {\n \n text-align: center;\n }",
629
+ ".st-diagramCard--proposed {\n border-style: dashed;\n }",
630
+ ".st-diagramCard-gap {\n display: block;\n height: var(--st-component-diagramCard-gap, 6px);\n flex: 0 0 var(--st-component-diagramCard-gap, 6px);\n }",
631
+ ".st-diagramCard-body {\n \n min-width: 0;\n flex: 1 1 auto;\n display: flex;\n flex-direction: column;\n justify-content: center;\n text-align: center;\n font-size: var(--st-component-diagramCard-bodyFontSize, 24px);\n font-weight: var(--st-component-diagramCard-bodyFontWeight, 400);\n line-height: var(--st-component-diagramCard-bodyLineHeight, 1.3);\n }",
632
+ ".st-diagramCard-line,\n .st-diagramCard-detail {\n display: block;\n min-width: 0;\n \n overflow-wrap: normal;\n word-break: normal;\n }",
633
+ ".st-diagramCard-detail {\n color: var(--st-component-diagramCard-secondaryText, var(--st-semantic-text-secondary));\n }",
634
+ ".st-diagramCard-foot {\n margin-top: auto;\n flex: 0 0 auto;\n }",
635
+ ".st-diagramCard-rule {\n display: block;\n flex: 0 0 auto;\n \n height: var(--st-component-diagramCard-ruleHeight, 1px);\n margin: var(--st-component-diagramCard-ruleMargin, 4px) 0;\n background: var(--st-component-diagramCard-rule, var(--st-semantic-border-subtle));\n transform: scaleY(calc(1 / var(--st-diagram-zoom, 1)));\n transform-origin: center;\n }",
636
+ ".st-diagramCard-footer {\n \n margin-bottom: calc(\n var(--st-component-diagramCard-footerBottomInset, 9.25px) -\n var(--st-component-diagramCard-padding, 8px)\n );\n font-size: var(--st-component-diagramCard-footerFontSize, 24px);\n font-weight: var(--st-component-diagramCard-footerFontWeight, 700);\n line-height: var(--st-component-diagramCard-footerLineHeight, 1.3);\n }",
637
+ ".st-diagramCard-footerLine {\n display: block;\n min-width: 0;\n overflow-wrap: normal;\n word-break: normal;\n }",
638
+ ".st-diagramCardHeader {\n display: flex;\n align-items: center;\n gap: var(--st-component-diagramCard-iconTextGap, 6px);\n min-width: 0;\n flex: 0 0 auto;\n }",
639
+ ".st-diagramCardHeader-icon {\n flex: 0 0 var(--st-component-diagramCard-iconSize, 70px);\n width: var(--st-component-diagramCard-iconSize, 70px);\n height: var(--st-component-diagramCard-iconSize, 70px);\n }",
640
+ ".st-diagramCardHeader-text {\n display: flex;\n flex-direction: column;\n justify-content: center;\n min-width: 0;\n flex: 0 1 auto;\n }",
641
+ ".st-diagramCard-kicker {\n display: block;\n min-width: 0;\n font-size: var(--st-component-diagramCard-kickerFontSize, 22px);\n font-weight: var(--st-component-diagramCard-kickerFontWeight, 400);\n line-height: var(--st-component-diagramCard-kickerLineHeight, 1.3);\n letter-spacing: var(--st-component-diagramCard-kickerLetterSpacing, 0.04em);\n text-transform: var(--st-component-diagramCard-kickerTextTransform, uppercase);\n color: var(--st-component-diagramCard-secondaryText, var(--st-semantic-text-secondary));\n \n overflow-wrap: normal;\n word-break: normal;\n }",
642
+ ".st-diagramCard-title {\n display: block;\n min-width: 0;\n font-size: var(--st-component-diagramCard-titleFontSize, 32px);\n font-weight: var(--st-component-diagramCard-titleFontWeight, 700);\n line-height: var(--st-component-diagramCard-titleLineHeight, 1.3);\n color: var(--st-component-diagramCard-text, var(--st-semantic-text-primary));\n overflow-wrap: normal;\n word-break: normal;\n }",
643
+ ".st-diagramCard-toggle {\n flex: 0 0 auto;\n margin-left: auto;\n \n align-self: flex-start;\n }"
644
+ ]
645
+ }
@@ -99,6 +99,7 @@ export function createLayoutCache(config = {}) {
99
99
  pathKind: measured ? "measured" : "compatibility",
100
100
  documentDigest, presentationDigest, sourceViewDigest, registry,
101
101
  bindings: options.bindings === undefined ? "" : inputDigest(options.bindings),
102
+ ...(options.reportSurfaceSame === true ? { reportSurfaceSame: true } : {}),
102
103
  });
103
104
  // Invalid serialisable inputs still reach the engine's normal refusal path.
104
105
  if (!input.ok)