mio-previewer 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{_basePickBy-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 +4556 -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,8 +1,8 @@
|
|
|
1
|
-
import { g as oe } from "./chunk-FMBD7UC4-
|
|
2
|
-
import { _ as d,
|
|
3
|
-
import { c as Le } from "./clone-
|
|
4
|
-
import { G as Se } from "./graph-
|
|
5
|
-
import { c as ke } from "./channel-
|
|
1
|
+
import { g as oe } from "./chunk-FMBD7UC4-Z_IXsR9N.js";
|
|
2
|
+
import { _ as d, I as rt, h as O, i as he, l as L, C as de, E as ge, f as R, am as ue, V as pe, W as fe, S as xe, an as j, ao as Wt, ap as ye, v as $, p as be, aq as we, ar as xt, n as yt, as as me } from "./cursorPlugin-CLM_tkck.js";
|
|
3
|
+
import { c as Le } from "./clone-BrZZgHT6.js";
|
|
4
|
+
import { G as Se } from "./graph-CilVg985.js";
|
|
5
|
+
import { c as ke } from "./channel-CGHeB_wL.js";
|
|
6
6
|
var bt = (function() {
|
|
7
7
|
var e = /* @__PURE__ */ d(function(D, y, g, f) {
|
|
8
8
|
for (g = g || {}, f = D.length; f--; g[D[f]] = y) ;
|
|
@@ -190,7 +190,7 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[F] || F) + "'" : ft =
|
|
|
190
190
|
}
|
|
191
191
|
return !0;
|
|
192
192
|
}, "parse")
|
|
193
|
-
},
|
|
193
|
+
}, C = /* @__PURE__ */ (function() {
|
|
194
194
|
var D = {
|
|
195
195
|
EOF: 1,
|
|
196
196
|
parseError: /* @__PURE__ */ d(function(g, f) {
|
|
@@ -595,19 +595,19 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[F] || F) + "'" : ft =
|
|
|
595
595
|
};
|
|
596
596
|
return D;
|
|
597
597
|
})();
|
|
598
|
-
k.lexer =
|
|
598
|
+
k.lexer = C;
|
|
599
599
|
function _() {
|
|
600
600
|
this.yy = {};
|
|
601
601
|
}
|
|
602
602
|
return d(_, "Parser"), _.prototype = k, k.Parser = _, new _();
|
|
603
603
|
})();
|
|
604
604
|
bt.parser = bt;
|
|
605
|
-
var ve = bt, X = /* @__PURE__ */ new Map(), kt = [], wt = /* @__PURE__ */ new Map(),
|
|
605
|
+
var ve = bt, X = /* @__PURE__ */ new Map(), kt = [], wt = /* @__PURE__ */ new Map(), Ct = "color", Bt = "fill", Ee = "bgFill", Pt = ",", _e = R(), ct = /* @__PURE__ */ new Map(), De = /* @__PURE__ */ d((e) => be.sanitizeText(e, _e), "sanitizeText"), Ne = /* @__PURE__ */ d(function(e, t = "") {
|
|
606
606
|
let a = ct.get(e);
|
|
607
607
|
a || (a = { id: e, styles: [], textStyles: [] }, ct.set(e, a)), t?.split(Pt).forEach((i) => {
|
|
608
608
|
const l = i.replace(/([^;]*);/, "$1").trim();
|
|
609
|
-
if (RegExp(
|
|
610
|
-
const r = l.replace(
|
|
609
|
+
if (RegExp(Ct).exec(i)) {
|
|
610
|
+
const r = l.replace(Bt, Ee).replace(Ct, Bt);
|
|
611
611
|
a.textStyles.push(r);
|
|
612
612
|
}
|
|
613
613
|
a.styles.push(l);
|
|
@@ -615,7 +615,7 @@ var ve = bt, X = /* @__PURE__ */ new Map(), kt = [], wt = /* @__PURE__ */ new Ma
|
|
|
615
615
|
}, "addStyleClass"), Te = /* @__PURE__ */ d(function(e, t = "") {
|
|
616
616
|
const a = X.get(e);
|
|
617
617
|
t != null && (a.styles = t.split(Pt));
|
|
618
|
-
}, "addStyle2Node"),
|
|
618
|
+
}, "addStyle2Node"), Ce = /* @__PURE__ */ d(function(e, t) {
|
|
619
619
|
e.split(",").forEach(function(a) {
|
|
620
620
|
let i = X.get(a);
|
|
621
621
|
if (i === void 0) {
|
|
@@ -634,7 +634,7 @@ var ve = bt, X = /* @__PURE__ */ new Map(), kt = [], wt = /* @__PURE__ */ new Ma
|
|
|
634
634
|
continue;
|
|
635
635
|
}
|
|
636
636
|
if (r.type === "applyClass") {
|
|
637
|
-
|
|
637
|
+
Ce(r.id, r?.styleClass ?? "");
|
|
638
638
|
continue;
|
|
639
639
|
}
|
|
640
640
|
if (r.type === "applyStyles") {
|
|
@@ -659,7 +659,7 @@ var ve = bt, X = /* @__PURE__ */ new Map(), kt = [], wt = /* @__PURE__ */ new Ma
|
|
|
659
659
|
}
|
|
660
660
|
}
|
|
661
661
|
t.children = i;
|
|
662
|
-
}, "populateBlockDatabase"), vt = [], et = { id: "root", type: "composite", children: [], columns: -1 },
|
|
662
|
+
}, "populateBlockDatabase"), vt = [], et = { id: "root", type: "composite", children: [], columns: -1 }, Be = /* @__PURE__ */ d(() => {
|
|
663
663
|
L.debug("Clear called"), de(), et = { id: "root", type: "composite", children: [], columns: -1 }, X = /* @__PURE__ */ new Map([["root", et]]), vt = [], ct = /* @__PURE__ */ new Map(), kt = [], wt = /* @__PURE__ */ new Map();
|
|
664
664
|
}, "clear");
|
|
665
665
|
function Ht(e) {
|
|
@@ -744,7 +744,7 @@ var It = 0, Ie = /* @__PURE__ */ d(() => (It++, "id-" + Math.random().toString(3
|
|
|
744
744
|
setBlock: We,
|
|
745
745
|
getColumns: Re,
|
|
746
746
|
getClasses: Ye,
|
|
747
|
-
clear:
|
|
747
|
+
clear: Be,
|
|
748
748
|
generateId: Ie
|
|
749
749
|
}, Ke = He, nt = /* @__PURE__ */ d((e, t) => {
|
|
750
750
|
const a = ke, i = a(e, "r"), l = a(e, "g"), s = a(e, "b");
|
|
@@ -894,7 +894,7 @@ var It = 0, Ie = /* @__PURE__ */ d(() => (It++, "id-" + Math.random().toString(3
|
|
|
894
894
|
circle: $e,
|
|
895
895
|
cross: tr,
|
|
896
896
|
barb: er
|
|
897
|
-
}, ar = je,
|
|
897
|
+
}, ar = je, B = R()?.block?.padding ?? 8;
|
|
898
898
|
function Ut(e, t) {
|
|
899
899
|
if (e === 0 || !Number.isInteger(e))
|
|
900
900
|
throw new Error("Columns must be an integer !== 0.");
|
|
@@ -952,7 +952,7 @@ function ot(e, t, a = 0, i = 0) {
|
|
|
952
952
|
for (const b of e.children)
|
|
953
953
|
b.size && (L.debug(
|
|
954
954
|
`abc95 Setting size of children of ${e.id} id=${b.id} ${l} ${s} ${JSON.stringify(b.size)}`
|
|
955
|
-
), b.size.width = l * (b.widthInColumns ?? 1) +
|
|
955
|
+
), b.size.width = l * (b.widthInColumns ?? 1) + B * ((b.widthInColumns ?? 1) - 1), b.size.height = s, b.size.x = 0, b.size.y = 0, L.debug(
|
|
956
956
|
`abc95 updating size of ${e.id} children child:${b.id} maxWidth:${l} maxHeight:${s}`
|
|
957
957
|
));
|
|
958
958
|
for (const b of e.children)
|
|
@@ -964,13 +964,13 @@ function ot(e, t, a = 0, i = 0) {
|
|
|
964
964
|
let u = e.children.length;
|
|
965
965
|
n > 0 && n < c && (u = n);
|
|
966
966
|
const o = Math.ceil(c / u);
|
|
967
|
-
let x = u * (l +
|
|
967
|
+
let x = u * (l + B) + B, w = o * (s + B) + B;
|
|
968
968
|
if (x < a) {
|
|
969
969
|
L.debug(
|
|
970
970
|
`Detected to small sibling: abc95 ${e.id} siblingWidth ${a} siblingHeight ${i} width ${x}`
|
|
971
971
|
), x = a, w = i;
|
|
972
|
-
const b = (a - u *
|
|
973
|
-
L.debug("Size indata abc88", e.id, "childWidth", b, "maxWidth", l), L.debug("Size indata abc88", e.id, "childHeight", S, "maxHeight", s), L.debug("Size indata abc88 xSize", u, "padding",
|
|
972
|
+
const b = (a - u * B - B) / u, S = (i - o * B - B) / o;
|
|
973
|
+
L.debug("Size indata abc88", e.id, "childWidth", b, "maxWidth", l), L.debug("Size indata abc88", e.id, "childHeight", S, "maxHeight", s), L.debug("Size indata abc88 xSize", u, "padding", B);
|
|
974
974
|
for (const v of e.children)
|
|
975
975
|
v.size && (v.size.width = b, v.size.height = S, v.size.x = 0, v.size.y = 0);
|
|
976
976
|
}
|
|
@@ -980,7 +980,7 @@ function ot(e, t, a = 0, i = 0) {
|
|
|
980
980
|
x = e?.size?.width || 0;
|
|
981
981
|
const b = n > 0 ? Math.min(e.children.length, n) : e.children.length;
|
|
982
982
|
if (b > 0) {
|
|
983
|
-
const S = (x - b *
|
|
983
|
+
const S = (x - b * B - B) / b;
|
|
984
984
|
L.debug("abc95 (growing to fit) width", e.id, x, e.size?.width, S);
|
|
985
985
|
for (const v of e.children)
|
|
986
986
|
v.size && (v.size.width = S);
|
|
@@ -1010,24 +1010,24 @@ function Et(e, t) {
|
|
|
1010
1010
|
const a = e.columns ?? -1;
|
|
1011
1011
|
if (L.debug("layoutBlocks columns abc95", e.id, "=>", a, e), e.children && // find max width of children
|
|
1012
1012
|
e.children.length > 0) {
|
|
1013
|
-
const i = e?.children[0]?.size?.width ?? 0, l = e.children.length * i + (e.children.length - 1) *
|
|
1013
|
+
const i = e?.children[0]?.size?.width ?? 0, l = e.children.length * i + (e.children.length - 1) * B;
|
|
1014
1014
|
L.debug("widthOfChildren 88", l, "posX");
|
|
1015
1015
|
let s = 0;
|
|
1016
1016
|
L.debug("abc91 block?.size?.x", e.id, e?.size?.x);
|
|
1017
|
-
let r = e?.size?.x ? e?.size?.x + (-e?.size?.width / 2 || 0) : -
|
|
1017
|
+
let r = e?.size?.x ? e?.size?.x + (-e?.size?.width / 2 || 0) : -B, n = 0;
|
|
1018
1018
|
for (const c of e.children) {
|
|
1019
1019
|
const u = e;
|
|
1020
1020
|
if (!c.size)
|
|
1021
1021
|
continue;
|
|
1022
1022
|
const { width: o, height: x } = c.size, { px: w, py: b } = Ut(a, s);
|
|
1023
|
-
if (b != n && (n = b, r = e?.size?.x ? e?.size?.x + (-e?.size?.width / 2 || 0) : -
|
|
1024
|
-
`abc89 layout blocks (child) id: ${c.id} Pos: ${s} (px, py) ${w},${b} (${u?.size?.x},${u?.size?.y}) parent: ${u.id} width: ${o}${
|
|
1023
|
+
if (b != n && (n = b, r = e?.size?.x ? e?.size?.x + (-e?.size?.width / 2 || 0) : -B, L.debug("New row in layout for block", e.id, " and child ", c.id, n)), L.debug(
|
|
1024
|
+
`abc89 layout blocks (child) id: ${c.id} Pos: ${s} (px, py) ${w},${b} (${u?.size?.x},${u?.size?.y}) parent: ${u.id} width: ${o}${B}`
|
|
1025
1025
|
), u.size) {
|
|
1026
1026
|
const v = o / 2;
|
|
1027
|
-
c.size.x = r +
|
|
1028
|
-
`abc91 layout blocks (calc) px, pyid:${c.id} startingPos=X${r} new startingPosX${c.size.x} ${v} padding=${
|
|
1029
|
-
), r = c.size.x + v, c.size.y = u.size.y - u.size.height / 2 + b * (x +
|
|
1030
|
-
`abc88 layout blocks (calc) px, pyid:${c.id}startingPosX${r}${
|
|
1027
|
+
c.size.x = r + B + v, L.debug(
|
|
1028
|
+
`abc91 layout blocks (calc) px, pyid:${c.id} startingPos=X${r} new startingPosX${c.size.x} ${v} padding=${B} width=${o} halfWidth=${v} => x:${c.size.x} y:${c.size.y} ${c.widthInColumns} (width * (child?.w || 1)) / 2 ${o * (c?.widthInColumns ?? 1) / 2}`
|
|
1029
|
+
), r = c.size.x + v, c.size.y = u.size.y - u.size.height / 2 + b * (x + B) + x / 2 + B, L.debug(
|
|
1030
|
+
`abc88 layout blocks (calc) px, pyid:${c.id}startingPosX${r}${B}${v}=>x:${c.size.x}y:${c.size.y}${c.widthInColumns}(width * (child?.w || 1)) / 2${o * (c?.widthInColumns ?? 1) / 2}`
|
|
1031
1031
|
);
|
|
1032
1032
|
}
|
|
1033
1033
|
c.children && Et(c);
|
|
@@ -1297,9 +1297,9 @@ var or = /* @__PURE__ */ d((e, t) => {
|
|
|
1297
1297
|
k += " edge-pattern-dashed";
|
|
1298
1298
|
break;
|
|
1299
1299
|
}
|
|
1300
|
-
const
|
|
1300
|
+
const C = e.append("path").attr("d", v(x)).attr("id", a.id).attr("class", " " + k + (a.classes ? " " + a.classes : "")).attr("style", a.style);
|
|
1301
1301
|
let _ = "";
|
|
1302
|
-
(R().flowchart.arrowMarkerAbsolute || R().state.arrowMarkerAbsolute) && (_ = xe(!0)), nr(
|
|
1302
|
+
(R().flowchart.arrowMarkerAbsolute || R().state.arrowMarkerAbsolute) && (_ = xe(!0)), nr(C, a, _, r, l);
|
|
1303
1303
|
let D = {};
|
|
1304
1304
|
return c && (D.updatedPath = n), D.originalPath = a.points, D;
|
|
1305
1305
|
}, "insertEdge"), ur = /* @__PURE__ */ d((e) => {
|
|
@@ -1469,9 +1469,9 @@ function Jt(e, t, a) {
|
|
|
1469
1469
|
d(Jt, "intersectCircle");
|
|
1470
1470
|
var xr = Jt;
|
|
1471
1471
|
function Qt(e, t, a, i) {
|
|
1472
|
-
var l, s, r, n, c, u, o, x, w, b, S, v, k,
|
|
1472
|
+
var l, s, r, n, c, u, o, x, w, b, S, v, k, C, _;
|
|
1473
1473
|
if (l = t.y - e.y, r = e.x - t.x, c = t.x * e.y - e.x * t.y, w = l * a.x + r * a.y + c, b = l * i.x + r * i.y + c, !(w !== 0 && b !== 0 && St(w, b)) && (s = i.y - a.y, n = a.x - i.x, u = i.x * a.y - a.x * i.y, o = s * e.x + n * e.y + u, x = s * t.x + n * t.y + u, !(o !== 0 && x !== 0 && St(o, x)) && (S = l * n - s * r, S !== 0)))
|
|
1474
|
-
return v = Math.abs(S / 2), k = r * u - n * c,
|
|
1474
|
+
return v = Math.abs(S / 2), k = r * u - n * c, C = k < 0 ? (k - v) / S : (k + v) / S, k = s * c - l * u, _ = k < 0 ? (k - v) / S : (k + v) / S, { x: C, y: _ };
|
|
1475
1475
|
}
|
|
1476
1476
|
d(Qt, "intersectLine");
|
|
1477
1477
|
function St(e, t) {
|
|
@@ -1494,7 +1494,7 @@ function $t(e, t, a) {
|
|
|
1494
1494
|
b && s.push(b);
|
|
1495
1495
|
}
|
|
1496
1496
|
return s.length ? (s.length > 1 && s.sort(function(S, v) {
|
|
1497
|
-
var k = S.x - a.x,
|
|
1497
|
+
var k = S.x - a.x, C = S.y - a.y, _ = Math.sqrt(k * k + C * C), D = v.x - a.x, y = v.y - a.y, g = Math.sqrt(D * D + y * y);
|
|
1498
1498
|
return _ < g ? -1 : _ === g ? 0 : 1;
|
|
1499
1499
|
}), s[0]) : e;
|
|
1500
1500
|
}
|
|
@@ -1540,12 +1540,12 @@ var wr = /* @__PURE__ */ d((e, t) => {
|
|
|
1540
1540
|
if (j(l.flowchart.htmlLabels)) {
|
|
1541
1541
|
const S = x.children[0], v = O(x), k = S.getElementsByTagName("img");
|
|
1542
1542
|
if (k) {
|
|
1543
|
-
const
|
|
1543
|
+
const C = u.replace(/<img[^>]*>/g, "").trim() === "";
|
|
1544
1544
|
await Promise.all(
|
|
1545
1545
|
[...k].map(
|
|
1546
1546
|
(_) => new Promise((D) => {
|
|
1547
1547
|
function y() {
|
|
1548
|
-
if (_.style.display = "flex", _.style.flexDirection = "column",
|
|
1548
|
+
if (_.style.display = "flex", _.style.flexDirection = "column", C) {
|
|
1549
1549
|
const g = l.fontSize ? l.fontSize : window.getComputedStyle(document.body).fontSize, m = parseInt(g, 10) * 5 + "px";
|
|
1550
1550
|
_.style.minWidth = m, _.style.maxWidth = m;
|
|
1551
1551
|
} else
|
|
@@ -1700,7 +1700,7 @@ var Lr = /* @__PURE__ */ d(async (e, t) => {
|
|
|
1700
1700
|
return n.attr("style", t.style), T(t, n), t.intersect = function(c) {
|
|
1701
1701
|
return N.polygon(t, r, c);
|
|
1702
1702
|
}, a;
|
|
1703
|
-
}, "trapezoid"),
|
|
1703
|
+
}, "trapezoid"), Cr = /* @__PURE__ */ d(async (e, t) => {
|
|
1704
1704
|
const { shapeSvg: a, bbox: i } = await A(
|
|
1705
1705
|
e,
|
|
1706
1706
|
t,
|
|
@@ -1715,7 +1715,7 @@ var Lr = /* @__PURE__ */ d(async (e, t) => {
|
|
|
1715
1715
|
return n.attr("style", t.style), T(t, n), t.intersect = function(c) {
|
|
1716
1716
|
return N.polygon(t, r, c);
|
|
1717
1717
|
}, a;
|
|
1718
|
-
}, "inv_trapezoid"),
|
|
1718
|
+
}, "inv_trapezoid"), Br = /* @__PURE__ */ d(async (e, t) => {
|
|
1719
1719
|
const { shapeSvg: a, bbox: i } = await A(
|
|
1720
1720
|
e,
|
|
1721
1721
|
t,
|
|
@@ -1921,12 +1921,12 @@ var Ar = /* @__PURE__ */ d(async (e, t) => {
|
|
|
1921
1921
|
const w = r.insert("g").attr("class", "label");
|
|
1922
1922
|
let b = 0;
|
|
1923
1923
|
const S = t.classData.annotations?.[0], v = t.classData.annotations[0] ? "«" + t.classData.annotations[0] + "»" : "", k = w.node().appendChild(await K(v, t.labelStyle, !0, !0));
|
|
1924
|
-
let
|
|
1924
|
+
let C = k.getBBox();
|
|
1925
1925
|
if (j(R().flowchart.htmlLabels)) {
|
|
1926
1926
|
const E = k.children[0], h = O(k);
|
|
1927
|
-
|
|
1927
|
+
C = E.getBoundingClientRect(), h.attr("width", C.width), h.attr("height", C.height);
|
|
1928
1928
|
}
|
|
1929
|
-
t.classData.annotations[0] && (x +=
|
|
1929
|
+
t.classData.annotations[0] && (x += C.height + i, o += C.width);
|
|
1930
1930
|
let _ = t.classData.label;
|
|
1931
1931
|
t.classData.type !== void 0 && t.classData.type !== "" && (R().flowchart.htmlLabels ? _ += "<" + t.classData.type + ">" : _ += "<" + t.classData.type + ">");
|
|
1932
1932
|
const D = w.node().appendChild(await K(_, t.labelStyle, !0, !0));
|
|
@@ -1977,11 +1977,11 @@ var Ar = /* @__PURE__ */ d(async (e, t) => {
|
|
|
1977
1977
|
}
|
|
1978
1978
|
I.width > o && (o = I.width), x += I.height + i, f.push(p);
|
|
1979
1979
|
}), x += l, S) {
|
|
1980
|
-
let E = (o -
|
|
1980
|
+
let E = (o - C.width) / 2;
|
|
1981
1981
|
O(k).attr(
|
|
1982
1982
|
"transform",
|
|
1983
1983
|
"translate( " + (-1 * o / 2 + E) + ", " + -1 * x / 2 + ")"
|
|
1984
|
-
), b =
|
|
1984
|
+
), b = C.height + i;
|
|
1985
1985
|
}
|
|
1986
1986
|
let m = (o - y.width) / 2;
|
|
1987
1987
|
return O(D).attr(
|
|
@@ -2021,8 +2021,8 @@ var Ar = /* @__PURE__ */ d(async (e, t) => {
|
|
|
2021
2021
|
lean_right: Dr,
|
|
2022
2022
|
lean_left: Nr,
|
|
2023
2023
|
trapezoid: Tr,
|
|
2024
|
-
inv_trapezoid:
|
|
2025
|
-
rect_right_inv_arrow:
|
|
2024
|
+
inv_trapezoid: Cr,
|
|
2025
|
+
rect_right_inv_arrow: Br,
|
|
2026
2026
|
cylinder: Ir,
|
|
2027
2027
|
start: Yr,
|
|
2028
2028
|
end: Hr,
|
|
@@ -2241,7 +2241,7 @@ var Ur = /* @__PURE__ */ d(function(e, t) {
|
|
|
2241
2241
|
await ae(S, x, r);
|
|
2242
2242
|
const v = jt(r);
|
|
2243
2243
|
if (await se(S, x, r), await ie(S, b, w, r, t), v) {
|
|
2244
|
-
const k = v,
|
|
2244
|
+
const k = v, C = Math.max(1, Math.round(0.125 * (k.width / k.height))), _ = k.height + C + 10, D = k.width + 10, { useMaxWidth: y } = s;
|
|
2245
2245
|
he(u, _, D, !!y), L.debug("Here Bounds", v, k), u.attr(
|
|
2246
2246
|
"viewBox",
|
|
2247
2247
|
`${k.x - 5} ${k.y - 5} ${k.width + 10} ${k.height + 10}`
|