@diagrammo/dgmo 0.63.0 → 0.64.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 (89) hide show
  1. package/README.md +2 -2
  2. package/dist/advanced.js +48 -45
  3. package/dist/block.js +7 -7
  4. package/dist/{charts-d3-M76E4TZU.js → charts-d3-ZTXJWEHI.js} +4 -4
  5. package/dist/{chunk-BIWMOFSE.js → chunk-2KOBOIB2.js} +2 -2
  6. package/dist/{chunk-KHTKMVKT.js → chunk-67D4MN2H.js} +2 -2
  7. package/dist/{chunk-TJCHULP5.js → chunk-7GUYGQR4.js} +2 -2
  8. package/dist/{chunk-2LN5C6FH.js → chunk-7T3A2UK3.js} +10 -6
  9. package/dist/{chunk-W32HMBPW.js → chunk-B6AONGTI.js} +3 -3
  10. package/dist/{chunk-DY4VJYG7.js → chunk-C6DMG2V6.js} +3 -3
  11. package/dist/{chunk-MD2KWAXJ.js → chunk-CDMF7P5A.js} +2 -2
  12. package/dist/{chunk-HBSKE3ML.js → chunk-CZUSH6NI.js} +3 -3
  13. package/dist/{chunk-USHDV2AF.js → chunk-DB2KQ5DN.js} +3 -3
  14. package/dist/{chunk-34HQALZ5.js → chunk-DN5HEDE4.js} +3 -3
  15. package/dist/{chunk-PUFWYDWP.js → chunk-FRC4LDTQ.js} +3 -3
  16. package/dist/{chunk-MRD4QWFK.js → chunk-I24O2RWT.js} +2 -2
  17. package/dist/{chunk-VWCGN2ST.js → chunk-I2ATN25N.js} +3 -3
  18. package/dist/{chunk-SSR6JAR3.js → chunk-IGIJZHB6.js} +2 -2
  19. package/dist/{chunk-3HYRJAXO.js → chunk-IX6N5MCY.js} +3 -3
  20. package/dist/{chunk-AKD3YZ54.js → chunk-KPX2OWZR.js} +3 -3
  21. package/dist/{chunk-L26ZAPNJ.js → chunk-KZ3PCDUJ.js} +2 -2
  22. package/dist/{chunk-UZ3JPYD3.js → chunk-L4IN4OBB.js} +3 -3
  23. package/dist/{chunk-RZRMSNO7.js → chunk-LMXAB4YM.js} +3 -3
  24. package/dist/{chunk-X4FCKGK2.js → chunk-LYTEVE2N.js} +3 -3
  25. package/dist/{chunk-NQH2Q2RR.js → chunk-M4HYPDER.js} +3 -3
  26. package/dist/{chunk-L57TSE53.js → chunk-MHI6W6XS.js} +3 -3
  27. package/dist/{chunk-ZXLXAOCM.js → chunk-MQHOKBJ6.js} +3 -3
  28. package/dist/{chunk-U22TKD3L.js → chunk-NIZM3LAG.js} +4 -4
  29. package/dist/{chunk-A34FVVVI.js → chunk-NKRCPBTJ.js} +2 -2
  30. package/dist/{chunk-XXDEQSW4.js → chunk-OBKM6GIJ.js} +3 -3
  31. package/dist/{chunk-BPINSP65.js → chunk-OMTBYLKN.js} +4 -4
  32. package/dist/{chunk-UKZ7K5GS.js → chunk-RBAW7VUG.js} +4 -3
  33. package/dist/{chunk-KK5LQIN7.js → chunk-RBBJIHNL.js} +4 -4
  34. package/dist/{chunk-DUHKYKI7.js → chunk-RQL25P3U.js} +4 -4
  35. package/dist/{chunk-MR2XKW35.js → chunk-S5RWWISJ.js} +2 -2
  36. package/dist/{chunk-BGITRLTR.js → chunk-SMCUX42K.js} +2 -2
  37. package/dist/{chunk-PTKCX5ZE.js → chunk-SPHC4RYF.js} +3 -3
  38. package/dist/{chunk-TRP7PC5Z.js → chunk-SVR3YFM3.js} +3 -3
  39. package/dist/{chunk-YVI3JL3S.js → chunk-T4QXHE34.js} +4 -4
  40. package/dist/{chunk-SV7F363F.js → chunk-TAJ2XFTT.js} +3 -3
  41. package/dist/{chunk-SBOG6R6A.js → chunk-V3UQSKWJ.js} +3 -3
  42. package/dist/{chunk-QRHA7WIU.js → chunk-VOJOARA6.js} +42 -42
  43. package/dist/{chunk-2PTK46E2.js → chunk-WDJ4HAGO.js} +2 -2
  44. package/dist/{chunk-QFNRHY62.js → chunk-XUN3MIO3.js} +2 -2
  45. package/dist/{chunk-L4B4GRVS.js → chunk-YHTKDIF2.js} +3 -3
  46. package/dist/{chunk-IMXG673Y.js → chunk-YLK3JNWP.js} +2 -2
  47. package/dist/{chunk-GCVTU64J.js → chunk-Z2ADWRSW.js} +3 -3
  48. package/dist/{chunk-6KFWC4CO.js → chunk-Z5ID35YP.js} +4 -2
  49. package/dist/{flowchart-renderer-BCVCIZHF.js → flowchart-renderer-EXMRHFTQ.js} +3 -3
  50. package/dist/index.js +7 -7
  51. package/dist/{renderer-XIJO7DYS.js → renderer-2ARNFXSC.js} +4 -4
  52. package/dist/{renderer-NKVIQA3C.js → renderer-2E7LQC32.js} +3 -3
  53. package/dist/{renderer-CU6BEHHV.js → renderer-7OOC2ZO2.js} +3 -3
  54. package/dist/{renderer-UTXVIAS7.js → renderer-BYWLJDT4.js} +4 -4
  55. package/dist/{renderer-AVR3LBTS.js → renderer-C6KOE774.js} +4 -4
  56. package/dist/{renderer-M7YOXAGC.js → renderer-DMVUBKP7.js} +3 -3
  57. package/dist/{renderer-5HYDLCMX.js → renderer-FCO42JLK.js} +4 -4
  58. package/dist/{renderer-HPQJRSON.js → renderer-H6AQ4UIR.js} +4 -4
  59. package/dist/{renderer-BBBN7QNX.js → renderer-HLWEJQJW.js} +3 -3
  60. package/dist/{renderer-HGWKAXS6.js → renderer-IN3UPTZS.js} +3 -3
  61. package/dist/{renderer-TDFRMG3O.js → renderer-KK2534AF.js} +3 -3
  62. package/dist/{renderer-TTMBG2N6.js → renderer-KOWVTTYR.js} +4 -4
  63. package/dist/{renderer-PKST5W6U.js → renderer-KPEQ72FY.js} +5 -5
  64. package/dist/{renderer-DRLZELXM.js → renderer-LO4FXQHP.js} +4 -4
  65. package/dist/{renderer-KHVAM4IY.js → renderer-LSBXYOID.js} +4 -4
  66. package/dist/{renderer-K3TH5PP7.js → renderer-M3PQKXK2.js} +5 -5
  67. package/dist/{renderer-AMCTCBV3.js → renderer-M43ROWET.js} +4 -4
  68. package/dist/{renderer-Q2YHQQSN.js → renderer-NHFRVCDC.js} +4 -4
  69. package/dist/{renderer-JL7L5Y5M.js → renderer-OA7FSZ4A.js} +3 -3
  70. package/dist/{renderer-CHHYNEK7.js → renderer-OB77AT7V.js} +4 -4
  71. package/dist/{renderer-35F3XMZH.js → renderer-OYTERGAO.js} +4 -4
  72. package/dist/{renderer-4VDSMPYU.js → renderer-PM7JPC3J.js} +5 -5
  73. package/dist/{renderer-XDL6PRLN.js → renderer-QEHUJHRK.js} +4 -4
  74. package/dist/{renderer-2DKA5QXA.js → renderer-QR5343AR.js} +3 -3
  75. package/dist/{renderer-JBF2PAVP.js → renderer-T5CUGSXP.js} +4 -4
  76. package/dist/{renderer-CXAL2FYB.js → renderer-WN47AMUM.js} +4 -4
  77. package/dist/{renderer-ZHBFOSK5.js → renderer-WR3FA3FF.js} +4 -4
  78. package/dist/{renderer-RN5ZFIEK.js → renderer-XLEYPLVL.js} +4 -4
  79. package/dist/{renderer-DJ5DP3RH.js → renderer-XLPNUOYA.js} +4 -4
  80. package/dist/{renderer-RJT3MOUU.js → renderer-YBEZ5V2H.js} +3 -3
  81. package/dist/{renderer-KKNXTTFE.js → renderer-YELZR4QT.js} +6 -6
  82. package/dist/{renderer-5SN6N5VN.js → renderer-YLM4CGBG.js} +4 -4
  83. package/dist/{renderer-726UVOKE.js → renderer-ZNTLBQ45.js} +4 -4
  84. package/dist/{renderer-radial-4J2KO4GZ.js → renderer-radial-XWAKJACV.js} +4 -4
  85. package/dist/{state-renderer-MCWCZ76U.js → state-renderer-LIESKSBO.js} +4 -4
  86. package/package.json +1 -1
  87. package/dist/auto.css +0 -557
  88. package/dist/auto.js +0 -886
  89. package/dist/element.js +0 -889
