@aiquants/markdown 10.0.0 → 11.0.1
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 +157 -51
- package/dist/{abnfDiagram-VRR7QNED-eurBMDzU.cjs → abnfDiagram-VRR7QNED-CGbpxxTZ.cjs} +1 -1
- package/dist/{abnfDiagram-VRR7QNED-CYA0Qdic.js → abnfDiagram-VRR7QNED-Cgd_ClOa.js} +3 -3
- package/dist/{arc-DE0KP7Dq.cjs → arc-83PgiFkI.cjs} +1 -1
- package/dist/{arc-BEWKpekE.js → arc-B6YeA1yq.js} +20 -20
- package/dist/{architectureDiagram-ZJ3FMSHR-CGhHOaMo.cjs → architectureDiagram-ZJ3FMSHR-CbKT84Qu.cjs} +1 -1
- package/dist/{architectureDiagram-ZJ3FMSHR-CHGNHywO.js → architectureDiagram-ZJ3FMSHR-DUyxO_OT.js} +2 -2
- package/dist/{blockDiagram-677ZJIJ3-DzwYMqTi.js → blockDiagram-677ZJIJ3-BGRgY0Jq.js} +3 -3
- package/dist/{blockDiagram-677ZJIJ3-BaGVzolE.cjs → blockDiagram-677ZJIJ3-KhRxVKIG.cjs} +1 -1
- package/dist/{c4Diagram-LMCZKHZV-u10-6vWB.cjs → c4Diagram-LMCZKHZV-DKwEMXl5.cjs} +1 -1
- package/dist/{c4Diagram-LMCZKHZV-DN0oBwXJ.js → c4Diagram-LMCZKHZV-DNyEsvRI.js} +2 -2
- package/dist/{channel-DNeAktxT.cjs → channel-BwAxLUKJ.cjs} +1 -1
- package/dist/{channel-jBqxYlqx.js → channel-CPuos4DK.js} +1 -1
- package/dist/{chunk-2Q5K7J3B-CtqZCJKT.js → chunk-2Q5K7J3B-CwNIIf2z.js} +1 -1
- package/dist/{chunk-2Q5K7J3B-D1zCIQMT.cjs → chunk-2Q5K7J3B-ueL9YXgS.cjs} +1 -1
- package/dist/{chunk-32BRIVSS-Cana8p5k.js → chunk-32BRIVSS-4GH9FvG2.js} +1 -1
- package/dist/{chunk-32BRIVSS-DOd1kGZA.cjs → chunk-32BRIVSS-CyqPFuo9.cjs} +1 -1
- package/dist/{chunk-5VM5RSS4-DVLwboqR.cjs → chunk-5VM5RSS4-B9y1bN8p.cjs} +1 -1
- package/dist/{chunk-5VM5RSS4-CQ1lkhhT.js → chunk-5VM5RSS4-C5Js9nxl.js} +1 -1
- package/dist/{chunk-EX3LRPZG-Cb1jrGLX.js → chunk-EX3LRPZG-BZcvojz_.js} +4 -4
- package/dist/{chunk-EX3LRPZG-yCnsFHxB.cjs → chunk-EX3LRPZG-CmfR2Me0.cjs} +1 -1
- package/dist/{chunk-JWPE2WC7-BZ9nUeyl.cjs → chunk-JWPE2WC7-C-ypCY3I.cjs} +1 -1
- package/dist/{chunk-JWPE2WC7-Bkx-q_31.js → chunk-JWPE2WC7-CtaWl_b_.js} +1 -1
- package/dist/{chunk-MOJQB5TN-DDpWrhot.js → chunk-MOJQB5TN-01G2RIVR.js} +10 -10
- package/dist/{chunk-MOJQB5TN-DF1lwGu5.cjs → chunk-MOJQB5TN-BwSAskm8.cjs} +1 -1
- package/dist/{chunk-PUDLZKDR-BTWY1yiQ.js → chunk-PUDLZKDR-CnpC3xcz.js} +6 -6
- package/dist/{chunk-PUDLZKDR-BNRDFRXe.cjs → chunk-PUDLZKDR-D2o-M0Rj.cjs} +1 -1
- package/dist/{chunk-RYQCIY6F-B7L5EllI.js → chunk-RYQCIY6F-BJxwuEX_.js} +12 -12
- package/dist/{chunk-RYQCIY6F-B1obSV-6.cjs → chunk-RYQCIY6F-sv402gFf.cjs} +1 -1
- package/dist/{chunk-V7JOEXUC-Bm_JiVZ3.js → chunk-V7JOEXUC-CAVk2pKT.js} +15 -15
- package/dist/{chunk-V7JOEXUC-CvWipsVi.cjs → chunk-V7JOEXUC-gP3tRqcD.cjs} +1 -1
- package/dist/{chunk-VR4S4FIN-4KrGYB-C.js → chunk-VR4S4FIN-BVOrMLGd.js} +3 -3
- package/dist/{chunk-VR4S4FIN-hwPR--n9.cjs → chunk-VR4S4FIN-N9b38pB9.cjs} +1 -1
- package/dist/{chunk-XXDRQBXY-BWyzGhER.js → chunk-XXDRQBXY-QR32cWjB.js} +1 -1
- package/dist/{chunk-XXDRQBXY-8mWP2-nt.cjs → chunk-XXDRQBXY-rk2BF2-a.cjs} +1 -1
- package/dist/{classDiagram-OUVF2IWQ-FSF9UhMj.cjs → classDiagram-OUVF2IWQ-CiKDmY89.cjs} +1 -1
- package/dist/{classDiagram-v2-EOCWNBFH-CJsS9hMZ.js → classDiagram-OUVF2IWQ-DWLi6mnu.js} +2 -2
- package/dist/{classDiagram-v2-EOCWNBFH-FSF9UhMj.cjs → classDiagram-v2-EOCWNBFH-CiKDmY89.cjs} +1 -1
- package/dist/{classDiagram-OUVF2IWQ-CJsS9hMZ.js → classDiagram-v2-EOCWNBFH-DWLi6mnu.js} +2 -2
- package/dist/code-blocks-Bax5Xik7.cjs +4 -0
- package/dist/code-blocks-bgwDIVp1.js +267 -0
- package/dist/code-blocks.cjs +1 -1
- package/dist/code-blocks.d.ts +15 -1
- package/dist/code-blocks.js +19 -34
- package/dist/components/SpreadsheetBlock.d.ts +7 -2
- package/dist/components/SpreadsheetToolbar.d.ts +20 -2
- package/dist/components/blockKeys.d.ts +14 -0
- package/dist/components/controlStyles.d.ts +2 -1
- package/dist/components/spreadsheetClipboard.d.ts +1 -1
- package/dist/components/spreadsheetLabels.d.ts +13 -0
- package/dist/components/spreadsheetModel.d.ts +13 -8
- package/dist/components/toolbar.d.ts +25 -0
- package/dist/components/viewerLabels.d.ts +5 -2
- package/dist/converter.wasm +0 -0
- package/dist/{cose-bilkent-JH36ORCC-DWibrsnW.cjs → cose-bilkent-JH36ORCC-DLL-HoNB.cjs} +1 -1
- package/dist/{cose-bilkent-JH36ORCC-BcC-Wwam.js → cose-bilkent-JH36ORCC-Ndnjy2V_.js} +5 -5
- package/dist/{cynefinDiagram-TSTJHNR4-Cp1h2-e6.cjs → cynefinDiagram-TSTJHNR4-BLc8lpj_.cjs} +1 -1
- package/dist/{cynefinDiagram-TSTJHNR4-Cg1ddgeH.js → cynefinDiagram-TSTJHNR4-CzQeK-ei.js} +47 -47
- package/dist/{dagre-VKFMJZFB-BUh2zhjI.js → dagre-VKFMJZFB-BDWsqPrH.js} +20 -20
- package/dist/{dagre-VKFMJZFB-Czh6c6hy.cjs → dagre-VKFMJZFB-CpOLJSPF.cjs} +1 -1
- package/dist/{diagram-FQU43EPY-D3B1dqU1.cjs → diagram-FQU43EPY-BYwso-90.cjs} +1 -1
- package/dist/{diagram-FQU43EPY-BtWgv1di.js → diagram-FQU43EPY-DomkDZpC.js} +2 -2
- package/dist/{diagram-G47NLZAW-BzoAXzcD.js → diagram-G47NLZAW-B88unx9N.js} +38 -38
- package/dist/{diagram-G47NLZAW-1CaqVF7V.cjs → diagram-G47NLZAW-CJvutqnO.cjs} +1 -1
- package/dist/{diagram-NH7WQ7WH-SP-bC7ec.cjs → diagram-NH7WQ7WH-B7_b2WAg.cjs} +1 -1
- package/dist/{diagram-NH7WQ7WH-DHYXjMeR.js → diagram-NH7WQ7WH-c9X1ONTP.js} +20 -20
- package/dist/{diagram-OA4YK3LP-Dpb_X5Hh.js → diagram-OA4YK3LP-ClopZbjk.js} +58 -58
- package/dist/{diagram-OA4YK3LP-GQmeRf1O.cjs → diagram-OA4YK3LP-Dgf5KLVb.cjs} +1 -1
- package/dist/{diagram-WEI45ONY-Dtt-2TEo.cjs → diagram-WEI45ONY-CFk-zdkR.cjs} +1 -1
- package/dist/{diagram-WEI45ONY-21kWbraV.js → diagram-WEI45ONY-Ps4TgzF1.js} +10 -10
- package/dist/{ebnfDiagram-CCIWWBDH-yz62J_nS.cjs → ebnfDiagram-CCIWWBDH-CQCWsevA.cjs} +1 -1
- package/dist/{ebnfDiagram-CCIWWBDH-DAA7ae1D.js → ebnfDiagram-CCIWWBDH-Cj_QjqN9.js} +5 -5
- package/dist/{erDiagram-Q63AITRT-BMkAjnh7.js → erDiagram-Q63AITRT-B8HuBKwU.js} +9 -9
- package/dist/{erDiagram-Q63AITRT-D8yJBZGU.cjs → erDiagram-Q63AITRT-BzYknHNb.cjs} +1 -1
- package/dist/extractHeadings-CbjPphbm.cjs +315 -0
- package/dist/{extractHeadings-BB6ZLvWu.js → extractHeadings-Crd19E9z.js} +8430 -8099
- package/dist/fencedBlockLines.d.ts +36 -0
- package/dist/flowDiagram-23GEKE2U-BIiIKtPl.cjs +1 -0
- package/dist/flowDiagram-23GEKE2U-CL3q35kI.js +7 -0
- package/dist/{ganttDiagram-NO4QXBWP-NrdWH7Dz.cjs → ganttDiagram-NO4QXBWP-DmOJTDey.cjs} +1 -1
- package/dist/{ganttDiagram-NO4QXBWP-BGIvTWCj.js → ganttDiagram-NO4QXBWP-ssf7C_OK.js} +2 -2
- package/dist/{gitGraphDiagram-IHSO6WYX-zLZeezJ0.cjs → gitGraphDiagram-IHSO6WYX-BXw0xce8.cjs} +1 -1
- package/dist/{gitGraphDiagram-IHSO6WYX-FeuQFvfT.js → gitGraphDiagram-IHSO6WYX-DO-7gHh9.js} +10 -10
- package/dist/index.cjs +1 -1
- package/dist/index.client.cjs +1 -1
- package/dist/index.client.d.ts +2 -2
- package/dist/index.client.js +37 -35
- package/dist/index.js +37 -35
- package/dist/{infoDiagram-FWYZ7A6U-_dgzOtXg.cjs → infoDiagram-FWYZ7A6U-C_qI_jda.cjs} +1 -1
- package/dist/{infoDiagram-FWYZ7A6U-OSG1m3oM.js → infoDiagram-FWYZ7A6U-D9CHdCHO.js} +1 -1
- package/dist/{ishikawaDiagram-FXEZZL3T-CzWd0QMP.js → ishikawaDiagram-FXEZZL3T-B-P0YpVr.js} +25 -25
- package/dist/{ishikawaDiagram-FXEZZL3T-DIGB3OT_.cjs → ishikawaDiagram-FXEZZL3T-BsAmXBFz.cjs} +1 -1
- package/dist/{journeyDiagram-5HDEW3XC-DkxVricX.cjs → journeyDiagram-5HDEW3XC-3vpGGLSR.cjs} +1 -1
- package/dist/{journeyDiagram-5HDEW3XC-BE0OaqTn.js → journeyDiagram-5HDEW3XC-BReIo-v3.js} +4 -4
- package/dist/{kanban-definition-HUTT4EX6-XxRDkcBx.cjs → kanban-definition-HUTT4EX6-CgVNbmAG.cjs} +1 -1
- package/dist/{kanban-definition-HUTT4EX6-BDfhy8eh.js → kanban-definition-HUTT4EX6-DKqZmd21.js} +52 -52
- package/dist/{linear-O4EBzkc8.js → linear-BZclxiW5.js} +5 -5
- package/dist/{linear-cHCVVFP4.cjs → linear-C6Pl8W7F.cjs} +1 -1
- package/dist/{mindmap-definition-LN4V7U3C-b3-6eyyt.cjs → mindmap-definition-LN4V7U3C-CRGWlSrN.cjs} +1 -1
- package/dist/{mindmap-definition-LN4V7U3C-D0hxpmbu.js → mindmap-definition-LN4V7U3C-suiDe0CR.js} +16 -16
- package/dist/{pegDiagram-2B236MQR-RJV3Czqa.js → pegDiagram-2B236MQR-CNg0sJ5j.js} +3 -3
- package/dist/{pegDiagram-2B236MQR-BK7uPEAB.cjs → pegDiagram-2B236MQR-DXTBiaER.cjs} +1 -1
- package/dist/{pieDiagram-ENE6RG2P-DZfsigd-.js → pieDiagram-ENE6RG2P-BjxQd0El.js} +51 -51
- package/dist/{pieDiagram-ENE6RG2P-C_36fpnW.cjs → pieDiagram-ENE6RG2P-Pm5hFcS9.cjs} +1 -1
- package/dist/{quadrantDiagram-ABIIQ3AL-CSp5iqoU.js → quadrantDiagram-ABIIQ3AL-CbhdFi8L.js} +43 -43
- package/dist/{quadrantDiagram-ABIIQ3AL-vgf1WShL.cjs → quadrantDiagram-ABIIQ3AL-Cn9jg0Nj.cjs} +1 -1
- package/dist/{railroadDiagram-RFXS5EU6-BXR0a-Cu.cjs → railroadDiagram-RFXS5EU6-BsgUwAcz.cjs} +1 -1
- package/dist/{railroadDiagram-RFXS5EU6-DAsVQQFP.js → railroadDiagram-RFXS5EU6-DQZDzmuH.js} +7 -7
- package/dist/{requirementDiagram-TGXJPOKE-DwIrkBKf.js → requirementDiagram-TGXJPOKE-B6qkEWAq.js} +18 -18
- package/dist/{requirementDiagram-TGXJPOKE-CRhfuc9R.cjs → requirementDiagram-TGXJPOKE-Bb7-fVzh.cjs} +1 -1
- package/dist/{sankeyDiagram-HTMAVEWB-C78HhAJS.js → sankeyDiagram-HTMAVEWB-B0lfTQm7.js} +1 -1
- package/dist/{sankeyDiagram-HTMAVEWB-BMWqqmDK.cjs → sankeyDiagram-HTMAVEWB-D_i8qvPc.cjs} +1 -1
- package/dist/{sequenceDiagram-DBY2YBRQ-Dx5x59tf.cjs → sequenceDiagram-DBY2YBRQ-Cis-Rynd.cjs} +1 -1
- package/dist/{sequenceDiagram-DBY2YBRQ-CnzaQ_rF.js → sequenceDiagram-DBY2YBRQ-hK_KsgkL.js} +3 -3
- package/dist/{sizeCapture-X5ZJPWSS-C_iDBgb-.cjs → sizeCapture-X5ZJPWSS-63py1Km1.cjs} +1 -1
- package/dist/{sizeCapture-X5ZJPWSS-cE-TP8Rj.js → sizeCapture-X5ZJPWSS-CmMBsApW.js} +1 -1
- package/dist/{stateDiagram-2N3HPSRC-CGTBi2mx.cjs → stateDiagram-2N3HPSRC-DunX61Hp.cjs} +1 -1
- package/dist/{stateDiagram-2N3HPSRC-BCeQQ1y6.js → stateDiagram-2N3HPSRC-iHHDXYiT.js} +10 -10
- package/dist/{stateDiagram-v2-6OUMAXLB-B_7vWqQA.js → stateDiagram-v2-6OUMAXLB-BGf7WS-h.js} +2 -2
- package/dist/{stateDiagram-v2-6OUMAXLB-CxTcyveK.cjs → stateDiagram-v2-6OUMAXLB-Cm5Vjes-.cjs} +1 -1
- package/dist/styles/markdown.css +1 -1
- package/dist/styles/markdown.standalone.css +1 -1
- package/dist/{swimlanes-5IMT3BWC-DoVEQSsm.cjs → swimlanes-5IMT3BWC-BJ1u6dlg.cjs} +1 -1
- package/dist/{swimlanes-5IMT3BWC-BGZ4AqRG.js → swimlanes-5IMT3BWC-Dlxdol7t.js} +313 -313
- package/dist/{swimlanesDiagram-G3AALYLV-CQG6O6Ws.cjs → swimlanesDiagram-G3AALYLV-BJUZ0yd-.cjs} +1 -1
- package/dist/{swimlanesDiagram-G3AALYLV-D1qctaY1.js → swimlanesDiagram-G3AALYLV-DhG6vFeB.js} +2 -2
- package/dist/{timeline-definition-FHXFAJF6-D7mCctKM.js → timeline-definition-FHXFAJF6-BpNpgP_f.js} +108 -108
- package/dist/{timeline-definition-FHXFAJF6-DfJV7kEg.cjs → timeline-definition-FHXFAJF6-CC5nYPoS.cjs} +1 -1
- package/dist/{vennDiagram-L72KCM5P-JBAs3wKP.cjs → vennDiagram-L72KCM5P-B3PoRUuk.cjs} +1 -1
- package/dist/{vennDiagram-L72KCM5P-DpoGG-0p.js → vennDiagram-L72KCM5P-BUO57UaZ.js} +101 -101
- package/dist/{wardleyDiagram-EHGQE667-QdkaDYYo.cjs → wardleyDiagram-EHGQE667-BF8VCIge.cjs} +1 -1
- package/dist/{wardleyDiagram-EHGQE667-Dy-eaRgv.js → wardleyDiagram-EHGQE667-Bp6gS0HT.js} +85 -85
- package/dist/{xychartDiagram-FW5EYKEG-BRirBzDB.cjs → xychartDiagram-FW5EYKEG-C15kZN0r.cjs} +1 -1
- package/dist/{xychartDiagram-FW5EYKEG-DosIK9IK.js → xychartDiagram-FW5EYKEG-CBQgXLz_.js} +40 -40
- package/package.json +10 -10
- package/dist/extractHeadings-GvfJwNxO.cjs +0 -314
- package/dist/flowDiagram-23GEKE2U-BZcpYPK4.js +0 -7
- package/dist/flowDiagram-23GEKE2U-CeCAObAc.cjs +0 -1
package/dist/{swimlanesDiagram-G3AALYLV-CQG6O6Ws.cjs → swimlanesDiagram-G3AALYLV-BJUZ0yd-.cjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./chunk-PUDLZKDR-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./chunk-PUDLZKDR-D2o-M0Rj.cjs"),r=require("./extractHeadings-CbjPphbm.cjs");var a=r.__name(e=>`${t.styles_default(e)}
|
|
2
2
|
.swimlane.cluster rect {
|
|
3
3
|
stroke: ${e.clusterBorder} !important;
|
|
4
4
|
}
|
package/dist/{swimlanesDiagram-G3AALYLV-D1qctaY1.js → swimlanesDiagram-G3AALYLV-DhG6vFeB.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as t, s as a } from "./chunk-PUDLZKDR-
|
|
2
|
-
import { _ as r } from "./extractHeadings-
|
|
1
|
+
import { c as t, s as a } from "./chunk-PUDLZKDR-CnpC3xcz.js";
|
|
2
|
+
import { _ as r } from "./extractHeadings-Crd19E9z.js";
|
|
3
3
|
var s = /* @__PURE__ */ r((e) => `${a(e)}
|
|
4
4
|
.swimlane.cluster rect {
|
|
5
5
|
stroke: ${e.clusterBorder} !important;
|
package/dist/{timeline-definition-FHXFAJF6-D7mCctKM.js → timeline-definition-FHXFAJF6-BpNpgP_f.js}
RENAMED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { _ as o,
|
|
2
|
-
import { d as ot } from "./arc-
|
|
1
|
+
import { _ as o, ah as gt, az as Rt, aA as Ct, aB as Wt, O as pt, R as E, am as Pt, aq as Bt, aC as ft, Q as U, ag as Vt, aD as Ft, ad as zt } from "./extractHeadings-Crd19E9z.js";
|
|
2
|
+
import { d as ot } from "./arc-B6YeA1yq.js";
|
|
3
3
|
var tt = (function() {
|
|
4
4
|
var e = /* @__PURE__ */ o(function(k, s, d, l) {
|
|
5
5
|
for (d = d || {}, l = k.length; l--; d[k[l]] = s) ;
|
|
6
6
|
return d;
|
|
7
|
-
}, "o"), t = [6, 11, 13, 14, 15, 17, 19, 20, 23, 24], n = [1, 12], i = [1, 13], r = [1, 14], h = [1, 15], c = [1, 16], a = [1, 19], f = [1, 20],
|
|
7
|
+
}, "o"), t = [6, 11, 13, 14, 15, 17, 19, 20, 23, 24], n = [1, 12], i = [1, 13], r = [1, 14], h = [1, 15], c = [1, 16], a = [1, 19], f = [1, 20], p = {
|
|
8
8
|
trace: /* @__PURE__ */ o(function() {
|
|
9
9
|
}, "trace"),
|
|
10
10
|
yy: {},
|
|
11
11
|
symbols_: { error: 2, start: 3, timeline_header: 4, document: 5, EOF: 6, timeline: 7, timeline_lr: 8, timeline_td: 9, line: 10, SPACE: 11, statement: 12, NEWLINE: 13, title: 14, acc_title: 15, acc_title_value: 16, acc_descr: 17, acc_descr_value: 18, acc_descr_multiline_value: 19, section: 20, period_statement: 21, event_statement: 22, period: 23, event: 24, $accept: 0, $end: 1 },
|
|
12
12
|
terminals_: { 2: "error", 6: "EOF", 7: "timeline", 8: "timeline_lr", 9: "timeline_td", 11: "SPACE", 13: "NEWLINE", 14: "title", 15: "acc_title", 16: "acc_title_value", 17: "acc_descr", 18: "acc_descr_value", 19: "acc_descr_multiline_value", 20: "section", 23: "period", 24: "event" },
|
|
13
13
|
productions_: [0, [3, 3], [4, 1], [4, 1], [4, 1], [5, 0], [5, 2], [10, 2], [10, 1], [10, 1], [10, 1], [12, 1], [12, 2], [12, 2], [12, 1], [12, 1], [12, 1], [12, 1], [21, 1], [22, 1]],
|
|
14
|
-
performAction: /* @__PURE__ */ o(function(s, d, l,
|
|
14
|
+
performAction: /* @__PURE__ */ o(function(s, d, l, g, x, u, S) {
|
|
15
15
|
var v = u.length - 1;
|
|
16
16
|
switch (x) {
|
|
17
17
|
case 1:
|
|
18
18
|
return u[v - 1];
|
|
19
19
|
case 3:
|
|
20
|
-
|
|
20
|
+
g.setDirection("LR");
|
|
21
21
|
break;
|
|
22
22
|
case 4:
|
|
23
|
-
|
|
23
|
+
g.setDirection("TD");
|
|
24
24
|
break;
|
|
25
25
|
case 5:
|
|
26
26
|
this.$ = [];
|
|
@@ -37,23 +37,23 @@ var tt = (function() {
|
|
|
37
37
|
this.$ = [];
|
|
38
38
|
break;
|
|
39
39
|
case 11:
|
|
40
|
-
|
|
40
|
+
g.getCommonDb().setDiagramTitle(u[v].substr(6)), this.$ = u[v].substr(6);
|
|
41
41
|
break;
|
|
42
42
|
case 12:
|
|
43
|
-
this.$ = u[v].trim(),
|
|
43
|
+
this.$ = u[v].trim(), g.getCommonDb().setAccTitle(this.$);
|
|
44
44
|
break;
|
|
45
45
|
case 13:
|
|
46
46
|
case 14:
|
|
47
|
-
this.$ = u[v].trim(),
|
|
47
|
+
this.$ = u[v].trim(), g.getCommonDb().setAccDescription(this.$);
|
|
48
48
|
break;
|
|
49
49
|
case 15:
|
|
50
|
-
|
|
50
|
+
g.addSection(u[v].substr(8)), this.$ = u[v].substr(8);
|
|
51
51
|
break;
|
|
52
52
|
case 18:
|
|
53
|
-
|
|
53
|
+
g.addTask(u[v], 0, ""), this.$ = u[v];
|
|
54
54
|
break;
|
|
55
55
|
case 19:
|
|
56
|
-
|
|
56
|
+
g.addEvent(u[v].substr(2)), this.$ = u[v];
|
|
57
57
|
break;
|
|
58
58
|
}
|
|
59
59
|
}, "anonymous"),
|
|
@@ -68,7 +68,7 @@ var tt = (function() {
|
|
|
68
68
|
}
|
|
69
69
|
}, "parseError"),
|
|
70
70
|
parse: /* @__PURE__ */ o(function(s) {
|
|
71
|
-
var d = this, l = [0],
|
|
71
|
+
var d = this, l = [0], g = [], x = [null], u = [], S = this.table, v = "", I = 0, R = 0, W = 2, O = 1, L = u.slice.call(arguments, 1), w = Object.create(this.lexer), H = { yy: {} };
|
|
72
72
|
for (var V in this.yy)
|
|
73
73
|
Object.prototype.hasOwnProperty.call(this.yy, V) && (H.yy[V] = this.yy[V]);
|
|
74
74
|
w.setInput(s, H.yy), H.yy.lexer = w, H.yy.parser = this, typeof w.yylloc > "u" && (w.yylloc = {});
|
|
@@ -82,23 +82,23 @@ var tt = (function() {
|
|
|
82
82
|
o(N, "popStack");
|
|
83
83
|
function b() {
|
|
84
84
|
var A;
|
|
85
|
-
return A =
|
|
85
|
+
return A = g.pop() || w.lex() || O, typeof A != "number" && (A instanceof Array && (g = A, A = g.pop()), A = d.symbols_[A] || A), A;
|
|
86
86
|
}
|
|
87
87
|
o(b, "lex");
|
|
88
|
-
for (var _, $, T, P, C = {}, G, B,
|
|
88
|
+
for (var _, $, T, P, C = {}, G, B, X, Z; ; ) {
|
|
89
89
|
if ($ = l[l.length - 1], this.defaultActions[$] ? T = this.defaultActions[$] : ((_ === null || typeof _ > "u") && (_ = b()), T = S[$] && S[$][_]), typeof T > "u" || !T.length || !T[0]) {
|
|
90
90
|
var Y = "";
|
|
91
|
-
|
|
91
|
+
Z = [];
|
|
92
92
|
for (G in S[$])
|
|
93
|
-
this.terminals_[G] && G > W &&
|
|
93
|
+
this.terminals_[G] && G > W && Z.push("'" + this.terminals_[G] + "'");
|
|
94
94
|
w.showPosition ? Y = "Parse error on line " + (I + 1) + `:
|
|
95
95
|
` + w.showPosition() + `
|
|
96
|
-
Expecting ` +
|
|
96
|
+
Expecting ` + Z.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : Y = "Parse error on line " + (I + 1) + ": Unexpected " + (_ == O ? "end of input" : "'" + (this.terminals_[_] || _) + "'"), this.parseError(Y, {
|
|
97
97
|
text: w.match,
|
|
98
98
|
token: this.terminals_[_] || _,
|
|
99
99
|
line: w.yylineno,
|
|
100
100
|
loc: F,
|
|
101
|
-
expected:
|
|
101
|
+
expected: Z
|
|
102
102
|
});
|
|
103
103
|
}
|
|
104
104
|
if (T[0] instanceof Array && T.length > 1)
|
|
@@ -126,7 +126,7 @@ Expecting ` + j.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : Y = "
|
|
|
126
126
|
u
|
|
127
127
|
].concat(L)), typeof P < "u")
|
|
128
128
|
return P;
|
|
129
|
-
B && (l = l.slice(0, -1 * B * 2), x = x.slice(0, -1 * B), u = u.slice(0, -1 * B)), l.push(this.productions_[T[1]][0]), x.push(C.$), u.push(C._$),
|
|
129
|
+
B && (l = l.slice(0, -1 * B * 2), x = x.slice(0, -1 * B), u = u.slice(0, -1 * B)), l.push(this.productions_[T[1]][0]), x.push(C.$), u.push(C._$), X = S[l[l.length - 2]][l[l.length - 1]], l.push(X);
|
|
130
130
|
break;
|
|
131
131
|
case 3:
|
|
132
132
|
return !0;
|
|
@@ -163,14 +163,14 @@ Expecting ` + j.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : Y = "
|
|
|
163
163
|
unput: /* @__PURE__ */ o(function(s) {
|
|
164
164
|
var d = s.length, l = s.split(/(?:\r\n?|\n)/g);
|
|
165
165
|
this._input = s + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - d), this.offset -= d;
|
|
166
|
-
var
|
|
166
|
+
var g = this.match.split(/(?:\r\n?|\n)/g);
|
|
167
167
|
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), l.length - 1 && (this.yylineno -= l.length - 1);
|
|
168
168
|
var x = this.yylloc.range;
|
|
169
169
|
return this.yylloc = {
|
|
170
170
|
first_line: this.yylloc.first_line,
|
|
171
171
|
last_line: this.yylineno + 1,
|
|
172
172
|
first_column: this.yylloc.first_column,
|
|
173
|
-
last_column: l ? (l.length ===
|
|
173
|
+
last_column: l ? (l.length === g.length ? this.yylloc.first_column : 0) + g[g.length - l.length].length - l[0].length : this.yylloc.first_column - d
|
|
174
174
|
}, this.options.ranges && (this.yylloc.range = [x[0], x[0] + this.yyleng - d]), this.yyleng = this.yytext.length, this;
|
|
175
175
|
}, "unput"),
|
|
176
176
|
// When called from action, caches matched text and appends it on next action
|
|
@@ -212,7 +212,7 @@ Expecting ` + j.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : Y = "
|
|
|
212
212
|
}, "showPosition"),
|
|
213
213
|
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
214
214
|
test_match: /* @__PURE__ */ o(function(s, d) {
|
|
215
|
-
var l,
|
|
215
|
+
var l, g, x;
|
|
216
216
|
if (this.options.backtrack_lexer && (x = {
|
|
217
217
|
yylineno: this.yylineno,
|
|
218
218
|
yylloc: {
|
|
@@ -232,11 +232,11 @@ Expecting ` + j.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : Y = "
|
|
|
232
232
|
yy: this.yy,
|
|
233
233
|
conditionStack: this.conditionStack.slice(0),
|
|
234
234
|
done: this.done
|
|
235
|
-
}, this.options.ranges && (x.yylloc.range = this.yylloc.range.slice(0))),
|
|
235
|
+
}, this.options.ranges && (x.yylloc.range = this.yylloc.range.slice(0))), g = s[0].match(/(?:\r\n?|\n).*/g), g && (this.yylineno += g.length), this.yylloc = {
|
|
236
236
|
first_line: this.yylloc.last_line,
|
|
237
237
|
last_line: this.yylineno + 1,
|
|
238
238
|
first_column: this.yylloc.last_column,
|
|
239
|
-
last_column:
|
|
239
|
+
last_column: g ? g[g.length - 1].length - g[g.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + s[0].length
|
|
240
240
|
}, this.yytext += s[0], this.match += s[0], this.matches = s, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(s[0].length), this.matched += s[0], l = this.performAction.call(this, this.yy, this, d, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), l)
|
|
241
241
|
return l;
|
|
242
242
|
if (this._backtrack) {
|
|
@@ -251,11 +251,11 @@ Expecting ` + j.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : Y = "
|
|
|
251
251
|
if (this.done)
|
|
252
252
|
return this.EOF;
|
|
253
253
|
this._input || (this.done = !0);
|
|
254
|
-
var s, d, l,
|
|
254
|
+
var s, d, l, g;
|
|
255
255
|
this._more || (this.yytext = "", this.match = "");
|
|
256
256
|
for (var x = this._currentRules(), u = 0; u < x.length; u++)
|
|
257
257
|
if (l = this._input.match(this.rules[x[u]]), l && (!d || l[0].length > d[0].length)) {
|
|
258
|
-
if (d = l,
|
|
258
|
+
if (d = l, g = u, this.options.backtrack_lexer) {
|
|
259
259
|
if (s = this.test_match(l, x[u]), s !== !1)
|
|
260
260
|
return s;
|
|
261
261
|
if (this._backtrack) {
|
|
@@ -266,7 +266,7 @@ Expecting ` + j.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : Y = "
|
|
|
266
266
|
} else if (!this.options.flex)
|
|
267
267
|
break;
|
|
268
268
|
}
|
|
269
|
-
return d ? (s = this.test_match(d, x[
|
|
269
|
+
return d ? (s = this.test_match(d, x[g]), s !== !1 ? s : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
270
270
|
` + this.showPosition(), {
|
|
271
271
|
text: "",
|
|
272
272
|
token: null,
|
|
@@ -304,8 +304,8 @@ Expecting ` + j.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : Y = "
|
|
|
304
304
|
return this.conditionStack.length;
|
|
305
305
|
}, "stateStackSize"),
|
|
306
306
|
options: { "case-insensitive": !0 },
|
|
307
|
-
performAction: /* @__PURE__ */ o(function(d, l,
|
|
308
|
-
switch (
|
|
307
|
+
performAction: /* @__PURE__ */ o(function(d, l, g, x) {
|
|
308
|
+
switch (g) {
|
|
309
309
|
case 0:
|
|
310
310
|
break;
|
|
311
311
|
case 1:
|
|
@@ -357,11 +357,11 @@ Expecting ` + j.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : Y = "
|
|
|
357
357
|
};
|
|
358
358
|
return k;
|
|
359
359
|
})();
|
|
360
|
-
|
|
360
|
+
p.lexer = m;
|
|
361
361
|
function y() {
|
|
362
362
|
this.yy = {};
|
|
363
363
|
}
|
|
364
|
-
return o(y, "Parser"), y.prototype =
|
|
364
|
+
return o(y, "Parser"), y.prototype = p, p.Parser = y, new y();
|
|
365
365
|
})();
|
|
366
366
|
tt.parser = tt;
|
|
367
367
|
var Ot = tt, yt = {};
|
|
@@ -378,8 +378,8 @@ Vt(yt, {
|
|
|
378
378
|
getTasks: () => St,
|
|
379
379
|
setDirection: () => vt
|
|
380
380
|
});
|
|
381
|
-
var D = "", mt = 0, nt = "LR", rt = [],
|
|
382
|
-
rt.length = 0,
|
|
381
|
+
var D = "", mt = 0, nt = "LR", rt = [], j = [], q = [], xt = /* @__PURE__ */ o(() => Ft, "getCommonDb"), kt = /* @__PURE__ */ o(function() {
|
|
382
|
+
rt.length = 0, j.length = 0, D = "", q.length = 0, nt = "LR", zt();
|
|
383
383
|
}, "clear"), vt = /* @__PURE__ */ o(function(e) {
|
|
384
384
|
nt = e;
|
|
385
385
|
}, "setDirection"), bt = /* @__PURE__ */ o(function() {
|
|
@@ -394,7 +394,7 @@ var D = "", mt = 0, nt = "LR", rt = [], q = [], U = [], xt = /* @__PURE__ */ o((
|
|
|
394
394
|
let n = 0;
|
|
395
395
|
for (; !e && n < t; )
|
|
396
396
|
e = ct(), n++;
|
|
397
|
-
return
|
|
397
|
+
return j.push(...q), j;
|
|
398
398
|
}, "getTasks"), Et = /* @__PURE__ */ o(function(e, t, n) {
|
|
399
399
|
const i = {
|
|
400
400
|
id: mt++,
|
|
@@ -405,9 +405,9 @@ var D = "", mt = 0, nt = "LR", rt = [], q = [], U = [], xt = /* @__PURE__ */ o((
|
|
|
405
405
|
//if event is defined, then add it the events array
|
|
406
406
|
events: n ? [n] : []
|
|
407
407
|
};
|
|
408
|
-
|
|
408
|
+
q.push(i);
|
|
409
409
|
}, "addTask"), Tt = /* @__PURE__ */ o(function(e) {
|
|
410
|
-
|
|
410
|
+
q.find((n) => n.id === mt - 1).events.push(e);
|
|
411
411
|
}, "addEvent"), $t = /* @__PURE__ */ o(function(e) {
|
|
412
412
|
const t = {
|
|
413
413
|
section: D,
|
|
@@ -416,13 +416,13 @@ var D = "", mt = 0, nt = "LR", rt = [], q = [], U = [], xt = /* @__PURE__ */ o((
|
|
|
416
416
|
task: e,
|
|
417
417
|
classes: []
|
|
418
418
|
};
|
|
419
|
-
|
|
419
|
+
j.push(t);
|
|
420
420
|
}, "addTaskOrg"), ct = /* @__PURE__ */ o(function() {
|
|
421
421
|
const e = /* @__PURE__ */ o(function(n) {
|
|
422
|
-
return
|
|
422
|
+
return q[n].processed;
|
|
423
423
|
}, "compileTask");
|
|
424
424
|
let t = !0;
|
|
425
|
-
for (const [n, i] of
|
|
425
|
+
for (const [n, i] of q.entries())
|
|
426
426
|
e(n), t = t && i.processed;
|
|
427
427
|
return t;
|
|
428
428
|
}, "compileTasks"), Gt = {
|
|
@@ -443,20 +443,20 @@ var D = "", mt = 0, nt = "LR", rt = [], q = [], U = [], xt = /* @__PURE__ */ o((
|
|
|
443
443
|
const i = e.append("circle").attr("cx", t.cx).attr("cy", t.cy).attr("class", "face").attr("r", 15).attr("stroke-width", 2).attr("overflow", "visible"), r = e.append("g");
|
|
444
444
|
r.append("circle").attr("cx", t.cx - 15 / 3).attr("cy", t.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666"), r.append("circle").attr("cx", t.cx + 15 / 3).attr("cy", t.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666");
|
|
445
445
|
function h(f) {
|
|
446
|
-
const
|
|
447
|
-
f.append("path").attr("class", "mouth").attr("d",
|
|
446
|
+
const p = ot().startAngle(Math.PI / 2).endAngle(3 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
|
|
447
|
+
f.append("path").attr("class", "mouth").attr("d", p).attr("transform", "translate(" + t.cx + "," + (t.cy + 2) + ")");
|
|
448
448
|
}
|
|
449
449
|
o(h, "smile");
|
|
450
450
|
function c(f) {
|
|
451
|
-
const
|
|
452
|
-
f.append("path").attr("class", "mouth").attr("d",
|
|
451
|
+
const p = ot().startAngle(3 * Math.PI / 2).endAngle(5 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
|
|
452
|
+
f.append("path").attr("class", "mouth").attr("d", p).attr("transform", "translate(" + t.cx + "," + (t.cy + 7) + ")");
|
|
453
453
|
}
|
|
454
454
|
o(c, "sad");
|
|
455
455
|
function a(f) {
|
|
456
456
|
f.append("line").attr("class", "mouth").attr("stroke", 2).attr("x1", t.cx - 5).attr("y1", t.cy + 7).attr("x2", t.cx + 5).attr("y2", t.cy + 7).attr("class", "mouth").attr("stroke-width", "1px").attr("stroke", "#666");
|
|
457
457
|
}
|
|
458
458
|
return o(a, "ambivalent"), t.score > 3 ? h(r) : t.score < 3 ? c(r) : a(r), i;
|
|
459
|
-
}, "drawFace"),
|
|
459
|
+
}, "drawFace"), qt = /* @__PURE__ */ o(function(e, t) {
|
|
460
460
|
const n = e.append("circle");
|
|
461
461
|
return n.attr("cx", t.cx), n.attr("cy", t.cy), n.attr("class", "actor-" + t.pos), n.attr("fill", t.fill), n.attr("stroke", t.stroke), n.attr("r", t.r), n.class !== void 0 && n.attr("class", n.class), t.title !== void 0 && n.append("title").text(t.title), n;
|
|
462
462
|
}, "drawCircle"), It = /* @__PURE__ */ o(function(e, t) {
|
|
@@ -471,7 +471,7 @@ var D = "", mt = 0, nt = "LR", rt = [], q = [], U = [], xt = /* @__PURE__ */ o((
|
|
|
471
471
|
o(n, "genPoints");
|
|
472
472
|
const i = e.append("polygon");
|
|
473
473
|
i.attr("points", n(t.x, t.y, 50, 20, 7)), i.attr("class", "labelBox"), t.y = t.y + t.labelMargin, t.x = t.x + 0.5 * t.labelMargin, It(e, t);
|
|
474
|
-
}, "drawLabel"),
|
|
474
|
+
}, "drawLabel"), Ut = /* @__PURE__ */ o(function(e, t, n) {
|
|
475
475
|
const i = e.append("g"), r = st();
|
|
476
476
|
r.x = t.x, r.y = t.y, r.fill = t.fill, r.width = n.width, r.height = n.height, r.class = "journey-section section-type-" + t.num, r.rx = 3, r.ry = 3, Q(i, r), Ht(n)(
|
|
477
477
|
t.text,
|
|
@@ -484,7 +484,7 @@ var D = "", mt = 0, nt = "LR", rt = [], q = [], U = [], xt = /* @__PURE__ */ o((
|
|
|
484
484
|
n,
|
|
485
485
|
t.colour
|
|
486
486
|
);
|
|
487
|
-
}, "drawSection"), et = -1,
|
|
487
|
+
}, "drawSection"), et = -1, Xt = /* @__PURE__ */ o(function(e, t, n, i) {
|
|
488
488
|
const r = t.x + n.width / 2, h = e.append("g");
|
|
489
489
|
et++, h.append("line").attr("id", i + "-task" + et).attr("x1", r).attr("y1", t.y).attr("x2", r).attr("y2", 450).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), Dt(h, {
|
|
490
490
|
cx: r,
|
|
@@ -503,7 +503,7 @@ var D = "", mt = 0, nt = "LR", rt = [], q = [], U = [], xt = /* @__PURE__ */ o((
|
|
|
503
503
|
n,
|
|
504
504
|
t.colour
|
|
505
505
|
);
|
|
506
|
-
}, "drawTask"),
|
|
506
|
+
}, "drawTask"), Zt = /* @__PURE__ */ o(function(e, t) {
|
|
507
507
|
Q(e, {
|
|
508
508
|
x: t.startx,
|
|
509
509
|
y: t.starty,
|
|
@@ -512,7 +512,7 @@ var D = "", mt = 0, nt = "LR", rt = [], q = [], U = [], xt = /* @__PURE__ */ o((
|
|
|
512
512
|
fill: t.fill,
|
|
513
513
|
class: "rect"
|
|
514
514
|
}).lower();
|
|
515
|
-
}, "drawBackgroundRect"),
|
|
515
|
+
}, "drawBackgroundRect"), jt = /* @__PURE__ */ o(function() {
|
|
516
516
|
return {
|
|
517
517
|
x: 0,
|
|
518
518
|
y: 0,
|
|
@@ -535,22 +535,22 @@ var D = "", mt = 0, nt = "LR", rt = [], q = [], U = [], xt = /* @__PURE__ */ o((
|
|
|
535
535
|
ry: 0
|
|
536
536
|
};
|
|
537
537
|
}, "getNoteRect"), Ht = /* @__PURE__ */ (function() {
|
|
538
|
-
function e(r, h, c, a, f,
|
|
539
|
-
const k = h.append("text").attr("x", c + f / 2).attr("y", a +
|
|
538
|
+
function e(r, h, c, a, f, p, m, y) {
|
|
539
|
+
const k = h.append("text").attr("x", c + f / 2).attr("y", a + p / 2 + 5).style("font-color", y).style("text-anchor", "middle").text(r);
|
|
540
540
|
i(k, m);
|
|
541
541
|
}
|
|
542
542
|
o(e, "byText");
|
|
543
|
-
function t(r, h, c, a, f,
|
|
543
|
+
function t(r, h, c, a, f, p, m, y, k) {
|
|
544
544
|
const { taskFontSize: s, taskFontFamily: d } = y, l = r.split(/<br\s*\/?>/gi);
|
|
545
|
-
for (let
|
|
546
|
-
const x =
|
|
547
|
-
u.append("tspan").attr("x", c + f / 2).attr("dy", x).text(l[
|
|
545
|
+
for (let g = 0; g < l.length; g++) {
|
|
546
|
+
const x = g * s - s * (l.length - 1) / 2, u = h.append("text").attr("x", c + f / 2).attr("y", a).attr("fill", k).style("text-anchor", "middle").style("font-size", s).style("font-family", d);
|
|
547
|
+
u.append("tspan").attr("x", c + f / 2).attr("dy", x).text(l[g]), u.attr("y", a + p / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), i(u, m);
|
|
548
548
|
}
|
|
549
549
|
}
|
|
550
550
|
o(t, "byTspan");
|
|
551
|
-
function n(r, h, c, a, f,
|
|
552
|
-
const k = h.append("switch"), d = k.append("foreignObject").attr("x", c).attr("y", a).attr("width", f).attr("height",
|
|
553
|
-
d.append("div").attr("class", "label").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(r), t(r, k, c, a, f,
|
|
551
|
+
function n(r, h, c, a, f, p, m, y) {
|
|
552
|
+
const k = h.append("switch"), d = k.append("foreignObject").attr("x", c).attr("y", a).attr("width", f).attr("height", p).attr("position", "fixed").append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
|
|
553
|
+
d.append("div").attr("class", "label").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(r), t(r, k, c, a, f, p, m, y), i(d, m);
|
|
554
554
|
}
|
|
555
555
|
o(n, "byFo");
|
|
556
556
|
function i(r, h) {
|
|
@@ -565,24 +565,24 @@ var D = "", mt = 0, nt = "LR", rt = [], q = [], U = [], xt = /* @__PURE__ */ o((
|
|
|
565
565
|
}, "initGraphics");
|
|
566
566
|
function it(e, t) {
|
|
567
567
|
e.each(function() {
|
|
568
|
-
var n =
|
|
568
|
+
var n = U(this), i = n.text().split(/(\s+|<br>)/).reverse(), r, h = [], c = 1.1, a = n.attr("y"), f = parseFloat(n.attr("dy")), p = n.text(null).append("tspan").attr("x", 0).attr("y", a).attr("dy", f + "em");
|
|
569
569
|
for (let m = 0; m < i.length; m++)
|
|
570
|
-
r = i[i.length - 1 - m], h.push(r),
|
|
570
|
+
r = i[i.length - 1 - m], h.push(r), p.text(h.join(" ").trim()), (p.node().getComputedTextLength() > t || r === "<br>") && (h.pop(), p.text(h.join(" ").trim()), r === "<br>" ? h = [""] : h = [r], p = n.append("tspan").attr("x", 0).attr("y", a).attr("dy", c + "em").text(r));
|
|
571
571
|
});
|
|
572
572
|
}
|
|
573
573
|
o(it, "wrap");
|
|
574
574
|
var Jt = /* @__PURE__ */ o(function(e, t, n, i, r, h = !1) {
|
|
575
|
-
const { theme: c, look: a } = i, f = c?.includes("redux"),
|
|
575
|
+
const { theme: c, look: a } = i, f = c?.includes("redux"), p = i?.themeVariables?.THEME_COLOR_LIMIT ?? 12, m = n % p - 1, y = e.append("g");
|
|
576
576
|
t.section = m, y.attr(
|
|
577
577
|
"class",
|
|
578
578
|
(t.class ? t.class + " " : "") + "timeline-node " + ("section-" + m)
|
|
579
579
|
);
|
|
580
|
-
const k = y.append("g"), s = y.append("g"), l = s.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(it, t.width).node().getBBox(),
|
|
581
|
-
if (t.height = l.height +
|
|
580
|
+
const k = y.append("g"), s = y.append("g"), l = s.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(it, t.width).node().getBBox(), g = i.fontSize?.replace ? i.fontSize.replace("px", "") : i.fontSize;
|
|
581
|
+
if (t.height = l.height + g * 1.1 * 0.5 + t.padding, t.height = Math.max(t.height, t.maxHeight), t.width = t.width + 2 * t.padding, s.attr("transform", "translate(" + t.width / 2 + ", " + t.padding / 2 + ")"), f && s.attr(
|
|
582
582
|
"transform",
|
|
583
583
|
`translate(${t.width / 2}, ${h ? t.padding / 2 + 3 : t.padding})`
|
|
584
584
|
), te(k, t, m, r, i), a === "neo" && (y.attr("data-look", "neo"), f)) {
|
|
585
|
-
const x = c.includes("dark"), u = e.node()?.ownerSVGElement ?? e.node(), S =
|
|
585
|
+
const x = c.includes("dark"), u = e.node()?.ownerSVGElement ?? e.node(), S = U(u), v = S.attr("id") ?? "", I = v ? `${v}-drop-shadow` : "drop-shadow";
|
|
586
586
|
if (S.select(`#${I}`).empty()) {
|
|
587
587
|
const R = S.select("defs");
|
|
588
588
|
(R.empty() ? S.append("defs") : R).append("filter").attr("id", I).attr("height", "130%").attr("width", "130%").append("feDropShadow").attr("dx", "4").attr("dy", "4").attr("stdDeviation", 0).attr("flood-opacity", x ? "0.2" : "0.06").attr("flood-color", x ? "#FFFFFF" : "#000000");
|
|
@@ -597,27 +597,27 @@ var Jt = /* @__PURE__ */ o(function(e, t, n, i, r, h = !1) {
|
|
|
597
597
|
e.append("path").attr("id", i + "-node-" + Nt++).attr("class", "node-bkg node-" + t.type).attr("d", f), h?.includes("redux") || e.append("line").attr("class", "node-line-" + n).attr("x1", 0).attr("y1", t.height).attr("x2", t.width).attr("y2", t.height);
|
|
598
598
|
}, "defaultBkg"), M = {
|
|
599
599
|
drawRect: Q,
|
|
600
|
-
drawCircle:
|
|
601
|
-
drawSection:
|
|
600
|
+
drawCircle: qt,
|
|
601
|
+
drawSection: Ut,
|
|
602
602
|
drawText: It,
|
|
603
603
|
drawLabel: Kt,
|
|
604
|
-
drawTask:
|
|
605
|
-
drawBackgroundRect:
|
|
606
|
-
getTextObj:
|
|
604
|
+
drawTask: Xt,
|
|
605
|
+
drawBackgroundRect: Zt,
|
|
606
|
+
getTextObj: jt,
|
|
607
607
|
getNoteRect: st,
|
|
608
608
|
initGraphics: Qt,
|
|
609
609
|
drawNode: Jt,
|
|
610
610
|
getVirtualNodeHeight: Yt
|
|
611
611
|
}, ee = /* @__PURE__ */ o(function(e, t, n, i) {
|
|
612
|
-
const r =
|
|
612
|
+
const r = pt(), { look: h, theme: c, themeVariables: a } = r, { useGradient: f, gradientStart: p, gradientStop: m } = a, y = r.timeline?.leftMargin ?? 50;
|
|
613
613
|
E.debug("timeline", i.db);
|
|
614
614
|
const k = r.securityLevel;
|
|
615
615
|
let s;
|
|
616
|
-
k === "sandbox" && (s =
|
|
617
|
-
const l = (k === "sandbox" ?
|
|
616
|
+
k === "sandbox" && (s = U("#i" + t));
|
|
617
|
+
const l = (k === "sandbox" ? U(s.nodes()[0].contentDocument.body) : U("body")).select("#" + t);
|
|
618
618
|
l.append("g");
|
|
619
|
-
const
|
|
620
|
-
E.debug("task",
|
|
619
|
+
const g = i.db.getTasks(), x = i.db.getCommonDb().getDiagramTitle();
|
|
620
|
+
E.debug("task", g), M.initGraphics(l, t);
|
|
621
621
|
const u = i.db.getSections();
|
|
622
622
|
E.debug("sections", u);
|
|
623
623
|
let S = 0, v = 0, I = 0, R = 0, W = 50 + y, O = 50;
|
|
@@ -635,8 +635,8 @@ var Jt = /* @__PURE__ */ o(function(e, t, n, i, r, h = !1) {
|
|
|
635
635
|
E.debug("sectionHeight before draw", _), S = Math.max(S, _ + 20);
|
|
636
636
|
});
|
|
637
637
|
let H = 0, V = 0;
|
|
638
|
-
E.debug("tasks.length",
|
|
639
|
-
for (const [N, b] of
|
|
638
|
+
E.debug("tasks.length", g.length);
|
|
639
|
+
for (const [N, b] of g.entries()) {
|
|
640
640
|
const _ = {
|
|
641
641
|
number: N,
|
|
642
642
|
descr: b,
|
|
@@ -661,7 +661,7 @@ var Jt = /* @__PURE__ */ o(function(e, t, n, i, r, h = !1) {
|
|
|
661
661
|
b.events.length > 0 && (T += (b.events.length - 1) * 10), V = Math.max(V, T);
|
|
662
662
|
}
|
|
663
663
|
E.debug("maxSectionHeight before draw", S), E.debug("maxTaskHeight before draw", v), u && u.length > 0 ? u.forEach((N) => {
|
|
664
|
-
const b =
|
|
664
|
+
const b = g.filter((P) => P.section === N), _ = {
|
|
665
665
|
number: L,
|
|
666
666
|
descr: N,
|
|
667
667
|
section: L,
|
|
@@ -687,7 +687,7 @@ var Jt = /* @__PURE__ */ o(function(e, t, n, i, r, h = !1) {
|
|
|
687
687
|
), W += 200 * Math.max(b.length, 1), O = R, L++;
|
|
688
688
|
}) : (w = !1, lt(
|
|
689
689
|
l,
|
|
690
|
-
|
|
690
|
+
g,
|
|
691
691
|
L,
|
|
692
692
|
W,
|
|
693
693
|
O,
|
|
@@ -702,7 +702,7 @@ var Jt = /* @__PURE__ */ o(function(e, t, n, i, r, h = !1) {
|
|
|
702
702
|
const F = l.node().getBBox();
|
|
703
703
|
if (E.debug("bounds", F), x && l.append("text").text(x).attr("x", h === "neo" ? F.x * 2 + y : F.width / 2 - y).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 20), I = w ? S + v + 150 : v + 100, l.append("g").attr("class", "lineWrapper").append("line").attr("x1", y).attr("y1", I).attr("x2", F.width + 3 * y).attr("y2", I).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", `url(#${t}-arrowhead)`), h === "neo" && f && c !== "neutral") {
|
|
704
704
|
const N = l.select("defs"), _ = (N.empty() ? l.append("defs") : N).append("linearGradient").attr("id", l.attr("id") + "-gradient").attr("gradientUnits", "objectBoundingBox").attr("x1", "0%").attr("y1", "0%").attr("x2", "100%").attr("y2", "0%");
|
|
705
|
-
_.append("stop").attr("offset", "0%").attr("stop-color",
|
|
705
|
+
_.append("stop").attr("offset", "0%").attr("stop-color", p).attr("stop-opacity", 1), _.append("stop").attr("offset", "100%").attr("stop-color", m).attr("stop-opacity", 1);
|
|
706
706
|
}
|
|
707
707
|
ft(
|
|
708
708
|
void 0,
|
|
@@ -710,7 +710,7 @@ var Jt = /* @__PURE__ */ o(function(e, t, n, i, r, h = !1) {
|
|
|
710
710
|
r.timeline?.padding ?? 50,
|
|
711
711
|
r.timeline?.useMaxWidth ?? !1
|
|
712
712
|
);
|
|
713
|
-
}, "draw"), lt = /* @__PURE__ */ o(function(e, t, n, i, r, h, c, a, f,
|
|
713
|
+
}, "draw"), lt = /* @__PURE__ */ o(function(e, t, n, i, r, h, c, a, f, p, m, y) {
|
|
714
714
|
for (const k of t) {
|
|
715
715
|
const s = {
|
|
716
716
|
descr: k.task,
|
|
@@ -721,8 +721,8 @@ var Jt = /* @__PURE__ */ o(function(e, t, n, i, r, h = !1) {
|
|
|
721
721
|
maxHeight: h
|
|
722
722
|
};
|
|
723
723
|
E.debug("taskNode", s);
|
|
724
|
-
const d = e.append("g").attr("class", "taskWrapper"),
|
|
725
|
-
if (E.debug("taskHeight after draw",
|
|
724
|
+
const d = e.append("g").attr("class", "taskWrapper"), g = M.drawNode(d, s, n, c, y).height;
|
|
725
|
+
if (E.debug("taskHeight after draw", g), d.attr("transform", `translate(${i}, ${r})`), h = Math.max(h, g), k.events) {
|
|
726
726
|
const x = e.append("g").attr("class", "lineWrapper");
|
|
727
727
|
let u = h;
|
|
728
728
|
r += 100, u = u + ne(e, k.events, n, i, r, c, y), r -= 100, x.append("line").attr("x1", i + 190 / 2).attr("y1", r + h).attr("x2", i + 190 / 2).attr("y2", r + h + 100 + f + 100).attr("stroke-width", 2).attr("stroke", "black").attr("marker-end", `url(#${y}-arrowhead)`).attr("stroke-dasharray", "5,5");
|
|
@@ -734,9 +734,9 @@ var Jt = /* @__PURE__ */ o(function(e, t, n, i, r, h = !1) {
|
|
|
734
734
|
let a = 0;
|
|
735
735
|
const f = r;
|
|
736
736
|
r = r + 100;
|
|
737
|
-
for (const
|
|
737
|
+
for (const p of t) {
|
|
738
738
|
const m = {
|
|
739
|
-
descr:
|
|
739
|
+
descr: p,
|
|
740
740
|
section: n,
|
|
741
741
|
number: n,
|
|
742
742
|
width: 150,
|
|
@@ -753,21 +753,21 @@ var Jt = /* @__PURE__ */ o(function(e, t, n, i, r, h = !1) {
|
|
|
753
753
|
}, "setConf"),
|
|
754
754
|
draw: ee
|
|
755
755
|
}, J = 200, z = 5, se = J + z * 2, at = J + 100, ie = at + z * 2, Lt = 10, ae = 0, ht = 20, Mt = 20, dt = 30, At = 50, oe = /* @__PURE__ */ o(function(e, t, n, i) {
|
|
756
|
-
const r =
|
|
756
|
+
const r = pt(), h = r.timeline?.leftMargin ?? 50;
|
|
757
757
|
E.debug("timeline", i.db);
|
|
758
758
|
const c = Pt(t);
|
|
759
759
|
c.append("g");
|
|
760
760
|
const a = i.db.getTasks(), f = i.db.getCommonDb().getDiagramTitle();
|
|
761
761
|
E.debug("task", a), M.initGraphics(c);
|
|
762
|
-
const
|
|
763
|
-
E.debug("sections",
|
|
762
|
+
const p = i.db.getSections();
|
|
763
|
+
E.debug("sections", p);
|
|
764
764
|
let m = 0, y = 0;
|
|
765
765
|
const k = 50 + h;
|
|
766
766
|
let s = 50;
|
|
767
|
-
const d = s, l = k,
|
|
767
|
+
const d = s, l = k, g = se + Mt, x = ie + At, u = l + g;
|
|
768
768
|
let S = 0;
|
|
769
|
-
const v =
|
|
770
|
-
|
|
769
|
+
const v = p && p.length > 0, I = v ? u : k + g, R = Math.max(50, g + x - z * 2);
|
|
770
|
+
p.forEach(function(N) {
|
|
771
771
|
const b = {
|
|
772
772
|
number: S,
|
|
773
773
|
descr: N,
|
|
@@ -806,8 +806,8 @@ var Jt = /* @__PURE__ */ o(function(e, t, n, i, r, h = !1) {
|
|
|
806
806
|
}
|
|
807
807
|
E.debug("maxSectionHeight before draw", m), E.debug("maxTaskHeight before draw", y);
|
|
808
808
|
const L = Math.max(y, W) + dt;
|
|
809
|
-
v ?
|
|
810
|
-
const b = a.filter((
|
|
809
|
+
v ? p.forEach((N) => {
|
|
810
|
+
const b = a.filter((X) => X.section === N), _ = {
|
|
811
811
|
number: S,
|
|
812
812
|
descr: N,
|
|
813
813
|
section: S,
|
|
@@ -818,7 +818,7 @@ var Jt = /* @__PURE__ */ o(function(e, t, n, i, r, h = !1) {
|
|
|
818
818
|
E.debug("sectionNode", _);
|
|
819
819
|
const $ = c.append("g"), T = M.drawNode($, _, S, r);
|
|
820
820
|
E.debug("sectionNode output", T);
|
|
821
|
-
const P = I -
|
|
821
|
+
const P = I - g;
|
|
822
822
|
$.attr("transform", `translate(${P}, ${s})`);
|
|
823
823
|
const C = s + T.height + ht;
|
|
824
824
|
b.length > 0 && ut(
|
|
@@ -861,9 +861,9 @@ var Jt = /* @__PURE__ */ o(function(e, t, n, i, r, h = !1) {
|
|
|
861
861
|
r.timeline?.useMaxWidth ?? !1
|
|
862
862
|
);
|
|
863
863
|
}, "draw"), ut = /* @__PURE__ */ o(function(e, t, n, i, r, h, c, a, f) {
|
|
864
|
-
for (const
|
|
864
|
+
for (const p of t) {
|
|
865
865
|
const m = {
|
|
866
|
-
descr:
|
|
866
|
+
descr: p.task,
|
|
867
867
|
section: n,
|
|
868
868
|
number: n,
|
|
869
869
|
width: J,
|
|
@@ -874,16 +874,16 @@ var Jt = /* @__PURE__ */ o(function(e, t, n, i, r, h = !1) {
|
|
|
874
874
|
const y = e.append("g").attr("class", "taskWrapper"), k = M.drawNode(y, m, n, c), s = k.height;
|
|
875
875
|
E.debug("taskHeight after draw", s);
|
|
876
876
|
const d = i - Mt - k.width;
|
|
877
|
-
if (y.attr("transform", `translate(${d}, ${r})`), h = Math.max(h, s),
|
|
878
|
-
const l = r,
|
|
879
|
-
ce(e,
|
|
877
|
+
if (y.attr("transform", `translate(${d}, ${r})`), h = Math.max(h, s), p.events && p.events.length > 0) {
|
|
878
|
+
const l = r, g = i + At;
|
|
879
|
+
ce(e, p.events, n, i, g, l, c);
|
|
880
880
|
}
|
|
881
881
|
r = r + a, f && !c.timeline?.disableMulticolor && n++;
|
|
882
882
|
}
|
|
883
883
|
}, "drawTasks"), ce = /* @__PURE__ */ o(function(e, t, n, i, r, h, c) {
|
|
884
884
|
let a = h;
|
|
885
885
|
for (const f of t) {
|
|
886
|
-
const
|
|
886
|
+
const p = {
|
|
887
887
|
descr: f,
|
|
888
888
|
section: n,
|
|
889
889
|
number: n,
|
|
@@ -891,8 +891,8 @@ var Jt = /* @__PURE__ */ o(function(e, t, n, i, r, h = !1) {
|
|
|
891
891
|
padding: z,
|
|
892
892
|
maxHeight: 0
|
|
893
893
|
};
|
|
894
|
-
E.debug("eventNode",
|
|
895
|
-
const m = e.append("g").attr("class", "eventWrapper"), k = M.drawNode(m,
|
|
894
|
+
E.debug("eventNode", p);
|
|
895
|
+
const m = e.append("g").attr("class", "eventWrapper"), k = M.drawNode(m, p, n, c).height;
|
|
896
896
|
m.attr("transform", `translate(${r}, ${a})`);
|
|
897
897
|
const s = e.append("g").attr("class", "lineWrapper"), d = a + k / 2;
|
|
898
898
|
s.append("line").attr("x1", i).attr("y1", d).attr("x2", r).attr("y2", d).attr("stroke-width", 2).attr("stroke", "black").attr("marker-end", "url(#arrowhead)").attr("stroke-dasharray", "5,5"), a = a + k + Lt;
|
|
@@ -903,15 +903,15 @@ var Jt = /* @__PURE__ */ o(function(e, t, n, i, r, h = !1) {
|
|
|
903
903
|
}, "setConf"),
|
|
904
904
|
draw: oe
|
|
905
905
|
}, he = /* @__PURE__ */ o((e) => {
|
|
906
|
-
const { theme: t } =
|
|
906
|
+
const { theme: t } = gt(), n = t?.includes("dark"), i = t?.includes("color"), r = e.svgId?.replace(/^#/, "") ?? "", h = r ? `url(#${r}-drop-shadow)` : e.dropShadow ?? "none";
|
|
907
907
|
let c = "";
|
|
908
908
|
for (let a = 0; a < e.THEME_COLOR_LIMIT; a++) {
|
|
909
|
-
const f = `${17 - 3 * a}`,
|
|
909
|
+
const f = `${17 - 3 * a}`, p = i ? e.borderColorArray[a] : e.mainBkg, m = i ? e.borderColorArray[a] : e.nodeBorder;
|
|
910
910
|
c += `
|
|
911
911
|
.section-${a - 1} rect,
|
|
912
912
|
.section-${a - 1} path,
|
|
913
913
|
.section-${a - 1} circle {
|
|
914
|
-
fill: ${n && i ? e.mainBkg :
|
|
914
|
+
fill: ${n && i ? e.mainBkg : p};
|
|
915
915
|
stroke: ${m};
|
|
916
916
|
stroke-width: ${e.strokeWidth};
|
|
917
917
|
filter: ${h};
|
|
@@ -999,7 +999,7 @@ var Jt = /* @__PURE__ */ o(function(e, t, n, i, r, h = !1) {
|
|
|
999
999
|
}
|
|
1000
1000
|
return t;
|
|
1001
1001
|
}, "genSections"), ue = /* @__PURE__ */ o((e) => {
|
|
1002
|
-
const { theme: t } =
|
|
1002
|
+
const { theme: t } = gt(), n = t?.includes("redux"), i = t === "neutral", r = e.svgId?.replace(/^#/, "") ?? "";
|
|
1003
1003
|
let h = "";
|
|
1004
1004
|
if (e.useGradient && r && e.THEME_COLOR_LIMIT && !i)
|
|
1005
1005
|
for (let c = 0; c < e.THEME_COLOR_LIMIT; c++)
|
|
@@ -1040,15 +1040,15 @@ var Jt = /* @__PURE__ */ o(function(e, t, n, i, r, h = !1) {
|
|
|
1040
1040
|
filter: brightness(120%);
|
|
1041
1041
|
}
|
|
1042
1042
|
`;
|
|
1043
|
-
}, "getStyles"),
|
|
1043
|
+
}, "getStyles"), ge = ue, pe = {
|
|
1044
1044
|
setConf: /* @__PURE__ */ o(() => {
|
|
1045
1045
|
}, "setConf"),
|
|
1046
1046
|
draw: /* @__PURE__ */ o((e, t, n, i) => (i?.db?.getDirection?.() ?? "LR") === "TD" ? le.draw(e, t, n, i) : re.draw(e, t, n, i), "draw")
|
|
1047
1047
|
}, me = {
|
|
1048
1048
|
db: yt,
|
|
1049
|
-
renderer:
|
|
1049
|
+
renderer: pe,
|
|
1050
1050
|
parser: Ot,
|
|
1051
|
-
styles:
|
|
1051
|
+
styles: ge
|
|
1052
1052
|
};
|
|
1053
1053
|
export {
|
|
1054
1054
|
me as diagram
|