hexagon-editor 0.1.4 → 0.1.6

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 (118) hide show
  1. package/README.md +24 -11
  2. package/dist/MarkdownEditor.vue.d.ts +28 -26
  3. package/dist/MarkdownEditor.vue.d.ts.map +1 -1
  4. package/dist/{MarkdownEditorLinkForm-C7CGgA83.js → MarkdownEditorLinkForm-B9dEX3WT.js} +1 -1
  5. package/dist/{base-Bnv2-Te4.js → base-BPdMUtQo.js} +141 -137
  6. package/dist/components/MarkdownEditorToolbar.vue.d.ts +4 -3
  7. package/dist/components/MarkdownEditorToolbar.vue.d.ts.map +1 -1
  8. package/dist/configure.d.ts +0 -2
  9. package/dist/configure.d.ts.map +1 -1
  10. package/dist/configure.js +11 -12
  11. package/dist/core/basic-editor-markdown.d.ts.map +1 -1
  12. package/dist/core/basic-editor-renderers.d.ts +6 -4
  13. package/dist/core/basic-editor-renderers.d.ts.map +1 -1
  14. package/dist/core/basic-editor-types.d.ts +2 -0
  15. package/dist/core/basic-editor-types.d.ts.map +1 -1
  16. package/dist/core/basic-editor.d.ts +1 -1
  17. package/dist/core/basic-editor.d.ts.map +1 -1
  18. package/dist/core/index.d.ts +0 -2
  19. package/dist/core/index.d.ts.map +1 -1
  20. package/dist/core/markup-editor.d.ts.map +1 -1
  21. package/dist/core.js +28 -31
  22. package/dist/extensions.js +1 -1
  23. package/dist/forms/MarkdownEditorImageForm.vue.d.ts +2 -2
  24. package/dist/forms/MarkdownEditorImageForm.vue.d.ts.map +1 -1
  25. package/dist/forms/MarkdownEditorLinkForm.vue.d.ts +2 -2
  26. package/dist/forms/MarkdownEditorTextInput.vue.d.ts +2 -2
  27. package/dist/forms/MarkdownEditorTextInput.vue.d.ts.map +1 -1
  28. package/dist/forms.js +1 -1
  29. package/dist/{full-C-o2lPBX.js → full-Da8esvj2.js} +1 -1
  30. package/dist/{full-specs-Cl-ODShc.js → full-specs-hXKoMF-0.js} +1 -1
  31. package/dist/index-D_CMntQU.js +3173 -0
  32. package/dist/index.css +1 -1
  33. package/dist/index.d.ts +1 -1
  34. package/dist/index.d.ts.map +1 -1
  35. package/dist/index.js +3611 -1284
  36. package/dist/{markup-commands-BckOOKIe.js → markup-commands-BYsx8ADT.js} +1993 -1963
  37. package/dist/presets.js +2 -2
  38. package/dist/public-types.d.ts +22 -0
  39. package/dist/public-types.d.ts.map +1 -1
  40. package/dist/renderer/MarkdownRenderer.vue.d.ts +2 -0
  41. package/dist/renderer/MarkdownRenderer.vue.d.ts.map +1 -1
  42. package/dist/renderer/markdown.d.ts +2 -1
  43. package/dist/renderer/markdown.d.ts.map +1 -1
  44. package/dist/renderer.css +1 -1
  45. package/dist/renderer.js +142 -146
  46. package/package.json +106 -108
  47. package/dist/MarkdownEditorLinkForm.css +0 -1
  48. package/dist/abnfDiagram-N423BO3Z-DCf6sPky.js +0 -87
  49. package/dist/arc-y6UeoJpJ.js +0 -83
  50. package/dist/architectureDiagram-T3A2C74G-Cc3_3-cI.js +0 -4778
  51. package/dist/base.css +0 -1
  52. package/dist/blockDiagram-VBNYF7ZC-DWVLZwXY.js +0 -2419
  53. package/dist/c4Diagram-5PPSVZJV-CaIN7qay.js +0 -1577
  54. package/dist/channel-BwXGcavV.js +0 -5
  55. package/dist/chunk-2GRJ4B5K-O75udjPr.js +0 -68
  56. package/dist/chunk-2Q5K7J3B-CySL0lOA.js +0 -15
  57. package/dist/chunk-5RXB4S5H-BKPnLCOJ.js +0 -1408
  58. package/dist/chunk-5VM5RSS4--it1VJIv.js +0 -19
  59. package/dist/chunk-6Q2QTUOP-DNiML-50.js +0 -664
  60. package/dist/chunk-GF5L2VYU-z7A-k0-V.js +0 -1533
  61. package/dist/chunk-JWPE2WC7-DAjx3Kjr.js +0 -8
  62. package/dist/chunk-KBJHAD2P-D4R1VW0r.js +0 -19
  63. package/dist/chunk-RYQCIY6F-DmJAYxq8.js +0 -313
  64. package/dist/chunk-XXDRQBXY-CK913N-t.js +0 -8
  65. package/dist/classDiagram-JCYQIIEL-Djipq_HJ.js +0 -16
  66. package/dist/classDiagram-v2-OCEON4UE-Djipq_HJ.js +0 -16
  67. package/dist/core/optional-renderers.d.ts +0 -9
  68. package/dist/core/optional-renderers.d.ts.map +0 -1
  69. package/dist/cose-bilkent-JH36ORCC-CXuKFbXy.js +0 -2608
  70. package/dist/cynefin-VYW2F7L2-Bkk-F_Js.js +0 -23766
  71. package/dist/cynefinDiagram-MW4NZA55-DwOK40hm.js +0 -299
  72. package/dist/cytoscape.esm-3W4EOjxC.js +0 -18756
  73. package/dist/dagre-VZM6K2ZE-0VsGm8Ag.js +0 -340
  74. package/dist/defaultLocale-BgPVtth8.js +0 -171
  75. package/dist/diagram-7IWD3JNH-BrApu1hz.js +0 -350
  76. package/dist/diagram-B4RE2ZJO-CVXoBg2r.js +0 -461
  77. package/dist/diagram-LBJQPF4R-Dp0eSz2L.js +0 -142
  78. package/dist/diagram-Q27KOJAE-DWIltqIH.js +0 -528
  79. package/dist/diagram-UB23O5K3-B7z2Lj3K.js +0 -219
  80. package/dist/ebnfDiagram-BXEA7PRR-CYgE6z_2.js +0 -109
  81. package/dist/erDiagram-JOGREHBK-D3QWrPo-.js +0 -910
  82. package/dist/flowDiagram-UKHOOZJN-CfjPcHNW.js +0 -1638
  83. package/dist/ganttDiagram-PKOTCBZU-ECmaWI-9.js +0 -2711
  84. package/dist/gitGraphDiagram-DS77QQ5N-DgG1RGJ8.js +0 -815
  85. package/dist/graph-DAHC4kPm.js +0 -1545
  86. package/dist/infoDiagram-6WML65LV-B1Yl3nZV.js +0 -24
  87. package/dist/init-DjUOC4st.js +0 -16
  88. package/dist/ishikawaDiagram-WSZJBQD7-4sngaB5o.js +0 -621
  89. package/dist/journeyDiagram-NVQOT4AX-B_6AmR_j.js +0 -834
  90. package/dist/kanban-definition-27J2QSJJ-B8BO9o8J.js +0 -724
  91. package/dist/katex-ByXcxnHy.js +0 -14436
  92. package/dist/katex-DoRnZ_sp.js +0 -11682
  93. package/dist/layout-DBbo_M5I.js +0 -1519
  94. package/dist/linear-BEdRfKba.js +0 -259
  95. package/dist/map-DRdzG8Ho.js +0 -224
  96. package/dist/markup-commands.css +0 -1
  97. package/dist/mermaid.core-CR0bA2Wa.js +0 -16496
  98. package/dist/mindmap-definition-FAOFIHXS-DnPz807N.js +0 -827
  99. package/dist/optional-renderers-BalvqqvY.js +0 -11
  100. package/dist/ordinal-B6-f3MAq.js +0 -61
  101. package/dist/pegDiagram-VL7TDLO6-csGWlzs8.js +0 -95
  102. package/dist/pieDiagram-7S7Q4E2Y-Bqs8j5FX.js +0 -207
  103. package/dist/quadrantDiagram-CIZ2JOQS-jzP4lRrY.js +0 -1023
  104. package/dist/railroadDiagram-AXF67PYL-BSCyR24u.js +0 -77
  105. package/dist/renderer/mermaid-runtime.d.ts +0 -4
  106. package/dist/renderer/mermaid-runtime.d.ts.map +0 -1
  107. package/dist/requirementDiagram-LRYGKXZP-DmEkLYqX.js +0 -882
  108. package/dist/sankeyDiagram-W5VNT64P-CYvRYMTh.js +0 -847
  109. package/dist/sequenceDiagram-SI44F4Z6-CyWbDtPA.js +0 -2888
  110. package/dist/sizeCapture-X5ZJPWSS-xKhYCY84.js +0 -46
  111. package/dist/stateDiagram-OKZ733FA-DP44R2Dd.js +0 -263
  112. package/dist/stateDiagram-v2-UEYNNEHI-BvlOisND.js +0 -16
  113. package/dist/swimlanes-SLNWSIFB-BKFp8twH.js +0 -5332
  114. package/dist/swimlanesDiagram-ULZ7WXOC-CTvIFuHq.js +0 -13
  115. package/dist/timeline-definition-Z64GVDOM-B4137uIl.js +0 -1055
  116. package/dist/vennDiagram-T6HMQDX7-CPs8gXjx.js +0 -1578
  117. package/dist/wardleyDiagram-T6FBY63Y-BYp13hbI.js +0 -675
  118. package/dist/xychartDiagram-ELKLHX3M-DTT37K2u.js +0 -1388