package/README.md CHANGED
@@ -95,7 +95,7 @@ Q4 22
95
95
  Add one `<script>` tag and every `<pre class="dgmo">` block renders on load:
96
96
 
97
97
  ```html
98
- <script src="https://cdn.jsdelivr.net/npm/@diagrammo/dgmo/dist/auto.js"></script>
98
+ <script src="https://cdn.jsdelivr.net/npm/@diagrammo/dgmo-standalone/dist/auto.js"></script>
99
99
 
100
100
  <pre class="dgmo">pie Crew Rations
101
101
  Grog: 58
@@ -106,7 +106,7 @@ Limes: 21</pre>
106
106
  Prefer an explicit element? Use `<dgmo-diagram>` from the same package:
107
107
 
108
108
  ```html
109
- <script src="https://cdn.jsdelivr.net/npm/@diagrammo/dgmo/dist/element.js"></script>
109
+ <script src="https://cdn.jsdelivr.net/npm/@diagrammo/dgmo-standalone/dist/element.js"></script>
110
110
 
111
111
  <dgmo-diagram palette="slate">pie Crew Rations
112
112
  Grog: 58
package/dist/advanced.js CHANGED
@@ -2,11 +2,11 @@ import {
2
2
  layoutBracket,
3
3
  renderBracket,
4
4
  renderBracketForExport
5
- } from "./chunk-W32HMBPW.js";
5
+ } from "./chunk-B6AONGTI.js";
6
6
  import {
7
7
  renderRaci,
8
8
  renderRaciForExport
9
- } from "./chunk-MRD4QWFK.js";
9
+ } from "./chunk-I24O2RWT.js";
10
10
  import {
11
11
  applyCollapseProjection,
12
12
  applyGroupOrdering,
@@ -16,43 +16,43 @@ import {
16
16
  computeActivations,
17
17
  groupMessagesBySection,
18
18
  renderSequenceDiagram
19
- } from "./chunk-L57TSE53.js";
19
+ } from "./chunk-MHI6W6XS.js";
20
20
  import {
21
21
  renderRing,
22
22
  renderRingForExport
23
- } from "./chunk-A34FVVVI.js";
23
+ } from "./chunk-NKRCPBTJ.js";
24
24
  import {
25
25
  layoutTreemapRadial,
26
26
  renderTreemapRadial,
27
27
  renderTreemapRadialForExport
28
- } from "./chunk-PTKCX5ZE.js";
28
+ } from "./chunk-SPHC4RYF.js";
29
29
  import {
30
30
  layoutTreemap,
31
31
  renderTreemap,
32
32
  renderTreemapForExport
33
- } from "./chunk-3HYRJAXO.js";
33
+ } from "./chunk-IX6N5MCY.js";
34
34
  import {
35
35
  renderLiveLinkCard
36
- } from "./chunk-ZXLXAOCM.js";
36
+ } from "./chunk-MQHOKBJ6.js";
37
37
  import {
38
38
  authoredCollapsedIds,
39
39
  layoutBlock,
40
40
  renderBlock,
41
41
  renderBlockForExport
42
- } from "./chunk-HBSKE3ML.js";
42
+ } from "./chunk-CZUSH6NI.js";
43
43
  import {
44
44
  renderGoal,
45
45
  renderGoalForExport
46
- } from "./chunk-2PTK46E2.js";
46
+ } from "./chunk-WDJ4HAGO.js";
47
47
  import "./chunk-3A7KMF33.js";
