@diagrammo/dgmo 0.86.0 → 0.88.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.
Files changed (76) hide show
  1. package/dist/advanced.d.ts +6 -18
  2. package/dist/advanced.js +40 -37
  3. package/dist/block.js +6 -17
  4. package/dist/{chunk-FAV4RDVT.js → chunk-2A4DQAXG.js} +1 -1
  5. package/dist/{chunk-JIPUBFAM.js → chunk-5KGM44TG.js} +2 -2
  6. package/dist/{chunk-VEE777MD.js → chunk-5LD7SHXO.js} +3 -3
  7. package/dist/{chunk-QJ2JOLFN.js → chunk-6I5UN4FD.js} +2 -2
  8. package/dist/{chunk-ETBXIKK6.js → chunk-ABP5BUD6.js} +9 -430
  9. package/dist/{chunk-PKXKWHDW.js → chunk-AUS7V54P.js} +1 -1
  10. package/dist/{chunk-BF7JAFJI.js → chunk-B7CU2HW5.js} +2 -2
  11. package/dist/{chunk-X2VEJ5NT.js → chunk-BMUWF77V.js} +2 -2
  12. package/dist/{chunk-BP4BT5TH.js → chunk-CLQIXD2C.js} +1 -1
  13. package/dist/{chunk-QJFT5MAH.js → chunk-DSG6GBUQ.js} +2 -2
  14. package/dist/{chunk-EWSESGC2.js → chunk-EJS3K44P.js} +117 -78
  15. package/dist/{chunk-5JO443MB.js → chunk-HAH5X345.js} +1 -1
  16. package/dist/{chunk-HBCAY3KR.js → chunk-HTNLLT34.js} +1 -1
  17. package/dist/{chunk-HUMQIRJK.js → chunk-HTPZDZKQ.js} +2 -2
  18. package/dist/{chunk-VPVWG2GH.js → chunk-J7Q4VPBJ.js} +1 -1
  19. package/dist/{chunk-QPE646M2.js → chunk-JLETTWUJ.js} +30 -10
  20. package/dist/{chunk-3CQS3CIO.js → chunk-LL6D3MES.js} +1 -1
  21. package/dist/{chunk-ERYHC4KJ.js → chunk-LSQGJN5H.js} +1 -1
  22. package/dist/{chunk-AGO3PFGS.js → chunk-MVCPO6LI.js} +15 -10
  23. package/dist/{chunk-E6S2K6O2.js → chunk-N7XRBWXA.js} +2 -2
  24. package/dist/{chunk-WMIKC5XO.js → chunk-NPWVOFB3.js} +1 -1
  25. package/dist/{chunk-MYHPRQHR.js → chunk-O6MMQQLF.js} +3 -3
  26. package/dist/{chunk-GYORDNOM.js → chunk-P5V63L35.js} +1 -1
  27. package/dist/{chunk-BHZE36F7.js → chunk-PUVTFUNH.js} +1 -1
  28. package/dist/{chunk-TW6WMZFW.js → chunk-QT3KDDXK.js} +156 -7
  29. package/dist/{chunk-ZGHV4QLK.js → chunk-RJNZHFNG.js} +1 -1
  30. package/dist/{chunk-FWNJDD4U.js → chunk-S7W75MIM.js} +3 -20
  31. package/dist/{chunk-4YA5XW43.js → chunk-VW52W5F6.js} +981 -107
  32. package/dist/chunk-WXPBP4IT.js +438 -0
  33. package/dist/{chunk-C6FZZFYD.js → chunk-WZ23JJ7U.js} +1 -1
  34. package/dist/{chunk-LIYWJ6DV.js → chunk-XIFK423U.js} +108 -13
  35. package/dist/{chunk-4ELXLATB.js → chunk-XUDGZJTJ.js} +2 -2
  36. package/dist/{chunk-H6AFNCN3.js → chunk-XVSJYAK7.js} +1 -1
  37. package/dist/{chunk-LHBMQJC3.js → chunk-XWYR5T52.js} +2 -2
  38. package/dist/{chunk-QNKHJ5CK.js → chunk-YK4N6TBN.js} +4 -2
  39. package/dist/{chunk-XFMQSFS4.js → chunk-YMG7JDEY.js} +16 -6
  40. package/dist/chunk-Z6DXWULM.js +23 -0
  41. package/dist/{chunk-PBEH52A2.js → chunk-ZNNVI5SR.js} +1 -1
  42. package/dist/{flowchart-renderer-H72L7BEC.js → flowchart-renderer-THC6Y7EH.js} +7 -6
  43. package/dist/index.d.ts +68 -1
  44. package/dist/index.js +76 -7
  45. package/dist/{layout-QIPCNUSB.js → layout-BOVTLAOT.js} +7 -6
  46. package/dist/{layout-6JARW64V.js → layout-EHTYSMV4.js} +6 -5
  47. package/dist/{layout-YELNBVPC.js → layout-P6DTD4RT.js} +6 -5
  48. package/dist/{layout-T6TAB5OI.js → layout-RANVNAKI.js} +3 -3
  49. package/dist/{layout-FMKSENGL.js → layout-XUW444O5.js} +5 -4
  50. package/dist/{layout-search-AW5VBDCV.js → layout-search-VKSBUCDM.js} +57 -28
  51. package/dist/{renderer-AI2MD52D.js → renderer-222OTVQV.js} +3 -2
  52. package/dist/{renderer-UUWR7NGF.js → renderer-2KVQGGTT.js} +4 -3
  53. package/dist/{renderer-E5EKGIX2.js → renderer-2OOPQ4CH.js} +4 -3
  54. package/dist/{renderer-CZJ4AMYV.js → renderer-3FF4QVGW.js} +3 -2
  55. package/dist/{renderer-R6VJDZFO.js → renderer-4BHOELCE.js} +4 -3
  56. package/dist/{renderer-425QUIYO.js → renderer-4BIMRO4X.js} +4 -3
  57. package/dist/{renderer-5JVVJBAS.js → renderer-A4LMOBZL.js} +8 -7
  58. package/dist/{renderer-3AOOLHJU.js → renderer-A6ACVK4X.js} +3 -2
  59. package/dist/{renderer-ML2CLU25.js → renderer-DCFQDBGJ.js} +4 -3
  60. package/dist/{renderer-RH4U3UVM.js → renderer-LODEVN3V.js} +3 -2
  61. package/dist/{renderer-E7WF75GY.js → renderer-NHPKNNBD.js} +5 -4
  62. package/dist/{renderer-JEEGPLMM.js → renderer-R34GJL7U.js} +8 -7
  63. package/dist/{renderer-2BWRW23Z.js → renderer-RENDISO5.js} +1 -1
  64. package/dist/{renderer-NX4YKWCJ.js → renderer-RNCYODNF.js} +1 -1
  65. package/dist/{renderer-VKAJ52UO.js → renderer-SDUSBCJI.js} +3 -2
  66. package/dist/{renderer-RLSR7N6I.js → renderer-TPOZOAXR.js} +5 -4
  67. package/dist/{renderer-RUGMKHX5.js → renderer-WH2HWE5Z.js} +3 -2
  68. package/dist/{renderer-V6LLASGN.js → renderer-X5A5VIRD.js} +5 -4
  69. package/dist/{renderer-ADX4DWRJ.js → renderer-XUPLAO4B.js} +4 -2
  70. package/dist/{renderer-EWJS2RAZ.js → renderer-YDAVCRTP.js} +3 -2
  71. package/dist/{state-renderer-DDVJ43HR.js → state-renderer-5IQ4OJUI.js} +7 -6
  72. package/gallery/fixtures/journey-map.dgmo +28 -0
  73. package/gallery/fixtures/mindmap.dgmo +31 -0
  74. package/gallery/fixtures/pert.dgmo +27 -0
  75. package/gallery/fixtures/wireframe.dgmo +30 -0
  76. package/package.json +2 -2