@@ -1,340 +0,0 @@
1
- import { c as O, w as I, a as J, f as P, b as E, s as A } from "./chunk-RYQCIY6F-DmJAYxq8.js";
2
- import { _ as w, am as v, an as D, ao as H, ap as Y, l, c as _, aq as W, ar as $, ae as j, as as q, af as R, ad as F, at as z, au as K, av as G } from "./mermaid.core-CR0bA2Wa.js";
3
- import { G as Q } from "./graph-DAHC4kPm.js";
4
- import { l as U } from "./layout-DBbo_M5I.js";
5
- var C = /* @__PURE__ */ w((s, t, g) => Math.max(t, Math.min(g, s)), "clamp"), B = /* @__PURE__ */ w((s = "TB") => {
6
- switch (s) {
7
- case "BT":
8
- return "bottom";
9
- case "LR":
10
- return "right";
11
- case "RL":
12
- return "left";
13
- default:
14
- return "top";
15
- }
16
- }, "getDefaultSelfLoopSide"), V = /* @__PURE__ */ w((s) => s === "flowchart" || s === "flowchart-v2" || s === "stateDiagram", "shouldMergeSelfLoopSegments"), Z = /* @__PURE__ */ w((s, t, g, y, c) => {
17
- const o = [], r = /* @__PURE__ */ new Set();
18
- if (g.forEach(({ start: i, end: n }) => {
19
- i !== y && r.add(i), n !== y && r.add(n);
20
- }), r.forEach((i) => {
21
- const n = s.node(i);
22
- typeof n?.x == "number" && typeof n?.y == "number" && o.push(n);
23
- }), o.length === 0 && g.forEach(({ edge: i }) => {
24
- (i.points ?? []).forEach((n) => {
25
- typeof n?.x == "number" && typeof n?.y == "number" && o.push(n);
26
- });
27
- }), o.length === 0)
28
- return B(c);
29
- const f = o.reduce(
30
- (i, n) => ({
31
- x: i.x + n.x / o.length,
32
- y: i.y + n.y / o.length
33
- }),
34
- { x: 0, y: 0 }
35
- ), h = f.x - t.x, a = f.y - t.y;
36
- return Math.abs(h) > Math.abs(a) ? h > 0 ? "right" : "left" : Math.abs(a) > 0 ? a > 0 ? "bottom" : "top" : B(c);
37
- }, "getSelfLoopSide"), ee = /* @__PURE__ */ w((s, t = "top", g = 0, y = 0) => {
38
- const c = s.x, o = s.y - g, r = s.width / 2, f = s.height / 2, h = Math.max(36, Math.min(100, s.width * 0.8)), a = C(Math.max(y, s.width * 0.35), 36, h), i = C(Math.min(s.width, s.height) * 0.45, 24, 48);
39
- switch (t) {
40
- case "bottom": {
41
- const n = o + f;
42
- return [
43
- { x: c - a / 2, y: n },
44
- { x: c - a / 2, y: n + i },
45
- { x: c + a / 2, y: n + i },
46
- { x: c + a / 2, y: n }
47
- ];
48
- }
49
- case "right": {
50
- const n = c + r;
51
- return [
52
- { x: n, y: o - a / 2 },
53
- { x: n + i, y: o - a / 2 },
54
- { x: n + i, y: o + a / 2 },
55
- { x: n, y: o + a / 2 }
56
- ];
57
- }
58
- case "left": {
59
- const n = c - r;
60
- return [
61
- { x: n, y: o - a / 2 },
62
- { x: n - i, y: o - a / 2 },
63
- { x: n - i, y: o + a / 2 },
64
- { x: n, y: o + a / 2 }
65
- ];
66
- }
67
- default: {
68
- const n = o - f;
69
- return [
70
- { x: c - a / 2, y: n },
71
- { x: c - a / 2, y: n - i },
72
- { x: c + a / 2, y: n - i },
73
- { x: c + a / 2, y: n }
74
- ];
75
- }
76
- }
77
- }, "getSelfLoopPoints"), te = /* @__PURE__ */ w((s, t, g = "top", y = 0, c = {}) => {
78
- const r = s.x, f = s.y - y, h = c.width ?? 0, a = c.height ?? 0;
79
- switch (g) {
80
- case "bottom":
81
- return { x: r, y: Math.max(...t.map((i) => i.y)) + a / 2 + 4 };
82
- case "right":
83
- return { x: Math.max(...t.map((i) => i.x)) + h / 2 + 4, y: f };
84
- case "left":
85
- return { x: Math.min(...t.map((i) => i.x)) - h / 2 - 4, y: f };
86
- default:
87
- return { x: r, y: Math.min(...t.map((i) => i.y)) - a / 2 - 4 };
88
- }
89
- }, "getSelfLoopLabelPosition"), ne = /* @__PURE__ */ w((s, t = 0, { mergeSelfLoops: g = !0 } = {}) => {
90
- const y = /* @__PURE__ */ new Map(), c = [], o = s.graph()?.rankdir;
91
- return s.edges().forEach((r) => {
92
- const f = s.edge(r);
93
- if (g && f.selfLoop) {
94
- const h = f.selfLoop.id;
95
- y.has(h) || y.set(h, []), y.get(h).push({ edge: f, start: r.v, end: r.w });
96
- } else
97
- c.push({ edge: f, start: r.v, end: r.w });
98
- }), y.forEach((r) => {
99
- if (r.length !== 3) {
100
- r.forEach((L) => c.push(L));
101
- return;
102
- }
103
- r.sort((L, d) => L.edge.selfLoop.order - d.edge.selfLoop.order);
104
- const [f, h, a] = r, i = f.edge.originalEdge ?? h.edge.originalEdge ?? a.edge.originalEdge ?? h.edge, n = s.node(i.start);
105
- if (!n) {
106
- r.forEach((L) => c.push(L));
107
- return;
108
- }
109
- const p = {
110
- width: h.edge.width,
111
- height: h.edge.height
112
- }, m = Z(s, n, r, i.start, o), X = ee(n, m, t, p.width ?? 0), S = te(n, X, m, t, p), b = {
113
- ...h.edge,
114
- ...i,
115
- id: i.id,
116
- points: X,
117
- start: i.start,
118
- end: i.end,
119
- x: S.x,
120
- y: S.y,
121
- width: p.width,
122
- height: p.height,
123
- labelStyle: h.edge.labelStyle,
124
- fromCluster: f.edge.fromCluster ?? h.edge.fromCluster ?? a.edge.fromCluster,
125
- toCluster: f.edge.toCluster ?? h.edge.toCluster ?? a.edge.toCluster
126
- };
127
- delete b.selfLoop, delete b.originalEdge, c.push({ edge: b, start: b.start, end: b.end });
128
- }), c;
129
- }, "getEdgesToRender"), T = /* @__PURE__ */ w(async (s, t, g, y, c, o) => {
130
- l.warn("Graph in recursive render:XAX", I(t), c);
131
- const r = t.graph().rankdir;
132
- l.trace("Dir in recursive render - dir:", r);
133
- const f = s.insert("g").attr("class", "root");
134
- t.nodes() ? l.info("Recursive render XXX", t.nodes()) : l.info("No nodes found for", t), t.edges().length > 0 && l.info("Recursive edges", t.edge(t.edges()[0]));
135
- const h = f.insert("g").attr("class", "clusters"), a = f.insert("g").attr("class", "edgePaths"), i = f.insert("g").attr("class", "edgeLabels"), n = f.insert("g").attr("class", "nodes"), p = V(g);
136
- await Promise.all(
137
- t.nodes().map(async function(d) {
138
- const e = t.node(d);
139
- if (c !== void 0) {
140
- const u = JSON.parse(JSON.stringify(c.clusterData));
141
- l.trace(
142
- `Setting data for parent cluster XXX
143
- Node.id = `,
144
- d,
145
- `
146
- data=`,
147
- u.height,
148
- `
149
- Parent cluster`,
150
- c.height
151
- ), t.setNode(c.id, u), t.parent(d) || (l.trace("Setting parent", d, c.id), t.setParent(d, c.id, u));
152
- }
153
- if (l.info("(Insert) Node XXX" + d + ": " + JSON.stringify(t.node(d))), e?.clusterNode) {
154
- l.info("Cluster identified XBX", d, e.width, t.node(d));
155
- const { ranksep: u, nodesep: x } = t.graph();
156
- e.graph.setGraph({
157
- ...e.graph.graph(),
158
- ranksep: u + 25,
159
- nodesep: x
160
- });
161
- const N = await T(
162
- n,
163
- e.graph,
164
- g,
165
- y,
166
- t.node(d),
167
- o
168
- ), M = N.elem;
169
- W(e, M), e.diff = N.diff || 0, l.info(
170
- "New compound node after recursive render XAX",
171
- d,
172
- "width",
173
- // node,
174
- e.width,
175
- "height",
176
- e.height
177
- // node.x,
178
- // node.y
179
- ), $(M, e);
180
- } else
181
- t.children(d).length > 0 ? (l.trace(
182
- "Cluster - the non recursive path XBX",
183
- d,
184
- e.id,
185
- e,
186
- e.width,
187
- "Graph:",
188
- t
189
- ), l.trace(P(e.id, t)), E.set(e.id, { id: P(e.id, t), node: e })) : (l.trace("Node - the non recursive path XAX", d, n, t.node(d), r), await j(n, t.node(d), { config: o, dir: r }));
190
- })
191
- ), await (/* @__PURE__ */ w(async () => {
192
- const d = t.edges().map(async function(e) {
193
- const u = t.edge(e.v, e.w, e.name);
194
- if (l.info("Edge " + e.v + " -> " + e.w + ": " + JSON.stringify(e)), l.info("Edge " + e.v + " -> " + e.w + ": ", e, " ", JSON.stringify(t.edge(e))), l.info(
195
- "Fix",
196
- E,
197
- "ids:",
198
- e.v,
199
- e.w,
200
- "Translating: ",
201
- E.get(e.v),
202
- E.get(e.w)
203
- ), p && u.selfLoop) {
204
- if (u.selfLoop.order !== 1)
205
- return;
206
- const x = u.id;
207
- u.id = u.selfLoop.id, await G(i, u), u.id = x;
208
- return;
209
- }
210
- await G(i, u);
211
- });
212
- await Promise.all(d);
213
- }, "processEdges"))(), l.info("Graph before layout:", JSON.stringify(I(t))), l.info("############################################# XXX"), l.info("### Layout ### XXX"), l.info("############################################# XXX"), U(t), l.info("Graph after layout:", JSON.stringify(I(t)));
214
- let X = 0, { subGraphTitleTotalMargin: S } = q(o);
215
- await Promise.all(
216
- A(t).map(async function(d) {
217
- const e = t.node(d);
218
- if (l.info(
219
- "Position XBX => " + d + ": (" + e.x,
220
- "," + e.y,
221
- ") width: ",
222
- e.width,
223
- " height: ",
224
- e.height
225
- ), e?.clusterNode)
226
- e.y += S, l.info(
227
- "A tainted cluster node XBX1",
228
- d,
229
- e.id,
230
- e.width,
231
- e.height,
232
- e.x,
233
- e.y,
234
- t.parent(d)
235
- ), E.get(e.id).node = e, R(e);
236
- else if (t.children(d).length > 0) {
237
- l.info(
238
- "A pure cluster node XBX1",
239
- d,
240
- e.id,
241
- e.x,
242
- e.y,
243
- e.width,
244
- e.height,
245
- t.parent(d)
246
- ), e.height += S, t.node(e.parentId);
247
- const u = e?.padding / 2 || 0, x = e?.labelBBox?.height || 0, N = x - u || 0;
248
- l.debug("OffsetY", N, "labelHeight", x, "halfPadding", u), await F(h, e), E.get(e.id).node = e;
249
- } else {
250
- const u = t.node(e.parentId);
251
- e.y += S / 2, l.info(
252
- "A regular node XBX1 - using the padding",
253
- e.id,
254
- "parent",
255
- e.parentId,
256
- e.width,
257
- e.height,
258
- e.x,
259
- e.y,
260
- "offsetY",
261
- e.offsetY,
262
- "parent",
263
- u,
264
- u?.offsetY,
265
- e
266
- ), R(e);
267
- }
268
- })
269
- );
270
- const b = S / 2;
271
- return ne(t, b, { mergeSelfLoops: p }).forEach(function({ edge: d, start: e, end: u }) {
272
- l.info("Edge " + e + " -> " + u + ": " + JSON.stringify(d), d), d.points.forEach((k) => k.y += b);
273
- const x = t.node(e), N = t.node(u), M = z(a, d, E, g, x, N, y);
274
- K(d, M);
275
- }), t.nodes().forEach(function(d) {
276
- const e = t.node(d);
277
- l.info(d, e.type, e.diff), e.isGroup && (X = e.diff);
278
- }), l.warn("Returning from recursive render XAX", f, X), { elem: f, diff: X };
279
- }, "recursiveRender"), de = /* @__PURE__ */ w(async (s, t) => {
280
- const g = new Q({
281
- multigraph: !0,
282
- compound: !0
283
- }).setGraph({
284
- rankdir: s.direction,
285
- nodesep: s.config?.nodeSpacing || s.config?.flowchart?.nodeSpacing || s.nodeSpacing,
286
- ranksep: s.config?.rankSpacing || s.config?.flowchart?.rankSpacing || s.rankSpacing,
287
- marginx: 8,
288
- marginy: 8
289
- }).setDefaultEdgeLabel(function() {
290
- return {};
291
- }), y = t.select("g");
292
- v(y, s.markers, s.type, s.diagramId), D(), H(), Y(), O(), s.nodes.forEach((o) => {
293
- g.setNode(o.id, { ...o }), o.parentId && g.setParent(o.id, o.parentId);
294
- }), l.debug("Edges:", s.edges), s.edges.forEach((o) => {
295
- if (o.start === o.end) {
296
- const r = o.start, f = r + "---" + r + "---1", h = r + "---" + r + "---2", a = g.node(r);
297
- g.setNode(f, {
298
- domId: f,
299
- id: f,
300
- parentId: a.parentId,
301
- labelStyle: "",
302
- label: "",
303
- padding: 0,
304
- shape: "labelRect",
305
- // shape: 'rect',
306
- style: "",
307
- width: 10,
308
- height: 10
309
- }), g.setParent(f, a.parentId), g.setNode(h, {
310
- domId: h,
311
- id: h,
312
- parentId: a.parentId,
313
- labelStyle: "",
314
- padding: 0,
315
- // shape: 'rect',
316
- shape: "labelRect",
317
- label: "",
318
- style: "",
319
- width: 10,
320
- height: 10
321
- }), g.setParent(h, a.parentId);
322
- const i = structuredClone(o), n = structuredClone(o), p = structuredClone(o), m = structuredClone(o);
323
- n.originalEdge = i, n.selfLoop = { id: i.id, order: 0 }, p.originalEdge = i, p.selfLoop = { id: i.id, order: 1 }, m.originalEdge = i, m.selfLoop = { id: i.id, order: 2 }, n.label = "", n.arrowTypeEnd = "none", n.endLabelLeft = "", n.endLabelRight = "", n.startLabelLeft = "", n.id = r + "-cyclic-special-1", p.startLabelRight = "", p.startLabelLeft = "", p.endLabelLeft = "", p.endLabelRight = "", p.arrowTypeStart = "none", p.arrowTypeEnd = "none", p.id = r + "-cyclic-special-mid", m.label = "", m.startLabelRight = "", m.startLabelLeft = "", m.arrowTypeStart = "none", a.isGroup && (n.fromCluster = r, m.toCluster = r), m.id = r + "-cyclic-special-2", m.arrowTypeStart = "none", g.setEdge(r, f, n, r + "-cyclic-special-0"), g.setEdge(f, h, p, r + "-cyclic-special-1"), g.setEdge(h, r, m, r + "-cyclic-special-2");
324
- } else
325
- g.setEdge(o.start, o.end, { ...o }, o.id);
326
- }), l.warn("Graph at first:", JSON.stringify(I(g))), J(g), l.warn("Graph after XAX:", JSON.stringify(I(g)));
327
- const c = _();
328
- await T(
329
- y,
330
- g,
331
- s.type,
332
- s.diagramId,
333
- void 0,
334
- c
335
- );
336
- }, "render");
337
- export {
338
- ne as getEdgesToRender,
339
- de as render
340
- };
@@ -1,171 +0,0 @@
1
- function J(n) {
2
- return Math.abs(n = Math.round(n)) >= 1e21 ? n.toLocaleString("en").replace(/,/g, "") : n.toString(10);
3
- }
4
- function j(n, t) {
5
- if (!isFinite(n) || n === 0) return null;
6
- var e = (n = t ? n.toExponential(t - 1) : n.toExponential()).indexOf("e"), i = n.slice(0, e);
7
- return [
8
- i.length > 1 ? i[0] + i.slice(2) : i,
9
- +n.slice(e + 1)
10
- ];
11
- }
12
- function K(n) {
13
- return n = j(Math.abs(n)), n ? n[1] : NaN;
14
- }
15
- function Q(n, t) {
16
- return function(e, i) {
17
- for (var o = e.length, a = [], c = 0, h = n[0], M = 0; o > 0 && h > 0 && (M + h + 1 > i && (h = Math.max(1, i - M)), a.push(e.substring(o -= h, o + h)), !((M += h + 1) > i)); )
18
- h = n[c = (c + 1) % n.length];
19
- return a.reverse().join(t);
20
- };
21
- }
22
- function V(n) {
23
- return function(t) {
24
- return t.replace(/[0-9]/g, function(e) {
25
- return n[+e];
26
- });
27
- };
28
- }
29
- var W = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
30
- function $(n) {
31
- if (!(t = W.exec(n))) throw new Error("invalid format: " + n);
32
- var t;
33
- return new L({
34
- fill: t[1],
35
- align: t[2],
36
- sign: t[3],
37
- symbol: t[4],
38
- zero: t[5],
39
- width: t[6],
40
- comma: t[7],
41
- precision: t[8] && t[8].slice(1),
42
- trim: t[9],
43
- type: t[10]
44
- });
45
- }
46
- $.prototype = L.prototype;
47
- function L(n) {
48
- this.fill = n.fill === void 0 ? " " : n.fill + "", this.align = n.align === void 0 ? ">" : n.align + "", this.sign = n.sign === void 0 ? "-" : n.sign + "", this.symbol = n.symbol === void 0 ? "" : n.symbol + "", this.zero = !!n.zero, this.width = n.width === void 0 ? void 0 : +n.width, this.comma = !!n.comma, this.precision = n.precision === void 0 ? void 0 : +n.precision, this.trim = !!n.trim, this.type = n.type === void 0 ? "" : n.type + "";
49
- }
50
- L.prototype.toString = function() {
51
- return this.fill + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (this.width === void 0 ? "" : Math.max(1, this.width | 0)) + (this.comma ? "," : "") + (this.precision === void 0 ? "" : "." + Math.max(0, this.precision | 0)) + (this.trim ? "~" : "") + this.type;
52
- };
53
- function _(n) {
54
- n: for (var t = n.length, e = 1, i = -1, o; e < t; ++e)
55
- switch (n[e]) {
56
- case ".":
57
- i = o = e;
58
- break;
59
- case "0":
60
- i === 0 && (i = e), o = e;
61
- break;
62
- default:
63
- if (!+n[e]) break n;
64
- i > 0 && (i = 0);
65
- break;
66
- }
67
- return i > 0 ? n.slice(0, i) + n.slice(o + 1) : n;
68
- }
69
- var N;
70
- function v(n, t) {
71
- var e = j(n, t);
72
- if (!e) return N = void 0, n.toPrecision(t);
73
- var i = e[0], o = e[1], a = o - (N = Math.max(-8, Math.min(8, Math.floor(o / 3))) * 3) + 1, c = i.length;
74
- return a === c ? i : a > c ? i + new Array(a - c + 1).join("0") : a > 0 ? i.slice(0, a) + "." + i.slice(a) : "0." + new Array(1 - a).join("0") + j(n, Math.max(0, t + a - 1))[0];
75
- }
76
- function X(n, t) {
77
- var e = j(n, t);
78
- if (!e) return n + "";
79
- var i = e[0], o = e[1];
80
- return o < 0 ? "0." + new Array(-o).join("0") + i : i.length > o + 1 ? i.slice(0, o + 1) + "." + i.slice(o + 1) : i + new Array(o - i.length + 2).join("0");
81
- }
82
- const O = {
83
- "%": (n, t) => (n * 100).toFixed(t),
84
- b: (n) => Math.round(n).toString(2),
85
- c: (n) => n + "",
86
- d: J,
87
- e: (n, t) => n.toExponential(t),
88
- f: (n, t) => n.toFixed(t),
89
- g: (n, t) => n.toPrecision(t),
90
- o: (n) => Math.round(n).toString(8),
91
- p: (n, t) => X(n * 100, t),
92
- r: X,
93
- s: v,
94
- X: (n) => Math.round(n).toString(16).toUpperCase(),
95
- x: (n) => Math.round(n).toString(16)
96
- };
97
- function R(n) {
98
- return n;
99
- }
100
- var U = Array.prototype.map, Y = ["y", "z", "a", "f", "p", "n", "µ", "m", "", "k", "M", "G", "T", "P", "E", "Z", "Y"];
101
- function nn(n) {
102
- var t = n.grouping === void 0 || n.thousands === void 0 ? R : Q(U.call(n.grouping, Number), n.thousands + ""), e = n.currency === void 0 ? "" : n.currency[0] + "", i = n.currency === void 0 ? "" : n.currency[1] + "", o = n.decimal === void 0 ? "." : n.decimal + "", a = n.numerals === void 0 ? R : V(U.call(n.numerals, String)), c = n.percent === void 0 ? "%" : n.percent + "", h = n.minus === void 0 ? "−" : n.minus + "", M = n.nan === void 0 ? "NaN" : n.nan + "";
103
- function T(f, g) {
104
- f = $(f);
105
- var b = f.fill, p = f.align, m = f.sign, w = f.symbol, S = f.zero, E = f.width, F = f.comma, y = f.precision, C = f.trim, d = f.type;
106
- d === "n" ? (F = !0, d = "g") : O[d] || (y === void 0 && (y = 12), C = !0, d = "g"), (S || b === "0" && p === "=") && (S = !0, b = "0", p = "=");
107
- var q = (g && g.prefix !== void 0 ? g.prefix : "") + (w === "$" ? e : w === "#" && /[boxX]/.test(d) ? "0" + d.toLowerCase() : ""), B = (w === "$" ? i : /[%p]/.test(d) ? c : "") + (g && g.suffix !== void 0 ? g.suffix : ""), D = O[d], H = /[defgprs%]/.test(d);
108
- y = y === void 0 ? 6 : /[gprs]/.test(d) ? Math.max(1, Math.min(21, y)) : Math.max(0, Math.min(20, y));
109
- function G(r) {
110
- var l = q, u = B, x, I, k;
111
- if (d === "c")
112
- u = D(r) + u, r = "";
113
- else {
114
- r = +r;
115
- var P = r < 0 || 1 / r < 0;
116
- if (r = isNaN(r) ? M : D(Math.abs(r), y), C && (r = _(r)), P && +r == 0 && m !== "+" && (P = !1), l = (P ? m === "(" ? m : h : m === "-" || m === "(" ? "" : m) + l, u = (d === "s" && !isNaN(r) && N !== void 0 ? Y[8 + N / 3] : "") + u + (P && m === "(" ? ")" : ""), H) {
117
- for (x = -1, I = r.length; ++x < I; )
118
- if (k = r.charCodeAt(x), 48 > k || k > 57) {
119
- u = (k === 46 ? o + r.slice(x + 1) : r.slice(x)) + u, r = r.slice(0, x);
120
- break;
121
- }
122
- }
123
- }
124
- F && !S && (r = t(r, 1 / 0));
125
- var z = l.length + r.length + u.length, s = z < E ? new Array(E - z + 1).join(b) : "";
126
- switch (F && S && (r = t(s + r, s.length ? E - u.length : 1 / 0), s = ""), p) {
127
- case "<":
128
- r = l + r + u + s;
129
- break;
130
- case "=":
131
- r = l + s + r + u;
132
- break;
133
- case "^":
134
- r = s.slice(0, z = s.length >> 1) + l + r + u + s.slice(z);
135
- break;
136
- default:
137
- r = s + l + r + u;
138
- break;
139
- }
140
- return a(r);
141
- }
142
- return G.toString = function() {
143
- return f + "";
144
- }, G;
145
- }
146
- function Z(f, g) {
147
- var b = Math.max(-8, Math.min(8, Math.floor(K(g) / 3))) * 3, p = Math.pow(10, -b), m = T((f = $(f), f.type = "f", f), { suffix: Y[8 + b / 3] });
148
- return function(w) {
149
- return m(p * w);
150
- };
151
- }
152
- return {
153
- format: T,
154
- formatPrefix: Z
155
- };
156
- }
157
- var A, tn, rn;
158
- en({
159
- thousands: ",",
160
- grouping: [3],
161
- currency: ["$", ""]
162
- });
163
- function en(n) {
164
- return A = nn(n), tn = A.format, rn = A.formatPrefix, A;
165
- }
166
- export {
167
- rn as a,
168
- tn as b,
169
- K as e,
170
- $ as f
171
- };