48
48
  import {
49
49
  renderCountdown,
50
50
  renderCountdownForExport
51
- } from "./chunk-BIWMOFSE.js";
51
+ } from "./chunk-2KOBOIB2.js";
52
52
  import {
53
53
  renderClock,
54
54
  renderClockForExport
55
- } from "./chunk-MD2KWAXJ.js";
55
+ } from "./chunk-CDMF7P5A.js";
56
56
  import {
57
57
  computeRadarLayout,
58
58
  getRadarGeometry,
@@ -60,11 +60,11 @@ import {
60
60
  renderQuadrantFocusForExport,
61
61
  renderTechRadar,
62
62
  renderTechRadarForExport
63
- } from "./chunk-UZ3JPYD3.js";
63
+ } from "./chunk-L4IN4OBB.js";
64
64
  import {
65
65
  renderJourneyMap,
66
66
  renderJourneyMapForExport
67
- } from "./chunk-PUFWYDWP.js";
67
+ } from "./chunk-FRC4LDTQ.js";
68
68
  import {
69
69
  layoutJourneyMap
70
70
  } from "./chunk-KRTO7NRK.js";
@@ -72,14 +72,14 @@ import {
72
72
  computeCycleLayout,
73
73
  renderCycle,
74
74
  renderCycleForExport
75
- } from "./chunk-DY4VJYG7.js";
75
+ } from "./chunk-C6DMG2V6.js";
76
76
  import {
77
77
  resolveMap
78
78
  } from "./chunk-WMHHNK44.js";
79
79
  import {
80
80
  renderMap,
81
81
  renderMapForExport
82
- } from "./chunk-USHDV2AF.js";
82
+ } from "./chunk-DB2KQ5DN.js";
83
83
  import "./chunk-FWVKPEG3.js";
84
84
  import {
85
85
  mapContentAspect,
@@ -98,20 +98,20 @@ import {
98
98
  import {
99
99
  renderPyramid,
100
100
  renderPyramidForExport
101
- } from "./chunk-TJCHULP5.js";
101
+ } from "./chunk-7GUYGQR4.js";
102
102
  import {
103
103
  collectDiagramRoles,
104
104
  computeInfraLegendGroups,
105
105
  inferRoles,
106
106
  parseAndLayoutInfra,
107
107
  renderInfra
108
- } from "./chunk-TRP7PC5Z.js";
108
+ } from "./chunk-SVR3YFM3.js";
109
109
  import {
110
110
  measurePertAnalysisBlock,
111
111
  renderPert,
112
112
  renderPertAnalysisBlock,
113
113
  renderPertForExport
114
- } from "./chunk-SV7F363F.js";
114
+ } from "./chunk-TAJ2XFTT.js";
115
115
  import {
116
116
  analyzePert,
117
117
  buildSimulationContext,
@@ -132,11 +132,11 @@ import {
132
132
  import {
133
133
  buildTagLaneRowList,
134
134
  renderGantt
135
- } from "./chunk-VWCGN2ST.js";
135
+ } from "./chunk-I2ATN25N.js";
136
136
  import {
137
137
  renderState,
138
138
  renderStateForExport
139
- } from "./chunk-NQH2Q2RR.js";
139
+ } from "./chunk-M4HYPDER.js";
140
140
  import {
141
141
  collapseStateGroups
142
142
  } from "./chunk-SQ7IY53Q.js";
