@diagrammo/dgmo 0.74.0 → 0.76.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/dist/advanced.d.ts +51 -50
- package/dist/advanced.js +211 -49
- package/dist/{analyzer-FHRJUIMW.js → analyzer-QTDQEMS5.js} +4 -6
- package/dist/block.css +20 -3
- package/dist/block.d.ts +10 -2
- package/dist/block.js +34 -17
- package/dist/chart-meta.js +6 -6
- package/dist/{charts-d3-LWHTOVX7.js → charts-d3-SQEVMIAM.js} +5 -5
- package/dist/{chunk-TC63QU4M.js → chunk-32MOGTKT.js} +31 -196
- package/dist/{chunk-LYLRNAX2.js → chunk-3EGIU5WY.js} +2 -2
- package/dist/{chunk-CMQJP5L4.js → chunk-3LJNQ6LR.js} +4 -4
- package/dist/{chunk-GJQQCI63.js → chunk-3SQJZMPO.js} +1 -127
- package/dist/{chunk-2NRIGEHZ.js → chunk-46KVXDUJ.js} +10 -3
- package/dist/{chunk-YXY6V2YN.js → chunk-4CRLM3IT.js} +56 -52
- package/dist/{chunk-BBH5IAAR.js → chunk-76IBFEYW.js} +3 -3
- package/dist/{chunk-YJ5G2WRU.js → chunk-7EZ5AKBK.js} +3 -3
- package/dist/{chunk-5NAOTRLN.js → chunk-7G4XMHDB.js} +3 -3
- package/dist/chunk-7IATMZSA.js +72 -0
- package/dist/{chunk-LSHMDQZQ.js → chunk-AFR6GWXD.js} +3 -3
- package/dist/{chunk-T6BO4VO6.js → chunk-AYM472K3.js} +2 -2
- package/dist/{chunk-YSMI6TNZ.js → chunk-BCB24FG7.js} +2 -2
- package/dist/{chunk-6DYZ2JM6.js → chunk-BZQCAZZZ.js} +203 -29
- package/dist/{chunk-KR432TCU.js → chunk-C576CU77.js} +4 -4
- package/dist/{chunk-5KE6KHY6.js → chunk-CAPR5DET.js} +2 -2
- package/dist/{chunk-GQJ35I2I.js → chunk-CLQJAGWL.js} +7 -5
- package/dist/{chunk-NW3VXCXR.js → chunk-COCMMQXW.js} +2 -2
- package/dist/{chunk-A4GOY3PE.js → chunk-DEW62ON3.js} +1 -3
- package/dist/{chunk-SXZS56YM.js → chunk-EGXJWRO6.js} +3 -3
- package/dist/{chunk-RT7ACF77.js → chunk-EGY3TS62.js} +6 -6
- package/dist/{chunk-TDHD3HNO.js → chunk-F4X5NVKY.js} +37 -16
- package/dist/{chunk-RQ6SEQOT.js → chunk-FMZEU7MF.js} +65 -24
- package/dist/{chunk-R5JPMW2F.js → chunk-FTTB64OJ.js} +5 -5
- package/dist/{chunk-PHRBLJ3K.js → chunk-GEURKGZS.js} +2 -2
- package/dist/{chunk-ALDU62VN.js → chunk-GFXFRKUG.js} +4 -4
- package/dist/{chunk-L2EA5YLO.js → chunk-HGFKDSKZ.js} +3 -3
- package/dist/{chunk-JSYAH7KR.js → chunk-HOIAQ3P2.js} +2 -2
- package/dist/{chunk-FGXBIOVK.js → chunk-IFC3JXCT.js} +2 -2
- package/dist/{chunk-EV6BZMBZ.js → chunk-IHUOYDLN.js} +3 -3
- package/dist/{chunk-474D3IUN.js → chunk-JL7BDLC6.js} +4 -4
- package/dist/{chunk-WWQ6TUVK.js → chunk-JLJ7SP4X.js} +3 -3
- package/dist/{chunk-ULEWCCBN.js → chunk-JQ575OAK.js} +2 -2
- package/dist/{chunk-SUA56ZSB.js → chunk-LTTZX6RD.js} +6 -2
- package/dist/{chunk-YJMWEZOB.js → chunk-MG3DE3VO.js} +2 -2
- package/dist/{chunk-GE5RO4BS.js → chunk-N6MZSBOL.js} +5 -1
- package/dist/{chunk-DU3OIBQE.js → chunk-NWNSXHA5.js} +6 -2
- package/dist/{chunk-57Z2WXJ2.js → chunk-OBYZU23V.js} +5 -5
- package/dist/{chunk-2MJSSDK5.js → chunk-OUJG73YJ.js} +2 -2
- package/dist/{chunk-XCAEHWQB.js → chunk-PAW4RMH3.js} +2 -2
- package/dist/{chunk-CDFIZHVD.js → chunk-QI4Q5ZZH.js} +3 -3
- package/dist/{chunk-ALBVWTU4.js → chunk-TF76LCZS.js} +35 -51
- package/dist/{chunk-FL5IKZQA.js → chunk-U5B3TUEW.js} +2 -2
- package/dist/{chunk-TTCXHFFB.js → chunk-U7AO6FRL.js} +2 -2
- package/dist/{chunk-RN3PAL4E.js → chunk-UBW53CNS.js} +2 -2
- package/dist/{chunk-MDEG62W7.js → chunk-UTTRJ6KN.js} +3 -3
- package/dist/{chunk-Q6LP67RP.js → chunk-UWYZIGCB.js} +2 -2
- package/dist/{chunk-XJLNQEQS.js → chunk-XHROEQ23.js} +3 -3
- package/dist/{chunk-EPH4UMUE.js → chunk-YVDBBWEP.js} +2 -2
- package/dist/{dgmo-router-KYNLRE7S.js → dgmo-router-A3LIHT6H.js} +7 -7
- package/dist/{dimensions-Q5SFPATB.js → dimensions-7NYBSZRJ.js} +4 -4
- package/dist/{flowchart-parser-LY5GGQL2.js → flowchart-parser-NVBP3C5D.js} +2 -2
- package/dist/{flowchart-renderer-TTUSBBQI.js → flowchart-renderer-QYGQ64BM.js} +6 -6
- package/dist/index.js +13 -13
- package/dist/{layout-UJ62RQQ3.js → layout-2OJ25STS.js} +2 -2
- package/dist/{layout-DAYQ46PS.js → layout-LAS67TK3.js} +3 -3
- package/dist/{parser-LUOINP6H.js → parser-QYAIFXLP.js} +3 -3
- package/dist/{parser-L7RXUKYN.js → parser-WVE6SKB7.js} +2 -2
- package/dist/{parser-JYIZEKAS.js → parser-ZYAFHXKQ.js} +2 -2
- package/dist/pert.d.ts +4 -33
- package/dist/{renderer-AA5CC4VJ.js → renderer-4EWGZLJ6.js} +3 -3
- package/dist/{renderer-6SSIELBC.js → renderer-4PNVGHVA.js} +3 -3
- package/dist/{renderer-U6PK5ZKD.js → renderer-5W3HWIUL.js} +3 -3
- package/dist/{renderer-TI7QABY7.js → renderer-CGOPX4HW.js} +4 -4
- package/dist/{renderer-6IGQEVTE.js → renderer-CO5O5VR5.js} +3 -3
- package/dist/{renderer-QLZVE45Z.js → renderer-D7N7PPB7.js} +3 -3
- package/dist/{renderer-6HRDO635.js → renderer-DKW273R7.js} +4 -4
- package/dist/{renderer-227JWWHX.js → renderer-E6NHTVN6.js} +5 -5
- package/dist/{renderer-IPNSOM5J.js → renderer-F24V3RD3.js} +4 -4
- package/dist/{renderer-N2X3WYBY.js → renderer-F6WSR7UM.js} +5 -5
- package/dist/{renderer-55JP6AO4.js → renderer-FGGDZZFQ.js} +3 -3
- package/dist/{renderer-E5BYZTVH.js → renderer-FUJNSC5X.js} +3 -3
- package/dist/{renderer-YQI5U6KJ.js → renderer-GF6S5ZX6.js} +3 -3
- package/dist/{renderer-UXZEYV2X.js → renderer-GJDVPXI3.js} +4 -4
- package/dist/{renderer-UYYBJ7OB.js → renderer-IH45QV6Z.js} +9 -9
- package/dist/{renderer-NECP7G4X.js → renderer-JMJ7Q5OC.js} +4 -4
- package/dist/{renderer-YM7PLDBF.js → renderer-KMOGGMM7.js} +5 -5
- package/dist/{renderer-P55KPBIX.js → renderer-LBNVKVO3.js} +4 -4
- package/dist/{renderer-46QQH33X.js → renderer-LE3ZKHNS.js} +4 -4
- package/dist/{renderer-4K6KR3U3.js → renderer-MUW4G2N6.js} +6 -6
- package/dist/{renderer-2WW35ZIW.js → renderer-PIEPRK6M.js} +4 -4
- package/dist/{renderer-EJXFEA5C.js → renderer-PKRKLOYR.js} +4 -4
- package/dist/{renderer-W7RKBG6C.js → renderer-PR3KLNST.js} +4 -4
- package/dist/{renderer-SCIHPARI.js → renderer-QAMOXOZ2.js} +3 -3
- package/dist/{renderer-3LD3ANCP.js → renderer-RUHC6D3B.js} +4 -4
- package/dist/{renderer-OWBIWBMK.js → renderer-UUP6OX6F.js} +3 -3
- package/dist/{renderer-UUPNOGO5.js → renderer-UYZSP7MF.js} +4 -4
- package/dist/{renderer-CF5TYQT4.js → renderer-ZAJ5353N.js} +3 -3
- package/dist/{state-renderer-OPP6YOJI.js → state-renderer-UIE3AQM6.js} +6 -6
- package/docs/language-reference.md +6 -6
- package/package.json +3 -3
- package/dist/chunk-PDKUANDZ.js +0 -35
package/dist/advanced.js
CHANGED
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
layoutBracket,
|
|
3
3
|
renderBracket,
|
|
4
4
|
renderBracketForExport
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-HGFKDSKZ.js";
|
|
6
6
|
import {
|
|
7
7
|
renderRaci,
|
|
8
8
|
renderRaciForExport
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-COCMMQXW.js";
|
|
10
10
|
import {
|
|
11
11
|
applyCollapseProjection,
|
|
12
12
|
applyGroupOrdering,
|
|
@@ -16,11 +16,11 @@ import {
|
|
|
16
16
|
computeActivations,
|
|
17
17
|
groupMessagesBySection,
|
|
18
18
|
renderSequenceDiagram
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-CLQJAGWL.js";
|
|
20
20
|
import {
|
|
21
21
|
renderRing,
|
|
22
22
|
renderRingForExport
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-HOIAQ3P2.js";
|
|
24
24
|
import {
|
|
25
25
|
layoutTreemapRadial,
|
|
26
26
|
renderTreemapRadial,
|
|
@@ -30,20 +30,20 @@ import {
|
|
|
30
30
|
layoutTreemap,
|
|
31
31
|
renderTreemap,
|
|
32
32
|
renderTreemapForExport
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-XHROEQ23.js";
|
|
34
34
|
import {
|
|
35
35
|
renderLiveLinkCard
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-3EGIU5WY.js";
|
|
37
37
|
import {
|
|
38
38
|
authoredCollapsedIds,
|
|
39
39
|
layoutBlock,
|
|
40
40
|
renderBlock,
|
|
41
41
|
renderBlockForExport
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-UTTRJ6KN.js";
|
|
43
43
|
import {
|
|
44
44
|
renderGoal,
|
|
45
45
|
renderGoalForExport
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-U5B3TUEW.js";
|
|
47
47
|
import "./chunk-C2WH3BMS.js";
|
|
48
48
|
import {
|
|
49
49
|
renderCountdown,
|
|
@@ -72,25 +72,25 @@ import {
|
|
|
72
72
|
computeCycleLayout,
|
|
73
73
|
renderCycle,
|
|
74
74
|
renderCycleForExport
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-BCB24FG7.js";
|
|
76
76
|
import {
|
|
77
77
|
resolveMap
|
|
78
78
|
} from "./chunk-DGPFFRLS.js";
|
|
79
79
|
import {
|
|
80
80
|
renderMap,
|
|
81
81
|
renderMapForExport
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-EGXJWRO6.js";
|
|
83
83
|
import "./chunk-MS5574I7.js";
|
|
84
84
|
import {
|
|
85
85
|
mapContentAspect,
|
|
86
86
|
mapExportDimensions
|
|
87
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-JLJ7SP4X.js";
|
|
88
88
|
import {
|
|
89
89
|
albersSkewFallback,
|
|
90
90
|
layoutMap,
|
|
91
91
|
mapBackgroundColor,
|
|
92
92
|
mapNeutralLandColor
|
|
93
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-FMZEU7MF.js";
|
|
94
94
|
import {
|
|
95
95
|
decodeFeatures,
|
|
96
96
|
regionAt
|
|
@@ -98,20 +98,20 @@ import {
|
|
|
98
98
|
import {
|
|
99
99
|
renderPyramid,
|
|
100
100
|
renderPyramidForExport
|
|
101
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-UWYZIGCB.js";
|
|
102
102
|
import {
|
|
103
103
|
collectDiagramRoles,
|
|
104
104
|
computeInfraLegendGroups,
|
|
105
105
|
inferRoles,
|
|
106
106
|
parseAndLayoutInfra,
|
|
107
107
|
renderInfra
|
|
108
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-GFXFRKUG.js";
|
|
109
109
|
import {
|
|
110
110
|
measurePertAnalysisBlock,
|
|
111
111
|
renderPert,
|
|
112
112
|
renderPertAnalysisBlock,
|
|
113
113
|
renderPertForExport
|
|
114
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-32MOGTKT.js";
|
|
115
115
|
import {
|
|
116
116
|
analyzePert,
|
|
117
117
|
buildSimulationContext,
|
|
@@ -119,7 +119,7 @@ import {
|
|
|
119
119
|
sampleBetaPert,
|
|
120
120
|
simulateCanonical,
|
|
121
121
|
simulateFast
|
|
122
|
-
} from "./chunk-
|
|
122
|
+
} from "./chunk-3SQJZMPO.js";
|
|
123
123
|
import {
|
|
124
124
|
layoutPert,
|
|
125
125
|
relayoutPert
|
|
@@ -132,11 +132,11 @@ import {
|
|
|
132
132
|
import {
|
|
133
133
|
buildTagLaneRowList,
|
|
134
134
|
renderGantt
|
|
135
|
-
} from "./chunk-
|
|
135
|
+
} from "./chunk-AFR6GWXD.js";
|
|
136
136
|
import {
|
|
137
137
|
renderState,
|
|
138
138
|
renderStateForExport
|
|
139
|
-
} from "./chunk-
|
|
139
|
+
} from "./chunk-TF76LCZS.js";
|
|
140
140
|
import {
|
|
141
141
|
collapseStateGroups
|
|
142
142
|
} from "./chunk-SQ7IY53Q.js";
|
|
@@ -145,7 +145,7 @@ import {
|
|
|
145
145
|
} from "./chunk-NVOU7N6C.js";
|
|
146
146
|
import {
|
|
147
147
|
renderWireframe
|
|
148
|
-
} from "./chunk-
|
|
148
|
+
} from "./chunk-JQ575OAK.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-
|
|
157
|
+
} from "./chunk-AYM472K3.js";
|
|
158
158
|
import {
|
|
159
159
|
layoutC4Components,
|
|
160
160
|
layoutC4Containers,
|
|
@@ -165,11 +165,11 @@ import {
|
|
|
165
165
|
import {
|
|
166
166
|
renderFlowchart,
|
|
167
167
|
renderFlowchartForExport
|
|
168
|
-
} from "./chunk-
|
|
169
|
-
import "./chunk-
|
|
168
|
+
} from "./chunk-OBYZU23V.js";
|
|
169
|
+
import "./chunk-7IATMZSA.js";
|
|
170
170
|
import {
|
|
171
171
|
layoutGraph
|
|
172
|
-
} from "./chunk-
|
|
172
|
+
} from "./chunk-N6MZSBOL.js";
|
|
173
173
|
import {
|
|
174
174
|
computeInfra
|
|
175
175
|
} from "./chunk-ICZ7M6IZ.js";
|
|
@@ -181,7 +181,7 @@ import {
|
|
|
181
181
|
} from "./chunk-S6QDCFEU.js";
|
|
182
182
|
import {
|
|
183
183
|
renderSwimlaneForExport
|
|
184
|
-
} from "./chunk-
|
|
184
|
+
} from "./chunk-CAPR5DET.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-
|
|
192
|
+
} from "./chunk-76IBFEYW.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-
|
|
200
|
+
} from "./chunk-IHUOYDLN.js";
|
|
201
201
|
import {
|
|
202
202
|
layoutMindmap
|
|
203
203
|
} from "./chunk-QMFIZQTB.js";
|
|
204
204
|
import {
|
|
205
205
|
renderClassDiagram,
|
|
206
206
|
renderClassDiagramForExport
|
|
207
|
-
} from "./chunk-
|
|
207
|
+
} from "./chunk-C576CU77.js";
|
|
208
208
|
import {
|
|
209
209
|
layoutClassDiagram
|
|
210
210
|
} from "./chunk-LM3HY3VG.js";
|
|
211
211
|
import {
|
|
212
212
|
renderERDiagram,
|
|
213
213
|
renderERDiagramForExport
|
|
214
|
-
} from "./chunk-
|
|
214
|
+
} from "./chunk-QI4Q5ZZH.js";
|
|
215
215
|
import {
|
|
216
216
|
layoutERDiagram
|
|
217
217
|
} from "./chunk-5VMUVJO4.js";
|
|
@@ -228,16 +228,16 @@ import {
|
|
|
228
228
|
collapseSketch,
|
|
229
229
|
layoutSketch,
|
|
230
230
|
sketchSlotToPx
|
|
231
|
-
} from "./chunk-
|
|
231
|
+
} from "./chunk-BZQCAZZZ.js";
|
|
232
232
|
import {
|
|
233
233
|
renderSketch,
|
|
234
234
|
renderSketchForExport,
|
|
235
235
|
sketchEdgeGeometry
|
|
236
|
-
} from "./chunk-
|
|
236
|
+
} from "./chunk-U7AO6FRL.js";
|
|
237
237
|
import {
|
|
238
238
|
renderBoxesAndLines,
|
|
239
239
|
renderBoxesAndLinesForExport
|
|
240
|
-
} from "./chunk-
|
|
240
|
+
} from "./chunk-7EZ5AKBK.js";
|
|
241
241
|
import "./chunk-Q74GP3GK.js";
|
|
242
242
|
import {
|
|
243
243
|
layoutBoxesAndLines
|
|
@@ -251,7 +251,7 @@ import "./chunk-5DH3KYFH.js";
|
|
|
251
251
|
import {
|
|
252
252
|
renderVersionControl,
|
|
253
253
|
renderVersionControlForExport
|
|
254
|
-
} from "./chunk-
|
|
254
|
+
} from "./chunk-IFC3JXCT.js";
|
|
255
255
|
import {
|
|
256
256
|
collapseOrgTree,
|
|
257
257
|
focusOrgTree
|
|
@@ -259,7 +259,7 @@ import {
|
|
|
259
259
|
import {
|
|
260
260
|
renderOrg,
|
|
261
261
|
renderOrgForExport
|
|
262
|
-
} from "./chunk-
|
|
262
|
+
} from "./chunk-OUJG73YJ.js";
|
|
263
263
|
import "./chunk-VV6HZQ5K.js";
|
|
264
264
|
import {
|
|
265
265
|
layoutOrg
|
|
@@ -274,20 +274,20 @@ import "./chunk-BS7SV7C3.js";
|
|
|
274
274
|
import {
|
|
275
275
|
renderSitemap,
|
|
276
276
|
renderSitemapForExport
|
|
277
|
-
} from "./chunk-
|
|
277
|
+
} from "./chunk-7G4XMHDB.js";
|
|
278
278
|
import {
|
|
279
279
|
computeCardArchive,
|
|
280
280
|
computeCardMove,
|
|
281
281
|
isArchiveColumn,
|
|
282
282
|
renderKanban,
|
|
283
283
|
renderKanbanForExport
|
|
284
|
-
} from "./chunk-
|
|
284
|
+
} from "./chunk-GEURKGZS.js";
|
|
285
285
|
import {
|
|
286
286
|
clearEventLineMuted,
|
|
287
287
|
focusEventLine,
|
|
288
288
|
renderEventLine,
|
|
289
289
|
renderEventLineForExport
|
|
290
|
-
} from "./chunk-
|
|
290
|
+
} from "./chunk-3LJNQ6LR.js";
|
|
291
291
|
import "./chunk-NCT22MOD.js";
|
|
292
292
|
import "./chunk-5GM6BZO7.js";
|
|
293
293
|
import {
|
|
@@ -314,28 +314,28 @@ import {
|
|
|
314
314
|
renderSlopeChart,
|
|
315
315
|
renderVenn,
|
|
316
316
|
renderWordCloud
|
|
317
|
-
} from "./chunk-
|
|
318
|
-
import "./chunk-
|
|
317
|
+
} from "./chunk-4CRLM3IT.js";
|
|
318
|
+
import "./chunk-PAW4RMH3.js";
|
|
319
319
|
import "./chunk-EOYPX6SF.js";
|
|
320
320
|
import {
|
|
321
321
|
renderLegendSvg,
|
|
322
322
|
renderLegendSvgFromConfig
|
|
323
|
-
} from "./chunk-
|
|
323
|
+
} from "./chunk-JL7BDLC6.js";
|
|
324
324
|
import "./chunk-L65WI4HO.js";
|
|
325
325
|
import {
|
|
326
326
|
formatDateLabel,
|
|
327
327
|
renderTimeline
|
|
328
|
-
} from "./chunk-
|
|
328
|
+
} from "./chunk-YVDBBWEP.js";
|
|
329
329
|
import {
|
|
330
330
|
computeTimeTicks
|
|
331
331
|
} from "./chunk-YRYKTYMQ.js";
|
|
332
332
|
import {
|
|
333
333
|
ScaleContext
|
|
334
334
|
} from "./chunk-24YPR5EH.js";
|
|
335
|
-
import "./chunk-
|
|
336
|
-
import "./chunk-
|
|
335
|
+
import "./chunk-UBW53CNS.js";
|
|
336
|
+
import "./chunk-MG3DE3VO.js";
|
|
337
337
|
import "./chunk-RU2HHHYA.js";
|
|
338
|
-
import "./chunk-
|
|
338
|
+
import "./chunk-DEW62ON3.js";
|
|
339
339
|
import {
|
|
340
340
|
renderLegendD3
|
|
341
341
|
} from "./chunk-QT5UMFPE.js";
|
|
@@ -370,7 +370,7 @@ import {
|
|
|
370
370
|
parseDgmo,
|
|
371
371
|
parseDgmoChartType,
|
|
372
372
|
parseVisualization
|
|
373
|
-
} from "./chunk-
|
|
373
|
+
} from "./chunk-FTTB64OJ.js";
|
|
374
374
|
import {
|
|
375
375
|
normalizePlace,
|
|
376
376
|
parseClock,
|
|
@@ -460,8 +460,8 @@ import {
|
|
|
460
460
|
SKETCH_SHAPE_KINDS,
|
|
461
461
|
isSketchShapeKind,
|
|
462
462
|
parseSketch
|
|
463
|
-
} from "./chunk-
|
|
464
|
-
import "./chunk-
|
|
463
|
+
} from "./chunk-F4X5NVKY.js";
|
|
464
|
+
import "./chunk-EGY3TS62.js";
|
|
465
465
|
import {
|
|
466
466
|
parseSwimlane
|
|
467
467
|
} from "./chunk-W7UBPARG.js";
|
|
@@ -504,7 +504,7 @@ import {
|
|
|
504
504
|
INFRA_BEHAVIOR_KEYS,
|
|
505
505
|
extractSymbols as extractSymbols4,
|
|
506
506
|
parseInfra
|
|
507
|
-
} from "./chunk-
|
|
507
|
+
} from "./chunk-46KVXDUJ.js";
|
|
508
508
|
import {
|
|
509
509
|
parseGantt
|
|
510
510
|
} from "./chunk-TPN7RJOM.js";
|
|
@@ -524,7 +524,7 @@ import {
|
|
|
524
524
|
extractSymbols,
|
|
525
525
|
looksLikeFlowchart,
|
|
526
526
|
parseFlowchart
|
|
527
|
-
} from "./chunk-
|
|
527
|
+
} from "./chunk-NWNSXHA5.js";
|
|
528
528
|
import "./chunk-7TF3QOOD.js";
|
|
529
529
|
import {
|
|
530
530
|
looksLikeState,
|
|
@@ -535,7 +535,7 @@ import {
|
|
|
535
535
|
extractSymbols as extractSymbols2,
|
|
536
536
|
looksLikeClassDiagram,
|
|
537
537
|
parseClassDiagram
|
|
538
|
-
} from "./chunk-
|
|
538
|
+
} from "./chunk-LTTZX6RD.js";
|
|
539
539
|
import {
|
|
540
540
|
extractSymbols as extractSymbols3,
|
|
541
541
|
looksLikeERDiagram,
|
|
@@ -682,6 +682,165 @@ function collapseBoxesAndLines(parsed, collapsedGroups) {
|
|
|
682
682
|
};
|
|
683
683
|
}
|
|
684
684
|
|
|
685
|
+
// src/sketch/emit.ts
|
|
686
|
+
var LIFTED_KEYS = /* @__PURE__ */ new Set(["shape", "at", "as"]);
|
|
687
|
+
function atText(at) {
|
|
688
|
+
return at ? `at: ${String(at.c)} ${String(at.r)}` : null;
|
|
689
|
+
}
|
|
690
|
+
function safeValue(value) {
|
|
691
|
+
return value.includes(",") ? value.replace(/,/g, " \u2014") : value;
|
|
692
|
+
}
|
|
693
|
+
function tailFor(thing, at, extra = []) {
|
|
694
|
+
const alias = thing.alias !== void 0 ? ` as ${thing.alias}` : "";
|
|
695
|
+
const parts = [];
|
|
696
|
+
const atPart = atText(at);
|
|
697
|
+
if (atPart) parts.push(atPart);
|
|
698
|
+
for (const [k, v] of Object.entries(thing.metadata)) {
|
|
699
|
+
if (LIFTED_KEYS.has(k)) continue;
|
|
700
|
+
parts.push(`${k}: ${safeValue(v)}`);
|
|
701
|
+
}
|
|
702
|
+
parts.push(...extra);
|
|
703
|
+
return `${alias}${parts.length > 0 ? ` ${parts.join(", ")}` : ""}`;
|
|
704
|
+
}
|
|
705
|
+
function shapeLine(node, indent) {
|
|
706
|
+
const extra = [];
|
|
707
|
+
if (node.shape !== "rectangle") extra.push(`shape: ${node.shape}`);
|
|
708
|
+
const out = [`${indent}${node.label}${tailFor(node, node.at, extra)}`];
|
|
709
|
+
if (node.description !== void 0 && node.description !== "") {
|
|
710
|
+
for (const line of node.description.split("\n")) {
|
|
711
|
+
out.push(`${indent} > ${line}`);
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
return out;
|
|
715
|
+
}
|
|
716
|
+
function boxLine(box, indent) {
|
|
717
|
+
const extra = box.collapsed ? ["collapsed"] : [];
|
|
718
|
+
return `${indent}[${box.label}]${tailFor(box, box.at, extra)}`;
|
|
719
|
+
}
|
|
720
|
+
function edgeText(edge, target) {
|
|
721
|
+
const d = edge.dashed;
|
|
722
|
+
const label = edge.label ?? "";
|
|
723
|
+
if (label === "") {
|
|
724
|
+
if (edge.heads === "none") return `${d ? "~~" : "--"} ${target}`;
|
|
725
|
+
if (edge.heads === "both") return `${d ? "<~>" : "<->"} ${target}`;
|
|
726
|
+
return `${d ? "~>" : "->"} ${target}`;
|
|
727
|
+
}
|
|
728
|
+
const l = safeValue(label);
|
|
729
|
+
if (edge.heads === "none")
|
|
730
|
+
return `${d ? "~" : "-"}${l}${d ? "~" : "-"} ${target}`;
|
|
731
|
+
if (edge.heads === "both")
|
|
732
|
+
return `${d ? "<~" : "<-"}${l}${d ? "~>" : "->"} ${target}`;
|
|
733
|
+
return `${d ? "~" : "-"}${l}${d ? "~>" : "->"} ${target}`;
|
|
734
|
+
}
|
|
735
|
+
function emitSketch(parsed) {
|
|
736
|
+
const lines = [];
|
|
737
|
+
lines.push(parsed.title ? `sketch ${parsed.title}` : "sketch");
|
|
738
|
+
const o = parsed.options;
|
|
739
|
+
if (o.noLegend) lines.push("no-legend");
|
|
740
|
+
if (o.legendInline === true) lines.push("legend-inline");
|
|
741
|
+
if (o.fillMode === "solid") lines.push("fill-solid");
|
|
742
|
+
if (o.fillMode === "outline") lines.push("fill-outline");
|
|
743
|
+
if (o.noDescriptions) lines.push("no-descriptions");
|
|
744
|
+
for (const group of parsed.tagGroups) {
|
|
745
|
+
lines.push("");
|
|
746
|
+
lines.push(
|
|
747
|
+
group.alias !== void 0 ? `tag ${group.name} as ${group.alias}` : `tag ${group.name}`
|
|
748
|
+
);
|
|
749
|
+
for (const entry of group.entries) {
|
|
750
|
+
const isDefault = group.defaultValue !== void 0 && entry.value === group.defaultValue;
|
|
751
|
+
lines.push(` ${entry.value}${isDefault ? " default" : ""}`);
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
const refOf = (id) => {
|
|
755
|
+
const node = parsed.nodes.find((n) => n.id === id);
|
|
756
|
+
if (node) return node.alias ?? node.label;
|
|
757
|
+
const box = parsed.boxes.find((b) => b.id === id);
|
|
758
|
+
if (box) return box.alias ?? `[${box.label}]`;
|
|
759
|
+
return id;
|
|
760
|
+
};
|
|
761
|
+
const edgesBySource = /* @__PURE__ */ new Map();
|
|
762
|
+
for (const edge of parsed.edges) {
|
|
763
|
+
const list = edgesBySource.get(edge.sourceId);
|
|
764
|
+
if (list) list.push(edge);
|
|
765
|
+
else edgesBySource.set(edge.sourceId, [edge]);
|
|
766
|
+
}
|
|
767
|
+
const emitEdgesFor = (id, indent) => {
|
|
768
|
+
for (const edge of edgesBySource.get(id) ?? []) {
|
|
769
|
+
lines.push(`${indent}${edgeText(edge, refOf(edge.targetId))}`);
|
|
770
|
+
}
|
|
771
|
+
};
|
|
772
|
+
const nodesByBox = /* @__PURE__ */ new Map();
|
|
773
|
+
const rootNodes = [];
|
|
774
|
+
for (const node of parsed.nodes) {
|
|
775
|
+
if (node.boxLabel === void 0) {
|
|
776
|
+
rootNodes.push(node);
|
|
777
|
+
continue;
|
|
778
|
+
}
|
|
779
|
+
const list = nodesByBox.get(node.boxLabel);
|
|
780
|
+
if (list) list.push(node);
|
|
781
|
+
else nodesByBox.set(node.boxLabel, [node]);
|
|
782
|
+
}
|
|
783
|
+
const emitBox = (box, depth) => {
|
|
784
|
+
const indent = " ".repeat(depth);
|
|
785
|
+
lines.push("");
|
|
786
|
+
lines.push(boxLine(box, indent));
|
|
787
|
+
emitEdgesFor(box.id, `${indent} `);
|
|
788
|
+
for (const node of nodesByBox.get(box.label) ?? []) {
|
|
789
|
+
lines.push(...shapeLine(node, `${indent} `));
|
|
790
|
+
emitEdgesFor(node.id, `${indent} `);
|
|
791
|
+
}
|
|
792
|
+
for (const childId of box.childBoxes) {
|
|
793
|
+
const child = parsed.boxes.find((b) => b.id === childId);
|
|
794
|
+
if (child) emitBox(child, depth + 1);
|
|
795
|
+
}
|
|
796
|
+
};
|
|
797
|
+
for (const node of rootNodes) {
|
|
798
|
+
lines.push("");
|
|
799
|
+
lines.push(...shapeLine(node, ""));
|
|
800
|
+
emitEdgesFor(node.id, " ");
|
|
801
|
+
}
|
|
802
|
+
for (const box of parsed.boxes) {
|
|
803
|
+
if (box.parentBoxId !== null) continue;
|
|
804
|
+
emitBox(box, 0);
|
|
805
|
+
}
|
|
806
|
+
return `${lines.join("\n")}
|
|
807
|
+
`;
|
|
808
|
+
}
|
|
809
|
+
function canonicalSketch(parsed) {
|
|
810
|
+
const nameOf = (id) => {
|
|
811
|
+
const node = parsed.nodes.find((n) => n.id === id);
|
|
812
|
+
if (node) return `n:${node.label}`;
|
|
813
|
+
const box = parsed.boxes.find((b) => b.id === id);
|
|
814
|
+
if (box) return `b:${box.label}`;
|
|
815
|
+
return `?:${id}`;
|
|
816
|
+
};
|
|
817
|
+
const meta = (m) => Object.entries(m).filter(([k]) => !LIFTED_KEYS.has(k)).sort(([a], [b]) => a.localeCompare(b)).map(([k, v]) => `${k}=${v}`).join(";");
|
|
818
|
+
return {
|
|
819
|
+
title: parsed.title,
|
|
820
|
+
options: JSON.stringify({
|
|
821
|
+
noLegend: parsed.options.noLegend,
|
|
822
|
+
legendInline: parsed.options.legendInline === true,
|
|
823
|
+
fillMode: parsed.options.fillMode ?? null,
|
|
824
|
+
noDescriptions: parsed.options.noDescriptions
|
|
825
|
+
}),
|
|
826
|
+
tags: parsed.tagGroups.map(
|
|
827
|
+
(g) => `${g.name}[${g.entries.map((e) => e.value).join("|")}]${g.defaultValue ?? ""}`
|
|
828
|
+
).sort().join(","),
|
|
829
|
+
nodes: parsed.nodes.map(
|
|
830
|
+
(n) => `${n.label}|${n.shape}|${n.at ? `${String(n.at.c)},${String(n.at.r)}` : "-"}|${n.boxLabel ?? "-"}|${n.description ?? ""}|${meta(n.metadata)}`
|
|
831
|
+
).sort(),
|
|
832
|
+
boxes: parsed.boxes.map(
|
|
833
|
+
(b) => `${b.label}|${b.at ? `${String(b.at.c)},${String(b.at.r)}` : "-"}|${String(b.collapsed)}|${b.parentBoxId === null ? "-" : parsed.boxes.find((x) => x.id === b.parentBoxId)?.label ?? "?"}|${meta(b.metadata)}`
|
|
834
|
+
).sort(),
|
|
835
|
+
edges: parsed.edges.map(
|
|
836
|
+
(e) => `${nameOf(e.sourceId)}->${nameOf(e.targetId)}|${e.label ?? ""}|${e.heads}|${String(e.dashed)}`
|
|
837
|
+
).sort()
|
|
838
|
+
};
|
|
839
|
+
}
|
|
840
|
+
function sameSketch(a, b) {
|
|
841
|
+
return JSON.stringify(canonicalSketch(a)) === JSON.stringify(canonicalSketch(b));
|
|
842
|
+
}
|
|
843
|
+
|
|
685
844
|
// src/boxes-and-lines/focus.ts
|
|
686
845
|
var GROUP_PREFIX = "__group_";
|
|
687
846
|
var groupKey = (label) => `${GROUP_PREFIX}${label}`;
|
|
@@ -1878,6 +2037,7 @@ export {
|
|
|
1878
2037
|
buildSimulationContext,
|
|
1879
2038
|
buildTagLaneRowList,
|
|
1880
2039
|
calculateSchedule,
|
|
2040
|
+
canonicalSketch,
|
|
1881
2041
|
catppuccinPalette,
|
|
1882
2042
|
chartTypeParsers,
|
|
1883
2043
|
chartTypes,
|
|
@@ -1908,6 +2068,7 @@ export {
|
|
|
1908
2068
|
decodeDiagramUrl,
|
|
1909
2069
|
decodeViewState,
|
|
1910
2070
|
displayName,
|
|
2071
|
+
emitSketch,
|
|
1911
2072
|
encodeDiagramUrl,
|
|
1912
2073
|
encodeViewState,
|
|
1913
2074
|
extractSymbols2 as extractClassSymbols,
|
|
@@ -2143,6 +2304,7 @@ export {
|
|
|
2143
2304
|
resolvePlace,
|
|
2144
2305
|
resolveTaskName,
|
|
2145
2306
|
rollUpContextRelationships,
|
|
2307
|
+
sameSketch,
|
|
2146
2308
|
sampleBetaPert,
|
|
2147
2309
|
searchMapLocations,
|
|
2148
2310
|
searchZones,
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
analyzePert,
|
|
3
|
-
buildProjectSubtitle
|
|
4
|
-
|
|
5
|
-
} from "./chunk-GJQQCI63.js";
|
|
3
|
+
buildProjectSubtitle
|
|
4
|
+
} from "./chunk-3SQJZMPO.js";
|
|
6
5
|
import "./chunk-3TYUXC7D.js";
|
|
7
6
|
import "./chunk-EQW6HOP4.js";
|
|
8
7
|
import "./chunk-5SI6T5A5.js";
|
|
9
8
|
import "./chunk-5WRI5ZAA.js";
|
|
10
9
|
export {
|
|
11
10
|
analyzePert,
|
|
12
|
-
buildProjectSubtitle
|
|
13
|
-
buildSummary
|
|
11
|
+
buildProjectSubtitle
|
|
14
12
|
};
|
|
15
|
-
//# sourceMappingURL=analyzer-
|
|
13
|
+
//# sourceMappingURL=analyzer-QTDQEMS5.js.map
|
package/dist/block.css
CHANGED
|
@@ -1,8 +1,19 @@
|
|
|
1
1
|
/* @diagrammo/dgmo block — standard embed chrome.
|
|
2
|
-
*
|
|
3
|
-
*
|
|
2
|
+
* Dark mode is keyed on a data-theme="dark" attribute (Starlight, Docusaurus)
|
|
3
|
+
* AND an html.dark class (Tailwind, next-themes, VitePress), so all of those
|
|
4
|
+
* work as shipped. Add your own selector if your site marks dark a third way.
|
|
5
|
+
*
|
|
6
|
+
* No selector is spelled in bracket form anywhere in these comments on
|
|
7
|
+
* purpose: the adapters that re-key the attribute rules onto another host's
|
|
8
|
+
* signal match that exact substring, and a mention inside a comment would be
|
|
9
|
+
* swallowed into a rule they then emit as garbage. */
|
|
4
10
|
|
|
5
|
-
/* === Color-mode visibility (dual-render) ===
|
|
11
|
+
/* === Color-mode visibility (dual-render) ===
|
|
12
|
+
* The dark wrapper also carries the "hidden" ATTRIBUTE, so a page that never
|
|
13
|
+
* loaded this stylesheet shows the light diagram rather than both of them.
|
|
14
|
+
* Every rule below is author-origin and therefore still overrides it.
|
|
15
|
+
* Keep the two host conventions in separate rule blocks — the adapters
|
|
16
|
+
* rewrite by literal replace and a folded rule would half-rewrite. */
|
|
6
17
|
.dgmo-dark {
|
|
7
18
|
display: none;
|
|
8
19
|
}
|
|
@@ -12,6 +23,12 @@
|
|
|
12
23
|
[data-theme="dark"] .dgmo-dark {
|
|
13
24
|
display: block;
|
|
14
25
|
}
|
|
26
|
+
html.dark .dgmo-light {
|
|
27
|
+
display: none;
|
|
28
|
+
}
|
|
29
|
+
html.dark .dgmo-dark {
|
|
30
|
+
display: block;
|
|
31
|
+
}
|
|
15
32
|
|
|
16
33
|
/* === Diagram sizing ===
|
|
17
34
|
* SVGs are emitted with viewBox only (no fixed width/height). Force them to
|
package/dist/block.d.ts
CHANGED
|
@@ -9,10 +9,18 @@ import './tag-groups-DrHT2tEc.js';
|
|
|
9
9
|
* consumers, and the `BLOCK_CSS` string export for embedders that inject a
|
|
10
10
|
* `<style>` tag.
|
|
11
11
|
*
|
|
12
|
-
* Dark mode keys off `[data-theme="dark"]
|
|
13
|
-
*
|
|
12
|
+
* Dark mode keys off BOTH `[data-theme="dark"]` (Starlight, Docusaurus) and
|
|
13
|
+
* `html.dark` (Tailwind, next-themes, VitePress), because those two cover
|
|
14
|
+
* essentially every host and picking one silently left the other half of the
|
|
15
|
+
* ecosystem with a diagram that never toggled. A host on a third signal
|
|
16
|
+
* (`body.theme-dark`) still rewrites the selector at its build step —
|
|
14
17
|
* fumadocs-dgmo/nextra-dgmo's build-css.mjs is the reference adapter.
|
|
15
18
|
*
|
|
19
|
+
* 🔴 Keep the two conventions in SEPARATE rule blocks. `auto/styles.ts`
|
|
20
|
+
* re-scopes the `[data-theme="dark"]` rules onto `.dgmo-theme-dark` with a
|
|
21
|
+
* regex that swallows everything up to the `{`, so folding them into one
|
|
22
|
+
* multi-selector rule would drag `html.dark` into the re-scoped copy too.
|
|
23
|
+
*
|
|
16
24
|
* The `.dgmo-tok-*` role colors mirror LIGHT_ROLE_STYLES (light) and
|
|
17
25
|
* NORD_ROLE_STYLES (dark) from editor/highlight-api.ts. A parity test
|
|
18
26
|
* (tests/block.test.ts) guards against drift — update both when either
|