@@ -2150,24 +2150,6 @@ declare function layoutBoxesAndLines(parsed: ParsedBoxesAndLines, collapseInfo?:
2150
2150
  /** Progress hook (interactive path). When set, the search yields between
2151
2151
  * candidates so the UI can paint a "trying X of Y" indicator. */
2152
2152
  onProgress?: (done: number, total: number, phase: string) => void;
2153
- /** Wall-clock deadline on candidate generation, in ms. Defaults to
2154
- * `DEFAULT_SEARCH_BUDGET_MS`; **0 or less means no deadline at all**.
2155
- *
2156
- * 🔴 A test that asserts WHICH labels the search managed to place must
2157
- * pass 0. The search is the one part of layout whose OUTPUT depends on
2158
- * how much time it got, so a test pinning an exact result is otherwise
2159
- * measuring the machine — and fails on a busy one while the code is
2160
- * fine. `layout-search.ts` has said a non-positive budget is "what the
2161
- * snapshot tests want" since the backstop was added, but nothing
2162
- * forwarded it here, so no test could ask. Found when a full release's
2163
- * gate refused dgmo on 2026-09-20: the OAUTH fixture needs ~2.5s a pass
2164
- * and runs the search twice, so under the suite's own parallel load it
2165
- * crossed the 5s backstop and five labels came out unplaced.
2166
- *
2167
- * This is the escape hatch for tests only. A real caller still gets the
2168
- * deadline, and it still costs them placed labels on a busy machine —
2169
- * that half is the search backstop firing on ordinary diagrams (#868). */
2170
- budgetMs?: number;
2171
2153
  }): Promise<BLLayoutResult>;