@@ -145,7 +145,7 @@ import {
145
145
  } from "./chunk-ODUT5WMC.js";
146
146
  import {
147
147
  renderWireframe
148
- } from "./chunk-SSR6JAR3.js";
148
+ } from "./chunk-IGIJZHB6.js";
149
149
  import {
150
150
  renderC4ComponentsForExport,
151
151
  renderC4Containers,
@@ -154,7 +154,7 @@ import {
154
154
  renderC4ContextForExport,
155
155
  renderC4Deployment,
156
156
  renderC4DeploymentForExport
157
- } from "./chunk-RZRMSNO7.js";
157
+ } from "./chunk-LMXAB4YM.js";
158
158
  import {
159
159
  layoutC4Components,
160
160
  layoutC4Containers,
@@ -165,7 +165,7 @@ import {
165
165
  import {
166
166
  renderFlowchart,
167
167
  renderFlowchartForExport
168
- } from "./chunk-BGITRLTR.js";
168
+ } from "./chunk-SMCUX42K.js";
169
169
  import "./chunk-PDKUANDZ.js";
170
170
  import {
171
171
  layoutGraph
@@ -181,7 +181,7 @@ import {
181
181
  } from "./chunk-S6QDCFEU.js";
182
182
  import {
183
183
  renderSwimlaneForExport
184
- } from "./chunk-QFNRHY62.js";
184
+ } from "./chunk-XUN3MIO3.js";
185
185
  import "./chunk-LP7EC4MI.js";
186
186
  import {
187
187
  layoutFamily
@@ -189,7 +189,7 @@ import {
189
189
  import {
190
190
  renderFamily,
191
191
  renderFamilyForExport
192
- } from "./chunk-SBOG6R6A.js";
192
+ } from "./chunk-V3UQSKWJ.js";
193
193
  import "./chunk-IVKC4GID.js";
194
194
  import {
195
195
  collapseMindmapTree
@@ -197,21 +197,21 @@ import {
197
197
  import {
198
198
  renderMindmap,
199
199
  renderMindmapForExport
200
- } from "./chunk-DUHKYKI7.js";
200
+ } from "./chunk-RQL25P3U.js";
201
201
  import {
202
202
  layoutMindmap
203
203
  } from "./chunk-U42ZEK7L.js";
204
204
  import {
205
205
  renderClassDiagram,
206
206
  renderClassDiagramForExport
207
- } from "./chunk-U22TKD3L.js";
207
+ } from "./chunk-NIZM3LAG.js";
208
208
  import {
209
209
  layoutClassDiagram
210
210
  } from "./chunk-PCWPYOT4.js";
211
211
  import {
212
212
  renderERDiagram,
213
213
  renderERDiagramForExport
214
- } from "./chunk-XXDEQSW4.js";
214
+ } from "./chunk-OBKM6GIJ.js";
215
215
  import {
216
216
  layoutERDiagram
217
217
  } from "./chunk-5H2LIQIH.js";
@@ -232,11 +232,11 @@ import {
232
232
  renderSketch,
233
233
  renderSketchForExport,
234
234
  sketchEdgeGeometry
235
- } from "./chunk-AKD3YZ54.js";
235
+ } from "./chunk-KPX2OWZR.js";
236
236
  import {
237
237
  renderBoxesAndLines,
238
238
  renderBoxesAndLinesForExport
239
- } from "./chunk-X4FCKGK2.js";
239
+ } from "./chunk-LYTEVE2N.js";
240
240
  import "./chunk-H52HJ26L.js";
241
241
  import {
242
242
  layoutBoxesAndLines
@@ -250,7 +250,7 @@ import "./chunk-5DH3KYFH.js";
250
250
  import {
251
251
  renderVersionControl,
252
252
  renderVersionControlForExport
253
- } from "./chunk-IMXG673Y.js";
253
+ } from "./chunk-YLK3JNWP.js";
254
254
  import {
255
255
  collapseOrgTree,
256
256
  focusOrgTree
@@ -258,8 +258,8 @@ import {
258
258
  import {
259
259
  renderOrg,
260
260
  renderOrgForExport
261
- } from "./chunk-KK5LQIN7.js";
262
- import "./chunk-L26ZAPNJ.js";
261
+ } from "./chunk-RBBJIHNL.js";
262
+ import "./chunk-KZ3PCDUJ.js";
263
263
  import {
264
264
  layoutOrg
265
265
  } from "./chunk-RKTIIU7Z.js";
@@ -273,20 +273,20 @@ import "./chunk-BS7SV7C3.js";
273
273
  import {
274
274
  renderSitemap,
275
275
  renderSitemapForExport
276
- } from "./chunk-L4B4GRVS.js";
276
+ } from "./chunk-YHTKDIF2.js";
277
277
  import {
278
278
  computeCardArchive,
279
279
  computeCardMove,
280
280
  isArchiveColumn,
281
281
  renderKanban,
282
282
  renderKanbanForExport
283
- } from "./chunk-34HQALZ5.js";
283
+ } from "./chunk-DN5HEDE4.js";
284
284
  import {
285
285
  clearEventLineMuted,
286
286
  focusEventLine,
287
287
  renderEventLine,
288
288
  renderEventLineForExport
289
- } from "./chunk-YVI3JL3S.js";
289
+ } from "./chunk-T4QXHE34.js";
290
290
  import "./chunk-NCT22MOD.js";
