@diagrammo/dgmo 0.93.0 → 0.95.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 +98 -21
- package/dist/advanced.js +79 -61
- package/dist/block.d.ts +6 -0
- package/dist/block.js +23 -20
- package/dist/chart-meta.js +9 -9
- package/dist/{charts-d3-ERYYVGP6.js → charts-d3-SZV2SFTM.js} +2 -2
- package/dist/{chunk-J6AEKIRQ.js → chunk-2I4UQG7W.js} +1 -1
- package/dist/{chunk-LDDDKWL6.js → chunk-2J2CWWWK.js} +1 -1
- package/dist/{chunk-QDRCWVV3.js → chunk-4EX4OKGZ.js} +71 -8
- package/dist/{chunk-A5WIAMCT.js → chunk-4UVCTLRH.js} +1 -1
- package/dist/{chunk-KCMGIYPO.js → chunk-5XBYLYYI.js} +1 -1
- package/dist/{chunk-XUTR7GNT.js → chunk-62GLKE6Q.js} +68 -29
- package/dist/{chunk-D6PVMUCX.js → chunk-67N26CER.js} +4 -4
- package/dist/{chunk-IIV4SMJL.js → chunk-6EFCOES2.js} +370 -285
- package/dist/{chunk-TNV4F5WA.js → chunk-7IALGIOI.js} +2 -2
- package/dist/{chunk-MB2SQF7N.js → chunk-7WEYXYLC.js} +1 -1
- package/dist/{chunk-4RY5D5RE.js → chunk-AM42TLSZ.js} +98 -93
- package/dist/{chunk-J43OCO22.js → chunk-BCV2VJTM.js} +2 -2
- package/dist/{chunk-7OWK5K5C.js → chunk-BH2SF4TT.js} +2 -2
- package/dist/{chunk-UVX3IYXF.js → chunk-BTP2BMWN.js} +4 -4
- package/dist/{chunk-MUJVNSEW.js → chunk-C6G36F5S.js} +1 -1
- package/dist/{chunk-ZTLMEBAC.js → chunk-E7F76M3U.js} +208 -26
- package/dist/{chunk-AUS7V54P.js → chunk-ERT7XDQW.js} +1 -1
- package/dist/{chunk-WK5QEYFA.js → chunk-EXHXTMVR.js} +3 -3
- package/dist/{chunk-YXXIRM4C.js → chunk-FWVE373X.js} +2 -2
- package/dist/{chunk-EQWC76GQ.js → chunk-GWQRTA5W.js} +2 -2
- package/dist/{chunk-GJXMG4S3.js → chunk-HHVIE45A.js} +1 -1
- package/dist/{chunk-4FT5KQ7H.js → chunk-IGJEKO2P.js} +1 -1
- package/dist/{chunk-KRU2LCIP.js → chunk-IHN6WDEY.js} +1 -1
- package/dist/{chunk-QT3KDDXK.js → chunk-IN7XI6NO.js} +0 -7
- package/dist/{chunk-NMK7KJZZ.js → chunk-IQN2NGEU.js} +4 -4
- package/dist/{chunk-M6ZQAFPD.js → chunk-IY62DXT2.js} +1 -1
- package/dist/{chunk-4WQX55VX.js → chunk-IZHGT5HD.js} +31 -5
- package/dist/{chunk-CYDM2XII.js → chunk-JJ7RGTAU.js} +56 -7
- package/dist/{chunk-NJJCTEBM.js → chunk-KLBTJEIK.js} +1 -1
- package/dist/{chunk-KHL652SX.js → chunk-KSZB7TIY.js} +1 -1
- package/dist/{chunk-KPSSNGAE.js → chunk-L5S32VZJ.js} +4 -4
- package/dist/{chunk-472EOHVW.js → chunk-LAXMUSGW.js} +31 -5
- package/dist/{chunk-M4NV5PPU.js → chunk-LJGE43SG.js} +1 -1
- package/dist/{chunk-VSOZZYLK.js → chunk-NERQSSYD.js} +20 -9
- package/dist/{chunk-UG7AQQNR.js → chunk-OSSTOSXU.js} +2 -2
- package/dist/{chunk-YDZIVDVR.js → chunk-P5XA627W.js} +7 -7
- package/dist/{chunk-DRQSB72S.js → chunk-PGBTUGDB.js} +2 -2
- package/dist/{chunk-65GPEV5V.js → chunk-QKPOIJBT.js} +2 -2
- package/dist/{chunk-QJOVZ4TC.js → chunk-QPQWY5RU.js} +1 -1
- package/dist/{chunk-P7TRFL4P.js → chunk-R46N5KR4.js} +2 -0
- package/dist/{chunk-LNVB75QU.js → chunk-RBVFNUAL.js} +1 -1
- package/dist/{chunk-DAHQL57W.js → chunk-RITTLIDJ.js} +1 -1
- package/dist/{chunk-2TFXRBCD.js → chunk-RQTDUZUH.js} +3 -3
- package/dist/{chunk-Q7Y6JQ3R.js → chunk-S4SJ4LLY.js} +1 -1
- package/dist/{chunk-LUDUDBO6.js → chunk-S5Y3OO3V.js} +2 -2
- package/dist/{chunk-3GCASUWA.js → chunk-TASRGDYP.js} +1 -1
- package/dist/{chunk-5HAYT43L.js → chunk-U6VS3T2M.js} +19 -3
- package/dist/{chunk-42UJ23H3.js → chunk-UIEKW4SG.js} +1 -0
- package/dist/{chunk-IESUM4N5.js → chunk-USE6HIOZ.js} +95 -62
- package/dist/{chunk-FIYW7JW4.js → chunk-USZLHYEQ.js} +1 -1
- package/dist/{chunk-U7U64UUN.js → chunk-V5D6GDNK.js} +4 -4
- package/dist/{chunk-ADVGV3P7.js → chunk-VB4VMB2I.js} +7 -5
- package/dist/{chunk-CQYFZOUC.js → chunk-VBMRZCMQ.js} +1 -1
- package/dist/{chunk-USAGHYRD.js → chunk-VF7IKIRS.js} +2 -2
- package/dist/{chunk-EJS3K44P.js → chunk-VGAMBOOC.js} +5 -3
- package/dist/{chunk-P5FUWXPW.js → chunk-VTESGA5F.js} +7 -5
- package/dist/chunk-WTTIODDV.js +9 -0
- package/dist/{chunk-5CBX66KB.js → chunk-XJQ6Z3FO.js} +2 -2
- package/dist/{chunk-KPGPK4SK.js → chunk-XOMIYMQ3.js} +6 -6
- package/dist/{chunk-KCHQVED5.js → chunk-YQMIKX54.js} +43 -7
- package/dist/completion-registry.js +3 -0
- package/dist/copy-image.d.ts +34 -0
- package/dist/copy-image.js +96 -0
- package/dist/countdown.js +1 -1
- package/dist/{dgmo-router-CZN36TR3.js → dgmo-router-6YLKM6WU.js} +13 -13
- package/dist/{dimensions-7HHKO5BS.js → dimensions-DS6FWLRY.js} +2 -2
- package/dist/{flowchart-parser-4MZPWYK6.js → flowchart-parser-J3VWIFWB.js} +5 -5
- package/dist/{flowchart-renderer-5XDN575E.js → flowchart-renderer-FECH5KK5.js} +14 -12
- package/dist/index.js +19 -19
- package/dist/layout-5SZ5A64I.js +24 -0
- package/dist/{layout-5GHV7HNM.js → layout-EWXHEXNS.js} +11 -10
- package/dist/{layout-QXGPY7KA.js → layout-TIBRMWHL.js} +7 -6
- package/dist/layout-VDCJOZSH.js +11 -0
- package/dist/layout-YBMT74MG.js +24 -0
- package/dist/{layout-search-EMTCDC3C.js → layout-search-AWPJWBKT.js} +9 -8
- package/dist/{parser-R3LPEQIT.js → parser-AR2GON37.js} +2 -2
- package/dist/{parser-YX72VLDZ.js → parser-BTSTKY5G.js} +5 -5
- package/dist/{parser-OGF2CDA6.js → parser-MA7L3XND.js} +5 -5
- package/dist/{parser-VKYUAT4Y.js → parser-ZRIZFDZY.js} +5 -5
- package/dist/{redraw-T324XAF3.js → redraw-AHW7EUUF.js} +2 -2
- package/dist/{redraw-MSXU4ZD2.js → redraw-STZ4WJAI.js} +3 -3
- package/dist/{renderer-HYGTMBHT.js → renderer-2LYX6NHN.js} +3 -3
- package/dist/{renderer-XJMVG2WJ.js → renderer-2QPHDBZY.js} +5 -5
- package/dist/{renderer-GPAVVUET.js → renderer-3NLDX7DQ.js} +3 -3
- package/dist/{renderer-IHCWBFPI.js → renderer-4VGO27EE.js} +14 -13
- package/dist/{renderer-JJ4QW3SK.js → renderer-6BDK47V6.js} +1 -1
- package/dist/{renderer-FL7EOSBU.js → renderer-7OGGV327.js} +3 -3
- package/dist/{renderer-5ITLW7MX.js → renderer-ACQQ2JXA.js} +6 -4
- package/dist/{renderer-37PLQHVB.js → renderer-BXD5KVSR.js} +2 -2
- package/dist/{renderer-TSCSZ6CL.js → renderer-HX6ICPDX.js} +2 -2
- package/dist/{renderer-BO73LSVT.js → renderer-IGSHD3OT.js} +4 -4
- package/dist/{renderer-DD6T3C4J.js → renderer-ISQJ2ELA.js} +2 -2
- package/dist/{renderer-CNRQFIEI.js → renderer-IVHD7ENY.js} +4 -4
- package/dist/{renderer-POBGKIUT.js → renderer-IXBOT6DU.js} +3 -3
- package/dist/{renderer-GFALLIYT.js → renderer-JYHA6R2D.js} +3 -3
- package/dist/{renderer-GOXAP2IE.js → renderer-KJ3V5BYP.js} +2 -2
- package/dist/{renderer-GFGFHYWY.js → renderer-MWZC7TMD.js} +2 -2
- package/dist/{renderer-3F47TPZ2.js → renderer-O6RP52CQ.js} +2 -2
- package/dist/{renderer-PBKTAWQV.js → renderer-P3WR7TKD.js} +14 -13
- package/dist/{renderer-VDBNC7A6.js → renderer-QTPWRRJ7.js} +2 -2
- package/dist/{renderer-J3QWK6IM.js → renderer-RUSQJFFC.js} +3 -3
- package/dist/{renderer-7Y3LR4R2.js → renderer-TINHO2IO.js} +2 -2
- package/dist/{renderer-J6H4Q3RM.js → renderer-UGW4N2W5.js} +4 -3
- package/dist/{renderer-EVKWGUGT.js → renderer-UTEEJDGB.js} +4 -3
- package/dist/{renderer-ISDKO3DI.js → renderer-WPN2SXGT.js} +2 -2
- package/dist/{renderer-6GJWADLO.js → renderer-XCLARXCK.js} +2 -2
- package/dist/{renderer-RDI2RYUP.js → renderer-XDX6S7OV.js} +3 -3
- package/dist/{renderer-VI34SD5V.js → renderer-Y47EM337.js} +6 -6
- package/dist/{renderer-HJ54YXT3.js → renderer-ZV6KCLCL.js} +14 -14
- package/dist/{state-parser-NPYTMRXP.js → state-parser-PMNHLHLE.js} +5 -5
- package/dist/{state-renderer-44K2KDX7.js → state-renderer-JQ5DS66J.js} +14 -13
- package/docs/language-reference.md +2 -2
- package/package.json +5 -1
- package/dist/layout-33FHGDEV.js +0 -23
- package/dist/layout-FTOGDNUL.js +0 -23
- package/dist/layout-J3AGFZZ7.js +0 -10
package/dist/advanced.js
CHANGED
|
@@ -4,6 +4,8 @@ import {
|
|
|
4
4
|
} from "./chunk-V2NQV7VL.js";
|
|
5
5
|
import {
|
|
6
6
|
IMAGE_NOT_UPLOADED,
|
|
7
|
+
WHITEBOARD_CONTAINER_FONT,
|
|
8
|
+
WHITEBOARD_CONTAINER_WEIGHT,
|
|
7
9
|
WHITEBOARD_LABEL_MIN_FONT,
|
|
8
10
|
WHITEBOARD_NOTE_FONT,
|
|
9
11
|
clipWhiteboardConnector,
|
|
@@ -17,15 +19,20 @@ import {
|
|
|
17
19
|
whiteboardBounds,
|
|
18
20
|
whiteboardConnectorAttachments,
|
|
19
21
|
whiteboardConnectorPaint,
|
|
22
|
+
whiteboardDrawBand,
|
|
23
|
+
whiteboardDrawOrder,
|
|
24
|
+
whiteboardLabelCentreY,
|
|
20
25
|
whiteboardLabelHeight,
|
|
26
|
+
whiteboardLabelPosition,
|
|
21
27
|
whiteboardLabelShift,
|
|
22
28
|
whiteboardLabelWidth,
|
|
23
29
|
whiteboardNoteFold,
|
|
24
30
|
whiteboardSegmentMidpoint,
|
|
25
31
|
whiteboardShapeAt,
|
|
26
32
|
whiteboardShapeContains,
|
|
33
|
+
whiteboardShapeLabel,
|
|
27
34
|
wrapWhiteboardLabel
|
|
28
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-E7F76M3U.js";
|
|
29
36
|
import {
|
|
30
37
|
layoutWireframe
|
|
31
38
|
} from "./chunk-GLCMUTO5.js";
|
|
@@ -35,7 +42,7 @@ import {
|
|
|
35
42
|
import {
|
|
36
43
|
renderSitemap,
|
|
37
44
|
renderSitemapForExport
|
|
38
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-JJ7RGTAU.js";
|
|
39
46
|
import {
|
|
40
47
|
SKETCH_AUTO_LAYOUT_DEFAULTS,
|
|
41
48
|
SKETCH_FOOT_H,
|
|
@@ -62,10 +69,10 @@ import {
|
|
|
62
69
|
sketchEdgeGeometry,
|
|
63
70
|
sketchLabelSpot,
|
|
64
71
|
sketchNeutralFill
|
|
65
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-VBMRZCMQ.js";
|
|
66
73
|
import {
|
|
67
74
|
layoutSwimlane
|
|
68
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-ERT7XDQW.js";
|
|
69
76
|
import {
|
|
70
77
|
renderSwimlaneForExport
|
|
71
78
|
} from "./chunk-FVTYJUXR.js";
|
|
@@ -76,7 +83,7 @@ import {
|
|
|
76
83
|
renderQuadrantFocusForExport,
|
|
77
84
|
renderTechRadar,
|
|
78
85
|
renderTechRadarForExport
|
|
79
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-RBVFNUAL.js";
|
|
80
87
|
import {
|
|
81
88
|
layoutTreemapRadial,
|
|
82
89
|
renderTreemapRadial,
|
|
@@ -86,13 +93,13 @@ import {
|
|
|
86
93
|
layoutTreemap,
|
|
87
94
|
renderTreemap,
|
|
88
95
|
renderTreemapForExport
|
|
89
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-IGJEKO2P.js";
|
|
90
97
|
import {
|
|
91
98
|
measurePertAnalysisBlock,
|
|
92
99
|
renderPert,
|
|
93
100
|
renderPertAnalysisBlock,
|
|
94
101
|
renderPertForExport
|
|
95
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-KSZB7TIY.js";
|
|
96
103
|
import {
|
|
97
104
|
layoutPert,
|
|
98
105
|
relayoutPert
|
|
@@ -100,7 +107,7 @@ import {
|
|
|
100
107
|
import {
|
|
101
108
|
renderPyramid,
|
|
102
109
|
renderPyramidForExport
|
|
103
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-BH2SF4TT.js";
|
|
104
111
|
import {
|
|
105
112
|
renderRaci,
|
|
106
113
|
renderRaciForExport
|
|
@@ -108,7 +115,7 @@ import {
|
|
|
108
115
|
import {
|
|
109
116
|
renderRing,
|
|
110
117
|
renderRingForExport
|
|
111
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-GWQRTA5W.js";
|
|
112
119
|
import {
|
|
113
120
|
applyCollapseProjection,
|
|
114
121
|
applyGroupOrdering,
|
|
@@ -118,7 +125,7 @@ import {
|
|
|
118
125
|
computeActivations,
|
|
119
126
|
groupMessagesBySection,
|
|
120
127
|
renderSequenceDiagram
|
|
121
|
-
} from "./chunk-
|
|
128
|
+
} from "./chunk-62GLKE6Q.js";
|
|
122
129
|
import {
|
|
123
130
|
layoutSitemap
|
|
124
131
|
} from "./chunk-4XYZJTFO.js";
|
|
@@ -128,14 +135,14 @@ import {
|
|
|
128
135
|
import {
|
|
129
136
|
mapContentAspect,
|
|
130
137
|
mapExportDimensions
|
|
131
|
-
} from "./chunk-
|
|
138
|
+
} from "./chunk-2I4UQG7W.js";
|
|
132
139
|
import {
|
|
133
140
|
collapseMindmapTree
|
|
134
141
|
} from "./chunk-UZ7EZW3B.js";
|
|
135
142
|
import {
|
|
136
143
|
renderMindmap,
|
|
137
144
|
renderMindmapForExport
|
|
138
|
-
} from "./chunk-
|
|
145
|
+
} from "./chunk-RQTDUZUH.js";
|
|
139
146
|
import {
|
|
140
147
|
layoutMindmap
|
|
141
148
|
} from "./chunk-BQMHJ6OW.js";
|
|
@@ -147,7 +154,7 @@ import "./chunk-BS7SV7C3.js";
|
|
|
147
154
|
import {
|
|
148
155
|
renderOrg,
|
|
149
156
|
renderOrgForExport
|
|
150
|
-
} from "./chunk-
|
|
157
|
+
} from "./chunk-PGBTUGDB.js";
|
|
151
158
|
import {
|
|
152
159
|
layoutOrg
|
|
153
160
|
} from "./chunk-A2A2I4Z4.js";
|
|
@@ -169,14 +176,14 @@ import {
|
|
|
169
176
|
renderMap,
|
|
170
177
|
renderMapForExport,
|
|
171
178
|
renderMapLayout
|
|
172
|
-
} from "./chunk-
|
|
179
|
+
} from "./chunk-HHVIE45A.js";
|
|
173
180
|
import {
|
|
174
181
|
albersSkewFallback,
|
|
175
182
|
layoutMap,
|
|
176
183
|
mapBackgroundColor,
|
|
177
184
|
mapNeutralLandColor,
|
|
178
185
|
rebuildMapProjection
|
|
179
|
-
} from "./chunk-
|
|
186
|
+
} from "./chunk-AM42TLSZ.js";
|
|
180
187
|
import {
|
|
181
188
|
decodeFeatures,
|
|
182
189
|
regionAt
|
|
@@ -184,18 +191,18 @@ import {
|
|
|
184
191
|
import {
|
|
185
192
|
renderJourneyMap,
|
|
186
193
|
renderJourneyMapForExport
|
|
187
|
-
} from "./chunk-
|
|
194
|
+
} from "./chunk-VF7IKIRS.js";
|
|
188
195
|
import {
|
|
189
196
|
computeCardArchive,
|
|
190
197
|
computeCardMove,
|
|
191
198
|
isArchiveColumn,
|
|
192
199
|
renderKanban,
|
|
193
200
|
renderKanbanForExport
|
|
194
|
-
} from "./chunk-
|
|
201
|
+
} from "./chunk-RITTLIDJ.js";
|
|
195
202
|
import {
|
|
196
203
|
renderState,
|
|
197
204
|
renderStateForExport
|
|
198
|
-
} from "./chunk-
|
|
205
|
+
} from "./chunk-XOMIYMQ3.js";
|
|
199
206
|
import {
|
|
200
207
|
collapseStateGroups
|
|
201
208
|
} from "./chunk-SQ7IY53Q.js";
|
|
@@ -205,7 +212,7 @@ import {
|
|
|
205
212
|
inferRoles,
|
|
206
213
|
parseAndLayoutInfra,
|
|
207
214
|
renderInfra
|
|
208
|
-
} from "./chunk-
|
|
215
|
+
} from "./chunk-4EX4OKGZ.js";
|
|
209
216
|
import {
|
|
210
217
|
computeInfra
|
|
211
218
|
} from "./chunk-EQJ3U5EW.js";
|
|
@@ -223,33 +230,33 @@ import {
|
|
|
223
230
|
import {
|
|
224
231
|
buildTagLaneRowList,
|
|
225
232
|
renderGantt
|
|
226
|
-
} from "./chunk-
|
|
233
|
+
} from "./chunk-IZHGT5HD.js";
|
|
227
234
|
import {
|
|
228
235
|
renderGoal,
|
|
229
236
|
renderGoalForExport
|
|
230
|
-
} from "./chunk-
|
|
237
|
+
} from "./chunk-FWVE373X.js";
|
|
231
238
|
import "./chunk-CN4RDJDV.js";
|
|
232
239
|
import {
|
|
233
240
|
renderFlowchart,
|
|
234
241
|
renderFlowchartForExport
|
|
235
|
-
} from "./chunk-
|
|
242
|
+
} from "./chunk-LAXMUSGW.js";
|
|
236
243
|
import "./chunk-26EVL454.js";
|
|
237
244
|
import {
|
|
238
245
|
layoutGraph
|
|
239
|
-
} from "./chunk-
|
|
246
|
+
} from "./chunk-EXHXTMVR.js";
|
|
240
247
|
import {
|
|
241
248
|
renderERDiagram,
|
|
242
249
|
renderERDiagramForExport
|
|
243
|
-
} from "./chunk-
|
|
250
|
+
} from "./chunk-IQN2NGEU.js";
|
|
244
251
|
import {
|
|
245
252
|
layoutERDiagram
|
|
246
|
-
} from "./chunk-
|
|
253
|
+
} from "./chunk-7IALGIOI.js";
|
|
247
254
|
import {
|
|
248
255
|
clearEventLineMuted,
|
|
249
256
|
focusEventLine,
|
|
250
257
|
renderEventLine,
|
|
251
258
|
renderEventLineForExport
|
|
252
|
-
} from "./chunk-
|
|
259
|
+
} from "./chunk-6EFCOES2.js";
|
|
253
260
|
import "./chunk-R2K5L4UA.js";
|
|
254
261
|
import {
|
|
255
262
|
layoutFamily
|
|
@@ -257,12 +264,12 @@ import {
|
|
|
257
264
|
import {
|
|
258
265
|
renderFamily,
|
|
259
266
|
renderFamilyForExport
|
|
260
|
-
} from "./chunk-
|
|
267
|
+
} from "./chunk-C6G36F5S.js";
|
|
261
268
|
import "./chunk-IVKC4GID.js";
|
|
262
269
|
import {
|
|
263
270
|
renderClassDiagram,
|
|
264
271
|
renderClassDiagramForExport
|
|
265
|
-
} from "./chunk-
|
|
272
|
+
} from "./chunk-L5S32VZJ.js";
|
|
266
273
|
import {
|
|
267
274
|
renderClock,
|
|
268
275
|
renderClockForExport
|
|
@@ -271,16 +278,16 @@ import "./chunk-T7NWBVSC.js";
|
|
|
271
278
|
import {
|
|
272
279
|
renderCountdown,
|
|
273
280
|
renderCountdownForExport
|
|
274
|
-
} from "./chunk-
|
|
281
|
+
} from "./chunk-S5Y3OO3V.js";
|
|
275
282
|
import {
|
|
276
283
|
computeCycleLayout,
|
|
277
284
|
renderCycle,
|
|
278
285
|
renderCycleForExport
|
|
279
|
-
} from "./chunk-
|
|
286
|
+
} from "./chunk-OSSTOSXU.js";
|
|
280
287
|
import {
|
|
281
288
|
renderBracket,
|
|
282
289
|
renderBracketForExport
|
|
283
|
-
} from "./chunk-
|
|
290
|
+
} from "./chunk-XJQ6Z3FO.js";
|
|
284
291
|
import {
|
|
285
292
|
renderC4ComponentsForExport,
|
|
286
293
|
renderC4Containers,
|
|
@@ -289,7 +296,7 @@ import {
|
|
|
289
296
|
renderC4ContextForExport,
|
|
290
297
|
renderC4Deployment,
|
|
291
298
|
renderC4DeploymentForExport
|
|
292
|
-
} from "./chunk-
|
|
299
|
+
} from "./chunk-IHN6WDEY.js";
|
|
293
300
|
import {
|
|
294
301
|
CYLINDER_RY,
|
|
295
302
|
QUEUE_CAP,
|
|
@@ -301,14 +308,14 @@ import {
|
|
|
301
308
|
} from "./chunk-5KKZXA44.js";
|
|
302
309
|
import {
|
|
303
310
|
layoutClassDiagram
|
|
304
|
-
} from "./chunk-
|
|
305
|
-
import "./chunk-
|
|
311
|
+
} from "./chunk-BCV2VJTM.js";
|
|
312
|
+
import "./chunk-2J2CWWWK.js";
|
|
306
313
|
import {
|
|
307
314
|
authoredCollapsedIds,
|
|
308
315
|
layoutBlock,
|
|
309
316
|
renderBlock,
|
|
310
317
|
renderBlockForExport
|
|
311
|
-
} from "./chunk-
|
|
318
|
+
} from "./chunk-QPQWY5RU.js";
|
|
312
319
|
import {
|
|
313
320
|
renderBody,
|
|
314
321
|
renderBodyForExport
|
|
@@ -316,15 +323,16 @@ import {
|
|
|
316
323
|
import {
|
|
317
324
|
renderBoxesAndLines,
|
|
318
325
|
renderBoxesAndLinesForExport
|
|
319
|
-
} from "./chunk-
|
|
326
|
+
} from "./chunk-V5D6GDNK.js";
|
|
320
327
|
import "./chunk-B5DHFFZP.js";
|
|
321
328
|
import "./chunk-XBJJP2HN.js";
|
|
322
|
-
import "./chunk-
|
|
323
|
-
import "./chunk-
|
|
329
|
+
import "./chunk-VB4VMB2I.js";
|
|
330
|
+
import "./chunk-VGAMBOOC.js";
|
|
324
331
|
import {
|
|
325
332
|
layoutBoxesAndLines
|
|
326
|
-
} from "./chunk-
|
|
327
|
-
import "./chunk-
|
|
333
|
+
} from "./chunk-VTESGA5F.js";
|
|
334
|
+
import "./chunk-WTTIODDV.js";
|
|
335
|
+
import "./chunk-IN7XI6NO.js";
|
|
328
336
|
import {
|
|
329
337
|
completeMapPlaces,
|
|
330
338
|
completeMapRegions,
|
|
@@ -341,12 +349,12 @@ import {
|
|
|
341
349
|
renderSlopeChart,
|
|
342
350
|
renderVenn,
|
|
343
351
|
renderWordCloud
|
|
344
|
-
} from "./chunk-
|
|
352
|
+
} from "./chunk-USE6HIOZ.js";
|
|
345
353
|
import {
|
|
346
354
|
renderLegendSvg,
|
|
347
355
|
renderLegendSvgFromConfig
|
|
348
|
-
} from "./chunk-
|
|
349
|
-
import "./chunk-
|
|
356
|
+
} from "./chunk-YQMIKX54.js";
|
|
357
|
+
import "./chunk-USZLHYEQ.js";
|
|
350
358
|
import {
|
|
351
359
|
CHART_TYPE_DESCRIPTIONS,
|
|
352
360
|
chartTypeParsers,
|
|
@@ -356,7 +364,7 @@ import {
|
|
|
356
364
|
knownChartTypeIds,
|
|
357
365
|
parseDgmo,
|
|
358
366
|
parseVisualization
|
|
359
|
-
} from "./chunk-
|
|
367
|
+
} from "./chunk-P5XA627W.js";
|
|
360
368
|
import {
|
|
361
369
|
getExtendedChartLegendGroups,
|
|
362
370
|
getSimpleChartLegendGroups,
|
|
@@ -389,12 +397,13 @@ import "./chunk-NWSPPGIE.js";
|
|
|
389
397
|
import {
|
|
390
398
|
isWhiteboardImageRef,
|
|
391
399
|
parseWhiteboard
|
|
392
|
-
} from "./chunk-
|
|
400
|
+
} from "./chunk-U6VS3T2M.js";
|
|
393
401
|
import {
|
|
394
402
|
WHITEBOARD_COLORS,
|
|
395
403
|
WHITEBOARD_ELEMENT_KEYWORDS,
|
|
396
404
|
WHITEBOARD_FILLS,
|
|
397
405
|
WHITEBOARD_HEADS,
|
|
406
|
+
WHITEBOARD_LABEL_POSITIONS,
|
|
398
407
|
WHITEBOARD_NOTE_COLOR,
|
|
399
408
|
WHITEBOARD_NOTE_HEIGHT,
|
|
400
409
|
WHITEBOARD_NOTE_WIDTH,
|
|
@@ -402,7 +411,7 @@ import {
|
|
|
402
411
|
WHITEBOARD_STROKE_STYLES,
|
|
403
412
|
isWhiteboardColor,
|
|
404
413
|
isWhiteboardShapeKind
|
|
405
|
-
} from "./chunk-
|
|
414
|
+
} from "./chunk-R46N5KR4.js";
|
|
406
415
|
import {
|
|
407
416
|
parseSwimlane
|
|
408
417
|
} from "./chunk-J7Q4AB23.js";
|
|
@@ -433,11 +442,11 @@ import {
|
|
|
433
442
|
import {
|
|
434
443
|
formatDateLabel,
|
|
435
444
|
renderTimeline
|
|
436
|
-
} from "./chunk-
|
|
445
|
+
} from "./chunk-TASRGDYP.js";
|
|
437
446
|
import "./chunk-6XLMTAEX.js";
|
|
438
447
|
import {
|
|
439
448
|
computeTimeTicks
|
|
440
|
-
} from "./chunk-
|
|
449
|
+
} from "./chunk-NERQSSYD.js";
|
|
441
450
|
import {
|
|
442
451
|
addDurationToDate,
|
|
443
452
|
parseTimelineDate
|
|
@@ -515,11 +524,11 @@ import {
|
|
|
515
524
|
import "./chunk-H7AXCRO7.js";
|
|
516
525
|
import {
|
|
517
526
|
parseBoxesAndLines
|
|
518
|
-
} from "./chunk-
|
|
527
|
+
} from "./chunk-4UVCTLRH.js";
|
|
519
528
|
import {
|
|
520
529
|
ScaleContext
|
|
521
530
|
} from "./chunk-24YPR5EH.js";
|
|
522
|
-
import "./chunk-
|
|
531
|
+
import "./chunk-UIEKW4SG.js";
|
|
523
532
|
import "./chunk-VLC6WNRD.js";
|
|
524
533
|
import "./chunk-XCKNFFKM.js";
|
|
525
534
|
import {
|
|
@@ -543,7 +552,7 @@ import {
|
|
|
543
552
|
} from "./chunk-6OSGENN5.js";
|
|
544
553
|
import {
|
|
545
554
|
parseDgmoChartType
|
|
546
|
-
} from "./chunk-
|
|
555
|
+
} from "./chunk-BTP2BMWN.js";
|
|
547
556
|
import {
|
|
548
557
|
allTasks,
|
|
549
558
|
parseRaci
|
|
@@ -575,12 +584,12 @@ import {
|
|
|
575
584
|
extractSymbols as extractSymbols3,
|
|
576
585
|
looksLikeFlowchart,
|
|
577
586
|
parseFlowchart
|
|
578
|
-
} from "./chunk-
|
|
587
|
+
} from "./chunk-IY62DXT2.js";
|
|
579
588
|
import "./chunk-TIVMAITN.js";
|
|
580
589
|
import {
|
|
581
590
|
looksLikeState,
|
|
582
591
|
parseState
|
|
583
|
-
} from "./chunk-
|
|
592
|
+
} from "./chunk-LJGE43SG.js";
|
|
584
593
|
import "./chunk-NXMESY4J.js";
|
|
585
594
|
import "./chunk-EQW6HOP4.js";
|
|
586
595
|
import "./chunk-MKSTL6DR.js";
|
|
@@ -592,7 +601,7 @@ import {
|
|
|
592
601
|
extractSymbols as extractSymbols2,
|
|
593
602
|
looksLikeERDiagram,
|
|
594
603
|
parseERDiagram
|
|
595
|
-
} from "./chunk-
|
|
604
|
+
} from "./chunk-S4SJ4LLY.js";
|
|
596
605
|
import {
|
|
597
606
|
RULE_COUNT,
|
|
598
607
|
inferParticipantType
|
|
@@ -602,7 +611,7 @@ import {
|
|
|
602
611
|
extractSymbols,
|
|
603
612
|
looksLikeClassDiagram,
|
|
604
613
|
parseClassDiagram
|
|
605
|
-
} from "./chunk-
|
|
614
|
+
} from "./chunk-5XBYLYYI.js";
|
|
606
615
|
import {
|
|
607
616
|
palettes
|
|
608
617
|
} from "./chunk-GXCDD6NG.js";
|
|
@@ -625,18 +634,18 @@ import {
|
|
|
625
634
|
parseInArrowLabel,
|
|
626
635
|
validateLabelCharacters
|
|
627
636
|
} from "./chunk-N7VMGZCU.js";
|
|
628
|
-
import "./chunk-
|
|
637
|
+
import "./chunk-KLBTJEIK.js";
|
|
629
638
|
import {
|
|
630
639
|
displayName,
|
|
631
640
|
getOrCreateName,
|
|
632
641
|
normalizeName
|
|
633
642
|
} from "./chunk-NOTA6TEI.js";
|
|
634
|
-
import "./chunk-
|
|
635
|
-
import "./chunk-
|
|
643
|
+
import "./chunk-67N26CER.js";
|
|
644
|
+
import "./chunk-7WEYXYLC.js";
|
|
636
645
|
import {
|
|
637
646
|
parseInlineMarkdown,
|
|
638
647
|
truncateBareUrl
|
|
639
|
-
} from "./chunk-
|
|
648
|
+
} from "./chunk-QKPOIJBT.js";
|
|
640
649
|
import {
|
|
641
650
|
DEFAULT_FONT_NAME,
|
|
642
651
|
FONT_FAMILY
|
|
@@ -956,7 +965,8 @@ function emitWhiteboardElement(el) {
|
|
|
956
965
|
`at: ${el.x} ${el.y}`,
|
|
957
966
|
`size: ${el.width} ${el.height}`,
|
|
958
967
|
...colorPart(el.color),
|
|
959
|
-
...el.fill === "tint" ? [] : [`fill: ${el.fill}`]
|
|
968
|
+
...el.fill === "tint" ? [] : [`fill: ${el.fill}`],
|
|
969
|
+
...el.labelPosition ? [`label: ${el.labelPosition}`] : []
|
|
960
970
|
]);
|
|
961
971
|
case "note":
|
|
962
972
|
return line("note", el.text, [
|
|
@@ -1512,7 +1522,7 @@ function redrawIfStale(node, svg, now2, resolvedMs, tz) {
|
|
|
1512
1522
|
}
|
|
1513
1523
|
if (!svg.hasAttribute("data-dgmo-countdown-redraw")) return;
|
|
1514
1524
|
redrawing.add(svg);
|
|
1515
|
-
void import("./redraw-
|
|
1525
|
+
void import("./redraw-STZ4WJAI.js").then((m) => {
|
|
1516
1526
|
m.redrawCountdown(svg, resolvedMs);
|
|
1517
1527
|
redrawing.delete(svg);
|
|
1518
1528
|
}).catch(() => {
|
|
@@ -2678,10 +2688,13 @@ export {
|
|
|
2678
2688
|
SKETCH_VISUALS,
|
|
2679
2689
|
ScaleContext,
|
|
2680
2690
|
WHITEBOARD_COLORS,
|
|
2691
|
+
WHITEBOARD_CONTAINER_FONT,
|
|
2692
|
+
WHITEBOARD_CONTAINER_WEIGHT,
|
|
2681
2693
|
WHITEBOARD_ELEMENT_KEYWORDS,
|
|
2682
2694
|
WHITEBOARD_FILLS,
|
|
2683
2695
|
WHITEBOARD_HEADS,
|
|
2684
2696
|
WHITEBOARD_LABEL_MIN_FONT,
|
|
2697
|
+
WHITEBOARD_LABEL_POSITIONS,
|
|
2685
2698
|
WHITEBOARD_NOTE_COLOR,
|
|
2686
2699
|
WHITEBOARD_NOTE_FONT,
|
|
2687
2700
|
WHITEBOARD_NOTE_HEIGHT,
|
|
@@ -3049,13 +3062,18 @@ export {
|
|
|
3049
3062
|
whiteboardBounds,
|
|
3050
3063
|
whiteboardConnectorAttachments,
|
|
3051
3064
|
whiteboardConnectorPaint,
|
|
3065
|
+
whiteboardDrawBand,
|
|
3066
|
+
whiteboardDrawOrder,
|
|
3067
|
+
whiteboardLabelCentreY,
|
|
3052
3068
|
whiteboardLabelHeight,
|
|
3069
|
+
whiteboardLabelPosition,
|
|
3053
3070
|
whiteboardLabelShift,
|
|
3054
3071
|
whiteboardLabelWidth,
|
|
3055
3072
|
whiteboardNoteFold,
|
|
3056
3073
|
whiteboardSegmentMidpoint,
|
|
3057
3074
|
whiteboardShapeAt,
|
|
3058
3075
|
whiteboardShapeContains,
|
|
3076
|
+
whiteboardShapeLabel,
|
|
3059
3077
|
wrapTextToWidth,
|
|
3060
3078
|
wrapWhiteboardLabel
|
|
3061
3079
|
};
|
package/dist/block.d.ts
CHANGED
|
@@ -99,6 +99,12 @@ interface DgmoBlockOptions {
|
|
|
99
99
|
sourceOpen?: boolean;
|
|
100
100
|
/** Default: true in showcase mode, false in diagram mode. */
|
|
101
101
|
showCopy?: boolean;
|
|
102
|
+
/**
|
|
103
|
+
* Show the copy-as-image toolbar button. Default: follows `showCopy`. Needs
|
|
104
|
+
* the client handler from `@diagrammo/dgmo/copy-image`; markup-only surfaces
|
|
105
|
+
* can omit it.
|
|
106
|
+
*/
|
|
107
|
+
showCopyImage?: boolean;
|
|
102
108
|
/**
|
|
103
109
|
* Show the expand (full-screen) toolbar button. Default: true in showcase
|
|
104
110
|
* mode, false in diagram mode. Needs the client lightbox handler to do
|
package/dist/block.js
CHANGED
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
} from "./chunk-D3K4U3ZM.js";
|
|
5
5
|
import {
|
|
6
6
|
render
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-USE6HIOZ.js";
|
|
8
|
+
import "./chunk-YQMIKX54.js";
|
|
9
9
|
import {
|
|
10
10
|
docsLink,
|
|
11
11
|
renderErrorCard
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-USZLHYEQ.js";
|
|
13
|
+
import "./chunk-P5XA627W.js";
|
|
14
14
|
import "./chunk-H6BT45SN.js";
|
|
15
15
|
import "./chunk-3PP746YM.js";
|
|
16
16
|
import "./chunk-NM5V5EKY.js";
|
|
@@ -21,8 +21,8 @@ import "./chunk-2ZW4NBYX.js";
|
|
|
21
21
|
import "./chunk-AULZD45V.js";
|
|
22
22
|
import "./chunk-WZBZXZ6T.js";
|
|
23
23
|
import "./chunk-NWSPPGIE.js";
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-U6VS3T2M.js";
|
|
25
|
+
import "./chunk-R46N5KR4.js";
|
|
26
26
|
import "./chunk-J7Q4AB23.js";
|
|
27
27
|
import "./chunk-XIUGSUE4.js";
|
|
28
28
|
import "./chunk-EBVVMUAA.js";
|
|
@@ -35,9 +35,9 @@ import "./chunk-3GUEYQGL.js";
|
|
|
35
35
|
import {
|
|
36
36
|
escapeAttr,
|
|
37
37
|
escapeHtml
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-TASRGDYP.js";
|
|
39
39
|
import "./chunk-6XLMTAEX.js";
|
|
40
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-NERQSSYD.js";
|
|
41
41
|
import "./chunk-BQO24BDM.js";
|
|
42
42
|
import "./chunk-R6EGUTIV.js";
|
|
43
43
|
import "./chunk-QQJUTGQH.js";
|
|
@@ -61,9 +61,9 @@ import "./chunk-BRGRIZQB.js";
|
|
|
61
61
|
import "./chunk-XSVWUOUZ.js";
|
|
62
62
|
import "./chunk-JXGSTBW6.js";
|
|
63
63
|
import "./chunk-H7AXCRO7.js";
|
|
64
|
-
import "./chunk-
|
|
64
|
+
import "./chunk-4UVCTLRH.js";
|
|
65
65
|
import "./chunk-24YPR5EH.js";
|
|
66
|
-
import "./chunk-
|
|
66
|
+
import "./chunk-UIEKW4SG.js";
|
|
67
67
|
import "./chunk-VLC6WNRD.js";
|
|
68
68
|
import "./chunk-XCKNFFKM.js";
|
|
69
69
|
import "./chunk-NMS5XSLX.js";
|
|
@@ -71,7 +71,7 @@ import "./chunk-JILEYZ2V.js";
|
|
|
71
71
|
import {
|
|
72
72
|
encodeDiagramUrl
|
|
73
73
|
} from "./chunk-6OSGENN5.js";
|
|
74
|
-
import "./chunk-
|
|
74
|
+
import "./chunk-BTP2BMWN.js";
|
|
75
75
|
import "./chunk-KRPLP5LP.js";
|
|
76
76
|
import "./chunk-KBDMEOLI.js";
|
|
77
77
|
import "./chunk-VSAKEMDD.js";
|
|
@@ -79,9 +79,9 @@ import "./chunk-5OTA2PUH.js";
|
|
|
79
79
|
import "./chunk-ZECJ7Q6C.js";
|
|
80
80
|
import "./chunk-CDM6XMOT.js";
|
|
81
81
|
import "./chunk-2SKMEL7V.js";
|
|
82
|
-
import "./chunk-
|
|
82
|
+
import "./chunk-IY62DXT2.js";
|
|
83
83
|
import "./chunk-TIVMAITN.js";
|
|
84
|
-
import "./chunk-
|
|
84
|
+
import "./chunk-LJGE43SG.js";
|
|
85
85
|
import "./chunk-NXMESY4J.js";
|
|
86
86
|
import "./chunk-EQW6HOP4.js";
|
|
87
87
|
import {
|
|
@@ -91,21 +91,21 @@ import {
|
|
|
91
91
|
choosePalette,
|
|
92
92
|
extractPaletteDirective
|
|
93
93
|
} from "./chunk-CYTFO2LF.js";
|
|
94
|
-
import "./chunk-
|
|
94
|
+
import "./chunk-S4SJ4LLY.js";
|
|
95
95
|
import "./chunk-C3Z4DX3V.js";
|
|
96
96
|
import "./chunk-IYULMRBE.js";
|
|
97
|
-
import "./chunk-
|
|
97
|
+
import "./chunk-5XBYLYYI.js";
|
|
98
98
|
import "./chunk-GXCDD6NG.js";
|
|
99
99
|
import {
|
|
100
100
|
getPalette,
|
|
101
101
|
resolvePaletteOrFallback
|
|
102
102
|
} from "./chunk-FMAVHTYB.js";
|
|
103
103
|
import "./chunk-N7VMGZCU.js";
|
|
104
|
-
import "./chunk-
|
|
104
|
+
import "./chunk-KLBTJEIK.js";
|
|
105
105
|
import "./chunk-NOTA6TEI.js";
|
|
106
|
-
import "./chunk-
|
|
107
|
-
import "./chunk-
|
|
108
|
-
import "./chunk-
|
|
106
|
+
import "./chunk-67N26CER.js";
|
|
107
|
+
import "./chunk-7WEYXYLC.js";
|
|
108
|
+
import "./chunk-QKPOIJBT.js";
|
|
109
109
|
import "./chunk-ICLB27PZ.js";
|
|
110
110
|
import "./chunk-GI5R5B3S.js";
|
|
111
111
|
import "./chunk-4WW3SGMH.js";
|
|
@@ -1063,6 +1063,7 @@ function resolveBlockOptions(opts) {
|
|
|
1063
1063
|
showSource: (opts.showSource ?? showcase) || !!opts.sourceOpen,
|
|
1064
1064
|
sourceOpen: opts.sourceOpen ?? false,
|
|
1065
1065
|
showCopy: opts.showCopy ?? showcase,
|
|
1066
|
+
showCopyImage: opts.showCopyImage ?? opts.showCopy ?? showcase,
|
|
1066
1067
|
showExpand: opts.showExpand ?? showcase,
|
|
1067
1068
|
showOpenInEditor: opts.showOpenInEditor ?? showcase,
|
|
1068
1069
|
editorBaseUrl: opts.editorBaseUrl ?? EDITOR_BASE_URL,
|
|
@@ -1166,11 +1167,13 @@ function dataAttributeString(attrs) {
|
|
|
1166
1167
|
var CODE_ICON = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m10 4.5 4 3.5-4 3.5"/><path d="m6 4.5-4 3.5 4 3.5"/></svg>`;
|
|
1167
1168
|
var COPY_ICON = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="5.5" y="5.5" width="8" height="8" rx="1.5"/><path d="M10.5 5.5V3a1.5 1.5 0 0 0-1.5-1.5H3A1.5 1.5 0 0 0 1.5 3v6A1.5 1.5 0 0 0 3 10.5h2.5"/></svg>`;
|
|
1168
1169
|
var EXTERNAL_ICON = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M9.5 2.5h4v4"/><path d="M13.5 2.5 7 9"/><path d="M12.5 9.5v3a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-8a1 1 0 0 1 1-1h3"/></svg>`;
|
|
1170
|
+
var IMAGE_ICON = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="1.5" y="2.5" width="13" height="11" rx="1.5"/><circle cx="5.5" cy="6" r="1.25"/><path d="m14.5 11-3.5-3.5-6.5 6"/></svg>`;
|
|
1169
1171
|
var EXPAND_ICON = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M9.5 2.5h4v4"/><path d="M6.5 13.5h-4v-4"/><path d="M13.5 2.5 9 7"/><path d="M2.5 13.5 7 9"/></svg>`;
|
|
1170
1172
|
function sourceDisclosure(source, opts) {
|
|
1171
1173
|
const toggle = opts.showSource ? `<span class="dgmo-toggle" aria-label="View DGMO source">${CODE_ICON}</span>` : "";
|
|
1172
1174
|
const expandButton = opts.showExpand ? `<button type="button" class="dgmo-toolbar-btn dgmo-expand" aria-label="View full screen">${EXPAND_ICON}</button>` : "";
|
|
1173
1175
|
const copyButton = opts.showCopy ? `<button type="button" class="dgmo-toolbar-btn dgmo-copy" aria-label="Copy DGMO source" data-dgmo-source="${escapeAttr(source)}">${COPY_ICON}</button>` : "";
|
|
1176
|
+
const copyImageButton = opts.showCopyImage ? `<button type="button" class="dgmo-toolbar-btn dgmo-copy-image" aria-label="Copy as image">${IMAGE_ICON}</button>` : "";
|
|
1174
1177
|
let openButton = "";
|
|
1175
1178
|
if (opts.showOpenInEditor) {
|
|
1176
1179
|
const encoded = encodeDiagramUrl(source, {
|
|
@@ -1181,7 +1184,7 @@ function sourceDisclosure(source, opts) {
|
|
|
1181
1184
|
openButton = `<a href="${escapeAttr(encoded.url)}" target="_blank" rel="noopener noreferrer" class="dgmo-toolbar-btn dgmo-open" aria-label="Open in online editor">${EXTERNAL_ICON}</a>`;
|
|
1182
1185
|
}
|
|
1183
1186
|
}
|
|
1184
|
-
const buttons = `${toggle}${expandButton}${copyButton}${openButton}`;
|
|
1187
|
+
const buttons = `${toggle}${expandButton}${copyButton}${copyImageButton}${openButton}`;
|
|
1185
1188
|
if (!buttons) return "";
|
|
1186
1189
|
if (!opts.showSource) {
|
|
1187
1190
|
return `<div class="dgmo-source-wrap"><div class="dgmo-toolbar">${buttons}</div></div>`;
|
package/dist/chart-meta.js
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "./chunk-6OSGENN5.js";
|
|
11
11
|
import {
|
|
12
12
|
parseDgmoChartType
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-BTP2BMWN.js";
|
|
14
14
|
import {
|
|
15
15
|
parseRaci
|
|
16
16
|
} from "./chunk-KRPLP5LP.js";
|
|
@@ -22,28 +22,28 @@ import {
|
|
|
22
22
|
import "./chunk-ZECJ7Q6C.js";
|
|
23
23
|
import "./chunk-CDM6XMOT.js";
|
|
24
24
|
import "./chunk-2SKMEL7V.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-IY62DXT2.js";
|
|
26
26
|
import "./chunk-TIVMAITN.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-LJGE43SG.js";
|
|
28
28
|
import "./chunk-NXMESY4J.js";
|
|
29
29
|
import "./chunk-EQW6HOP4.js";
|
|
30
30
|
import "./chunk-MKSTL6DR.js";
|
|
31
31
|
import "./chunk-CYTFO2LF.js";
|
|
32
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-S4SJ4LLY.js";
|
|
33
33
|
import "./chunk-C3Z4DX3V.js";
|
|
34
34
|
import "./chunk-IYULMRBE.js";
|
|
35
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-5XBYLYYI.js";
|
|
36
36
|
import "./chunk-GXCDD6NG.js";
|
|
37
37
|
import {
|
|
38
38
|
getAvailablePalettes,
|
|
39
39
|
getPalette
|
|
40
40
|
} from "./chunk-FMAVHTYB.js";
|
|
41
41
|
import "./chunk-N7VMGZCU.js";
|
|
42
|
-
import "./chunk-
|
|
42
|
+
import "./chunk-KLBTJEIK.js";
|
|
43
43
|
import "./chunk-NOTA6TEI.js";
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-67N26CER.js";
|
|
45
|
+
import "./chunk-7WEYXYLC.js";
|
|
46
|
+
import "./chunk-QKPOIJBT.js";
|
|
47
47
|
import "./chunk-ICLB27PZ.js";
|
|
48
48
|
import "./chunk-4WW3SGMH.js";
|
|
49
49
|
import "./chunk-3UR4F7FE.js";
|