@kong-ui-public/documentation 1.1.2 → 1.1.4
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/{_basePickBy-zlkqRmFy-CQP0PMRw.js → _basePickBy-zlkqRmFy-Dq-PK6tA.js} +27 -27
- package/dist/_baseUniq-SAfYgIkf-DhYxnvgt.js +614 -0
- package/dist/{arc-CK9P6CkJ-B3oiAYoG.js → arc-CK9P6CkJ-lihx_wEv.js} +31 -31
- package/dist/{architecture-I3QFYML2-DJzmbE4M-BYAx4I-4.js → architecture-I3QFYML2-DJzmbE4M-B5s0Q1wg.js} +1 -1
- package/dist/{architectureDiagram-UYN6MBPD-DkZdgpXi-BC7nb0IZ.js → architectureDiagram-UYN6MBPD-DkZdgpXi-CC-fAW7y.js} +850 -850
- package/dist/{blockDiagram-ZHA2E4KO-DnCMGCMN-CU7ARVHN.js → blockDiagram-ZHA2E4KO-DnCMGCMN-B9tod6Dk.js} +477 -477
- package/dist/{c4Diagram-6F5ED5ID-D5yqWyf0-DEuKG0sN.js → c4Diagram-6F5ED5ID-D5yqWyf0-B1iuFSQ1.js} +203 -203
- package/dist/{channel-bVcNKbrJ-C4S-4qV3.js → channel-bVcNKbrJ-DEGmvXXN.js} +1 -1
- package/dist/{chunk-5HRBRIJM-BjQ8go1b-733bxiZ-.js → chunk-5HRBRIJM-BjQ8go1b-BszOhLz8.js} +4 -4
- package/dist/{chunk-7U56Z5CX-awhAxjZ0-DpUJ4fo1.js → chunk-7U56Z5CX-awhAxjZ0-CHd4qyz3.js} +120 -120
- package/dist/{chunk-ASOPGD6M-B5bA_saK-C3yF9T7p.js → chunk-ASOPGD6M-B5bA_saK-RaS3hIfR.js} +1 -1
- package/dist/{chunk-KFBOBJHC-nixdujtH-B4639Jmi.js → chunk-KFBOBJHC-nixdujtH-DCajFn7e.js} +1 -1
- package/dist/{chunk-T2TOU4HS-DqOVhIzl-piSN2Cjl.js → chunk-T2TOU4HS-DqOVhIzl-1waDvYDY.js} +229 -229
- package/dist/{chunk-TMUBEWPD-BRIzn5gH-SlHeKBx9.js → chunk-TMUBEWPD-BRIzn5gH-Ch1SRQ7H.js} +1 -1
- package/dist/{classDiagram-LNE6IOMH-fQzyXfo--C9LjXboP.js → classDiagram-LNE6IOMH-fQzyXfo--BpuwdnmV.js} +4 -4
- package/dist/{classDiagram-v2-MQ7JQ4JX-fQzyXfo--C9LjXboP.js → classDiagram-v2-MQ7JQ4JX-fQzyXfo--BpuwdnmV.js} +4 -4
- package/dist/{clone-_5SW34SG-DtUOH1l1.js → clone-_5SW34SG-BWxdvZXA.js} +1 -1
- package/dist/{cytoscape.esm-DAyNQ0qu-B7WxGuVh.js → cytoscape.esm-DAyNQ0qu-i5PnoWfE.js} +976 -976
- package/dist/{dagre-4EVJKHTY-CcAruc30-DaOjmyb6.js → dagre-4EVJKHTY-CcAruc30-H9W22Yky.js} +85 -85
- package/dist/{diagram-QW4FP2JN-DZT_0aFO-YCKYx1k-.js → diagram-QW4FP2JN-DZT_0aFO-AmG94tp5.js} +21 -21
- package/dist/documentation.es.js +1 -1
- package/dist/{erDiagram-6RL3IURR-BfgUC5jv-CS9Q9iKF.js → erDiagram-6RL3IURR-BfgUC5jv-BNzxBFoY.js} +201 -201
- package/dist/{flowDiagram-7ASYPVHJ-Bo9CnsE7-CkM-DJdr.js → flowDiagram-7ASYPVHJ-Bo9CnsE7-CSLq7kw9.js} +222 -222
- package/dist/{ganttDiagram-NTVNEXSI-8E9hjd6N-iN-VNXrV.js → ganttDiagram-NTVNEXSI-8E9hjd6N-CjQQCbaM.js} +16 -16
- package/dist/{gitGraph-YCYPL57B-BnErPIwo-DWobPBzL.js → gitGraph-YCYPL57B-BnErPIwo-DxQPpoWq.js} +1 -1
- package/dist/{gitGraphDiagram-NRZ2UAAF-B-t90-9e-Co4q5oQK.js → gitGraphDiagram-NRZ2UAAF-B-t90-9e-B6JY8bWo.js} +17 -17
- package/dist/{graph-BYZMvqpu-BpeF1PUA.js → graph-BYZMvqpu-CWGqkYZM.js} +43 -43
- package/dist/{index-ZM4BlVwk.js → index-BXOX6oou.js} +3487 -3487
- package/dist/{info-46DW6VJ7-DPpbx_vA-CnDg11wg.js → info-46DW6VJ7-DPpbx_vA-BmAPar7H.js} +1 -1
- package/dist/{infoDiagram-A4XQUW5V-Bo9uoOcA-WvvF1295.js → infoDiagram-A4XQUW5V-Bo9uoOcA-CtFRRRot.js} +2 -2
- package/dist/{journeyDiagram-G5WM74LC-BE7U42Ad-BFF_wJwi.js → journeyDiagram-G5WM74LC-BE7U42Ad-of9fN5Vr.js} +173 -173
- package/dist/{kanban-definition-QRCXZQQD-C-5-UNRm-LjA3yK5r.js → kanban-definition-QRCXZQQD-C-5-UNRm-DecJsseT.js} +168 -168
- package/dist/{katex-Qk2jHgyB-CF_fuFJb.js → katex-Qk2jHgyB-_qyJ_37x.js} +1054 -1054
- package/dist/{layout-BHI4imdk-DgoNZaqw.js → layout-BHI4imdk-BlkmyDbe.js} +19 -19
- package/dist/{linear-C2PheBya-wGRbEA3e.js → linear-C2PheBya-DijeUNjP.js} +2 -2
- package/dist/{mermaid-parser.core-Ce96PX3Q-DPc-bPXG.js → mermaid-parser.core-Ce96PX3Q-DtNzRUJ7.js} +32 -32
- package/dist/{mindmap-definition-GWI6TPTV-C98Syvj2-DOvfo2r8.js → mindmap-definition-GWI6TPTV-C98Syvj2-Btvji3Oh.js} +421 -421
- package/dist/{packet-W2GHVCYJ-BLiQbm7T-DbS7CM6G.js → packet-W2GHVCYJ-BLiQbm7T-E8ztaW67.js} +1 -1
- package/dist/{pie-BEWT4RHE-D3Mbo3mT-DB-aeuYE.js → pie-BEWT4RHE-D3Mbo3mT-BGVGE8TE.js} +1 -1
- package/dist/{pieDiagram-YF2LJOPJ-BJV27s9B-DS-nBsbY.js → pieDiagram-YF2LJOPJ-BJV27s9B-DVrzAwZP.js} +20 -20
- package/dist/{quadrantDiagram-OS5C2QUG-M57vVPSx-DMjI1wdt.js → quadrantDiagram-OS5C2QUG-M57vVPSx-DrN-qVPg.js} +131 -131
- package/dist/{requirementDiagram-MIRIMTAZ-D0KDg7rf-DeEsJ26T.js → requirementDiagram-MIRIMTAZ-D0KDg7rf-FCJNuddX.js} +77 -77
- package/dist/{sankeyDiagram-Y46BX6SQ-D6EdYPdp-BA6cRE1h.js → sankeyDiagram-Y46BX6SQ-D6EdYPdp-ClC_w0Hg.js} +108 -108
- package/dist/{sequenceDiagram-G6AWOVSC-B171TAb1-DMtStdxJ.js → sequenceDiagram-G6AWOVSC-B171TAb1-B6jBix6L.js} +181 -181
- package/dist/{stateDiagram-MAYHULR4-D7FUnT9_-Du3mnoL2.js → stateDiagram-MAYHULR4-D7FUnT9_-B7dSTUAT.js} +81 -81
- package/dist/{stateDiagram-v2-4JROLMXI-Cyc74STT-DR1h52WB.js → stateDiagram-v2-4JROLMXI-Cyc74STT-BhUBvhmS.js} +4 -4
- package/dist/{timeline-definition-U7ZMHBDA-Bw-dp1yf-BO9wUMSJ.js → timeline-definition-U7ZMHBDA-Bw-dp1yf-DAx9hgzp.js} +126 -126
- package/dist/{xychartDiagram-6QU3TZC5-CqbTSF5W-CwiL6udJ.js → xychartDiagram-6QU3TZC5-CqbTSF5W-Dy5Ia8cd.js} +70 -70
- package/package.json +2 -2
- package/dist/_baseUniq-SAfYgIkf-BO_CV6Oz.js +0 -614
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _ as
|
|
3
|
-
import { L as _ } from "./graph-BYZMvqpu-
|
|
4
|
-
import { o as $ } from "./layout-BHI4imdk-
|
|
5
|
-
var T = {}, W = /* @__PURE__ */
|
|
1
|
+
import { I as G, R as N, A as I } from "./chunk-7U56Z5CX-awhAxjZ0-CHd4qyz3.js";
|
|
2
|
+
import { _ as u, g as t, a9 as M, l as S, aa as O, ag as H, ay as P, az as U, ao as C } from "./index-BXOX6oou.js";
|
|
3
|
+
import { L as _ } from "./graph-BYZMvqpu-CWGqkYZM.js";
|
|
4
|
+
import { o as $ } from "./layout-BHI4imdk-BlkmyDbe.js";
|
|
5
|
+
var T = {}, W = /* @__PURE__ */ u((e, n) => {
|
|
6
6
|
T[e] = n;
|
|
7
|
-
}, "set"), j = /* @__PURE__ */
|
|
7
|
+
}, "set"), j = /* @__PURE__ */ u((e) => T[e], "get"), D = /* @__PURE__ */ u(() => Object.keys(T), "keys"), F = /* @__PURE__ */ u(() => D().length, "size"), J = {
|
|
8
8
|
get: j,
|
|
9
9
|
set: W,
|
|
10
10
|
keys: D,
|
|
11
11
|
size: F
|
|
12
|
-
}, Y = /* @__PURE__ */
|
|
13
|
-
const o = e.append("text").attr("x", 2 * t().state.padding).attr("y", t().state.textHeight + 2 * t().state.padding).attr("font-size", t().state.fontSize).attr("class", "state-title").text(n.id),
|
|
14
|
-
return e.insert("rect", ":first-child").attr("x", t().state.padding).attr("y", t().state.padding).attr("width",
|
|
15
|
-
}, "drawSimpleState"), Z = /* @__PURE__ */
|
|
16
|
-
const o = /* @__PURE__ */
|
|
17
|
-
const m = g.append("tspan").attr("x", 2 * t().state.padding).text(
|
|
12
|
+
}, Y = /* @__PURE__ */ u((e) => e.append("circle").attr("class", "start-state").attr("r", t().state.sizeUnit).attr("cx", t().state.padding + t().state.sizeUnit).attr("cy", t().state.padding + t().state.sizeUnit), "drawStartState"), q = /* @__PURE__ */ u((e) => e.append("line").style("stroke", "grey").style("stroke-dasharray", "3").attr("x1", t().state.textHeight).attr("class", "divider").attr("x2", t().state.textHeight * 2).attr("y1", 0).attr("y2", 0), "drawDivider"), X = /* @__PURE__ */ u((e, n) => {
|
|
13
|
+
const o = e.append("text").attr("x", 2 * t().state.padding).attr("y", t().state.textHeight + 2 * t().state.padding).attr("font-size", t().state.fontSize).attr("class", "state-title").text(n.id), r = o.node().getBBox();
|
|
14
|
+
return e.insert("rect", ":first-child").attr("x", t().state.padding).attr("y", t().state.padding).attr("width", r.width + 2 * t().state.padding).attr("height", r.height + 2 * t().state.padding).attr("rx", t().state.radius), o;
|
|
15
|
+
}, "drawSimpleState"), Z = /* @__PURE__ */ u((e, n) => {
|
|
16
|
+
const o = /* @__PURE__ */ u(function(g, f, B) {
|
|
17
|
+
const m = g.append("tspan").attr("x", 2 * t().state.padding).text(f);
|
|
18
18
|
B || m.attr("dy", t().state.textHeight);
|
|
19
|
-
}, "addTspan"),
|
|
19
|
+
}, "addTspan"), r = e.append("text").attr("x", 2 * t().state.padding).attr("y", t().state.textHeight + 1.3 * t().state.padding).attr("font-size", t().state.fontSize).attr("class", "state-title").text(n.descriptions[0]).node().getBBox(), d = r.height, l = e.append("text").attr("x", t().state.padding).attr(
|
|
20
20
|
"y",
|
|
21
21
|
d + t().state.padding * 0.4 + t().state.dividerMargin + t().state.textHeight
|
|
22
22
|
).attr("class", "state-description");
|
|
@@ -24,65 +24,65 @@ var T = {}, W = /* @__PURE__ */ f((e, n) => {
|
|
|
24
24
|
n.descriptions.forEach(function(g) {
|
|
25
25
|
h || (o(l, g, a), a = !1), h = !1;
|
|
26
26
|
});
|
|
27
|
-
const
|
|
28
|
-
return
|
|
29
|
-
}, "drawDescrState"), K = /* @__PURE__ */
|
|
30
|
-
const
|
|
27
|
+
const s = e.append("line").attr("x1", t().state.padding).attr("y1", t().state.padding + d + t().state.dividerMargin / 2).attr("y2", t().state.padding + d + t().state.dividerMargin / 2).attr("class", "descr-divider"), x = l.node().getBBox(), p = Math.max(x.width, r.width);
|
|
28
|
+
return s.attr("x2", p + 3 * t().state.padding), e.insert("rect", ":first-child").attr("x", t().state.padding).attr("y", t().state.padding).attr("width", p + 2 * t().state.padding).attr("height", x.height + d + 2 * t().state.padding).attr("rx", t().state.radius), e;
|
|
29
|
+
}, "drawDescrState"), K = /* @__PURE__ */ u((e, n, o) => {
|
|
30
|
+
const r = t().state.padding, d = 2 * t().state.padding, l = e.node().getBBox(), h = l.width, a = l.x, s = e.append("text").attr("x", 0).attr("y", t().state.titleShift).attr("font-size", t().state.fontSize).attr("class", "state-title").text(n.id), x = s.node().getBBox().width + d;
|
|
31
31
|
let p = Math.max(x, h);
|
|
32
32
|
p === h && (p = p + d);
|
|
33
33
|
let g;
|
|
34
|
-
const
|
|
35
|
-
n.doc, g = a -
|
|
34
|
+
const f = e.node().getBBox();
|
|
35
|
+
n.doc, g = a - r, x > h && (g = (h - p) / 2 + r), Math.abs(a - f.x) < r && x > h && (g = a - (x - h) / 2);
|
|
36
36
|
const B = 1 - t().state.textHeight;
|
|
37
37
|
return e.insert("rect", ":first-child").attr("x", g).attr("y", B).attr("class", o ? "alt-composit" : "composit").attr("width", p).attr(
|
|
38
38
|
"height",
|
|
39
|
-
|
|
40
|
-
).attr("rx", "0"),
|
|
39
|
+
f.height + t().state.textHeight + t().state.titleShift + 1
|
|
40
|
+
).attr("rx", "0"), s.attr("x", g + r), x <= h && s.attr("x", a + (p - d) / 2 - x / 2 + r), e.insert("rect", ":first-child").attr("x", g).attr(
|
|
41
41
|
"y",
|
|
42
42
|
t().state.titleShift - t().state.textHeight - t().state.padding
|
|
43
43
|
).attr("width", p).attr("height", t().state.textHeight * 3).attr("rx", t().state.radius), e.insert("rect", ":first-child").attr("x", g).attr(
|
|
44
44
|
"y",
|
|
45
45
|
t().state.titleShift - t().state.textHeight - t().state.padding
|
|
46
|
-
).attr("width", p).attr("height",
|
|
47
|
-
}, "addTitleAndBox"), Q = /* @__PURE__ */
|
|
46
|
+
).attr("width", p).attr("height", f.height + 3 + 2 * t().state.textHeight).attr("rx", t().state.radius), e;
|
|
47
|
+
}, "addTitleAndBox"), Q = /* @__PURE__ */ u((e) => (e.append("circle").attr("class", "end-state-outer").attr("r", t().state.sizeUnit + t().state.miniPadding).attr(
|
|
48
48
|
"cx",
|
|
49
49
|
t().state.padding + t().state.sizeUnit + t().state.miniPadding
|
|
50
50
|
).attr(
|
|
51
51
|
"cy",
|
|
52
52
|
t().state.padding + t().state.sizeUnit + t().state.miniPadding
|
|
53
|
-
), e.append("circle").attr("class", "end-state-inner").attr("r", t().state.sizeUnit).attr("cx", t().state.padding + t().state.sizeUnit + 2).attr("cy", t().state.padding + t().state.sizeUnit + 2)), "drawEndState"), V = /* @__PURE__ */
|
|
54
|
-
let o = t().state.forkWidth,
|
|
53
|
+
), e.append("circle").attr("class", "end-state-inner").attr("r", t().state.sizeUnit).attr("cx", t().state.padding + t().state.sizeUnit + 2).attr("cy", t().state.padding + t().state.sizeUnit + 2)), "drawEndState"), V = /* @__PURE__ */ u((e, n) => {
|
|
54
|
+
let o = t().state.forkWidth, r = t().state.forkHeight;
|
|
55
55
|
if (n.parentId) {
|
|
56
56
|
let d = o;
|
|
57
|
-
o =
|
|
57
|
+
o = r, r = d;
|
|
58
58
|
}
|
|
59
|
-
return e.append("rect").style("stroke", "black").style("fill", "black").attr("width", o).attr("height",
|
|
60
|
-
}, "drawForkJoinState"), tt = /* @__PURE__ */
|
|
59
|
+
return e.append("rect").style("stroke", "black").style("fill", "black").attr("width", o).attr("height", r).attr("x", t().state.padding).attr("y", t().state.padding);
|
|
60
|
+
}, "drawForkJoinState"), tt = /* @__PURE__ */ u((e, n, o, r) => {
|
|
61
61
|
let d = 0;
|
|
62
|
-
const l =
|
|
62
|
+
const l = r.append("text");
|
|
63
63
|
l.style("text-anchor", "start"), l.attr("class", "noteText");
|
|
64
64
|
let h = e.replace(/\r\n/g, "<br/>");
|
|
65
65
|
h = h.replace(/\n/g, "<br/>");
|
|
66
66
|
const a = h.split(H.lineBreakRegex);
|
|
67
|
-
let
|
|
67
|
+
let s = 1.25 * t().state.noteMargin;
|
|
68
68
|
for (const x of a) {
|
|
69
69
|
const p = x.trim();
|
|
70
70
|
if (p.length > 0) {
|
|
71
71
|
const g = l.append("tspan");
|
|
72
|
-
if (g.text(p),
|
|
73
|
-
const
|
|
74
|
-
|
|
72
|
+
if (g.text(p), s === 0) {
|
|
73
|
+
const f = g.node().getBBox();
|
|
74
|
+
s += f.height;
|
|
75
75
|
}
|
|
76
|
-
d +=
|
|
76
|
+
d += s, g.attr("x", n + t().state.noteMargin), g.attr("y", o + d + 1.25 * t().state.noteMargin);
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
return { textWidth: l.node().getBBox().width, textHeight: d };
|
|
80
|
-
}, "_drawLongText"), et = /* @__PURE__ */
|
|
80
|
+
}, "_drawLongText"), et = /* @__PURE__ */ u((e, n) => {
|
|
81
81
|
n.attr("class", "state-note");
|
|
82
|
-
const o = n.append("rect").attr("x", 0).attr("y", t().state.padding),
|
|
82
|
+
const o = n.append("rect").attr("x", 0).attr("y", t().state.padding), r = n.append("g"), { textWidth: d, textHeight: l } = tt(e, 0, 0, r);
|
|
83
83
|
return o.attr("height", l + 2 * t().state.noteMargin), o.attr("width", d + t().state.noteMargin * 2), o;
|
|
84
|
-
}, "drawNote"), L = /* @__PURE__ */
|
|
85
|
-
const o = n.id,
|
|
84
|
+
}, "drawNote"), L = /* @__PURE__ */ u(function(e, n) {
|
|
85
|
+
const o = n.id, r = {
|
|
86
86
|
id: o,
|
|
87
87
|
label: n.id,
|
|
88
88
|
width: 0,
|
|
@@ -90,10 +90,10 @@ var T = {}, W = /* @__PURE__ */ f((e, n) => {
|
|
|
90
90
|
}, d = e.append("g").attr("id", o).attr("class", "stateGroup");
|
|
91
91
|
n.type === "start" && Y(d), n.type === "end" && Q(d), (n.type === "fork" || n.type === "join") && V(d, n), n.type === "note" && et(n.note.text, d), n.type === "divider" && q(d), n.type === "default" && n.descriptions.length === 0 && X(d, n), n.type === "default" && n.descriptions.length > 0 && Z(d, n);
|
|
92
92
|
const l = d.node().getBBox();
|
|
93
|
-
return
|
|
94
|
-
}, "drawState"), A = 0, at = /* @__PURE__ */
|
|
95
|
-
const
|
|
96
|
-
switch (
|
|
93
|
+
return r.width = l.width + 2 * t().state.padding, r.height = l.height + 2 * t().state.padding, J.set(o, r), r;
|
|
94
|
+
}, "drawState"), A = 0, at = /* @__PURE__ */ u(function(e, n, o) {
|
|
95
|
+
const r = /* @__PURE__ */ u(function(s) {
|
|
96
|
+
switch (s) {
|
|
97
97
|
case N.relationType.AGGREGATION:
|
|
98
98
|
return "aggregation";
|
|
99
99
|
case N.relationType.EXTENSION:
|
|
@@ -104,61 +104,61 @@ var T = {}, W = /* @__PURE__ */ f((e, n) => {
|
|
|
104
104
|
return "dependency";
|
|
105
105
|
}
|
|
106
106
|
}, "getRelationType");
|
|
107
|
-
n.points = n.points.filter((
|
|
108
|
-
const d = n.points, l = P().x(function(
|
|
109
|
-
return
|
|
110
|
-
}).y(function(
|
|
111
|
-
return
|
|
107
|
+
n.points = n.points.filter((s) => !Number.isNaN(s.y));
|
|
108
|
+
const d = n.points, l = P().x(function(s) {
|
|
109
|
+
return s.x;
|
|
110
|
+
}).y(function(s) {
|
|
111
|
+
return s.y;
|
|
112
112
|
}).curve(U), h = e.append("path").attr("d", l(d)).attr("id", "edge" + A).attr("class", "transition");
|
|
113
113
|
let a = "";
|
|
114
114
|
if (t().state.arrowMarkerAbsolute && (a = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, a = a.replace(/\(/g, "\\("), a = a.replace(/\)/g, "\\)")), h.attr(
|
|
115
115
|
"marker-end",
|
|
116
|
-
"url(" + a + "#" +
|
|
116
|
+
"url(" + a + "#" + r(N.relationType.DEPENDENCY) + "End)"
|
|
117
117
|
), o.title !== void 0) {
|
|
118
|
-
const
|
|
119
|
-
let
|
|
118
|
+
const s = e.append("g").attr("class", "stateLabel"), { x, y: p } = C.calcLabelPosition(n.points), g = H.getRows(o.title);
|
|
119
|
+
let f = 0;
|
|
120
120
|
const B = [];
|
|
121
121
|
let m = 0, v = 0;
|
|
122
122
|
for (let y = 0; y <= g.length; y++) {
|
|
123
|
-
const c =
|
|
124
|
-
m = Math.max(m, w.width), v = Math.min(v, w.x), S.info(w.x, x, p +
|
|
123
|
+
const c = s.append("text").attr("text-anchor", "middle").text(g[y]).attr("x", x).attr("y", p + f), w = c.node().getBBox();
|
|
124
|
+
m = Math.max(m, w.width), v = Math.min(v, w.x), S.info(w.x, x, p + f), f === 0 && (f = c.node().getBBox().height, S.info("Title height", f, p)), B.push(c);
|
|
125
125
|
}
|
|
126
|
-
let E =
|
|
126
|
+
let E = f * g.length;
|
|
127
127
|
if (g.length > 1) {
|
|
128
|
-
const y = (g.length - 1) *
|
|
129
|
-
B.forEach((c, w) => c.attr("y", p + w *
|
|
128
|
+
const y = (g.length - 1) * f * 0.5;
|
|
129
|
+
B.forEach((c, w) => c.attr("y", p + w * f - y)), E = f * g.length;
|
|
130
130
|
}
|
|
131
|
-
const i =
|
|
132
|
-
|
|
131
|
+
const i = s.node().getBBox();
|
|
132
|
+
s.insert("rect", ":first-child").attr("class", "box").attr("x", x - m / 2 - t().state.padding / 2).attr("y", p - E / 2 - t().state.padding / 2 - 3.5).attr("width", m + t().state.padding).attr("height", E + t().state.padding), S.info(i);
|
|
133
133
|
}
|
|
134
134
|
A++;
|
|
135
|
-
}, "drawEdge"), b, z = {}, nt = /* @__PURE__ */
|
|
136
|
-
}, "setConf"), it = /* @__PURE__ */
|
|
135
|
+
}, "drawEdge"), b, z = {}, nt = /* @__PURE__ */ u(function() {
|
|
136
|
+
}, "setConf"), it = /* @__PURE__ */ u(function(e) {
|
|
137
137
|
e.append("defs").append("marker").attr("id", "dependencyEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 19,7 L9,13 L14,7 L9,1 Z");
|
|
138
|
-
}, "insertMarkers"), dt = /* @__PURE__ */
|
|
138
|
+
}, "insertMarkers"), dt = /* @__PURE__ */ u(function(e, n, o, r) {
|
|
139
139
|
b = t().state;
|
|
140
140
|
const d = t().securityLevel;
|
|
141
141
|
let l;
|
|
142
142
|
d === "sandbox" && (l = M("#i" + n));
|
|
143
143
|
const h = d === "sandbox" ? M(l.nodes()[0].contentDocument.body) : M("body"), a = d === "sandbox" ? l.nodes()[0].contentDocument : document;
|
|
144
144
|
S.debug("Rendering diagram " + e);
|
|
145
|
-
const
|
|
146
|
-
it(
|
|
147
|
-
const x =
|
|
148
|
-
R(x,
|
|
149
|
-
const p = b.padding, g =
|
|
150
|
-
O(
|
|
145
|
+
const s = h.select(`[id='${n}']`);
|
|
146
|
+
it(s);
|
|
147
|
+
const x = r.db.getRootDoc();
|
|
148
|
+
R(x, s, void 0, !1, h, a, r);
|
|
149
|
+
const p = b.padding, g = s.node().getBBox(), f = g.width + p * 2, B = g.height + p * 2, m = f * 1.75;
|
|
150
|
+
O(s, B, m, b.useMaxWidth), s.attr(
|
|
151
151
|
"viewBox",
|
|
152
|
-
`${g.x - b.padding} ${g.y - b.padding} ` +
|
|
152
|
+
`${g.x - b.padding} ${g.y - b.padding} ` + f + " " + B
|
|
153
153
|
);
|
|
154
|
-
}, "draw"),
|
|
154
|
+
}, "draw"), rt = /* @__PURE__ */ u((e) => e ? e.length * b.fontSizeFactor : 1, "getLabelWidth"), R = /* @__PURE__ */ u((e, n, o, r, d, l, h) => {
|
|
155
155
|
const a = new _({
|
|
156
156
|
compound: !0,
|
|
157
157
|
multigraph: !0
|
|
158
158
|
});
|
|
159
|
-
let
|
|
160
|
-
for (
|
|
161
|
-
if (e[
|
|
159
|
+
let s, x = !0;
|
|
160
|
+
for (s = 0; s < e.length; s++)
|
|
161
|
+
if (e[s].stmt === "relation") {
|
|
162
162
|
x = !1;
|
|
163
163
|
break;
|
|
164
164
|
}
|
|
@@ -188,16 +188,16 @@ var T = {}, W = /* @__PURE__ */ f((e, n) => {
|
|
|
188
188
|
}), a.setDefaultEdgeLabel(function() {
|
|
189
189
|
return {};
|
|
190
190
|
}), h.db.extract(e);
|
|
191
|
-
const p = h.db.getStates(), g = h.db.getRelations(),
|
|
192
|
-
for (const i of
|
|
191
|
+
const p = h.db.getStates(), g = h.db.getRelations(), f = Object.keys(p);
|
|
192
|
+
for (const i of f) {
|
|
193
193
|
const y = p[i];
|
|
194
194
|
o && (y.parentId = o);
|
|
195
195
|
let c;
|
|
196
196
|
if (y.doc) {
|
|
197
197
|
let w = n.append("g").attr("id", y.id).attr("class", "stateGroup");
|
|
198
|
-
c = R(y.doc, w, y.id, !
|
|
198
|
+
c = R(y.doc, w, y.id, !r, d, l, h);
|
|
199
199
|
{
|
|
200
|
-
w = K(w, y,
|
|
200
|
+
w = K(w, y, r);
|
|
201
201
|
let k = w.node().getBBox();
|
|
202
202
|
c.width = k.width, c.height = k.height + b.padding / 2, z[y.id] = { y: b.compositTitleSize };
|
|
203
203
|
}
|
|
@@ -222,7 +222,7 @@ var T = {}, W = /* @__PURE__ */ f((e, n) => {
|
|
|
222
222
|
i.id2,
|
|
223
223
|
{
|
|
224
224
|
relation: i,
|
|
225
|
-
width:
|
|
225
|
+
width: rt(i.title),
|
|
226
226
|
height: b.labelHeight * H.getRows(i.title).length,
|
|
227
227
|
labelpos: "c"
|
|
228
228
|
},
|
|
@@ -251,15 +251,15 @@ var T = {}, W = /* @__PURE__ */ f((e, n) => {
|
|
|
251
251
|
height: 0
|
|
252
252
|
};
|
|
253
253
|
return E.width = v.width + 2 * b.padding, E.height = v.height + 2 * b.padding, S.debug("Doc rendered", E, a), E;
|
|
254
|
-
}, "renderDoc"),
|
|
254
|
+
}, "renderDoc"), st = {
|
|
255
255
|
setConf: nt,
|
|
256
256
|
draw: dt
|
|
257
257
|
}, lt = {
|
|
258
|
-
parser:
|
|
258
|
+
parser: I,
|
|
259
259
|
db: N,
|
|
260
|
-
renderer:
|
|
261
|
-
styles:
|
|
262
|
-
init: /* @__PURE__ */
|
|
260
|
+
renderer: st,
|
|
261
|
+
styles: G,
|
|
262
|
+
init: /* @__PURE__ */ u((e) => {
|
|
263
263
|
e.state || (e.state = {}), e.state.arrowMarkerAbsolute = e.arrowMarkerAbsolute, N.clear();
|
|
264
264
|
}, "init")
|
|
265
265
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _ as o } from "./index-
|
|
1
|
+
import { I as a, L as e, R as s, A as t } from "./chunk-7U56Z5CX-awhAxjZ0-CHd4qyz3.js";
|
|
2
|
+
import { _ as o } from "./index-BXOX6oou.js";
|
|
3
3
|
var l = {
|
|
4
|
-
parser:
|
|
4
|
+
parser: t,
|
|
5
5
|
db: s,
|
|
6
6
|
renderer: e,
|
|
7
|
-
styles:
|
|
7
|
+
styles: a,
|
|
8
8
|
init: /* @__PURE__ */ o((r) => {
|
|
9
9
|
r.state || (r.state = {}), r.state.arrowMarkerAbsolute = r.arrowMarkerAbsolute, s.clear();
|
|
10
10
|
}, "init")
|