291
291
  import "./chunk-H3HFC3SQ.js";
292
292
  import {
@@ -297,7 +297,7 @@ import "./chunk-3CIOJ5YJ.js";
297
297
  import {
298
298
  renderBody,
299
299
  renderBodyForExport
300
- } from "./chunk-GCVTU64J.js";
300
+ } from "./chunk-Z2ADWRSW.js";
301
301
  import {
302
302
  completeMapPlaces,
303
303
  completeMapRegions,
@@ -313,37 +313,37 @@ import {
313
313
  renderSlopeChart,
314
314
  renderVenn,
315
315
  renderWordCloud
316
- } from "./chunk-QRHA7WIU.js";
317
- import "./chunk-MR2XKW35.js";
316
+ } from "./chunk-VOJOARA6.js";
317
+ import "./chunk-S5RWWISJ.js";
318
318
  import "./chunk-EOYPX6SF.js";
319
319
  import {
320
320
  renderLegendSvg,
321
321
  renderLegendSvgFromConfig
322
- } from "./chunk-2LN5C6FH.js";
322
+ } from "./chunk-7T3A2UK3.js";
323
323
  import "./chunk-CVVICCSB.js";
324
324
  import {
325
325
  formatDateLabel,
326
326
  renderTimeline
327
- } from "./chunk-BPINSP65.js";
327
+ } from "./chunk-OMTBYLKN.js";
328
328
  import {
329
329
  computeTimeTicks
330
330
  } from "./chunk-YRYKTYMQ.js";
331
331
  import {
332
332
  ScaleContext
333
333
  } from "./chunk-YYVTBZZC.js";
334
- import "./chunk-KHTKMVKT.js";
334
+ import "./chunk-67D4MN2H.js";
335
335
  import "./chunk-6VJCURWU.js";
336
336
  import "./chunk-RU2HHHYA.js";
337
337
  import "./chunk-A4GOY3PE.js";
338
338
  import {
339
339
  renderLegendD3
340
- } from "./chunk-UKZ7K5GS.js";
340
+ } from "./chunk-RBAW7VUG.js";
341
341
  import {
342
342
  computeLegendLayout,
343
343
  controlsGroupCapsuleWidth,
344
344
  getLegendReservedHeight
345
345
  } from "./chunk-ES66QH6J.js";