2172
2154
 
2173
2155
  interface BLRenderOptions {
@@ -3627,6 +3609,12 @@ interface GanttInteractiveOptions {
3627
3609
  * change), matching every other ControlsStrip-hosted chart type.
3628
3610
  */
3629
3611
  controlsHost?: 'app' | 'inline';
3612
+ /**
3613
+ * The host scales the SVG to fit the container on both axes (the app's
3614
+ * preview pane). A chart taller than the container is laid out wider, to the
3615
+ * container's aspect ratio, so it fills the width instead of a centred column.
3616
+ */
3617
+ fitToContainer?: boolean;
3630
3618
  /** Initial Critical Path highlight state (used when `controlsHost` is `'app'`). */
3631
3619
  criticalPathActive?: boolean;
3632
3620
  /** Initial Dependencies-arrow visibility (used when `controlsHost` is `'app'`). */
package/dist/advanced.js CHANGED
@@ -1,8 +1,7 @@
1
1
  import {
2
- layoutBracket,
3
2
  renderBracket,
4
3
  renderBracketForExport
5
- } from "./chunk-ETBXIKK6.js";
4
+ } from "./chunk-WXPBP4IT.js";
6
5
  import {
7
6
  renderRaci,
8
7
  renderRaciForExport
@@ -16,11 +15,11 @@ import {
16
15
  computeActivations,
17
16
  groupMessagesBySection,
18
17
  renderSequenceDiagram
19
- } from "./chunk-XFMQSFS4.js";
18
+ } from "./chunk-YMG7JDEY.js";
20
19
  import {
21
20
  renderRing,
22
21
  renderRingForExport
23
- } from "./chunk-QJ2JOLFN.js";
22
+ } from "./chunk-6I5UN4FD.js";
24
23
  import {
25
24
  layoutTreemapRadial,
26
25
  renderTreemapRadial,
@@ -43,12 +42,12 @@ import {
43
42
  import {
44
43
  renderGoal,
45
44
  renderGoalForExport
46
- } from "./chunk-H6AFNCN3.js";
45
+ } from "./chunk-XVSJYAK7.js";
47
46
  import "./chunk-LNO3ASX5.js";
48
47
  import {
49
48
  renderCountdown,
50
49
  renderCountdownForExport
51
- } from "./chunk-JIPUBFAM.js";
50
+ } from "./chunk-5KGM44TG.js";
52
51
  import {
53
52
  renderClock,
54
53
  renderClockForExport
@@ -60,11 +59,11 @@ import {
60
59
  renderQuadrantFocusForExport,
61
60
  renderTechRadar,
62
61
  renderTechRadarForExport
63
- } from "./chunk-QNKHJ5CK.js";
62
+ } from "./chunk-YK4N6TBN.js";
64
63
  import {
65
64
  renderJourneyMap,
66
65
  renderJourneyMapForExport
67
- } from "./chunk-E6S2K6O2.js";
66
+ } from "./chunk-N7XRBWXA.js";
68
67
  import {
69
68
  layoutJourneyMap
70
69
  } from "./chunk-DOXBS7F5.js";
