schematex 0.3.2 → 0.3.3
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/ai/ai-sdk.cjs +25 -25
- package/dist/ai/ai-sdk.d.cts +1 -1
- package/dist/ai/ai-sdk.d.ts +1 -1
- package/dist/ai/ai-sdk.js +20 -20
- package/dist/ai/index.cjs +28 -28
- package/dist/ai/index.d.cts +1 -1
- package/dist/ai/index.d.ts +1 -1
- package/dist/ai/index.js +20 -20
- package/dist/browser.cjs +22 -22
- package/dist/browser.js +20 -20
- package/dist/{chunk-LFZZ4NCP.cjs → chunk-3WNW5Y7P.cjs} +48 -8
- package/dist/chunk-3WNW5Y7P.cjs.map +1 -0
- package/dist/{chunk-MKKFIPKU.cjs → chunk-55UEHL57.cjs} +46 -46
- package/dist/{chunk-MKKFIPKU.cjs.map → chunk-55UEHL57.cjs.map} +1 -1
- package/dist/{chunk-BJ65PKDU.js → chunk-5U2W3HQA.js} +3 -3
- package/dist/{chunk-BJ65PKDU.js.map → chunk-5U2W3HQA.js.map} +1 -1
- package/dist/{chunk-75BMFCP5.cjs → chunk-5UCXMYE7.cjs} +44 -44
- package/dist/{chunk-75BMFCP5.cjs.map → chunk-5UCXMYE7.cjs.map} +1 -1
- package/dist/{chunk-F6OROIHS.js → chunk-66XQBGX7.js} +3 -3
- package/dist/{chunk-F6OROIHS.js.map → chunk-66XQBGX7.js.map} +1 -1
- package/dist/{chunk-HIQPEAL7.js → chunk-6TIN33CA.js} +3 -3
- package/dist/{chunk-HIQPEAL7.js.map → chunk-6TIN33CA.js.map} +1 -1
- package/dist/{chunk-RNGYXGHS.js → chunk-6YUP3QMA.js} +19 -19
- package/dist/{chunk-RNGYXGHS.js.map → chunk-6YUP3QMA.js.map} +1 -1
- package/dist/{chunk-C3IVD7DI.cjs → chunk-7EWFVNYD.cjs} +25 -25
- package/dist/{chunk-C3IVD7DI.cjs.map → chunk-7EWFVNYD.cjs.map} +1 -1
- package/dist/{chunk-56LXBM45.js → chunk-AC3XH3LB.js} +4 -4
- package/dist/{chunk-56LXBM45.js.map → chunk-AC3XH3LB.js.map} +1 -1
- package/dist/{chunk-YTEEZV6J.cjs → chunk-APV4AWQ5.cjs} +422 -422
- package/dist/{chunk-YTEEZV6J.cjs.map → chunk-APV4AWQ5.cjs.map} +1 -1
- package/dist/{chunk-UK7JF5QB.cjs → chunk-AVIKQZSX.cjs} +37 -37
- package/dist/{chunk-UK7JF5QB.cjs.map → chunk-AVIKQZSX.cjs.map} +1 -1
- package/dist/{chunk-OK5RYX55.cjs → chunk-CWZKP3CJ.cjs} +26 -26
- package/dist/{chunk-OK5RYX55.cjs.map → chunk-CWZKP3CJ.cjs.map} +1 -1
- package/dist/{chunk-2J2QWNGI.js → chunk-FIVUMDLF.js} +26 -7
- package/dist/chunk-FIVUMDLF.js.map +1 -0
- package/dist/{chunk-ZTSO3S4P.js → chunk-FO7BLCEW.js} +3 -3
- package/dist/{chunk-ZTSO3S4P.js.map → chunk-FO7BLCEW.js.map} +1 -1
- package/dist/{chunk-6BKUD5EJ.js → chunk-GLFBHQSQ.js} +4 -4
- package/dist/{chunk-6BKUD5EJ.js.map → chunk-GLFBHQSQ.js.map} +1 -1
- package/dist/{chunk-ZNLEUL7T.js → chunk-GVCPFBAV.js} +4 -4
- package/dist/chunk-GVCPFBAV.js.map +1 -0
- package/dist/{chunk-KUXOHLGC.cjs → chunk-HOI6QKC6.cjs} +52 -52
- package/dist/{chunk-KUXOHLGC.cjs.map → chunk-HOI6QKC6.cjs.map} +1 -1
- package/dist/{chunk-L2KUGWFR.cjs → chunk-IAEABLIV.cjs} +46 -46
- package/dist/{chunk-L2KUGWFR.cjs.map → chunk-IAEABLIV.cjs.map} +1 -1
- package/dist/{chunk-M5ZC3LFJ.js → chunk-IQRRZPVZ.js} +3 -3
- package/dist/{chunk-M5ZC3LFJ.js.map → chunk-IQRRZPVZ.js.map} +1 -1
- package/dist/{chunk-H4CJTKEH.js → chunk-MNOO7STY.js} +5 -5
- package/dist/{chunk-H4CJTKEH.js.map → chunk-MNOO7STY.js.map} +1 -1
- package/dist/{chunk-XI6JOG76.cjs → chunk-N56YC75X.cjs} +45 -45
- package/dist/{chunk-XI6JOG76.cjs.map → chunk-N56YC75X.cjs.map} +1 -1
- package/dist/{chunk-X4F6VVEJ.js → chunk-PAG3BNIV.js} +3 -3
- package/dist/{chunk-X4F6VVEJ.js.map → chunk-PAG3BNIV.js.map} +1 -1
- package/dist/{chunk-W7GIQTJV.cjs → chunk-PG6TDGKI.cjs} +21 -21
- package/dist/{chunk-W7GIQTJV.cjs.map → chunk-PG6TDGKI.cjs.map} +1 -1
- package/dist/{chunk-7MVDN5UC.cjs → chunk-Q5OFA4I2.cjs} +35 -35
- package/dist/{chunk-7MVDN5UC.cjs.map → chunk-Q5OFA4I2.cjs.map} +1 -1
- package/dist/{chunk-BUN3CRMP.cjs → chunk-QOLBWCF5.cjs} +65 -65
- package/dist/{chunk-BUN3CRMP.cjs.map → chunk-QOLBWCF5.cjs.map} +1 -1
- package/dist/{chunk-2UJAVPA4.cjs → chunk-QXL7AY2H.cjs} +26 -26
- package/dist/{chunk-2UJAVPA4.cjs.map → chunk-QXL7AY2H.cjs.map} +1 -1
- package/dist/{chunk-WHJXRLFD.js → chunk-SYYBKDL7.js} +48 -8
- package/dist/chunk-SYYBKDL7.js.map +1 -0
- package/dist/{chunk-SE23X5OE.js → chunk-TQU44E46.js} +4 -4
- package/dist/{chunk-SE23X5OE.js.map → chunk-TQU44E46.js.map} +1 -1
- package/dist/{chunk-SFSZUOFT.js → chunk-U3KRKXF7.js} +3 -3
- package/dist/{chunk-SFSZUOFT.js.map → chunk-U3KRKXF7.js.map} +1 -1
- package/dist/{chunk-EYHD7LV3.cjs → chunk-UDGU73RL.cjs} +129 -129
- package/dist/{chunk-EYHD7LV3.cjs.map → chunk-UDGU73RL.cjs.map} +1 -1
- package/dist/{chunk-M3R6RCXY.js → chunk-UDJ2KN2A.js} +3 -3
- package/dist/{chunk-M3R6RCXY.js.map → chunk-UDJ2KN2A.js.map} +1 -1
- package/dist/{chunk-BJWMPPEA.js → chunk-UT4TIDAA.js} +3 -3
- package/dist/{chunk-BJWMPPEA.js.map → chunk-UT4TIDAA.js.map} +1 -1
- package/dist/{chunk-RODV6PC4.cjs → chunk-UWRTV6IV.cjs} +7 -7
- package/dist/{chunk-RODV6PC4.cjs.map → chunk-UWRTV6IV.cjs.map} +1 -1
- package/dist/{chunk-IT2TVXC7.js → chunk-WTF6JXHN.js} +4 -4
- package/dist/{chunk-IT2TVXC7.js.map → chunk-WTF6JXHN.js.map} +1 -1
- package/dist/{chunk-7BEJHG43.js → chunk-X5QJO4ZD.js} +3 -3
- package/dist/{chunk-7BEJHG43.js.map → chunk-X5QJO4ZD.js.map} +1 -1
- package/dist/{chunk-NFT6VW73.js → chunk-XV2DTN6G.js} +3 -3
- package/dist/{chunk-NFT6VW73.js.map → chunk-XV2DTN6G.js.map} +1 -1
- package/dist/{chunk-XUEROLSB.cjs → chunk-YUPG2M3I.cjs} +16 -16
- package/dist/chunk-YUPG2M3I.cjs.map +1 -0
- package/dist/{chunk-K5QG53GT.cjs → chunk-ZCW7YH3C.cjs} +26 -26
- package/dist/{chunk-K5QG53GT.cjs.map → chunk-ZCW7YH3C.cjs.map} +1 -1
- package/dist/{chunk-GYTWJ6VB.cjs → chunk-ZFNZ2FYI.cjs} +67 -48
- package/dist/chunk-ZFNZ2FYI.cjs.map +1 -0
- package/dist/{chunk-3YXXZ4LT.cjs → chunk-ZZJDGGC3.cjs} +33 -33
- package/dist/{chunk-3YXXZ4LT.cjs.map → chunk-ZZJDGGC3.cjs.map} +1 -1
- package/dist/diagrams/blockdiagram/index.cjs +6 -6
- package/dist/diagrams/blockdiagram/index.d.cts +1 -1
- package/dist/diagrams/blockdiagram/index.d.ts +1 -1
- package/dist/diagrams/blockdiagram/index.js +2 -2
- package/dist/diagrams/circuit/index.cjs +8 -8
- package/dist/diagrams/circuit/index.d.cts +1 -1
- package/dist/diagrams/circuit/index.d.ts +1 -1
- package/dist/diagrams/circuit/index.js +2 -2
- package/dist/diagrams/ecomap/index.cjs +8 -8
- package/dist/diagrams/ecomap/index.d.cts +1 -1
- package/dist/diagrams/ecomap/index.d.ts +1 -1
- package/dist/diagrams/ecomap/index.js +3 -3
- package/dist/diagrams/entity/index.cjs +6 -6
- package/dist/diagrams/entity/index.d.cts +1 -1
- package/dist/diagrams/entity/index.d.ts +1 -1
- package/dist/diagrams/entity/index.js +2 -2
- package/dist/diagrams/fishbone/index.cjs +8 -8
- package/dist/diagrams/fishbone/index.d.cts +1 -1
- package/dist/diagrams/fishbone/index.d.ts +1 -1
- package/dist/diagrams/fishbone/index.js +2 -2
- package/dist/diagrams/flowchart/index.cjs +8 -8
- package/dist/diagrams/flowchart/index.d.cts +2 -2
- package/dist/diagrams/flowchart/index.d.ts +2 -2
- package/dist/diagrams/flowchart/index.js +2 -2
- package/dist/diagrams/genogram/index.cjs +10 -10
- package/dist/diagrams/genogram/index.d.cts +1 -1
- package/dist/diagrams/genogram/index.d.ts +1 -1
- package/dist/diagrams/genogram/index.js +3 -3
- package/dist/diagrams/ladder/index.cjs +6 -6
- package/dist/diagrams/ladder/index.d.cts +1 -1
- package/dist/diagrams/ladder/index.d.ts +1 -1
- package/dist/diagrams/ladder/index.js +2 -2
- package/dist/diagrams/logic/index.cjs +6 -6
- package/dist/diagrams/logic/index.d.cts +1 -1
- package/dist/diagrams/logic/index.d.ts +1 -1
- package/dist/diagrams/logic/index.js +2 -2
- package/dist/diagrams/orgchart/index.cjs +7 -7
- package/dist/diagrams/orgchart/index.d.cts +1 -1
- package/dist/diagrams/orgchart/index.d.ts +1 -1
- package/dist/diagrams/orgchart/index.js +2 -2
- package/dist/diagrams/pedigree/index.cjs +8 -8
- package/dist/diagrams/pedigree/index.d.cts +1 -1
- package/dist/diagrams/pedigree/index.d.ts +1 -1
- package/dist/diagrams/pedigree/index.js +3 -3
- package/dist/diagrams/phylo/index.cjs +7 -7
- package/dist/diagrams/phylo/index.d.cts +1 -1
- package/dist/diagrams/phylo/index.d.ts +1 -1
- package/dist/diagrams/phylo/index.js +2 -2
- package/dist/diagrams/sld/index.cjs +6 -6
- package/dist/diagrams/sld/index.d.cts +1 -1
- package/dist/diagrams/sld/index.d.ts +1 -1
- package/dist/diagrams/sld/index.js +2 -2
- package/dist/diagrams/sociogram/index.cjs +7 -7
- package/dist/diagrams/sociogram/index.d.cts +1 -1
- package/dist/diagrams/sociogram/index.d.ts +1 -1
- package/dist/diagrams/sociogram/index.js +3 -3
- package/dist/diagrams/timing/index.cjs +5 -5
- package/dist/diagrams/timing/index.d.cts +1 -1
- package/dist/diagrams/timing/index.d.ts +1 -1
- package/dist/diagrams/timing/index.js +2 -2
- package/dist/diagrams/venn/index.cjs +9 -9
- package/dist/diagrams/venn/index.d.cts +1 -1
- package/dist/diagrams/venn/index.d.ts +1 -1
- package/dist/diagrams/venn/index.js +2 -2
- package/dist/{index-dWDwG6BW.d.ts → index-D3u6vcA4.d.ts} +1 -1
- package/dist/{index-BrLxEzSQ.d.cts → index-bdfj6FpQ.d.cts} +1 -1
- package/dist/index.cjs +41 -41
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +19 -19
- package/dist/react.cjs +20 -20
- package/dist/react.js +19 -19
- package/dist/{types-BtiUg7Gx.d.cts → types-DnU2UlWz.d.cts} +2 -0
- package/dist/{types-BtiUg7Gx.d.ts → types-DnU2UlWz.d.ts} +2 -0
- package/package.json +1 -1
- package/dist/chunk-2J2QWNGI.js.map +0 -1
- package/dist/chunk-GYTWJ6VB.cjs.map +0 -1
- package/dist/chunk-LFZZ4NCP.cjs.map +0 -1
- package/dist/chunk-WHJXRLFD.js.map +0 -1
- package/dist/chunk-XUEROLSB.cjs.map +0 -1
- package/dist/chunk-ZNLEUL7T.js.map +0 -1
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
var
|
|
16
|
-
var
|
|
17
|
-
var
|
|
18
|
-
var
|
|
3
|
+
var chunkIAEABLIV_cjs = require('./chunk-IAEABLIV.cjs');
|
|
4
|
+
var chunkYUPG2M3I_cjs = require('./chunk-YUPG2M3I.cjs');
|
|
5
|
+
var chunkQXL7AY2H_cjs = require('./chunk-QXL7AY2H.cjs');
|
|
6
|
+
var chunk55UEHL57_cjs = require('./chunk-55UEHL57.cjs');
|
|
7
|
+
var chunkUDGU73RL_cjs = require('./chunk-UDGU73RL.cjs');
|
|
8
|
+
var chunkN56YC75X_cjs = require('./chunk-N56YC75X.cjs');
|
|
9
|
+
var chunkZZJDGGC3_cjs = require('./chunk-ZZJDGGC3.cjs');
|
|
10
|
+
var chunkPG6TDGKI_cjs = require('./chunk-PG6TDGKI.cjs');
|
|
11
|
+
var chunkZFNZ2FYI_cjs = require('./chunk-ZFNZ2FYI.cjs');
|
|
12
|
+
var chunkQOLBWCF5_cjs = require('./chunk-QOLBWCF5.cjs');
|
|
13
|
+
var chunkAVIKQZSX_cjs = require('./chunk-AVIKQZSX.cjs');
|
|
14
|
+
var chunkHOI6QKC6_cjs = require('./chunk-HOI6QKC6.cjs');
|
|
15
|
+
var chunkCWZKP3CJ_cjs = require('./chunk-CWZKP3CJ.cjs');
|
|
16
|
+
var chunk7EWFVNYD_cjs = require('./chunk-7EWFVNYD.cjs');
|
|
17
|
+
var chunkZCW7YH3C_cjs = require('./chunk-ZCW7YH3C.cjs');
|
|
18
|
+
var chunkQ5OFA4I2_cjs = require('./chunk-Q5OFA4I2.cjs');
|
|
19
19
|
var chunkD7EHZFK4_cjs = require('./chunk-D7EHZFK4.cjs');
|
|
20
|
-
var
|
|
20
|
+
var chunk3WNW5Y7P_cjs = require('./chunk-3WNW5Y7P.cjs');
|
|
21
21
|
|
|
22
22
|
// src/diagrams/decisiontree/parser.ts
|
|
23
23
|
var DTreeParseError = class extends Error {
|
|
@@ -787,7 +787,7 @@ function renderDecisionNode(ln, layout) {
|
|
|
787
787
|
const parts = [];
|
|
788
788
|
const sibH = layout.direction === "top-down";
|
|
789
789
|
if (n.kind === "decision") {
|
|
790
|
-
parts.push(
|
|
790
|
+
parts.push(chunk3WNW5Y7P_cjs.rect({
|
|
791
791
|
x: ln.x - ln.width / 2,
|
|
792
792
|
y: ln.y - ln.height / 2,
|
|
793
793
|
width: ln.width,
|
|
@@ -798,14 +798,14 @@ function renderDecisionNode(ln, layout) {
|
|
|
798
798
|
}));
|
|
799
799
|
if (n.label) {
|
|
800
800
|
if (sibH) {
|
|
801
|
-
parts.push(
|
|
801
|
+
parts.push(chunk3WNW5Y7P_cjs.text({
|
|
802
802
|
x: ln.x,
|
|
803
803
|
y: ln.y - ln.height / 2 - 8,
|
|
804
804
|
class: "lt-dtree-node-label",
|
|
805
805
|
"text-anchor": "middle"
|
|
806
806
|
}, n.label));
|
|
807
807
|
} else {
|
|
808
|
-
parts.push(
|
|
808
|
+
parts.push(chunk3WNW5Y7P_cjs.text({
|
|
809
809
|
x: ln.x - ln.width / 2 - 8,
|
|
810
810
|
y: ln.y + 4,
|
|
811
811
|
class: "lt-dtree-node-label",
|
|
@@ -814,7 +814,7 @@ function renderDecisionNode(ln, layout) {
|
|
|
814
814
|
}
|
|
815
815
|
}
|
|
816
816
|
if (n.ev !== void 0) {
|
|
817
|
-
parts.push(
|
|
817
|
+
parts.push(chunk3WNW5Y7P_cjs.text({
|
|
818
818
|
x: ln.x,
|
|
819
819
|
y: ln.y + ln.height / 2 + 13,
|
|
820
820
|
class: "lt-dtree-ev",
|
|
@@ -822,7 +822,7 @@ function renderDecisionNode(ln, layout) {
|
|
|
822
822
|
}, `EV=${formatNum(n.ev)}`));
|
|
823
823
|
}
|
|
824
824
|
} else if (n.kind === "chance") {
|
|
825
|
-
parts.push(
|
|
825
|
+
parts.push(chunk3WNW5Y7P_cjs.circle({
|
|
826
826
|
cx: ln.x,
|
|
827
827
|
cy: ln.y,
|
|
828
828
|
r: ln.width / 2,
|
|
@@ -830,14 +830,14 @@ function renderDecisionNode(ln, layout) {
|
|
|
830
830
|
}));
|
|
831
831
|
if (n.label) {
|
|
832
832
|
if (sibH) {
|
|
833
|
-
parts.push(
|
|
833
|
+
parts.push(chunk3WNW5Y7P_cjs.text({
|
|
834
834
|
x: ln.x,
|
|
835
835
|
y: ln.y - ln.height / 2 - 8,
|
|
836
836
|
class: "lt-dtree-node-label",
|
|
837
837
|
"text-anchor": "middle"
|
|
838
838
|
}, n.label));
|
|
839
839
|
} else {
|
|
840
|
-
parts.push(
|
|
840
|
+
parts.push(chunk3WNW5Y7P_cjs.text({
|
|
841
841
|
x: ln.x,
|
|
842
842
|
y: ln.y - ln.height / 2 - 6,
|
|
843
843
|
class: "lt-dtree-node-label",
|
|
@@ -846,7 +846,7 @@ function renderDecisionNode(ln, layout) {
|
|
|
846
846
|
}
|
|
847
847
|
}
|
|
848
848
|
if (n.ev !== void 0) {
|
|
849
|
-
parts.push(
|
|
849
|
+
parts.push(chunk3WNW5Y7P_cjs.text({
|
|
850
850
|
x: ln.x,
|
|
851
851
|
y: ln.y + ln.height / 2 + 13,
|
|
852
852
|
class: n.optimal ? "lt-dtree-ev-optimal" : "lt-dtree-ev",
|
|
@@ -861,19 +861,19 @@ function renderDecisionNode(ln, layout) {
|
|
|
861
861
|
`${ln.x + halfW},${ln.y}`,
|
|
862
862
|
`${ln.x - halfW},${ln.y + halfH}`
|
|
863
863
|
].join(" ");
|
|
864
|
-
parts.push(
|
|
864
|
+
parts.push(chunk3WNW5Y7P_cjs.polygon({ points: pts, class: "lt-dtree-outcome" }));
|
|
865
865
|
const colX = layout.payoffColumnX;
|
|
866
866
|
const tipX = ln.x + halfW;
|
|
867
867
|
const textY = ln.y + 4;
|
|
868
868
|
const payoffCls = n.payoff !== void 0 && n.payoff < 0 ? "lt-dtree-payoff-neg" : "lt-dtree-payoff";
|
|
869
869
|
const payoffStr = n.payoff !== void 0 ? formatPayoff(n.payoff) : "";
|
|
870
870
|
if (colX !== void 0 && colX > tipX + 20) {
|
|
871
|
-
parts.push(
|
|
871
|
+
parts.push(chunk3WNW5Y7P_cjs.path({
|
|
872
872
|
d: `M ${tipX + 2} ${ln.y} L ${colX - 6} ${ln.y}`,
|
|
873
873
|
class: "lt-dtree-edge-leader"
|
|
874
874
|
}));
|
|
875
875
|
if (n.label) {
|
|
876
|
-
parts.push(
|
|
876
|
+
parts.push(chunk3WNW5Y7P_cjs.text({
|
|
877
877
|
x: (tipX + colX) / 2,
|
|
878
878
|
y: ln.y - 6,
|
|
879
879
|
class: "lt-dtree-edge-label",
|
|
@@ -881,7 +881,7 @@ function renderDecisionNode(ln, layout) {
|
|
|
881
881
|
}, n.label));
|
|
882
882
|
}
|
|
883
883
|
if (payoffStr) {
|
|
884
|
-
parts.push(
|
|
884
|
+
parts.push(chunk3WNW5Y7P_cjs.text({
|
|
885
885
|
x: colX,
|
|
886
886
|
y: textY,
|
|
887
887
|
class: payoffCls,
|
|
@@ -893,7 +893,7 @@ function renderDecisionNode(ln, layout) {
|
|
|
893
893
|
if (payoffStr) labelParts.push(payoffStr);
|
|
894
894
|
if (n.label) labelParts.push(n.label);
|
|
895
895
|
if (labelParts.length > 0) {
|
|
896
|
-
parts.push(
|
|
896
|
+
parts.push(chunk3WNW5Y7P_cjs.text({
|
|
897
897
|
x: tipX + 8,
|
|
898
898
|
y: textY,
|
|
899
899
|
class: payoffCls
|
|
@@ -901,7 +901,7 @@ function renderDecisionNode(ln, layout) {
|
|
|
901
901
|
}
|
|
902
902
|
}
|
|
903
903
|
}
|
|
904
|
-
return
|
|
904
|
+
return chunk3WNW5Y7P_cjs.group({
|
|
905
905
|
"data-node-id": n.id,
|
|
906
906
|
"data-node-kind": n.kind,
|
|
907
907
|
"data-ev": n.ev !== void 0 ? String(n.ev) : ""
|
|
@@ -944,7 +944,7 @@ function renderMlNode(ln, ast) {
|
|
|
944
944
|
const parts = [];
|
|
945
945
|
const x = ln.x - ln.width / 2;
|
|
946
946
|
const y = ln.y - ln.height / 2;
|
|
947
|
-
parts.push(
|
|
947
|
+
parts.push(chunk3WNW5Y7P_cjs.rect({
|
|
948
948
|
x,
|
|
949
949
|
y,
|
|
950
950
|
width: ln.width,
|
|
@@ -959,25 +959,25 @@ function renderMlNode(ln, ast) {
|
|
|
959
959
|
const lineH = 14;
|
|
960
960
|
if (n.kind === "split" && n.feature) {
|
|
961
961
|
const thresh = typeof n.threshold === "number" ? formatNum(n.threshold) : n.threshold ?? "";
|
|
962
|
-
parts.push(
|
|
962
|
+
parts.push(chunk3WNW5Y7P_cjs.text(
|
|
963
963
|
{ x: textX, y: textY, class: "lt-dtree-ml-line-1", "text-anchor": "middle" },
|
|
964
964
|
`${n.feature} ${n.op ?? ""} ${thresh}`
|
|
965
965
|
));
|
|
966
966
|
textY += lineH;
|
|
967
967
|
} else if (n.label) {
|
|
968
|
-
parts.push(
|
|
968
|
+
parts.push(chunk3WNW5Y7P_cjs.text({ x: textX, y: textY, class: "lt-dtree-ml-line-1", "text-anchor": "middle" }, n.label));
|
|
969
969
|
textY += lineH;
|
|
970
970
|
}
|
|
971
971
|
if (n.impurity !== void 0) {
|
|
972
972
|
const impName = ast.impurityName ?? "gini";
|
|
973
|
-
parts.push(
|
|
973
|
+
parts.push(chunk3WNW5Y7P_cjs.text(
|
|
974
974
|
{ x: textX, y: textY, class: "lt-dtree-ml-line-muted", "text-anchor": "middle" },
|
|
975
975
|
`${impName} = ${formatNum(n.impurity)}`
|
|
976
976
|
));
|
|
977
977
|
textY += lineH;
|
|
978
978
|
}
|
|
979
979
|
if (n.samples !== void 0) {
|
|
980
|
-
parts.push(
|
|
980
|
+
parts.push(chunk3WNW5Y7P_cjs.text(
|
|
981
981
|
{ x: textX, y: textY, class: "lt-dtree-ml-line-muted", "text-anchor": "middle" },
|
|
982
982
|
`samples = ${n.samples}`
|
|
983
983
|
));
|
|
@@ -985,7 +985,7 @@ function renderMlNode(ln, ast) {
|
|
|
985
985
|
}
|
|
986
986
|
if (n.value !== void 0) {
|
|
987
987
|
const vStr = Array.isArray(n.value) ? `value = [${n.value.join(", ")}]` : `value = ${formatNum(n.value)}`;
|
|
988
|
-
parts.push(
|
|
988
|
+
parts.push(chunk3WNW5Y7P_cjs.text({ x: textX, y: textY, class: "lt-dtree-ml-mono", "text-anchor": "middle" }, vStr));
|
|
989
989
|
textY += lineH;
|
|
990
990
|
}
|
|
991
991
|
if (n.className) {
|
|
@@ -994,13 +994,13 @@ function renderMlNode(ln, ast) {
|
|
|
994
994
|
const idx = ast.classes.indexOf(n.className);
|
|
995
995
|
if (idx >= 0) colorIdx = idx;
|
|
996
996
|
}
|
|
997
|
-
parts.push(
|
|
997
|
+
parts.push(chunk3WNW5Y7P_cjs.text(
|
|
998
998
|
{ x: textX, y: textY, class: "lt-dtree-ml-class", "text-anchor": "middle", fill: classColor(colorIdx) },
|
|
999
999
|
`class = ${n.className}`
|
|
1000
1000
|
));
|
|
1001
1001
|
textY += lineH;
|
|
1002
1002
|
} else if (typeof n.value === "number") {
|
|
1003
|
-
parts.push(
|
|
1003
|
+
parts.push(chunk3WNW5Y7P_cjs.text(
|
|
1004
1004
|
{ x: textX, y: textY, class: "lt-dtree-ml-class", "text-anchor": "middle", fill: "#0f172a" },
|
|
1005
1005
|
`predicted = ${formatNum(n.value)}`
|
|
1006
1006
|
));
|
|
@@ -1017,13 +1017,13 @@ function renderMlNode(ln, ast) {
|
|
|
1017
1017
|
for (let i = 0; i < arr.length; i++) {
|
|
1018
1018
|
const seg = arr[i] / sum * barW;
|
|
1019
1019
|
if (seg > 0) {
|
|
1020
|
-
parts.push(
|
|
1020
|
+
parts.push(chunk3WNW5Y7P_cjs.rect({ x: cursor, y: barY, width: seg, height: 5, fill: classColor(i), stroke: "none" }));
|
|
1021
1021
|
}
|
|
1022
1022
|
cursor += seg;
|
|
1023
1023
|
}
|
|
1024
1024
|
}
|
|
1025
1025
|
}
|
|
1026
|
-
return
|
|
1026
|
+
return chunk3WNW5Y7P_cjs.group({
|
|
1027
1027
|
"data-node-id": n.id,
|
|
1028
1028
|
"data-node-kind": n.kind,
|
|
1029
1029
|
"data-samples": n.samples !== void 0 ? String(n.samples) : "",
|
|
@@ -1035,7 +1035,7 @@ function renderTaxonomyNode(ln) {
|
|
|
1035
1035
|
const isLeaf = n.kind === "answer" || n.children.length === 0;
|
|
1036
1036
|
const cls = isLeaf ? "lt-dtree-taxon-leaf" : "lt-dtree-taxon";
|
|
1037
1037
|
const parts = [];
|
|
1038
|
-
parts.push(
|
|
1038
|
+
parts.push(chunk3WNW5Y7P_cjs.rect({
|
|
1039
1039
|
x: ln.x - ln.width / 2,
|
|
1040
1040
|
y: ln.y - ln.height / 2,
|
|
1041
1041
|
width: ln.width,
|
|
@@ -1048,10 +1048,10 @@ function renderTaxonomyNode(ln) {
|
|
|
1048
1048
|
const totalH = lines.length * 14;
|
|
1049
1049
|
let ty = ln.y - totalH / 2 + 11;
|
|
1050
1050
|
for (const line2 of lines) {
|
|
1051
|
-
parts.push(
|
|
1051
|
+
parts.push(chunk3WNW5Y7P_cjs.text({ x: ln.x, y: ty, class: "lt-dtree-taxon-label" }, line2));
|
|
1052
1052
|
ty += 14;
|
|
1053
1053
|
}
|
|
1054
|
-
return
|
|
1054
|
+
return chunk3WNW5Y7P_cjs.group({
|
|
1055
1055
|
"data-node-id": n.id,
|
|
1056
1056
|
"data-node-kind": n.kind,
|
|
1057
1057
|
"data-leaf": isLeaf ? "true" : "false"
|
|
@@ -1084,18 +1084,18 @@ function renderDecisionTree(ast, config) {
|
|
|
1084
1084
|
const width = Math.ceil(layout.width);
|
|
1085
1085
|
const height = Math.ceil(layout.height + titleOffset);
|
|
1086
1086
|
const children = [];
|
|
1087
|
-
children.push(
|
|
1088
|
-
children.push(
|
|
1089
|
-
children.push(
|
|
1087
|
+
children.push(chunk3WNW5Y7P_cjs.title(ast.title ?? "Decision Tree"));
|
|
1088
|
+
children.push(chunk3WNW5Y7P_cjs.desc(`Decision tree (${ast.mode} mode) with ${layout.nodes.length} nodes and ${layout.edges.length} edges`));
|
|
1089
|
+
children.push(chunk3WNW5Y7P_cjs.el("style", {}, buildCss(t)));
|
|
1090
1090
|
if (ast.title) {
|
|
1091
|
-
children.push(
|
|
1091
|
+
children.push(chunk3WNW5Y7P_cjs.text({ x: 20, y: 24, class: "lt-dtree-title" }, ast.title));
|
|
1092
1092
|
}
|
|
1093
1093
|
const inner = [];
|
|
1094
1094
|
for (const e of layout.edges) {
|
|
1095
1095
|
const cls = e.isOptimal ? "lt-dtree-edge-optimal" : "lt-dtree-edge";
|
|
1096
1096
|
const attrs = { d: e.path, class: cls, "data-edge": `${e.from}->${e.to}` };
|
|
1097
1097
|
if (e.strokeWidth !== void 0 && !e.isOptimal) attrs["stroke-width"] = e.strokeWidth;
|
|
1098
|
-
inner.push(
|
|
1098
|
+
inner.push(chunk3WNW5Y7P_cjs.path(attrs));
|
|
1099
1099
|
}
|
|
1100
1100
|
const anchors = layout.labelAnchors ?? {};
|
|
1101
1101
|
for (const e of layout.edges) {
|
|
@@ -1119,7 +1119,7 @@ function renderDecisionTree(ast, config) {
|
|
|
1119
1119
|
const charW = isProb ? 5.5 : 6.2;
|
|
1120
1120
|
const w = Math.max(e.label.length * charW + 10, 18);
|
|
1121
1121
|
const h = 14;
|
|
1122
|
-
inner.push(
|
|
1122
|
+
inner.push(chunk3WNW5Y7P_cjs.rect({
|
|
1123
1123
|
x: lx - w / 2,
|
|
1124
1124
|
y: ly - h / 2,
|
|
1125
1125
|
width: w,
|
|
@@ -1128,18 +1128,18 @@ function renderDecisionTree(ast, config) {
|
|
|
1128
1128
|
rx: 3,
|
|
1129
1129
|
ry: 3
|
|
1130
1130
|
}));
|
|
1131
|
-
inner.push(
|
|
1131
|
+
inner.push(chunk3WNW5Y7P_cjs.text({ x: lx, y: ly, class: labelClass }, e.label));
|
|
1132
1132
|
}
|
|
1133
1133
|
for (const ln of layout.nodes) {
|
|
1134
1134
|
if (ast.mode === "decision") inner.push(renderDecisionNode(ln, layout));
|
|
1135
1135
|
else if (ast.mode === "ml") inner.push(renderMlNode(ln, ast));
|
|
1136
1136
|
else inner.push(renderTaxonomyNode(ln));
|
|
1137
1137
|
}
|
|
1138
|
-
children.push(
|
|
1139
|
-
return
|
|
1138
|
+
children.push(chunk3WNW5Y7P_cjs.group({ transform: `translate(0, ${titleOffset})`, "data-mode": ast.mode }, inner));
|
|
1139
|
+
return chunk3WNW5Y7P_cjs.svgRoot({
|
|
1140
1140
|
class: "lt-dtree",
|
|
1141
1141
|
role: "img",
|
|
1142
|
-
"aria-label":
|
|
1142
|
+
"aria-label": chunk3WNW5Y7P_cjs.escapeXml(ast.title ?? `Decision tree (${ast.mode})`),
|
|
1143
1143
|
width,
|
|
1144
1144
|
height,
|
|
1145
1145
|
viewBox: `0 0 ${width} ${height}`
|
|
@@ -2120,13 +2120,13 @@ function renderTimeline(src, config) {
|
|
|
2120
2120
|
const theme = chunkD7EHZFK4_cjs.resolveTimelineTheme(config?.theme ?? "default");
|
|
2121
2121
|
const styleBlock = styleForTheme(theme, config?.fontFamily);
|
|
2122
2122
|
const children = [
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2123
|
+
chunk3WNW5Y7P_cjs.title(ast.title ? `Timeline \u2014 ${ast.title}` : "Timeline"),
|
|
2124
|
+
chunk3WNW5Y7P_cjs.desc("Schematex timeline diagram"),
|
|
2125
|
+
chunk3WNW5Y7P_cjs.defs([`<style>${styleBlock}</style>`])
|
|
2126
2126
|
];
|
|
2127
2127
|
if (ast.title) {
|
|
2128
2128
|
children.push(
|
|
2129
|
-
|
|
2129
|
+
chunk3WNW5Y7P_cjs.text(
|
|
2130
2130
|
{ x: layout.width / 2, y: 26, "text-anchor": "middle", class: "st-title" },
|
|
2131
2131
|
ast.title
|
|
2132
2132
|
)
|
|
@@ -2146,7 +2146,7 @@ function renderTimeline(src, config) {
|
|
|
2146
2146
|
break;
|
|
2147
2147
|
}
|
|
2148
2148
|
children.push(renderAxis(layout));
|
|
2149
|
-
return
|
|
2149
|
+
return chunk3WNW5Y7P_cjs.svgRoot(
|
|
2150
2150
|
{
|
|
2151
2151
|
viewBox: `0 0 ${layout.width} ${layout.height}`,
|
|
2152
2152
|
width: layout.width,
|
|
@@ -2236,7 +2236,7 @@ function renderEras(layout, theme) {
|
|
|
2236
2236
|
const stripX = isLeftmost ? Math.min(e.x, layout.plotX) : e.x;
|
|
2237
2237
|
const stripEnd = isRightmost ? Math.max(e.x + e.width, plotEnd) : e.x + e.width;
|
|
2238
2238
|
return [
|
|
2239
|
-
|
|
2239
|
+
chunk3WNW5Y7P_cjs.rect({
|
|
2240
2240
|
x: e.x,
|
|
2241
2241
|
y,
|
|
2242
2242
|
width: e.width,
|
|
@@ -2245,7 +2245,7 @@ function renderEras(layout, theme) {
|
|
|
2245
2245
|
class: "st-era-rect",
|
|
2246
2246
|
"data-era-id": e.era.id
|
|
2247
2247
|
}),
|
|
2248
|
-
|
|
2248
|
+
chunk3WNW5Y7P_cjs.rect({
|
|
2249
2249
|
x: stripX,
|
|
2250
2250
|
y: layout.plotY,
|
|
2251
2251
|
width: stripEnd - stripX,
|
|
@@ -2253,24 +2253,24 @@ function renderEras(layout, theme) {
|
|
|
2253
2253
|
fill,
|
|
2254
2254
|
class: "st-era-strip"
|
|
2255
2255
|
}),
|
|
2256
|
-
|
|
2256
|
+
chunk3WNW5Y7P_cjs.text(
|
|
2257
2257
|
{ x: labelX, y: y + 12, class: "st-era-label" },
|
|
2258
2258
|
truncate(e.era.label, Math.max(4, Math.floor(e.width / 7)))
|
|
2259
2259
|
)
|
|
2260
2260
|
].join("");
|
|
2261
2261
|
});
|
|
2262
|
-
return
|
|
2262
|
+
return chunk3WNW5Y7P_cjs.group({ class: "st-eras" }, items);
|
|
2263
2263
|
}
|
|
2264
2264
|
function renderAxis(layout) {
|
|
2265
2265
|
const ax = layout.axisY;
|
|
2266
2266
|
const items = [
|
|
2267
|
-
|
|
2267
|
+
chunk3WNW5Y7P_cjs.line({ x1: layout.plotX, y1: ax, x2: layout.plotX + layout.plotW, y2: ax, class: "st-axis-line" })
|
|
2268
2268
|
];
|
|
2269
2269
|
for (const t of layout.ticks) {
|
|
2270
|
-
items.push(
|
|
2271
|
-
items.push(
|
|
2270
|
+
items.push(chunk3WNW5Y7P_cjs.line({ x1: t.x, y1: ax, x2: t.x, y2: ax + 5, class: "st-axis-tick" }));
|
|
2271
|
+
items.push(chunk3WNW5Y7P_cjs.text({ x: t.x, y: ax + 18, "text-anchor": "middle", class: "st-axis-label" }, t.label));
|
|
2272
2272
|
}
|
|
2273
|
-
return
|
|
2273
|
+
return chunk3WNW5Y7P_cjs.group({ class: "st-axis" }, items);
|
|
2274
2274
|
}
|
|
2275
2275
|
function renderSwimlane(layout, theme) {
|
|
2276
2276
|
const parts = [];
|
|
@@ -2283,16 +2283,16 @@ function renderSwimlane(layout, theme) {
|
|
|
2283
2283
|
return parts.join("");
|
|
2284
2284
|
}
|
|
2285
2285
|
function renderTrackLabels(layout) {
|
|
2286
|
-
const items = layout.lanes.filter((l) => l.label).map((l) =>
|
|
2286
|
+
const items = layout.lanes.filter((l) => l.label).map((l) => chunk3WNW5Y7P_cjs.text(
|
|
2287
2287
|
{ x: layout.plotX - 12, y: l.y + l.height / 2 + 4, "text-anchor": "end", class: "st-track-label" },
|
|
2288
2288
|
l.label
|
|
2289
2289
|
));
|
|
2290
|
-
return
|
|
2290
|
+
return chunk3WNW5Y7P_cjs.group({ class: "st-track-labels" }, items);
|
|
2291
2291
|
}
|
|
2292
2292
|
function renderLaneStripes(layout) {
|
|
2293
2293
|
const items = layout.lanes.map((l, i) => {
|
|
2294
2294
|
if (i % 2 !== 0) return "";
|
|
2295
|
-
return
|
|
2295
|
+
return chunk3WNW5Y7P_cjs.rect({
|
|
2296
2296
|
x: layout.plotX,
|
|
2297
2297
|
y: l.y,
|
|
2298
2298
|
width: layout.plotW,
|
|
@@ -2300,7 +2300,7 @@ function renderLaneStripes(layout) {
|
|
|
2300
2300
|
class: "st-lane-stripe"
|
|
2301
2301
|
});
|
|
2302
2302
|
}).filter(Boolean);
|
|
2303
|
-
return
|
|
2303
|
+
return chunk3WNW5Y7P_cjs.group({ class: "st-lanes" }, items);
|
|
2304
2304
|
}
|
|
2305
2305
|
function renderSwimlaneRanges(layout, theme) {
|
|
2306
2306
|
const items = [];
|
|
@@ -2310,7 +2310,7 @@ function renderSwimlaneRanges(layout, theme) {
|
|
|
2310
2310
|
if (ev.event.kind !== "range") continue;
|
|
2311
2311
|
const idx = trackOrder.indexOf(ev.event.trackId);
|
|
2312
2312
|
const fill = ev.event.color ?? palette[(idx < 0 ? 0 : idx) % palette.length];
|
|
2313
|
-
items.push(
|
|
2313
|
+
items.push(chunk3WNW5Y7P_cjs.rect({
|
|
2314
2314
|
x: ev.x,
|
|
2315
2315
|
y: ev.y,
|
|
2316
2316
|
width: ev.w ?? 4,
|
|
@@ -2323,18 +2323,18 @@ function renderSwimlaneRanges(layout, theme) {
|
|
|
2323
2323
|
}));
|
|
2324
2324
|
const w = ev.w ?? 0;
|
|
2325
2325
|
if (w >= 60) {
|
|
2326
|
-
items.push(
|
|
2326
|
+
items.push(chunk3WNW5Y7P_cjs.text(
|
|
2327
2327
|
{ x: ev.labelX, y: ev.labelY, "text-anchor": "middle", class: "st-range-label" },
|
|
2328
2328
|
truncate(ev.event.label, Math.floor(w / 6))
|
|
2329
2329
|
));
|
|
2330
2330
|
} else if (w > 0) {
|
|
2331
|
-
items.push(
|
|
2331
|
+
items.push(chunk3WNW5Y7P_cjs.text(
|
|
2332
2332
|
{ x: ev.x + w + 4, y: ev.labelY, "text-anchor": "start", class: "st-event-label" },
|
|
2333
2333
|
ev.event.label
|
|
2334
2334
|
));
|
|
2335
2335
|
}
|
|
2336
2336
|
}
|
|
2337
|
-
return
|
|
2337
|
+
return chunk3WNW5Y7P_cjs.group({ class: "st-ranges" }, items);
|
|
2338
2338
|
}
|
|
2339
2339
|
function renderSwimlanePoints(layout, theme) {
|
|
2340
2340
|
const items = [];
|
|
@@ -2345,7 +2345,7 @@ function renderSwimlanePoints(layout, theme) {
|
|
|
2345
2345
|
const shape = ev.event.shape ?? (isMilestone ? "star" : "circle");
|
|
2346
2346
|
items.push(renderMarker(ev, color, shape, isMilestone));
|
|
2347
2347
|
}
|
|
2348
|
-
return
|
|
2348
|
+
return chunk3WNW5Y7P_cjs.group({ class: "st-points" }, items);
|
|
2349
2349
|
}
|
|
2350
2350
|
function renderMarker(ev, color, shape, isMilestone) {
|
|
2351
2351
|
const x = ev.x;
|
|
@@ -2354,16 +2354,16 @@ function renderMarker(ev, color, shape, isMilestone) {
|
|
|
2354
2354
|
const klass = isMilestone ? "st-milestone" : "st-event-dot";
|
|
2355
2355
|
switch (shape) {
|
|
2356
2356
|
case "square":
|
|
2357
|
-
return
|
|
2357
|
+
return chunk3WNW5Y7P_cjs.rect({ x: x - r, y: y - r, width: r * 2, height: r * 2, fill: color, class: klass, "data-event-id": ev.event.id });
|
|
2358
2358
|
case "diamond":
|
|
2359
|
-
return
|
|
2359
|
+
return chunk3WNW5Y7P_cjs.path({ d: `M ${x},${y - r} L ${x + r},${y} L ${x},${y + r} L ${x - r},${y} Z`, fill: color, class: klass, "data-event-id": ev.event.id });
|
|
2360
2360
|
case "star":
|
|
2361
|
-
return
|
|
2361
|
+
return chunk3WNW5Y7P_cjs.path({ d: starPath(x, y, r + 2, (r + 2) / 2.5, 5), fill: color, class: klass, "data-event-id": ev.event.id });
|
|
2362
2362
|
case "flag":
|
|
2363
|
-
return
|
|
2363
|
+
return chunk3WNW5Y7P_cjs.path({ d: `M ${x - r},${y + r} L ${x - r},${y - r - 4} L ${x + r + 4},${y - r - 1} L ${x - r},${y + 2}`, fill: color, class: klass, "data-event-id": ev.event.id });
|
|
2364
2364
|
case "circle":
|
|
2365
2365
|
default:
|
|
2366
|
-
return
|
|
2366
|
+
return chunk3WNW5Y7P_cjs.circle({ cx: x, cy: y, r, fill: color, class: klass, "data-event-id": ev.event.id });
|
|
2367
2367
|
}
|
|
2368
2368
|
}
|
|
2369
2369
|
function renderLabels(layout) {
|
|
@@ -2376,14 +2376,14 @@ function renderLabels(layout) {
|
|
|
2376
2376
|
if (Math.abs(dy) > 22) {
|
|
2377
2377
|
const y1 = dy < 0 ? ev.y - 6 : ev.y + 6;
|
|
2378
2378
|
const y2 = dy < 0 ? ev.labelY + 3 : ev.labelY - 10;
|
|
2379
|
-
items.push(
|
|
2379
|
+
items.push(chunk3WNW5Y7P_cjs.line({ x1: ev.x, y1, x2: ev.x, y2, class: "st-label-leader" }));
|
|
2380
2380
|
}
|
|
2381
|
-
items.push(
|
|
2381
|
+
items.push(chunk3WNW5Y7P_cjs.text(
|
|
2382
2382
|
{ x: ev.labelX, y: ev.labelY, "text-anchor": ev.labelAnchor, class: cls },
|
|
2383
2383
|
text2
|
|
2384
2384
|
));
|
|
2385
2385
|
}
|
|
2386
|
-
return
|
|
2386
|
+
return chunk3WNW5Y7P_cjs.group({ class: "st-labels" }, items);
|
|
2387
2387
|
}
|
|
2388
2388
|
function renderNotes(layout) {
|
|
2389
2389
|
const items = [];
|
|
@@ -2393,15 +2393,15 @@ function renderNotes(layout) {
|
|
|
2393
2393
|
const ny = ev.noteY ?? ev.y + 18;
|
|
2394
2394
|
const nx = ev.noteX ?? x + 10;
|
|
2395
2395
|
const wrapped = wrapText2(ev.event.note, 46);
|
|
2396
|
-
items.push(
|
|
2396
|
+
items.push(chunk3WNW5Y7P_cjs.path({ d: `M ${x} ${ev.y + 6} Q ${x + 4} ${ny - 4} ${nx} ${ny}`, class: "st-callout-line" }));
|
|
2397
2397
|
wrapped.forEach((ln, i) => {
|
|
2398
|
-
items.push(
|
|
2398
|
+
items.push(chunk3WNW5Y7P_cjs.text(
|
|
2399
2399
|
{ x: nx, y: ny + i * 13, class: "st-callout-text" },
|
|
2400
2400
|
ln
|
|
2401
2401
|
));
|
|
2402
2402
|
});
|
|
2403
2403
|
}
|
|
2404
|
-
return
|
|
2404
|
+
return chunk3WNW5Y7P_cjs.group({ class: "st-notes" }, items);
|
|
2405
2405
|
}
|
|
2406
2406
|
function renderGantt(layout, theme) {
|
|
2407
2407
|
const parts = [];
|
|
@@ -2417,7 +2417,7 @@ function renderGanttLanes(layout) {
|
|
|
2417
2417
|
const items = [];
|
|
2418
2418
|
layout.lanes.forEach((l, i) => {
|
|
2419
2419
|
if (i % 2 === 0) {
|
|
2420
|
-
items.push(
|
|
2420
|
+
items.push(chunk3WNW5Y7P_cjs.rect({
|
|
2421
2421
|
x: layout.plotX,
|
|
2422
2422
|
y: l.y,
|
|
2423
2423
|
width: layout.plotW,
|
|
@@ -2425,14 +2425,14 @@ function renderGanttLanes(layout) {
|
|
|
2425
2425
|
class: "st-lane-stripe"
|
|
2426
2426
|
}));
|
|
2427
2427
|
}
|
|
2428
|
-
items.push(
|
|
2428
|
+
items.push(chunk3WNW5Y7P_cjs.text({
|
|
2429
2429
|
x: layout.plotX - 10,
|
|
2430
2430
|
y: l.y + l.height / 2 + 4,
|
|
2431
2431
|
"text-anchor": "end",
|
|
2432
2432
|
class: "st-lane-label"
|
|
2433
2433
|
}, l.label));
|
|
2434
2434
|
});
|
|
2435
|
-
return
|
|
2435
|
+
return chunk3WNW5Y7P_cjs.group({ class: "st-gantt-lanes" }, items);
|
|
2436
2436
|
}
|
|
2437
2437
|
function renderGanttBars(layout, theme) {
|
|
2438
2438
|
const items = [];
|
|
@@ -2443,7 +2443,7 @@ function renderGanttBars(layout, theme) {
|
|
|
2443
2443
|
const cat = ev.event.category ?? layout.lanes[0]?.label ?? "";
|
|
2444
2444
|
const color = ev.event.color ?? legendByLabel.get(cat) ?? theme.categoryPalette[0];
|
|
2445
2445
|
const w = ev.w ?? 4;
|
|
2446
|
-
items.push(
|
|
2446
|
+
items.push(chunk3WNW5Y7P_cjs.rect({
|
|
2447
2447
|
x: ev.x,
|
|
2448
2448
|
y: ev.y,
|
|
2449
2449
|
width: w,
|
|
@@ -2456,20 +2456,20 @@ function renderGanttBars(layout, theme) {
|
|
|
2456
2456
|
"data-category": cat
|
|
2457
2457
|
}));
|
|
2458
2458
|
if (w >= 60) {
|
|
2459
|
-
items.push(
|
|
2459
|
+
items.push(chunk3WNW5Y7P_cjs.text(
|
|
2460
2460
|
{ x: ev.labelX, y: ev.labelY, "text-anchor": "middle", class: "st-range-label" },
|
|
2461
2461
|
truncate(ev.event.label, Math.floor(w / 6))
|
|
2462
2462
|
));
|
|
2463
2463
|
} else if (w > 0) {
|
|
2464
2464
|
const lane = laneByCat.get(cat);
|
|
2465
2465
|
const ly = lane ? lane.y + lane.height / 2 + 4 : ev.labelY;
|
|
2466
|
-
items.push(
|
|
2466
|
+
items.push(chunk3WNW5Y7P_cjs.text(
|
|
2467
2467
|
{ x: ev.x + w + 4, y: ly, "text-anchor": "start", class: "st-event-label" },
|
|
2468
2468
|
ev.event.label
|
|
2469
2469
|
));
|
|
2470
2470
|
}
|
|
2471
2471
|
}
|
|
2472
|
-
return
|
|
2472
|
+
return chunk3WNW5Y7P_cjs.group({ class: "st-gantt-bars" }, items);
|
|
2473
2473
|
}
|
|
2474
2474
|
function renderGanttPins(layout) {
|
|
2475
2475
|
const pins = layout.pins ?? [];
|
|
@@ -2478,20 +2478,20 @@ function renderGanttPins(layout) {
|
|
|
2478
2478
|
for (const p of pins) {
|
|
2479
2479
|
items.push(renderPin(p));
|
|
2480
2480
|
}
|
|
2481
|
-
return
|
|
2481
|
+
return chunk3WNW5Y7P_cjs.group({ class: "st-gantt-pins" }, items);
|
|
2482
2482
|
}
|
|
2483
2483
|
function renderPin(p) {
|
|
2484
2484
|
const isMilestone = p.event.kind === "milestone";
|
|
2485
|
-
const shaft =
|
|
2485
|
+
const shaft = chunk3WNW5Y7P_cjs.path({
|
|
2486
2486
|
d: `M ${p.x} ${p.labelY + 2} L ${p.x} ${p.axisY - 4}`,
|
|
2487
2487
|
class: "st-pin-shaft"
|
|
2488
2488
|
});
|
|
2489
|
-
const head = isMilestone ?
|
|
2489
|
+
const head = isMilestone ? chunk3WNW5Y7P_cjs.path({
|
|
2490
2490
|
d: starPath(p.x, p.axisY - 6, 7, 3, 5),
|
|
2491
2491
|
fill: p.color,
|
|
2492
2492
|
class: "st-pin-head",
|
|
2493
2493
|
"data-event-id": p.event.id
|
|
2494
|
-
}) :
|
|
2494
|
+
}) : chunk3WNW5Y7P_cjs.circle({
|
|
2495
2495
|
cx: p.x,
|
|
2496
2496
|
cy: p.axisY - 6,
|
|
2497
2497
|
r: 5,
|
|
@@ -2500,7 +2500,7 @@ function renderPin(p) {
|
|
|
2500
2500
|
"data-event-id": p.event.id
|
|
2501
2501
|
});
|
|
2502
2502
|
const txt = p.event.icon ? `${p.event.icon} ${p.event.label}` : p.event.label;
|
|
2503
|
-
const label =
|
|
2503
|
+
const label = chunk3WNW5Y7P_cjs.text(
|
|
2504
2504
|
{ x: p.x, y: p.labelY, "text-anchor": "middle", class: "st-pin-label" },
|
|
2505
2505
|
txt
|
|
2506
2506
|
);
|
|
@@ -2516,15 +2516,15 @@ function renderLegend(layout) {
|
|
|
2516
2516
|
const x = layout.width - boxW - 16;
|
|
2517
2517
|
const y = layout.plotY;
|
|
2518
2518
|
const items = [
|
|
2519
|
-
|
|
2520
|
-
|
|
2519
|
+
chunk3WNW5Y7P_cjs.rect({ x, y, width: boxW, height: h, rx: 6, ry: 6, class: "st-legend-box" }),
|
|
2520
|
+
chunk3WNW5Y7P_cjs.text({ x: x + padding, y: y + padding + 12, class: "st-legend-title" }, "Teams")
|
|
2521
2521
|
];
|
|
2522
2522
|
legend.forEach((it, i) => {
|
|
2523
2523
|
const rowY = y + padding + 18 + i * rowH + 8;
|
|
2524
|
-
items.push(
|
|
2525
|
-
items.push(
|
|
2524
|
+
items.push(chunk3WNW5Y7P_cjs.rect({ x: x + padding, y: rowY - 7, width: 12, height: 12, rx: 2, ry: 2, fill: it.color }));
|
|
2525
|
+
items.push(chunk3WNW5Y7P_cjs.text({ x: x + padding + 20, y: rowY + 3, class: "st-legend-label" }, truncate(it.label, 14)));
|
|
2526
2526
|
});
|
|
2527
|
-
return
|
|
2527
|
+
return chunk3WNW5Y7P_cjs.group({ class: "st-legend" }, items);
|
|
2528
2528
|
}
|
|
2529
2529
|
function renderLollipop(layout, theme) {
|
|
2530
2530
|
const parts = [];
|
|
@@ -2537,7 +2537,7 @@ function renderLollipopRanges(layout, theme) {
|
|
|
2537
2537
|
for (const ev of layout.events) {
|
|
2538
2538
|
if (ev.event.kind !== "range") continue;
|
|
2539
2539
|
const color = ev.event.color ?? theme.categoryPalette[0];
|
|
2540
|
-
items.push(
|
|
2540
|
+
items.push(chunk3WNW5Y7P_cjs.rect({
|
|
2541
2541
|
x: ev.x,
|
|
2542
2542
|
y: ev.y,
|
|
2543
2543
|
width: ev.w ?? 4,
|
|
@@ -2549,7 +2549,7 @@ function renderLollipopRanges(layout, theme) {
|
|
|
2549
2549
|
"data-event-id": ev.event.id
|
|
2550
2550
|
}));
|
|
2551
2551
|
}
|
|
2552
|
-
return
|
|
2552
|
+
return chunk3WNW5Y7P_cjs.group({ class: "st-lp-ranges" }, items);
|
|
2553
2553
|
}
|
|
2554
2554
|
function renderLollipopCards(layout, theme) {
|
|
2555
2555
|
const cards = layout.cards ?? [];
|
|
@@ -2558,14 +2558,14 @@ function renderLollipopCards(layout, theme) {
|
|
|
2558
2558
|
for (const c of cards) {
|
|
2559
2559
|
items.push(renderLollipopCard(c, theme));
|
|
2560
2560
|
}
|
|
2561
|
-
return
|
|
2561
|
+
return chunk3WNW5Y7P_cjs.group({ class: "st-lp-cards" }, items);
|
|
2562
2562
|
}
|
|
2563
2563
|
function renderLollipopCard(c, theme) {
|
|
2564
2564
|
const parts = [];
|
|
2565
|
-
parts.push(
|
|
2566
|
-
parts.push(
|
|
2567
|
-
parts.push(
|
|
2568
|
-
parts.push(
|
|
2565
|
+
parts.push(chunk3WNW5Y7P_cjs.path({ d: `M ${c.x} ${c.stemY1} L ${c.x} ${c.stemY2}`, class: "st-stem" }));
|
|
2566
|
+
parts.push(chunk3WNW5Y7P_cjs.circle({ cx: c.x, cy: c.axisY, r: 7, fill: theme.markerFill, stroke: c.color, class: "st-lp-marker-ring" }));
|
|
2567
|
+
parts.push(chunk3WNW5Y7P_cjs.circle({ cx: c.x, cy: c.axisY, r: 3.2, fill: c.color, class: "st-lp-marker-core" }));
|
|
2568
|
+
parts.push(chunk3WNW5Y7P_cjs.rect({
|
|
2569
2569
|
x: c.cardX,
|
|
2570
2570
|
y: c.cardY,
|
|
2571
2571
|
width: c.cardW,
|
|
@@ -2574,7 +2574,7 @@ function renderLollipopCard(c, theme) {
|
|
|
2574
2574
|
ry: 8,
|
|
2575
2575
|
class: "st-card"
|
|
2576
2576
|
}));
|
|
2577
|
-
parts.push(
|
|
2577
|
+
parts.push(chunk3WNW5Y7P_cjs.rect({
|
|
2578
2578
|
x: c.cardX,
|
|
2579
2579
|
y: c.cardY,
|
|
2580
2580
|
width: 4,
|
|
@@ -2585,11 +2585,11 @@ function renderLollipopCard(c, theme) {
|
|
|
2585
2585
|
}));
|
|
2586
2586
|
const padX = c.cardX + 14;
|
|
2587
2587
|
const titleText = c.event.icon ? `${c.event.icon} ${c.event.label}` : c.event.label;
|
|
2588
|
-
parts.push(
|
|
2588
|
+
parts.push(chunk3WNW5Y7P_cjs.text(
|
|
2589
2589
|
{ x: padX, y: c.cardY + 22, class: "st-card-title" },
|
|
2590
2590
|
truncate(titleText, 26)
|
|
2591
2591
|
));
|
|
2592
|
-
parts.push(
|
|
2592
|
+
parts.push(chunk3WNW5Y7P_cjs.text(
|
|
2593
2593
|
{ x: padX, y: c.cardY + 40, class: "st-card-date" },
|
|
2594
2594
|
c.event.start.raw
|
|
2595
2595
|
));
|
|
@@ -3298,7 +3298,7 @@ function layoutStateDiagram(ast) {
|
|
|
3298
3298
|
}
|
|
3299
3299
|
return true;
|
|
3300
3300
|
});
|
|
3301
|
-
const fcResult =
|
|
3301
|
+
const fcResult = chunkZFNZ2FYI_cjs.layoutFlowchart(fcAst);
|
|
3302
3302
|
const stateById = /* @__PURE__ */ new Map();
|
|
3303
3303
|
const collectStates = (s) => {
|
|
3304
3304
|
stateById.set(s.id, s);
|
|
@@ -3627,7 +3627,7 @@ var STYLE = `
|
|
|
3627
3627
|
.lt-title { font: 600 14px system-ui, sans-serif; fill: #1a1a1a; }
|
|
3628
3628
|
`;
|
|
3629
3629
|
function renderArrowMarker() {
|
|
3630
|
-
return
|
|
3630
|
+
return chunk3WNW5Y7P_cjs.el(
|
|
3631
3631
|
"marker",
|
|
3632
3632
|
{
|
|
3633
3633
|
id: ARROW_MARKER_ID,
|
|
@@ -3638,7 +3638,7 @@ function renderArrowMarker() {
|
|
|
3638
3638
|
orient: "auto",
|
|
3639
3639
|
markerUnits: "strokeWidth"
|
|
3640
3640
|
},
|
|
3641
|
-
[
|
|
3641
|
+
[chunk3WNW5Y7P_cjs.polygon({ points: "0,0 10,3 0,6", fill: "#2a2a2a" })]
|
|
3642
3642
|
);
|
|
3643
3643
|
}
|
|
3644
3644
|
function activityText2(a) {
|
|
@@ -3655,33 +3655,33 @@ function activityText2(a) {
|
|
|
3655
3655
|
function renderSimple(node) {
|
|
3656
3656
|
const { x, y, width, height } = node;
|
|
3657
3657
|
const children = [
|
|
3658
|
-
|
|
3658
|
+
chunk3WNW5Y7P_cjs.rect({ x, y, width, height, rx: 8, ry: 8, class: "lt-state-body" })
|
|
3659
3659
|
];
|
|
3660
3660
|
const label = node.node.label || node.id;
|
|
3661
3661
|
if (node.node.activities.length === 0) {
|
|
3662
3662
|
children.push(
|
|
3663
|
-
|
|
3663
|
+
chunk3WNW5Y7P_cjs.text(
|
|
3664
3664
|
{ x: x + width / 2, y: y + height / 2 + 4, "text-anchor": "middle", class: "lt-state-name" },
|
|
3665
3665
|
label
|
|
3666
3666
|
)
|
|
3667
3667
|
);
|
|
3668
3668
|
} else {
|
|
3669
3669
|
children.push(
|
|
3670
|
-
|
|
3670
|
+
chunk3WNW5Y7P_cjs.text(
|
|
3671
3671
|
{ x: x + width / 2, y: y + 16, "text-anchor": "middle", class: "lt-state-name" },
|
|
3672
3672
|
label
|
|
3673
3673
|
)
|
|
3674
3674
|
);
|
|
3675
3675
|
children.push(
|
|
3676
|
-
|
|
3676
|
+
chunk3WNW5Y7P_cjs.line({ x1: x, y1: y + 22, x2: x + width, y2: y + 22, class: "lt-state-div" })
|
|
3677
3677
|
);
|
|
3678
3678
|
let cy = y + 36;
|
|
3679
3679
|
for (const a of node.node.activities) {
|
|
3680
|
-
children.push(
|
|
3680
|
+
children.push(chunk3WNW5Y7P_cjs.text({ x: x + 8, y: cy, class: "lt-state-activity" }, activityText2(a)));
|
|
3681
3681
|
cy += 14;
|
|
3682
3682
|
}
|
|
3683
3683
|
}
|
|
3684
|
-
return
|
|
3684
|
+
return chunk3WNW5Y7P_cjs.group({ class: "lt-state lt-simple", "data-id": node.id }, children);
|
|
3685
3685
|
}
|
|
3686
3686
|
function renderComposite(c) {
|
|
3687
3687
|
const { x, y, width, height } = c;
|
|
@@ -3689,13 +3689,13 @@ function renderComposite(c) {
|
|
|
3689
3689
|
const acts = c.state.activities;
|
|
3690
3690
|
const actsH = acts.length ? acts.length * 14 + 6 : 0;
|
|
3691
3691
|
const parts = [
|
|
3692
|
-
|
|
3692
|
+
chunk3WNW5Y7P_cjs.rect({ x, y, width, height, rx: 10, ry: 10, class: "lt-composite-body" }),
|
|
3693
3693
|
// Title bar background — only the top strip
|
|
3694
|
-
|
|
3694
|
+
chunk3WNW5Y7P_cjs.path({
|
|
3695
3695
|
d: `M ${x + 1} ${y + titleBarH} L ${x + width - 1} ${y + titleBarH}`,
|
|
3696
3696
|
class: "lt-state-div"
|
|
3697
3697
|
}),
|
|
3698
|
-
|
|
3698
|
+
chunk3WNW5Y7P_cjs.text(
|
|
3699
3699
|
{ x: x + 12, y: y + 16, class: "lt-composite-title" },
|
|
3700
3700
|
c.state.label || c.state.id
|
|
3701
3701
|
)
|
|
@@ -3703,11 +3703,11 @@ function renderComposite(c) {
|
|
|
3703
3703
|
if (acts.length) {
|
|
3704
3704
|
let cy = y + titleBarH + 14;
|
|
3705
3705
|
for (const a of acts) {
|
|
3706
|
-
parts.push(
|
|
3706
|
+
parts.push(chunk3WNW5Y7P_cjs.text({ x: x + 12, y: cy, class: "lt-state-activity" }, activityText2(a)));
|
|
3707
3707
|
cy += 14;
|
|
3708
3708
|
}
|
|
3709
3709
|
parts.push(
|
|
3710
|
-
|
|
3710
|
+
chunk3WNW5Y7P_cjs.path({
|
|
3711
3711
|
d: `M ${x + 1} ${y + titleBarH + actsH} L ${x + width - 1} ${y + titleBarH + actsH}`,
|
|
3712
3712
|
class: "lt-state-div"
|
|
3713
3713
|
})
|
|
@@ -3716,11 +3716,11 @@ function renderComposite(c) {
|
|
|
3716
3716
|
if (c.regionDividers) {
|
|
3717
3717
|
for (const yy of c.regionDividers) {
|
|
3718
3718
|
parts.push(
|
|
3719
|
-
|
|
3719
|
+
chunk3WNW5Y7P_cjs.line({ x1: x + 1, y1: yy, x2: x + width - 1, y2: yy, class: "lt-region-div" })
|
|
3720
3720
|
);
|
|
3721
3721
|
}
|
|
3722
3722
|
}
|
|
3723
|
-
return
|
|
3723
|
+
return chunk3WNW5Y7P_cjs.group(
|
|
3724
3724
|
{ class: "lt-state lt-composite", "data-id": c.id },
|
|
3725
3725
|
parts
|
|
3726
3726
|
);
|
|
@@ -3731,24 +3731,24 @@ function renderPseudo(node) {
|
|
|
3731
3731
|
const k = node.node.pseudoKind;
|
|
3732
3732
|
switch (k) {
|
|
3733
3733
|
case "initial":
|
|
3734
|
-
return
|
|
3734
|
+
return chunk3WNW5Y7P_cjs.group(
|
|
3735
3735
|
{ class: "lt-state lt-pseudo", "data-id": node.id, "data-kind": "initial" },
|
|
3736
|
-
[
|
|
3736
|
+
[chunk3WNW5Y7P_cjs.circle({ cx, cy, r: 8, class: "lt-ps-initial" })]
|
|
3737
3737
|
);
|
|
3738
3738
|
case "final":
|
|
3739
|
-
return
|
|
3739
|
+
return chunk3WNW5Y7P_cjs.group(
|
|
3740
3740
|
{ class: "lt-state lt-pseudo", "data-id": node.id, "data-kind": "final" },
|
|
3741
3741
|
[
|
|
3742
|
-
|
|
3743
|
-
|
|
3742
|
+
chunk3WNW5Y7P_cjs.circle({ cx, cy, r: 11, class: "lt-ps-final-outer" }),
|
|
3743
|
+
chunk3WNW5Y7P_cjs.circle({ cx, cy, r: 6, class: "lt-ps-final-inner" })
|
|
3744
3744
|
]
|
|
3745
3745
|
);
|
|
3746
3746
|
case "choice": {
|
|
3747
3747
|
const r = 14;
|
|
3748
|
-
return
|
|
3748
|
+
return chunk3WNW5Y7P_cjs.group(
|
|
3749
3749
|
{ class: "lt-state lt-pseudo", "data-id": node.id, "data-kind": "choice" },
|
|
3750
3750
|
[
|
|
3751
|
-
|
|
3751
|
+
chunk3WNW5Y7P_cjs.polygon({
|
|
3752
3752
|
points: `${cx},${cy - r} ${cx + r},${cy} ${cx},${cy + r} ${cx - r},${cy}`,
|
|
3753
3753
|
class: "lt-ps-choice"
|
|
3754
3754
|
})
|
|
@@ -3756,52 +3756,52 @@ function renderPseudo(node) {
|
|
|
3756
3756
|
);
|
|
3757
3757
|
}
|
|
3758
3758
|
case "junction":
|
|
3759
|
-
return
|
|
3759
|
+
return chunk3WNW5Y7P_cjs.group(
|
|
3760
3760
|
{ class: "lt-state lt-pseudo", "data-id": node.id, "data-kind": "junction" },
|
|
3761
|
-
[
|
|
3761
|
+
[chunk3WNW5Y7P_cjs.circle({ cx, cy, r: 6, class: "lt-ps-junction" })]
|
|
3762
3762
|
);
|
|
3763
3763
|
case "fork":
|
|
3764
3764
|
case "join":
|
|
3765
|
-
return
|
|
3765
|
+
return chunk3WNW5Y7P_cjs.group(
|
|
3766
3766
|
{ class: "lt-state lt-pseudo", "data-id": node.id, "data-kind": k },
|
|
3767
|
-
[
|
|
3767
|
+
[chunk3WNW5Y7P_cjs.rect({ x: node.x, y: node.y, width: node.width, height: node.height, rx: 2, ry: 2, class: "lt-ps-bar" })]
|
|
3768
3768
|
);
|
|
3769
3769
|
case "history":
|
|
3770
|
-
return
|
|
3770
|
+
return chunk3WNW5Y7P_cjs.group(
|
|
3771
3771
|
{ class: "lt-state lt-pseudo", "data-id": node.id, "data-kind": "history" },
|
|
3772
3772
|
[
|
|
3773
|
-
|
|
3774
|
-
|
|
3773
|
+
chunk3WNW5Y7P_cjs.circle({ cx, cy, r: 12, class: "lt-ps-history-body" }),
|
|
3774
|
+
chunk3WNW5Y7P_cjs.text({ x: cx, y: cy + 4, "text-anchor": "middle", class: "lt-ps-history-text" }, "H")
|
|
3775
3775
|
]
|
|
3776
3776
|
);
|
|
3777
3777
|
case "dhistory":
|
|
3778
|
-
return
|
|
3778
|
+
return chunk3WNW5Y7P_cjs.group(
|
|
3779
3779
|
{ class: "lt-state lt-pseudo", "data-id": node.id, "data-kind": "dhistory" },
|
|
3780
3780
|
[
|
|
3781
|
-
|
|
3782
|
-
|
|
3781
|
+
chunk3WNW5Y7P_cjs.circle({ cx, cy, r: 13, class: "lt-ps-history-body" }),
|
|
3782
|
+
chunk3WNW5Y7P_cjs.text({ x: cx, y: cy + 4, "text-anchor": "middle", class: "lt-ps-history-text" }, "H*")
|
|
3783
3783
|
]
|
|
3784
3784
|
);
|
|
3785
3785
|
case "terminate":
|
|
3786
|
-
return
|
|
3786
|
+
return chunk3WNW5Y7P_cjs.group(
|
|
3787
3787
|
{ class: "lt-state lt-pseudo", "data-id": node.id, "data-kind": "terminate" },
|
|
3788
3788
|
[
|
|
3789
|
-
|
|
3790
|
-
|
|
3789
|
+
chunk3WNW5Y7P_cjs.line({ x1: cx - 8, y1: cy - 8, x2: cx + 8, y2: cy + 8, class: "lt-ps-terminate" }),
|
|
3790
|
+
chunk3WNW5Y7P_cjs.line({ x1: cx + 8, y1: cy - 8, x2: cx - 8, y2: cy + 8, class: "lt-ps-terminate" })
|
|
3791
3791
|
]
|
|
3792
3792
|
);
|
|
3793
3793
|
case "entry_point":
|
|
3794
|
-
return
|
|
3794
|
+
return chunk3WNW5Y7P_cjs.group(
|
|
3795
3795
|
{ class: "lt-state lt-pseudo", "data-id": node.id, "data-kind": "entry_point" },
|
|
3796
|
-
[
|
|
3796
|
+
[chunk3WNW5Y7P_cjs.circle({ cx, cy, r: 7, class: "lt-ps-entrypoint" })]
|
|
3797
3797
|
);
|
|
3798
3798
|
case "exit_point":
|
|
3799
|
-
return
|
|
3799
|
+
return chunk3WNW5Y7P_cjs.group(
|
|
3800
3800
|
{ class: "lt-state lt-pseudo", "data-id": node.id, "data-kind": "exit_point" },
|
|
3801
3801
|
[
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3802
|
+
chunk3WNW5Y7P_cjs.circle({ cx, cy, r: 7, class: "lt-ps-exitpoint" }),
|
|
3803
|
+
chunk3WNW5Y7P_cjs.line({ x1: cx - 4, y1: cy - 4, x2: cx + 4, y2: cy + 4, class: "lt-ps-terminate" }),
|
|
3804
|
+
chunk3WNW5Y7P_cjs.line({ x1: cx + 4, y1: cy - 4, x2: cx - 4, y2: cy + 4, class: "lt-ps-terminate" })
|
|
3805
3805
|
]
|
|
3806
3806
|
);
|
|
3807
3807
|
default:
|
|
@@ -3814,7 +3814,7 @@ function renderNode(node) {
|
|
|
3814
3814
|
}
|
|
3815
3815
|
function renderEdge(edge) {
|
|
3816
3816
|
const parts = [
|
|
3817
|
-
|
|
3817
|
+
chunk3WNW5Y7P_cjs.path({
|
|
3818
3818
|
d: edge.path,
|
|
3819
3819
|
class: "lt-transition",
|
|
3820
3820
|
"marker-end": `url(#${ARROW_MARKER_ID})`,
|
|
@@ -3827,7 +3827,7 @@ function renderEdge(edge) {
|
|
|
3827
3827
|
const anchor = edge.labelAnchor ?? "middle";
|
|
3828
3828
|
const dx = anchor === "start" ? 0 : anchor === "end" ? -w : -w / 2;
|
|
3829
3829
|
parts.push(
|
|
3830
|
-
|
|
3830
|
+
chunk3WNW5Y7P_cjs.rect({
|
|
3831
3831
|
x: edge.labelX + dx,
|
|
3832
3832
|
y: edge.labelY - 10,
|
|
3833
3833
|
width: w,
|
|
@@ -3838,7 +3838,7 @@ function renderEdge(edge) {
|
|
|
3838
3838
|
})
|
|
3839
3839
|
);
|
|
3840
3840
|
parts.push(
|
|
3841
|
-
|
|
3841
|
+
chunk3WNW5Y7P_cjs.text(
|
|
3842
3842
|
{
|
|
3843
3843
|
x: edge.labelX,
|
|
3844
3844
|
y: edge.labelY,
|
|
@@ -3849,33 +3849,33 @@ function renderEdge(edge) {
|
|
|
3849
3849
|
)
|
|
3850
3850
|
);
|
|
3851
3851
|
}
|
|
3852
|
-
return
|
|
3852
|
+
return chunk3WNW5Y7P_cjs.group({ class: "lt-edge", "data-edge-id": edge.id }, parts);
|
|
3853
3853
|
}
|
|
3854
3854
|
function renderNote(n) {
|
|
3855
3855
|
const parts = [
|
|
3856
|
-
|
|
3856
|
+
chunk3WNW5Y7P_cjs.line({
|
|
3857
3857
|
x1: n.leader.x1,
|
|
3858
3858
|
y1: n.leader.y1,
|
|
3859
3859
|
x2: n.leader.x2,
|
|
3860
3860
|
y2: n.leader.y2,
|
|
3861
3861
|
class: "lt-note-leader"
|
|
3862
3862
|
}),
|
|
3863
|
-
|
|
3863
|
+
chunk3WNW5Y7P_cjs.rect({ x: n.x, y: n.y, width: n.width, height: n.height, rx: 4, ry: 4, class: "lt-note-body" })
|
|
3864
3864
|
];
|
|
3865
3865
|
let yy = n.y + 14;
|
|
3866
3866
|
for (const ln of n.lines) {
|
|
3867
|
-
parts.push(
|
|
3867
|
+
parts.push(chunk3WNW5Y7P_cjs.text({ x: n.x + 8, y: yy, class: "lt-note-text" }, ln));
|
|
3868
3868
|
yy += 14;
|
|
3869
3869
|
}
|
|
3870
|
-
return
|
|
3870
|
+
return chunk3WNW5Y7P_cjs.group({ class: "lt-note", "data-target": n.note.target }, parts);
|
|
3871
3871
|
}
|
|
3872
3872
|
function renderStateDiagram(ast, _config) {
|
|
3873
3873
|
const layout = layoutStateDiagram(ast);
|
|
3874
3874
|
return renderLayout(layout);
|
|
3875
3875
|
}
|
|
3876
3876
|
function renderLayout(layout) {
|
|
3877
|
-
const titleNode = layout.title ?
|
|
3878
|
-
return
|
|
3877
|
+
const titleNode = layout.title ? chunk3WNW5Y7P_cjs.text({ x: 16, y: 22, class: "lt-title" }, layout.title) : "";
|
|
3878
|
+
return chunk3WNW5Y7P_cjs.svgRoot(
|
|
3879
3879
|
{
|
|
3880
3880
|
width: layout.width,
|
|
3881
3881
|
height: layout.height,
|
|
@@ -3884,15 +3884,15 @@ function renderLayout(layout) {
|
|
|
3884
3884
|
"data-diagram-type": "state"
|
|
3885
3885
|
},
|
|
3886
3886
|
[
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
|
|
3887
|
+
chunk3WNW5Y7P_cjs.el("title", {}, chunk3WNW5Y7P_cjs.escapeXml(`State Diagram${layout.title ? " \u2014 " + layout.title : ""}`)),
|
|
3888
|
+
chunk3WNW5Y7P_cjs.el("desc", {}, "UML 2.5 / Harel statechart rendered by Schematex"),
|
|
3889
|
+
chunk3WNW5Y7P_cjs.defs([renderArrowMarker(), chunk3WNW5Y7P_cjs.el("style", {}, STYLE)]),
|
|
3890
3890
|
titleNode,
|
|
3891
3891
|
// Composite clusters first so simple-state bodies sit on top.
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
3892
|
+
chunk3WNW5Y7P_cjs.group({ class: "lt-clusters" }, layout.clusters.map(renderComposite)),
|
|
3893
|
+
chunk3WNW5Y7P_cjs.group({ class: "lt-state-bodies" }, layout.nodes.map(renderNode)),
|
|
3894
|
+
chunk3WNW5Y7P_cjs.group({ class: "lt-edges" }, layout.edges.map(renderEdge)),
|
|
3895
|
+
chunk3WNW5Y7P_cjs.group({ class: "lt-notes" }, layout.notes.map(renderNote))
|
|
3896
3896
|
]
|
|
3897
3897
|
);
|
|
3898
3898
|
}
|
|
@@ -4408,7 +4408,7 @@ var GEOMETRY = {
|
|
|
4408
4408
|
var STROKE_BLACK = "#1d1d1d";
|
|
4409
4409
|
var FILL_WHITE = "#ffffff";
|
|
4410
4410
|
function bowtie() {
|
|
4411
|
-
return
|
|
4411
|
+
return chunk3WNW5Y7P_cjs.polygon({
|
|
4412
4412
|
points: "-18,-11 0,0 -18,11 18,11 0,0 18,-11",
|
|
4413
4413
|
class: "lt-pid-valve-body"
|
|
4414
4414
|
});
|
|
@@ -4421,12 +4421,12 @@ function renderEquip(type, label) {
|
|
|
4421
4421
|
const cylTop = -h / 2 + 14;
|
|
4422
4422
|
const parts = [
|
|
4423
4423
|
// dome top
|
|
4424
|
-
|
|
4424
|
+
chunk3WNW5Y7P_cjs.path({
|
|
4425
4425
|
d: `M ${-w / 2} ${cylTop} A ${w / 2} 14 0 0 1 ${w / 2} ${cylTop}`,
|
|
4426
4426
|
class: "lt-pid-equip"
|
|
4427
4427
|
}),
|
|
4428
4428
|
// body
|
|
4429
|
-
|
|
4429
|
+
chunk3WNW5Y7P_cjs.rect({
|
|
4430
4430
|
x: -w / 2,
|
|
4431
4431
|
y: cylTop,
|
|
4432
4432
|
width: w,
|
|
@@ -4434,31 +4434,31 @@ function renderEquip(type, label) {
|
|
|
4434
4434
|
class: "lt-pid-equip"
|
|
4435
4435
|
}),
|
|
4436
4436
|
// tag
|
|
4437
|
-
|
|
4437
|
+
chunk3WNW5Y7P_cjs.text(
|
|
4438
4438
|
{ x: 0, y: 4, "text-anchor": "middle", class: "lt-pid-equip-tag" },
|
|
4439
4439
|
label
|
|
4440
4440
|
)
|
|
4441
4441
|
];
|
|
4442
|
-
return
|
|
4442
|
+
return chunk3WNW5Y7P_cjs.group({ class: "lt-pid-equip-group" }, parts);
|
|
4443
4443
|
}
|
|
4444
4444
|
case "tank_cone_roof": {
|
|
4445
4445
|
const w = 90;
|
|
4446
4446
|
const h = 100;
|
|
4447
4447
|
const roofH = 18;
|
|
4448
4448
|
const top = -h / 2;
|
|
4449
|
-
return
|
|
4450
|
-
|
|
4449
|
+
return chunk3WNW5Y7P_cjs.group({}, [
|
|
4450
|
+
chunk3WNW5Y7P_cjs.polygon({
|
|
4451
4451
|
points: `${-w / 2},${top + roofH} 0,${top} ${w / 2},${top + roofH}`,
|
|
4452
4452
|
class: "lt-pid-equip"
|
|
4453
4453
|
}),
|
|
4454
|
-
|
|
4454
|
+
chunk3WNW5Y7P_cjs.rect({
|
|
4455
4455
|
x: -w / 2,
|
|
4456
4456
|
y: top + roofH,
|
|
4457
4457
|
width: w,
|
|
4458
4458
|
height: h - roofH,
|
|
4459
4459
|
class: "lt-pid-equip"
|
|
4460
4460
|
}),
|
|
4461
|
-
|
|
4461
|
+
chunk3WNW5Y7P_cjs.text({ x: 0, y: 4, "text-anchor": "middle", class: "lt-pid-equip-tag" }, label)
|
|
4462
4462
|
]);
|
|
4463
4463
|
}
|
|
4464
4464
|
case "vessel_v": {
|
|
@@ -4467,8 +4467,8 @@ function renderEquip(type, label) {
|
|
|
4467
4467
|
const headH = 16;
|
|
4468
4468
|
const top = -h / 2;
|
|
4469
4469
|
const bot = h / 2;
|
|
4470
|
-
return
|
|
4471
|
-
|
|
4470
|
+
return chunk3WNW5Y7P_cjs.group({}, [
|
|
4471
|
+
chunk3WNW5Y7P_cjs.path({
|
|
4472
4472
|
d: `M ${-w / 2} ${top + headH}
|
|
4473
4473
|
A ${w / 2} ${headH} 0 0 1 ${w / 2} ${top + headH}
|
|
4474
4474
|
L ${w / 2} ${bot - headH}
|
|
@@ -4476,7 +4476,7 @@ function renderEquip(type, label) {
|
|
|
4476
4476
|
Z`,
|
|
4477
4477
|
class: "lt-pid-equip"
|
|
4478
4478
|
}),
|
|
4479
|
-
|
|
4479
|
+
chunk3WNW5Y7P_cjs.text(
|
|
4480
4480
|
{ x: 0, y: 4, "text-anchor": "middle", class: "lt-pid-equip-tag" },
|
|
4481
4481
|
label
|
|
4482
4482
|
)
|
|
@@ -4488,8 +4488,8 @@ function renderEquip(type, label) {
|
|
|
4488
4488
|
const headW = 14;
|
|
4489
4489
|
const left = -w / 2;
|
|
4490
4490
|
const right = w / 2;
|
|
4491
|
-
return
|
|
4492
|
-
|
|
4491
|
+
return chunk3WNW5Y7P_cjs.group({}, [
|
|
4492
|
+
chunk3WNW5Y7P_cjs.path({
|
|
4493
4493
|
d: `M ${left + headW} ${-h / 2}
|
|
4494
4494
|
L ${right - headW} ${-h / 2}
|
|
4495
4495
|
A ${headW} ${h / 2} 0 0 1 ${right - headW} ${h / 2}
|
|
@@ -4498,16 +4498,16 @@ function renderEquip(type, label) {
|
|
|
4498
4498
|
Z`,
|
|
4499
4499
|
class: "lt-pid-equip"
|
|
4500
4500
|
}),
|
|
4501
|
-
|
|
4501
|
+
chunk3WNW5Y7P_cjs.text(
|
|
4502
4502
|
{ x: 0, y: 4, "text-anchor": "middle", class: "lt-pid-equip-tag" },
|
|
4503
4503
|
label
|
|
4504
4504
|
)
|
|
4505
4505
|
]);
|
|
4506
4506
|
}
|
|
4507
4507
|
case "sphere": {
|
|
4508
|
-
return
|
|
4509
|
-
|
|
4510
|
-
|
|
4508
|
+
return chunk3WNW5Y7P_cjs.group({}, [
|
|
4509
|
+
chunk3WNW5Y7P_cjs.circle({ cx: 0, cy: 0, r: 45, class: "lt-pid-equip" }),
|
|
4510
|
+
chunk3WNW5Y7P_cjs.text({ x: 0, y: 4, "text-anchor": "middle", class: "lt-pid-equip-tag" }, label)
|
|
4511
4511
|
]);
|
|
4512
4512
|
}
|
|
4513
4513
|
case "column_tray": {
|
|
@@ -4521,7 +4521,7 @@ function renderEquip(type, label) {
|
|
|
4521
4521
|
for (let i = 1; i <= trays; i++) {
|
|
4522
4522
|
const y = -h / 2 + headH + traySpacing * i;
|
|
4523
4523
|
trayLines.push(
|
|
4524
|
-
|
|
4524
|
+
chunk3WNW5Y7P_cjs.line({
|
|
4525
4525
|
x1: -w / 2 + 6,
|
|
4526
4526
|
y1: y,
|
|
4527
4527
|
x2: w / 2 - 6,
|
|
@@ -4530,8 +4530,8 @@ function renderEquip(type, label) {
|
|
|
4530
4530
|
})
|
|
4531
4531
|
);
|
|
4532
4532
|
}
|
|
4533
|
-
return
|
|
4534
|
-
|
|
4533
|
+
return chunk3WNW5Y7P_cjs.group({}, [
|
|
4534
|
+
chunk3WNW5Y7P_cjs.path({
|
|
4535
4535
|
d: `M ${-w / 2} ${-h / 2 + headH}
|
|
4536
4536
|
A ${w / 2} ${headH} 0 0 1 ${w / 2} ${-h / 2 + headH}
|
|
4537
4537
|
L ${w / 2} ${h / 2 - headH}
|
|
@@ -4540,7 +4540,7 @@ function renderEquip(type, label) {
|
|
|
4540
4540
|
class: "lt-pid-equip"
|
|
4541
4541
|
}),
|
|
4542
4542
|
...trayLines,
|
|
4543
|
-
|
|
4543
|
+
chunk3WNW5Y7P_cjs.text(
|
|
4544
4544
|
{
|
|
4545
4545
|
x: 0,
|
|
4546
4546
|
y: -h / 2 - 6,
|
|
@@ -4555,15 +4555,15 @@ function renderEquip(type, label) {
|
|
|
4555
4555
|
const w = 60;
|
|
4556
4556
|
const h = 180;
|
|
4557
4557
|
const headH = 12;
|
|
4558
|
-
const packing =
|
|
4558
|
+
const packing = chunk3WNW5Y7P_cjs.path({
|
|
4559
4559
|
d: `M ${-w / 2 + 6} ${-h / 2 + headH + 6}
|
|
4560
4560
|
L ${w / 2 - 6} ${h / 2 - headH - 6}
|
|
4561
4561
|
M ${w / 2 - 6} ${-h / 2 + headH + 6}
|
|
4562
4562
|
L ${-w / 2 + 6} ${h / 2 - headH - 6}`,
|
|
4563
4563
|
class: "lt-pid-tray-line"
|
|
4564
4564
|
});
|
|
4565
|
-
return
|
|
4566
|
-
|
|
4565
|
+
return chunk3WNW5Y7P_cjs.group({}, [
|
|
4566
|
+
chunk3WNW5Y7P_cjs.path({
|
|
4567
4567
|
d: `M ${-w / 2} ${-h / 2 + headH}
|
|
4568
4568
|
A ${w / 2} ${headH} 0 0 1 ${w / 2} ${-h / 2 + headH}
|
|
4569
4569
|
L ${w / 2} ${h / 2 - headH}
|
|
@@ -4572,7 +4572,7 @@ function renderEquip(type, label) {
|
|
|
4572
4572
|
class: "lt-pid-equip"
|
|
4573
4573
|
}),
|
|
4574
4574
|
packing,
|
|
4575
|
-
|
|
4575
|
+
chunk3WNW5Y7P_cjs.text(
|
|
4576
4576
|
{
|
|
4577
4577
|
x: 0,
|
|
4578
4578
|
y: -h / 2 - 6,
|
|
@@ -4592,7 +4592,7 @@ function renderEquip(type, label) {
|
|
|
4592
4592
|
const tubes = [];
|
|
4593
4593
|
for (let yy = -h / 2 + 12; yy <= h / 2 - 12; yy += 8) {
|
|
4594
4594
|
tubes.push(
|
|
4595
|
-
|
|
4595
|
+
chunk3WNW5Y7P_cjs.line({
|
|
4596
4596
|
x1: left + headW + 4,
|
|
4597
4597
|
y1: yy,
|
|
4598
4598
|
x2: right - headW - 4,
|
|
@@ -4601,8 +4601,8 @@ function renderEquip(type, label) {
|
|
|
4601
4601
|
})
|
|
4602
4602
|
);
|
|
4603
4603
|
}
|
|
4604
|
-
return
|
|
4605
|
-
|
|
4604
|
+
return chunk3WNW5Y7P_cjs.group({}, [
|
|
4605
|
+
chunk3WNW5Y7P_cjs.path({
|
|
4606
4606
|
d: `M ${left + headW} ${-h / 2}
|
|
4607
4607
|
L ${right - headW} ${-h / 2}
|
|
4608
4608
|
A ${headW} ${h / 2} 0 0 1 ${right - headW} ${h / 2}
|
|
@@ -4612,7 +4612,7 @@ function renderEquip(type, label) {
|
|
|
4612
4612
|
class: "lt-pid-equip"
|
|
4613
4613
|
}),
|
|
4614
4614
|
...tubes,
|
|
4615
|
-
|
|
4615
|
+
chunk3WNW5Y7P_cjs.text(
|
|
4616
4616
|
{
|
|
4617
4617
|
x: 0,
|
|
4618
4618
|
y: h / 2 + 14,
|
|
@@ -4626,23 +4626,23 @@ function renderEquip(type, label) {
|
|
|
4626
4626
|
case "hx_air_cooled": {
|
|
4627
4627
|
const w = 130;
|
|
4628
4628
|
const h = 80;
|
|
4629
|
-
return
|
|
4630
|
-
|
|
4629
|
+
return chunk3WNW5Y7P_cjs.group({}, [
|
|
4630
|
+
chunk3WNW5Y7P_cjs.rect({
|
|
4631
4631
|
x: -w / 2,
|
|
4632
4632
|
y: -h / 2 + 18,
|
|
4633
4633
|
width: w,
|
|
4634
4634
|
height: h - 18,
|
|
4635
4635
|
class: "lt-pid-equip"
|
|
4636
4636
|
}),
|
|
4637
|
-
|
|
4637
|
+
chunk3WNW5Y7P_cjs.circle({ cx: 0, cy: -h / 2 + 14, r: 18, class: "lt-pid-equip" }),
|
|
4638
4638
|
// 3-blade fan
|
|
4639
|
-
|
|
4639
|
+
chunk3WNW5Y7P_cjs.path({
|
|
4640
4640
|
d: `M 0 ${-h / 2 + 14} L 14 ${-h / 2 + 6}
|
|
4641
4641
|
M 0 ${-h / 2 + 14} L -14 ${-h / 2 + 6}
|
|
4642
4642
|
M 0 ${-h / 2 + 14} L 0 ${-h / 2 + 30}`,
|
|
4643
4643
|
class: "lt-pid-tray-line"
|
|
4644
4644
|
}),
|
|
4645
|
-
|
|
4645
|
+
chunk3WNW5Y7P_cjs.text(
|
|
4646
4646
|
{ x: 0, y: h / 2 + 14, "text-anchor": "middle", class: "lt-pid-equip-tag" },
|
|
4647
4647
|
label
|
|
4648
4648
|
)
|
|
@@ -4652,8 +4652,8 @@ function renderEquip(type, label) {
|
|
|
4652
4652
|
const w = 110;
|
|
4653
4653
|
const h = 60;
|
|
4654
4654
|
const headW = 14;
|
|
4655
|
-
return
|
|
4656
|
-
|
|
4655
|
+
return chunk3WNW5Y7P_cjs.group({}, [
|
|
4656
|
+
chunk3WNW5Y7P_cjs.path({
|
|
4657
4657
|
d: `M ${-w / 2 + headW} ${-h / 2}
|
|
4658
4658
|
L ${w / 2 - headW} ${-h / 2}
|
|
4659
4659
|
A ${headW} ${h / 2} 0 0 1 ${w / 2 - headW} ${h / 2}
|
|
@@ -4662,28 +4662,28 @@ function renderEquip(type, label) {
|
|
|
4662
4662
|
Z`,
|
|
4663
4663
|
class: "lt-pid-equip"
|
|
4664
4664
|
}),
|
|
4665
|
-
|
|
4665
|
+
chunk3WNW5Y7P_cjs.line({
|
|
4666
4666
|
x1: -w / 2 + headW + 4,
|
|
4667
4667
|
y1: -10,
|
|
4668
4668
|
x2: w / 2 - headW - 4,
|
|
4669
4669
|
y2: -10,
|
|
4670
4670
|
class: "lt-pid-tray-line"
|
|
4671
4671
|
}),
|
|
4672
|
-
|
|
4672
|
+
chunk3WNW5Y7P_cjs.line({
|
|
4673
4673
|
x1: -w / 2 + headW + 4,
|
|
4674
4674
|
y1: 0,
|
|
4675
4675
|
x2: w / 2 - headW - 4,
|
|
4676
4676
|
y2: 0,
|
|
4677
4677
|
class: "lt-pid-tray-line"
|
|
4678
4678
|
}),
|
|
4679
|
-
|
|
4679
|
+
chunk3WNW5Y7P_cjs.line({
|
|
4680
4680
|
x1: -w / 2 + headW + 4,
|
|
4681
4681
|
y1: 10,
|
|
4682
4682
|
x2: w / 2 - headW - 4,
|
|
4683
4683
|
y2: 10,
|
|
4684
4684
|
class: "lt-pid-tray-line"
|
|
4685
4685
|
}),
|
|
4686
|
-
|
|
4686
|
+
chunk3WNW5Y7P_cjs.text({ x: 0, y: h / 2 + 14, "text-anchor": "middle", class: "lt-pid-equip-tag" }, label)
|
|
4687
4687
|
]);
|
|
4688
4688
|
}
|
|
4689
4689
|
case "condenser": {
|
|
@@ -4695,7 +4695,7 @@ function renderEquip(type, label) {
|
|
|
4695
4695
|
const tubes = [];
|
|
4696
4696
|
for (let yy = -h / 2 + 12; yy <= h / 2 - 12; yy += 10) {
|
|
4697
4697
|
tubes.push(
|
|
4698
|
-
|
|
4698
|
+
chunk3WNW5Y7P_cjs.line({
|
|
4699
4699
|
x1: left + headW + 4,
|
|
4700
4700
|
y1: yy,
|
|
4701
4701
|
x2: right - headW - 4,
|
|
@@ -4704,8 +4704,8 @@ function renderEquip(type, label) {
|
|
|
4704
4704
|
})
|
|
4705
4705
|
);
|
|
4706
4706
|
}
|
|
4707
|
-
return
|
|
4708
|
-
|
|
4707
|
+
return chunk3WNW5Y7P_cjs.group({}, [
|
|
4708
|
+
chunk3WNW5Y7P_cjs.path({
|
|
4709
4709
|
d: `M ${left + headW} ${-h / 2}
|
|
4710
4710
|
L ${right - headW} ${-h / 2}
|
|
4711
4711
|
A ${headW} ${h / 2} 0 0 1 ${right - headW} ${h / 2}
|
|
@@ -4715,18 +4715,18 @@ function renderEquip(type, label) {
|
|
|
4715
4715
|
class: "lt-pid-equip"
|
|
4716
4716
|
}),
|
|
4717
4717
|
...tubes,
|
|
4718
|
-
|
|
4718
|
+
chunk3WNW5Y7P_cjs.text({ x: 0, y: h / 2 + 14, "text-anchor": "middle", class: "lt-pid-equip-tag" }, label)
|
|
4719
4719
|
]);
|
|
4720
4720
|
}
|
|
4721
4721
|
case "pump_centrifugal": {
|
|
4722
4722
|
const r = 22;
|
|
4723
|
-
return
|
|
4724
|
-
|
|
4725
|
-
|
|
4723
|
+
return chunk3WNW5Y7P_cjs.group({}, [
|
|
4724
|
+
chunk3WNW5Y7P_cjs.circle({ cx: 0, cy: 0, r, class: "lt-pid-equip" }),
|
|
4725
|
+
chunk3WNW5Y7P_cjs.polygon({
|
|
4726
4726
|
points: `${r * 0.4},${-r * 0.9} ${r + 6},${-r * 0.9} ${r * 0.4},${0}`,
|
|
4727
4727
|
class: "lt-pid-equip"
|
|
4728
4728
|
}),
|
|
4729
|
-
|
|
4729
|
+
chunk3WNW5Y7P_cjs.text(
|
|
4730
4730
|
{ x: 0, y: r + 14, "text-anchor": "middle", class: "lt-pid-equip-tag" },
|
|
4731
4731
|
label
|
|
4732
4732
|
)
|
|
@@ -4734,34 +4734,34 @@ function renderEquip(type, label) {
|
|
|
4734
4734
|
}
|
|
4735
4735
|
case "pump_pd": {
|
|
4736
4736
|
const r = 22;
|
|
4737
|
-
return
|
|
4738
|
-
|
|
4739
|
-
|
|
4740
|
-
|
|
4741
|
-
|
|
4737
|
+
return chunk3WNW5Y7P_cjs.group({}, [
|
|
4738
|
+
chunk3WNW5Y7P_cjs.circle({ cx: 0, cy: 0, r, class: "lt-pid-equip" }),
|
|
4739
|
+
chunk3WNW5Y7P_cjs.circle({ cx: -8, cy: 0, r: 6, class: "lt-pid-tray-line", fill: "none" }),
|
|
4740
|
+
chunk3WNW5Y7P_cjs.circle({ cx: 8, cy: 0, r: 6, class: "lt-pid-tray-line", fill: "none" }),
|
|
4741
|
+
chunk3WNW5Y7P_cjs.text(
|
|
4742
4742
|
{ x: 0, y: r + 14, "text-anchor": "middle", class: "lt-pid-equip-tag" },
|
|
4743
4743
|
label
|
|
4744
4744
|
)
|
|
4745
4745
|
]);
|
|
4746
4746
|
}
|
|
4747
4747
|
case "compressor": {
|
|
4748
|
-
return
|
|
4749
|
-
|
|
4748
|
+
return chunk3WNW5Y7P_cjs.group({}, [
|
|
4749
|
+
chunk3WNW5Y7P_cjs.polygon({
|
|
4750
4750
|
points: "-45,-20 45,-12 45,12 -45,20",
|
|
4751
4751
|
class: "lt-pid-equip"
|
|
4752
4752
|
}),
|
|
4753
|
-
|
|
4753
|
+
chunk3WNW5Y7P_cjs.text({ x: 0, y: 36, "text-anchor": "middle", class: "lt-pid-equip-tag" }, label)
|
|
4754
4754
|
]);
|
|
4755
4755
|
}
|
|
4756
4756
|
case "blower": {
|
|
4757
4757
|
const r = 22;
|
|
4758
|
-
return
|
|
4759
|
-
|
|
4760
|
-
|
|
4758
|
+
return chunk3WNW5Y7P_cjs.group({}, [
|
|
4759
|
+
chunk3WNW5Y7P_cjs.circle({ cx: 0, cy: 0, r, class: "lt-pid-equip" }),
|
|
4760
|
+
chunk3WNW5Y7P_cjs.path({
|
|
4761
4761
|
d: `M 0 0 L ${r * 0.8} ${-r * 0.5} M 0 0 L ${-r * 0.6} ${-r * 0.6} M 0 0 L 0 ${r * 0.8}`,
|
|
4762
4762
|
class: "lt-pid-tray-line"
|
|
4763
4763
|
}),
|
|
4764
|
-
|
|
4764
|
+
chunk3WNW5Y7P_cjs.text({ x: 0, y: r + 14, "text-anchor": "middle", class: "lt-pid-equip-tag" }, label)
|
|
4765
4765
|
]);
|
|
4766
4766
|
}
|
|
4767
4767
|
case "reactor_cstr": {
|
|
@@ -4770,8 +4770,8 @@ function renderEquip(type, label) {
|
|
|
4770
4770
|
const headH = 14;
|
|
4771
4771
|
const top = -h / 2;
|
|
4772
4772
|
const bot = h / 2;
|
|
4773
|
-
return
|
|
4774
|
-
|
|
4773
|
+
return chunk3WNW5Y7P_cjs.group({}, [
|
|
4774
|
+
chunk3WNW5Y7P_cjs.path({
|
|
4775
4775
|
d: `M ${-w / 2} ${top + headH}
|
|
4776
4776
|
A ${w / 2} ${headH} 0 0 1 ${w / 2} ${top + headH}
|
|
4777
4777
|
L ${w / 2} ${bot - headH}
|
|
@@ -4780,9 +4780,9 @@ function renderEquip(type, label) {
|
|
|
4780
4780
|
class: "lt-pid-equip"
|
|
4781
4781
|
}),
|
|
4782
4782
|
// agitator shaft + paddle
|
|
4783
|
-
|
|
4784
|
-
|
|
4785
|
-
|
|
4783
|
+
chunk3WNW5Y7P_cjs.line({ x1: 0, y1: top - 14, x2: 0, y2: 4, class: "lt-pid-tray-line" }),
|
|
4784
|
+
chunk3WNW5Y7P_cjs.rect({ x: -10, y: 4, width: 20, height: 4, class: "lt-pid-equip" }),
|
|
4785
|
+
chunk3WNW5Y7P_cjs.text(
|
|
4786
4786
|
{ x: 0, y: bot + 14, "text-anchor": "middle", class: "lt-pid-equip-tag" },
|
|
4787
4787
|
label
|
|
4788
4788
|
)
|
|
@@ -4797,11 +4797,11 @@ function renderEquip(type, label) {
|
|
|
4797
4797
|
const dots = [];
|
|
4798
4798
|
for (let xx = left + headW + 8; xx <= right - headW - 8; xx += 12) {
|
|
4799
4799
|
for (let yy = -h / 2 + 12; yy <= h / 2 - 8; yy += 10) {
|
|
4800
|
-
dots.push(
|
|
4800
|
+
dots.push(chunk3WNW5Y7P_cjs.circle({ cx: xx, cy: yy, r: 1.6, fill: STROKE_BLACK }));
|
|
4801
4801
|
}
|
|
4802
4802
|
}
|
|
4803
|
-
return
|
|
4804
|
-
|
|
4803
|
+
return chunk3WNW5Y7P_cjs.group({}, [
|
|
4804
|
+
chunk3WNW5Y7P_cjs.path({
|
|
4805
4805
|
d: `M ${left + headW} ${-h / 2}
|
|
4806
4806
|
L ${right - headW} ${-h / 2}
|
|
4807
4807
|
A ${headW} ${h / 2} 0 0 1 ${right - headW} ${h / 2}
|
|
@@ -4811,26 +4811,26 @@ function renderEquip(type, label) {
|
|
|
4811
4811
|
class: "lt-pid-equip"
|
|
4812
4812
|
}),
|
|
4813
4813
|
...dots,
|
|
4814
|
-
|
|
4814
|
+
chunk3WNW5Y7P_cjs.text({ x: 0, y: h / 2 + 14, "text-anchor": "middle", class: "lt-pid-equip-tag" }, label)
|
|
4815
4815
|
]);
|
|
4816
4816
|
}
|
|
4817
4817
|
case "filter": {
|
|
4818
4818
|
const w = 70;
|
|
4819
4819
|
const h = 70;
|
|
4820
|
-
return
|
|
4821
|
-
|
|
4822
|
-
|
|
4823
|
-
|
|
4824
|
-
|
|
4825
|
-
|
|
4820
|
+
return chunk3WNW5Y7P_cjs.group({}, [
|
|
4821
|
+
chunk3WNW5Y7P_cjs.rect({ x: -w / 2, y: -h / 2, width: w, height: h, class: "lt-pid-equip" }),
|
|
4822
|
+
chunk3WNW5Y7P_cjs.line({ x1: -w / 2, y1: 0, x2: w / 2, y2: 0, class: "lt-pid-tray-line" }),
|
|
4823
|
+
chunk3WNW5Y7P_cjs.line({ x1: -w / 2 + 8, y1: -h / 2 + 8, x2: w / 2 - 8, y2: -8, class: "lt-pid-tray-line" }),
|
|
4824
|
+
chunk3WNW5Y7P_cjs.line({ x1: -w / 2 + 8, y1: 8, x2: w / 2 - 8, y2: h / 2 - 8, class: "lt-pid-tray-line" }),
|
|
4825
|
+
chunk3WNW5Y7P_cjs.text({ x: 0, y: h / 2 + 14, "text-anchor": "middle", class: "lt-pid-equip-tag" }, label)
|
|
4826
4826
|
]);
|
|
4827
4827
|
}
|
|
4828
4828
|
case "cyclone": {
|
|
4829
4829
|
const w = 70;
|
|
4830
4830
|
const h = 100;
|
|
4831
4831
|
const cyl = 30;
|
|
4832
|
-
return
|
|
4833
|
-
|
|
4832
|
+
return chunk3WNW5Y7P_cjs.group({}, [
|
|
4833
|
+
chunk3WNW5Y7P_cjs.path({
|
|
4834
4834
|
d: `M ${-w / 2} ${-h / 2}
|
|
4835
4835
|
L ${w / 2} ${-h / 2}
|
|
4836
4836
|
L ${w / 2} ${-h / 2 + cyl}
|
|
@@ -4839,27 +4839,27 @@ function renderEquip(type, label) {
|
|
|
4839
4839
|
Z`,
|
|
4840
4840
|
class: "lt-pid-equip"
|
|
4841
4841
|
}),
|
|
4842
|
-
|
|
4842
|
+
chunk3WNW5Y7P_cjs.text({ x: 0, y: h / 2 + 14, "text-anchor": "middle", class: "lt-pid-equip-tag" }, label)
|
|
4843
4843
|
]);
|
|
4844
4844
|
}
|
|
4845
4845
|
case "flare": {
|
|
4846
4846
|
const w = 30;
|
|
4847
4847
|
const h = 110;
|
|
4848
|
-
return
|
|
4849
|
-
|
|
4850
|
-
|
|
4848
|
+
return chunk3WNW5Y7P_cjs.group({}, [
|
|
4849
|
+
chunk3WNW5Y7P_cjs.rect({ x: -w / 2, y: -h / 2, width: w, height: h, class: "lt-pid-equip" }),
|
|
4850
|
+
chunk3WNW5Y7P_cjs.polygon({
|
|
4851
4851
|
points: `${ -8},${-h / 2 - 4} 0,${-h / 2 - 22} 8,${-h / 2 - 4}`,
|
|
4852
4852
|
fill: "#ff7755",
|
|
4853
4853
|
stroke: STROKE_BLACK
|
|
4854
4854
|
}),
|
|
4855
|
-
|
|
4855
|
+
chunk3WNW5Y7P_cjs.text({ x: 0, y: h / 2 + 14, "text-anchor": "middle", class: "lt-pid-equip-tag" }, label)
|
|
4856
4856
|
]);
|
|
4857
4857
|
}
|
|
4858
4858
|
case "cooling_tower": {
|
|
4859
4859
|
const w = 100;
|
|
4860
4860
|
const h = 90;
|
|
4861
|
-
return
|
|
4862
|
-
|
|
4861
|
+
return chunk3WNW5Y7P_cjs.group({}, [
|
|
4862
|
+
chunk3WNW5Y7P_cjs.path({
|
|
4863
4863
|
d: `M ${-w / 2} ${-h / 2}
|
|
4864
4864
|
L ${w / 2} ${-h / 2}
|
|
4865
4865
|
L ${w / 4} 0
|
|
@@ -4869,52 +4869,52 @@ function renderEquip(type, label) {
|
|
|
4869
4869
|
Z`,
|
|
4870
4870
|
class: "lt-pid-equip"
|
|
4871
4871
|
}),
|
|
4872
|
-
|
|
4872
|
+
chunk3WNW5Y7P_cjs.text({ x: 0, y: h / 2 + 14, "text-anchor": "middle", class: "lt-pid-equip-tag" }, label)
|
|
4873
4873
|
]);
|
|
4874
4874
|
}
|
|
4875
4875
|
// ── Valves ──────────────────────────────────────────
|
|
4876
4876
|
case "valve_gate":
|
|
4877
|
-
return
|
|
4877
|
+
return chunk3WNW5Y7P_cjs.group({}, [
|
|
4878
4878
|
bowtie(),
|
|
4879
|
-
|
|
4879
|
+
chunk3WNW5Y7P_cjs.text({ x: 0, y: 22, "text-anchor": "middle", class: "lt-pid-equip-tag" }, label)
|
|
4880
4880
|
]);
|
|
4881
4881
|
case "valve_ball":
|
|
4882
|
-
return
|
|
4882
|
+
return chunk3WNW5Y7P_cjs.group({}, [
|
|
4883
4883
|
bowtie(),
|
|
4884
|
-
|
|
4885
|
-
|
|
4884
|
+
chunk3WNW5Y7P_cjs.circle({ cx: 0, cy: 0, r: 4, fill: STROKE_BLACK }),
|
|
4885
|
+
chunk3WNW5Y7P_cjs.text({ x: 0, y: 22, "text-anchor": "middle", class: "lt-pid-equip-tag" }, label)
|
|
4886
4886
|
]);
|
|
4887
4887
|
case "valve_globe":
|
|
4888
|
-
return
|
|
4888
|
+
return chunk3WNW5Y7P_cjs.group({}, [
|
|
4889
4889
|
bowtie(),
|
|
4890
|
-
|
|
4891
|
-
|
|
4890
|
+
chunk3WNW5Y7P_cjs.circle({ cx: 0, cy: -5, r: 5, class: "lt-pid-valve-body", fill: FILL_WHITE }),
|
|
4891
|
+
chunk3WNW5Y7P_cjs.text({ x: 0, y: 22, "text-anchor": "middle", class: "lt-pid-equip-tag" }, label)
|
|
4892
4892
|
]);
|
|
4893
4893
|
case "valve_butterfly":
|
|
4894
|
-
return
|
|
4894
|
+
return chunk3WNW5Y7P_cjs.group({}, [
|
|
4895
4895
|
bowtie(),
|
|
4896
|
-
|
|
4897
|
-
|
|
4896
|
+
chunk3WNW5Y7P_cjs.line({ x1: 0, y1: -10, x2: 0, y2: 10, class: "lt-pid-tray-line" }),
|
|
4897
|
+
chunk3WNW5Y7P_cjs.text({ x: 0, y: 22, "text-anchor": "middle", class: "lt-pid-equip-tag" }, label)
|
|
4898
4898
|
]);
|
|
4899
4899
|
case "valve_check":
|
|
4900
|
-
return
|
|
4900
|
+
return chunk3WNW5Y7P_cjs.group({}, [
|
|
4901
4901
|
bowtie(),
|
|
4902
|
-
|
|
4903
|
-
|
|
4902
|
+
chunk3WNW5Y7P_cjs.path({ d: "M -10 -8 A 10 10 0 0 1 -10 8", class: "lt-pid-tray-line", fill: "none" }),
|
|
4903
|
+
chunk3WNW5Y7P_cjs.text({ x: 0, y: 22, "text-anchor": "middle", class: "lt-pid-equip-tag" }, label)
|
|
4904
4904
|
]);
|
|
4905
4905
|
case "valve_control":
|
|
4906
|
-
return
|
|
4906
|
+
return chunk3WNW5Y7P_cjs.group({}, [
|
|
4907
4907
|
bowtie(),
|
|
4908
4908
|
// actuator: diaphragm
|
|
4909
|
-
|
|
4910
|
-
|
|
4911
|
-
|
|
4909
|
+
chunk3WNW5Y7P_cjs.line({ x1: 0, y1: -11, x2: 0, y2: -22, class: "lt-pid-tray-line" }),
|
|
4910
|
+
chunk3WNW5Y7P_cjs.path({ d: "M -14 -22 A 14 8 0 0 1 14 -22 L -14 -22 Z", class: "lt-pid-equip" }),
|
|
4911
|
+
chunk3WNW5Y7P_cjs.text({ x: 0, y: 24, "text-anchor": "middle", class: "lt-pid-equip-tag" }, label)
|
|
4912
4912
|
]);
|
|
4913
4913
|
case "valve_psv":
|
|
4914
|
-
return
|
|
4914
|
+
return chunk3WNW5Y7P_cjs.group({}, [
|
|
4915
4915
|
bowtie(),
|
|
4916
4916
|
// diagonal outlet (45°)
|
|
4917
|
-
|
|
4917
|
+
chunk3WNW5Y7P_cjs.line({
|
|
4918
4918
|
x1: 18,
|
|
4919
4919
|
y1: -11,
|
|
4920
4920
|
x2: 26,
|
|
@@ -4922,17 +4922,17 @@ function renderEquip(type, label) {
|
|
|
4922
4922
|
class: "lt-pid-process"
|
|
4923
4923
|
}),
|
|
4924
4924
|
// spring stack
|
|
4925
|
-
|
|
4925
|
+
chunk3WNW5Y7P_cjs.path({
|
|
4926
4926
|
d: "M -6 -11 L -10 -16 L -2 -20 L -10 -24 L -2 -28",
|
|
4927
4927
|
class: "lt-pid-tray-line",
|
|
4928
4928
|
fill: "none"
|
|
4929
4929
|
}),
|
|
4930
|
-
|
|
4930
|
+
chunk3WNW5Y7P_cjs.text({ x: 0, y: 24, "text-anchor": "middle", class: "lt-pid-equip-tag" }, label)
|
|
4931
4931
|
]);
|
|
4932
4932
|
default:
|
|
4933
|
-
return
|
|
4934
|
-
|
|
4935
|
-
|
|
4933
|
+
return chunk3WNW5Y7P_cjs.group({}, [
|
|
4934
|
+
chunk3WNW5Y7P_cjs.rect({ x: -30, y: -20, width: 60, height: 40, class: "lt-pid-equip" }),
|
|
4935
|
+
chunk3WNW5Y7P_cjs.text({ x: 0, y: 4, "text-anchor": "middle", class: "lt-pid-equip-tag" }, label)
|
|
4936
4936
|
]);
|
|
4937
4937
|
}
|
|
4938
4938
|
}
|
|
@@ -4945,19 +4945,19 @@ function renderInstrument(category, letterCode, loopNumber) {
|
|
|
4945
4945
|
const isLocal = category.startsWith("local_");
|
|
4946
4946
|
const parts = [];
|
|
4947
4947
|
if (isComputer) {
|
|
4948
|
-
parts.push(
|
|
4948
|
+
parts.push(chunk3WNW5Y7P_cjs.circle({ cx: 0, cy: 0, r, class: "lt-inst-body" }));
|
|
4949
4949
|
parts.push(
|
|
4950
|
-
|
|
4950
|
+
chunk3WNW5Y7P_cjs.polygon({
|
|
4951
4951
|
points: `0,${-r + 1} ${r - 1},0 0,${r - 1} ${ -13},0`,
|
|
4952
4952
|
class: "lt-inst-body",
|
|
4953
4953
|
fill: "none"
|
|
4954
4954
|
})
|
|
4955
4955
|
);
|
|
4956
4956
|
} else if (isPlc) {
|
|
4957
|
-
parts.push(
|
|
4957
|
+
parts.push(chunk3WNW5Y7P_cjs.circle({ cx: 0, cy: 0, r, class: "lt-inst-body" }));
|
|
4958
4958
|
const side = r * Math.SQRT1_2 * 2 - 2;
|
|
4959
4959
|
parts.push(
|
|
4960
|
-
|
|
4960
|
+
chunk3WNW5Y7P_cjs.rect({
|
|
4961
4961
|
x: -side / 2,
|
|
4962
4962
|
y: -side / 2,
|
|
4963
4963
|
width: side,
|
|
@@ -4967,29 +4967,29 @@ function renderInstrument(category, letterCode, loopNumber) {
|
|
|
4967
4967
|
})
|
|
4968
4968
|
);
|
|
4969
4969
|
} else if (isShared) {
|
|
4970
|
-
parts.push(
|
|
4970
|
+
parts.push(chunk3WNW5Y7P_cjs.circle({ cx: 0, cy: 0, r, class: "lt-inst-body" }));
|
|
4971
4971
|
const hex = [];
|
|
4972
4972
|
for (let i = 0; i < 6; i++) {
|
|
4973
4973
|
const a = Math.PI / 3 * i - Math.PI / 2;
|
|
4974
4974
|
hex.push(`${(r - 2) * Math.cos(a)},${(r - 2) * Math.sin(a)}`);
|
|
4975
4975
|
}
|
|
4976
4976
|
parts.push(
|
|
4977
|
-
|
|
4977
|
+
chunk3WNW5Y7P_cjs.polygon({
|
|
4978
4978
|
points: hex.join(" "),
|
|
4979
4979
|
class: "lt-inst-body",
|
|
4980
4980
|
fill: "none"
|
|
4981
4981
|
})
|
|
4982
4982
|
);
|
|
4983
4983
|
} else {
|
|
4984
|
-
parts.push(
|
|
4984
|
+
parts.push(chunk3WNW5Y7P_cjs.circle({ cx: 0, cy: 0, r, class: "lt-inst-body" }));
|
|
4985
4985
|
}
|
|
4986
4986
|
if (isControlRoom) {
|
|
4987
|
-
parts.push(
|
|
4987
|
+
parts.push(chunk3WNW5Y7P_cjs.line({ x1: -r, y1: 0, x2: r, y2: 0, class: "lt-inst-cr-line" }));
|
|
4988
4988
|
} else if (isLocal) {
|
|
4989
|
-
parts.push(
|
|
4989
|
+
parts.push(chunk3WNW5Y7P_cjs.line({ x1: -r, y1: 0, x2: r, y2: 0, class: "lt-inst-local-line" }));
|
|
4990
4990
|
}
|
|
4991
4991
|
parts.push(
|
|
4992
|
-
|
|
4992
|
+
chunk3WNW5Y7P_cjs.text(
|
|
4993
4993
|
{
|
|
4994
4994
|
x: 0,
|
|
4995
4995
|
y: -3,
|
|
@@ -5000,7 +5000,7 @@ function renderInstrument(category, letterCode, loopNumber) {
|
|
|
5000
5000
|
)
|
|
5001
5001
|
);
|
|
5002
5002
|
parts.push(
|
|
5003
|
-
|
|
5003
|
+
chunk3WNW5Y7P_cjs.text(
|
|
5004
5004
|
{
|
|
5005
5005
|
x: 0,
|
|
5006
5006
|
y: 9,
|
|
@@ -5010,7 +5010,7 @@ function renderInstrument(category, letterCode, loopNumber) {
|
|
|
5010
5010
|
loopNumber
|
|
5011
5011
|
)
|
|
5012
5012
|
);
|
|
5013
|
-
return
|
|
5013
|
+
return chunk3WNW5Y7P_cjs.group({ class: "lt-inst-symbol" }, parts);
|
|
5014
5014
|
}
|
|
5015
5015
|
|
|
5016
5016
|
// src/diagrams/pid/layout.ts
|
|
@@ -5248,7 +5248,7 @@ function lineClass(t) {
|
|
|
5248
5248
|
function renderLine(l) {
|
|
5249
5249
|
const cls = lineClass(l.line.lineType);
|
|
5250
5250
|
const parts = [
|
|
5251
|
-
|
|
5251
|
+
chunk3WNW5Y7P_cjs.path({
|
|
5252
5252
|
d: l.path,
|
|
5253
5253
|
class: cls,
|
|
5254
5254
|
"data-line-id": l.line.id,
|
|
@@ -5261,7 +5261,7 @@ function renderLine(l) {
|
|
|
5261
5261
|
if (l.line.tag) {
|
|
5262
5262
|
const w = Math.max(28, l.line.tag.length * 6);
|
|
5263
5263
|
parts.push(
|
|
5264
|
-
|
|
5264
|
+
chunk3WNW5Y7P_cjs.rect({
|
|
5265
5265
|
x: l.midX - w / 2,
|
|
5266
5266
|
y: l.midY - 8,
|
|
5267
5267
|
width: w,
|
|
@@ -5272,7 +5272,7 @@ function renderLine(l) {
|
|
|
5272
5272
|
})
|
|
5273
5273
|
);
|
|
5274
5274
|
parts.push(
|
|
5275
|
-
|
|
5275
|
+
chunk3WNW5Y7P_cjs.text(
|
|
5276
5276
|
{
|
|
5277
5277
|
x: l.midX,
|
|
5278
5278
|
y: l.midY + 3,
|
|
@@ -5283,7 +5283,7 @@ function renderLine(l) {
|
|
|
5283
5283
|
)
|
|
5284
5284
|
);
|
|
5285
5285
|
}
|
|
5286
|
-
return
|
|
5286
|
+
return chunk3WNW5Y7P_cjs.group({ class: "lt-pid-line", "data-id": l.line.id }, parts);
|
|
5287
5287
|
}
|
|
5288
5288
|
function pneumaticTicks(d) {
|
|
5289
5289
|
const tokens = d.match(/([MLC])\s+(-?\d+(?:\.\d+)?)\s+(-?\d+(?:\.\d+)?)/g) ?? [];
|
|
@@ -5309,7 +5309,7 @@ function pneumaticTicks(d) {
|
|
|
5309
5309
|
const cx = a.x + ux * s;
|
|
5310
5310
|
const cy = a.y + uy * s;
|
|
5311
5311
|
ticks.push(
|
|
5312
|
-
|
|
5312
|
+
chunk3WNW5Y7P_cjs.line({
|
|
5313
5313
|
x1: cx + px * 4 - ux * 4,
|
|
5314
5314
|
y1: cy + py * 4 - uy * 4,
|
|
5315
5315
|
x2: cx - px * 4 + ux * 4,
|
|
@@ -5328,7 +5328,7 @@ function renderPidAST(ast, _config) {
|
|
|
5328
5328
|
function renderLayout2(layout) {
|
|
5329
5329
|
const equipNodes = layout.equipment.map((eq) => {
|
|
5330
5330
|
const symbol = renderEquip(eq.equip.equipType, eq.equip.tag ?? eq.equip.id);
|
|
5331
|
-
return
|
|
5331
|
+
return chunk3WNW5Y7P_cjs.group(
|
|
5332
5332
|
{
|
|
5333
5333
|
class: "lt-pid-equip-wrap",
|
|
5334
5334
|
"data-id": eq.equip.id,
|
|
@@ -5340,7 +5340,7 @@ function renderLayout2(layout) {
|
|
|
5340
5340
|
});
|
|
5341
5341
|
const instNodes = layout.instruments.map((i) => {
|
|
5342
5342
|
const { letter, number } = parseTag(i.inst.tag);
|
|
5343
|
-
return
|
|
5343
|
+
return chunk3WNW5Y7P_cjs.group(
|
|
5344
5344
|
{
|
|
5345
5345
|
class: "lt-inst",
|
|
5346
5346
|
"data-tag": i.inst.tag,
|
|
@@ -5360,7 +5360,7 @@ function renderLayout2(layout) {
|
|
|
5360
5360
|
const bx = eq.cx;
|
|
5361
5361
|
const by = eq.cy + eq.height / 2;
|
|
5362
5362
|
autoSignals.push(
|
|
5363
|
-
|
|
5363
|
+
chunk3WNW5Y7P_cjs.path({
|
|
5364
5364
|
d: `M ${ax} ${ay} L ${ax} ${by + 8} L ${bx} ${by + 8} L ${bx} ${by}`,
|
|
5365
5365
|
class: "lt-pid-electric"
|
|
5366
5366
|
})
|
|
@@ -5375,7 +5375,7 @@ function renderLayout2(layout) {
|
|
|
5375
5375
|
const bx = eq.cx;
|
|
5376
5376
|
const by = eq.y;
|
|
5377
5377
|
autoSignals.push(
|
|
5378
|
-
|
|
5378
|
+
chunk3WNW5Y7P_cjs.path({
|
|
5379
5379
|
d: `M ${ax} ${ay} L ${bx} ${ay} L ${bx} ${by}`,
|
|
5380
5380
|
class: "lt-pid-pneumatic"
|
|
5381
5381
|
})
|
|
@@ -5383,8 +5383,8 @@ function renderLayout2(layout) {
|
|
|
5383
5383
|
}
|
|
5384
5384
|
}
|
|
5385
5385
|
}
|
|
5386
|
-
const titleNode = layout.title ?
|
|
5387
|
-
return
|
|
5386
|
+
const titleNode = layout.title ? chunk3WNW5Y7P_cjs.text({ x: 16, y: 22, class: "lt-pid-title" }, layout.title) : "";
|
|
5387
|
+
return chunk3WNW5Y7P_cjs.svgRoot(
|
|
5388
5388
|
{
|
|
5389
5389
|
width: layout.width,
|
|
5390
5390
|
height: layout.height,
|
|
@@ -5393,10 +5393,10 @@ function renderLayout2(layout) {
|
|
|
5393
5393
|
"data-diagram-type": "pid"
|
|
5394
5394
|
},
|
|
5395
5395
|
[
|
|
5396
|
-
|
|
5397
|
-
|
|
5398
|
-
|
|
5399
|
-
|
|
5396
|
+
chunk3WNW5Y7P_cjs.el("title", {}, chunk3WNW5Y7P_cjs.escapeXml(`P&ID${layout.title ? " \u2014 " + layout.title : ""}`)),
|
|
5397
|
+
chunk3WNW5Y7P_cjs.el("desc", {}, "ISA-5.1 / ISO 10628 P&ID rendered by Schematex"),
|
|
5398
|
+
chunk3WNW5Y7P_cjs.defs([
|
|
5399
|
+
chunk3WNW5Y7P_cjs.el(
|
|
5400
5400
|
"marker",
|
|
5401
5401
|
{
|
|
5402
5402
|
id: ARROW_ID,
|
|
@@ -5407,15 +5407,15 @@ function renderLayout2(layout) {
|
|
|
5407
5407
|
orient: "auto",
|
|
5408
5408
|
markerUnits: "strokeWidth"
|
|
5409
5409
|
},
|
|
5410
|
-
[
|
|
5410
|
+
[chunk3WNW5Y7P_cjs.polygon({ points: "0,0 10,3 0,6", fill: "#1d1d1d" })]
|
|
5411
5411
|
),
|
|
5412
|
-
|
|
5412
|
+
chunk3WNW5Y7P_cjs.el("style", {}, STYLE2)
|
|
5413
5413
|
]),
|
|
5414
5414
|
titleNode,
|
|
5415
|
-
|
|
5416
|
-
|
|
5417
|
-
|
|
5418
|
-
|
|
5415
|
+
chunk3WNW5Y7P_cjs.group({ class: "lt-pid-equipment" }, equipNodes),
|
|
5416
|
+
chunk3WNW5Y7P_cjs.group({ class: "lt-pid-lines" }, layout.lines.map(renderLine)),
|
|
5417
|
+
chunk3WNW5Y7P_cjs.group({ class: "lt-pid-signals" }, autoSignals),
|
|
5418
|
+
chunk3WNW5Y7P_cjs.group({ class: "lt-pid-instruments" }, instNodes)
|
|
5419
5419
|
]
|
|
5420
5420
|
);
|
|
5421
5421
|
}
|
|
@@ -6018,7 +6018,7 @@ function renderLine2(line2, leftX, cy, fontSize, fontFamily, fontWeight, theme)
|
|
|
6018
6018
|
}
|
|
6019
6019
|
case "code": {
|
|
6020
6020
|
const w = measureToken(tok, fontSize);
|
|
6021
|
-
decorations.push(
|
|
6021
|
+
decorations.push(chunk3WNW5Y7P_cjs.rect({
|
|
6022
6022
|
x: cursor,
|
|
6023
6023
|
y: cy - fontSize * 0.6,
|
|
6024
6024
|
width: w,
|
|
@@ -6040,7 +6040,7 @@ function renderLine2(line2, leftX, cy, fontSize, fontFamily, fontWeight, theme)
|
|
|
6040
6040
|
break;
|
|
6041
6041
|
}
|
|
6042
6042
|
case "link": {
|
|
6043
|
-
const aStart = `<a href="${
|
|
6043
|
+
const aStart = `<a href="${chunk3WNW5Y7P_cjs.escapeXml(tok.href)}" target="_blank" rel="noopener">`;
|
|
6044
6044
|
const innerStart = tspans.length;
|
|
6045
6045
|
for (const inner of tok.value) emit(inner, tok.href);
|
|
6046
6046
|
const innerTspans = tspans.splice(innerStart).join("");
|
|
@@ -6051,7 +6051,7 @@ function renderLine2(line2, leftX, cy, fontSize, fontFamily, fontWeight, theme)
|
|
|
6051
6051
|
const size = fontSize * 0.85;
|
|
6052
6052
|
const boxX = cursor;
|
|
6053
6053
|
const boxY = cy - size / 2;
|
|
6054
|
-
decorations.push(
|
|
6054
|
+
decorations.push(chunk3WNW5Y7P_cjs.rect({
|
|
6055
6055
|
x: boxX,
|
|
6056
6056
|
y: boxY,
|
|
6057
6057
|
width: size,
|
|
@@ -6064,7 +6064,7 @@ function renderLine2(line2, leftX, cy, fontSize, fontFamily, fontWeight, theme)
|
|
|
6064
6064
|
}));
|
|
6065
6065
|
if (tok.checked) {
|
|
6066
6066
|
const p = `M ${(boxX + size * 0.2).toFixed(1)} ${(boxY + size * 0.5).toFixed(1)} L ${(boxX + size * 0.42).toFixed(1)} ${(boxY + size * 0.72).toFixed(1)} L ${(boxX + size * 0.82).toFixed(1)} ${(boxY + size * 0.28).toFixed(1)}`;
|
|
6067
|
-
decorations.push(
|
|
6067
|
+
decorations.push(chunk3WNW5Y7P_cjs.path({
|
|
6068
6068
|
d: p,
|
|
6069
6069
|
fill: "none",
|
|
6070
6070
|
stroke: "#ffffff",
|
|
@@ -6079,7 +6079,7 @@ function renderLine2(line2, leftX, cy, fontSize, fontFamily, fontWeight, theme)
|
|
|
6079
6079
|
}
|
|
6080
6080
|
};
|
|
6081
6081
|
for (const tok of line2.tokens) emit(tok);
|
|
6082
|
-
const textElement =
|
|
6082
|
+
const textElement = chunk3WNW5Y7P_cjs.el("text", {
|
|
6083
6083
|
"font-family": fontFamily,
|
|
6084
6084
|
"font-size": fontSize,
|
|
6085
6085
|
"font-weight": fontWeight
|
|
@@ -6105,9 +6105,9 @@ function tspan(attrs, content) {
|
|
|
6105
6105
|
const pairs = [];
|
|
6106
6106
|
for (const [k, v] of Object.entries(attrs)) {
|
|
6107
6107
|
if (v === void 0) continue;
|
|
6108
|
-
pairs.push(`${k}="${typeof v === "number" ? String(v) :
|
|
6108
|
+
pairs.push(`${k}="${typeof v === "number" ? String(v) : chunk3WNW5Y7P_cjs.escapeXml(String(v))}"`);
|
|
6109
6109
|
}
|
|
6110
|
-
return `<tspan ${pairs.join(" ")}>${
|
|
6110
|
+
return `<tspan ${pairs.join(" ")}>${chunk3WNW5Y7P_cjs.escapeXml(content)}</tspan>`;
|
|
6111
6111
|
}
|
|
6112
6112
|
function renderNode2(n, color, theme, fontFamily) {
|
|
6113
6113
|
const isRoot = n.node.depth === 0;
|
|
@@ -6132,7 +6132,7 @@ function renderNode2(n, color, theme, fontFamily) {
|
|
|
6132
6132
|
const ux2 = n.x + n.labelWidth / 2;
|
|
6133
6133
|
const sw = underlineWidthFor(n.node.depth) * strokeScale(theme);
|
|
6134
6134
|
children.push(
|
|
6135
|
-
|
|
6135
|
+
chunk3WNW5Y7P_cjs.el("line", {
|
|
6136
6136
|
x1: ux1,
|
|
6137
6137
|
y1: underlineY2,
|
|
6138
6138
|
x2: ux2,
|
|
@@ -6143,7 +6143,7 @@ function renderNode2(n, color, theme, fontFamily) {
|
|
|
6143
6143
|
})
|
|
6144
6144
|
);
|
|
6145
6145
|
const cls = isRoot ? "schematex-mindmap-central" : isMain ? "schematex-mindmap-main" : "schematex-mindmap-leaf";
|
|
6146
|
-
return
|
|
6146
|
+
return chunk3WNW5Y7P_cjs.group(
|
|
6147
6147
|
{
|
|
6148
6148
|
class: cls,
|
|
6149
6149
|
"data-node-id": n.node.id,
|
|
@@ -6163,7 +6163,7 @@ function renderMindmapAST(ast, themeName = "default", fontFamily = "system-ui, -
|
|
|
6163
6163
|
if (!target) continue;
|
|
6164
6164
|
const color = paletteColor(theme, target.branchIndex);
|
|
6165
6165
|
edgeSvgs.push(
|
|
6166
|
-
|
|
6166
|
+
chunk3WNW5Y7P_cjs.path({
|
|
6167
6167
|
d: e.path,
|
|
6168
6168
|
fill: "none",
|
|
6169
6169
|
stroke: color,
|
|
@@ -6178,20 +6178,20 @@ function renderMindmapAST(ast, themeName = "default", fontFamily = "system-ui, -
|
|
|
6178
6178
|
nodeSvgs.push(renderNode2(n, color, theme, fontFamily));
|
|
6179
6179
|
}
|
|
6180
6180
|
const title2 = ast.title ?? tokensToPlainText(ast.root.tokens);
|
|
6181
|
-
return
|
|
6181
|
+
return chunk3WNW5Y7P_cjs.svgRoot(
|
|
6182
6182
|
{
|
|
6183
6183
|
viewBox: `0 0 ${layout.width.toFixed(1)} ${layout.height.toFixed(1)}`,
|
|
6184
6184
|
width: layout.width.toFixed(1),
|
|
6185
6185
|
height: layout.height.toFixed(1),
|
|
6186
6186
|
role: "graphics-document",
|
|
6187
|
-
"aria-label": `Mindmap: ${
|
|
6187
|
+
"aria-label": `Mindmap: ${chunk3WNW5Y7P_cjs.escapeXml(title2)}`
|
|
6188
6188
|
},
|
|
6189
6189
|
[
|
|
6190
|
-
|
|
6191
|
-
|
|
6192
|
-
|
|
6193
|
-
|
|
6194
|
-
|
|
6190
|
+
chunk3WNW5Y7P_cjs.title(title2),
|
|
6191
|
+
chunk3WNW5Y7P_cjs.desc(`${layout.style} mindmap with ${layout.nodes.length} nodes`),
|
|
6192
|
+
chunk3WNW5Y7P_cjs.rect({ x: 0, y: 0, width: layout.width, height: layout.height, fill: theme.bg }),
|
|
6193
|
+
chunk3WNW5Y7P_cjs.group({ class: "schematex-mindmap-edges", "aria-hidden": "true" }, edgeSvgs),
|
|
6194
|
+
chunk3WNW5Y7P_cjs.group({ class: "schematex-mindmap-nodes" }, nodeSvgs)
|
|
6195
6195
|
]
|
|
6196
6196
|
);
|
|
6197
6197
|
}
|
|
@@ -6917,7 +6917,7 @@ var CSS = `
|
|
|
6917
6917
|
.sx-matrix-offchart { fill: #ea580c; }
|
|
6918
6918
|
`.trim();
|
|
6919
6919
|
function axisArrow() {
|
|
6920
|
-
return
|
|
6920
|
+
return chunk3WNW5Y7P_cjs.el(
|
|
6921
6921
|
"marker",
|
|
6922
6922
|
{
|
|
6923
6923
|
id: "sx-matrix-arrow",
|
|
@@ -6928,7 +6928,7 @@ function axisArrow() {
|
|
|
6928
6928
|
markerHeight: 8,
|
|
6929
6929
|
orient: "auto-start-reverse"
|
|
6930
6930
|
},
|
|
6931
|
-
[
|
|
6931
|
+
[chunk3WNW5Y7P_cjs.el("path", { d: "M0,0 L10,5 L0,10 z", fill: "#374151" })]
|
|
6932
6932
|
);
|
|
6933
6933
|
}
|
|
6934
6934
|
function bubbleFill(p, categories) {
|
|
@@ -6950,10 +6950,10 @@ function renderQuadrantBackground(ast, lay) {
|
|
|
6950
6950
|
{ x: plot.x0, y: plot.y0 + halfH, w: halfW, h: halfH, fill: QUADRANT_TINTS[2] },
|
|
6951
6951
|
{ x: plot.x0 + halfW, y: plot.y0 + halfH, w: halfW, h: halfH, fill: QUADRANT_TINTS[3] }
|
|
6952
6952
|
];
|
|
6953
|
-
return
|
|
6953
|
+
return chunk3WNW5Y7P_cjs.group(
|
|
6954
6954
|
{ id: "sx-matrix-quad-bg" },
|
|
6955
6955
|
rects.map(
|
|
6956
|
-
(r) =>
|
|
6956
|
+
(r) => chunk3WNW5Y7P_cjs.rect({ x: r.x, y: r.y, width: r.w, height: r.h, fill: r.fill, "fill-opacity": 0.55 })
|
|
6957
6957
|
)
|
|
6958
6958
|
);
|
|
6959
6959
|
}
|
|
@@ -6967,15 +6967,15 @@ function renderGrid(ast, lay) {
|
|
|
6967
6967
|
for (let i = 1; i < cols; i++) {
|
|
6968
6968
|
const x = plot.x0 + plot.w * i / cols;
|
|
6969
6969
|
const cls = cols === 2 && i === 1 ? "sx-matrix-mid" : "sx-matrix-grid";
|
|
6970
|
-
lines.push(
|
|
6970
|
+
lines.push(chunk3WNW5Y7P_cjs.line({ x1: x, y1: plot.y0, x2: x, y2: plot.y0 + plot.h, class: cls }));
|
|
6971
6971
|
}
|
|
6972
6972
|
for (let j = 1; j < rows; j++) {
|
|
6973
6973
|
const y = plot.y0 + plot.h * j / rows;
|
|
6974
6974
|
const cls = rows === 2 && j === 1 ? "sx-matrix-mid" : "sx-matrix-grid";
|
|
6975
|
-
lines.push(
|
|
6975
|
+
lines.push(chunk3WNW5Y7P_cjs.line({ x1: plot.x0, y1: y, x2: plot.x0 + plot.w, y2: y, class: cls }));
|
|
6976
6976
|
}
|
|
6977
6977
|
lines.push(
|
|
6978
|
-
|
|
6978
|
+
chunk3WNW5Y7P_cjs.rect({
|
|
6979
6979
|
x: plot.x0,
|
|
6980
6980
|
y: plot.y0,
|
|
6981
6981
|
width: plot.w,
|
|
@@ -6984,7 +6984,7 @@ function renderGrid(ast, lay) {
|
|
|
6984
6984
|
fill: "none"
|
|
6985
6985
|
})
|
|
6986
6986
|
);
|
|
6987
|
-
return
|
|
6987
|
+
return chunk3WNW5Y7P_cjs.group({ id: "sx-matrix-grid" }, lines);
|
|
6988
6988
|
}
|
|
6989
6989
|
function shouldShowAxis(ast) {
|
|
6990
6990
|
if (ast.config.showAxis === "on") return true;
|
|
@@ -6999,7 +6999,7 @@ function renderAxes(ast, lay) {
|
|
|
6999
6999
|
const xy = plot.y0 + plot.h + 14;
|
|
7000
7000
|
const yx = plot.x0 - 14;
|
|
7001
7001
|
els.push(
|
|
7002
|
-
|
|
7002
|
+
chunk3WNW5Y7P_cjs.line({
|
|
7003
7003
|
x1: plot.x0,
|
|
7004
7004
|
y1: xy,
|
|
7005
7005
|
x2: plot.x0 + plot.w,
|
|
@@ -7010,7 +7010,7 @@ function renderAxes(ast, lay) {
|
|
|
7010
7010
|
})
|
|
7011
7011
|
);
|
|
7012
7012
|
els.push(
|
|
7013
|
-
|
|
7013
|
+
chunk3WNW5Y7P_cjs.line({
|
|
7014
7014
|
x1: yx,
|
|
7015
7015
|
y1: plot.y0 + plot.h,
|
|
7016
7016
|
x2: yx,
|
|
@@ -7022,7 +7022,7 @@ function renderAxes(ast, lay) {
|
|
|
7022
7022
|
);
|
|
7023
7023
|
if (ast.xAxis.low) {
|
|
7024
7024
|
els.push(
|
|
7025
|
-
|
|
7025
|
+
chunk3WNW5Y7P_cjs.text(
|
|
7026
7026
|
{ x: plot.x0, y: xy + 20, class: "sx-matrix-axis-end", "text-anchor": "start" },
|
|
7027
7027
|
ast.xAxis.low
|
|
7028
7028
|
)
|
|
@@ -7030,7 +7030,7 @@ function renderAxes(ast, lay) {
|
|
|
7030
7030
|
}
|
|
7031
7031
|
if (ast.xAxis.high) {
|
|
7032
7032
|
els.push(
|
|
7033
|
-
|
|
7033
|
+
chunk3WNW5Y7P_cjs.text(
|
|
7034
7034
|
{ x: plot.x0 + plot.w, y: xy + 20, class: "sx-matrix-axis-end", "text-anchor": "end" },
|
|
7035
7035
|
ast.xAxis.high
|
|
7036
7036
|
)
|
|
@@ -7038,7 +7038,7 @@ function renderAxes(ast, lay) {
|
|
|
7038
7038
|
}
|
|
7039
7039
|
if (ast.yAxis.low) {
|
|
7040
7040
|
els.push(
|
|
7041
|
-
|
|
7041
|
+
chunk3WNW5Y7P_cjs.text(
|
|
7042
7042
|
{
|
|
7043
7043
|
x: yx - 24,
|
|
7044
7044
|
y: plot.y0 + plot.h,
|
|
@@ -7052,7 +7052,7 @@ function renderAxes(ast, lay) {
|
|
|
7052
7052
|
}
|
|
7053
7053
|
if (ast.yAxis.high) {
|
|
7054
7054
|
els.push(
|
|
7055
|
-
|
|
7055
|
+
chunk3WNW5Y7P_cjs.text(
|
|
7056
7056
|
{
|
|
7057
7057
|
x: yx - 24,
|
|
7058
7058
|
y: plot.y0,
|
|
@@ -7064,7 +7064,7 @@ function renderAxes(ast, lay) {
|
|
|
7064
7064
|
)
|
|
7065
7065
|
);
|
|
7066
7066
|
}
|
|
7067
|
-
return
|
|
7067
|
+
return chunk3WNW5Y7P_cjs.group({ id: "sx-matrix-axes" }, els);
|
|
7068
7068
|
}
|
|
7069
7069
|
function renderQuadAnnotations(ast, lay) {
|
|
7070
7070
|
if (!ast.config.quadrantAnnotations || ast.grid !== "2x2" || ast.annotations.length === 0) return "";
|
|
@@ -7089,14 +7089,14 @@ function renderQuadAnnotations(ast, lay) {
|
|
|
7089
7089
|
const descLines = a.description ? wrapLabel(a.description, 28) : [];
|
|
7090
7090
|
const labelY = growsUp && descLines.length > 0 ? pos.y - descLines.length * 12 : pos.y;
|
|
7091
7091
|
nodes.push(
|
|
7092
|
-
|
|
7092
|
+
chunk3WNW5Y7P_cjs.text(
|
|
7093
7093
|
{ x: pos.x, y: labelY, class: "sx-matrix-quad-annot", "text-anchor": pos.anchor },
|
|
7094
7094
|
a.label
|
|
7095
7095
|
)
|
|
7096
7096
|
);
|
|
7097
7097
|
for (let i = 0; i < descLines.length; i++) {
|
|
7098
7098
|
nodes.push(
|
|
7099
|
-
|
|
7099
|
+
chunk3WNW5Y7P_cjs.text(
|
|
7100
7100
|
{
|
|
7101
7101
|
x: pos.x,
|
|
7102
7102
|
y: labelY + 14 + i * 12,
|
|
@@ -7108,7 +7108,7 @@ function renderQuadAnnotations(ast, lay) {
|
|
|
7108
7108
|
);
|
|
7109
7109
|
}
|
|
7110
7110
|
}
|
|
7111
|
-
return
|
|
7111
|
+
return chunk3WNW5Y7P_cjs.group({ id: "sx-matrix-quad-annot" }, nodes);
|
|
7112
7112
|
}
|
|
7113
7113
|
function wrapLabel(text2, maxChars) {
|
|
7114
7114
|
const words = text2.split(/\s+/);
|
|
@@ -7133,9 +7133,9 @@ function render3x3CellLabels(ast, lay) {
|
|
|
7133
7133
|
const nodes = ast.cellLabels.map((cl) => {
|
|
7134
7134
|
const cx = plot.x0 + cellW * (cl.col + 0.5);
|
|
7135
7135
|
const cy = plot.y0 + cellH * (ast.rows - 1 - cl.row + 0.5);
|
|
7136
|
-
return
|
|
7136
|
+
return chunk3WNW5Y7P_cjs.text({ x: cx, y: cy, class: "sx-matrix-cell-label" }, cl.label);
|
|
7137
7137
|
});
|
|
7138
|
-
return
|
|
7138
|
+
return chunk3WNW5Y7P_cjs.group({ id: "sx-matrix-cell-labels" }, nodes);
|
|
7139
7139
|
}
|
|
7140
7140
|
function renderHeatmap(ast, lay) {
|
|
7141
7141
|
if (ast.mode !== "heatmap") return "";
|
|
@@ -7157,7 +7157,7 @@ function renderHeatmap(ast, lay) {
|
|
|
7157
7157
|
const x = plot.x0 + col * cellW;
|
|
7158
7158
|
const y = plot.y0 + (ast.rows - 1 - row) * cellH;
|
|
7159
7159
|
cells.push(
|
|
7160
|
-
|
|
7160
|
+
chunk3WNW5Y7P_cjs.rect({
|
|
7161
7161
|
x,
|
|
7162
7162
|
y,
|
|
7163
7163
|
width: cellW,
|
|
@@ -7175,7 +7175,7 @@ function renderHeatmap(ast, lay) {
|
|
|
7175
7175
|
if (!lbl) continue;
|
|
7176
7176
|
const y = plot.y0 + (ast.rows - 1 - row + 0.5) * cellH;
|
|
7177
7177
|
cells.push(
|
|
7178
|
-
|
|
7178
|
+
chunk3WNW5Y7P_cjs.text(
|
|
7179
7179
|
{
|
|
7180
7180
|
x: plot.x0 - 8,
|
|
7181
7181
|
y,
|
|
@@ -7194,7 +7194,7 @@ function renderHeatmap(ast, lay) {
|
|
|
7194
7194
|
if (!lbl) continue;
|
|
7195
7195
|
const x = plot.x0 + (col + 0.5) * cellW;
|
|
7196
7196
|
cells.push(
|
|
7197
|
-
|
|
7197
|
+
chunk3WNW5Y7P_cjs.text(
|
|
7198
7198
|
{
|
|
7199
7199
|
x,
|
|
7200
7200
|
y: plot.y0 + plot.h + 16,
|
|
@@ -7225,7 +7225,7 @@ function renderHeatmap(ast, lay) {
|
|
|
7225
7225
|
const startY = cy - (lines.length - 1) * lineH / 2;
|
|
7226
7226
|
for (let i = 0; i < lines.length; i++) {
|
|
7227
7227
|
cells.push(
|
|
7228
|
-
|
|
7228
|
+
chunk3WNW5Y7P_cjs.text(
|
|
7229
7229
|
{
|
|
7230
7230
|
x: cx,
|
|
7231
7231
|
y: startY + i * lineH,
|
|
@@ -7237,7 +7237,7 @@ function renderHeatmap(ast, lay) {
|
|
|
7237
7237
|
);
|
|
7238
7238
|
}
|
|
7239
7239
|
}
|
|
7240
|
-
return
|
|
7240
|
+
return chunk3WNW5Y7P_cjs.group({ id: "sx-matrix-heatmap" }, cells);
|
|
7241
7241
|
}
|
|
7242
7242
|
var DOT_COLORS = {
|
|
7243
7243
|
strong: "#16a34a",
|
|
@@ -7262,7 +7262,7 @@ function renderCorrelation(ast, lay) {
|
|
|
7262
7262
|
for (let row = 0; row < ast.rows; row++) {
|
|
7263
7263
|
const y = plot.y0 + (ast.rows - 1 - row) * cellH;
|
|
7264
7264
|
nodes.push(
|
|
7265
|
-
|
|
7265
|
+
chunk3WNW5Y7P_cjs.rect({
|
|
7266
7266
|
x: plot.x0,
|
|
7267
7267
|
y,
|
|
7268
7268
|
width: gridW,
|
|
@@ -7273,11 +7273,11 @@ function renderCorrelation(ast, lay) {
|
|
|
7273
7273
|
}
|
|
7274
7274
|
for (let i = 0; i <= ast.cols; i++) {
|
|
7275
7275
|
const x = plot.x0 + i * cellW;
|
|
7276
|
-
nodes.push(
|
|
7276
|
+
nodes.push(chunk3WNW5Y7P_cjs.line({ x1: x, y1: plot.y0, x2: x, y2: plot.y0 + gridH, class: "sx-matrix-corr-grid" }));
|
|
7277
7277
|
}
|
|
7278
7278
|
for (let j = 0; j <= ast.rows; j++) {
|
|
7279
7279
|
const y = plot.y0 + j * cellH;
|
|
7280
|
-
nodes.push(
|
|
7280
|
+
nodes.push(chunk3WNW5Y7P_cjs.line({ x1: plot.x0, y1: y, x2: plot.x0 + gridW, y2: y, class: "sx-matrix-corr-grid" }));
|
|
7281
7281
|
}
|
|
7282
7282
|
const dotR = Math.max(4, Math.min(cellW, cellH) * 0.28);
|
|
7283
7283
|
const rowSums = new Array(ast.rows).fill(0);
|
|
@@ -7292,7 +7292,7 @@ function renderCorrelation(ast, lay) {
|
|
|
7292
7292
|
const cx = plot.x0 + (c.col + 0.5) * cellW;
|
|
7293
7293
|
const cy = plot.y0 + (ast.rows - 1 - c.row + 0.5) * cellH;
|
|
7294
7294
|
nodes.push(
|
|
7295
|
-
|
|
7295
|
+
chunk3WNW5Y7P_cjs.circle({
|
|
7296
7296
|
cx,
|
|
7297
7297
|
cy,
|
|
7298
7298
|
r: dotR,
|
|
@@ -7311,7 +7311,7 @@ function renderCorrelation(ast, lay) {
|
|
|
7311
7311
|
const startY = plot.y0 - 8 - (lines.length - 1) * 12;
|
|
7312
7312
|
for (let i = 0; i < lines.length; i++) {
|
|
7313
7313
|
nodes.push(
|
|
7314
|
-
|
|
7314
|
+
chunk3WNW5Y7P_cjs.text(
|
|
7315
7315
|
{ x: cx, y: startY + i * 12, class: "sx-matrix-corr-header" },
|
|
7316
7316
|
lines[i]
|
|
7317
7317
|
)
|
|
@@ -7325,7 +7325,7 @@ function renderCorrelation(ast, lay) {
|
|
|
7325
7325
|
if (!label) continue;
|
|
7326
7326
|
const y = plot.y0 + (ast.rows - 1 - row + 0.5) * cellH;
|
|
7327
7327
|
nodes.push(
|
|
7328
|
-
|
|
7328
|
+
chunk3WNW5Y7P_cjs.text({ x: plot.x0 - 8, y, class: "sx-matrix-corr-rowlabel" }, label)
|
|
7329
7329
|
);
|
|
7330
7330
|
}
|
|
7331
7331
|
}
|
|
@@ -7336,28 +7336,28 @@ function renderCorrelation(ast, lay) {
|
|
|
7336
7336
|
const bestCol = colSums.length > 0 ? Math.max(...colSums) : 0;
|
|
7337
7337
|
const scoreColX = plot.x0 + gridW + cellW * 0.5;
|
|
7338
7338
|
const rankColX = plot.x0 + gridW + cellW * 1.5;
|
|
7339
|
-
nodes.push(
|
|
7340
|
-
nodes.push(
|
|
7339
|
+
nodes.push(chunk3WNW5Y7P_cjs.text({ x: scoreColX, y: plot.y0 - 8, class: "sx-matrix-corr-header" }, "Score"));
|
|
7340
|
+
nodes.push(chunk3WNW5Y7P_cjs.text({ x: rankColX, y: plot.y0 - 8, class: "sx-matrix-corr-header" }, "Rank"));
|
|
7341
7341
|
for (let row = 0; row < ast.rows; row++) {
|
|
7342
7342
|
const y = plot.y0 + (ast.rows - 1 - row + 0.5) * cellH;
|
|
7343
7343
|
const sum = rowSums[row];
|
|
7344
7344
|
const rank = rowRanks[row];
|
|
7345
7345
|
const cls = sum === bestRow && sum > 0 ? "sx-matrix-corr-margin-best" : "sx-matrix-corr-margin";
|
|
7346
|
-
nodes.push(
|
|
7346
|
+
nodes.push(chunk3WNW5Y7P_cjs.text({ x: scoreColX, y, class: cls }, String(sum)));
|
|
7347
7347
|
nodes.push(
|
|
7348
|
-
|
|
7348
|
+
chunk3WNW5Y7P_cjs.text({ x: rankColX, y, class: rank === 1 ? "sx-matrix-corr-margin-best" : "sx-matrix-corr-margin" }, String(rank))
|
|
7349
7349
|
);
|
|
7350
7350
|
}
|
|
7351
7351
|
const scoreRowY = plot.y0 + gridH + cellH * 0.5;
|
|
7352
7352
|
const rankRowY = plot.y0 + gridH + cellH * 1.5;
|
|
7353
7353
|
nodes.push(
|
|
7354
|
-
|
|
7354
|
+
chunk3WNW5Y7P_cjs.text(
|
|
7355
7355
|
{ x: plot.x0 - 8, y: scoreRowY, class: "sx-matrix-corr-rowlabel" },
|
|
7356
7356
|
"Score"
|
|
7357
7357
|
)
|
|
7358
7358
|
);
|
|
7359
7359
|
nodes.push(
|
|
7360
|
-
|
|
7360
|
+
chunk3WNW5Y7P_cjs.text(
|
|
7361
7361
|
{ x: plot.x0 - 8, y: rankRowY, class: "sx-matrix-corr-rowlabel" },
|
|
7362
7362
|
"Rank"
|
|
7363
7363
|
)
|
|
@@ -7367,7 +7367,7 @@ function renderCorrelation(ast, lay) {
|
|
|
7367
7367
|
const sum = colSums[col];
|
|
7368
7368
|
const rank = colRanks[col];
|
|
7369
7369
|
nodes.push(
|
|
7370
|
-
|
|
7370
|
+
chunk3WNW5Y7P_cjs.text(
|
|
7371
7371
|
{
|
|
7372
7372
|
x: cx,
|
|
7373
7373
|
y: scoreRowY,
|
|
@@ -7377,7 +7377,7 @@ function renderCorrelation(ast, lay) {
|
|
|
7377
7377
|
)
|
|
7378
7378
|
);
|
|
7379
7379
|
nodes.push(
|
|
7380
|
-
|
|
7380
|
+
chunk3WNW5Y7P_cjs.text(
|
|
7381
7381
|
{
|
|
7382
7382
|
x: cx,
|
|
7383
7383
|
y: rankRowY,
|
|
@@ -7388,7 +7388,7 @@ function renderCorrelation(ast, lay) {
|
|
|
7388
7388
|
);
|
|
7389
7389
|
}
|
|
7390
7390
|
}
|
|
7391
|
-
return
|
|
7391
|
+
return chunk3WNW5Y7P_cjs.group({ id: "sx-matrix-correlation" }, nodes);
|
|
7392
7392
|
}
|
|
7393
7393
|
function rankOf(vals) {
|
|
7394
7394
|
const sorted = [...vals].map((v, i) => ({ v, i })).sort((a, b) => b.v - a.v);
|
|
@@ -7416,12 +7416,12 @@ function renderCorrelationLegend(ast, lay) {
|
|
|
7416
7416
|
["weak", "Weak (1)"]
|
|
7417
7417
|
];
|
|
7418
7418
|
const rows = items.map(
|
|
7419
|
-
(it, i) =>
|
|
7420
|
-
|
|
7421
|
-
|
|
7419
|
+
(it, i) => chunk3WNW5Y7P_cjs.group({ transform: `translate(${xBase}, ${yBase + i * 18})` }, [
|
|
7420
|
+
chunk3WNW5Y7P_cjs.circle({ cx: 6, cy: 6, r: 5, fill: DOT_COLORS[it[0]], stroke: DOT_COLORS[it[0]] }),
|
|
7421
|
+
chunk3WNW5Y7P_cjs.text({ x: 18, y: 10, class: "sx-matrix-legend-text" }, it[1])
|
|
7422
7422
|
])
|
|
7423
7423
|
);
|
|
7424
|
-
return
|
|
7424
|
+
return chunk3WNW5Y7P_cjs.group({ id: "sx-matrix-corr-legend" }, rows);
|
|
7425
7425
|
}
|
|
7426
7426
|
function renderPoints(ast, lay) {
|
|
7427
7427
|
if (ast.mode !== "quadrant") return "";
|
|
@@ -7429,7 +7429,7 @@ function renderPoints(ast, lay) {
|
|
|
7429
7429
|
for (const p of lay.points) {
|
|
7430
7430
|
nodes.push(renderOnePoint(p, lay.categories));
|
|
7431
7431
|
}
|
|
7432
|
-
return
|
|
7432
|
+
return chunk3WNW5Y7P_cjs.group({ id: "sx-matrix-points" }, nodes);
|
|
7433
7433
|
}
|
|
7434
7434
|
function renderOnePoint(pl, categories) {
|
|
7435
7435
|
const p = pl.point;
|
|
@@ -7440,7 +7440,7 @@ function renderOnePoint(pl, categories) {
|
|
|
7440
7440
|
const strokeWidth = p.highlight ? 2.2 : 1.5;
|
|
7441
7441
|
const fillOpacity = p.size !== void 0 ? 0.45 : 0.75;
|
|
7442
7442
|
if (shape === "circle") {
|
|
7443
|
-
shapeEl =
|
|
7443
|
+
shapeEl = chunk3WNW5Y7P_cjs.circle({
|
|
7444
7444
|
cx: pl.px,
|
|
7445
7445
|
cy: pl.py,
|
|
7446
7446
|
r: pl.r,
|
|
@@ -7451,7 +7451,7 @@ function renderOnePoint(pl, categories) {
|
|
|
7451
7451
|
class: "sx-matrix-bubble"
|
|
7452
7452
|
});
|
|
7453
7453
|
} else if (shape === "square") {
|
|
7454
|
-
shapeEl =
|
|
7454
|
+
shapeEl = chunk3WNW5Y7P_cjs.rect({
|
|
7455
7455
|
x: pl.px - pl.r,
|
|
7456
7456
|
y: pl.py - pl.r,
|
|
7457
7457
|
width: pl.r * 2,
|
|
@@ -7464,7 +7464,7 @@ function renderOnePoint(pl, categories) {
|
|
|
7464
7464
|
});
|
|
7465
7465
|
} else if (shape === "diamond") {
|
|
7466
7466
|
const r = pl.r;
|
|
7467
|
-
shapeEl =
|
|
7467
|
+
shapeEl = chunk3WNW5Y7P_cjs.polygon({
|
|
7468
7468
|
points: `${pl.px},${pl.py - r} ${pl.px + r},${pl.py} ${pl.px},${pl.py + r} ${pl.px - r},${pl.py}`,
|
|
7469
7469
|
fill: color,
|
|
7470
7470
|
"fill-opacity": fillOpacity,
|
|
@@ -7474,7 +7474,7 @@ function renderOnePoint(pl, categories) {
|
|
|
7474
7474
|
});
|
|
7475
7475
|
} else {
|
|
7476
7476
|
const r = pl.r;
|
|
7477
|
-
shapeEl =
|
|
7477
|
+
shapeEl = chunk3WNW5Y7P_cjs.polygon({
|
|
7478
7478
|
points: `${pl.px},${pl.py - r} ${pl.px + r},${pl.py + r * 0.8} ${pl.px - r},${pl.py + r * 0.8}`,
|
|
7479
7479
|
fill: color,
|
|
7480
7480
|
"fill-opacity": fillOpacity,
|
|
@@ -7483,14 +7483,14 @@ function renderOnePoint(pl, categories) {
|
|
|
7483
7483
|
class: "sx-matrix-bubble"
|
|
7484
7484
|
});
|
|
7485
7485
|
}
|
|
7486
|
-
const leader = pl.label.external ?
|
|
7486
|
+
const leader = pl.label.external ? chunk3WNW5Y7P_cjs.line({
|
|
7487
7487
|
x1: pl.px,
|
|
7488
7488
|
y1: pl.py,
|
|
7489
7489
|
x2: pl.label.lx,
|
|
7490
7490
|
y2: pl.label.ly,
|
|
7491
7491
|
class: "sx-matrix-leader"
|
|
7492
7492
|
}) : "";
|
|
7493
|
-
const label =
|
|
7493
|
+
const label = chunk3WNW5Y7P_cjs.text(
|
|
7494
7494
|
{ x: pl.label.lx, y: pl.label.ly, class: "sx-matrix-label" },
|
|
7495
7495
|
pl.label.text
|
|
7496
7496
|
);
|
|
@@ -7498,20 +7498,20 @@ function renderOnePoint(pl, categories) {
|
|
|
7498
7498
|
if (p.offChart) {
|
|
7499
7499
|
const bx = pl.px;
|
|
7500
7500
|
const by = pl.py;
|
|
7501
|
-
badge =
|
|
7501
|
+
badge = chunk3WNW5Y7P_cjs.text(
|
|
7502
7502
|
{ x: bx + pl.r + 4, y: by - pl.r - 2, class: "sx-matrix-offchart", "font-size": 14, "font-weight": 700 },
|
|
7503
7503
|
"\u2197"
|
|
7504
7504
|
);
|
|
7505
7505
|
}
|
|
7506
7506
|
const titleStr = p.note ? `${p.label} \xB7 (${p.origX ?? p.x}, ${p.origY ?? p.y}) \u2014 ${p.note}` : `${p.label} \xB7 (${(p.origX ?? p.x).toFixed(2)}, ${(p.origY ?? p.y).toFixed(2)})${p.size !== void 0 ? ` \xB7 size ${p.size}` : ""}`;
|
|
7507
|
-
return
|
|
7507
|
+
return chunk3WNW5Y7P_cjs.group(
|
|
7508
7508
|
{
|
|
7509
7509
|
class: "sx-matrix-point",
|
|
7510
7510
|
"data-point-id": p.id,
|
|
7511
7511
|
"data-label": p.label,
|
|
7512
7512
|
...p.category ? { "data-category": p.category } : {}
|
|
7513
7513
|
},
|
|
7514
|
-
[
|
|
7514
|
+
[chunk3WNW5Y7P_cjs.title(titleStr), shapeEl, leader, label, badge].filter((s) => s.length > 0)
|
|
7515
7515
|
);
|
|
7516
7516
|
}
|
|
7517
7517
|
function renderLegend2(ast, lay) {
|
|
@@ -7522,18 +7522,18 @@ function renderLegend2(ast, lay) {
|
|
|
7522
7522
|
const w = 210;
|
|
7523
7523
|
const h = 10;
|
|
7524
7524
|
const stops = HEAT_RAMP.map(
|
|
7525
|
-
(c, i) =>
|
|
7525
|
+
(c, i) => chunk3WNW5Y7P_cjs.el("stop", { offset: `${i / (HEAT_RAMP.length - 1) * 100}%`, "stop-color": c })
|
|
7526
7526
|
);
|
|
7527
|
-
const grad =
|
|
7527
|
+
const grad = chunk3WNW5Y7P_cjs.el(
|
|
7528
7528
|
"linearGradient",
|
|
7529
7529
|
{ id: "sx-matrix-heatgrad", x1: "0%", x2: "100%" },
|
|
7530
7530
|
stops
|
|
7531
7531
|
);
|
|
7532
|
-
return
|
|
7533
|
-
|
|
7534
|
-
|
|
7535
|
-
|
|
7536
|
-
|
|
7532
|
+
return chunk3WNW5Y7P_cjs.group({ id: "sx-matrix-legend" }, [
|
|
7533
|
+
chunk3WNW5Y7P_cjs.el("defs", {}, [grad]),
|
|
7534
|
+
chunk3WNW5Y7P_cjs.rect({ x, y, width: w, height: h, fill: "url(#sx-matrix-heatgrad)", stroke: "#d1d5db" }),
|
|
7535
|
+
chunk3WNW5Y7P_cjs.text({ x, y: y - 4, class: "sx-matrix-legend-text", "text-anchor": "start" }, "Low"),
|
|
7536
|
+
chunk3WNW5Y7P_cjs.text(
|
|
7537
7537
|
{ x: x + w, y: y - 4, class: "sx-matrix-legend-text", "text-anchor": "end" },
|
|
7538
7538
|
"High"
|
|
7539
7539
|
)
|
|
@@ -7544,16 +7544,16 @@ function renderLegend2(ast, lay) {
|
|
|
7544
7544
|
const yBase = lay.plot.y0 + 8;
|
|
7545
7545
|
const rows = lay.categories.map((cat, i) => {
|
|
7546
7546
|
const color = CATEGORY_COLORS[i % CATEGORY_COLORS.length];
|
|
7547
|
-
return
|
|
7548
|
-
|
|
7549
|
-
|
|
7547
|
+
return chunk3WNW5Y7P_cjs.group({ transform: `translate(${xBase}, ${yBase + i * 18})` }, [
|
|
7548
|
+
chunk3WNW5Y7P_cjs.circle({ cx: 6, cy: 6, r: 5, fill: color, "fill-opacity": 0.7, stroke: color }),
|
|
7549
|
+
chunk3WNW5Y7P_cjs.text({ x: 18, y: 10, class: "sx-matrix-legend-text" }, cat)
|
|
7550
7550
|
]);
|
|
7551
7551
|
});
|
|
7552
|
-
return
|
|
7552
|
+
return chunk3WNW5Y7P_cjs.group({ id: "sx-matrix-legend" }, rows);
|
|
7553
7553
|
}
|
|
7554
7554
|
function renderTitle(ast, lay) {
|
|
7555
7555
|
if (!ast.title) return "";
|
|
7556
|
-
return
|
|
7556
|
+
return chunk3WNW5Y7P_cjs.text(
|
|
7557
7557
|
{ x: lay.canvasWidth / 2, y: 28, class: "sx-matrix-title", "text-anchor": "middle" },
|
|
7558
7558
|
ast.title
|
|
7559
7559
|
);
|
|
@@ -7576,7 +7576,7 @@ function renderMatrixAST(ast) {
|
|
|
7576
7576
|
renderLegend2(ast, lay),
|
|
7577
7577
|
renderCorrelationLegend(ast, lay)
|
|
7578
7578
|
].filter((s) => s.length > 0);
|
|
7579
|
-
return
|
|
7579
|
+
return chunk3WNW5Y7P_cjs.svgRoot(
|
|
7580
7580
|
{
|
|
7581
7581
|
class: "sx-matrix",
|
|
7582
7582
|
"data-diagram-type": "matrix",
|
|
@@ -7587,11 +7587,11 @@ function renderMatrixAST(ast) {
|
|
|
7587
7587
|
role: "graphics-document"
|
|
7588
7588
|
},
|
|
7589
7589
|
[
|
|
7590
|
-
|
|
7591
|
-
|
|
7590
|
+
chunk3WNW5Y7P_cjs.title(ast.title ? `Matrix \u2014 ${chunk3WNW5Y7P_cjs.escapeXml(ast.title)}` : "Matrix diagram"),
|
|
7591
|
+
chunk3WNW5Y7P_cjs.desc(
|
|
7592
7592
|
`Matrix diagram${ast.template ? ` (${ast.template} template)` : ""}, ${ast.mode} mode, ${ast.points.length} point(s)`
|
|
7593
7593
|
),
|
|
7594
|
-
|
|
7594
|
+
chunk3WNW5Y7P_cjs.defs([chunk3WNW5Y7P_cjs.el("style", {}, CSS), axisArrow()]),
|
|
7595
7595
|
...body
|
|
7596
7596
|
]
|
|
7597
7597
|
);
|
|
@@ -7616,24 +7616,24 @@ var matrix = {
|
|
|
7616
7616
|
|
|
7617
7617
|
// src/core/api.ts
|
|
7618
7618
|
var plugins = [
|
|
7619
|
-
|
|
7620
|
-
|
|
7621
|
-
|
|
7622
|
-
|
|
7623
|
-
|
|
7624
|
-
|
|
7625
|
-
|
|
7626
|
-
|
|
7627
|
-
|
|
7628
|
-
|
|
7629
|
-
|
|
7630
|
-
|
|
7631
|
-
|
|
7632
|
-
|
|
7633
|
-
|
|
7619
|
+
chunkQOLBWCF5_cjs.genogram,
|
|
7620
|
+
chunkAVIKQZSX_cjs.ecomap,
|
|
7621
|
+
chunkHOI6QKC6_cjs.pedigree,
|
|
7622
|
+
chunkCWZKP3CJ_cjs.phylo,
|
|
7623
|
+
chunk7EWFVNYD_cjs.sociogram,
|
|
7624
|
+
chunkZCW7YH3C_cjs.timing,
|
|
7625
|
+
chunkQ5OFA4I2_cjs.logic,
|
|
7626
|
+
chunkYUPG2M3I_cjs.circuit,
|
|
7627
|
+
chunkQXL7AY2H_cjs.blockdiagram,
|
|
7628
|
+
chunk55UEHL57_cjs.ladder,
|
|
7629
|
+
chunkUDGU73RL_cjs.sld,
|
|
7630
|
+
chunkN56YC75X_cjs.entity,
|
|
7631
|
+
chunkZZJDGGC3_cjs.fishbone,
|
|
7632
|
+
chunkPG6TDGKI_cjs.venn,
|
|
7633
|
+
chunkZFNZ2FYI_cjs.flowchart,
|
|
7634
7634
|
mindmap,
|
|
7635
7635
|
matrix,
|
|
7636
|
-
|
|
7636
|
+
chunkIAEABLIV_cjs.orgchart,
|
|
7637
7637
|
decisiontree,
|
|
7638
7638
|
timeline,
|
|
7639
7639
|
state,
|
|
@@ -7675,5 +7675,5 @@ exports.pid = pid;
|
|
|
7675
7675
|
exports.render = render;
|
|
7676
7676
|
exports.state = state;
|
|
7677
7677
|
exports.timeline = timeline;
|
|
7678
|
-
//# sourceMappingURL=chunk-
|
|
7679
|
-
//# sourceMappingURL=chunk-
|
|
7678
|
+
//# sourceMappingURL=chunk-APV4AWQ5.cjs.map
|
|
7679
|
+
//# sourceMappingURL=chunk-APV4AWQ5.cjs.map
|