346
- import "./chunk-6KFWC4CO.js";
346
+ import "./chunk-Z5ID35YP.js";
347
347
  import {
348
348
  LEGEND_GEAR_PILL_W,
349
349
  LEGEND_HEIGHT
@@ -1802,7 +1802,10 @@ function textFromSvg(svg) {
1802
1802
  while ((match = element.exec(svg)) !== null) {
1803
1803
  parts.push((match[1] ?? "").replace(/<[^>]*>/g, ""));
1804
1804
  }
1805
- return parts.join("").replace(/&#x([0-9a-f]+);/gi, (_, hex) => String.fromCodePoint(parseInt(hex, 16))).replace(/&#(\d+);/g, (_, dec) => String.fromCodePoint(parseInt(dec, 10))).replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&quot;/g, '"').replace(/&apos;/g, "'").replace(/&amp;/g, "&");
1805
+ return parts.join("").replace(
1806
+ /&#x([0-9a-f]+);/gi,
1807
+ (_, hex) => String.fromCodePoint(parseInt(hex, 16))
1808
+ ).replace(/&#(\d+);/g, (_, dec) => String.fromCodePoint(parseInt(dec, 10))).replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&quot;/g, '"').replace(/&apos;/g, "'").replace(/&amp;/g, "&");
1806
1809
  }
1807
1810
  function uncoveredCharacters(text, coverage) {
1808
1811
  const byScript = /* @__PURE__ */ new Map();
package/dist/block.js CHANGED
@@ -4,24 +4,24 @@ import {
4
4
  } from "./chunk-D3K4U3ZM.js";
5
5
  import {
6
6
  render
7
- } from "./chunk-QRHA7WIU.js";
7
+ } from "./chunk-VOJOARA6.js";
8
8
  import {
9
9
  docsLink,
10
10
  renderErrorCard
11
- } from "./chunk-MR2XKW35.js";
11
+ } from "./chunk-S5RWWISJ.js";
12
12
  import "./chunk-EOYPX6SF.js";
13
- import "./chunk-2LN5C6FH.js";
13
+ import "./chunk-7T3A2UK3.js";
14
14
  import "./chunk-CVVICCSB.js";
15
- import "./chunk-BPINSP65.js";
15
+ import "./chunk-OMTBYLKN.js";
16
16
  import "./chunk-YRYKTYMQ.js";
17
17
  import "./chunk-YYVTBZZC.js";
18
- import "./chunk-KHTKMVKT.js";
18
+ import "./chunk-67D4MN2H.js";
19
19
  import "./chunk-6VJCURWU.js";
20
20
  import "./chunk-RU2HHHYA.js";
21
21
  import "./chunk-A4GOY3PE.js";
22
- import "./chunk-UKZ7K5GS.js";
22
+ import "./chunk-RBAW7VUG.js";
23
23
  import "./chunk-ES66QH6J.js";
24
- import "./chunk-6KFWC4CO.js";
24
+ import "./chunk-Z5ID35YP.js";
25
25
  import "./chunk-SCJ7CAJF.js";
26
26
  import "./chunk-4ASYQ347.js";
27
27
  import {
@@ -2,14 +2,14 @@ import {
2
2
  D3_DATA_CHART_TYPES,
3
3
  renderDataChartD3,
4
4
  supportsD3DataChart
5
- } from "./chunk-2LN5C6FH.js";
5
+ } from "./chunk-7T3A2UK3.js";
6
6
  import "./chunk-CVVICCSB.js";
7
- import "./chunk-KHTKMVKT.js";
7
+ import "./chunk-67D4MN2H.js";
8
8
  import "./chunk-6VJCURWU.js";
9
9
  import "./chunk-RU2HHHYA.js";
10
10
  import "./chunk-A4GOY3PE.js";
11
11
  import "./chunk-ES66QH6J.js";
12
- import "./chunk-6KFWC4CO.js";
12
+ import "./chunk-Z5ID35YP.js";
13
13
  import "./chunk-SCJ7CAJF.js";
14
14
  import "./chunk-4ASYQ347.js";
15
15
  import "./chunk-XC7BUB3P.js";
@@ -26,4 +26,4 @@ export {
26
26
  renderDataChartD3,
27
27
  supportsD3DataChart
28
28
  };
29
- //# sourceMappingURL=charts-d3-M76E4TZU.js.map
29
+ //# sourceMappingURL=charts-d3-ZTXJWEHI.js.map
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-WGC42WJU.js";
8
8
  import {
9
9
  FONT_FAMILY
10
- } from "./chunk-6KFWC4CO.js";
10
+ } from "./chunk-Z5ID35YP.js";
11
11
  import {
12
12
  DAY_MS,
13
13
  applyOrdinalTemplate,
@@ -1030,4 +1030,4 @@ export {
1030
1030
  renderCountdown,
1031
1031
  renderCountdownForExport
1032
1032
  };
1033
- //# sourceMappingURL=chunk-BIWMOFSE.js.map
1033
+ //# sourceMappingURL=chunk-2KOBOIB2.js.map
@@ -8,7 +8,7 @@ import {
8
8
  } from "./chunk-A4GOY3PE.js";
9
9
  import {
10
10
  FONT_FAMILY
11
- } from "./chunk-6KFWC4CO.js";
11
+ } from "./chunk-Z5ID35YP.js";
12
12
  import {
13
13
  getSeriesColors
14
14
  } from "./chunk-42IT4BG2.js";
@@ -130,4 +130,4 @@ export {
130
130
  createExportContainer,
131
131
  finalizeSvgExport
132
132
  };
133
- //# sourceMappingURL=chunk-KHTKMVKT.js.map
133
+ //# sourceMappingURL=chunk-67D4MN2H.js.map
@@ -14,7 +14,7 @@ import {
14
14
  } from "./chunk-A4GOY3PE.js";
15
15
  import {
16
16
  FONT_FAMILY
17
- } from "./chunk-6KFWC4CO.js";
17
+ } from "./chunk-Z5ID35YP.js";
18
18
  import {
19
19
  CHAR_WIDTH_RATIO,
20
20
  measureText
@@ -428,4 +428,4 @@ export {
428
428
  renderPyramid,
429
429
  renderPyramidForExport
430
430
  };
431
- //# sourceMappingURL=chunk-TJCHULP5.js.map
431
+ //# sourceMappingURL=chunk-7GUYGQR4.js.map
@@ -11,7 +11,7 @@ import {
11
11
  initD3Chart,
12
12
  renderChartTitle,
13
13
  resolveExportPalette
14
- } from "./chunk-KHTKMVKT.js";
14
+ } from "./chunk-67D4MN2H.js";
15
15
  import {
16
16
  layoutInlineHeader
17
17
  } from "./chunk-6VJCURWU.js";
@@ -25,8 +25,9 @@ import {
25
25
  computeLegendLayout
26
26
  } from "./chunk-ES66QH6J.js";