@@ -72,7 +71,7 @@ import {
72
71
  computeCycleLayout,
73
72
  renderCycle,
74
73
  renderCycleForExport
75
- } from "./chunk-QJFT5MAH.js";
74
+ } from "./chunk-DSG6GBUQ.js";
76
75
  import {
77
76
  resolveMap
78
77
  } from "./chunk-3AX6MCI6.js";
@@ -100,20 +99,20 @@ import {
100
99
  import {
101
100
  renderPyramid,
102
101
  renderPyramidForExport
103
- } from "./chunk-X2VEJ5NT.js";
102
+ } from "./chunk-BMUWF77V.js";
104
103
  import {
105
104
  collectDiagramRoles,
106
105
  computeInfraLegendGroups,
107
106
  inferRoles,
108
107
  parseAndLayoutInfra,
109
108
  renderInfra
110
- } from "./chunk-ERYHC4KJ.js";
109
+ } from "./chunk-LSQGJN5H.js";
111
110
  import {
112
111
  measurePertAnalysisBlock,
113
112
  renderPert,
114
113
  renderPertAnalysisBlock,
115
114
  renderPertForExport
116
- } from "./chunk-GYORDNOM.js";
115
+ } from "./chunk-P5V63L35.js";
117
116
  import {
118
117
  analyzePert,
119
118
  buildSimulationContext,
@@ -134,11 +133,11 @@ import {
134
133
  import {
135
134
  buildTagLaneRowList,
136
135
  renderGantt
137
- } from "./chunk-AGO3PFGS.js";
136
+ } from "./chunk-MVCPO6LI.js";
138
137
  import {
139
138
  renderState,
140
139
  renderStateForExport
141
- } from "./chunk-BF7JAFJI.js";
140
+ } from "./chunk-B7CU2HW5.js";
142
141
  import {
143
142
  collapseStateGroups
144
143
  } from "./chunk-SQ7IY53Q.js";
@@ -156,7 +155,7 @@ import {
156
155
  renderC4ContextForExport,
157
156
  renderC4Deployment,
158
157
  renderC4DeploymentForExport
159
- } from "./chunk-C6FZZFYD.js";
158
+ } from "./chunk-WZ23JJ7U.js";
160
159
  import {
161
160
  layoutC4Components,
162
161
  layoutC4Containers,
@@ -167,11 +166,11 @@ import {
167
166
  import {
168
167
  renderFlowchart,
169
168
  renderFlowchartForExport
170
- } from "./chunk-4ELXLATB.js";
169
+ } from "./chunk-XUDGZJTJ.js";
171
170
  import "./chunk-26EVL454.js";
172
171
  import {
173
172
  layoutGraph
174
- } from "./chunk-PBEH52A2.js";
173
+ } from "./chunk-ZNNVI5SR.js";
175
174
  import {
176
175
  computeInfra
177
176
  } from "./chunk-ICZ7M6IZ.js";
@@ -180,7 +179,7 @@ import {
180
179
  } from "./chunk-3FCSOYN4.js";
181
180
  import {
182
181
  layoutSwimlane
183
- } from "./chunk-PKXKWHDW.js";
182
+ } from "./chunk-AUS7V54P.js";
184
183
  import {
185
184
  renderSwimlaneForExport
186
185
  } from "./chunk-BT2WH2XT.js";
@@ -198,24 +197,24 @@ import {
198
197
  import {
199
198
  renderMindmap,
200
199
  renderMindmapForExport
201
- } from "./chunk-3CQS3CIO.js";
200
+ } from "./chunk-LL6D3MES.js";
202
201
  import {
203
202
  layoutMindmap
204
203
  } from "./chunk-UIUXIDBX.js";
