@draftably/editor 0.1.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/README.md +4 -5
  2. package/dist/assets/engine.worker-BY9GKt7x.js +7505 -0
  3. package/dist/element.js +1 -1
  4. package/dist/index.js +20202 -2
  5. package/dist/types/src/cli/raster-fonts.d.ts +3 -0
  6. package/dist/types/src/components/controls.d.ts +8 -5
  7. package/dist/types/src/dsl/compile.d.ts +13 -0
  8. package/dist/types/src/dsl/corridors.d.ts +38 -0
  9. package/dist/types/src/model/types.d.ts +9 -0
  10. package/dist/types/src/state/canvas-commands.d.ts +169 -0
  11. package/dist/types/src/state/canvas-keyboard.d.ts +15 -0
  12. package/dist/types/src/state/links.d.ts +4 -1
  13. package/dist/types/src/state/workspace.d.ts +3 -0
  14. package/package.json +1 -1
  15. package/dist/assets/engine.worker-DmHew5f6.js +0 -6813
  16. package/dist/assets/import-d2.worker-CnXfFXoa.js +0 -5395
  17. package/dist/chunks/abnfDiagram-WEYOIA3C-llcpthp5.js +0 -87
  18. package/dist/chunks/arc-rJj0TtXf.js +0 -83
  19. package/dist/chunks/architectureDiagram-ZHVYKT53-CfiXg0Lk.js +0 -4781
  20. package/dist/chunks/blockDiagram-RJAE7QA3-CO-14jWz.js +0 -1440
  21. package/dist/chunks/browser-iNhbPsGc.js +0 -40
  22. package/dist/chunks/c4Diagram-XDPPPE54-DYKuxA4n.js +0 -1524
  23. package/dist/chunks/channel-qMvPU6eH.js +0 -5
  24. package/dist/chunks/chunk-2E7WHVMD-BEZwsFS3.js +0 -670
  25. package/dist/chunks/chunk-2Q5K7J3B-gqtzQ8ux.js +0 -18
  26. package/dist/chunks/chunk-4EMNKR2T-MC54CXVe.js +0 -262
  27. package/dist/chunks/chunk-55XCU76K-DkZUAaqC.js +0 -68
  28. package/dist/chunks/chunk-5VM5RSS4-CaKe4sjM.js +0 -19
  29. package/dist/chunks/chunk-JWPE2WC7-CnAFS2xF.js +0 -8
  30. package/dist/chunks/chunk-VQ5W62QI-CXRv7FiX.js +0 -19
  31. package/dist/chunks/chunk-XXDRQBXY-B-AMQgD2.js +0 -8
  32. package/dist/chunks/chunk-ZCHMQSOR-BALpdc3g.js +0 -451
  33. package/dist/chunks/classDiagram-v2-4MYWR3UA-wPjgJTg4.js +0 -1570
  34. package/dist/chunks/cose-bilkent-JH36ORCC-Bbh5ggBc.js +0 -2608
  35. package/dist/chunks/cynefin-EF2NZ3EQ-Bt6b88hY.js +0 -22361
  36. package/dist/chunks/cynefinDiagram-WF24UDRP-BHWZvxoF.js +0 -299
  37. package/dist/chunks/cytoscape.esm-CRsF_JA3.js +0 -18791
  38. package/dist/chunks/dagre-NK4GIZVX-Cz37yPrT.js +0 -2157
  39. package/dist/chunks/defaultLocale-BgPVtth8.js +0 -171
  40. package/dist/chunks/diagram-CBK3MWTC-Q2R6FJ0B.js +0 -531
  41. package/dist/chunks/diagram-I5XIIV2D-a2Kdu_wA.js +0 -153
  42. package/dist/chunks/diagram-ODIL2UCW-DTWXxcOn.js +0 -346
  43. package/dist/chunks/diagram-PFBEJUXE-DIAQQ5KX.js +0 -480
  44. package/dist/chunks/diagram-RJA3I4VV-BPD0GghS.js +0 -219
  45. package/dist/chunks/diagram-TYUNFSNR-BmdkONfG.js +0 -2586
  46. package/dist/chunks/dot-importer-B23jwEkx.js +0 -1547
  47. package/dist/chunks/ebnfDiagram-V4P3TTPT-C5IKvYlb.js +0 -109
  48. package/dist/chunks/elk-QONTBCTQ-CtdQFvh2.js +0 -49229
  49. package/dist/chunks/erDiagram-KYQIGQAA-5wguK9Dx.js +0 -1064
  50. package/dist/chunks/flowDiagram-IUGLLWBU-BijvFPku.js +0 -1771
  51. package/dist/chunks/ganttDiagram-R7GPNTJY-BaqGPz-O.js +0 -2729
  52. package/dist/chunks/gitGraphDiagram-PDYL7XHY-DZfMGyHE.js +0 -815
  53. package/dist/chunks/graph-CKJmgLki.js +0 -1541
  54. package/dist/chunks/import-core-C-I1wGfw.js +0 -145
  55. package/dist/chunks/infoDiagram-MVDRKAX5-C2vH_59e.js +0 -24
  56. package/dist/chunks/init-DjUOC4st.js +0 -16
  57. package/dist/chunks/ishikawaDiagram-HPEHV2GE-q149MFlV.js +0 -624
  58. package/dist/chunks/journeyDiagram-BOSHW7O7-D-2Z3VtR.js +0 -834
  59. package/dist/chunks/kanban-definition-FNSA4HC5-wvAjV5ub.js +0 -724
  60. package/dist/chunks/katex-BsrBVQKd.js +0 -11314
  61. package/dist/chunks/linear-4t7D_ros.js +0 -259
  62. package/dist/chunks/mermaid-facade-BoLWBerE.js +0 -289
  63. package/dist/chunks/mermaid-importer-Cgx1IhmR.js +0 -478
  64. package/dist/chunks/mermaid.core-DXv6D2Sm.js +0 -19244
  65. package/dist/chunks/mindmap-definition-6OY57UG3-r9wTKul_.js +0 -837
  66. package/dist/chunks/mount-C1Xk_GQz.js +0 -22131
  67. package/dist/chunks/ordinal-DfAQgscy.js +0 -61
  68. package/dist/chunks/pegDiagram-ECIUJNBX-CmKlFWiP.js +0 -95
  69. package/dist/chunks/pieDiagram-GNMPY74T-DNTw_qan.js +0 -208
  70. package/dist/chunks/quadrantDiagram-D57K4MC3-CT_tvVub.js +0 -1029
  71. package/dist/chunks/railroadDiagram-Y72NRBL7-C5TUvZBe.js +0 -77
  72. package/dist/chunks/requirementDiagram-EQYSW5RA-C_c65aCa.js +0 -889
  73. package/dist/chunks/sankeyDiagram-SY24JHO5-CKcbizM1.js +0 -859
  74. package/dist/chunks/sequenceDiagram-BLEHNHQU-GpVnHOjf.js +0 -2972
  75. package/dist/chunks/sizeCapture-INFHLROL-CToN3JSu.js +0 -46
  76. package/dist/chunks/stateDiagram-v2-A6IESKWZ-rJYd2FfM.js +0 -1520
  77. package/dist/chunks/swimlanes-B3ENRKFQ-C7w5pfxG.js +0 -4991
  78. package/dist/chunks/swimlanesDiagram-AYQRV4AK-BpGY_bvE.js +0 -13
  79. package/dist/chunks/timeline-definition-JXYKGLGB-ChKFPBKc.js +0 -1058
  80. package/dist/chunks/usecaseDiagram-WPOLBNNX-skXH8Dcu.js +0 -7945
  81. package/dist/chunks/vennDiagram-Q3Y3IDCW-C5KknmJf.js +0 -1578
  82. package/dist/chunks/wardleyDiagram-IVAIDKWA-DY4Lkfpu.js +0 -678
  83. package/dist/chunks/xychartDiagram-4URNHDU4-BHScsL7h.js +0 -1536
  84. package/dist/types/src/cli/png.d.ts +0 -23
  85. package/dist/types/src/import/browser.d.ts +0 -3
  86. package/dist/types/src/import/detect.d.ts +0 -31
  87. package/dist/types/src/import/dot-importer.d.ts +0 -3
  88. package/dist/types/src/import/import-core.d.ts +0 -105
  89. package/dist/types/src/import/mermaid-facade.d.ts +0 -120
  90. package/dist/types/src/import/mermaid-importer.d.ts +0 -4
  91. package/dist/types/src/import/mermaid-sequence.d.ts +0 -8
  92. package/dist/types/src/import/scratch.d.ts +0 -3
  93. package/dist/types/src/lib/source-hash.d.ts +0 -7
  94. package/dist/types/src/model/candidates.d.ts +0 -53
  95. package/dist/types/src/model/embed.d.ts +0 -17
  96. package/dist/types/src/model/examples.d.ts +0 -15
  97. package/dist/types/src/model/label-hits.d.ts +0 -27
  98. package/dist/types/src/model/static-scene.d.ts +0 -15
  99. package/dist/types/src/state/commands.d.ts +0 -529
  100. package/dist/types/src/state/comparison.d.ts +0 -151
  101. package/dist/types/src/state/files.d.ts +0 -61
  102. package/dist/types/src/state/keyboard.d.ts +0 -6
  103. package/dist/types/src/state/launch.d.ts +0 -61
  104. package/dist/types/src/state/ui.d.ts +0 -39