27
27
  import {
28
+ FONT_CENTRAL_DY,
28
29
  FONT_FAMILY
29
- } from "./chunk-6KFWC4CO.js";
30
+ } from "./chunk-Z5ID35YP.js";
30
31
  import {
31
32
  LEGEND_DOT_R,
32
33
  LEGEND_ENTRY_FONT_SIZE,
@@ -63,6 +64,9 @@ import {
63
64
  } from "./chunk-42IT4BG2.js";
64
65
 
65
66
  // src/utils/legend-svg.ts
67
+ function baselineY(centerY, fontSize) {
68
+ return centerY + fontSize * FONT_CENTRAL_DY;
69
+ }
66
70
  function esc(s) {
67
71
  return s.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
68
72
  }
@@ -77,19 +81,19 @@ function emitCapsule(capsule, palette, groupBg, pillBorder) {
77
81
  `<rect x="${pill.x}" y="${pill.y}" width="${pill.width}" height="${pill.height}" rx="${pill.height / 2}" fill="none" stroke="${esc(pillBorder)}" stroke-width="0.75"/>`
78
82
  );
79
83
  inner.push(
80
- `<text x="${pill.x + pill.width / 2}" y="${LEGEND_HEIGHT / 2 + LEGEND_PILL_FONT_SIZE / 2 - 2}" font-size="${LEGEND_PILL_FONT_SIZE}" font-weight="500" fill="${esc(palette.text)}" text-anchor="middle" font-family="${esc(FONT_FAMILY)}">${esc(capsule.groupName)}</text>`
84
+ `<text x="${pill.x + pill.width / 2}" y="${baselineY(LEGEND_HEIGHT / 2, LEGEND_PILL_FONT_SIZE)}" font-size="${LEGEND_PILL_FONT_SIZE}" font-weight="500" fill="${esc(palette.text)}" text-anchor="middle" font-family="${esc(FONT_FAMILY)}">${esc(capsule.groupName)}</text>`
81
85
  );
82
86
  for (const entry of capsule.entries) {
83
87
  const label = entry.displayValue ?? entry.value;
84
88
  const hit = entry.width != null ? `<rect x="${entry.x}" y="${entry.y}" width="${entry.width}" height="${LEGEND_HEIGHT}" fill="transparent"/>` : "";
85
89
  inner.push(
86
- `<g data-legend-entry="${esc(entry.value.toLowerCase())}" data-series-name="${esc(entry.value)}" style="cursor:pointer">` + hit + `<circle cx="${entry.dotCx}" cy="${entry.dotCy}" r="${LEGEND_DOT_R}" fill="${esc(entry.color)}"/><text x="${entry.textX}" y="${entry.dotCy + LEGEND_ENTRY_FONT_SIZE / 2 - 1}" font-size="${LEGEND_ENTRY_FONT_SIZE}" fill="${esc(palette.textMuted)}" font-family="${esc(FONT_FAMILY)}">${esc(label)}</text></g>`
90
+ `<g data-legend-entry="${esc(entry.value.toLowerCase())}" data-series-name="${esc(entry.value)}" style="cursor:pointer">` + hit + `<circle cx="${entry.dotCx}" cy="${entry.dotCy}" r="${LEGEND_DOT_R}" fill="${esc(entry.color)}"/><text x="${entry.textX}" y="${baselineY(entry.dotCy, LEGEND_ENTRY_FONT_SIZE)}" font-size="${LEGEND_ENTRY_FONT_SIZE}" fill="${esc(palette.textMuted)}" font-family="${esc(FONT_FAMILY)}">${esc(label)}</text></g>`
87
91
  );
88
92
  }
89
93
  return `<g transform="translate(${capsule.x},${capsule.y})" data-legend-group="${esc(tagAttrKey(capsule.groupName))}" style="cursor:pointer">${inner.join("")}</g>`;
90
94
  }
91
95
  function emitPill(pill, palette, groupBg) {
92
- return `<g transform="translate(${pill.x},${pill.y})" data-legend-group="${esc(tagAttrKey(pill.groupName))}" style="cursor:pointer"><rect width="${pill.width}" height="${pill.height}" rx="${pill.height / 2}" fill="${esc(groupBg)}"/><text x="${pill.width / 2}" y="${pill.height / 2 + LEGEND_PILL_FONT_SIZE / 2 - 2}" font-size="${LEGEND_PILL_FONT_SIZE}" font-weight="500" fill="${esc(palette.textMuted)}" text-anchor="middle" font-family="${esc(FONT_FAMILY)}">${esc(pill.groupName)}</text></g>`;
96
+ return `<g transform="translate(${pill.x},${pill.y})" data-legend-group="${esc(tagAttrKey(pill.groupName))}" style="cursor:pointer"><rect width="${pill.width}" height="${pill.height}" rx="${pill.height / 2}" fill="${esc(groupBg)}"/><text x="${pill.width / 2}" y="${baselineY(pill.height / 2, LEGEND_PILL_FONT_SIZE)}" font-size="${LEGEND_PILL_FONT_SIZE}" font-weight="500" fill="${esc(palette.textMuted)}" text-anchor="middle" font-family="${esc(FONT_FAMILY)}">${esc(pill.groupName)}</text></g>`;
93
97
  }
94
98
  function renderLegendSvg(groups, options) {
95
99
  if (groups.length === 0) return { svg: "", height: 0, width: 0 };
@@ -2061,4 +2065,4 @@ export {
2061
2065
  supportsD3DataChart,
2062
2066
  renderDataChartD3
2063
2067
  };
2064
- //# sourceMappingURL=chunk-2LN5C6FH.js.map
2068
+ //# sourceMappingURL=chunk-7T3A2UK3.js.map
@@ -11,14 +11,14 @@ import {
11
11
  } from "./chunk-A4GOY3PE.js";
12
12
  import {
13
13
  renderIntegratedLegend
14
- } from "./chunk-UKZ7K5GS.js";
14
+ } from "./chunk-RBAW7VUG.js";
15
15
  import {
16
16
  getLegendExtent,
17
17
  getMaxLegendReservedHeight
18
18
  } from "./chunk-ES66QH6J.js";
19
19
  import {
20
20
  FONT_FAMILY
21
- } from "./chunk-6KFWC4CO.js";
21
+ } from "./chunk-Z5ID35YP.js";
22
22
  import {
23
23
  LEGEND_GROUP_GAP
24
24
  } from "./chunk-SCJ7CAJF.js";
@@ -994,4 +994,4 @@ export {
994
994
  renderBracket,
995
995
  renderBracketForExport
996
996
  };
997
- //# sourceMappingURL=chunk-W32HMBPW.js.map
997
+ //# sourceMappingURL=chunk-B6AONGTI.js.map
@@ -14,10 +14,10 @@ import {
14
14
  } from "./chunk-A4GOY3PE.js";
15
15
  import {
16
16
  renderIntegratedLegend
17
- } from "./chunk-UKZ7K5GS.js";
17
+ } from "./chunk-RBAW7VUG.js";
18
18
  import {
19
19
  FONT_FAMILY
20
- } from "./chunk-6KFWC4CO.js";
20
+ } from "./chunk-Z5ID35YP.js";
21
21
  import {
22
22
  LEGEND_HEIGHT
23
23
  } from "./chunk-SCJ7CAJF.js";