205
204
  import {
206
205
  renderClassDiagram,
207
206
  renderClassDiagramForExport
208
- } from "./chunk-LHBMQJC3.js";
207
+ } from "./chunk-XWYR5T52.js";
209
208
  import {
210
209
  layoutClassDiagram
211
- } from "./chunk-BP4BT5TH.js";
210
+ } from "./chunk-CLQIXD2C.js";
212
211
  import {
213
212
  renderERDiagram,
214
213
  renderERDiagramForExport
215
- } from "./chunk-HUMQIRJK.js";
214
+ } from "./chunk-HTPZDZKQ.js";
216
215
  import {
217
216
  layoutERDiagram
218
- } from "./chunk-FAV4RDVT.js";
217
+ } from "./chunk-2A4DQAXG.js";
219
218
  import {
220
219
  SKETCH_AUTO_LAYOUT_DEFAULTS,
221
220
  SKETCH_FOOT_H,
@@ -245,17 +244,17 @@ import {
245
244
  import {
246
245
  renderBoxesAndLines,
247
246
  renderBoxesAndLinesForExport
248
- } from "./chunk-MYHPRQHR.js";
249
- import "./chunk-5JO443MB.js";
247
+ } from "./chunk-O6MMQQLF.js";
248
+ import "./chunk-HAH5X345.js";
250
249
  import "./chunk-XBJJP2HN.js";
251
250
  import {
252
251
  layoutBoxesAndLines
253
- } from "./chunk-LIYWJ6DV.js";
254
- import "./chunk-EWSESGC2.js";
255
- import "./chunk-TW6WMZFW.js";
256
- import "./chunk-HBCAY3KR.js";
252
+ } from "./chunk-XIFK423U.js";
253
+ import "./chunk-EJS3K44P.js";
254
+ import "./chunk-QT3KDDXK.js";
255
+ import "./chunk-HTNLLT34.js";
257
256
  import "./chunk-6EK55ART.js";
258
- import "./chunk-ZGHV4QLK.js";
257
+ import "./chunk-RJNZHFNG.js";
259
258
  import "./chunk-5DH3KYFH.js";
260
259
  import {
261
260
  renderVersionControl,
@@ -282,26 +281,26 @@ import "./chunk-BS7SV7C3.js";
282
281
  import {
283
282
  renderSitemap,
284
283
  renderSitemapForExport
285
- } from "./chunk-BHZE36F7.js";
284
+ } from "./chunk-PUVTFUNH.js";
286
285
  import {
287
286
  computeCardArchive,
288
287
  computeCardMove,
289
288
  isArchiveColumn,
290
289
  renderKanban,
291
290
  renderKanbanForExport
292
- } from "./chunk-VPVWG2GH.js";
291
+ } from "./chunk-J7Q4VPBJ.js";
293
292
  import {
294
293
  clearEventLineMuted,
295
294
  focusEventLine,
296
295
  renderEventLine,
297
296
  renderEventLineForExport
298
- } from "./chunk-VEE777MD.js";
299
- import "./chunk-WMIKC5XO.js";
297
+ } from "./chunk-5LD7SHXO.js";
298
+ import "./chunk-NPWVOFB3.js";
300
299
  import "./chunk-R2K5L4UA.js";
