@layers-app/editor 0.0.23 → 0.0.25
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/index.cjs +1 -1
- package/dist/index.d.ts +6 -44
- package/dist/index.js +1 -1
- package/dist/{layers.BdanmQPF.js → layers.07qQUlOx.js} +1 -1
- package/dist/{layers.CBXpUMze.js → layers.0Uws2RMI.js} +35 -35
- package/dist/{layers.BpXiFzvR.js → layers.2klZ3piU.js} +1 -1
- package/dist/{layers.p9hSNB6N.js → layers.3O2dWJo4.js} +1 -1
- package/dist/{layers.x6ioP3u0.js → layers.3VppN-FK.js} +1 -1
- package/dist/{layers.kY3ZYtED.js → layers.3cmQBPRD.js} +1 -1
- package/dist/{layers.C-G7-Jg3.js → layers.5U29QNMz.js} +1 -1
- package/dist/{layers.CEXVJbhn.js → layers.5s_bUFw7.js} +1 -1
- package/dist/{layers.BFLg4UGe.js → layers.8dwcxQd3.js} +1 -1
- package/dist/{layers.D2q8ZYi2.js → layers.9EMwI8Xs.js} +15 -15
- package/dist/{layers.za1sylgg.js → layers.9tX9hjoM.js} +758 -758
- package/dist/{layers.BBwDvE6l.js → layers.B-eOoyQV.js} +1820 -1814
- package/dist/{layers.CPV5PaJ7.js → layers.B-hOwYRy.js} +1 -1
- package/dist/{layers.PO65UmTA.js → layers.B0LHiU6c.js} +1 -1
- package/dist/{layers.CnD3z0eZ.js → layers.B1psjxfg.js} +1 -1
- package/dist/{layers.BUSnd1Ro.js → layers.B1tTFwlU.js} +1 -1
- package/dist/{layers.B39TZ2WV.js → layers.B3NaBxHH.js} +1 -1
- package/dist/{layers.DIrkcLlA.js → layers.B43rvwKV.js} +63 -63
- package/dist/{layers.Dg8Wbn90.js → layers.B7wN1gyM.js} +1 -1
- package/dist/{layers.tbRLuldN.js → layers.B9ocXRVO.js} +1 -1
- package/dist/{layers.CZh7NZyl.js → layers.BAWbBe9N.js} +1 -1
- package/dist/{layers.Cl9Tl2nd.js → layers.BAaIrX5p.js} +1 -1
- package/dist/layers.BAnc8Y8B.js +118 -0
- package/dist/{layers.CiNAQOA-.js → layers.BB7ssac6.js} +2 -2
- package/dist/{layers.Bz0ApNUe.js → layers.BBm66jcD.js} +14 -14
- package/dist/layers.BGF0mJI-.js +10 -0
- package/dist/{layers.kthR742N.js → layers.BJ2qg5fe.js} +1 -1
- package/dist/{layers.C_dOgKfE.js → layers.BK4BzYSQ.js} +1 -1
- package/dist/{layers.BST6tR9a.js → layers.BKoRqbkc.js} +1 -1
- package/dist/{layers.Bbl6qitU.js → layers.BLvgQy3M.js} +1 -1
- package/dist/{layers.DEfJs03Z.js → layers.BNEX6ffl.js} +1 -1
- package/dist/layers.BOEB6DhN.js +202 -0
- package/dist/{layers.ClaqpFnu.js → layers.BOdIgbDK.js} +2 -2
- package/dist/{layers.DalYdEkL.js → layers.BPTiALoi.js} +4 -4
- package/dist/{layers.B64g6Zx2.js → layers.BQHgH0c0.js} +1 -1
- package/dist/{layers.BFOl7cA-.js → layers.BQUkW6Sr.js} +1 -1
- package/dist/{layers.CphCG076.js → layers.BQdiT-Gc.js} +1 -1
- package/dist/{layers.Cp82yltX.js → layers.BW8tNgnl.js} +1 -1
- package/dist/{layers.CHHqQlm1.js → layers.BWBOjwnD.js} +1 -1
- package/dist/{layers.N4wL2Xyj.js → layers.BWBqFzL5.js} +85 -85
- package/dist/{layers.c_QDfgff.js → layers.BY_Ddtf_.js} +4 -4
- package/dist/{layers.CqM3rL4-.js → layers.B_3SG9-n.js} +1 -1
- package/dist/layers.Bag9ck5N.js +1 -0
- package/dist/{layers.ChAMqLmE.js → layers.Bgs9DWaM.js} +1 -1
- package/dist/{layers.Bv0tGvGl.js → layers.BhjPgUp1.js} +1 -1
- package/dist/{layers.ClQj75nc.js → layers.Bjqq928v.js} +1 -1
- package/dist/{layers.Ch7C0MR9.js → layers.Bk3rEvTi.js} +1 -1
- package/dist/{layers.oFAtdeQ1.js → layers.BlRFAeMZ.js} +3 -3
- package/dist/layers.BlifjyLs.js +2 -0
- package/dist/{layers.BZcZF6Ct.js → layers.BlkvO94n.js} +1 -1
- package/dist/{layers.BPe9NQzP.js → layers.Bm4nXd83.js} +1 -1
- package/dist/{layers.Blho0qwc.js → layers.BmU3A8To.js} +1 -1
- package/dist/{layers.UbqG2dp_.js → layers.Bn8N2Stv.js} +1 -1
- package/dist/{layers.DwLw5o0M.js → layers.BqTvq1WO.js} +1 -1
- package/dist/{layers.CGX7Piy7.js → layers.BtP6vWIY.js} +1 -1
- package/dist/{layers.CDLdte-o.js → layers.Bu0Rv7u8.js} +1 -1
- package/dist/{layers.DAx0hT2g.js → layers.BuJozguU.js} +1 -1
- package/dist/{layers.Dol0x5Jd.js → layers.Bw3R-pSG.js} +1 -1
- package/dist/{layers.hkFN-BS0.js → layers.BwcyrXEu.js} +1 -1
- package/dist/{layers.BBB7YGK1.js → layers.Bwuu3jjm.js} +1 -1
- package/dist/{layers.B9zrmkst.js → layers.BymWa7M3.js} +1 -1
- package/dist/{layers.LOjND5R4.js → layers.BzRmHQQD.js} +2 -2
- package/dist/{layers.Dbuivk7d.js → layers.Bzc44mb4.js} +1 -1
- package/dist/{layers.CwPFdFUT.js → layers.C2b0BhoA.js} +1 -1
- package/dist/{layers.DARK07JA.js → layers.C3vT-_5E.js} +1 -1
- package/dist/{layers.D7HvMBb6.js → layers.C4L1zUgG.js} +1 -1
- package/dist/{layers.CcJ28sUd.js → layers.C6qRV0pD.js} +1 -1
- package/dist/{layers.CDzPpnhN.js → layers.C7_Otsyx.js} +5 -5
- package/dist/{layers.WsdOSV4y.js → layers.C8r5QjFY.js} +1 -1
- package/dist/{layers.5BbX0Xoz.js → layers.C9vJr9Fp.js} +57 -57
- package/dist/layers.CBAObrHU.js +1 -0
- package/dist/layers.CHd51QJn.js +8 -0
- package/dist/{layers.BJMMuP5r.js → layers.CI7Z-Sjj.js} +1 -1
- package/dist/{layers.D9A031XO.js → layers.CJudskXr.js} +2 -2
- package/dist/layers.CLPJWTr_.js +1 -0
- package/dist/{layers.OEP2K3db.js → layers.CM0RbG9c.js} +1 -1
- package/dist/{layers.BXGiOI1Z.js → layers.CNml1ojC.js} +1 -1
- package/dist/{layers.C5uR7AiN.js → layers.CPPtpAVe.js} +1 -1
- package/dist/{layers.Cn6OfRlw.js → layers.CPtjfATq.js} +1 -1
- package/dist/{layers.BYVHkqLR.js → layers.CRVVTbRr.js} +1 -1
- package/dist/{layers.Ym7pRGM7.js → layers.CRuKN3by.js} +3 -3
- package/dist/{layers.BuQ1nJmP.js → layers.CSAdHZgs.js} +1 -1
- package/dist/{layers.CMS1o_sE.js → layers.CSy8D72I.js} +1 -1
- package/dist/{layers.DdTLZZKb.js → layers.CV_r6tXx.js} +6 -6
- package/dist/layers.CVlRuvNG.js +122 -0
- package/dist/{layers.D68FZk66.js → layers.CWWJnwM1.js} +1 -1
- package/dist/{layers.Ck0iJfoW.js → layers.CYPKJ9D_.js} +1 -1
- package/dist/{layers.BO3dqWyO.js → layers.CZ9asRxp.js} +1 -1
- package/dist/{layers.CO4NHmK3.js → layers.CctQZdRR.js} +1 -1
- package/dist/{layers.BjZInKjA.js → layers.Cdw06C7D.js} +2 -2
- package/dist/{layers.DYx3Ot6h.js → layers.Ce8BBqO9.js} +1 -1
- package/dist/{layers.DQCPMqIN.js → layers.CfVH6j0d.js} +1 -1
- package/dist/{layers.lLRqycMO.js → layers.CfyH4z2e.js} +1 -1
- package/dist/{layers.BLSqqbWP.js → layers.CgdtQipl.js} +4 -4
- package/dist/{layers.DFd9A85i.js → layers.CgvOUVzr.js} +4 -4
- package/dist/{layers.gRKbOYG-.js → layers.ChkOb4tl.js} +26 -26
- package/dist/{layers.CR4riLSc.js → layers.Cj6cbW8i.js} +639 -639
- package/dist/{layers.DKPzrygv.js → layers.Cj7ITJ9c.js} +1 -1
- package/dist/{layers.rRMBW9ET.js → layers.CjRpPAKZ.js} +251 -251
- package/dist/{layers.Ba97nTEK.js → layers.CjfoYqS0.js} +1 -1
- package/dist/{layers.CTmkjIN6.js → layers.Ckd9L1ZQ.js} +1 -1
- package/dist/{layers.CQv0GMRl.js → layers.ClpTV2lw.js} +1 -1
- package/dist/{layers.D1cZq8tq.js → layers.CmEuIxO4.js} +3 -3
- package/dist/{layers.Bwpn7zKE.js → layers.CmOPFjvq.js} +1 -1
- package/dist/{layers.DCvUAfE1.js → layers.CnlX6j6i.js} +1 -1
- package/dist/{layers.B-6oGNjd.js → layers.CqEtGCpU.js} +1 -1
- package/dist/{layers.C51kZnWr.js → layers.CqMLQ0Dp.js} +1 -1
- package/dist/{layers.BhM2iCwB.js → layers.CuxIZWEP.js} +1 -1
- package/dist/{layers.PhLwHKUM.js → layers.CvLOVBUw.js} +1 -1
- package/dist/{layers.ChykDTOy.js → layers.Cx6FqSsI.js} +1 -1
- package/dist/{layers.CmHSmrZm.js → layers.CyUKOqQM.js} +1 -1
- package/dist/{layers.DeB3waPT.js → layers.CzsxLGGT.js} +1 -1
- package/dist/{layers.DXTPaWjN.js → layers.D0yiFcqY.js} +1 -1
- package/dist/layers.D1fmxxk7.js +1 -0
- package/dist/{layers.DO-G3uLL.js → layers.D39cRqm0.js} +1 -1
- package/dist/{layers.ChPHYv68.js → layers.D6ec9SRH.js} +1 -1
- package/dist/{layers.BDxQSquK.js → layers.D71p3EhU.js} +1 -1
- package/dist/{layers.-RxAm5pH.js → layers.D8G_zttU.js} +47 -47
- package/dist/{layers.x6Qk2Mwl.js → layers.D8NjLtRn.js} +1 -1
- package/dist/{layers.I-MG0ir4.js → layers.DAkVONDW.js} +6219 -6202
- package/dist/{layers.iw01AOuQ.js → layers.DDE-iai2.js} +96 -96
- package/dist/{layers.DDRgaMwu.js → layers.DDGV6wvn.js} +1 -1
- package/dist/{layers.cp645rbn.js → layers.DDPm1Phd.js} +1 -1
- package/dist/{layers.D3Hkinja.js → layers.DFdD8OE6.js} +1 -1
- package/dist/{layers.gzGcAwbO.js → layers.DGC-QZbD.js} +3 -3
- package/dist/{layers.B9NSFeaj.js → layers.DH6JhdxT.js} +1 -1
- package/dist/{layers.DrtkQKK7.js → layers.DHNgS4o3.js} +1 -1
- package/dist/{layers.k2UyvrHI.js → layers.DHYQaKXy.js} +1 -1
- package/dist/{layers.B0EkntbT.js → layers.DKTUd6cG.js} +1 -1
- package/dist/{layers.Cxmncz59.js → layers.DLShWbE3.js} +1 -1
- package/dist/{layers.C1KhBpGU.js → layers.DMnBSepD.js} +1 -1
- package/dist/{layers.BCFHxkpM.js → layers.DN2-RoYO.js} +1 -1
- package/dist/{layers.BLB-feoT.js → layers.DNvn8evO.js} +1 -1
- package/dist/{layers.DsAtBUs-.js → layers.DPpl1Lyy.js} +5 -5
- package/dist/{layers.paz6tc0L.js → layers.DQevQguw.js} +1 -1
- package/dist/{layers.DK_t52oS.js → layers.DRGcrPPV.js} +390 -390
- package/dist/{layers.Ckbp-T9r.js → layers.DS8xp3z6.js} +1 -1
- package/dist/{layers.D90-hSDT.js → layers.DT2vhESJ.js} +2 -2
- package/dist/{layers.B-ie1_cm.js → layers.DTSzGsqB.js} +1 -1
- package/dist/{layers.Dyqg_e4P.js → layers.DTX-m6B0.js} +1 -1
- package/dist/{layers.Lhl12ohc.js → layers.DUgI8Qm6.js} +1 -1
- package/dist/{layers.fTcEk1do.js → layers.DUt_7Rf9.js} +7 -7
- package/dist/{layers.CZMy0ug4.js → layers.DX5uxco3.js} +1 -1
- package/dist/{layers.C6Rn8zoI.js → layers.DYoOWsyB.js} +1 -1
- package/dist/layers.DZVs6rl-.js +65 -0
- package/dist/{layers.Bfd5bOAD.js → layers.DZxo3Qo-.js} +1 -1
- package/dist/{layers.ChJyurjQ.js → layers.DaNHv_tD.js} +1 -1
- package/dist/{layers.Bk2PdkMX.js → layers.DbSjlXkz.js} +1 -1
- package/dist/{layers.D2vOkfMK.js → layers.Dc_OXuAO.js} +1 -1
- package/dist/{layers.BIVmclKv.js → layers.Dg4aFQbj.js} +1 -1
- package/dist/{layers.DHbdkCCU.js → layers.Dh8vVrkJ.js} +1 -1
- package/dist/{layers.gaT5_-NN.js → layers.DhaEWWE8.js} +1 -1
- package/dist/{layers.CH23k4XD.js → layers.DhiiM0nu.js} +1 -1
- package/dist/{layers.BEE5yqs5.js → layers.Dj1RvABZ.js} +1 -1
- package/dist/{layers.BBU3ik5q.js → layers.DnhB9nfo.js} +3 -3
- package/dist/{layers.DxGDxkXA.js → layers.Dp_lp9sc.js} +47 -47
- package/dist/{layers.CCRe_IA7.js → layers.DpoqH_qu.js} +1 -1
- package/dist/{layers.Y41CVpLS.js → layers.DtYpqqY0.js} +33 -33
- package/dist/{layers.CvJxfPxo.js → layers.Dtt8if_X.js} +1 -1
- package/dist/{layers.Dyor8Hot.js → layers.Du5-W3Rw.js} +28 -28
- package/dist/{layers.CeMe5scF.js → layers.Dv3wcPBB.js} +1 -1
- package/dist/{layers.CR10RAJi.js → layers.DvVe2_B8.js} +2 -2
- package/dist/{layers.BDhuxbhX.js → layers.Dw80oYJ5.js} +1 -1
- package/dist/{layers.-rS-aTo2.js → layers.Dx5bTjWn.js} +1 -1
- package/dist/{layers.HcI9cOEd.js → layers.DyUhnefH.js} +47 -47
- package/dist/{layers.DhiFm4jW.js → layers.EqE20WDv.js} +1 -1
- package/dist/{layers.L_XjkGw6.js → layers.GO-Mbd7I.js} +16 -16
- package/dist/{layers.CnloMtKN.js → layers.HRFT_ZjM.js} +14 -14
- package/dist/{layers.DhzTwBn5.js → layers.KCNY5y8z.js} +1 -1
- package/dist/{layers.Dklz2JqP.js → layers.KFKejNxr.js} +1 -1
- package/dist/{layers.D-ZYFolm.js → layers.LBCOqtdP.js} +1 -1
- package/dist/{layers.B_Hf0SF-.js → layers.MYNPCNPb.js} +517 -517
- package/dist/{layers.FstVqdQC.js → layers.Mz6hy1ns.js} +151 -151
- package/dist/{layers.Dxrm0nEM.js → layers.NnXYAx13.js} +140 -140
- package/dist/layers.O_QfH9Tw.js +55 -0
- package/dist/{layers.Cx14IKzN.js → layers.PrN0U_UM.js} +1 -1
- package/dist/{layers.Dzc83sE7.js → layers.Q4CIFfze.js} +1 -1
- package/dist/{layers.D_MU5WlI.js → layers.R44OAZRP.js} +1 -1
- package/dist/{layers.BvZFIFgz.js → layers.SP95Qof2.js} +1 -1
- package/dist/{layers.I5-pSyca.js → layers.SulLxOdh.js} +1 -1
- package/dist/{layers.C3K_Whht.js → layers.T0eE6tga.js} +1 -1
- package/dist/{layers.BHDiP2sq.js → layers.UHP1RD2c.js} +1482 -1482
- package/dist/{layers.BD5uUnI2.js → layers.UVNd1xGx.js} +279 -279
- package/dist/{layers.Ci0x4aAi.js → layers.WoRsWqkn.js} +5 -5
- package/dist/{layers.BPnpanwd.js → layers.Xe8jbEny.js} +1 -1
- package/dist/{layers.DMvWe0pJ.js → layers.ZN4JdEjx.js} +2 -2
- package/dist/layers.ZYL9xgWP.js +6 -0
- package/dist/{layers.B6UkAKu5.js → layers._hbnQs16.js} +78 -78
- package/dist/{layers.BkMfeJ9R.js → layers.dRKtVcxx.js} +1 -1
- package/dist/{layers.C0bumYdC.js → layers.eMCYstYw.js} +1 -1
- package/dist/{layers.BUkDq4ln.js → layers.eT0cgnuX.js} +1 -1
- package/dist/{layers.B0pdr1hX.js → layers.iE9hmQyV.js} +33 -33
- package/dist/{layers.B3odqoHb.js → layers.iRxcG0YN.js} +1 -1
- package/dist/{layers.D18RSmmQ.js → layers.kyTkLvwr.js} +1 -1
- package/dist/{layers.CClfR9Rs.js → layers.otSGVgrf.js} +10347 -11483
- package/dist/{layers.dqI-yLmM.js → layers.pAr6m-ST.js} +1 -1
- package/dist/{layers.2ODaB2Pd.js → layers.qxHQ5s48.js} +1 -1
- package/dist/{layers.B8i9d7Qz.js → layers.qzkyQd0J.js} +36 -30
- package/dist/{layers.BoabOlrX.js → layers.rB_UamkL.js} +1 -1
- package/dist/{layers.DElpVOY-.js → layers.vK-UofJJ.js} +1 -1
- package/dist/{layers.C5rttXXy.js → layers.vfmwTFt7.js} +4 -4
- package/dist/{layers.DXaSAlDN.js → layers.vrKjaGL3.js} +1 -1
- package/dist/{layers.Ci0QS82_.js → layers.wXI8z3zK.js} +1 -1
- package/dist/{layers.CGc04km7.js → layers.z_R2M9xA.js} +1 -1
- package/dist/{layers.DGZUGztZ.js → layers.zleGKGQR.js} +29 -29
- package/dist/{layers.CSjWzlk9.js → layers.zx6fFkwC.js} +1 -1
- package/package.json +1 -4
- package/dist/layers.BK01wvsE.js +0 -10
- package/dist/layers.BQLZhz6B.js +0 -6
- package/dist/layers.BUsBCyiL.js +0 -202
- package/dist/layers.BkjjkAwW.js +0 -2
- package/dist/layers.BwfB_nzW.js +0 -8
- package/dist/layers.CQXDzk5h.js +0 -1
- package/dist/layers.CeVpKhli.js +0 -122
- package/dist/layers.DTDpNGfk.js +0 -1
- package/dist/layers.Dk9dbz6F.js +0 -118
- package/dist/layers.DtoCH9Nn.js +0 -1
- package/dist/layers.DzaH7mDC.js +0 -65
- package/dist/layers.Tatx7z0m.js +0 -55
- package/dist/layers.h0tSRttU.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./layers.
|
|
1
|
+
import "./layers.DAkVONDW.js";
|
|
2
2
|
var e = { paste: "Incolla", pasteAsPlaintext: "Incolla come testo normale", pasteCharts: "Incolla grafici", selectAll: "Seleziona tutto", multiSelect: "Aggiungi elemento alla selezione", moveCanvas: "Sposta tela", cut: "Taglia", copy: "Copia", copyAsPng: "Copia negli appunti come PNG", copyAsSvg: "Copia negli appunti come SVG", copyText: "Copia negli appunti come testo", copySource: "Copia sorgente negli appunti", convertToCode: "Converti in codice", bringForward: "Porta avanti", sendToBack: "Manda in fondo", bringToFront: "Porta in cima", sendBackward: "Manda dietro", delete: "Elimina", copyStyles: "Copia stili", pasteStyles: "Incolla stili", stroke: "Tratto", background: "Sfondo", fill: "Riempimento", strokeWidth: "Spessore del tratto", strokeStyle: "Stile del tratto", strokeStyle_solid: "Pieno", strokeStyle_dashed: "Tratteggiato", strokeStyle_dotted: "Punteggiato", sloppiness: "Imprecisione", opacity: "Opacità", textAlign: "Allineamento del testo", edges: "Bordi", sharp: "Acuto", round: "Rotondo", arrowheads: "Punta della freccia", arrowhead_none: "Nessuno", arrowhead_arrow: "Freccia", arrowhead_bar: "Barra", arrowhead_circle: "Cerchio", arrowhead_circle_outline: "Cerchio (contorno)", arrowhead_triangle: "Triangolo", arrowhead_triangle_outline: "Triangolo (contorno)", arrowhead_diamond: "Diamante", arrowhead_diamond_outline: "Diamante (contorno)", fontSize: "Dimensione carattere", fontFamily: "Carattere", addWatermark: 'Aggiungi "Creato con Excalidraw"', handDrawn: "A mano libera", normal: "Normale", code: "Codice", small: "Piccolo", medium: "Medio", large: "Grande", veryLarge: "Molto grande", solid: "Pieno", hachure: "Tratteggio obliquo", zigzag: "Zig zag", crossHatch: "Tratteggio incrociato", thin: "Sottile", bold: "Grassetto", left: "Sinistra", center: "Centro", right: "Destra", extraBold: "Extra Grassetto", architect: "Architetto", artist: "Artista", cartoonist: "Fumettista", fileTitle: "Nome del file", colorPicker: "Selettore colore", canvasColors: "Usato su tela", canvasBackground: "Sfondo tela", drawingCanvas: "Area di disegno", layers: "Livelli", actions: "Azioni", language: "Lingua", liveCollaboration: "Collaborazione dal vivo...", duplicateSelection: "Duplica", untitled: "Senza titolo", name: "Nome", yourName: "Il vostro nome", madeWithExcalidraw: "Creato con Excalidraw", group: "Crea gruppo da selezione", ungroup: "Dividi gruppo da selezione", collaborators: "Collaboratori", showGrid: "Visualizza griglia", addToLibrary: "Aggiungi alla libreria", removeFromLibrary: "Rimuovi dalla libreria", libraryLoadingMessage: "Caricamento libreria…", libraries: "Sfoglia librerie", loadingScene: "Caricamento della scena…", align: "Allinea", alignTop: "Allinea in alto", alignBottom: "Allinea in basso", alignLeft: "Allinea a sinistra", alignRight: "Allinea a destra", centerVertically: "Centra Verticalmente", centerHorizontally: "Centra orizzontalmente", distributeHorizontally: "Distribuisci orizzontalmente", distributeVertically: "Distribuisci verticalmente", flipHorizontal: "Capovolgi orizzontalmente", flipVertical: "Capovolgi verticalmente", viewMode: "Modalità visualizzazione", share: "Condividi", showStroke: "Mostra selettore colore del tratto", showBackground: "Mostra selettore colore di sfondo", toggleTheme: "Cambia tema", personalLib: "Libreria Personale", excalidrawLib: "Libreria di Excalidraw", decreaseFontSize: "Riduci dimensione dei caratteri", increaseFontSize: "Aumenta la dimensione dei caratteri", unbindText: "Scollega testo", bindText: "Associa il testo al container", createContainerFromText: "Avvolgi il testo in un container", link: { edit: "Modifica link", editEmbed: "Modifica collegamento e incorpora", create: "Crea link", createEmbed: "Crea collegamento e incorpora", label: "Link", labelEmbed: "Collega & incorpora", empty: "Nessun collegamento impostato" }, lineEditor: { edit: "Modifica linea", exit: "Esci dall'editor di linea" }, elementLock: { lock: "Blocca", unlock: "Sblocca", lockAll: "Blocca tutto", unlockAll: "Sblocca tutto" }, statusPublished: "Pubblicato", sidebarLock: "Mantieni aperta la barra laterale", selectAllElementsInFrame: "Seleziona tutti gli elementi nel riquadro", removeAllElementsFromFrame: "Rimuovi tutti gli elementi dal riquadro", eyeDropper: "Scegli il colore della tela", textToDiagram: "Testo a diagramma", prompt: "Prompt" }, i = { noItems: "Nessun elemento ancora aggiunto...", hint_emptyLibrary: "Seleziona un elemento sulla tela per aggiungerlo qui, o installa una libreria dal repository pubblico qui sotto.", hint_emptyPrivateLibrary: "Seleziona un elemento sulla tela per aggiungerlo qui." }, a = { clearReset: "Svuota la tela", exportJSON: "Esporta su file", exportImage: "Esporta immagine...", export: "Salva in...", copyToClipboard: "Copia negli appunti", save: "Salva sul file corrente", saveAs: "Salva con nome", load: "Apri", getShareableLink: "Ottieni link condivisibile", close: "Chiudi", selectLanguage: "Seleziona lingua", scrollBackToContent: "Scorri indietro fino al contenuto", zoomIn: "Aumenta ingrandimento", zoomOut: "Riduci ingrandimento", resetZoom: "Ripristina ingrandimento", menu: "Menù", done: "Fatto", edit: "Modifica", undo: "Annulla", redo: "Ripeti", resetLibrary: "Ripristina libreria", createNewRoom: "Crea nuova stanza", fullScreen: "Schermo intero", darkMode: "Tema scuro", lightMode: "Tema chiaro", zenMode: "Modalità Zen", objectsSnapMode: "Aggancia agli oggetti", exitZenMode: "Uscire dalla modalità zen", cancel: "Annulla", clear: "Cancella", remove: "Rimuovi", embed: "Attiva/disattiva incorporamento", publishLibrary: "Pubblica", submit: "Invia", confirm: "Conferma", embeddableInteractionButton: "Clicca per interagire" }, o = { clearReset: "Questa azione cancellerà l'intera tela. Sei sicuro?", couldNotCreateShareableLink: "Non riesco a creare un link condivisibile.", couldNotCreateShareableLinkTooBig: "Impossibile creare il link condivisibile: la scena è troppo grande", couldNotLoadInvalidFile: "Impossibile caricare un file no valido", importBackendFailed: "Importazione dal server fallita.", cannotExportEmptyCanvas: "Non è possibile esportare una tela vuota.", couldNotCopyToClipboard: "Impossibile copiare negli appunti.", decryptFailed: "Impossibile decriptare i dati.", uploadedSecurly: "L'upload è stato protetto con la crittografia end-to-end, il che significa che il server Excalidraw e terze parti non possono leggere il contenuto.", loadSceneOverridePrompt: "Se carichi questo disegno esterno, sostituirà quello che hai. Vuoi continuare?", collabStopOverridePrompt: `Interrompere la sessione sovrascriverà il precedente disegno memorizzato localmente. Sei sicuro?
|
|
3
3
|
|
|
4
4
|
(Se vuoi mantenere il tuo disegno locale, chiudi semplicemente la scheda del browser.)`, errorAddingToLibrary: "Impossibile aggiungere l'elemento alla libreria", errorRemovingFromLibrary: "Impossibile rimuovere l'elemento dalla libreria", confirmAddLibrary: "Questo aggiungerà {{numShapes}} forma(e) alla tua libreria. Sei sicuro?", imageDoesNotContainScene: "Questa immagine pare non contenere alcuna scena. Avevi incluso la scena durante l'esportazione?", cannotRestoreFromImage: "Impossibile ripristinare la scena da questo file immagine", invalidSceneUrl: "Impossibile importare la scena dall'URL fornito. Potrebbe essere malformato o non contenere dati JSON Excalidraw validi.", resetLibrary: "Questa azione cancellerà l'intera libreria. Sei sicuro?", removeItemsFromsLibrary: "Eliminare {{count}} elementi dalla libreria?", invalidEncryptionKey: "La chiave di cifratura deve essere composta da 22 caratteri. La collaborazione live è disabilitata.", collabOfflineWarning: `Nessuna connessione internet disponibile.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { s as A, d as S, p as G } from "./layers.
|
|
2
|
-
import { g as
|
|
1
|
+
import { s as A, d as S, p as G } from "./layers.DyUhnefH.js";
|
|
2
|
+
import { g as v, l as y, d as B, e as W, r as $, u as M, X as I } from "./layers.B-eOoyQV.js";
|
|
3
3
|
import "lodash-es";
|
|
4
4
|
import { l as X } from "./layers.D4fGb2cV.js";
|
|
5
5
|
import { G as O } from "./layers.C7lIplJU.js";
|
|
6
|
-
import "./layers.
|
|
7
|
-
import { l as P } from "./layers
|
|
8
|
-
let
|
|
6
|
+
import "./layers.DAkVONDW.js";
|
|
7
|
+
import { l as P } from "./layers.Dx5bTjWn.js";
|
|
8
|
+
let H = 0;
|
|
9
9
|
const Y = function(i, a, t, o, p) {
|
|
10
10
|
const g = function(e) {
|
|
11
11
|
switch (e) {
|
|
@@ -26,7 +26,7 @@ const Y = function(i, a, t, o, p) {
|
|
|
26
26
|
return e.x;
|
|
27
27
|
}).y(function(e) {
|
|
28
28
|
return e.y;
|
|
29
|
-
}).curve($), n = i.append("path").attr("d", c(s)).attr("id", "edge" +
|
|
29
|
+
}).curve($), n = i.append("path").attr("d", c(s)).attr("id", "edge" + H).attr("class", "relation");
|
|
30
30
|
let r = "";
|
|
31
31
|
o.arrowMarkerAbsolute && (r = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, r = r.replace(/\(/g, "\\("), r = r.replace(/\)/g, "\\)")), t.relation.lineType == 1 && n.attr("class", "relation dashed-line"), t.relation.lineType == 10 && n.attr("class", "relation dotted-line"), t.relation.type1 !== "none" && n.attr(
|
|
32
32
|
"marker-start",
|
|
@@ -39,7 +39,7 @@ const Y = function(i, a, t, o, p) {
|
|
|
39
39
|
const x = a.points.length;
|
|
40
40
|
let b = M.calcLabelPosition(a.points);
|
|
41
41
|
f = b.x, h = b.y;
|
|
42
|
-
let
|
|
42
|
+
let u, m, w, k;
|
|
43
43
|
if (x % 2 !== 0 && x > 1) {
|
|
44
44
|
let e = M.calcCardinalityPosition(
|
|
45
45
|
t.relation.type1 !== "none",
|
|
@@ -50,7 +50,7 @@ const Y = function(i, a, t, o, p) {
|
|
|
50
50
|
a.points,
|
|
51
51
|
a.points[x - 1]
|
|
52
52
|
);
|
|
53
|
-
|
|
53
|
+
y.debug("cardinality_1_point " + JSON.stringify(e)), y.debug("cardinality_2_point " + JSON.stringify(d)), u = e.x, m = e.y, w = d.x, k = d.y;
|
|
54
54
|
}
|
|
55
55
|
if (t.title !== void 0) {
|
|
56
56
|
const e = i.append("g").attr("class", "classLabel"), d = e.append("text").attr("class", "label").attr("x", f).attr("y", h).attr("fill", "red").attr("text-anchor", "middle").text(t.title);
|
|
@@ -58,9 +58,9 @@ const Y = function(i, a, t, o, p) {
|
|
|
58
58
|
const l = d.node().getBBox();
|
|
59
59
|
e.insert("rect", ":first-child").attr("class", "box").attr("x", l.x - o.padding / 2).attr("y", l.y - o.padding / 2).attr("width", l.width + o.padding).attr("height", l.height + o.padding);
|
|
60
60
|
}
|
|
61
|
-
|
|
61
|
+
y.info("Rendering relation " + JSON.stringify(t)), t.relationTitle1 !== void 0 && t.relationTitle1 !== "none" && i.append("g").attr("class", "cardinality").append("text").attr("class", "type1").attr("x", u).attr("y", m).attr("fill", "black").attr("font-size", "6").text(t.relationTitle1), t.relationTitle2 !== void 0 && t.relationTitle2 !== "none" && i.append("g").attr("class", "cardinality").append("text").attr("class", "type2").attr("x", w).attr("y", k).attr("fill", "black").attr("font-size", "6").text(t.relationTitle2), H++;
|
|
62
62
|
}, J = function(i, a, t, o) {
|
|
63
|
-
|
|
63
|
+
y.debug("Rendering class ", a, t);
|
|
64
64
|
const p = a.id, g = {
|
|
65
65
|
id: p,
|
|
66
66
|
label: a.id,
|
|
@@ -78,19 +78,19 @@ const Y = function(i, a, t, o, p) {
|
|
|
78
78
|
const f = c.append("tspan").text(r).attr("class", "title");
|
|
79
79
|
n || f.attr("dy", t.textHeight);
|
|
80
80
|
const h = c.node().getBBox().height;
|
|
81
|
-
let x, b,
|
|
81
|
+
let x, b, u;
|
|
82
82
|
if (a.members.length > 0) {
|
|
83
83
|
x = s.append("line").attr("x1", 0).attr("y1", t.padding + h + t.dividerMargin / 2).attr("y2", t.padding + h + t.dividerMargin / 2);
|
|
84
84
|
const d = s.append("text").attr("x", t.padding).attr("y", h + t.dividerMargin + t.textHeight).attr("fill", "white").attr("class", "classText");
|
|
85
85
|
n = !0, a.members.forEach(function(l) {
|
|
86
|
-
|
|
86
|
+
_(d, l, n, t), n = !1;
|
|
87
87
|
}), b = d.node().getBBox();
|
|
88
88
|
}
|
|
89
89
|
if (a.methods.length > 0) {
|
|
90
|
-
|
|
90
|
+
u = s.append("line").attr("x1", 0).attr("y1", t.padding + h + t.dividerMargin + b.height).attr("y2", t.padding + h + t.dividerMargin + b.height);
|
|
91
91
|
const d = s.append("text").attr("x", t.padding).attr("y", h + 2 * t.dividerMargin + b.height + t.textHeight).attr("fill", "white").attr("class", "classText");
|
|
92
92
|
n = !0, a.methods.forEach(function(l) {
|
|
93
|
-
|
|
93
|
+
_(d, l, n, t), n = !1;
|
|
94
94
|
});
|
|
95
95
|
}
|
|
96
96
|
const m = s.node().getBBox();
|
|
@@ -99,12 +99,12 @@ const Y = function(i, a, t, o, p) {
|
|
|
99
99
|
const e = s.insert("rect", ":first-child").attr("x", 0).attr("y", 0).attr("width", m.width + 2 * t.padding).attr("height", m.height + t.padding + 0.5 * t.dividerMargin).attr("class", w).node().getBBox().width;
|
|
100
100
|
return c.node().childNodes.forEach(function(d) {
|
|
101
101
|
d.setAttribute("x", (e - d.getBBox().width) / 2);
|
|
102
|
-
}), a.tooltip && c.insert("title").text(a.tooltip), x && x.attr("x2", e),
|
|
102
|
+
}), a.tooltip && c.insert("title").text(a.tooltip), x && x.attr("x2", e), u && u.attr("x2", e), g.width = e, g.height = m.height + t.padding + 0.5 * t.dividerMargin, g;
|
|
103
103
|
}, C = function(i) {
|
|
104
104
|
let a = i.id;
|
|
105
105
|
return i.type && (a += "<" + I(i.type) + ">"), a;
|
|
106
106
|
}, Z = function(i, a, t, o) {
|
|
107
|
-
|
|
107
|
+
y.debug("Rendering note ", a, t);
|
|
108
108
|
const p = a.id, g = {
|
|
109
109
|
id: p,
|
|
110
110
|
text: a.text,
|
|
@@ -115,7 +115,7 @@ const Y = function(i, a, t, o, p) {
|
|
|
115
115
|
const n = JSON.parse(`"${a.text}"`).split(`
|
|
116
116
|
`);
|
|
117
117
|
n.forEach(function(x) {
|
|
118
|
-
|
|
118
|
+
y.debug(`Adding line: ${x}`), c.append("tspan").text(x).attr("class", "title").attr("dy", t.textHeight);
|
|
119
119
|
});
|
|
120
120
|
const r = s.node().getBBox(), h = s.insert("rect", ":first-child").attr("x", 0).attr("y", 0).attr("width", r.width + 2 * t.padding).attr(
|
|
121
121
|
"height",
|
|
@@ -124,7 +124,7 @@ const Y = function(i, a, t, o, p) {
|
|
|
124
124
|
return c.node().childNodes.forEach(function(x) {
|
|
125
125
|
x.setAttribute("x", (h - x.getBBox().width) / 2);
|
|
126
126
|
}), g.width = h, g.height = r.height + n.length * t.textHeight + t.padding + 0.5 * t.dividerMargin, g;
|
|
127
|
-
},
|
|
127
|
+
}, _ = function(i, a, t, o) {
|
|
128
128
|
const { displayText: p, cssStyle: g } = a.getDisplayDetails(), s = i.append("tspan").attr("x", o.padding).text(p);
|
|
129
129
|
g !== "" && s.attr("style", a.cssStyle), t || s.attr("dy", o.textHeight);
|
|
130
130
|
}, N = {
|
|
@@ -141,9 +141,9 @@ const E = 20, L = function(i) {
|
|
|
141
141
|
}, R = function(i) {
|
|
142
142
|
i.append("defs").append("marker").attr("id", "extensionStart").attr("class", "extension").attr("refX", 0).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 1,7 L18,13 V 1 Z"), i.append("defs").append("marker").attr("id", "extensionEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 1,1 V 13 L18,7 Z"), i.append("defs").append("marker").attr("id", "compositionStart").attr("class", "extension").attr("refX", 0).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), i.append("defs").append("marker").attr("id", "compositionEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), i.append("defs").append("marker").attr("id", "aggregationStart").attr("class", "extension").attr("refX", 0).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), i.append("defs").append("marker").attr("id", "aggregationEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), i.append("defs").append("marker").attr("id", "dependencyStart").attr("class", "extension").attr("refX", 0).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 5,7 L9,13 L1,7 L9,1 Z"), i.append("defs").append("marker").attr("id", "dependencyEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
|
|
143
143
|
}, F = function(i, a, t, o) {
|
|
144
|
-
const p =
|
|
145
|
-
T = {},
|
|
146
|
-
const g =
|
|
144
|
+
const p = v().class;
|
|
145
|
+
T = {}, y.info("Rendering diagram " + i);
|
|
146
|
+
const g = v().securityLevel;
|
|
147
147
|
let s;
|
|
148
148
|
g === "sandbox" && (s = B("#i" + a));
|
|
149
149
|
const c = g === "sandbox" ? B(s.nodes()[0].contentDocument.body) : B("body"), n = c.select(`[id='${a}']`);
|
|
@@ -159,10 +159,10 @@ const E = 20, L = function(i) {
|
|
|
159
159
|
const f = o.db.getClasses(), h = Object.keys(f);
|
|
160
160
|
for (const e of h) {
|
|
161
161
|
const d = f[e], l = N.drawClass(n, d, p, o);
|
|
162
|
-
T[l.id] = l, r.setNode(l.id, l),
|
|
162
|
+
T[l.id] = l, r.setNode(l.id, l), y.info("Org height: " + l.height);
|
|
163
163
|
}
|
|
164
164
|
o.db.getRelations().forEach(function(e) {
|
|
165
|
-
|
|
165
|
+
y.info(
|
|
166
166
|
// cspell:ignore tjoho
|
|
167
167
|
"tjoho" + L(e.id1) + L(e.id2) + JSON.stringify(e)
|
|
168
168
|
), r.setEdge(
|
|
@@ -174,7 +174,7 @@ const E = 20, L = function(i) {
|
|
|
174
174
|
e.title || "DEFAULT"
|
|
175
175
|
);
|
|
176
176
|
}), o.db.getNotes().forEach(function(e) {
|
|
177
|
-
|
|
177
|
+
y.debug(`Adding note: ${JSON.stringify(e)}`);
|
|
178
178
|
const d = N.drawNote(n, e, p, o);
|
|
179
179
|
T[d.id] = d, r.setNode(d.id, d), e.class && e.class in f && r.setEdge(
|
|
180
180
|
e.id,
|
|
@@ -193,17 +193,17 @@ const E = 20, L = function(i) {
|
|
|
193
193
|
"DEFAULT"
|
|
194
194
|
);
|
|
195
195
|
}), X(r), r.nodes().forEach(function(e) {
|
|
196
|
-
e !== void 0 && r.node(e) !== void 0 && (
|
|
196
|
+
e !== void 0 && r.node(e) !== void 0 && (y.debug("Node " + e + ": " + JSON.stringify(r.node(e))), c.select("#" + (o.db.lookUpDomId(e) || e)).attr(
|
|
197
197
|
"transform",
|
|
198
198
|
"translate(" + (r.node(e).x - r.node(e).width / 2) + "," + (r.node(e).y - r.node(e).height / 2) + " )"
|
|
199
199
|
));
|
|
200
200
|
}), r.edges().forEach(function(e) {
|
|
201
|
-
e !== void 0 && r.edge(e) !== void 0 && (
|
|
201
|
+
e !== void 0 && r.edge(e) !== void 0 && (y.debug("Edge " + e.v + " -> " + e.w + ": " + JSON.stringify(r.edge(e))), N.drawEdge(n, r.edge(e), r.edge(e).relation, p, o));
|
|
202
202
|
});
|
|
203
|
-
const
|
|
203
|
+
const u = n.node().getBBox(), m = u.width + E * 2, w = u.height + E * 2;
|
|
204
204
|
W(n, w, m, p.useMaxWidth);
|
|
205
|
-
const k = `${
|
|
206
|
-
|
|
205
|
+
const k = `${u.x - E} ${u.y - E} ${m} ${w}`;
|
|
206
|
+
y.debug(`viewBox ${k}`), n.attr("viewBox", k);
|
|
207
207
|
}, U = {
|
|
208
208
|
draw: F
|
|
209
209
|
}, tt = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("./layers.BLSqqbWP.js"),t=require("./layers.CBXpUMze.js");require("lodash-es");const z=require("./layers.COAF7f8g.js"),T=require("./layers.9QK1wiQj.js");require("./layers.B8i9d7Qz.js");const L=require("./layers.CGX7Piy7.js"),P=e=>e.append("circle").attr("class","start-state").attr("r",t.getConfig().state.sizeUnit).attr("cx",t.getConfig().state.padding+t.getConfig().state.sizeUnit).attr("cy",t.getConfig().state.padding+t.getConfig().state.sizeUnit),A=e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t.getConfig().state.textHeight).attr("class","divider").attr("x2",t.getConfig().state.textHeight*2).attr("y1",0).attr("y2",0),G=(e,n)=>{const r=e.append("text").attr("x",2*t.getConfig().state.padding).attr("y",t.getConfig().state.textHeight+2*t.getConfig().state.padding).attr("font-size",t.getConfig().state.fontSize).attr("class","state-title").text(n.id),g=r.node().getBBox();return e.insert("rect",":first-child").attr("x",t.getConfig().state.padding).attr("y",t.getConfig().state.padding).attr("width",g.width+2*t.getConfig().state.padding).attr("height",g.height+2*t.getConfig().state.padding).attr("rx",t.getConfig().state.radius),r},W=(e,n)=>{const r=function(c,w,y){const S=c.append("tspan").attr("x",2*t.getConfig().state.padding).text(w);y||S.attr("dy",t.getConfig().state.textHeight)},a=e.append("text").attr("x",2*t.getConfig().state.padding).attr("y",t.getConfig().state.textHeight+1.3*t.getConfig().state.padding).attr("font-size",t.getConfig().state.fontSize).attr("class","state-title").text(n.descriptions[0]).node().getBBox(),l=a.height,h=e.append("text").attr("x",t.getConfig().state.padding).attr("y",l+t.getConfig().state.padding*.4+t.getConfig().state.dividerMargin+t.getConfig().state.textHeight).attr("class","state-description");let i=!0,s=!0;n.descriptions.forEach(function(c){i||(r(h,c,s),s=!1),i=!1});const C=e.append("line").attr("x1",t.getConfig().state.padding).attr("y1",t.getConfig().state.padding+l+t.getConfig().state.dividerMargin/2).attr("y2",t.getConfig().state.padding+l+t.getConfig().state.dividerMargin/2).attr("class","descr-divider"),p=h.node().getBBox(),d=Math.max(p.width,a.width);return C.attr("x2",d+3*t.getConfig().state.padding),e.insert("rect",":first-child").attr("x",t.getConfig().state.padding).attr("y",t.getConfig().state.padding).attr("width",d+2*t.getConfig().state.padding).attr("height",p.height+l+2*t.getConfig().state.padding).attr("rx",t.getConfig().state.radius),e},R=(e,n,r)=>{const g=t.getConfig().state.padding,a=2*t.getConfig().state.padding,l=e.node().getBBox(),h=l.width,i=l.x,s=e.append("text").attr("x",0).attr("y",t.getConfig().state.titleShift).attr("font-size",t.getConfig().state.fontSize).attr("class","state-title").text(n.id),p=s.node().getBBox().width+a;let d=Math.max(p,h);d===h&&(d=d+a);let c;const w=e.node().getBBox();n.doc,c=i-g,p>h&&(c=(h-d)/2+g),Math.abs(i-w.x)<g&&p>h&&(c=i-(p-h)/2);const y=1-t.getConfig().state.textHeight;return e.insert("rect",":first-child").attr("x",c).attr("y",y).attr("class",r?"alt-composit":"composit").attr("width",d).attr("height",w.height+t.getConfig().state.textHeight+t.getConfig().state.titleShift+1).attr("rx","0"),s.attr("x",c+g),p<=h&&s.attr("x",i+(d-a)/2-p/2+g),e.insert("rect",":first-child").attr("x",c).attr("y",t.getConfig().state.titleShift-t.getConfig().state.textHeight-t.getConfig().state.padding).attr("width",d).attr("height",t.getConfig().state.textHeight*3).attr("rx",t.getConfig().state.radius),e.insert("rect",":first-child").attr("x",c).attr("y",t.getConfig().state.titleShift-t.getConfig().state.textHeight-t.getConfig().state.padding).attr("width",d).attr("height",w.height+3+2*t.getConfig().state.textHeight).attr("rx",t.getConfig().state.radius),e},U=e=>(e.append("circle").attr("class","end-state-outer").attr("r",t.getConfig().state.sizeUnit+t.getConfig().state.miniPadding).attr("cx",t.getConfig().state.padding+t.getConfig().state.sizeUnit+t.getConfig().state.miniPadding).attr("cy",t.getConfig().state.padding+t.getConfig().state.sizeUnit+t.getConfig().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t.getConfig().state.sizeUnit).attr("cx",t.getConfig().state.padding+t.getConfig().state.sizeUnit+2).attr("cy",t.getConfig().state.padding+t.getConfig().state.sizeUnit+2)),q=(e,n)=>{let r=t.getConfig().state.forkWidth,g=t.getConfig().state.forkHeight;if(n.parentId){let a=r;r=g,g=a}return e.append("rect").style("stroke","black").style("fill","black").attr("width",r).attr("height",g).attr("x",t.getConfig().state.padding).attr("y",t.getConfig().state.padding)},F=(e,n,r,g)=>{let a=0;const l=g.append("text");l.style("text-anchor","start"),l.attr("class","noteText");let h=e.replace(/\r\n/g,"<br/>");h=h.replace(/\n/g,"<br/>");const i=h.split(t.common$1.lineBreakRegex);let s=1.25*t.getConfig().state.noteMargin;for(const C of i){const p=C.trim();if(p.length>0){const d=l.append("tspan");if(d.text(p),s===0){const c=d.node().getBBox();s+=c.height}a+=s,d.attr("x",n+t.getConfig().state.noteMargin),d.attr("y",r+a+1.25*t.getConfig().state.noteMargin)}}return{textWidth:l.node().getBBox().width,textHeight:a}},O=(e,n)=>{n.attr("class","state-note");const r=n.append("rect").attr("x",0).attr("y",t.getConfig().state.padding),g=n.append("g"),{textWidth:a,textHeight:l}=F(e,0,0,g);return r.attr("height",l+2*t.getConfig().state.noteMargin),r.attr("width",a+t.getConfig().state.noteMargin*2),r},M=function(e,n){const r=n.id,g={id:r,label:n.id,width:0,height:0},a=e.append("g").attr("id",r).attr("class","stateGroup");n.type==="start"&&P(a),n.type==="end"&&U(a),(n.type==="fork"||n.type==="join")&&q(a,n),n.type==="note"&&O(n.note.text,a),n.type==="divider"&&A(a),n.type==="default"&&n.descriptions.length===0&&G(a,n),n.type==="default"&&n.descriptions.length>0&&W(a,n);const l=a.node().getBBox();return g.width=l.width+2*t.getConfig().state.padding,g.height=l.height+2*t.getConfig().state.padding,g};let H=0;const X=function(e,n,r){const g=function(s){switch(s){case m.db.relationType.AGGREGATION:return"aggregation";case m.db.relationType.EXTENSION:return"extension";case m.db.relationType.COMPOSITION:return"composition";case m.db.relationType.DEPENDENCY:return"dependency"}};n.points=n.points.filter(s=>!Number.isNaN(s.y));const a=n.points,l=L.line().x(function(s){return s.x}).y(function(s){return s.y}).curve(t.curveBasis),h=e.append("path").attr("d",l(a)).attr("id","edge"+H).attr("class","transition");let i="";if(t.getConfig().state.arrowMarkerAbsolute&&(i=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,i=i.replace(/\(/g,"\\("),i=i.replace(/\)/g,"\\)")),h.attr("marker-end","url("+i+"#"+g(m.db.relationType.DEPENDENCY)+"End)"),r.title!==void 0){const s=e.append("g").attr("class","stateLabel"),{x:C,y:p}=t.utils.calcLabelPosition(n.points),d=t.common$1.getRows(r.title);let c=0;const w=[];let y=0,S=0;for(let x=0;x<=d.length;x++){const f=s.append("text").attr("text-anchor","middle").text(d[x]).attr("x",C).attr("y",p+c),u=f.node().getBBox();y=Math.max(y,u.width),S=Math.min(S,u.x),t.log$1.info(u.x,C,p+c),c===0&&(c=f.node().getBBox().height,t.log$1.info("Title height",c,p)),w.push(f)}let E=c*d.length;if(d.length>1){const x=(d.length-1)*c*.5;w.forEach((f,u)=>f.attr("y",p+u*c-x)),E=c*d.length}const o=s.node().getBBox();s.insert("rect",":first-child").attr("class","box").attr("x",C-y/2-t.getConfig().state.padding/2).attr("y",p-E/2-t.getConfig().state.padding/2-3.5).attr("width",y+t.getConfig().state.padding).attr("height",E+t.getConfig().state.padding),t.log$1.info(o)}H++};let b;const N={},v=function(){},J=function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},Y=function(e,n,r,g){b=t.getConfig().state;const a=t.getConfig().securityLevel;let l;a==="sandbox"&&(l=t.select("#i"+n));const h=a==="sandbox"?t.select(l.nodes()[0].contentDocument.body):t.select("body"),i=a==="sandbox"?l.nodes()[0].contentDocument:document;t.log$1.debug("Rendering diagram "+e);const s=h.select(`[id='${n}']`);J(s);const C=g.db.getRootDoc();$(C,s,void 0,!1,h,i,g);const p=b.padding,d=s.node().getBBox(),c=d.width+p*2,w=d.height+p*2,y=c*1.75;t.configureSvgSize(s,w,y,b.useMaxWidth),s.attr("viewBox",`${d.x-b.padding} ${d.y-b.padding} `+c+" "+w)},I=e=>e?e.length*b.fontSizeFactor:1,$=(e,n,r,g,a,l,h)=>{const i=new T.Graph({compound:!0,multigraph:!0});let s,C=!0;for(s=0;s<e.length;s++)if(e[s].stmt==="relation"){C=!1;break}r?i.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:C?1:b.edgeLengthFactor,nodeSep:C?1:50,isMultiGraph:!0}):i.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:C?1:b.edgeLengthFactor,nodeSep:C?1:50,ranker:"tight-tree",isMultiGraph:!0}),i.setDefaultEdgeLabel(function(){return{}}),h.db.extract(e);const p=h.db.getStates(),d=h.db.getRelations(),c=Object.keys(p);for(const o of c){const x=p[o];r&&(x.parentId=r);let f;if(x.doc){let u=n.append("g").attr("id",x.id).attr("class","stateGroup");f=$(x.doc,u,x.id,!g,a,l,h);{u=R(u,x,g);let B=u.node().getBBox();f.width=B.width,f.height=B.height+b.padding/2,N[x.id]={y:b.compositTitleSize}}}else f=M(n,x);if(x.note){const u={descriptions:[],id:x.id+"-note",note:x.note,type:"note"},B=M(n,u);x.note.position==="left of"?(i.setNode(f.id+"-note",B),i.setNode(f.id,f)):(i.setNode(f.id,f),i.setNode(f.id+"-note",B)),i.setParent(f.id,f.id+"-group"),i.setParent(f.id+"-note",f.id+"-group")}else i.setNode(f.id,f)}t.log$1.debug("Count=",i.nodeCount(),i);let w=0;d.forEach(function(o){w++,t.log$1.debug("Setting edge",o),i.setEdge(o.id1,o.id2,{relation:o,width:I(o.title),height:b.labelHeight*t.common$1.getRows(o.title).length,labelpos:"c"},"id"+w)}),z.layout(i),t.log$1.debug("Graph after layout",i.nodes());const y=n.node();i.nodes().forEach(function(o){o!==void 0&&i.node(o)!==void 0?(t.log$1.warn("Node "+o+": "+JSON.stringify(i.node(o))),a.select("#"+y.id+" #"+o).attr("transform","translate("+(i.node(o).x-i.node(o).width/2)+","+(i.node(o).y+(N[o]?N[o].y:0)-i.node(o).height/2)+" )"),a.select("#"+y.id+" #"+o).attr("data-x-shift",i.node(o).x-i.node(o).width/2),l.querySelectorAll("#"+y.id+" #"+o+" .divider").forEach(f=>{const u=f.parentElement;let B=0,k=0;u&&(u.parentElement&&(B=u.parentElement.getBBox().width),k=parseInt(u.getAttribute("data-x-shift"),10),Number.isNaN(k)&&(k=0)),f.setAttribute("x1",0-k+8),f.setAttribute("x2",B-k-8)})):t.log$1.debug("No Node "+o+": "+JSON.stringify(i.node(o)))});let S=y.getBBox();i.edges().forEach(function(o){o!==void 0&&i.edge(o)!==void 0&&(t.log$1.debug("Edge "+o.v+" -> "+o.w+": "+JSON.stringify(i.edge(o))),X(n,i.edge(o),i.edge(o).relation))}),S=y.getBBox();const E={id:r||"root",label:r||"root",width:0,height:0};return E.width=S.width+2*b.padding,E.height=S.height+2*b.padding,t.log$1.debug("Doc rendered",E,i),E},_={setConf:v,draw:Y},Z={parser:m.parser$1,db:m.db,renderer:_,styles:m.styles,init:e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute,m.db.clear()}};exports.diagram=Z;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("./layers.CgdtQipl.js"),t=require("./layers.0Uws2RMI.js");require("lodash-es");const z=require("./layers.COAF7f8g.js"),T=require("./layers.9QK1wiQj.js");require("./layers.qzkyQd0J.js");const L=require("./layers.BtP6vWIY.js"),P=e=>e.append("circle").attr("class","start-state").attr("r",t.getConfig().state.sizeUnit).attr("cx",t.getConfig().state.padding+t.getConfig().state.sizeUnit).attr("cy",t.getConfig().state.padding+t.getConfig().state.sizeUnit),A=e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t.getConfig().state.textHeight).attr("class","divider").attr("x2",t.getConfig().state.textHeight*2).attr("y1",0).attr("y2",0),G=(e,n)=>{const r=e.append("text").attr("x",2*t.getConfig().state.padding).attr("y",t.getConfig().state.textHeight+2*t.getConfig().state.padding).attr("font-size",t.getConfig().state.fontSize).attr("class","state-title").text(n.id),d=r.node().getBBox();return e.insert("rect",":first-child").attr("x",t.getConfig().state.padding).attr("y",t.getConfig().state.padding).attr("width",d.width+2*t.getConfig().state.padding).attr("height",d.height+2*t.getConfig().state.padding).attr("rx",t.getConfig().state.radius),r},W=(e,n)=>{const r=function(c,w,y){const S=c.append("tspan").attr("x",2*t.getConfig().state.padding).text(w);y||S.attr("dy",t.getConfig().state.textHeight)},a=e.append("text").attr("x",2*t.getConfig().state.padding).attr("y",t.getConfig().state.textHeight+1.3*t.getConfig().state.padding).attr("font-size",t.getConfig().state.fontSize).attr("class","state-title").text(n.descriptions[0]).node().getBBox(),l=a.height,f=e.append("text").attr("x",t.getConfig().state.padding).attr("y",l+t.getConfig().state.padding*.4+t.getConfig().state.dividerMargin+t.getConfig().state.textHeight).attr("class","state-description");let i=!0,s=!0;n.descriptions.forEach(function(c){i||(r(f,c,s),s=!1),i=!1});const C=e.append("line").attr("x1",t.getConfig().state.padding).attr("y1",t.getConfig().state.padding+l+t.getConfig().state.dividerMargin/2).attr("y2",t.getConfig().state.padding+l+t.getConfig().state.dividerMargin/2).attr("class","descr-divider"),p=f.node().getBBox(),g=Math.max(p.width,a.width);return C.attr("x2",g+3*t.getConfig().state.padding),e.insert("rect",":first-child").attr("x",t.getConfig().state.padding).attr("y",t.getConfig().state.padding).attr("width",g+2*t.getConfig().state.padding).attr("height",p.height+l+2*t.getConfig().state.padding).attr("rx",t.getConfig().state.radius),e},v=(e,n,r)=>{const d=t.getConfig().state.padding,a=2*t.getConfig().state.padding,l=e.node().getBBox(),f=l.width,i=l.x,s=e.append("text").attr("x",0).attr("y",t.getConfig().state.titleShift).attr("font-size",t.getConfig().state.fontSize).attr("class","state-title").text(n.id),p=s.node().getBBox().width+a;let g=Math.max(p,f);g===f&&(g=g+a);let c;const w=e.node().getBBox();n.doc,c=i-d,p>f&&(c=(f-g)/2+d),Math.abs(i-w.x)<d&&p>f&&(c=i-(p-f)/2);const y=1-t.getConfig().state.textHeight;return e.insert("rect",":first-child").attr("x",c).attr("y",y).attr("class",r?"alt-composit":"composit").attr("width",g).attr("height",w.height+t.getConfig().state.textHeight+t.getConfig().state.titleShift+1).attr("rx","0"),s.attr("x",c+d),p<=f&&s.attr("x",i+(g-a)/2-p/2+d),e.insert("rect",":first-child").attr("x",c).attr("y",t.getConfig().state.titleShift-t.getConfig().state.textHeight-t.getConfig().state.padding).attr("width",g).attr("height",t.getConfig().state.textHeight*3).attr("rx",t.getConfig().state.radius),e.insert("rect",":first-child").attr("x",c).attr("y",t.getConfig().state.titleShift-t.getConfig().state.textHeight-t.getConfig().state.padding).attr("width",g).attr("height",w.height+3+2*t.getConfig().state.textHeight).attr("rx",t.getConfig().state.radius),e},R=e=>(e.append("circle").attr("class","end-state-outer").attr("r",t.getConfig().state.sizeUnit+t.getConfig().state.miniPadding).attr("cx",t.getConfig().state.padding+t.getConfig().state.sizeUnit+t.getConfig().state.miniPadding).attr("cy",t.getConfig().state.padding+t.getConfig().state.sizeUnit+t.getConfig().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t.getConfig().state.sizeUnit).attr("cx",t.getConfig().state.padding+t.getConfig().state.sizeUnit+2).attr("cy",t.getConfig().state.padding+t.getConfig().state.sizeUnit+2)),U=(e,n)=>{let r=t.getConfig().state.forkWidth,d=t.getConfig().state.forkHeight;if(n.parentId){let a=r;r=d,d=a}return e.append("rect").style("stroke","black").style("fill","black").attr("width",r).attr("height",d).attr("x",t.getConfig().state.padding).attr("y",t.getConfig().state.padding)},q=(e,n,r,d)=>{let a=0;const l=d.append("text");l.style("text-anchor","start"),l.attr("class","noteText");let f=e.replace(/\r\n/g,"<br/>");f=f.replace(/\n/g,"<br/>");const i=f.split(t.common$1.lineBreakRegex);let s=1.25*t.getConfig().state.noteMargin;for(const C of i){const p=C.trim();if(p.length>0){const g=l.append("tspan");if(g.text(p),s===0){const c=g.node().getBBox();s+=c.height}a+=s,g.attr("x",n+t.getConfig().state.noteMargin),g.attr("y",r+a+1.25*t.getConfig().state.noteMargin)}}return{textWidth:l.node().getBBox().width,textHeight:a}},F=(e,n)=>{n.attr("class","state-note");const r=n.append("rect").attr("x",0).attr("y",t.getConfig().state.padding),d=n.append("g"),{textWidth:a,textHeight:l}=q(e,0,0,d);return r.attr("height",l+2*t.getConfig().state.noteMargin),r.attr("width",a+t.getConfig().state.noteMargin*2),r},M=function(e,n){const r=n.id,d={id:r,label:n.id,width:0,height:0},a=e.append("g").attr("id",r).attr("class","stateGroup");n.type==="start"&&P(a),n.type==="end"&&R(a),(n.type==="fork"||n.type==="join")&&U(a,n),n.type==="note"&&F(n.note.text,a),n.type==="divider"&&A(a),n.type==="default"&&n.descriptions.length===0&&G(a,n),n.type==="default"&&n.descriptions.length>0&&W(a,n);const l=a.node().getBBox();return d.width=l.width+2*t.getConfig().state.padding,d.height=l.height+2*t.getConfig().state.padding,d};let H=0;const O=function(e,n,r){const d=function(s){switch(s){case m.db.relationType.AGGREGATION:return"aggregation";case m.db.relationType.EXTENSION:return"extension";case m.db.relationType.COMPOSITION:return"composition";case m.db.relationType.DEPENDENCY:return"dependency"}};n.points=n.points.filter(s=>!Number.isNaN(s.y));const a=n.points,l=L.line().x(function(s){return s.x}).y(function(s){return s.y}).curve(t.curveBasis),f=e.append("path").attr("d",l(a)).attr("id","edge"+H).attr("class","transition");let i="";if(t.getConfig().state.arrowMarkerAbsolute&&(i=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,i=i.replace(/\(/g,"\\("),i=i.replace(/\)/g,"\\)")),f.attr("marker-end","url("+i+"#"+d(m.db.relationType.DEPENDENCY)+"End)"),r.title!==void 0){const s=e.append("g").attr("class","stateLabel"),{x:C,y:p}=t.utils.calcLabelPosition(n.points),g=t.common$1.getRows(r.title);let c=0;const w=[];let y=0,S=0;for(let x=0;x<=g.length;x++){const h=s.append("text").attr("text-anchor","middle").text(g[x]).attr("x",C).attr("y",p+c),u=h.node().getBBox();y=Math.max(y,u.width),S=Math.min(S,u.x),t.log$1.info(u.x,C,p+c),c===0&&(c=h.node().getBBox().height,t.log$1.info("Title height",c,p)),w.push(h)}let E=c*g.length;if(g.length>1){const x=(g.length-1)*c*.5;w.forEach((h,u)=>h.attr("y",p+u*c-x)),E=c*g.length}const o=s.node().getBBox();s.insert("rect",":first-child").attr("class","box").attr("x",C-y/2-t.getConfig().state.padding/2).attr("y",p-E/2-t.getConfig().state.padding/2-3.5).attr("width",y+t.getConfig().state.padding).attr("height",E+t.getConfig().state.padding),t.log$1.info(o)}H++};let b;const N={},X=function(){},J=function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},Y=function(e,n,r,d){b=t.getConfig().state;const a=t.getConfig().securityLevel;let l;a==="sandbox"&&(l=t.select("#i"+n));const f=a==="sandbox"?t.select(l.nodes()[0].contentDocument.body):t.select("body"),i=a==="sandbox"?l.nodes()[0].contentDocument:document;t.log$1.debug("Rendering diagram "+e);const s=f.select(`[id='${n}']`);J(s);const C=d.db.getRootDoc();$(C,s,void 0,!1,f,i,d);const p=b.padding,g=s.node().getBBox(),c=g.width+p*2,w=g.height+p*2,y=c*1.75;t.configureSvgSize(s,w,y,b.useMaxWidth),s.attr("viewBox",`${g.x-b.padding} ${g.y-b.padding} `+c+" "+w)},I=e=>e?e.length*b.fontSizeFactor:1,$=(e,n,r,d,a,l,f)=>{const i=new T.Graph({compound:!0,multigraph:!0});let s,C=!0;for(s=0;s<e.length;s++)if(e[s].stmt==="relation"){C=!1;break}r?i.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:C?1:b.edgeLengthFactor,nodeSep:C?1:50,isMultiGraph:!0}):i.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:C?1:b.edgeLengthFactor,nodeSep:C?1:50,ranker:"tight-tree",isMultiGraph:!0}),i.setDefaultEdgeLabel(function(){return{}}),f.db.extract(e);const p=f.db.getStates(),g=f.db.getRelations(),c=Object.keys(p);for(const o of c){const x=p[o];r&&(x.parentId=r);let h;if(x.doc){let u=n.append("g").attr("id",x.id).attr("class","stateGroup");h=$(x.doc,u,x.id,!d,a,l,f);{u=v(u,x,d);let B=u.node().getBBox();h.width=B.width,h.height=B.height+b.padding/2,N[x.id]={y:b.compositTitleSize}}}else h=M(n,x);if(x.note){const u={descriptions:[],id:x.id+"-note",note:x.note,type:"note"},B=M(n,u);x.note.position==="left of"?(i.setNode(h.id+"-note",B),i.setNode(h.id,h)):(i.setNode(h.id,h),i.setNode(h.id+"-note",B)),i.setParent(h.id,h.id+"-group"),i.setParent(h.id+"-note",h.id+"-group")}else i.setNode(h.id,h)}t.log$1.debug("Count=",i.nodeCount(),i);let w=0;g.forEach(function(o){w++,t.log$1.debug("Setting edge",o),i.setEdge(o.id1,o.id2,{relation:o,width:I(o.title),height:b.labelHeight*t.common$1.getRows(o.title).length,labelpos:"c"},"id"+w)}),z.layout(i),t.log$1.debug("Graph after layout",i.nodes());const y=n.node();i.nodes().forEach(function(o){o!==void 0&&i.node(o)!==void 0?(t.log$1.warn("Node "+o+": "+JSON.stringify(i.node(o))),a.select("#"+y.id+" #"+o).attr("transform","translate("+(i.node(o).x-i.node(o).width/2)+","+(i.node(o).y+(N[o]?N[o].y:0)-i.node(o).height/2)+" )"),a.select("#"+y.id+" #"+o).attr("data-x-shift",i.node(o).x-i.node(o).width/2),l.querySelectorAll("#"+y.id+" #"+o+" .divider").forEach(h=>{const u=h.parentElement;let B=0,k=0;u&&(u.parentElement&&(B=u.parentElement.getBBox().width),k=parseInt(u.getAttribute("data-x-shift"),10),Number.isNaN(k)&&(k=0)),h.setAttribute("x1",0-k+8),h.setAttribute("x2",B-k-8)})):t.log$1.debug("No Node "+o+": "+JSON.stringify(i.node(o)))});let S=y.getBBox();i.edges().forEach(function(o){o!==void 0&&i.edge(o)!==void 0&&(t.log$1.debug("Edge "+o.v+" -> "+o.w+": "+JSON.stringify(i.edge(o))),O(n,i.edge(o),i.edge(o).relation))}),S=y.getBBox();const E={id:r||"root",label:r||"root",width:0,height:0};return E.width=S.width+2*b.padding,E.height=S.height+2*b.padding,t.log$1.debug("Doc rendered",E,i),E},_={setConf:X,draw:Y},Z={parser:m.parser$1,db:m.db,renderer:_,styles:m.styles,init:e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute,m.db.clear()}};exports.diagram=Z;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@layers-app/editor",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.25",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"start": "VITE_LAYERS=true vite --mode full ",
|
|
@@ -92,9 +92,6 @@
|
|
|
92
92
|
"vite-plugin-svgr": "^4.2.0",
|
|
93
93
|
"zustand": "^4.5.4"
|
|
94
94
|
},
|
|
95
|
-
"overrides": {
|
|
96
|
-
"prismjs": "1.30.0"
|
|
97
|
-
},
|
|
98
95
|
"peerDependencies": {
|
|
99
96
|
"@mantine/core": ">=7.17.2",
|
|
100
97
|
"@mantine/dropzone": ">=7.17.2",
|
package/dist/layers.BK01wvsE.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";const F=require("./layers.CBXpUMze.js");var he=function(){var t=function(d1,a,l,f){for(l=l||{},f=d1.length;f--;l[d1[f]]=a);return l},u=[1,4],n=[1,3],r=[1,5],c=[1,8,9,10,11,27,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],o=[2,2],h=[1,13],G=[1,14],T=[1,15],O=[1,16],H=[1,23],o1=[1,25],p1=[1,26],A1=[1,27],_=[1,49],g=[1,48],h1=[1,29],U1=[1,30],G1=[1,31],M1=[1,32],K1=[1,33],B=[1,44],m=[1,46],y=[1,42],V=[1,47],L=[1,43],v=[1,50],I=[1,45],R=[1,51],N=[1,52],Y1=[1,34],j1=[1,35],z1=[1,36],X1=[1,37],R1=[1,57],k=[1,8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],Q=[1,61],Z=[1,60],J=[1,62],H1=[8,9,11,73,75],k1=[1,88],b1=[1,93],D1=[1,92],F1=[1,89],T1=[1,85],C1=[1,91],S1=[1,87],_1=[1,94],x1=[1,90],B1=[1,95],m1=[1,86],q1=[8,9,10,11,73,75],w=[8,9,10,11,44,73,75],K=[8,9,10,11,29,42,44,46,48,50,52,54,56,58,61,63,65,66,68,73,75,86,99,102,103,106,108,111,112,113],de=[8,9,11,42,58,73,75,86,99,102,103,106,108,111,112,113],N1=[42,58,86,99,102,103,106,108,111,112,113],pe=[1,121],Ae=[1,120],Ee=[1,128],ge=[1,142],ke=[1,143],be=[1,144],De=[1,145],Fe=[1,130],Te=[1,132],Ce=[1,136],Se=[1,137],_e=[1,138],xe=[1,139],Be=[1,140],me=[1,141],ye=[1,146],Ve=[1,147],Le=[1,126],ve=[1,127],Ie=[1,134],Re=[1,129],Ne=[1,133],we=[1,131],ne=[8,9,10,11,27,32,34,36,38,42,58,81,82,83,84,85,86,99,102,103,106,108,111,112,113,118,119,120,121],Oe=[1,149],C=[8,9,11],Y=[8,9,10,11,14,42,58,86,102,103,106,108,111,112,113],d=[1,169],P=[1,165],U=[1,166],p=[1,170],A=[1,167],E=[1,168],y1=[75,113,116],b=[8,9,10,11,12,14,27,29,32,42,58,73,81,82,83,84,85,86,87,102,106,108,111,112,113],Pe=[10,103],f1=[31,47,49,51,53,55,60,62,64,65,67,69,113,114,115],$=[1,235],e1=[1,233],t1=[1,237],s1=[1,231],u1=[1,232],n1=[1,234],i1=[1,236],r1=[1,238],V1=[1,255],Ue=[8,9,11,103],W=[8,9,10,11,58,81,102,103,106,107,108,109],ie={trace:function(){},yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,link:39,node:40,styledVertex:41,AMP:42,vertex:43,STYLE_SEPARATOR:44,idString:45,DOUBLECIRCLESTART:46,DOUBLECIRCLEEND:47,PS:48,PE:49,"(-":50,"-)":51,STADIUMSTART:52,STADIUMEND:53,SUBROUTINESTART:54,SUBROUTINEEND:55,VERTEX_WITH_PROPS_START:56,"NODE_STRING[field]":57,COLON:58,"NODE_STRING[value]":59,PIPE:60,CYLINDERSTART:61,CYLINDEREND:62,DIAMOND_START:63,DIAMOND_STOP:64,TAGEND:65,TRAPSTART:66,TRAPEND:67,INVTRAPSTART:68,INVTRAPEND:69,linkStatement:70,arrowText:71,TESTSTR:72,START_LINK:73,edgeText:74,LINK:75,edgeTextToken:76,STR:77,MD_STR:78,textToken:79,keywords:80,STYLE:81,LINKSTYLE:82,CLASSDEF:83,CLASS:84,CLICK:85,DOWN:86,UP:87,textNoTagsToken:88,stylesOpt:89,"idString[vertex]":90,"idString[class]":91,CALLBACKNAME:92,CALLBACKARGS:93,HREF:94,LINK_TARGET:95,"STR[link]":96,"STR[tooltip]":97,alphaNum:98,DEFAULT:99,numList:100,INTERPOLATE:101,NUM:102,COMMA:103,style:104,styleComponent:105,NODE_STRING:106,UNIT:107,BRKT:108,PCT:109,idStringToken:110,MINUS:111,MULT:112,UNICODE_TEXT:113,TEXT:114,TAGSTART:115,EDGE_TEXT:116,alphaNumToken:117,direction_tb:118,direction_bt:119,direction_rl:120,direction_lr:121,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",42:"AMP",44:"STYLE_SEPARATOR",46:"DOUBLECIRCLESTART",47:"DOUBLECIRCLEEND",48:"PS",49:"PE",50:"(-",51:"-)",52:"STADIUMSTART",53:"STADIUMEND",54:"SUBROUTINESTART",55:"SUBROUTINEEND",56:"VERTEX_WITH_PROPS_START",57:"NODE_STRING[field]",58:"COLON",59:"NODE_STRING[value]",60:"PIPE",61:"CYLINDERSTART",62:"CYLINDEREND",63:"DIAMOND_START",64:"DIAMOND_STOP",65:"TAGEND",66:"TRAPSTART",67:"TRAPEND",68:"INVTRAPSTART",69:"INVTRAPEND",72:"TESTSTR",73:"START_LINK",75:"LINK",77:"STR",78:"MD_STR",81:"STYLE",82:"LINKSTYLE",83:"CLASSDEF",84:"CLASS",85:"CLICK",86:"DOWN",87:"UP",90:"idString[vertex]",91:"idString[class]",92:"CALLBACKNAME",93:"CALLBACKARGS",94:"HREF",95:"LINK_TARGET",96:"STR[link]",97:"STR[tooltip]",99:"DEFAULT",101:"INTERPOLATE",102:"NUM",103:"COMMA",106:"NODE_STRING",107:"UNIT",108:"BRKT",109:"PCT",111:"MINUS",112:"MULT",113:"UNICODE_TEXT",114:"TEXT",115:"TAGSTART",116:"EDGE_TEXT",118:"direction_tb",119:"direction_bt",120:"direction_rl",121:"direction_lr"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[20,3],[20,4],[20,2],[20,1],[40,1],[40,5],[41,1],[41,3],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,8],[43,4],[43,4],[43,4],[43,6],[43,4],[43,4],[43,4],[43,4],[43,4],[43,1],[39,2],[39,3],[39,3],[39,1],[39,3],[74,1],[74,2],[74,1],[74,1],[70,1],[71,3],[30,1],[30,2],[30,1],[30,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[100,1],[100,3],[89,1],[89,3],[104,1],[104,2],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[105,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[110,1],[79,1],[79,1],[79,1],[79,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[76,1],[76,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[117,1],[45,1],[45,2],[98,1],[98,2],[33,1],[33,1],[33,1],[33,1]],performAction:function(a,l,f,i,S,e,w1){var s=e.length-1;switch(S){case 2:this.$=[];break;case 3:(!Array.isArray(e[s])||e[s].length>0)&&e[s-1].push(e[s]),this.$=e[s-1];break;case 4:case 176:this.$=e[s];break;case 11:i.setDirection("TB"),this.$="TB";break;case 12:i.setDirection(e[s-1]),this.$=e[s-1];break;case 27:this.$=e[s-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=i.addSubGraph(e[s-6],e[s-1],e[s-4]);break;case 34:this.$=i.addSubGraph(e[s-3],e[s-1],e[s-3]);break;case 35:this.$=i.addSubGraph(void 0,e[s-1],void 0);break;case 37:this.$=e[s].trim(),i.setAccTitle(this.$);break;case 38:case 39:this.$=e[s].trim(),i.setAccDescription(this.$);break;case 43:i.addLink(e[s-2].stmt,e[s],e[s-1]),this.$={stmt:e[s],nodes:e[s].concat(e[s-2].nodes)};break;case 44:i.addLink(e[s-3].stmt,e[s-1],e[s-2]),this.$={stmt:e[s-1],nodes:e[s-1].concat(e[s-3].nodes)};break;case 45:this.$={stmt:e[s-1],nodes:e[s-1]};break;case 46:this.$={stmt:e[s],nodes:e[s]};break;case 47:this.$=[e[s]];break;case 48:this.$=e[s-4].concat(e[s]);break;case 49:this.$=e[s];break;case 50:this.$=e[s-2],i.setClass(e[s-2],e[s]);break;case 51:this.$=e[s-3],i.addVertex(e[s-3],e[s-1],"square");break;case 52:this.$=e[s-3],i.addVertex(e[s-3],e[s-1],"doublecircle");break;case 53:this.$=e[s-5],i.addVertex(e[s-5],e[s-2],"circle");break;case 54:this.$=e[s-3],i.addVertex(e[s-3],e[s-1],"ellipse");break;case 55:this.$=e[s-3],i.addVertex(e[s-3],e[s-1],"stadium");break;case 56:this.$=e[s-3],i.addVertex(e[s-3],e[s-1],"subroutine");break;case 57:this.$=e[s-7],i.addVertex(e[s-7],e[s-1],"rect",void 0,void 0,void 0,Object.fromEntries([[e[s-5],e[s-3]]]));break;case 58:this.$=e[s-3],i.addVertex(e[s-3],e[s-1],"cylinder");break;case 59:this.$=e[s-3],i.addVertex(e[s-3],e[s-1],"round");break;case 60:this.$=e[s-3],i.addVertex(e[s-3],e[s-1],"diamond");break;case 61:this.$=e[s-5],i.addVertex(e[s-5],e[s-2],"hexagon");break;case 62:this.$=e[s-3],i.addVertex(e[s-3],e[s-1],"odd");break;case 63:this.$=e[s-3],i.addVertex(e[s-3],e[s-1],"trapezoid");break;case 64:this.$=e[s-3],i.addVertex(e[s-3],e[s-1],"inv_trapezoid");break;case 65:this.$=e[s-3],i.addVertex(e[s-3],e[s-1],"lean_right");break;case 66:this.$=e[s-3],i.addVertex(e[s-3],e[s-1],"lean_left");break;case 67:this.$=e[s],i.addVertex(e[s]);break;case 68:e[s-1].text=e[s],this.$=e[s-1];break;case 69:case 70:e[s-2].text=e[s-1],this.$=e[s-2];break;case 71:this.$=e[s];break;case 72:var j=i.destructLink(e[s],e[s-2]);this.$={type:j.type,stroke:j.stroke,length:j.length,text:e[s-1]};break;case 73:this.$={text:e[s],type:"text"};break;case 74:this.$={text:e[s-1].text+""+e[s],type:e[s-1].type};break;case 75:this.$={text:e[s],type:"string"};break;case 76:this.$={text:e[s],type:"markdown"};break;case 77:var j=i.destructLink(e[s]);this.$={type:j.type,stroke:j.stroke,length:j.length};break;case 78:this.$=e[s-1];break;case 79:this.$={text:e[s],type:"text"};break;case 80:this.$={text:e[s-1].text+""+e[s],type:e[s-1].type};break;case 81:this.$={text:e[s],type:"string"};break;case 82:case 97:this.$={text:e[s],type:"markdown"};break;case 94:this.$={text:e[s],type:"text"};break;case 95:this.$={text:e[s-1].text+""+e[s],type:e[s-1].type};break;case 96:this.$={text:e[s],type:"text"};break;case 98:this.$=e[s-4],i.addClass(e[s-2],e[s]);break;case 99:this.$=e[s-4],i.setClass(e[s-2],e[s]);break;case 100:case 108:this.$=e[s-1],i.setClickEvent(e[s-1],e[s]);break;case 101:case 109:this.$=e[s-3],i.setClickEvent(e[s-3],e[s-2]),i.setTooltip(e[s-3],e[s]);break;case 102:this.$=e[s-2],i.setClickEvent(e[s-2],e[s-1],e[s]);break;case 103:this.$=e[s-4],i.setClickEvent(e[s-4],e[s-3],e[s-2]),i.setTooltip(e[s-4],e[s]);break;case 104:this.$=e[s-2],i.setLink(e[s-2],e[s]);break;case 105:this.$=e[s-4],i.setLink(e[s-4],e[s-2]),i.setTooltip(e[s-4],e[s]);break;case 106:this.$=e[s-4],i.setLink(e[s-4],e[s-2],e[s]);break;case 107:this.$=e[s-6],i.setLink(e[s-6],e[s-4],e[s]),i.setTooltip(e[s-6],e[s-2]);break;case 110:this.$=e[s-1],i.setLink(e[s-1],e[s]);break;case 111:this.$=e[s-3],i.setLink(e[s-3],e[s-2]),i.setTooltip(e[s-3],e[s]);break;case 112:this.$=e[s-3],i.setLink(e[s-3],e[s-2],e[s]);break;case 113:this.$=e[s-5],i.setLink(e[s-5],e[s-4],e[s]),i.setTooltip(e[s-5],e[s-2]);break;case 114:this.$=e[s-4],i.addVertex(e[s-2],void 0,void 0,e[s]);break;case 115:this.$=e[s-4],i.updateLink([e[s-2]],e[s]);break;case 116:this.$=e[s-4],i.updateLink(e[s-2],e[s]);break;case 117:this.$=e[s-8],i.updateLinkInterpolate([e[s-6]],e[s-2]),i.updateLink([e[s-6]],e[s]);break;case 118:this.$=e[s-8],i.updateLinkInterpolate(e[s-6],e[s-2]),i.updateLink(e[s-6],e[s]);break;case 119:this.$=e[s-6],i.updateLinkInterpolate([e[s-4]],e[s]);break;case 120:this.$=e[s-6],i.updateLinkInterpolate(e[s-4],e[s]);break;case 121:case 123:this.$=[e[s]];break;case 122:case 124:e[s-2].push(e[s]),this.$=e[s-2];break;case 126:this.$=e[s-1]+e[s];break;case 174:this.$=e[s];break;case 175:this.$=e[s-1]+""+e[s];break;case 177:this.$=e[s-1]+""+e[s];break;case 178:this.$={stmt:"dir",value:"TB"};break;case 179:this.$={stmt:"dir",value:"BT"};break;case 180:this.$={stmt:"dir",value:"RL"};break;case 181:this.$={stmt:"dir",value:"LR"};break}},table:[{3:1,4:2,9:u,10:n,12:r},{1:[3]},t(c,o,{5:6}),{4:7,9:u,10:n,12:r},{4:8,9:u,10:n,12:r},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:h,9:G,10:T,11:O,20:17,22:18,23:19,24:20,25:21,26:22,27:H,33:24,34:o1,36:p1,38:A1,40:28,41:38,42:_,43:39,45:40,58:g,81:h1,82:U1,83:G1,84:M1,85:K1,86:B,99:m,102:y,103:V,106:L,108:v,110:41,111:I,112:R,113:N,118:Y1,119:j1,120:z1,121:X1},t(c,[2,9]),t(c,[2,10]),t(c,[2,11]),{8:[1,54],9:[1,55],10:R1,15:53,18:56},t(k,[2,3]),t(k,[2,4]),t(k,[2,5]),t(k,[2,6]),t(k,[2,7]),t(k,[2,8]),{8:Q,9:Z,11:J,21:58,39:59,70:63,73:[1,64],75:[1,65]},{8:Q,9:Z,11:J,21:66},{8:Q,9:Z,11:J,21:67},{8:Q,9:Z,11:J,21:68},{8:Q,9:Z,11:J,21:69},{8:Q,9:Z,11:J,21:70},{8:Q,9:Z,10:[1,71],11:J,21:72},t(k,[2,36]),{35:[1,73]},{37:[1,74]},t(k,[2,39]),t(H1,[2,46],{18:75,10:R1}),{10:[1,76]},{10:[1,77]},{10:[1,78]},{10:[1,79]},{14:k1,42:b1,58:D1,77:[1,83],86:F1,92:[1,80],94:[1,81],98:82,102:T1,103:C1,106:S1,108:_1,111:x1,112:B1,113:m1,117:84},t(k,[2,178]),t(k,[2,179]),t(k,[2,180]),t(k,[2,181]),t(q1,[2,47]),t(q1,[2,49],{44:[1,96]}),t(w,[2,67],{110:109,29:[1,97],42:_,46:[1,98],48:[1,99],50:[1,100],52:[1,101],54:[1,102],56:[1,103],58:g,61:[1,104],63:[1,105],65:[1,106],66:[1,107],68:[1,108],86:B,99:m,102:y,103:V,106:L,108:v,111:I,112:R,113:N}),t(K,[2,174]),t(K,[2,135]),t(K,[2,136]),t(K,[2,137]),t(K,[2,138]),t(K,[2,139]),t(K,[2,140]),t(K,[2,141]),t(K,[2,142]),t(K,[2,143]),t(K,[2,144]),t(K,[2,145]),t(c,[2,12]),t(c,[2,18]),t(c,[2,19]),{9:[1,110]},t(de,[2,26],{18:111,10:R1}),t(k,[2,27]),{40:112,41:38,42:_,43:39,45:40,58:g,86:B,99:m,102:y,103:V,106:L,108:v,110:41,111:I,112:R,113:N},t(k,[2,40]),t(k,[2,41]),t(k,[2,42]),t(N1,[2,71],{71:113,60:[1,115],72:[1,114]}),{74:116,76:117,77:[1,118],78:[1,119],113:pe,116:Ae},t([42,58,60,72,86,99,102,103,106,108,111,112,113],[2,77]),t(k,[2,28]),t(k,[2,29]),t(k,[2,30]),t(k,[2,31]),t(k,[2,32]),{10:Ee,12:ge,14:ke,27:be,28:122,32:De,42:Fe,58:Te,73:Ce,77:[1,124],78:[1,125],80:135,81:Se,82:_e,83:xe,84:Be,85:me,86:ye,87:Ve,88:123,102:Le,106:ve,108:Ie,111:Re,112:Ne,113:we},t(ne,o,{5:148}),t(k,[2,37]),t(k,[2,38]),t(H1,[2,45],{42:Oe}),{42:_,45:150,58:g,86:B,99:m,102:y,103:V,106:L,108:v,110:41,111:I,112:R,113:N},{99:[1,151],100:152,102:[1,153]},{42:_,45:154,58:g,86:B,99:m,102:y,103:V,106:L,108:v,110:41,111:I,112:R,113:N},{42:_,45:155,58:g,86:B,99:m,102:y,103:V,106:L,108:v,110:41,111:I,112:R,113:N},t(C,[2,100],{10:[1,156],93:[1,157]}),{77:[1,158]},t(C,[2,108],{117:160,10:[1,159],14:k1,42:b1,58:D1,86:F1,102:T1,103:C1,106:S1,108:_1,111:x1,112:B1,113:m1}),t(C,[2,110],{10:[1,161]}),t(Y,[2,176]),t(Y,[2,163]),t(Y,[2,164]),t(Y,[2,165]),t(Y,[2,166]),t(Y,[2,167]),t(Y,[2,168]),t(Y,[2,169]),t(Y,[2,170]),t(Y,[2,171]),t(Y,[2,172]),t(Y,[2,173]),{42:_,45:162,58:g,86:B,99:m,102:y,103:V,106:L,108:v,110:41,111:I,112:R,113:N},{30:163,65:d,77:P,78:U,79:164,113:p,114:A,115:E},{30:171,65:d,77:P,78:U,79:164,113:p,114:A,115:E},{30:173,48:[1,172],65:d,77:P,78:U,79:164,113:p,114:A,115:E},{30:174,65:d,77:P,78:U,79:164,113:p,114:A,115:E},{30:175,65:d,77:P,78:U,79:164,113:p,114:A,115:E},{30:176,65:d,77:P,78:U,79:164,113:p,114:A,115:E},{106:[1,177]},{30:178,65:d,77:P,78:U,79:164,113:p,114:A,115:E},{30:179,63:[1,180],65:d,77:P,78:U,79:164,113:p,114:A,115:E},{30:181,65:d,77:P,78:U,79:164,113:p,114:A,115:E},{30:182,65:d,77:P,78:U,79:164,113:p,114:A,115:E},{30:183,65:d,77:P,78:U,79:164,113:p,114:A,115:E},t(K,[2,175]),t(c,[2,20]),t(de,[2,25]),t(H1,[2,43],{18:184,10:R1}),t(N1,[2,68],{10:[1,185]}),{10:[1,186]},{30:187,65:d,77:P,78:U,79:164,113:p,114:A,115:E},{75:[1,188],76:189,113:pe,116:Ae},t(y1,[2,73]),t(y1,[2,75]),t(y1,[2,76]),t(y1,[2,161]),t(y1,[2,162]),{8:Q,9:Z,10:Ee,11:J,12:ge,14:ke,21:191,27:be,29:[1,190],32:De,42:Fe,58:Te,73:Ce,80:135,81:Se,82:_e,83:xe,84:Be,85:me,86:ye,87:Ve,88:192,102:Le,106:ve,108:Ie,111:Re,112:Ne,113:we},t(b,[2,94]),t(b,[2,96]),t(b,[2,97]),t(b,[2,150]),t(b,[2,151]),t(b,[2,152]),t(b,[2,153]),t(b,[2,154]),t(b,[2,155]),t(b,[2,156]),t(b,[2,157]),t(b,[2,158]),t(b,[2,159]),t(b,[2,160]),t(b,[2,83]),t(b,[2,84]),t(b,[2,85]),t(b,[2,86]),t(b,[2,87]),t(b,[2,88]),t(b,[2,89]),t(b,[2,90]),t(b,[2,91]),t(b,[2,92]),t(b,[2,93]),{6:11,7:12,8:h,9:G,10:T,11:O,20:17,22:18,23:19,24:20,25:21,26:22,27:H,32:[1,193],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:_,43:39,45:40,58:g,81:h1,82:U1,83:G1,84:M1,85:K1,86:B,99:m,102:y,103:V,106:L,108:v,110:41,111:I,112:R,113:N,118:Y1,119:j1,120:z1,121:X1},{10:R1,18:194},{10:[1,195],42:_,58:g,86:B,99:m,102:y,103:V,106:L,108:v,110:109,111:I,112:R,113:N},{10:[1,196]},{10:[1,197],103:[1,198]},t(Pe,[2,121]),{10:[1,199],42:_,58:g,86:B,99:m,102:y,103:V,106:L,108:v,110:109,111:I,112:R,113:N},{10:[1,200],42:_,58:g,86:B,99:m,102:y,103:V,106:L,108:v,110:109,111:I,112:R,113:N},{77:[1,201]},t(C,[2,102],{10:[1,202]}),t(C,[2,104],{10:[1,203]}),{77:[1,204]},t(Y,[2,177]),{77:[1,205],95:[1,206]},t(q1,[2,50],{110:109,42:_,58:g,86:B,99:m,102:y,103:V,106:L,108:v,111:I,112:R,113:N}),{31:[1,207],65:d,79:208,113:p,114:A,115:E},t(f1,[2,79]),t(f1,[2,81]),t(f1,[2,82]),t(f1,[2,146]),t(f1,[2,147]),t(f1,[2,148]),t(f1,[2,149]),{47:[1,209],65:d,79:208,113:p,114:A,115:E},{30:210,65:d,77:P,78:U,79:164,113:p,114:A,115:E},{49:[1,211],65:d,79:208,113:p,114:A,115:E},{51:[1,212],65:d,79:208,113:p,114:A,115:E},{53:[1,213],65:d,79:208,113:p,114:A,115:E},{55:[1,214],65:d,79:208,113:p,114:A,115:E},{58:[1,215]},{62:[1,216],65:d,79:208,113:p,114:A,115:E},{64:[1,217],65:d,79:208,113:p,114:A,115:E},{30:218,65:d,77:P,78:U,79:164,113:p,114:A,115:E},{31:[1,219],65:d,79:208,113:p,114:A,115:E},{65:d,67:[1,220],69:[1,221],79:208,113:p,114:A,115:E},{65:d,67:[1,223],69:[1,222],79:208,113:p,114:A,115:E},t(H1,[2,44],{42:Oe}),t(N1,[2,70]),t(N1,[2,69]),{60:[1,224],65:d,79:208,113:p,114:A,115:E},t(N1,[2,72]),t(y1,[2,74]),{30:225,65:d,77:P,78:U,79:164,113:p,114:A,115:E},t(ne,o,{5:226}),t(b,[2,95]),t(k,[2,35]),{41:227,42:_,43:39,45:40,58:g,86:B,99:m,102:y,103:V,106:L,108:v,110:41,111:I,112:R,113:N},{10:$,58:e1,81:t1,89:228,102:s1,104:229,105:230,106:u1,107:n1,108:i1,109:r1},{10:$,58:e1,81:t1,89:239,101:[1,240],102:s1,104:229,105:230,106:u1,107:n1,108:i1,109:r1},{10:$,58:e1,81:t1,89:241,101:[1,242],102:s1,104:229,105:230,106:u1,107:n1,108:i1,109:r1},{102:[1,243]},{10:$,58:e1,81:t1,89:244,102:s1,104:229,105:230,106:u1,107:n1,108:i1,109:r1},{42:_,45:245,58:g,86:B,99:m,102:y,103:V,106:L,108:v,110:41,111:I,112:R,113:N},t(C,[2,101]),{77:[1,246]},{77:[1,247],95:[1,248]},t(C,[2,109]),t(C,[2,111],{10:[1,249]}),t(C,[2,112]),t(w,[2,51]),t(f1,[2,80]),t(w,[2,52]),{49:[1,250],65:d,79:208,113:p,114:A,115:E},t(w,[2,59]),t(w,[2,54]),t(w,[2,55]),t(w,[2,56]),{106:[1,251]},t(w,[2,58]),t(w,[2,60]),{64:[1,252],65:d,79:208,113:p,114:A,115:E},t(w,[2,62]),t(w,[2,63]),t(w,[2,65]),t(w,[2,64]),t(w,[2,66]),t([10,42,58,86,99,102,103,106,108,111,112,113],[2,78]),{31:[1,253],65:d,79:208,113:p,114:A,115:E},{6:11,7:12,8:h,9:G,10:T,11:O,20:17,22:18,23:19,24:20,25:21,26:22,27:H,32:[1,254],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:_,43:39,45:40,58:g,81:h1,82:U1,83:G1,84:M1,85:K1,86:B,99:m,102:y,103:V,106:L,108:v,110:41,111:I,112:R,113:N,118:Y1,119:j1,120:z1,121:X1},t(q1,[2,48]),t(C,[2,114],{103:V1}),t(Ue,[2,123],{105:256,10:$,58:e1,81:t1,102:s1,106:u1,107:n1,108:i1,109:r1}),t(W,[2,125]),t(W,[2,127]),t(W,[2,128]),t(W,[2,129]),t(W,[2,130]),t(W,[2,131]),t(W,[2,132]),t(W,[2,133]),t(W,[2,134]),t(C,[2,115],{103:V1}),{10:[1,257]},t(C,[2,116],{103:V1}),{10:[1,258]},t(Pe,[2,122]),t(C,[2,98],{103:V1}),t(C,[2,99],{110:109,42:_,58:g,86:B,99:m,102:y,103:V,106:L,108:v,111:I,112:R,113:N}),t(C,[2,103]),t(C,[2,105],{10:[1,259]}),t(C,[2,106]),{95:[1,260]},{49:[1,261]},{60:[1,262]},{64:[1,263]},{8:Q,9:Z,11:J,21:264},t(k,[2,34]),{10:$,58:e1,81:t1,102:s1,104:265,105:230,106:u1,107:n1,108:i1,109:r1},t(W,[2,126]),{14:k1,42:b1,58:D1,86:F1,98:266,102:T1,103:C1,106:S1,108:_1,111:x1,112:B1,113:m1,117:84},{14:k1,42:b1,58:D1,86:F1,98:267,102:T1,103:C1,106:S1,108:_1,111:x1,112:B1,113:m1,117:84},{95:[1,268]},t(C,[2,113]),t(w,[2,53]),{30:269,65:d,77:P,78:U,79:164,113:p,114:A,115:E},t(w,[2,61]),t(ne,o,{5:270}),t(Ue,[2,124],{105:256,10:$,58:e1,81:t1,102:s1,106:u1,107:n1,108:i1,109:r1}),t(C,[2,119],{117:160,10:[1,271],14:k1,42:b1,58:D1,86:F1,102:T1,103:C1,106:S1,108:_1,111:x1,112:B1,113:m1}),t(C,[2,120],{117:160,10:[1,272],14:k1,42:b1,58:D1,86:F1,102:T1,103:C1,106:S1,108:_1,111:x1,112:B1,113:m1}),t(C,[2,107]),{31:[1,273],65:d,79:208,113:p,114:A,115:E},{6:11,7:12,8:h,9:G,10:T,11:O,20:17,22:18,23:19,24:20,25:21,26:22,27:H,32:[1,274],33:24,34:o1,36:p1,38:A1,40:28,41:38,42:_,43:39,45:40,58:g,81:h1,82:U1,83:G1,84:M1,85:K1,86:B,99:m,102:y,103:V,106:L,108:v,110:41,111:I,112:R,113:N,118:Y1,119:j1,120:z1,121:X1},{10:$,58:e1,81:t1,89:275,102:s1,104:229,105:230,106:u1,107:n1,108:i1,109:r1},{10:$,58:e1,81:t1,89:276,102:s1,104:229,105:230,106:u1,107:n1,108:i1,109:r1},t(w,[2,57]),t(k,[2,33]),t(C,[2,117],{103:V1}),t(C,[2,118],{103:V1})],defaultActions:{},parseError:function(a,l){if(l.recoverable)this.trace(a);else{var f=new Error(a);throw f.hash=l,f}},parse:function(a){var l=this,f=[0],i=[],S=[null],e=[],w1=this.table,s="",j=0,Ge=0,Tt=2,Me=1,Ct=e.slice.call(arguments,1),x=Object.create(this.lexer),E1={yy:{}};for(var ae in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ae)&&(E1.yy[ae]=this.yy[ae]);x.setInput(a,E1.yy),E1.yy.lexer=x,E1.yy.parser=this,typeof x.yylloc>"u"&&(x.yylloc={});var ce=x.yylloc;e.push(ce);var St=x.options&&x.options.ranges;typeof E1.yy.parseError=="function"?this.parseError=E1.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function _t(){var c1;return c1=i.pop()||x.lex()||Me,typeof c1!="number"&&(c1 instanceof Array&&(i=c1,c1=i.pop()),c1=l.symbols_[c1]||c1),c1}for(var M,g1,z,le,L1={},W1,a1,Ke,Q1;;){if(g1=f[f.length-1],this.defaultActions[g1]?z=this.defaultActions[g1]:((M===null||typeof M>"u")&&(M=_t()),z=w1[g1]&&w1[g1][M]),typeof z>"u"||!z.length||!z[0]){var oe="";Q1=[];for(W1 in w1[g1])this.terminals_[W1]&&W1>Tt&&Q1.push("'"+this.terminals_[W1]+"'");x.showPosition?oe="Parse error on line "+(j+1)+`:
|
|
2
|
-
`+x.showPosition()+`
|
|
3
|
-
Expecting `+Q1.join(", ")+", got '"+(this.terminals_[M]||M)+"'":oe="Parse error on line "+(j+1)+": Unexpected "+(M==Me?"end of input":"'"+(this.terminals_[M]||M)+"'"),this.parseError(oe,{text:x.match,token:this.terminals_[M]||M,line:x.yylineno,loc:ce,expected:Q1})}if(z[0]instanceof Array&&z.length>1)throw new Error("Parse Error: multiple actions possible at state: "+g1+", token: "+M);switch(z[0]){case 1:f.push(M),S.push(x.yytext),e.push(x.yylloc),f.push(z[1]),M=null,Ge=x.yyleng,s=x.yytext,j=x.yylineno,ce=x.yylloc;break;case 2:if(a1=this.productions_[z[1]][1],L1.$=S[S.length-a1],L1._$={first_line:e[e.length-(a1||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(a1||1)].first_column,last_column:e[e.length-1].last_column},St&&(L1._$.range=[e[e.length-(a1||1)].range[0],e[e.length-1].range[1]]),le=this.performAction.apply(L1,[s,Ge,j,E1.yy,z[1],S,e].concat(Ct)),typeof le<"u")return le;a1&&(f=f.slice(0,-1*a1*2),S=S.slice(0,-1*a1),e=e.slice(0,-1*a1)),f.push(this.productions_[z[1]][0]),S.push(L1.$),e.push(L1._$),Ke=w1[f[f.length-2]][f[f.length-1]],f.push(Ke);break;case 3:return!0}}return!0}},Ft=function(){var d1={EOF:1,parseError:function(l,f){if(this.yy.parser)this.yy.parser.parseError(l,f);else throw new Error(l)},setInput:function(a,l){return this.yy=l||this.yy||{},this._input=a,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var l=a.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},unput:function(a){var l=a.length,f=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),f.length-1&&(this.yylineno-=f.length-1);var S=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:f?(f.length===i.length?this.yylloc.first_column:0)+i[i.length-f.length].length-f[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[S[0],S[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(a){this.unput(this.match.slice(a))},pastInput:function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var a=this.pastInput(),l=new Array(a.length+1).join("-");return a+this.upcomingInput()+`
|
|
5
|
-
`+l+"^"},test_match:function(a,l){var f,i,S;if(this.options.backtrack_lexer&&(S={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(S.yylloc.range=this.yylloc.range.slice(0))),i=a[0].match(/(?:\r\n?|\n).*/g),i&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,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(a[0].length),this.matched+=a[0],f=this.performAction.call(this,this.yy,this,l,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),f)return f;if(this._backtrack){for(var e in S)this[e]=S[e];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var a,l,f,i;this._more||(this.yytext="",this.match="");for(var S=this._currentRules(),e=0;e<S.length;e++)if(f=this._input.match(this.rules[S[e]]),f&&(!l||f[0].length>l[0].length)){if(l=f,i=e,this.options.backtrack_lexer){if(a=this.test_match(f,S[e]),a!==!1)return a;if(this._backtrack){l=!1;continue}else return!1}else if(!this.options.flex)break}return l?(a=this.test_match(l,S[i]),a!==!1?a:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var l=this.next();return l||this.lex()},begin:function(l){this.conditionStack.push(l)},popState:function(){var l=this.conditionStack.length-1;return l>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(l){return l=this.conditionStack.length-1-Math.abs(l||0),l>=0?this.conditionStack[l]:"INITIAL"},pushState:function(l){this.begin(l)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(l,f,i,S){switch(i){case 0:return this.begin("acc_title"),34;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),36;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:this.begin("callbackname");break;case 8:this.popState();break;case 9:this.popState(),this.begin("callbackargs");break;case 10:return 92;case 11:this.popState();break;case 12:return 93;case 13:return"MD_STR";case 14:this.popState();break;case 15:this.begin("md_string");break;case 16:return"STR";case 17:this.popState();break;case 18:this.pushState("string");break;case 19:return 81;case 20:return 99;case 21:return 82;case 22:return 101;case 23:return 83;case 24:return 84;case 25:return 94;case 26:this.begin("click");break;case 27:this.popState();break;case 28:return 85;case 29:return l.lex.firstGraph()&&this.begin("dir"),12;case 30:return l.lex.firstGraph()&&this.begin("dir"),12;case 31:return l.lex.firstGraph()&&this.begin("dir"),12;case 32:return 27;case 33:return 32;case 34:return 95;case 35:return 95;case 36:return 95;case 37:return 95;case 38:return this.popState(),13;case 39:return this.popState(),14;case 40:return this.popState(),14;case 41:return this.popState(),14;case 42:return this.popState(),14;case 43:return this.popState(),14;case 44:return this.popState(),14;case 45:return this.popState(),14;case 46:return this.popState(),14;case 47:return this.popState(),14;case 48:return this.popState(),14;case 49:return 118;case 50:return 119;case 51:return 120;case 52:return 121;case 53:return 102;case 54:return 108;case 55:return 44;case 56:return 58;case 57:return 42;case 58:return 8;case 59:return 103;case 60:return 112;case 61:return this.popState(),75;case 62:return this.pushState("edgeText"),73;case 63:return 116;case 64:return this.popState(),75;case 65:return this.pushState("thickEdgeText"),73;case 66:return 116;case 67:return this.popState(),75;case 68:return this.pushState("dottedEdgeText"),73;case 69:return 116;case 70:return 75;case 71:return this.popState(),51;case 72:return"TEXT";case 73:return this.pushState("ellipseText"),50;case 74:return this.popState(),53;case 75:return this.pushState("text"),52;case 76:return this.popState(),55;case 77:return this.pushState("text"),54;case 78:return 56;case 79:return this.pushState("text"),65;case 80:return this.popState(),62;case 81:return this.pushState("text"),61;case 82:return this.popState(),47;case 83:return this.pushState("text"),46;case 84:return this.popState(),67;case 85:return this.popState(),69;case 86:return 114;case 87:return this.pushState("trapText"),66;case 88:return this.pushState("trapText"),68;case 89:return 115;case 90:return 65;case 91:return 87;case 92:return"SEP";case 93:return 86;case 94:return 112;case 95:return 108;case 96:return 42;case 97:return 106;case 98:return 111;case 99:return 113;case 100:return this.popState(),60;case 101:return this.pushState("text"),60;case 102:return this.popState(),49;case 103:return this.pushState("text"),48;case 104:return this.popState(),31;case 105:return this.pushState("text"),29;case 106:return this.popState(),64;case 107:return this.pushState("text"),63;case 108:return"TEXT";case 109:return"QUOTE";case 110:return 9;case 111:return 10;case 112:return 11}},rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{callbackargs:{rules:[11,12,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},callbackname:{rules:[8,9,10,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},href:{rules:[15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},click:{rules:[15,18,27,28,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},dottedEdgeText:{rules:[15,18,67,69,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},thickEdgeText:{rules:[15,18,64,66,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},edgeText:{rules:[15,18,61,63,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},trapText:{rules:[15,18,70,73,75,77,81,83,84,85,86,87,88,101,103,105,107],inclusive:!1},ellipseText:{rules:[15,18,70,71,72,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},text:{rules:[15,18,70,73,74,75,76,77,80,81,82,83,87,88,100,101,102,103,104,105,106,107,108],inclusive:!1},vertex:{rules:[15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},dir:{rules:[15,18,38,39,40,41,42,43,44,45,46,47,48,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},acc_descr_multiline:{rules:[5,6,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},acc_descr:{rules:[3,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},acc_title:{rules:[1,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},md_string:{rules:[13,14,15,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},string:{rules:[15,16,17,18,70,73,75,77,81,83,87,88,101,103,105,107],inclusive:!1},INITIAL:{rules:[0,2,4,7,15,18,19,20,21,22,23,24,25,26,29,30,31,32,33,34,35,36,37,49,50,51,52,53,54,55,56,57,58,59,60,61,62,64,65,67,68,70,73,75,77,78,79,81,83,87,88,89,90,91,92,93,94,95,96,97,98,99,101,103,105,107,109,110,111,112],inclusive:!0}}};return d1}();ie.lexer=Ft;function re(){this.yy={}}return re.prototype=ie,ie.Parser=re,new re}();he.parser=he;const xt=he,Bt="flowchart-";let Ye=0,I1=F.getConfig(),D={},q=[],v1={},l1=[],J1={},$1={},Z1=0,fe=!0,X,ee,te=[];const se=t=>F.common$1.sanitizeText(t,I1),P1=function(t){const u=Object.keys(D);for(const n of u)if(D[n].id===t)return D[n].domId;return t},je=function(t,u,n,r,c,o,h={}){let G,T=t;T!==void 0&&T.trim().length!==0&&(D[T]===void 0&&(D[T]={id:T,labelType:"text",domId:Bt+T+"-"+Ye,styles:[],classes:[]}),Ye++,u!==void 0?(I1=F.getConfig(),G=se(u.text.trim()),D[T].labelType=u.type,G[0]==='"'&&G[G.length-1]==='"'&&(G=G.substring(1,G.length-1)),D[T].text=G):D[T].text===void 0&&(D[T].text=t),n!==void 0&&(D[T].type=n),r!=null&&r.forEach(function(O){D[T].styles.push(O)}),c!=null&&c.forEach(function(O){D[T].classes.push(O)}),o!==void 0&&(D[T].dir=o),D[T].props===void 0?D[T].props=h:h!==void 0&&Object.assign(D[T].props,h))},ze=function(t,u,n){const o={start:t,end:u,type:void 0,text:"",labelType:"text"};F.log$1.info("abc78 Got edge...",o);const h=n.text;if(h!==void 0&&(o.text=se(h.text.trim()),o.text[0]==='"'&&o.text[o.text.length-1]==='"'&&(o.text=o.text.substring(1,o.text.length-1)),o.labelType=h.type),n!==void 0&&(o.type=n.type,o.stroke=n.stroke,o.length=n.length),(o==null?void 0:o.length)>10&&(o.length=10),q.length<(I1.maxEdges??500))F.log$1.info("abc78 pushing edge..."),q.push(o);else throw new Error(`Edge limit exceeded. ${q.length} edges found, but the limit is ${I1.maxEdges}.
|
|
7
|
-
|
|
8
|
-
Initialize mermaid with maxEdges set to a higher number to allow more edges.
|
|
9
|
-
You cannot set this config via configuration inside the diagram as it is a secure config.
|
|
10
|
-
You have to call mermaid.initialize.`)},Xe=function(t,u,n){F.log$1.info("addLink (abc78)",t,u,n);let r,c;for(r=0;r<t.length;r++)for(c=0;c<u.length;c++)ze(t[r],u[c],n)},He=function(t,u){t.forEach(function(n){n==="default"?q.defaultInterpolate=u:q[n].interpolate=u})},qe=function(t,u){t.forEach(function(n){if(n>=q.length)throw new Error(`The index ${n} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${q.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);n==="default"?q.defaultStyle=u:(F.utils.isSubstringInArray("fill",u)===-1&&u.push("fill:none"),q[n].style=u)})},We=function(t,u){t.split(",").forEach(function(n){v1[n]===void 0&&(v1[n]={id:n,styles:[],textStyles:[]}),u!=null&&u.forEach(function(r){if(r.match("color")){const c=r.replace("fill","bgFill").replace("color","fill");v1[n].textStyles.push(c)}v1[n].styles.push(r)})})},Qe=function(t){X=t,X.match(/.*</)&&(X="RL"),X.match(/.*\^/)&&(X="BT"),X.match(/.*>/)&&(X="LR"),X.match(/.*v/)&&(X="TB"),X==="TD"&&(X="TB")},ue=function(t,u){t.split(",").forEach(function(n){let r=n;D[r]!==void 0&&D[r].classes.push(u),J1[r]!==void 0&&J1[r].classes.push(u)})},mt=function(t,u){t.split(",").forEach(function(n){u!==void 0&&($1[ee==="gen-1"?P1(n):n]=se(u))})},yt=function(t,u,n){let r=P1(t);if(F.getConfig().securityLevel!=="loose"||u===void 0)return;let c=[];if(typeof n=="string"){c=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let o=0;o<c.length;o++){let h=c[o].trim();h.charAt(0)==='"'&&h.charAt(h.length-1)==='"'&&(h=h.substr(1,h.length-2)),c[o]=h}}c.length===0&&c.push(t),D[t]!==void 0&&(D[t].haveCallback=!0,te.push(function(){const o=document.querySelector(`[id="${r}"]`);o!==null&&o.addEventListener("click",function(){F.utils.runFunc(u,...c)},!1)}))},Ze=function(t,u,n){t.split(",").forEach(function(r){D[r]!==void 0&&(D[r].link=F.utils.formatUrl(u,I1),D[r].linkTarget=n)}),ue(t,"clickable")},Je=function(t){if($1.hasOwnProperty(t))return $1[t]},$e=function(t,u,n){t.split(",").forEach(function(r){yt(r,u,n)}),ue(t,"clickable")},et=function(t){te.forEach(function(u){u(t)})},tt=function(){return X.trim()},st=function(){return D},ut=function(){return q},nt=function(){return v1},it=function(t){let u=F.select(".mermaidTooltip");(u._groups||u)[0][0]===null&&(u=F.select("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),F.select(t).select("svg").selectAll("g.node").on("mouseover",function(){const c=F.select(this);if(c.attr("title")===null)return;const h=this.getBoundingClientRect();u.transition().duration(200).style("opacity",".9"),u.text(c.attr("title")).style("left",window.scrollX+h.left+(h.right-h.left)/2+"px").style("top",window.scrollY+h.bottom+"px"),u.html(u.html().replace(/<br\/>/g,"<br/>")),c.classed("hover",!0)}).on("mouseout",function(){u.transition().duration(500).style("opacity",0),F.select(this).classed("hover",!1)})};te.push(it);const rt=function(t="gen-1"){D={},v1={},q=[],te=[it],l1=[],J1={},Z1=0,$1={},fe=!0,ee=t,I1=F.getConfig(),F.clear()},at=t=>{ee=t||"gen-2"},ct=function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"},lt=function(t,u,n){let r=t.text.trim(),c=n.text;t===n&&n.text.match(/\s/)&&(r=void 0);function o(H){const o1={boolean:{},number:{},string:{}},p1=[];let A1;return{nodeList:H.filter(function(g){const h1=typeof g;return g.stmt&&g.stmt==="dir"?(A1=g.value,!1):g.trim()===""?!1:h1 in o1?o1[h1].hasOwnProperty(g)?!1:o1[h1][g]=!0:p1.includes(g)?!1:p1.push(g)}),dir:A1}}let h=[];const{nodeList:G,dir:T}=o(h.concat.apply(h,u));if(h=G,ee==="gen-1")for(let H=0;H<h.length;H++)h[H]=P1(h[H]);r=r||"subGraph"+Z1,c=c||"",c=se(c),Z1=Z1+1;const O={id:r,nodes:h,title:c.trim(),classes:[],dir:T,labelType:n.type};return F.log$1.info("Adding",O.id,O.nodes,O.dir),O.nodes=kt(O,l1).nodes,l1.push(O),J1[r]=O,r},Vt=function(t){for(const[u,n]of l1.entries())if(n.id===t)return u;return-1};let O1=-1;const ot=[],ht=function(t,u){const n=l1[u].nodes;if(O1=O1+1,O1>2e3)return;if(ot[O1]=u,l1[u].id===t)return{result:!0,count:0};let r=0,c=1;for(;r<n.length;){const o=Vt(n[r]);if(o>=0){const h=ht(t,o);if(h.result)return{result:!0,count:c+h.count};c=c+h.count}r=r+1}return{result:!1,count:c}},ft=function(t){return ot[t]},dt=function(){O1=-1,l1.length>0&&ht("none",l1.length-1)},pt=function(){return l1},At=()=>fe?(fe=!1,!0):!1,Lt=t=>{let u=t.trim(),n="arrow_open";switch(u[0]){case"<":n="arrow_point",u=u.slice(1);break;case"x":n="arrow_cross",u=u.slice(1);break;case"o":n="arrow_circle",u=u.slice(1);break}let r="normal";return u.includes("=")&&(r="thick"),u.includes(".")&&(r="dotted"),{type:n,stroke:r}},vt=(t,u)=>{const n=u.length;let r=0;for(let c=0;c<n;++c)u[c]===t&&++r;return r},It=t=>{const u=t.trim();let n=u.slice(0,-1),r="arrow_open";switch(u.slice(-1)){case"x":r="arrow_cross",u[0]==="x"&&(r="double_"+r,n=n.slice(1));break;case">":r="arrow_point",u[0]==="<"&&(r="double_"+r,n=n.slice(1));break;case"o":r="arrow_circle",u[0]==="o"&&(r="double_"+r,n=n.slice(1));break}let c="normal",o=n.length-1;n[0]==="="&&(c="thick"),n[0]==="~"&&(c="invisible");let h=vt(".",n);return h&&(c="dotted",o=h),{type:r,stroke:c,length:o}},Et=(t,u)=>{const n=It(t);let r;if(u){if(r=Lt(u),r.stroke!==n.stroke)return{type:"INVALID",stroke:"INVALID"};if(r.type==="arrow_open")r.type=n.type;else{if(r.type!==n.type)return{type:"INVALID",stroke:"INVALID"};r.type="double_"+r.type}return r.type==="double_arrow"&&(r.type="double_arrow_point"),r.length=n.length,r}return n},gt=(t,u)=>{let n=!1;return t.forEach(r=>{r.nodes.indexOf(u)>=0&&(n=!0)}),n},kt=(t,u)=>{const n=[];return t.nodes.forEach((r,c)=>{gt(u,r)||n.push(t.nodes[c])}),{nodes:n}},bt={firstGraph:At},Dt={defaultConfig:()=>F.defaultConfig.flowchart,setAccTitle:F.setAccTitle,getAccTitle:F.getAccTitle,getAccDescription:F.getAccDescription,setAccDescription:F.setAccDescription,addVertex:je,lookUpDomId:P1,addLink:Xe,updateLinkInterpolate:He,updateLink:qe,addClass:We,setDirection:Qe,setClass:ue,setTooltip:mt,getTooltip:Je,setClickEvent:$e,setLink:Ze,bindFunctions:et,getDirection:tt,getVertices:st,getEdges:ut,getClasses:nt,clear:rt,setGen:at,defaultStyle:ct,addSubGraph:lt,getDepthFirstPos:ft,indexNodes:dt,getSubGraphs:pt,destructLink:Et,lex:bt,exists:gt,makeUniq:kt,setDiagramTitle:F.setDiagramTitle,getDiagramTitle:F.getDiagramTitle},Rt=Object.freeze(Object.defineProperty({__proto__:null,addClass:We,addLink:Xe,addSingleLink:ze,addSubGraph:lt,addVertex:je,bindFunctions:et,clear:rt,default:Dt,defaultStyle:ct,destructLink:Et,firstGraph:At,getClasses:nt,getDepthFirstPos:ft,getDirection:tt,getEdges:ut,getSubGraphs:pt,getTooltip:Je,getVertices:st,indexNodes:dt,lex:bt,lookUpDomId:P1,setClass:ue,setClickEvent:$e,setDirection:Qe,setGen:at,setLink:Ze,updateLink:qe,updateLinkInterpolate:He},Symbol.toStringTag,{value:"Module"}));exports.db=Rt;exports.flowDb=Dt;exports.parser$1=xt;
|
package/dist/layers.BQLZhz6B.js
DELETED
package/dist/layers.BUsBCyiL.js
DELETED
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
import { s as M, d as _, p as R } from "./layers.HcI9cOEd.js";
|
|
2
|
-
import { l as c, g as d, d as k, u as B, Y as G, j as D, _ as E, $ as C, a0 as $ } from "./layers.BBwDvE6l.js";
|
|
3
|
-
import { G as z } from "./layers.C7lIplJU.js";
|
|
4
|
-
import { r as P } from "./layers.D1cZq8tq.js";
|
|
5
|
-
import "./layers.I-MG0ir4.js";
|
|
6
|
-
import "lodash-es";
|
|
7
|
-
import "./layers.D4fGb2cV.js";
|
|
8
|
-
const T = (s) => D.sanitizeText(s, d());
|
|
9
|
-
let S = {
|
|
10
|
-
dividerMargin: 10,
|
|
11
|
-
padding: 5,
|
|
12
|
-
textHeight: 10,
|
|
13
|
-
curve: void 0
|
|
14
|
-
};
|
|
15
|
-
const q = function(s, t, u, a) {
|
|
16
|
-
const e = Object.keys(s);
|
|
17
|
-
c.info("keys:", e), c.info(s), e.forEach(function(i) {
|
|
18
|
-
var n, r;
|
|
19
|
-
const l = s[i], f = {
|
|
20
|
-
shape: "rect",
|
|
21
|
-
id: l.id,
|
|
22
|
-
domId: l.domId,
|
|
23
|
-
labelText: T(l.id),
|
|
24
|
-
labelStyle: "",
|
|
25
|
-
style: "fill: none; stroke: black",
|
|
26
|
-
// TODO V10: Flowchart ? Keeping flowchart for backwards compatibility. Remove in next major release
|
|
27
|
-
padding: ((n = d().flowchart) == null ? void 0 : n.padding) ?? ((r = d().class) == null ? void 0 : r.padding)
|
|
28
|
-
};
|
|
29
|
-
t.setNode(l.id, f), A(l.classes, t, u, a, l.id), c.info("setNode", f);
|
|
30
|
-
});
|
|
31
|
-
}, A = function(s, t, u, a, e) {
|
|
32
|
-
const i = Object.keys(s);
|
|
33
|
-
c.info("keys:", i), c.info(s), i.filter((n) => s[n].parent == e).forEach(function(n) {
|
|
34
|
-
var r, l;
|
|
35
|
-
const o = s[n], f = o.cssClasses.join(" "), p = E(o.styles), h = o.label ?? o.id, b = 0, y = {
|
|
36
|
-
labelStyle: p.labelStyle,
|
|
37
|
-
shape: "class_box",
|
|
38
|
-
labelText: T(h),
|
|
39
|
-
classData: o,
|
|
40
|
-
rx: b,
|
|
41
|
-
ry: b,
|
|
42
|
-
class: f,
|
|
43
|
-
style: p.style,
|
|
44
|
-
id: o.id,
|
|
45
|
-
domId: o.domId,
|
|
46
|
-
tooltip: a.db.getTooltip(o.id, e) || "",
|
|
47
|
-
haveCallback: o.haveCallback,
|
|
48
|
-
link: o.link,
|
|
49
|
-
width: o.type === "group" ? 500 : void 0,
|
|
50
|
-
type: o.type,
|
|
51
|
-
// TODO V10: Flowchart ? Keeping flowchart for backwards compatibility. Remove in next major release
|
|
52
|
-
padding: ((r = d().flowchart) == null ? void 0 : r.padding) ?? ((l = d().class) == null ? void 0 : l.padding)
|
|
53
|
-
};
|
|
54
|
-
t.setNode(o.id, y), e && t.setParent(o.id, e), c.info("setNode", y);
|
|
55
|
-
});
|
|
56
|
-
}, F = function(s, t, u, a) {
|
|
57
|
-
c.info(s), s.forEach(function(e, i) {
|
|
58
|
-
var n, r;
|
|
59
|
-
const l = e, o = "", f = { labelStyle: "", style: "" }, p = l.text, h = 0, m = {
|
|
60
|
-
labelStyle: f.labelStyle,
|
|
61
|
-
shape: "note",
|
|
62
|
-
labelText: T(p),
|
|
63
|
-
noteData: l,
|
|
64
|
-
rx: h,
|
|
65
|
-
ry: h,
|
|
66
|
-
class: o,
|
|
67
|
-
style: f.style,
|
|
68
|
-
id: l.id,
|
|
69
|
-
domId: l.id,
|
|
70
|
-
tooltip: "",
|
|
71
|
-
type: "note",
|
|
72
|
-
// TODO V10: Flowchart ? Keeping flowchart for backwards compatibility. Remove in next major release
|
|
73
|
-
padding: ((n = d().flowchart) == null ? void 0 : n.padding) ?? ((r = d().class) == null ? void 0 : r.padding)
|
|
74
|
-
};
|
|
75
|
-
if (t.setNode(l.id, m), c.info("setNode", m), !l.class || !(l.class in a))
|
|
76
|
-
return;
|
|
77
|
-
const y = u + i, g = {
|
|
78
|
-
id: `edgeNote${y}`,
|
|
79
|
-
//Set relationship style and line type
|
|
80
|
-
classes: "relation",
|
|
81
|
-
pattern: "dotted",
|
|
82
|
-
// Set link type for rendering
|
|
83
|
-
arrowhead: "none",
|
|
84
|
-
//Set edge extra labels
|
|
85
|
-
startLabelRight: "",
|
|
86
|
-
endLabelLeft: "",
|
|
87
|
-
//Set relation arrow types
|
|
88
|
-
arrowTypeStart: "none",
|
|
89
|
-
arrowTypeEnd: "none",
|
|
90
|
-
style: "fill:none",
|
|
91
|
-
labelStyle: "",
|
|
92
|
-
curve: C(S.curve, $)
|
|
93
|
-
};
|
|
94
|
-
t.setEdge(l.id, l.class, g, y);
|
|
95
|
-
});
|
|
96
|
-
}, H = function(s, t) {
|
|
97
|
-
const u = d().flowchart;
|
|
98
|
-
let a = 0;
|
|
99
|
-
s.forEach(function(e) {
|
|
100
|
-
var i;
|
|
101
|
-
a++;
|
|
102
|
-
const n = {
|
|
103
|
-
//Set relationship style and line type
|
|
104
|
-
classes: "relation",
|
|
105
|
-
pattern: e.relation.lineType == 1 ? "dashed" : "solid",
|
|
106
|
-
id: `id_${e.id1}_${e.id2}_${a}`,
|
|
107
|
-
// Set link type for rendering
|
|
108
|
-
arrowhead: e.type === "arrow_open" ? "none" : "normal",
|
|
109
|
-
//Set edge extra labels
|
|
110
|
-
startLabelRight: e.relationTitle1 === "none" ? "" : e.relationTitle1,
|
|
111
|
-
endLabelLeft: e.relationTitle2 === "none" ? "" : e.relationTitle2,
|
|
112
|
-
//Set relation arrow types
|
|
113
|
-
arrowTypeStart: N(e.relation.type1),
|
|
114
|
-
arrowTypeEnd: N(e.relation.type2),
|
|
115
|
-
style: "fill:none",
|
|
116
|
-
labelStyle: "",
|
|
117
|
-
curve: C(u == null ? void 0 : u.curve, $)
|
|
118
|
-
};
|
|
119
|
-
if (c.info(n, e), e.style !== void 0) {
|
|
120
|
-
const r = E(e.style);
|
|
121
|
-
n.style = r.style, n.labelStyle = r.labelStyle;
|
|
122
|
-
}
|
|
123
|
-
e.text = e.title, e.text === void 0 ? e.style !== void 0 && (n.arrowheadStyle = "fill: #333") : (n.arrowheadStyle = "fill: #333", n.labelpos = "c", ((i = d().flowchart) == null ? void 0 : i.htmlLabels) ?? d().htmlLabels ? (n.labelType = "html", n.label = '<span class="edgeLabel">' + e.text + "</span>") : (n.labelType = "text", n.label = e.text.replace(D.lineBreakRegex, `
|
|
124
|
-
`), e.style === void 0 && (n.style = n.style || "stroke: #333; stroke-width: 1.5px;fill:none"), n.labelStyle = n.labelStyle.replace("color:", "fill:"))), t.setEdge(e.id1, e.id2, n, a);
|
|
125
|
-
});
|
|
126
|
-
}, V = function(s) {
|
|
127
|
-
S = {
|
|
128
|
-
...S,
|
|
129
|
-
...s
|
|
130
|
-
};
|
|
131
|
-
}, W = async function(s, t, u, a) {
|
|
132
|
-
c.info("Drawing class - ", t);
|
|
133
|
-
const e = d().flowchart ?? d().class, i = d().securityLevel;
|
|
134
|
-
c.info("config:", e);
|
|
135
|
-
const n = (e == null ? void 0 : e.nodeSpacing) ?? 50, r = (e == null ? void 0 : e.rankSpacing) ?? 50, l = new z({
|
|
136
|
-
multigraph: !0,
|
|
137
|
-
compound: !0
|
|
138
|
-
}).setGraph({
|
|
139
|
-
rankdir: a.db.getDirection(),
|
|
140
|
-
nodesep: n,
|
|
141
|
-
ranksep: r,
|
|
142
|
-
marginx: 8,
|
|
143
|
-
marginy: 8
|
|
144
|
-
}).setDefaultEdgeLabel(function() {
|
|
145
|
-
return {};
|
|
146
|
-
}), o = a.db.getNamespaces(), f = a.db.getClasses(), p = a.db.getRelations(), h = a.db.getNotes();
|
|
147
|
-
c.info(p), q(o, l, t, a), A(f, l, t, a), H(p, l), F(h, l, p.length + 1, f);
|
|
148
|
-
let b;
|
|
149
|
-
i === "sandbox" && (b = k("#i" + t));
|
|
150
|
-
const m = i === "sandbox" ? k(b.nodes()[0].contentDocument.body) : k("body"), y = m.select(`[id="${t}"]`), g = m.select("#" + t + " g");
|
|
151
|
-
if (await P(
|
|
152
|
-
g,
|
|
153
|
-
l,
|
|
154
|
-
["aggregation", "extension", "composition", "dependency", "lollipop"],
|
|
155
|
-
"classDiagram",
|
|
156
|
-
t
|
|
157
|
-
), B.insertTitle(y, "classTitleText", (e == null ? void 0 : e.titleTopMargin) ?? 5, a.db.getDiagramTitle()), G(l, y, e == null ? void 0 : e.diagramPadding, e == null ? void 0 : e.useMaxWidth), !(e != null && e.htmlLabels)) {
|
|
158
|
-
const v = i === "sandbox" ? b.nodes()[0].contentDocument : document, I = v.querySelectorAll('[id="' + t + '"] .edgeLabel .label');
|
|
159
|
-
for (const w of I) {
|
|
160
|
-
const L = w.getBBox(), x = v.createElementNS("http://www.w3.org/2000/svg", "rect");
|
|
161
|
-
x.setAttribute("rx", 0), x.setAttribute("ry", 0), x.setAttribute("width", L.width), x.setAttribute("height", L.height), w.insertBefore(x, w.firstChild);
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
};
|
|
165
|
-
function N(s) {
|
|
166
|
-
let t;
|
|
167
|
-
switch (s) {
|
|
168
|
-
case 0:
|
|
169
|
-
t = "aggregation";
|
|
170
|
-
break;
|
|
171
|
-
case 1:
|
|
172
|
-
t = "extension";
|
|
173
|
-
break;
|
|
174
|
-
case 2:
|
|
175
|
-
t = "composition";
|
|
176
|
-
break;
|
|
177
|
-
case 3:
|
|
178
|
-
t = "dependency";
|
|
179
|
-
break;
|
|
180
|
-
case 4:
|
|
181
|
-
t = "lollipop";
|
|
182
|
-
break;
|
|
183
|
-
default:
|
|
184
|
-
t = "none";
|
|
185
|
-
}
|
|
186
|
-
return t;
|
|
187
|
-
}
|
|
188
|
-
const Y = {
|
|
189
|
-
setConf: V,
|
|
190
|
-
draw: W
|
|
191
|
-
}, O = {
|
|
192
|
-
parser: R,
|
|
193
|
-
db: _,
|
|
194
|
-
renderer: Y,
|
|
195
|
-
styles: M,
|
|
196
|
-
init: (s) => {
|
|
197
|
-
s.class || (s.class = {}), s.class.arrowMarkerAbsolute = s.arrowMarkerAbsolute, _.clear();
|
|
198
|
-
}
|
|
199
|
-
};
|
|
200
|
-
export {
|
|
201
|
-
O as diagram
|
|
202
|
-
};
|