@@ -969,4 +969,4 @@ export {
969
969
  renderCycle,
970
970
  renderCycleForExport
971
971
  };
972
- //# sourceMappingURL=chunk-DY4VJYG7.js.map
972
+ //# sourceMappingURL=chunk-C6DMG2V6.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-FWVKPEG3.js";
4
4
  import {
5
5
  FONT_FAMILY
6
- } from "./chunk-6KFWC4CO.js";
6
+ } from "./chunk-Z5ID35YP.js";
7
7
  import {
8
8
  fixedParts,
9
9
  fixedTimeCells,
@@ -558,4 +558,4 @@ export {
558
558
  renderClock,
559
559
  renderClockForExport
560
560
  };
561
- //# sourceMappingURL=chunk-MD2KWAXJ.js.map
561
+ //# sourceMappingURL=chunk-CDMF7P5A.js.map
@@ -8,14 +8,14 @@ import {
8
8
  } from "./chunk-A4GOY3PE.js";
9
9
  import {
10
10
  renderIntegratedLegend
11
- } from "./chunk-UKZ7K5GS.js";
11
+ } from "./chunk-RBAW7VUG.js";
12
12
  import {
13
13
  getLegendExtent,
14
14
  getMaxLegendReservedHeight
15
15
  } from "./chunk-ES66QH6J.js";
16
16
  import {
17
17
  FONT_FAMILY
18
- } from "./chunk-6KFWC4CO.js";
18
+ } from "./chunk-Z5ID35YP.js";
19
19
  import {
20
20
  LEGEND_GROUP_GAP
21
21
  } from "./chunk-SCJ7CAJF.js";
@@ -396,4 +396,4 @@ export {
396
396
  renderBlock,
397
397
  authoredCollapsedIds
398
398
  };
399
- //# sourceMappingURL=chunk-HBSKE3ML.js.map
399
+ //# sourceMappingURL=chunk-CZUSH6NI.js.map
@@ -14,10 +14,10 @@ import {
14
14
  } from "./chunk-A4GOY3PE.js";
15
15
  import {
16
16
  renderIntegratedLegend
17
- } from "./chunk-UKZ7K5GS.js";
17
+ } from "./chunk-RBAW7VUG.js";
18
18
  import {
19
19
  FONT_FAMILY
20
- } from "./chunk-6KFWC4CO.js";
20
+ } from "./chunk-Z5ID35YP.js";
21
21
  import {
22
22
  measureText
23
23
  } from "./chunk-4ASYQ347.js";
@@ -781,4 +781,4 @@ export {
781
781
  renderMap,
782
782
  renderMapForExport
783
783
  };
784
- //# sourceMappingURL=chunk-USHDV2AF.js.map
784
+ //# sourceMappingURL=chunk-DB2KQ5DN.js.map
@@ -16,13 +16,13 @@ import {
16
16
  } from "./chunk-A4GOY3PE.js";
17
17
  import {
18
18
  renderIntegratedLegend
19
- } from "./chunk-UKZ7K5GS.js";
19
+ } from "./chunk-RBAW7VUG.js";
20
20
  import {
21
21
  getMaxLegendReservedHeight
22
22
  } from "./chunk-ES66QH6J.js";
23
23
  import {
24
24
  FONT_FAMILY
25
- } from "./chunk-6KFWC4CO.js";
25
+ } from "./chunk-Z5ID35YP.js";
26
26
  import {
27
27
  LEGEND_HEIGHT,
28
28
  measureLegendText
@@ -896,4 +896,4 @@ export {
896
896
  renderKanban,
897
897
  renderKanbanForExport
898
898
  };
899
- //# sourceMappingURL=chunk-34HQALZ5.js.map
899
+ //# sourceMappingURL=chunk-DN5HEDE4.js.map
@@ -24,10 +24,10 @@ import {
24
24
  } from "./chunk-RU2HHHYA.js";
25
25
  import {
26
26
  renderIntegratedLegend
27
- } from "./chunk-UKZ7K5GS.js";
27
+ } from "./chunk-RBAW7VUG.js";
28
28
  import {
29
29
  FONT_FAMILY
30
- } from "./chunk-6KFWC4CO.js";
30
+ } from "./chunk-Z5ID35YP.js";
31
31
  import {
32
32
  measureText,
33
33
  truncateText,
@@ -871,4 +871,4 @@ export {
871
871
  renderJourneyMap,
872
872
  renderJourneyMapForExport
873
873
  };
874
- //# sourceMappingURL=chunk-PUFWYDWP.js.map
874
+ //# sourceMappingURL=chunk-FRC4LDTQ.js.map
@@ -11,7 +11,7 @@ import {
11
11
  } from "./chunk-A4GOY3PE.js";
12
12
  import {
13
13
  FONT_FAMILY
14
- } from "./chunk-6KFWC4CO.js";
14
+ } from "./chunk-Z5ID35YP.js";
15
15
  import {
16
16
  measureText,
17
17
  truncateText,
@@ -789,4 +789,4 @@ export {
789
789
  renderRaci,
790
790
  renderRaciForExport
791
791
  };
792
- //# sourceMappingURL=chunk-MRD4QWFK.js.map
792
+ //# sourceMappingURL=chunk-I24O2RWT.js.map