301
300
  import {
302
301
  parseInlineMarkdown,
303
302
  truncateBareUrl
304
- } from "./chunk-FWNJDD4U.js";
303
+ } from "./chunk-S7W75MIM.js";
305
304
  import {
306
305
  renderBody,
307
306
  renderBodyForExport
@@ -312,6 +311,7 @@ import {
312
311
  searchMapLocations,
313
312
  themes
314
313
  } from "./chunk-SQAG3UXH.js";
314
+ import "./chunk-Z6DXWULM.js";
315
315
  import {
316
316
  DEFAULT_DIM_OPACITY,
317
317
  orderArcNodes,
@@ -322,7 +322,10 @@ import {
322
322
  renderSlopeChart,
323
323
  renderVenn,
324
324
  renderWordCloud
325
- } from "./chunk-4YA5XW43.js";
325
+ } from "./chunk-VW52W5F6.js";
326
+ import {
327
+ layoutBracket
328
+ } from "./chunk-ABP5BUD6.js";
326
329
  import "./chunk-D4M25W6R.js";
327
330
  import {
328
331
  CHART_TYPE_DESCRIPTIONS,
@@ -376,7 +379,7 @@ import "./chunk-2CW5ZTNH.js";
376
379
  import {
377
380
  formatDateLabel,
378
381
  renderTimeline
379
- } from "./chunk-QPE646M2.js";
382
+ } from "./chunk-JLETTWUJ.js";
380
383
  import {
381
384
  computeTimeTicks
382
385
  } from "./chunk-YRYKTYMQ.js";
package/dist/block.js CHANGED
@@ -4,7 +4,8 @@ import {
4
4
  } from "./chunk-D3K4U3ZM.js";
5
5
  import {
6
6
  render
7
- } from "./chunk-4YA5XW43.js";
7
+ } from "./chunk-VW52W5F6.js";
8
+ import "./chunk-ABP5BUD6.js";
8
9
  import {
9
10
  docsLink,
10
11
  renderErrorCard
@@ -20,7 +21,10 @@ import "./chunk-KMU65FYM.js";
20
21
  import "./chunk-EPDBWATV.js";
21
22
  import "./chunk-7UDAIP6W.js";
22
23
  import "./chunk-2CW5ZTNH.js";
23
- import "./chunk-QPE646M2.js";
24
+ import {
25
+ escapeAttr,
26
+ escapeHtml
27
+ } from "./chunk-JLETTWUJ.js";
24
28
  import "./chunk-YRYKTYMQ.js";
25
29
  import "./chunk-24YPR5EH.js";
26
30
  import "./chunk-XCKNFFKM.js";
@@ -559,21 +563,6 @@ function markTokensInRange(tokens, from, to, role) {
559
563
  }
560
564
  }
561
565
 
562
- // src/embed/escape.ts
563
- var HTML_ENTITIES = {
564
- "&": "&amp;",
565
- "<": "&lt;",
566
- ">": "&gt;",
567
- '"': "&quot;",
568
- "'": "&#39;"
569
- };
570
- function escapeHtml(s) {
571
- return s.replace(/[&<>"']/g, (ch) => HTML_ENTITIES[ch] ?? ch);
572
- }
573
- function escapeAttr(s) {
574
- return s.replace(/[&<>"']/g, (ch) => HTML_ENTITIES[ch] ?? ch);
575
- }
576
-
577
566
  // src/embed/css.ts
578
567
  var BLOCK_CSS = `
579
568
  /* @diagrammo/dgmo block \u2014 standard embed chrome.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  buildPlacedNotes
3
- } from "./chunk-HBCAY3KR.js";
3
+ } from "./chunk-HTNLLT34.js";
4
4
  import {
5
5
  noteCanvasShift
6
6
  } from "./chunk-6EK55ART.js";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  wrapDescriptionLines
3
- } from "./chunk-WMIKC5XO.js";
3
+ } from "./chunk-NPWVOFB3.js";
4
4
  import {
5
5
  renderInlineText,
6
6
  stripInlineMarkdown
7
- } from "./chunk-FWNJDD4U.js";
7
+ } from "./chunk-S7W75MIM.js";
8
8
  import {
9
9
  FONT_FAMILY
10
10
  } from "./chunk-ICLB27PZ.js";
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  wrapDescriptionLines
3
- } from "./chunk-WMIKC5XO.js";
3
+ } from "./chunk-NPWVOFB3.js";
4
4
  import {
5
5
  renderNodeCard
6
6
  } from "./chunk-R2K5L4UA.js";
7
7
  import {
8
8
  renderInlineText
9
- } from "./chunk-FWNJDD4U.js";
9
+ } from "./chunk-S7W75MIM.js";
10
10
  import {
11
11
  formatDateLabel
12
- } from "./chunk-QPE646M2.js";
12
+ } from "./chunk-JLETTWUJ.js";
13
13
  import {
14
14
  CARD_RADIUS,
15
15
  HAIRLINE_DASH,
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  wrapDescriptionLines
3
- } from "./chunk-WMIKC5XO.js";
3
+ } from "./chunk-NPWVOFB3.js";
4
4
  import {
5
5
  renderInlineText
6
- } from "./chunk-FWNJDD4U.js";
6
+ } from "./chunk-S7W75MIM.js";
7
7
  import {
8
8
  ScaleContext
9
9
  } from "./chunk-24YPR5EH.js";