mio-previewer 0.1.6 → 0.1.8
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/README.md +12 -2
- package/README.zh-CN.md +26 -1
- package/dist/{_basePickBy-m5_T47yz.js → _basePickBy-CFTZygnR.js} +30 -30
- package/dist/_basePickBy-tPOC0EMH.cjs +1 -0
- package/dist/{_baseUniq-BnywwJBY.js → _baseUniq-COpRdEZm.js} +52 -52
- package/dist/_baseUniq-DqpG5gxq.cjs +1 -0
- package/dist/{arc-BDHD79aE.js → arc-CA-zaVHH.js} +15 -15
- package/dist/arc-D6SpLjCN.cjs +1 -0
- package/dist/{architecture-O4VJ6CD3-B3mtkY33.cjs → architecture-O4VJ6CD3-CpYFg8kG.cjs} +1 -1
- package/dist/{architecture-O4VJ6CD3-DXA5X_yx.js → architecture-O4VJ6CD3-DhXiEYF9.js} +1 -1
- package/dist/architectureDiagram-VXUJARFQ-C-ZDGP3T.cjs +36 -0
- package/dist/{architectureDiagram-VXUJARFQ-WrHvlvqz.js → architectureDiagram-VXUJARFQ-CMDGkfwW.js} +132 -132
- package/dist/{blockDiagram-VD42YOAC-B8yzpSUt.js → blockDiagram-VD42YOAC-B6yyyBoP.js} +45 -45
- package/dist/{blockDiagram-VD42YOAC-iGUQhHOa.cjs → blockDiagram-VD42YOAC-BboMD6jZ.cjs} +4 -4
- package/dist/{c4Diagram-YG6GDRKO-r1vmxT4H.js → c4Diagram-YG6GDRKO-Bk3UfYds.js} +2 -2
- package/dist/{c4Diagram-YG6GDRKO-BC0oVCkM.cjs → c4Diagram-YG6GDRKO-CAnMUU5Q.cjs} +1 -1
- package/dist/channel-By4yEUpY.cjs +1 -0
- package/dist/{channel-BlCmYLjm.js → channel-CGHeB_wL.js} +1 -1
- package/dist/{chunk-4BX2VUAB-BvRfkHhg.js → chunk-4BX2VUAB-DQLiny3u.js} +1 -1
- package/dist/chunk-4BX2VUAB-r3h9zqZy.cjs +1 -0
- package/dist/{chunk-55IACEB6-B6RNQ_Dl.js → chunk-55IACEB6-BvzkNW0T.js} +3 -3
- package/dist/chunk-55IACEB6-F8U2tzR2.cjs +1 -0
- package/dist/{chunk-B4BG7PRW-B2nNYsy_.cjs → chunk-B4BG7PRW-DNWDyosT.cjs} +3 -3
- package/dist/{chunk-B4BG7PRW-DlrKAjak.js → chunk-B4BG7PRW-XH3xle9g.js} +10 -10
- package/dist/{chunk-DI55MBZ5-CZnuDYt1.js → chunk-DI55MBZ5-7cI7r4vk.js} +3 -3
- package/dist/{chunk-DI55MBZ5-BUn8iSqn.cjs → chunk-DI55MBZ5-DBabq0PW.cjs} +1 -1
- package/dist/{chunk-FMBD7UC4-QZu7cQhg.cjs → chunk-FMBD7UC4-BSSIfQJH.cjs} +1 -1
- package/dist/{chunk-FMBD7UC4-Kiqgsjq0.js → chunk-FMBD7UC4-Z_IXsR9N.js} +1 -1
- package/dist/chunk-QN33PNHL-Cb-RTcJE.cjs +1 -0
- package/dist/{chunk-QN33PNHL-CN23wkk5.js → chunk-QN33PNHL-dvg-wDdg.js} +1 -1
- package/dist/{chunk-QZHKN3VN-DRwz5CXr.js → chunk-QZHKN3VN-Chg9twhX.js} +1 -1
- package/dist/chunk-QZHKN3VN-DR2ed2kF.cjs +1 -0
- package/dist/{chunk-TZMSLE5B-Bwr0045t.js → chunk-TZMSLE5B-CIgbKyu_.js} +1 -1
- package/dist/chunk-TZMSLE5B-D3CSz4N0.cjs +1 -0
- package/dist/{classDiagram-v2-WZHVMYZB-DxjNGm48.js → classDiagram-2ON5EDUG-CC9xOx_t.js} +2 -2
- package/dist/classDiagram-2ON5EDUG-De8Dohf7.cjs +1 -0
- package/dist/{classDiagram-2ON5EDUG-DxjNGm48.js → classDiagram-v2-WZHVMYZB-CC9xOx_t.js} +2 -2
- package/dist/classDiagram-v2-WZHVMYZB-De8Dohf7.cjs +1 -0
- package/dist/{clone-xXnwx9JX.js → clone-BrZZgHT6.js} +1 -1
- package/dist/clone-CXoO9ncp.cjs +1 -0
- package/dist/cose-bilkent-S5V4N54A-0DFD6rcw.cjs +1 -0
- package/dist/{cose-bilkent-S5V4N54A-DwACfiOr.js → cose-bilkent-S5V4N54A-CDs3BBYp.js} +1 -1
- package/dist/{custom-C1QhDj-y.js → cursorPlugin-CLM_tkck.js} +2677 -2611
- package/dist/{custom-BB9B2BL2.cjs → cursorPlugin-vB5SgZWZ.cjs} +42 -42
- package/dist/{dagre-6UL2VRFP-D8jgPXZB.js → dagre-6UL2VRFP-BlMhpFnF.js} +119 -119
- package/dist/dagre-6UL2VRFP-DuUBkSw0.cjs +4 -0
- package/dist/diagram-PSM6KHXK-CmQ4F2JN.cjs +24 -0
- package/dist/{diagram-PSM6KHXK-CVislPq4.js → diagram-PSM6KHXK-CoqSYWPX.js} +53 -53
- package/dist/diagram-QEK2KX5R-DqSiNmiR.cjs +43 -0
- package/dist/{diagram-QEK2KX5R-JH3FlTXl.js → diagram-QEK2KX5R-FqbXBaqH.js} +20 -20
- package/dist/diagram-S2PKOQOG-DYEcRvla.cjs +24 -0
- package/dist/{diagram-S2PKOQOG-BgorvXyP.js → diagram-S2PKOQOG-u-4zOtyY.js} +23 -23
- package/dist/{erDiagram-Q2GNP2WA-DyFoT35Q.js → erDiagram-Q2GNP2WA-CXn9GtvJ.js} +4 -4
- package/dist/{erDiagram-Q2GNP2WA-DjGQSNEd.cjs → erDiagram-Q2GNP2WA-DWDeWLTL.cjs} +1 -1
- package/dist/{flowDiagram-NV44I4VS-C5_i8vKb.cjs → flowDiagram-NV44I4VS-C60QhUiz.cjs} +3 -3
- package/dist/{flowDiagram-NV44I4VS-Bp-q8kkE.js → flowDiagram-NV44I4VS-CvRJQSEg.js} +14 -14
- package/dist/ganttDiagram-LVOFAZNH-DuTD48a9.cjs +267 -0
- package/dist/{ganttDiagram-LVOFAZNH-D5BjYh4O.js → ganttDiagram-LVOFAZNH-bsx5CB5d.js} +2 -2
- package/dist/{gitGraph-ZV4HHKMB-CMC3ZF2n.js → gitGraph-ZV4HHKMB-BjAayPSR.js} +1 -1
- package/dist/{gitGraph-ZV4HHKMB-6xujjpfY.cjs → gitGraph-ZV4HHKMB-kRwxNQnW.cjs} +1 -1
- package/dist/{gitGraphDiagram-NY62KEGX-DYmh2kRW.js → gitGraphDiagram-NY62KEGX-DPM59sAG.js} +45 -45
- package/dist/gitGraphDiagram-NY62KEGX-DsyQIiCo.cjs +65 -0
- package/dist/{graph-D3gnYK1X.js → graph-CilVg985.js} +8 -8
- package/dist/graph-T55iHwif.cjs +1 -0
- package/dist/{info-63CPKGFF-CEKaKKTJ.cjs → info-63CPKGFF-BKQtOsLZ.cjs} +1 -1
- package/dist/info-63CPKGFF-D-_lE7q9.js +5 -0
- package/dist/{infoDiagram-F6ZHWCRC-CvuN8Xe0.js → infoDiagram-F6ZHWCRC-B6bTTLIe.js} +2 -2
- package/dist/infoDiagram-F6ZHWCRC-Dfs9venE.cjs +2 -0
- package/dist/{journeyDiagram-XKPGCS4Q-CMD1dNlA.js → journeyDiagram-XKPGCS4Q-BKPpLUXu.js} +4 -4
- package/dist/{journeyDiagram-XKPGCS4Q-NZ7Zwwno.cjs → journeyDiagram-XKPGCS4Q-CkWQvbbC.cjs} +1 -1
- package/dist/{kanban-definition-3W4ZIXB7-DdiLRhLn.js → kanban-definition-3W4ZIXB7-CLac2PpK.js} +44 -44
- package/dist/{kanban-definition-3W4ZIXB7-DKjyogIQ.cjs → kanban-definition-3W4ZIXB7-DzI_mEvf.cjs} +1 -1
- package/dist/{layout-D4zQO2o2.js → layout-DOxjVt30.js} +42 -42
- package/dist/layout-LjH1X4pD.cjs +1 -0
- package/dist/linear-BZdfTIw6.cjs +1 -0
- package/dist/{linear-DsHZ7VTP.js → linear-nITCRSwN.js} +29 -29
- package/dist/{mermaid-parser.core-scIqCLhe.js → mermaid-parser.core-BvyFzRhX.js} +205 -205
- package/dist/{mermaid-parser.core-DilcMT1B.cjs → mermaid-parser.core-YAHoRfr_.cjs} +2 -2
- package/dist/{mindmap-definition-VGOIOE7T-Ei8sTs44.cjs → mindmap-definition-VGOIOE7T-8Pk45I0T.cjs} +2 -2
- package/dist/{mindmap-definition-VGOIOE7T-tfBKngxr.js → mindmap-definition-VGOIOE7T-BTlAV786.js} +18 -18
- package/dist/mio-previewer.cjs.js +16 -3
- package/dist/mio-previewer.css +1 -1
- package/dist/mio-previewer.es.js +4524 -27
- package/dist/{packet-HUATNLJX-DJA8At21.cjs → packet-HUATNLJX-CNiEJWxQ.cjs} +1 -1
- package/dist/{packet-HUATNLJX-Dj4GcjQR.js → packet-HUATNLJX-Cn2d6cbh.js} +1 -1
- package/dist/{pie-WTHONI2E-B79PEY8l.cjs → pie-WTHONI2E-CEUZL-GO.cjs} +1 -1
- package/dist/pie-WTHONI2E-COsOPmmh.js +5 -0
- package/dist/pieDiagram-ADFJNKIX-8mFQx_vI.cjs +30 -0
- package/dist/{pieDiagram-ADFJNKIX-CJrJzhlE.js → pieDiagram-ADFJNKIX-CgDIBKwo.js} +39 -39
- package/dist/plugins/custom.cjs.js +1 -1
- package/dist/plugins/custom.es.js +4 -3
- package/dist/plugins/markdown-it.cjs.js +3 -1
- package/dist/plugins/markdown-it.es.js +128 -66
- package/dist/{quadrantDiagram-AYHSOK5B-UCGi708D.cjs → quadrantDiagram-AYHSOK5B-CExSZwWH.cjs} +1 -1
- package/dist/{quadrantDiagram-AYHSOK5B-42v2tFCR.js → quadrantDiagram-AYHSOK5B-TlBxKPiG.js} +2 -2
- package/dist/{radar-NJJJXTRR-PPOjSXgX.cjs → radar-NJJJXTRR-D3p36qrE.cjs} +1 -1
- package/dist/radar-NJJJXTRR-hKx4VhDB.js +5 -0
- package/dist/{requirementDiagram-UZGBJVZJ-CCCu9RXm.cjs → requirementDiagram-UZGBJVZJ-BEcIIQ5C.cjs} +1 -1
- package/dist/{requirementDiagram-UZGBJVZJ-m_gma9iH.js → requirementDiagram-UZGBJVZJ-Dl5ijlU7.js} +27 -27
- package/dist/sankeyDiagram-TZEHDZUN-_AuPE8rx.cjs +10 -0
- package/dist/{sankeyDiagram-TZEHDZUN-eY44cJlE.js → sankeyDiagram-TZEHDZUN-bIR5yy8v.js} +56 -56
- package/dist/{sequenceDiagram-WL72ISMW-CBoGDk3g.cjs → sequenceDiagram-WL72ISMW-BG5OjhGw.cjs} +9 -9
- package/dist/{sequenceDiagram-WL72ISMW-Chw20cva.js → sequenceDiagram-WL72ISMW-DT79Xx9V.js} +3 -3
- package/dist/{stateDiagram-FKZM4ZOC-3yy_Kvnk.js → stateDiagram-FKZM4ZOC-CDfDuz0s.js} +16 -16
- package/dist/stateDiagram-FKZM4ZOC-CaZkY5ch.cjs +1 -0
- package/dist/{stateDiagram-v2-4FDKWEC3-DELyMBBc.js → stateDiagram-v2-4FDKWEC3-DroYR31A.js} +2 -2
- package/dist/stateDiagram-v2-4FDKWEC3-GfIoqgb_.cjs +1 -0
- package/dist/{timeline-definition-IT6M3QCI-imDDAjaW.cjs → timeline-definition-IT6M3QCI-BxCHgT34.cjs} +14 -14
- package/dist/{timeline-definition-IT6M3QCI-DSbrx1um.js → timeline-definition-IT6M3QCI-CzA493Rr.js} +24 -24
- package/dist/{treemap-75Q7IDZK-Bwj_esWs.js → treemap-75Q7IDZK-B7s32RV1.js} +1 -1
- package/dist/{treemap-75Q7IDZK-DaCs42wt.cjs → treemap-75Q7IDZK-hLeVdex4.cjs} +1 -1
- package/dist/types/entries/plugin-alert.d.ts +1 -1
- package/dist/types/entries/plugin-codeblock.d.ts +1 -1
- package/dist/types/entries/plugin-emoji.d.ts +1 -1
- package/dist/types/entries/plugin-katex.d.ts +1 -1
- package/dist/types/entries/plugin-mermaid.d.ts +1 -1
- package/dist/types/index.d.ts +4 -2
- package/dist/types/plugins/custom/codeBlockPlugin.d.ts +42 -0
- package/dist/types/plugins/custom/cursorPlugin.d.ts +42 -0
- package/dist/types/plugins/custom/emojiPlugin.d.ts +46 -0
- package/dist/types/plugins/custom/index.d.ts +8 -0
- package/dist/types/plugins/custom/mermaidPlugin.d.ts +45 -0
- package/dist/types/plugins/{AlertPlugin.d.ts → markdown-it/alertPlugin.d.ts} +4 -4
- package/dist/types/plugins/markdown-it/index.d.ts +2 -0
- package/dist/types/types.d.ts +23 -2
- package/dist/{xychartDiagram-PRI3JC2R-CpYE-5EP.js → xychartDiagram-PRI3JC2R-Bb_Kt4vj.js} +29 -29
- package/dist/{xychartDiagram-PRI3JC2R-CBaFcd4q.cjs → xychartDiagram-PRI3JC2R-DQLU-dCp.cjs} +1 -1
- package/package.json +8 -5
- package/dist/AlertPlugin-B74_-nlo.cjs +0 -3
- package/dist/AlertPlugin-DUG0ldg_.js +0 -66
- package/dist/MdRenderer.vue_vue_type_style_index_0_lang-B26E5SLd.js +0 -4562
- package/dist/MdRenderer.vue_vue_type_style_index_0_lang-CT8VuqF6.cjs +0 -16
- package/dist/_basePickBy-CWzy8CIJ.cjs +0 -1
- package/dist/_baseUniq-DzAGUMoa.cjs +0 -1
- package/dist/_plugin-vue_export-helper-BHFhmbuH.cjs +0 -1
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/arc-BAZxwgoG.cjs +0 -1
- package/dist/architectureDiagram-VXUJARFQ-CBEmF4c4.cjs +0 -36
- package/dist/channel-CybseUM2.cjs +0 -1
- package/dist/chunk-4BX2VUAB-6PxxKRiV.cjs +0 -1
- package/dist/chunk-55IACEB6-BaqZa58T.cjs +0 -1
- package/dist/chunk-QN33PNHL-NFeQwU1C.cjs +0 -1
- package/dist/chunk-QZHKN3VN-Bq63ipAz.cjs +0 -1
- package/dist/chunk-TZMSLE5B-Dp8UhykY.cjs +0 -1
- package/dist/classDiagram-2ON5EDUG-CWAjzXtp.cjs +0 -1
- package/dist/classDiagram-v2-WZHVMYZB-CWAjzXtp.cjs +0 -1
- package/dist/clone-W1VAscty.cjs +0 -1
- package/dist/cose-bilkent-S5V4N54A-DGtDnCf_.cjs +0 -1
- package/dist/dagre-6UL2VRFP-B7OkXNwm.cjs +0 -4
- package/dist/diagram-PSM6KHXK-DSJu8JZ6.cjs +0 -24
- package/dist/diagram-QEK2KX5R-CoE4joH1.cjs +0 -43
- package/dist/diagram-S2PKOQOG-CtcEZ9xO.cjs +0 -24
- package/dist/entries/md.cjs.js +0 -1
- package/dist/entries/md.es.js +0 -5
- package/dist/ganttDiagram-LVOFAZNH-CWj5yJz4.cjs +0 -267
- package/dist/gitGraphDiagram-NY62KEGX-Bijj3zxW.cjs +0 -65
- package/dist/graph-DFTHBY71.cjs +0 -1
- package/dist/info-63CPKGFF-BLYzhYAj.js +0 -5
- package/dist/infoDiagram-F6ZHWCRC-CGakmtht.cjs +0 -2
- package/dist/layout-BKa4J6c-.cjs +0 -1
- package/dist/linear-DZQR44UC.cjs +0 -1
- package/dist/pie-WTHONI2E-L2ei45O-.js +0 -5
- package/dist/pieDiagram-ADFJNKIX-BIV_iyZL.cjs +0 -30
- package/dist/radar-NJJJXTRR-BF1JzV5Y.js +0 -5
- package/dist/sankeyDiagram-TZEHDZUN-Dt6lrgnr.cjs +0 -10
- package/dist/stateDiagram-FKZM4ZOC-t7WnWKbx.cjs +0 -1
- package/dist/stateDiagram-v2-4FDKWEC3-Ct9Imkjc.cjs +0 -1
- package/dist/types/entries/md.d.ts +0 -3
- package/dist/types/entries/plugins/custom.d.ts +0 -3
- package/dist/types/entries/plugins/markdown-it.d.ts +0 -2
- package/dist/types/helpers/containerHelpers.d.ts +0 -58
- package/dist/types/helpers/index.d.ts +0 -4
- package/dist/types/plugins/CodeBlockPlugin.d.ts +0 -9
- package/dist/types/plugins/EmojiPlugin.d.ts +0 -11
- package/dist/types/plugins/mermaidPlugin.d.ts +0 -13
- /package/dist/types/plugins/{katexPlugin.d.ts → markdown-it/katexPlugin.d.ts} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as g,
|
|
1
|
+
import { _ as g, x as _t, y as xt, s as vt, g as bt, d as wt, b as St, f as lt, D as Lt, h as X, $ as Et, C as At, p as Tt } from "./cursorPlugin-CLM_tkck.js";
|
|
2
2
|
import { o as Mt } from "./ordinal-DfAQgscy.js";
|
|
3
3
|
function Nt(t) {
|
|
4
4
|
for (var e = t.length / 6 | 0, i = new Array(e), a = 0; a < e; ) i[a] = "#" + t.slice(a * 6, ++a * 6);
|
|
@@ -53,10 +53,10 @@ function Ot(t, e) {
|
|
|
53
53
|
function mt(t, e) {
|
|
54
54
|
return t.sourceLinks.length ? t.depth : e - 1;
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function Dt(t) {
|
|
57
57
|
return t.targetLinks.length ? t.depth : t.sourceLinks.length ? pt(t.sourceLinks, Pt) - 1 : 0;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function q(t) {
|
|
60
60
|
return function() {
|
|
61
61
|
return t;
|
|
62
62
|
};
|
|
@@ -73,10 +73,10 @@ function Q(t, e) {
|
|
|
73
73
|
function it(t) {
|
|
74
74
|
return t.value;
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function $t(t) {
|
|
77
77
|
return t.index;
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function zt(t) {
|
|
80
80
|
return t.nodes;
|
|
81
81
|
}
|
|
82
82
|
function jt(t) {
|
|
@@ -97,7 +97,7 @@ function yt({ nodes: t }) {
|
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
function Bt() {
|
|
100
|
-
let t = 0, e = 0, i = 1, a = 1, h = 24, b = 8, p, k =
|
|
100
|
+
let t = 0, e = 0, i = 1, a = 1, h = 24, b = 8, p, k = $t, s = mt, o, l, _ = zt, x = jt, y = 6;
|
|
101
101
|
function v() {
|
|
102
102
|
const n = { nodes: _.apply(null, arguments), links: x.apply(null, arguments) };
|
|
103
103
|
return M(n), T(n), N(n), C(n), S(n), yt(n), n;
|
|
@@ -105,9 +105,9 @@ function Bt() {
|
|
|
105
105
|
v.update = function(n) {
|
|
106
106
|
return yt(n), n;
|
|
107
107
|
}, v.nodeId = function(n) {
|
|
108
|
-
return arguments.length ? (k = typeof n == "function" ? n :
|
|
108
|
+
return arguments.length ? (k = typeof n == "function" ? n : q(n), v) : k;
|
|
109
109
|
}, v.nodeAlign = function(n) {
|
|
110
|
-
return arguments.length ? (s = typeof n == "function" ? n :
|
|
110
|
+
return arguments.length ? (s = typeof n == "function" ? n : q(n), v) : s;
|
|
111
111
|
}, v.nodeSort = function(n) {
|
|
112
112
|
return arguments.length ? (o = n, v) : o;
|
|
113
113
|
}, v.nodeWidth = function(n) {
|
|
@@ -115,9 +115,9 @@ function Bt() {
|
|
|
115
115
|
}, v.nodePadding = function(n) {
|
|
116
116
|
return arguments.length ? (b = p = +n, v) : b;
|
|
117
117
|
}, v.nodes = function(n) {
|
|
118
|
-
return arguments.length ? (_ = typeof n == "function" ? n :
|
|
118
|
+
return arguments.length ? (_ = typeof n == "function" ? n : q(n), v) : _;
|
|
119
119
|
}, v.links = function(n) {
|
|
120
|
-
return arguments.length ? (x = typeof n == "function" ? n :
|
|
120
|
+
return arguments.length ? (x = typeof n == "function" ? n : q(n), v) : x;
|
|
121
121
|
}, v.linkSort = function(n) {
|
|
122
122
|
return arguments.length ? (l = n, v) : l;
|
|
123
123
|
}, v.size = function(n) {
|
|
@@ -170,7 +170,7 @@ function Bt() {
|
|
|
170
170
|
u = c, c = /* @__PURE__ */ new Set();
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function $({ nodes: n }) {
|
|
174
174
|
const f = ct(n, (r) => r.depth) + 1, u = (i - t - h) / (f - 1), c = new Array(f);
|
|
175
175
|
for (const r of n) {
|
|
176
176
|
const m = Math.max(0, Math.min(f - 1, Math.floor(s.call(null, r, f))));
|
|
@@ -198,7 +198,7 @@ function Bt() {
|
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
function S(n) {
|
|
201
|
-
const f =
|
|
201
|
+
const f = $(n);
|
|
202
202
|
p = Math.min(b, (a - e) / (ct(f, (u) => u.length) - 1)), R(f);
|
|
203
203
|
for (let u = 0; u < y; ++u) {
|
|
204
204
|
const c = Math.pow(0.99, u), r = Math.max(1 - c, (u + 1) / y);
|
|
@@ -209,13 +209,13 @@ function Bt() {
|
|
|
209
209
|
for (let c = 1, r = n.length; c < r; ++c) {
|
|
210
210
|
const m = n[c];
|
|
211
211
|
for (const w of m) {
|
|
212
|
-
let L = 0,
|
|
212
|
+
let L = 0, F = 0;
|
|
213
213
|
for (const { source: Y, value: et } of w.targetLinks) {
|
|
214
|
-
let
|
|
215
|
-
L +=
|
|
214
|
+
let H = et * (w.layer - Y.layer);
|
|
215
|
+
L += z(Y, w) * H, F += H;
|
|
216
216
|
}
|
|
217
|
-
if (!(
|
|
218
|
-
let G = (L /
|
|
217
|
+
if (!(F > 0)) continue;
|
|
218
|
+
let G = (L / F - w.y0) * f;
|
|
219
219
|
w.y0 += G, w.y1 += G, E(w);
|
|
220
220
|
}
|
|
221
221
|
o === void 0 && m.sort(Q), O(m, u);
|
|
@@ -225,13 +225,13 @@ function Bt() {
|
|
|
225
225
|
for (let c = n.length, r = c - 2; r >= 0; --r) {
|
|
226
226
|
const m = n[r];
|
|
227
227
|
for (const w of m) {
|
|
228
|
-
let L = 0,
|
|
228
|
+
let L = 0, F = 0;
|
|
229
229
|
for (const { target: Y, value: et } of w.sourceLinks) {
|
|
230
|
-
let
|
|
231
|
-
L += I(w, Y) *
|
|
230
|
+
let H = et * (Y.layer - w.layer);
|
|
231
|
+
L += I(w, Y) * H, F += H;
|
|
232
232
|
}
|
|
233
|
-
if (!(
|
|
234
|
-
let G = (L /
|
|
233
|
+
if (!(F > 0)) continue;
|
|
234
|
+
let G = (L / F - w.y0) * f;
|
|
235
235
|
w.y0 += G, w.y1 += G, E(w);
|
|
236
236
|
}
|
|
237
237
|
o === void 0 && m.sort(Q), O(m, u);
|
|
@@ -239,9 +239,9 @@ function Bt() {
|
|
|
239
239
|
}
|
|
240
240
|
function O(n, f) {
|
|
241
241
|
const u = n.length >> 1, c = n[u];
|
|
242
|
-
d(n, c.y0 - p, u - 1, f),
|
|
242
|
+
d(n, c.y0 - p, u - 1, f), D(n, c.y1 + p, u + 1, f), d(n, a, n.length - 1, f), D(n, e, 0, f);
|
|
243
243
|
}
|
|
244
|
-
function
|
|
244
|
+
function D(n, f, u, c) {
|
|
245
245
|
for (; u < n.length; ++u) {
|
|
246
246
|
const r = n[u], m = (f - r.y0) * c;
|
|
247
247
|
m > 1e-6 && (r.y0 += m, r.y1 += m), f = r.y1 + p;
|
|
@@ -266,7 +266,7 @@ function Bt() {
|
|
|
266
266
|
for (const { sourceLinks: f, targetLinks: u } of n)
|
|
267
267
|
f.sort(ht), u.sort(ut);
|
|
268
268
|
}
|
|
269
|
-
function
|
|
269
|
+
function z(n, f) {
|
|
270
270
|
let u = n.y0 - (n.sourceLinks.length - 1) * p / 2;
|
|
271
271
|
for (const { target: c, width: r } of n.sourceLinks) {
|
|
272
272
|
if (c === f) break;
|
|
@@ -292,7 +292,7 @@ function Bt() {
|
|
|
292
292
|
}
|
|
293
293
|
return v;
|
|
294
294
|
}
|
|
295
|
-
var st = Math.PI, rt = 2 * st,
|
|
295
|
+
var st = Math.PI, rt = 2 * st, V = 1e-6, Rt = rt - V;
|
|
296
296
|
function ot() {
|
|
297
297
|
this._x0 = this._y0 = // start of current subpath
|
|
298
298
|
this._x1 = this._y1 = null, this._ = "";
|
|
@@ -323,18 +323,18 @@ ot.prototype = kt.prototype = {
|
|
|
323
323
|
if (h < 0) throw new Error("negative radius: " + h);
|
|
324
324
|
if (this._x1 === null)
|
|
325
325
|
this._ += "M" + (this._x1 = t) + "," + (this._y1 = e);
|
|
326
|
-
else if (_ >
|
|
326
|
+
else if (_ > V) if (!(Math.abs(l * k - s * o) > V) || !h)
|
|
327
327
|
this._ += "L" + (this._x1 = t) + "," + (this._y1 = e);
|
|
328
328
|
else {
|
|
329
|
-
var x = i - b, y = a - p, v = k * k + s * s, M = x * x + y * y, T = Math.sqrt(v), N = Math.sqrt(_), C = h * Math.tan((st - Math.acos((v + _ - M) / (2 * T * N))) / 2),
|
|
330
|
-
Math.abs(
|
|
329
|
+
var x = i - b, y = a - p, v = k * k + s * s, M = x * x + y * y, T = Math.sqrt(v), N = Math.sqrt(_), C = h * Math.tan((st - Math.acos((v + _ - M) / (2 * T * N))) / 2), $ = C / N, R = C / T;
|
|
330
|
+
Math.abs($ - 1) > V && (this._ += "L" + (t + $ * o) + "," + (e + $ * l)), this._ += "A" + h + "," + h + ",0,0," + +(l * x > o * y) + "," + (this._x1 = t + R * k) + "," + (this._y1 = e + R * s);
|
|
331
331
|
}
|
|
332
332
|
},
|
|
333
333
|
arc: function(t, e, i, a, h, b) {
|
|
334
334
|
t = +t, e = +e, i = +i, b = !!b;
|
|
335
335
|
var p = i * Math.cos(a), k = i * Math.sin(a), s = t + p, o = e + k, l = 1 ^ b, _ = b ? a - h : h - a;
|
|
336
336
|
if (i < 0) throw new Error("negative radius: " + i);
|
|
337
|
-
this._x1 === null ? this._ += "M" + s + "," + o : (Math.abs(this._x1 - s) >
|
|
337
|
+
this._x1 === null ? this._ += "M" + s + "," + o : (Math.abs(this._x1 - s) > V || Math.abs(this._y1 - o) > V) && (this._ += "L" + s + "," + o), i && (_ < 0 && (_ = _ % rt + rt), _ > Rt ? this._ += "A" + i + "," + i + ",0,1," + l + "," + (t - p) + "," + (e - k) + "A" + i + "," + i + ",0,1," + l + "," + (this._x1 = s) + "," + (this._y1 = o) : _ > V && (this._ += "A" + i + "," + i + ",0," + +(_ >= st) + "," + l + "," + (this._x1 = t + i * Math.cos(h)) + "," + (this._y1 = e + i * Math.sin(h))));
|
|
338
338
|
},
|
|
339
339
|
rect: function(t, e, i, a) {
|
|
340
340
|
this._ += "M" + (this._x0 = this._x1 = +t) + "," + (this._y0 = this._y1 = +e) + "h" + +i + "v" + +a + "h" + -i + "Z";
|
|
@@ -348,10 +348,10 @@ function dt(t) {
|
|
|
348
348
|
return t;
|
|
349
349
|
};
|
|
350
350
|
}
|
|
351
|
-
function
|
|
351
|
+
function Ft(t) {
|
|
352
352
|
return t[0];
|
|
353
353
|
}
|
|
354
|
-
function
|
|
354
|
+
function Vt(t) {
|
|
355
355
|
return t[1];
|
|
356
356
|
}
|
|
357
357
|
var Wt = Array.prototype.slice;
|
|
@@ -362,7 +362,7 @@ function Gt(t) {
|
|
|
362
362
|
return t.target;
|
|
363
363
|
}
|
|
364
364
|
function Yt(t) {
|
|
365
|
-
var e = Ut, i = Gt, a =
|
|
365
|
+
var e = Ut, i = Gt, a = Ft, h = Vt, b = null;
|
|
366
366
|
function p() {
|
|
367
367
|
var k, s = Wt.call(arguments), o = e.apply(this, s), l = i.apply(this, s);
|
|
368
368
|
if (b || (b = k = kt()), t(b, +a.apply(this, (s[0] = o, s)), +h.apply(this, s), +a.apply(this, (s[0] = l, s)), +h.apply(this, s)), k) return b = null, k + "" || null;
|
|
@@ -379,20 +379,20 @@ function Yt(t) {
|
|
|
379
379
|
return arguments.length ? (b = k ?? null, p) : b;
|
|
380
380
|
}, p;
|
|
381
381
|
}
|
|
382
|
-
function
|
|
382
|
+
function Ht(t, e, i, a, h) {
|
|
383
383
|
t.moveTo(e, i), t.bezierCurveTo(e = (e + a) / 2, i, e, h, a, h);
|
|
384
384
|
}
|
|
385
|
-
function
|
|
386
|
-
return Yt(
|
|
385
|
+
function Xt() {
|
|
386
|
+
return Yt(Ht);
|
|
387
387
|
}
|
|
388
|
-
function
|
|
388
|
+
function qt(t) {
|
|
389
389
|
return [t.source.x1, t.y0];
|
|
390
390
|
}
|
|
391
391
|
function Qt(t) {
|
|
392
392
|
return [t.target.x0, t.y1];
|
|
393
393
|
}
|
|
394
394
|
function Kt() {
|
|
395
|
-
return
|
|
395
|
+
return Xt().source(qt).target(Qt);
|
|
396
396
|
}
|
|
397
397
|
var at = (function() {
|
|
398
398
|
var t = /* @__PURE__ */ g(function(k, s, o, l) {
|
|
@@ -433,13 +433,13 @@ var at = (function() {
|
|
|
433
433
|
}
|
|
434
434
|
}, "parseError"),
|
|
435
435
|
parse: /* @__PURE__ */ g(function(s) {
|
|
436
|
-
var o = this, l = [0], _ = [], x = [null], y = [], v = this.table, M = "", T = 0, N = 0, C = 2,
|
|
436
|
+
var o = this, l = [0], _ = [], x = [null], y = [], v = this.table, M = "", T = 0, N = 0, C = 2, $ = 1, R = y.slice.call(arguments, 1), S = Object.create(this.lexer), P = { yy: {} };
|
|
437
437
|
for (var B in this.yy)
|
|
438
438
|
Object.prototype.hasOwnProperty.call(this.yy, B) && (P.yy[B] = this.yy[B]);
|
|
439
439
|
S.setInput(s, P.yy), P.yy.lexer = S, P.yy.parser = this, typeof S.yylloc > "u" && (S.yylloc = {});
|
|
440
440
|
var O = S.yylloc;
|
|
441
441
|
y.push(O);
|
|
442
|
-
var
|
|
442
|
+
var D = S.options && S.options.ranges;
|
|
443
443
|
typeof P.yy.parseError == "function" ? this.parseError = P.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
444
444
|
function d(L) {
|
|
445
445
|
l.length = l.length - 2 * L, x.length = x.length - L, y.length = y.length - L;
|
|
@@ -447,18 +447,18 @@ var at = (function() {
|
|
|
447
447
|
g(d, "popStack");
|
|
448
448
|
function E() {
|
|
449
449
|
var L;
|
|
450
|
-
return L = _.pop() || S.lex() ||
|
|
450
|
+
return L = _.pop() || S.lex() || $, typeof L != "number" && (L instanceof Array && (_ = L, L = _.pop()), L = o.symbols_[L] || L), L;
|
|
451
451
|
}
|
|
452
452
|
g(E, "lex");
|
|
453
|
-
for (var A,
|
|
454
|
-
if (
|
|
453
|
+
for (var A, z, I, n, f = {}, u, c, r, m; ; ) {
|
|
454
|
+
if (z = l[l.length - 1], this.defaultActions[z] ? I = this.defaultActions[z] : ((A === null || typeof A > "u") && (A = E()), I = v[z] && v[z][A]), typeof I > "u" || !I.length || !I[0]) {
|
|
455
455
|
var w = "";
|
|
456
456
|
m = [];
|
|
457
|
-
for (u in v[
|
|
457
|
+
for (u in v[z])
|
|
458
458
|
this.terminals_[u] && u > C && m.push("'" + this.terminals_[u] + "'");
|
|
459
459
|
S.showPosition ? w = "Parse error on line " + (T + 1) + `:
|
|
460
460
|
` + S.showPosition() + `
|
|
461
|
-
Expecting ` + m.join(", ") + ", got '" + (this.terminals_[A] || A) + "'" : w = "Parse error on line " + (T + 1) + ": Unexpected " + (A ==
|
|
461
|
+
Expecting ` + m.join(", ") + ", got '" + (this.terminals_[A] || A) + "'" : w = "Parse error on line " + (T + 1) + ": Unexpected " + (A == $ ? "end of input" : "'" + (this.terminals_[A] || A) + "'"), this.parseError(w, {
|
|
462
462
|
text: S.match,
|
|
463
463
|
token: this.terminals_[A] || A,
|
|
464
464
|
line: S.yylineno,
|
|
@@ -467,7 +467,7 @@ Expecting ` + m.join(", ") + ", got '" + (this.terminals_[A] || A) + "'" : w = "
|
|
|
467
467
|
});
|
|
468
468
|
}
|
|
469
469
|
if (I[0] instanceof Array && I.length > 1)
|
|
470
|
-
throw new Error("Parse Error: multiple actions possible at state: " +
|
|
470
|
+
throw new Error("Parse Error: multiple actions possible at state: " + z + ", token: " + A);
|
|
471
471
|
switch (I[0]) {
|
|
472
472
|
case 1:
|
|
473
473
|
l.push(A), x.push(S.yytext), y.push(S.yylloc), l.push(I[1]), A = null, N = S.yyleng, M = S.yytext, T = S.yylineno, O = S.yylloc;
|
|
@@ -478,7 +478,7 @@ Expecting ` + m.join(", ") + ", got '" + (this.terminals_[A] || A) + "'" : w = "
|
|
|
478
478
|
last_line: y[y.length - 1].last_line,
|
|
479
479
|
first_column: y[y.length - (c || 1)].first_column,
|
|
480
480
|
last_column: y[y.length - 1].last_column
|
|
481
|
-
},
|
|
481
|
+
}, D && (f._$.range = [
|
|
482
482
|
y[y.length - (c || 1)].range[0],
|
|
483
483
|
y[y.length - 1].range[1]
|
|
484
484
|
]), n = this.performAction.apply(f, [
|
|
@@ -754,13 +754,13 @@ var K = at, J = [], tt = [], Z = /* @__PURE__ */ new Map(), Zt = /* @__PURE__ */
|
|
|
754
754
|
}, g(j, "Uid"), j.count = 0, j), ae = {
|
|
755
755
|
left: Ct,
|
|
756
756
|
right: Ot,
|
|
757
|
-
center:
|
|
757
|
+
center: Dt,
|
|
758
758
|
justify: mt
|
|
759
759
|
}, le = /* @__PURE__ */ g(function(t, e, i, a) {
|
|
760
760
|
const { securityLevel: h, sankey: b } = lt(), p = Lt.sankey;
|
|
761
761
|
let k;
|
|
762
|
-
h === "sandbox" && (k =
|
|
763
|
-
const s = h === "sandbox" ?
|
|
762
|
+
h === "sandbox" && (k = X("#i" + e));
|
|
763
|
+
const s = h === "sandbox" ? X(k.nodes()[0].contentDocument.body) : X("body"), o = h === "sandbox" ? s.select(`[id="${e}"]`) : X(`[id="${e}"]`), l = b?.width ?? p.width, _ = b?.height ?? p.width, x = b?.useMaxWidth ?? p.useMaxWidth, y = b?.nodeAlignment ?? p.nodeAlignment, v = b?.prefix ?? p.prefix, M = b?.suffix ?? p.suffix, T = b?.showValues ?? p.showValues, N = a.db.getGraph(), C = ae[y];
|
|
764
764
|
Bt().nodeId((d) => d.id).nodeWidth(10).nodePadding(10 + (T ? 15 : 0)).nodeAlign(C).extent([
|
|
765
765
|
[0, 0],
|
|
766
766
|
[l, _]
|
|
@@ -777,21 +777,21 @@ ${v}${Math.round(E * 100) / 100}${M}` : d, "getText");
|
|
|
777
777
|
const d = B.append("linearGradient").attr("id", (E) => (E.uid = gt.next("linearGradient-")).id).attr("gradientUnits", "userSpaceOnUse").attr("x1", (E) => E.source.x1).attr("x2", (E) => E.target.x0);
|
|
778
778
|
d.append("stop").attr("offset", "0%").attr("stop-color", (E) => S(E.source.id)), d.append("stop").attr("offset", "100%").attr("stop-color", (E) => S(E.target.id));
|
|
779
779
|
}
|
|
780
|
-
let
|
|
780
|
+
let D;
|
|
781
781
|
switch (O) {
|
|
782
782
|
case "gradient":
|
|
783
|
-
|
|
783
|
+
D = /* @__PURE__ */ g((d) => d.uid, "coloring");
|
|
784
784
|
break;
|
|
785
785
|
case "source":
|
|
786
|
-
|
|
786
|
+
D = /* @__PURE__ */ g((d) => S(d.source.id), "coloring");
|
|
787
787
|
break;
|
|
788
788
|
case "target":
|
|
789
|
-
|
|
789
|
+
D = /* @__PURE__ */ g((d) => S(d.target.id), "coloring");
|
|
790
790
|
break;
|
|
791
791
|
default:
|
|
792
|
-
|
|
792
|
+
D = O;
|
|
793
793
|
}
|
|
794
|
-
B.append("path").attr("d", Kt()).attr("stroke",
|
|
794
|
+
B.append("path").attr("d", Kt()).attr("stroke", D).attr("stroke-width", (d) => Math.max(1, d.width)), Et(void 0, o, 0, x);
|
|
795
795
|
}, "draw"), ce = {
|
|
796
796
|
draw: le
|
|
797
797
|
}, ue = /* @__PURE__ */ g((t) => t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g, "").replaceAll(/([\n\r])+/g, `
|