@@ -1,262 +0,0 @@
1
- import { au as B, _ as y } from "./mermaid.core-DXv6D2Sm.js";
2
- var w = 5, O = 1e-5, X = 2, Y = 0.6, R = 1e-6;
3
- function N(t) {
4
- const e = [];
5
- for (let s = 0; s < t.length - 1; s++)
6
- e.push({ a: t[s], b: t[s + 1] });
7
- return e;
8
- }
9
- y(N, "buildSegmentList");
10
- function T(t, e, s, a) {
11
- const r = e.x - t.x, o = e.y - t.y, i = a.x - s.x, d = a.y - s.y, u = r * d - o * i;
12
- if (u === 0)
13
- return null;
14
- const n = s.x - t.x, c = s.y - t.y, p = (n * d - c * i) / u, f = (n * o - c * r) / u;
15
- return p <= R || p >= 1 - R || f <= R || f >= 1 - R ? null : {
16
- point: { x: t.x + p * r, y: t.y + p * o },
17
- tA: p,
18
- tB: f
19
- };
20
- }
21
- y(T, "segmentIntersection");
22
- function P(t) {
23
- return Math.abs(t.b.x - t.a.x) >= Math.abs(t.b.y - t.a.y);
24
- }
25
- y(P, "isHorizontalSeg");
26
- function v(t, e, s) {
27
- if (t.curve !== "rounded")
28
- return !1;
29
- const a = t.points, r = a[e], o = a[e + 1];
30
- if (!r || !o)
31
- return !1;
32
- const i = Math.hypot(o.x - r.x, o.y - r.y), d = s * i, u = e > 0 ? L(a[e - 1], r, o, w) : null;
33
- if (u && d < u.cutLen)
34
- return !0;
35
- const n = e + 2 < a.length ? L(r, o, a[e + 2], w) : null;
36
- return n !== null && i - d < n.cutLen;
37
- }
38
- y(v, "crossingSitsInRoundedCorner");
39
- function _(t) {
40
- const e = [];
41
- for (let s = 0; s < t.length; s++) {
42
- const a = t[s], r = N(a.points);
43
- for (let o = s + 1; o < t.length; o++) {
44
- const i = t[o], d = N(i.points);
45
- for (const [u, n] of r.entries())
46
- for (const [c, p] of d.entries()) {
47
- const f = T(n.a, n.b, p.a, p.b);
48
- if (!f || v(a, u, f.tA) || v(i, c, f.tB))
49
- continue;
50
- const g = P(n), S = P(p);
51
- (g !== S ? g : !1) ? e.push({
52
- jumpEdgeId: a.id,
53
- otherEdgeId: i.id,
54
- segIndex: u,
55
- t: f.tA,
56
- point: f.point
57
- }) : e.push({
58
- jumpEdgeId: i.id,
59
- otherEdgeId: a.id,
60
- segIndex: c,
61
- t: f.tB,
62
- point: f.point
63
- });
64
- }
65
- }
66
- }
67
- return e;
68
- }
69
- y(_, "findEdgeIntersections");
70
- function M(t) {
71
- const e = Math.round(t * 1e3) / 1e3;
72
- return Number.isInteger(e) ? `${e}` : `${e}`;
73
- }
74
- y(M, "fmt");
75
- function A(t) {
76
- return `${M(t.x)},${M(t.y)}`;
77
- }
78
- y(A, "pointToString");
79
- function C(t) {
80
- const e = t.b.x - t.a.x, s = t.b.y - t.a.y;
81
- return Math.abs(e) >= Math.abs(s) ? e >= 0 ? 1 : 0 : s >= 0 ? 1 : 0;
82
- }
83
- y(C, "getArcSweepFlag");
84
- function D(t, e) {
85
- if (t.length < 2)
86
- return t.map((o) => ({ ...o }));
87
- const s = t.map((o) => ({ ...o })), a = e.arrowTypeStart && B[e.arrowTypeStart];
88
- if (a) {
89
- const o = t[0], i = t[1], d = Math.atan2(i.y - o.y, i.x - o.x);
90
- s[0].x = o.x + a * Math.cos(d), s[0].y = o.y + a * Math.sin(d);
91
- }
92
- const r = e.arrowTypeEnd && B[e.arrowTypeEnd];
93
- if (r) {
94
- const o = t.length, i = t[o - 2], d = t[o - 1], u = Math.atan2(d.y - i.y, d.x - i.x);
95
- s[o - 1].x = d.x - r * Math.cos(u), s[o - 1].y = d.y - r * Math.sin(u);
96
- }
97
- return s;
98
- }
99
- y(D, "applyMarkerOffsets");
100
- function k(t, e, s, a, r) {
101
- const o = t.point.x, i = t.point.y, d = { x: o - e * t.r, y: i - s * t.r }, u = { x: o + e * t.r, y: i + s * t.r }, n = [`L${A(d)}`];
102
- return r === "arc" ? n.push(`A${M(t.r)},${M(t.r)} 0 0 ${a} ${A(u)}`) : n.push(`M${A(u)}`), n;
103
- }
104
- y(k, "emitJump");
105
- function L(t, e, s, a) {
106
- const r = e.x - t.x, o = e.y - t.y, i = s.x - e.x, d = s.y - e.y, u = Math.hypot(r, o), n = Math.hypot(i, d);
107
- if (u < O || n < O)
108
- return null;
109
- const c = r / u, p = o / u, f = i / n, g = d / n, S = c * f + p * g, b = Math.max(-1, Math.min(1, S)), m = Math.acos(b);
110
- if (m < O || Math.abs(Math.PI - m) < O)
111
- return null;
112
- const h = Math.min(a / Math.sin(m / 2), u / 2, n / 2);
113
- return {
114
- startX: e.x - c * h,
115
- startY: e.y - p * h,
116
- endX: e.x + f * h,
117
- endY: e.y + g * h,
118
- ctrlX: e.x,
119
- ctrlY: e.y,
120
- cutLen: h
121
- };
122
- }
123
- y(L, "computeRoundedCorner");
124
- function H(t, e, s) {
125
- const a = t.points;
126
- if (a.length < 2)
127
- return "";
128
- const r = D(a, t), o = t.curve === "rounded", i = N(r), d = /* @__PURE__ */ new Map();
129
- for (const n of e) {
130
- const c = i[n.segIndex];
131
- if (!c)
132
- continue;
133
- const p = Math.hypot(c.b.x - c.a.x, c.b.y - c.a.y), f = d.get(n.segIndex) ?? [];
134
- f.push({
135
- t: n.t,
136
- point: n.point,
137
- d: n.t * p,
138
- r: s.jumpRadius
139
- }), d.set(n.segIndex, f);
140
- }
141
- const u = [`M${A(r[0])}`];
142
- for (let n = 0; n < i.length; n++) {
143
- const c = i[n], p = Math.hypot(c.b.x - c.a.x, c.b.y - c.a.y), f = p === 0 ? 0 : (c.b.x - c.a.x) / p, g = p === 0 ? 0 : (c.b.y - c.a.y) / p, S = C(c);
144
- let b = 0;
145
- if (o && n > 0) {
146
- const l = L(
147
- r[n - 1],
148
- r[n],
149
- r[n + 1] ?? r[n],
150
- w
151
- );
152
- l && (b = l.cutLen);
153
- }
154
- let m = p, h = null;
155
- o && n < i.length - 1 && (h = L(
156
- r[n],
157
- r[n + 1],
158
- r[n + 2] ?? r[n + 1],
159
- w
160
- ), h && (m = p - h.cutLen));
161
- const $ = s.jumpRadius * Y, x = [...d.get(n) ?? []].sort((l, E) => l.t - E.t).filter((l) => {
162
- const E = Math.min(l.d - b, m - l.d) - X;
163
- return l.r = Math.min(l.r, E), l.r >= $;
164
- });
165
- for (let l = 0; l < x.length - 1; l++) {
166
- const E = x[l + 1].d - x[l].d;
167
- if (x[l].r + x[l + 1].r > E) {
168
- const I = E / 2;
169
- x[l].r = Math.min(x[l].r, I), x[l + 1].r = Math.min(x[l + 1].r, I);
170
- }
171
- }
172
- for (const l of x)
173
- l.r < $ || u.push(...k(l, f, g, S, s.jumpStyle));
174
- o && h ? (u.push(`L${M(h.startX)},${M(h.startY)}`), u.push(
175
- `Q${M(h.ctrlX)},${M(h.ctrlY)} ${M(h.endX)},${M(h.endY)}`
176
- )) : u.push(`L${A(c.b)}`);
177
- }
178
- return u.join(" ");
179
- }
180
- y(H, "rewriteEdgePath");
181
- function J(t) {
182
- return /^[\d\s+,.LMelm-]*$/.test(t);
183
- }
184
- y(J, "isStraightPath");
185
- function U(t) {
186
- return t ? t === "linear" || t === "rounded" || t === "step" || t === "stepBefore" || t === "stepAfter" : !0;
187
- }
188
- y(U, "curveSupportsLineHops");
189
- function j(t) {
190
- if (!t)
191
- return null;
192
- try {
193
- const e = typeof atob == "function" ? atob(t) : Buffer.from(t, "base64").toString(), s = JSON.parse(e);
194
- if (!Array.isArray(s))
195
- return null;
196
- const a = [];
197
- for (const r of s)
198
- r && typeof r.x == "number" && typeof r.y == "number" && a.push({ x: r.x, y: r.y });
199
- return a.length >= 2 ? a : null;
200
- } catch {
201
- return null;
202
- }
203
- }
204
- y(j, "decodeDataPoints");
205
- function F(t, e, s) {
206
- if (!s.enabled)
207
- return;
208
- const a = t.node();
209
- if (!a)
210
- return;
211
- const r = /* @__PURE__ */ new Map();
212
- for (const n of e)
213
- r.set(n.id, n);
214
- const o = /* @__PURE__ */ new Map();
215
- for (const n of a.querySelectorAll("path[data-id]")) {
216
- const c = n.getAttribute("data-id");
217
- c !== null && !o.has(c) && o.set(c, n);
218
- }
219
- const i = [];
220
- for (const n of e) {
221
- const c = o.get(n.id);
222
- if (!c)
223
- continue;
224
- const f = j(c.getAttribute("data-points")) ?? n.points;
225
- i.push({ ...n, points: f });
226
- }
227
- const d = _(i);
228
- if (d.length === 0)
229
- return;
230
- const u = /* @__PURE__ */ new Map();
231
- for (const n of d) {
232
- const c = u.get(n.jumpEdgeId) ?? [];
233
- c.push(n), u.set(n.jumpEdgeId, c);
234
- }
235
- for (const n of i) {
236
- const c = u.get(n.id);
237
- if (!c || c.length === 0)
238
- continue;
239
- const f = r.get(n.id)?.curve;
240
- if (f !== void 0 && !U(f))
241
- continue;
242
- const g = o.get(n.id);
243
- if (!g)
244
- continue;
245
- if (f === void 0) {
246
- const x = g.getAttribute("d") ?? "";
247
- if (!J(x))
248
- continue;
249
- }
250
- const S = g.getAttribute("style") ?? "", b = /stroke-dasharray\s*:\s*0\s+([\d.]+)\s+[\d.]+\s+([\d.]+)/.exec(
251
- S
252
- ), m = b ? Number.parseFloat(b[1]) : null, h = b ? Number.parseFloat(b[2]) : null, $ = H(n, c, s);
253
- if (g.setAttribute("d", $), m !== null && h !== null && typeof g.getTotalLength == "function") {
254
- const x = g.getTotalLength(), l = Math.max(0, x - m - h), E = `0 ${m} ${l} ${h}`, I = S.replace(/stroke-dasharray\s*:[^;]*;?/g, `stroke-dasharray: ${E};`).replace(/;\s*;+/g, ";");
255
- g.setAttribute("style", I);
256
- }
257
- }
258
- }
259
- y(F, "applyLineJumpsToSvg");
260
- export {
261
- F as a
262
- };
@@ -1,68 +0,0 @@
1
- import { _ as i, k as l, a0 as d, S as o } from "./mermaid.core-DXv6D2Sm.js";
2
- var x = /* @__PURE__ */ i((r, t) => {
3
- const e = r.append("rect");
4
- if (e.attr("x", t.x), e.attr("y", t.y), e.attr("fill", t.fill), e.attr("stroke", t.stroke), e.attr("width", t.width), e.attr("height", t.height), t.name && e.attr("name", t.name), t.rx && e.attr("rx", t.rx), t.ry && e.attr("ry", t.ry), t.attrs !== void 0)
5
- for (const s in t.attrs)
6
- e.attr(s, t.attrs[s]);
7
- return t.class && e.attr("class", t.class), e;
8
- }, "drawRect"), p = /* @__PURE__ */ i((r, t) => {
9
- const e = {
10
- x: t.startx,
11
- y: t.starty,
12
- width: t.stopx - t.startx,
13
- height: t.stopy - t.starty,
14
- fill: t.fill,
15
- stroke: t.stroke,
16
- class: "rect"
17
- };
18
- x(r, e).lower();
19
- }, "drawBackgroundRect"), y = /* @__PURE__ */ i((r, t) => {
20
- const e = t.text.replace(d, " "), s = r.append("text");
21
- s.attr("x", t.x), s.attr("y", t.y), s.attr("class", "legend"), s.style("text-anchor", t.anchor), t.class && s.attr("class", t.class);
22
- const a = s.append("tspan");
23
- return a.attr("x", t.x + t.textMargin * 2), a.text(e), s;
24
- }, "drawText"), m = /* @__PURE__ */ i((r, t, e, s) => {
25
- const a = r.append("image");
26
- a.attr("x", t), a.attr("y", e);
27
- const n = o.sanitizeUrl(s);
28
- a.attr("xlink:href", n);
29
- }, "drawImage"), g = /* @__PURE__ */ i((r, t, e, s) => {
30
- const a = r.append("use");
31
- a.attr("x", t), a.attr("y", e);
32
- const n = o.sanitizeUrl(s);
33
- a.attr("xlink:href", `#${n}`);
34
- }, "drawEmbeddedImage"), h = /* @__PURE__ */ i(() => ({
35
- x: 0,
36
- y: 0,
37
- width: 100,
38
- height: 100,
39
- fill: "#EDF2AE",
40
- stroke: "#666",
41
- anchor: "start",
42
- rx: 0,
43
- ry: 0
44
- }), "getNoteRect"), f = /* @__PURE__ */ i(() => ({
45
- x: 0,
46
- y: 0,
47
- width: 100,
48
- height: 100,
49
- "text-anchor": "start",
50
- style: "#666",
51
- textMargin: 0,
52
- rx: 0,
53
- ry: 0,
54
- tspan: !0
55
- }), "getTextObj"), w = /* @__PURE__ */ i(() => {
56
- let r = l(".mermaidTooltip");
57
- return r.empty() && (r = l("body").append("div").attr("class", "mermaidTooltip").style("opacity", 0).style("position", "absolute").style("text-align", "center").style("max-width", "200px").style("padding", "2px").style("font-size", "12px").style("background", "#ffffde").style("border", "1px solid #333").style("border-radius", "2px").style("pointer-events", "none").style("z-index", "100")), r;
58
- }, "createTooltip");
59
- export {
60
- p as a,
61
- h as b,
62
- w as c,
63
- x as d,
64
- g as e,
65
- m as f,
66
- f as g,
67
- y as h
68
- };
@@ -1,19 +0,0 @@
1
- import { _ as e } from "./mermaid.core-DXv6D2Sm.js";
2
- var l = /* @__PURE__ */ e(() => `
3
- /* Font Awesome icon styling - consolidated */
4
- .label-icon {
5
- display: inline-block;
6
- height: 1em;
7
- overflow: visible;
8
- vertical-align: -0.125em;
9
- }
10
-
11
- .node .label-icon path {
12
- fill: currentColor;
13
- stroke: revert;
14
- stroke-width: revert;
15
- }
16
- `, "getIconStyles");
17
- export {
18
- l as g
19
- };
@@ -1,8 +0,0 @@
1
- import { _ as i } from "./mermaid.core-DXv6D2Sm.js";
2
- function t(c, e) {
3
- c.accDescr && e.setAccDescription?.(c.accDescr), c.accTitle && e.setAccTitle?.(c.accTitle), c.title && e.setDiagramTitle?.(c.title);
4
- }
5
- i(t, "populateCommonDb");
6
- export {
7
- t as p
8
- };
@@ -1,19 +0,0 @@
1
- import { _ as a, d as w, l as x } from "./mermaid.core-DXv6D2Sm.js";
2
- var B = /* @__PURE__ */ a((e, t, i, r) => {
3
- e.attr("class", i);
4
- const { width: o, height: h, x: n, y: c } = u(e, t);
5
- w(e, h, o, r);
6
- const s = d(n, c, o, h, t);
7
- e.attr("viewBox", s), x.debug(`viewBox configured: ${s} with padding: ${t}`);
8
- }, "setupViewPortForSVG"), u = /* @__PURE__ */ a((e, t) => {
9
- const i = e.node()?.getBBox() || { width: 0, height: 0, x: 0, y: 0 };
10
- return {
11
- width: i.width + t * 2,
12
- height: i.height + t * 2,
13
- x: i.x,
14
- y: i.y
15
- };
16
- }, "calculateDimensionsWithPadding"), d = /* @__PURE__ */ a((e, t, i, r, o) => `${e - o} ${t - o} ${i} ${r}`, "createViewBox");
17
- export {
18
- B as s
19
- };
@@ -1,8 +0,0 @@
1
- import { _ as a, k as o } from "./mermaid.core-DXv6D2Sm.js";
2
- var g = /* @__PURE__ */ a((t, e) => {
3
- let n;
4
- return e === "sandbox" && (n = o("#i" + t)), (e === "sandbox" ? o(n.nodes()[0].contentDocument.body) : o("body")).select(`[id="${t}"]`);
5
- }, "getDiagramElement");
6
- export {
7
- g
8
- };