@layers-app/editor 0.1.16 → 0.2.0
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 +2 -2
- package/dist/index.d.ts +2 -0
- package/dist/index.js +7 -6
- package/dist/{layers.CritN2d6.js → layers.09-oE2J6.js} +1 -1
- package/dist/layers.0GKOEfQX.js +132 -0
- package/dist/{layers.B4RKwCol.js → layers.0QUpYe8U.js} +1 -1
- package/dist/{layers.CJB1-Z28.js → layers.3Ou02qfO.js} +24 -24
- package/dist/{layers.vZrO9FxG.js → layers.3ncr24k-.js} +1 -1
- package/dist/{layers.0agn9U38.js → layers.4B2wOIR1.js} +1 -1
- package/dist/{layers.DdwhNbtU.js → layers.7AsF2nNX.js} +1 -1
- package/dist/{layers.6TcSmo9T.js → layers.7H2WL17C.js} +1 -1
- package/dist/{layers.2fPIPdpy.js → layers.7PjUehxE.js} +1 -1
- package/dist/{layers.rx1rFfdh.js → layers.99biaYEX.js} +1 -1
- package/dist/{layers.6wb7YICa.js → layers.B1Se8OaH.js} +1 -1
- package/dist/{layers.6P0S2dCi.js → layers.B26_Cpa_.js} +1 -1
- package/dist/{layers.Ci7SZ90y.js → layers.B2Pkrdw1.js} +1 -1
- package/dist/{layers.DJToy_B3.js → layers.B3BBy8oP.js} +3 -3
- package/dist/{layers.DGC_VKUl.js → layers.B5mng6BK.js} +1 -1
- package/dist/layers.B7HljEnE.js +1 -0
- package/dist/{layers.7SwL7zkW.js → layers.B8vpQUjo.js} +1 -1
- package/dist/layers.BBlxht-2.js +319 -0
- package/dist/{layers.Cr5v8CNW.js → layers.BCkBAe54.js} +1 -1
- package/dist/{layers.CnAQogiG.js → layers.BFTIBVaT.js} +1 -1
- package/dist/{layers.DKg7f0Vu.js → layers.BGu81HI5.js} +1 -1
- package/dist/{layers.BYYE1XbO.js → layers.BH9wqgDY.js} +1 -1
- package/dist/{layers.CqeHazh2.js → layers.BKC37Rv9.js} +312 -307
- package/dist/{layers.Ce_PEr-a.js → layers.BLDa5caG.js} +7 -7
- package/dist/{layers.TAEto6Cc.js → layers.BMC2kTTB.js} +1 -1
- package/dist/{layers.DHNbFys2.js → layers.BMwaDYYZ.js} +1 -1
- package/dist/{layers.DyM7PNXN.js → layers.BOuSIBai.js} +1 -1
- package/dist/{layers.BrxOfsKU.js → layers.BQKuAwQB.js} +1 -1
- package/dist/{layers.DukSLPoo.js → layers.BRDVz-vO.js} +1 -1
- package/dist/{layers.CwjXOC64.js → layers.BUmiV0yN.js} +1 -1
- package/dist/{layers.DqCoU2JD.js → layers.BV8IclsW.js} +4 -4
- package/dist/{layers.C3QXnm78.js → layers.BVMj1jxT.js} +1 -1
- package/dist/layers.BW2Tio6y.js +8 -0
- package/dist/{layers.BiLOI2BB.js → layers.BWcGUFHK.js} +1 -1
- package/dist/{layers.B9oOdv15.js → layers.BWnw9UAM.js} +1 -1
- package/dist/{layers.BN0QqImj.js → layers.BZ8rMF0E.js} +2 -2
- package/dist/layers.BZxcnuyH.js +1 -0
- package/dist/{layers.F8YP3iD1.js → layers.B_tG84JI.js} +1 -1
- package/dist/{layers.Du8zkp3O.js → layers.BahDi8Jq.js} +1 -1
- package/dist/{layers.d1Xrz87s.js → layers.BbArzt5V.js} +1 -1
- package/dist/{layers.BDztdwoe.js → layers.BbLvjR2J.js} +1 -1
- package/dist/{layers.De_6uA8g.js → layers.BeQ4Whpe.js} +1 -1
- package/dist/{layers.DEjmzIEE.js → layers.BeoJyn39.js} +1 -1
- package/dist/{layers.CERLNCsF.js → layers.BfiIrqIN.js} +1 -1
- package/dist/{layers.C6ANmA3z.js → layers.Bg-rk-IY.js} +3 -3
- package/dist/{layers.DOyDjuBn.js → layers.Bh3cQUDo.js} +1 -1
- package/dist/{layers.BXjod8ux.js → layers.BhzBGGFh.js} +4 -4
- package/dist/{layers.B4cBVPvd.js → layers.BjijCp-F.js} +1 -1
- package/dist/{layers.SCec437p.js → layers.BmTC_qEU.js} +3 -3
- package/dist/{layers.D6qoFg65.js → layers.Bp4GA39y.js} +243 -240
- package/dist/{layers.DQmR5BbR.js → layers.BrEysPok.js} +1 -1
- package/dist/{layers.BoKd3Opv.js → layers.Bs1Yuja3.js} +1 -1
- package/dist/{layers.CPd0wfyu.js → layers.Bt2QXZPR.js} +2 -2
- package/dist/{layers.DBiJVWIB.js → layers.Bt8u_f-g.js} +1 -1
- package/dist/{layers.BJN70TbB.js → layers.BtZHGQ6E.js} +1 -1
- package/dist/{layers.DSVNFncz.js → layers.BtsKbOpT.js} +1 -1
- package/dist/{layers.WC6uTnUG.js → layers.Bu-x_OvJ.js} +1 -1
- package/dist/{layers.CutUatmr.js → layers.BulWAmk4.js} +1 -1
- package/dist/{layers.BImKokxf.js → layers.BvS5Wia8.js} +1 -1
- package/dist/layers.BvuDBP9J.js +4 -0
- package/dist/{layers.DS4-wj64.js → layers.Bw0ntPL0.js} +1 -1
- package/dist/{layers.CKRbz9AX.js → layers.BwoIBDJT.js} +10 -10
- package/dist/{layers.KcmTc86G.js → layers.BxGdSKRP.js} +2 -2
- package/dist/{layers.BuQSaejb.js → layers.BxS3YGIg.js} +4 -4
- package/dist/{layers.WnfDZq_L.js → layers.C1IDSQaT.js} +1 -1
- package/dist/{layers.CXzmxjI3.js → layers.C1pkM2ng.js} +5 -5
- package/dist/{layers.kwghPwdc.js → layers.C22FTFEe.js} +1 -1
- package/dist/{layers.Bf8tF8Zh.js → layers.C4ls7ISP.js} +1 -1
- package/dist/{layers.CHz5UpY6.js → layers.C6FjBgZG.js} +1 -1
- package/dist/{layers.D8jMth7q.js → layers.C6qpUDWv.js} +1 -1
- package/dist/{layers.CsxIdh-5.js → layers.C8ovo18Q.js} +1 -1
- package/dist/{layers.BH99nVRn.js → layers.C8qZUu8m.js} +1 -1
- package/dist/{layers.OmUdp6O6.js → layers.C94fZyIE.js} +1 -1
- package/dist/{layers.DG6ArcYg.js → layers.CC5jTanD.js} +1 -1
- package/dist/{layers.D2liSNMb.js → layers.CEbG0GWT.js} +1 -1
- package/dist/{layers.D2IwWho1.js → layers.CFNz078z.js} +1 -1
- package/dist/{layers.D1mE8evp.js → layers.CGpLdUiP.js} +2 -2
- package/dist/{layers.C0O768PV.js → layers.CI18gAPx.js} +1 -1
- package/dist/{layers.BJ3Xb9PL.js → layers.CI9cIkVg.js} +1 -1
- package/dist/{layers.RJ08bFHy.js → layers.CIPEXJ_Z.js} +2 -2
- package/dist/{layers.IVewtL2H.js → layers.CJDFmwM6.js} +1 -1
- package/dist/{layers.BkFrADJ2.js → layers.CJKF-1iy.js} +1 -1
- package/dist/{layers.B7kA4zKD.js → layers.CLLE0XNM.js} +5 -5
- package/dist/{layers.C9H3n8qm.js → layers.CN8r250h.js} +1 -1
- package/dist/{layers.DNKPBLIg.js → layers.CNHqdpb5.js} +1 -1
- package/dist/{layers.D6aApqlI.js → layers.CNLMZ-n8.js} +1 -1
- package/dist/{layers.DoR5Jodc.js → layers.COLyJ5LO.js} +1 -1
- package/dist/{layers.CxhryzBW.js → layers.COPquQl9.js} +1 -1
- package/dist/{layers.DQDLQ3JY.js → layers.CQuzRJqP.js} +1 -1
- package/dist/{layers.SZ-NKoHP.js → layers.CR64bkIJ.js} +1 -1
- package/dist/{layers.CaDQ45MK.js → layers.CRBfbmxk.js} +1 -1
- package/dist/{layers.DkA9ohuJ.js → layers.CRqgQB8J.js} +8 -8
- package/dist/{layers.BlJasVbS.js → layers.CS2XhZuy.js} +1 -1
- package/dist/{layers.DRbRI35m.js → layers.CSAG6lyD.js} +1 -1
- package/dist/{layers.qsL8mg0n.js → layers.CTcZFAZr.js} +1 -1
- package/dist/{layers.BYZSLCPi.js → layers.CTm23lwt.js} +1 -1
- package/dist/{layers.BC9dC3rr.js → layers.CTwL_3Cz.js} +2 -2
- package/dist/{layers.Bb_gfFyt.js → layers.CU8oxKiy.js} +1 -1
- package/dist/{layers.Ce1hEFnt.js → layers.CUS1mIbU.js} +1 -1
- package/dist/{layers.DBuw0db9.js → layers.CV4vxTrW.js} +1 -1
- package/dist/{layers.DXbvuf4T.js → layers.CWT_90sw.js} +1 -1
- package/dist/{layers.BJi-aex_.js → layers.CWpeLc0t.js} +1 -1
- package/dist/{layers.BmKVvESm.js → layers.CZ8VwlJ4.js} +1 -1
- package/dist/{layers.B4tFIYtW.js → layers.C_TMBTwJ.js} +1 -1
- package/dist/{layers.CyZkAQOa.js → layers.CbKsKQXR.js} +1 -1
- package/dist/{layers.BOcCQd5a.js → layers.Cg7KtW25.js} +1 -1
- package/dist/{layers.8ozuUIB5.js → layers.ClRou2HW.js} +1 -1
- package/dist/{layers.D_tU1vL2.js → layers.CmawNzHJ.js} +1 -1
- package/dist/{layers.Ctr7JjWz.js → layers.Cq0Ch5Iv.js} +1 -1
- package/dist/{layers.t97hj3v5.js → layers.CqF4H_mD.js} +1 -1
- package/dist/{layers.BOFyEVtL.js → layers.CqMjEixm.js} +1 -1
- package/dist/{layers.C5uFTa-q.js → layers.Cs8AaSS3.js} +1 -1
- package/dist/{layers.DRJN3Qqz.js → layers.Ct4uwlVm.js} +1 -1
- package/dist/{layers.Cr5dNtIu.js → layers.CvP8SKXD.js} +1 -1
- package/dist/{layers.CUyrWIJq.js → layers.Cw-Ru6_X.js} +1 -1
- package/dist/{layers.B_hx9t5w.js → layers.CwIlknpB.js} +1 -1
- package/dist/{layers.BOIduyts.js → layers.CwoIo7W8.js} +1 -1
- package/dist/{layers.rdelwker.js → layers.CxfZ-PyC.js} +1 -1
- package/dist/{layers.soDgNxKV.js → layers.CxtTQD6P.js} +1 -1
- package/dist/{layers.CIlh5Gs8.js → layers.CyhLcp6y.js} +6 -6
- package/dist/{layers.BiWL1CIG.js → layers.CyziF_SQ.js} +1 -1
- package/dist/{layers.CXz5A-ui.js → layers.D-TocJgP.js} +2 -2
- package/dist/{layers.BG52BRJv.js → layers.D-kFJ8el.js} +1 -1
- package/dist/{layers.DYoMg_Vq.js → layers.D0DwN9e2.js} +1 -1
- package/dist/{layers.ZLj3yadj.js → layers.D1ZA3f6W.js} +17 -14
- package/dist/{layers.Ns3jFXFc.js → layers.D2U6dFrQ.js} +1 -1
- package/dist/{layers.Cjrufb7J.js → layers.D37Y-iXY.js} +1 -1
- package/dist/{layers.BS4vQx8z.js → layers.D3uU6aTA.js} +1 -1
- package/dist/{layers.0zuAfRAE.js → layers.D5zd0los.js} +1 -1
- package/dist/{layers.DIEpb8WM.js → layers.D8h1OdVA.js} +2 -2
- package/dist/{layers.CoCLphHc.js → layers.D8x1H5iy.js} +1 -1
- package/dist/{layers.CY6R_q6p.js → layers.D909hx91.js} +5 -5
- package/dist/{layers.Dxb-tFfq.js → layers.DAdht3uC.js} +1 -1
- package/dist/{layers.Dsmy3lsi.js → layers.DAjImaDP.js} +1 -1
- package/dist/{layers.Duz9F6lU.js → layers.DBc1SfKV.js} +1 -1
- package/dist/{layers.M6G_JkeL.js → layers.DCNkKcra.js} +4 -4
- package/dist/{layers.DiQ_gwIL.js → layers.DCRFU33R.js} +1 -1
- package/dist/{layers.CY8C-mEQ.js → layers.DCtPhtVd.js} +1 -1
- package/dist/layers.DEzlOM_P.js +1 -0
- package/dist/{layers.DnEZnko4.js → layers.DHSCEHR8.js} +1 -1
- package/dist/{layers.DDGKzEwb.js → layers.DIVgeM1q.js} +1 -1
- package/dist/{layers.ClJ8nrzW.js → layers.DRho07Me.js} +1 -1
- package/dist/{layers.DxSpOYEc.js → layers.DStKHWvW.js} +1 -1
- package/dist/{layers.CGfqWa9L.js → layers.DVOYRLqd.js} +1 -1
- package/dist/layers.DX3QVmN4.js +6 -0
- package/dist/{layers.BDGluALF.js → layers.DXz6eUMI.js} +1 -1
- package/dist/{layers.BPcE1ISv.js → layers.D_VA8g4H.js} +4 -4
- package/dist/{layers.Q0qeP4v6.js → layers.D_fROAHm.js} +1 -1
- package/dist/{layers.CxzAffhh.js → layers.DcfJoQ0g.js} +1 -1
- package/dist/{layers.BkL55eP7.js → layers.Dd8DmCpU.js} +1 -1
- package/dist/{layers.CKByva9O.js → layers.Ddk469Dh.js} +1 -1
- package/dist/{layers.DTwUXkdf.js → layers.Ddq-N8Yz.js} +1 -1
- package/dist/{layers.CCroTXUm.js → layers.DeMtErmI.js} +1 -1
- package/dist/layers.DftUTp1O.js +122 -0
- package/dist/{layers.gl94T7hy.js → layers.DgWiivNQ.js} +4 -4
- package/dist/{layers.DEn5dHoE.js → layers.DgZOLgtm.js} +1 -1
- package/dist/{layers.CjGrwg5F.js → layers.Dimd3uv_.js} +1 -1
- package/dist/{layers.DOaIYRd1.js → layers.Dj1UIVrM.js} +1 -1
- package/dist/{layers.CcEh52JV.js → layers.DjLVRmof.js} +1 -1
- package/dist/{layers.tHuZlFUf.js → layers.Dk0kd6-B.js} +1 -1
- package/dist/{layers.hOlu0HrY.js → layers.DpBckJG9.js} +1 -1
- package/dist/{layers.C1oA5eFU.js → layers.DpoYMK1j.js} +1 -1
- package/dist/{layers.D77zcOqA.js → layers.DrMkXfHK.js} +1 -1
- package/dist/{layers.DZr7Qkz9.js → layers.DrqT2qdE.js} +1 -1
- package/dist/{layers.PgPihd0l.js → layers.DvkFfQRh.js} +1 -1
- package/dist/{layers.woe7IQZ4.js → layers.DwIdSTnx.js} +1 -1
- package/dist/{layers.3RbjWi2G.js → layers.DxK9eunI.js} +1 -1
- package/dist/{layers.DMuZyoce.js → layers.DxlYIAi2.js} +1 -1
- package/dist/{layers.Difp8WSo.js → layers.DzuES31X.js} +744 -745
- package/dist/{layers.Djj_g2nX.js → layers.GDyqPJjS.js} +1 -1
- package/dist/{layers.DHXMHVvn.js → layers.IVSRrFHN.js} +1 -1
- package/dist/{layers.DbJ6O6vi.js → layers.JP-lzz5f.js} +1 -1
- package/dist/{layers.Dj_SObWn.js → layers.Ky-Kjdnk.js} +4 -4
- package/dist/{layers.JRv_vUI8.js → layers.OucwMvYb.js} +1 -1
- package/dist/{layers.CUQtPSYb.js → layers.STzdH4sy.js} +1 -1
- package/dist/{layers.DiRK1bXl.js → layers.SsYje0m0.js} +1 -1
- package/dist/{layers.CNw2TwGn.js → layers.TyARdHUj.js} +4 -4
- package/dist/{layers.M3pByxqo.js → layers.U3puEHYK.js} +3 -3
- package/dist/{layers.BJqXuX-7.js → layers.VCVkMi6g.js} +1 -1
- package/dist/{layers.D3-BCGA6.js → layers.YCPGkQIi.js} +1 -1
- package/dist/{layers.CyjViT1-.js → layers._9mQNYpC.js} +3 -3
- package/dist/{layers.DUfcNMdy.js → layers.bGcD7F4_.js} +1 -1
- package/dist/{layers.J0BOvhlC.js → layers.dd9VpJ2j.js} +1 -1
- package/dist/{layers.COqfbs2Z.js → layers.eXGxDQC_.js} +1 -1
- package/dist/{layers.CDqR0SZM.js → layers.eyx0ycIx.js} +1 -1
- package/dist/{layers.B0pG5PpS.js → layers.f6YInEN9.js} +1 -1
- package/dist/{layers.DvuuBfMn.js → layers.fDF0XXNl.js} +1 -1
- package/dist/{layers.Jnv_Qhu3.js → layers.fwvLLyfC.js} +1 -1
- package/dist/{layers.BsqdBnvN.js → layers.gWRZSm_f.js} +1 -1
- package/dist/{layers.d_9SW4Di.js → layers.iWHM-07P.js} +1 -1
- package/dist/{layers.B73Ahj2V.js → layers.lqQ4_QwL.js} +1 -1
- package/dist/{layers.BKAHSH4A.js → layers.mp_9sP04.js} +1 -1
- package/dist/{layers.CZCXURNP.js → layers.oAr0GPvq.js} +1 -1
- package/dist/{layers.45sRj6yW.js → layers.rOgZc7GK.js} +1 -1
- package/dist/{layers.BoVMqGYB.js → layers.rze-LVSQ.js} +3 -3
- package/dist/{layers.CFRn9Gb3.js → layers.s5JSe8EA.js} +8531 -8294
- package/dist/{layers.BbAfGOJq.js → layers.tv97TVVq.js} +3 -3
- package/dist/{layers.B-oGNRR6.js → layers.umahO1ag.js} +1 -1
- package/dist/{layers.DmPSZzed.js → layers.v61VCm7Q.js} +3 -3
- package/dist/{layers.DT7IdvFt.js → layers.vNQeOI7i.js} +1 -1
- package/dist/{layers.CnRrj_ns.js → layers.wt0qnNWd.js} +3 -3
- package/dist/{layers.CPS6m7mc.js → layers.zq4AFjsy.js} +1 -1
- package/package.json +4 -3
- package/dist/layers.B9pZK4Uf.js +0 -8
- package/dist/layers.BFK5RcJw.js +0 -6
- package/dist/layers.BWQQxLQ-.js +0 -4
- package/dist/layers.C50p672b.js +0 -1
- package/dist/layers.CItteJap.js +0 -348
- package/dist/layers.CYsjm8a5.js +0 -1
- package/dist/layers.CaWv47QB.js +0 -132
- package/dist/layers.DE1ptQHd.js +0 -1
- package/dist/layers.DjkiQ_cr.js +0 -122
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { l as g, r as lt, g as b, t as H, d as E, u as j, i as
|
|
2
|
-
import { c as st } from "./layers.
|
|
3
|
-
import { l as ct } from "./layers.
|
|
4
|
-
const ht = (
|
|
1
|
+
import { l as g, r as lt, g as b, t as H, d as E, u as j, i as Q, v as V } from "./layers.DzuES31X.js";
|
|
2
|
+
import { c as st } from "./layers.Bp4GA39y.js";
|
|
3
|
+
import { l as ct } from "./layers.7H2WL17C.js";
|
|
4
|
+
const ht = (a, t, e, i) => {
|
|
5
5
|
t.forEach((l) => {
|
|
6
|
-
wt[l](
|
|
6
|
+
wt[l](a, e, i);
|
|
7
7
|
});
|
|
8
|
-
}, ot = (
|
|
9
|
-
g.trace("Making markers for ",
|
|
10
|
-
}, yt = (
|
|
11
|
-
|
|
12
|
-
}, pt = (
|
|
13
|
-
|
|
14
|
-
}, ft = (
|
|
15
|
-
|
|
16
|
-
}, xt = (
|
|
17
|
-
|
|
18
|
-
}, dt = (
|
|
19
|
-
|
|
20
|
-
}, gt = (
|
|
21
|
-
|
|
22
|
-
}, ut = (
|
|
23
|
-
|
|
24
|
-
}, bt = (
|
|
25
|
-
|
|
8
|
+
}, ot = (a, t, e) => {
|
|
9
|
+
g.trace("Making markers for ", e), a.append("defs").append("marker").attr("id", e + "_" + t + "-extensionStart").attr("class", "marker extension " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 1,7 L18,13 V 1 Z"), a.append("defs").append("marker").attr("id", e + "_" + t + "-extensionEnd").attr("class", "marker extension " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 1,1 V 13 L18,7 Z");
|
|
10
|
+
}, yt = (a, t, e) => {
|
|
11
|
+
a.append("defs").append("marker").attr("id", e + "_" + t + "-compositionStart").attr("class", "marker composition " + t).attr("refX", 18).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"), a.append("defs").append("marker").attr("id", e + "_" + t + "-compositionEnd").attr("class", "marker composition " + t).attr("refX", 1).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");
|
|
12
|
+
}, pt = (a, t, e) => {
|
|
13
|
+
a.append("defs").append("marker").attr("id", e + "_" + t + "-aggregationStart").attr("class", "marker aggregation " + t).attr("refX", 18).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"), a.append("defs").append("marker").attr("id", e + "_" + t + "-aggregationEnd").attr("class", "marker aggregation " + t).attr("refX", 1).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");
|
|
14
|
+
}, ft = (a, t, e) => {
|
|
15
|
+
a.append("defs").append("marker").attr("id", e + "_" + t + "-dependencyStart").attr("class", "marker dependency " + t).attr("refX", 6).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"), a.append("defs").append("marker").attr("id", e + "_" + t + "-dependencyEnd").attr("class", "marker dependency " + t).attr("refX", 13).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");
|
|
16
|
+
}, xt = (a, t, e) => {
|
|
17
|
+
a.append("defs").append("marker").attr("id", e + "_" + t + "-lollipopStart").attr("class", "marker lollipop " + t).attr("refX", 13).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6), a.append("defs").append("marker").attr("id", e + "_" + t + "-lollipopEnd").attr("class", "marker lollipop " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6);
|
|
18
|
+
}, dt = (a, t, e) => {
|
|
19
|
+
a.append("marker").attr("id", e + "_" + t + "-pointEnd").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 6).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), a.append("marker").attr("id", e + "_" + t + "-pointStart").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 4.5).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 0 5 L 10 10 L 10 0 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0");
|
|
20
|
+
}, gt = (a, t, e) => {
|
|
21
|
+
a.append("marker").attr("id", e + "_" + t + "-circleEnd").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 11).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), a.append("marker").attr("id", e + "_" + t + "-circleStart").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", -1).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0");
|
|
22
|
+
}, ut = (a, t, e) => {
|
|
23
|
+
a.append("marker").attr("id", e + "_" + t + "-crossEnd").attr("class", "marker cross " + t).attr("viewBox", "0 0 11 11").attr("refX", 12).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0"), a.append("marker").attr("id", e + "_" + t + "-crossStart").attr("class", "marker cross " + t).attr("viewBox", "0 0 11 11").attr("refX", -1).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0");
|
|
24
|
+
}, bt = (a, t, e) => {
|
|
25
|
+
a.append("defs").append("marker").attr("id", e + "_" + t + "-barbEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 14).attr("markerUnits", "strokeWidth").attr("orient", "auto").append("path").attr("d", "M 19,7 L9,13 L14,7 L9,1 Z");
|
|
26
26
|
}, wt = {
|
|
27
27
|
extension: ot,
|
|
28
28
|
composition: yt,
|
|
@@ -34,56 +34,61 @@ const ht = (e, t, a, i) => {
|
|
|
34
34
|
cross: ut,
|
|
35
35
|
barb: bt
|
|
36
36
|
}, hr = ht;
|
|
37
|
-
function mt(
|
|
38
|
-
t &&
|
|
37
|
+
function mt(a, t) {
|
|
38
|
+
t && a.attr("style", t);
|
|
39
39
|
}
|
|
40
|
-
function kt(
|
|
41
|
-
const
|
|
42
|
-
return
|
|
43
|
-
|
|
44
|
-
|
|
40
|
+
function kt(a, t) {
|
|
41
|
+
const e = E(document.createElementNS("http://www.w3.org/2000/svg", "foreignObject")), i = e.append("xhtml:div"), l = a.label, r = a.isNode ? "nodeLabel" : "edgeLabel";
|
|
42
|
+
return i.html(
|
|
43
|
+
Q(
|
|
44
|
+
'<span class="' + r + '" ' + (a.labelStyle ? 'style="' + a.labelStyle + '"' : "") + ">" + l + "</span>",
|
|
45
|
+
t
|
|
46
|
+
)
|
|
47
|
+
), mt(i, a.labelStyle), i.style("display", "inline-block"), i.style("white-space", "nowrap"), i.attr("xmlns", "http://www.w3.org/1999/xhtml"), e.node();
|
|
45
48
|
}
|
|
46
|
-
const vt = (
|
|
47
|
-
let l =
|
|
48
|
-
|
|
49
|
+
const vt = (a, t, e, i) => {
|
|
50
|
+
let l = a || "";
|
|
51
|
+
typeof l == "object" && (l = l[0]);
|
|
52
|
+
const r = b();
|
|
53
|
+
if (H(r.flowchart.htmlLabels)) {
|
|
49
54
|
l = l.replace(/\\n|\n/g, "<br />"), g.debug("vertexText" + l);
|
|
50
|
-
const
|
|
55
|
+
const s = {
|
|
51
56
|
isNode: i,
|
|
52
|
-
label:
|
|
57
|
+
label: V(l).replace(
|
|
53
58
|
/fa[blrs]?:fa-[\w-]+/g,
|
|
54
59
|
// cspell: disable-line
|
|
55
|
-
(
|
|
60
|
+
(c) => `<i class='${c.replace(":", " ")}'></i>`
|
|
56
61
|
),
|
|
57
62
|
labelStyle: t.replace("fill:", "color:")
|
|
58
63
|
};
|
|
59
|
-
return kt(r);
|
|
64
|
+
return kt(s, r);
|
|
60
65
|
} else {
|
|
61
|
-
const
|
|
62
|
-
|
|
63
|
-
let
|
|
64
|
-
typeof l == "string" ?
|
|
65
|
-
for (const
|
|
66
|
-
const
|
|
67
|
-
|
|
66
|
+
const s = document.createElementNS("http://www.w3.org/2000/svg", "text");
|
|
67
|
+
s.setAttribute("style", t.replace("color:", "fill:"));
|
|
68
|
+
let n = [];
|
|
69
|
+
typeof l == "string" ? n = l.split(/\\n|\n|<br\s*\/?>/gi) : Array.isArray(l) ? n = l : n = [];
|
|
70
|
+
for (const c of n) {
|
|
71
|
+
const o = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
|
|
72
|
+
o.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve"), o.setAttribute("dy", "1em"), o.setAttribute("x", "0"), e ? o.setAttribute("class", "title-row") : o.setAttribute("class", "row"), o.textContent = c.trim(), s.appendChild(o);
|
|
68
73
|
}
|
|
69
|
-
return
|
|
74
|
+
return s;
|
|
70
75
|
}
|
|
71
|
-
}, R = vt, M = async (
|
|
76
|
+
}, R = vt, M = async (a, t, e, i) => {
|
|
72
77
|
let l;
|
|
73
78
|
const r = t.useHtmlLabels || H(b().flowchart.htmlLabels);
|
|
74
|
-
|
|
75
|
-
const s =
|
|
79
|
+
e ? l = e : l = "node default";
|
|
80
|
+
const s = a.insert("g").attr("class", l).attr("id", t.domId || t.id), n = s.insert("g").attr("class", "label").attr("style", t.labelStyle);
|
|
76
81
|
let c;
|
|
77
82
|
t.labelText === void 0 ? c = "" : c = typeof t.labelText == "string" ? t.labelText : t.labelText[0];
|
|
78
83
|
const o = n.node();
|
|
79
84
|
let h;
|
|
80
|
-
t.labelType === "markdown" ? h = st(n,
|
|
85
|
+
t.labelType === "markdown" ? h = st(n, Q(V(c), b()), {
|
|
81
86
|
useHtmlLabels: r,
|
|
82
87
|
width: t.width || b().flowchart.wrappingWidth,
|
|
83
88
|
classes: "markdown-node-label"
|
|
84
89
|
}) : h = o.appendChild(
|
|
85
90
|
R(
|
|
86
|
-
|
|
91
|
+
Q(V(c), b()),
|
|
87
92
|
t.labelStyle,
|
|
88
93
|
!1,
|
|
89
94
|
i
|
|
@@ -116,70 +121,70 @@ const vt = (e, t, a, i) => {
|
|
|
116
121
|
y = p.getBoundingClientRect(), d.attr("width", y.width), d.attr("height", y.height);
|
|
117
122
|
}
|
|
118
123
|
return r ? n.attr("transform", "translate(" + -y.width / 2 + ", " + -y.height / 2 + ")") : n.attr("transform", "translate(0, " + -y.height / 2 + ")"), t.centerLabel && n.attr("transform", "translate(" + -y.width / 2 + ", " + -y.height / 2 + ")"), n.insert("rect", ":first-child"), { shapeSvg: s, bbox: y, halfPadding: f, label: n };
|
|
119
|
-
}, m = (
|
|
120
|
-
const
|
|
121
|
-
|
|
124
|
+
}, m = (a, t) => {
|
|
125
|
+
const e = t.node().getBBox();
|
|
126
|
+
a.width = e.width, a.height = e.height;
|
|
122
127
|
};
|
|
123
|
-
function I(
|
|
124
|
-
return
|
|
128
|
+
function I(a, t, e, i) {
|
|
129
|
+
return a.insert("polygon", ":first-child").attr(
|
|
125
130
|
"points",
|
|
126
131
|
i.map(function(l) {
|
|
127
132
|
return l.x + "," + l.y;
|
|
128
133
|
}).join(" ")
|
|
129
|
-
).attr("class", "label-container").attr("transform", "translate(" + -t / 2 + "," +
|
|
134
|
+
).attr("class", "label-container").attr("transform", "translate(" + -t / 2 + "," + e / 2 + ")");
|
|
130
135
|
}
|
|
131
|
-
function Lt(
|
|
132
|
-
return
|
|
136
|
+
function Lt(a, t) {
|
|
137
|
+
return a.intersect(t);
|
|
133
138
|
}
|
|
134
|
-
function it(
|
|
135
|
-
var l =
|
|
139
|
+
function it(a, t, e, i) {
|
|
140
|
+
var l = a.x, r = a.y, s = l - i.x, n = r - i.y, c = Math.sqrt(t * t * n * n + e * e * s * s), o = Math.abs(t * e * s / c);
|
|
136
141
|
i.x < l && (o = -o);
|
|
137
|
-
var h = Math.abs(t *
|
|
142
|
+
var h = Math.abs(t * e * n / c);
|
|
138
143
|
return i.y < r && (h = -h), { x: l + o, y: r + h };
|
|
139
144
|
}
|
|
140
|
-
function St(
|
|
141
|
-
return it(
|
|
145
|
+
function St(a, t, e) {
|
|
146
|
+
return it(a, t, t, e);
|
|
142
147
|
}
|
|
143
|
-
function Mt(
|
|
148
|
+
function Mt(a, t, e, i) {
|
|
144
149
|
var l, r, s, n, c, o, h, y, f, p, d, k, x, u, S;
|
|
145
|
-
if (l = t.y -
|
|
150
|
+
if (l = t.y - a.y, s = a.x - t.x, c = t.x * a.y - a.x * t.y, f = l * e.x + s * e.y + c, p = l * i.x + s * i.y + c, !(f !== 0 && p !== 0 && J(f, p)) && (r = i.y - e.y, n = e.x - i.x, o = i.x * e.y - e.x * i.y, h = r * a.x + n * a.y + o, y = r * t.x + n * t.y + o, !(h !== 0 && y !== 0 && J(h, y)) && (d = l * n - r * s, d !== 0)))
|
|
146
151
|
return k = Math.abs(d / 2), x = s * o - n * c, u = x < 0 ? (x - k) / d : (x + k) / d, x = r * c - l * o, S = x < 0 ? (x - k) / d : (x + k) / d, { x: u, y: S };
|
|
147
152
|
}
|
|
148
|
-
function J(
|
|
149
|
-
return
|
|
153
|
+
function J(a, t) {
|
|
154
|
+
return a * t > 0;
|
|
150
155
|
}
|
|
151
|
-
function Tt(
|
|
152
|
-
var i =
|
|
156
|
+
function Tt(a, t, e) {
|
|
157
|
+
var i = a.x, l = a.y, r = [], s = Number.POSITIVE_INFINITY, n = Number.POSITIVE_INFINITY;
|
|
153
158
|
typeof t.forEach == "function" ? t.forEach(function(d) {
|
|
154
159
|
s = Math.min(s, d.x), n = Math.min(n, d.y);
|
|
155
160
|
}) : (s = Math.min(s, t.x), n = Math.min(n, t.y));
|
|
156
|
-
for (var c = i -
|
|
161
|
+
for (var c = i - a.width / 2 - s, o = l - a.height / 2 - n, h = 0; h < t.length; h++) {
|
|
157
162
|
var y = t[h], f = t[h < t.length - 1 ? h + 1 : 0], p = Mt(
|
|
158
|
-
e,
|
|
159
163
|
a,
|
|
164
|
+
e,
|
|
160
165
|
{ x: c + y.x, y: o + y.y },
|
|
161
166
|
{ x: c + f.x, y: o + f.y }
|
|
162
167
|
);
|
|
163
168
|
p && r.push(p);
|
|
164
169
|
}
|
|
165
170
|
return r.length ? (r.length > 1 && r.sort(function(d, k) {
|
|
166
|
-
var x = d.x -
|
|
171
|
+
var x = d.x - e.x, u = d.y - e.y, S = Math.sqrt(x * x + u * u), B = k.x - e.x, C = k.y - e.y, X = Math.sqrt(B * B + C * C);
|
|
167
172
|
return S < X ? -1 : S === X ? 0 : 1;
|
|
168
|
-
}), r[0]) :
|
|
173
|
+
}), r[0]) : a;
|
|
169
174
|
}
|
|
170
|
-
const Bt = (
|
|
171
|
-
var
|
|
172
|
-
return Math.abs(r) * s > Math.abs(l) * n ? (r < 0 && (n = -n), c = r === 0 ? 0 : n * l / r, o = n) : (l < 0 && (s = -s), c = s, o = l === 0 ? 0 : s * r / l), { x:
|
|
175
|
+
const Bt = (a, t) => {
|
|
176
|
+
var e = a.x, i = a.y, l = t.x - e, r = t.y - i, s = a.width / 2, n = a.height / 2, c, o;
|
|
177
|
+
return Math.abs(r) * s > Math.abs(l) * n ? (r < 0 && (n = -n), c = r === 0 ? 0 : n * l / r, o = n) : (l < 0 && (s = -s), c = s, o = l === 0 ? 0 : s * r / l), { x: e + c, y: i + o };
|
|
173
178
|
}, Et = Bt, w = {
|
|
174
179
|
node: Lt,
|
|
175
180
|
circle: St,
|
|
176
181
|
ellipse: it,
|
|
177
182
|
polygon: Tt,
|
|
178
183
|
rect: Et
|
|
179
|
-
}, Ct = async (
|
|
184
|
+
}, Ct = async (a, t) => {
|
|
180
185
|
t.useHtmlLabels || b().flowchart.htmlLabels || (t.centerLabel = !0);
|
|
181
186
|
const { shapeSvg: i, bbox: l, halfPadding: r } = await M(
|
|
182
|
-
|
|
187
|
+
a,
|
|
183
188
|
t,
|
|
184
189
|
"node " + t.classes,
|
|
185
190
|
!0
|
|
@@ -189,10 +194,10 @@ const Bt = (e, t) => {
|
|
|
189
194
|
return s.attr("rx", t.rx).attr("ry", t.ry).attr("x", -l.width / 2 - r).attr("y", -l.height / 2 - r).attr("width", l.width + t.padding).attr("height", l.height + t.padding), m(t, s), t.intersect = function(n) {
|
|
190
195
|
return w.rect(t, n);
|
|
191
196
|
}, i;
|
|
192
|
-
}, $t = Ct, _t = (
|
|
197
|
+
}, $t = Ct, _t = (a) => {
|
|
193
198
|
const t = /* @__PURE__ */ new Set();
|
|
194
|
-
for (const
|
|
195
|
-
switch (
|
|
199
|
+
for (const e of a)
|
|
200
|
+
switch (e) {
|
|
196
201
|
case "x":
|
|
197
202
|
t.add("right"), t.add("left");
|
|
198
203
|
break;
|
|
@@ -200,12 +205,12 @@ const Bt = (e, t) => {
|
|
|
200
205
|
t.add("up"), t.add("down");
|
|
201
206
|
break;
|
|
202
207
|
default:
|
|
203
|
-
t.add(
|
|
208
|
+
t.add(e);
|
|
204
209
|
break;
|
|
205
210
|
}
|
|
206
211
|
return t;
|
|
207
|
-
}, Rt = (
|
|
208
|
-
const i = _t(
|
|
212
|
+
}, Rt = (a, t, e) => {
|
|
213
|
+
const i = _t(a), l = 2, r = t.height + 2 * e.padding, s = r / l, n = t.width + 2 * s + e.padding, c = e.padding / 2;
|
|
209
214
|
return i.has("right") && i.has("left") && i.has("up") && i.has("down") ? [
|
|
210
215
|
// Bottom
|
|
211
216
|
{ x: 0, y: 0 },
|
|
@@ -336,11 +341,11 @@ const Bt = (e, t) => {
|
|
|
336
341
|
{ x: n - s, y: -c },
|
|
337
342
|
{ x: n, y: -c }
|
|
338
343
|
] : [{ x: 0, y: 0 }];
|
|
339
|
-
}, K = (
|
|
340
|
-
|
|
341
|
-
)}`, P = async (
|
|
342
|
-
const { shapeSvg:
|
|
343
|
-
|
|
344
|
+
}, K = (a) => a ? " " + a : "", _ = (a, t) => `node default${K(a.classes)} ${K(
|
|
345
|
+
a.class
|
|
346
|
+
)}`, P = async (a, t) => {
|
|
347
|
+
const { shapeSvg: e, bbox: i } = await M(
|
|
348
|
+
a,
|
|
344
349
|
t,
|
|
345
350
|
_(t),
|
|
346
351
|
!0
|
|
@@ -351,28 +356,28 @@ const Bt = (e, t) => {
|
|
|
351
356
|
{ x: 0, y: -s / 2 }
|
|
352
357
|
];
|
|
353
358
|
g.info("Question main (Circle)");
|
|
354
|
-
const c = I(
|
|
359
|
+
const c = I(e, s, s, n);
|
|
355
360
|
return c.attr("style", t.style), m(t, c), t.intersect = function(o) {
|
|
356
361
|
return g.warn("Intersect called"), w.polygon(t, n, o);
|
|
357
|
-
},
|
|
358
|
-
}, Ht = (
|
|
359
|
-
const
|
|
362
|
+
}, e;
|
|
363
|
+
}, Ht = (a, t) => {
|
|
364
|
+
const e = a.insert("g").attr("class", "node default").attr("id", t.domId || t.id), i = 28, l = [
|
|
360
365
|
{ x: 0, y: i / 2 },
|
|
361
366
|
{ x: i / 2, y: 0 },
|
|
362
367
|
{ x: 0, y: -i / 2 },
|
|
363
368
|
{ x: -i / 2, y: 0 }
|
|
364
369
|
];
|
|
365
|
-
return
|
|
370
|
+
return e.insert("polygon", ":first-child").attr(
|
|
366
371
|
"points",
|
|
367
372
|
l.map(function(s) {
|
|
368
373
|
return s.x + "," + s.y;
|
|
369
374
|
}).join(" ")
|
|
370
375
|
).attr("class", "state-start").attr("r", 7).attr("width", 28).attr("height", 28), t.width = 28, t.height = 28, t.intersect = function(s) {
|
|
371
376
|
return w.circle(t, 14, s);
|
|
372
|
-
},
|
|
373
|
-
}, It = async (
|
|
374
|
-
const { shapeSvg:
|
|
375
|
-
|
|
377
|
+
}, e;
|
|
378
|
+
}, It = async (a, t) => {
|
|
379
|
+
const { shapeSvg: e, bbox: i } = await M(
|
|
380
|
+
a,
|
|
376
381
|
t,
|
|
377
382
|
_(t),
|
|
378
383
|
!0
|
|
@@ -383,18 +388,18 @@ const Bt = (e, t) => {
|
|
|
383
388
|
{ x: n - s, y: -r },
|
|
384
389
|
{ x: s, y: -r },
|
|
385
390
|
{ x: 0, y: -r / 2 }
|
|
386
|
-
], o = I(
|
|
391
|
+
], o = I(e, n, r, c);
|
|
387
392
|
return o.attr("style", t.style), m(t, o), t.intersect = function(h) {
|
|
388
393
|
return w.polygon(t, c, h);
|
|
389
|
-
},
|
|
390
|
-
}, Nt = async (
|
|
391
|
-
const { shapeSvg:
|
|
394
|
+
}, e;
|
|
395
|
+
}, Nt = async (a, t) => {
|
|
396
|
+
const { shapeSvg: e, bbox: i } = await M(a, t, void 0, !0), l = 2, r = i.height + 2 * t.padding, s = r / l, n = i.width + 2 * s + t.padding, c = Rt(t.directions, i, t), o = I(e, n, r, c);
|
|
392
397
|
return o.attr("style", t.style), m(t, o), t.intersect = function(h) {
|
|
393
398
|
return w.polygon(t, c, h);
|
|
394
|
-
},
|
|
395
|
-
}, Ot = async (
|
|
396
|
-
const { shapeSvg:
|
|
397
|
-
|
|
399
|
+
}, e;
|
|
400
|
+
}, Ot = async (a, t) => {
|
|
401
|
+
const { shapeSvg: e, bbox: i } = await M(
|
|
402
|
+
a,
|
|
398
403
|
t,
|
|
399
404
|
_(t),
|
|
400
405
|
!0
|
|
@@ -405,22 +410,22 @@ const Bt = (e, t) => {
|
|
|
405
410
|
{ x: -r / 2, y: -r },
|
|
406
411
|
{ x: 0, y: -r / 2 }
|
|
407
412
|
];
|
|
408
|
-
return I(
|
|
413
|
+
return I(e, l, r, s).attr("style", t.style), t.width = l + r, t.height = r, t.intersect = function(c) {
|
|
409
414
|
return w.polygon(t, s, c);
|
|
410
|
-
},
|
|
411
|
-
}, Wt = async (
|
|
412
|
-
const { shapeSvg:
|
|
415
|
+
}, e;
|
|
416
|
+
}, Wt = async (a, t) => {
|
|
417
|
+
const { shapeSvg: e, bbox: i } = await M(a, t, _(t), !0), l = i.width + t.padding, r = i.height + t.padding, s = [
|
|
413
418
|
{ x: -2 * r / 6, y: 0 },
|
|
414
419
|
{ x: l - r / 6, y: 0 },
|
|
415
420
|
{ x: l + 2 * r / 6, y: -r },
|
|
416
421
|
{ x: r / 6, y: -r }
|
|
417
|
-
], n = I(
|
|
422
|
+
], n = I(e, l, r, s);
|
|
418
423
|
return n.attr("style", t.style), m(t, n), t.intersect = function(c) {
|
|
419
424
|
return w.polygon(t, s, c);
|
|
420
|
-
},
|
|
421
|
-
}, Xt = async (
|
|
422
|
-
const { shapeSvg:
|
|
423
|
-
|
|
425
|
+
}, e;
|
|
426
|
+
}, Xt = async (a, t) => {
|
|
427
|
+
const { shapeSvg: e, bbox: i } = await M(
|
|
428
|
+
a,
|
|
424
429
|
t,
|
|
425
430
|
_(t),
|
|
426
431
|
!0
|
|
@@ -429,13 +434,13 @@ const Bt = (e, t) => {
|
|
|
429
434
|
{ x: l + r / 6, y: 0 },
|
|
430
435
|
{ x: l - 2 * r / 6, y: -r },
|
|
431
436
|
{ x: -r / 6, y: -r }
|
|
432
|
-
], n = I(
|
|
437
|
+
], n = I(e, l, r, s);
|
|
433
438
|
return n.attr("style", t.style), m(t, n), t.intersect = function(c) {
|
|
434
439
|
return w.polygon(t, s, c);
|
|
435
|
-
},
|
|
436
|
-
}, Yt = async (
|
|
437
|
-
const { shapeSvg:
|
|
438
|
-
|
|
440
|
+
}, e;
|
|
441
|
+
}, Yt = async (a, t) => {
|
|
442
|
+
const { shapeSvg: e, bbox: i } = await M(
|
|
443
|
+
a,
|
|
439
444
|
t,
|
|
440
445
|
_(t),
|
|
441
446
|
!0
|
|
@@ -444,13 +449,13 @@ const Bt = (e, t) => {
|
|
|
444
449
|
{ x: l + 2 * r / 6, y: 0 },
|
|
445
450
|
{ x: l - r / 6, y: -r },
|
|
446
451
|
{ x: r / 6, y: -r }
|
|
447
|
-
], n = I(
|
|
452
|
+
], n = I(e, l, r, s);
|
|
448
453
|
return n.attr("style", t.style), m(t, n), t.intersect = function(c) {
|
|
449
454
|
return w.polygon(t, s, c);
|
|
450
|
-
},
|
|
451
|
-
}, Dt = async (
|
|
452
|
-
const { shapeSvg:
|
|
453
|
-
|
|
455
|
+
}, e;
|
|
456
|
+
}, Dt = async (a, t) => {
|
|
457
|
+
const { shapeSvg: e, bbox: i } = await M(
|
|
458
|
+
a,
|
|
454
459
|
t,
|
|
455
460
|
_(t),
|
|
456
461
|
!0
|
|
@@ -459,13 +464,13 @@ const Bt = (e, t) => {
|
|
|
459
464
|
{ x: l - r / 6, y: 0 },
|
|
460
465
|
{ x: l + 2 * r / 6, y: -r },
|
|
461
466
|
{ x: -2 * r / 6, y: -r }
|
|
462
|
-
], n = I(
|
|
467
|
+
], n = I(e, l, r, s);
|
|
463
468
|
return n.attr("style", t.style), m(t, n), t.intersect = function(c) {
|
|
464
469
|
return w.polygon(t, s, c);
|
|
465
|
-
},
|
|
466
|
-
}, At = async (
|
|
467
|
-
const { shapeSvg:
|
|
468
|
-
|
|
470
|
+
}, e;
|
|
471
|
+
}, At = async (a, t) => {
|
|
472
|
+
const { shapeSvg: e, bbox: i } = await M(
|
|
473
|
+
a,
|
|
469
474
|
t,
|
|
470
475
|
_(t),
|
|
471
476
|
!0
|
|
@@ -475,17 +480,17 @@ const Bt = (e, t) => {
|
|
|
475
480
|
{ x: l, y: -r / 2 },
|
|
476
481
|
{ x: l + r / 2, y: -r },
|
|
477
482
|
{ x: 0, y: -r }
|
|
478
|
-
], n = I(
|
|
483
|
+
], n = I(e, l, r, s);
|
|
479
484
|
return n.attr("style", t.style), m(t, n), t.intersect = function(c) {
|
|
480
485
|
return w.polygon(t, s, c);
|
|
481
|
-
},
|
|
482
|
-
}, jt = async (
|
|
483
|
-
const { shapeSvg:
|
|
484
|
-
|
|
486
|
+
}, e;
|
|
487
|
+
}, jt = async (a, t) => {
|
|
488
|
+
const { shapeSvg: e, bbox: i } = await M(
|
|
489
|
+
a,
|
|
485
490
|
t,
|
|
486
491
|
_(t),
|
|
487
492
|
!0
|
|
488
|
-
), l = i.width + t.padding, r = l / 2, s = r / (2.5 + l / 50), n = i.height + s + t.padding, c = "M 0," + s + " a " + r + "," + s + " 0,0,0 " + l + " 0 a " + r + "," + s + " 0,0,0 " + -l + " 0 l 0," + n + " a " + r + "," + s + " 0,0,0 " + l + " 0 l 0," + -n, o =
|
|
493
|
+
), l = i.width + t.padding, r = l / 2, s = r / (2.5 + l / 50), n = i.height + s + t.padding, c = "M 0," + s + " a " + r + "," + s + " 0,0,0 " + l + " 0 a " + r + "," + s + " 0,0,0 " + -l + " 0 l 0," + n + " a " + r + "," + s + " 0,0,0 " + l + " 0 l 0," + -n, o = e.attr("label-offset-y", s).insert("path", ":first-child").attr("style", t.style).attr("d", c).attr("transform", "translate(" + -l / 2 + "," + -(n / 2 + s) + ")");
|
|
489
494
|
return m(t, o), t.intersect = function(h) {
|
|
490
495
|
const y = w.rect(t, h), f = y.x - t.x;
|
|
491
496
|
if (r != 0 && (Math.abs(f) < t.width / 2 || Math.abs(f) == t.width / 2 && Math.abs(y.y - t.y) > t.height / 2 - s)) {
|
|
@@ -493,65 +498,65 @@ const Bt = (e, t) => {
|
|
|
493
498
|
p != 0 && (p = Math.sqrt(p)), p = s - p, h.y - t.y > 0 && (p = -p), y.y += p;
|
|
494
499
|
}
|
|
495
500
|
return y;
|
|
496
|
-
},
|
|
497
|
-
}, Ut = async (
|
|
498
|
-
const { shapeSvg:
|
|
499
|
-
|
|
501
|
+
}, e;
|
|
502
|
+
}, Ut = async (a, t) => {
|
|
503
|
+
const { shapeSvg: e, bbox: i, halfPadding: l } = await M(
|
|
504
|
+
a,
|
|
500
505
|
t,
|
|
501
506
|
"node " + t.classes + " " + t.class,
|
|
502
507
|
!0
|
|
503
|
-
), r =
|
|
508
|
+
), r = e.insert("rect", ":first-child"), s = t.positioned ? t.width : i.width + t.padding, n = t.positioned ? t.height : i.height + t.padding, c = t.positioned ? -s / 2 : -i.width / 2 - l, o = t.positioned ? -n / 2 : -i.height / 2 - l;
|
|
504
509
|
if (r.attr("class", "basic label-container").attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("x", c).attr("y", o).attr("width", s).attr("height", n), t.props) {
|
|
505
510
|
const h = new Set(Object.keys(t.props));
|
|
506
|
-
t.props.borders && (
|
|
511
|
+
t.props.borders && (q(r, t.props.borders, s, n), h.delete("borders")), h.forEach((y) => {
|
|
507
512
|
g.warn(`Unknown node property ${y}`);
|
|
508
513
|
});
|
|
509
514
|
}
|
|
510
515
|
return m(t, r), t.intersect = function(h) {
|
|
511
516
|
return w.rect(t, h);
|
|
512
|
-
},
|
|
513
|
-
}, zt = async (
|
|
514
|
-
const { shapeSvg:
|
|
515
|
-
|
|
517
|
+
}, e;
|
|
518
|
+
}, zt = async (a, t) => {
|
|
519
|
+
const { shapeSvg: e, bbox: i, halfPadding: l } = await M(
|
|
520
|
+
a,
|
|
516
521
|
t,
|
|
517
522
|
"node " + t.classes,
|
|
518
523
|
!0
|
|
519
|
-
), r =
|
|
524
|
+
), r = e.insert("rect", ":first-child"), s = t.positioned ? t.width : i.width + t.padding, n = t.positioned ? t.height : i.height + t.padding, c = t.positioned ? -s / 2 : -i.width / 2 - l, o = t.positioned ? -n / 2 : -i.height / 2 - l;
|
|
520
525
|
if (r.attr("class", "basic cluster composite label-container").attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("x", c).attr("y", o).attr("width", s).attr("height", n), t.props) {
|
|
521
526
|
const h = new Set(Object.keys(t.props));
|
|
522
|
-
t.props.borders && (
|
|
527
|
+
t.props.borders && (q(r, t.props.borders, s, n), h.delete("borders")), h.forEach((y) => {
|
|
523
528
|
g.warn(`Unknown node property ${y}`);
|
|
524
529
|
});
|
|
525
530
|
}
|
|
526
531
|
return m(t, r), t.intersect = function(h) {
|
|
527
532
|
return w.rect(t, h);
|
|
528
|
-
},
|
|
529
|
-
}, Zt = async (
|
|
530
|
-
const { shapeSvg:
|
|
533
|
+
}, e;
|
|
534
|
+
}, Zt = async (a, t) => {
|
|
535
|
+
const { shapeSvg: e } = await M(a, t, "label", !0);
|
|
531
536
|
g.trace("Classes = ", t.class);
|
|
532
|
-
const i =
|
|
533
|
-
if (i.attr("width", l).attr("height", r),
|
|
537
|
+
const i = e.insert("rect", ":first-child"), l = 0, r = 0;
|
|
538
|
+
if (i.attr("width", l).attr("height", r), e.attr("class", "label edgeLabel"), t.props) {
|
|
534
539
|
const s = new Set(Object.keys(t.props));
|
|
535
|
-
t.props.borders && (
|
|
540
|
+
t.props.borders && (q(i, t.props.borders, l, r), s.delete("borders")), s.forEach((n) => {
|
|
536
541
|
g.warn(`Unknown node property ${n}`);
|
|
537
542
|
});
|
|
538
543
|
}
|
|
539
544
|
return m(t, i), t.intersect = function(s) {
|
|
540
545
|
return w.rect(t, s);
|
|
541
|
-
},
|
|
546
|
+
}, e;
|
|
542
547
|
};
|
|
543
|
-
function
|
|
548
|
+
function q(a, t, e, i) {
|
|
544
549
|
const l = [], r = (n) => {
|
|
545
550
|
l.push(n, 0);
|
|
546
551
|
}, s = (n) => {
|
|
547
552
|
l.push(0, n);
|
|
548
553
|
};
|
|
549
|
-
t.includes("t") ? (g.debug("add top border"), r(
|
|
554
|
+
t.includes("t") ? (g.debug("add top border"), r(e)) : s(e), t.includes("r") ? (g.debug("add right border"), r(i)) : s(i), t.includes("b") ? (g.debug("add bottom border"), r(e)) : s(e), t.includes("l") ? (g.debug("add left border"), r(i)) : s(i), a.attr("stroke-dasharray", l.join(" "));
|
|
550
555
|
}
|
|
551
|
-
const Gt = (
|
|
552
|
-
let
|
|
553
|
-
t.classes ?
|
|
554
|
-
const i =
|
|
556
|
+
const Gt = (a, t) => {
|
|
557
|
+
let e;
|
|
558
|
+
t.classes ? e = "node " + t.classes : e = "node default";
|
|
559
|
+
const i = a.insert("g").attr("class", e).attr("id", t.domId || t.id), l = i.insert("rect", ":first-child"), r = i.insert("line"), s = i.insert("g").attr("class", "label"), n = t.labelText.flat ? t.labelText.flat() : t.labelText;
|
|
555
560
|
let c = "";
|
|
556
561
|
typeof n == "object" ? c = n[0] : c = n, g.info("Label text abc79", c, n, typeof n == "object");
|
|
557
562
|
const o = s.node().appendChild(R(c, t.labelStyle, !0, !0));
|
|
@@ -585,39 +590,39 @@ const Gt = (e, t) => {
|
|
|
585
590
|
), l.attr("class", "outer title-state").attr("x", -h.width / 2 - d).attr("y", -h.height / 2 - d).attr("width", h.width + t.padding).attr("height", h.height + t.padding), r.attr("class", "divider").attr("x1", -h.width / 2 - d).attr("x2", h.width / 2 + d).attr("y1", -h.height / 2 - d + f.height + d).attr("y2", -h.height / 2 - d + f.height + d), m(t, l), t.intersect = function(k) {
|
|
586
591
|
return w.rect(t, k);
|
|
587
592
|
}, i;
|
|
588
|
-
}, Ft = async (
|
|
589
|
-
const { shapeSvg:
|
|
590
|
-
|
|
593
|
+
}, Ft = async (a, t) => {
|
|
594
|
+
const { shapeSvg: e, bbox: i } = await M(
|
|
595
|
+
a,
|
|
591
596
|
t,
|
|
592
597
|
_(t),
|
|
593
598
|
!0
|
|
594
|
-
), l = i.height + t.padding, r = i.width + l / 4 + t.padding, s =
|
|
599
|
+
), l = i.height + t.padding, r = i.width + l / 4 + t.padding, s = e.insert("rect", ":first-child").attr("style", t.style).attr("rx", l / 2).attr("ry", l / 2).attr("x", -r / 2).attr("y", -l / 2).attr("width", r).attr("height", l);
|
|
595
600
|
return m(t, s), t.intersect = function(n) {
|
|
596
601
|
return w.rect(t, n);
|
|
597
|
-
},
|
|
598
|
-
}, Qt = async (
|
|
599
|
-
const { shapeSvg:
|
|
600
|
-
|
|
602
|
+
}, e;
|
|
603
|
+
}, Qt = async (a, t) => {
|
|
604
|
+
const { shapeSvg: e, bbox: i, halfPadding: l } = await M(
|
|
605
|
+
a,
|
|
601
606
|
t,
|
|
602
607
|
_(t),
|
|
603
608
|
!0
|
|
604
|
-
), r =
|
|
609
|
+
), r = e.insert("circle", ":first-child");
|
|
605
610
|
return r.attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("r", i.width / 2 + l).attr("width", i.width + t.padding).attr("height", i.height + t.padding), g.info("Circle main"), m(t, r), t.intersect = function(s) {
|
|
606
611
|
return g.info("Circle intersect", t, i.width / 2 + l, s), w.circle(t, i.width / 2 + l, s);
|
|
607
|
-
},
|
|
608
|
-
}, Vt = async (
|
|
609
|
-
const { shapeSvg:
|
|
610
|
-
|
|
612
|
+
}, e;
|
|
613
|
+
}, Vt = async (a, t) => {
|
|
614
|
+
const { shapeSvg: e, bbox: i, halfPadding: l } = await M(
|
|
615
|
+
a,
|
|
611
616
|
t,
|
|
612
617
|
_(t),
|
|
613
618
|
!0
|
|
614
|
-
), r = 5, s =
|
|
619
|
+
), r = 5, s = e.insert("g", ":first-child"), n = s.insert("circle"), c = s.insert("circle");
|
|
615
620
|
return s.attr("class", t.class), n.attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("r", i.width / 2 + l + r).attr("width", i.width + t.padding + r * 2).attr("height", i.height + t.padding + r * 2), c.attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("r", i.width / 2 + l).attr("width", i.width + t.padding).attr("height", i.height + t.padding), g.info("DoubleCircle main"), m(t, n), t.intersect = function(o) {
|
|
616
621
|
return g.info("DoubleCircle intersect", t, i.width / 2 + l + r, o), w.circle(t, i.width / 2 + l + r, o);
|
|
617
|
-
},
|
|
618
|
-
}, qt = async (
|
|
619
|
-
const { shapeSvg:
|
|
620
|
-
|
|
622
|
+
}, e;
|
|
623
|
+
}, qt = async (a, t) => {
|
|
624
|
+
const { shapeSvg: e, bbox: i } = await M(
|
|
625
|
+
a,
|
|
621
626
|
t,
|
|
622
627
|
_(t),
|
|
623
628
|
!0
|
|
@@ -632,33 +637,33 @@ const Gt = (e, t) => {
|
|
|
632
637
|
{ x: l + 8, y: -r },
|
|
633
638
|
{ x: -8, y: -r },
|
|
634
639
|
{ x: -8, y: 0 }
|
|
635
|
-
], n = I(
|
|
640
|
+
], n = I(e, l, r, s);
|
|
636
641
|
return n.attr("style", t.style), m(t, n), t.intersect = function(c) {
|
|
637
642
|
return w.polygon(t, s, c);
|
|
638
|
-
},
|
|
639
|
-
}, Jt = (
|
|
640
|
-
const
|
|
643
|
+
}, e;
|
|
644
|
+
}, Jt = (a, t) => {
|
|
645
|
+
const e = a.insert("g").attr("class", "node default").attr("id", t.domId || t.id), i = e.insert("circle", ":first-child");
|
|
641
646
|
return i.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14), m(t, i), t.intersect = function(l) {
|
|
642
647
|
return w.circle(t, 7, l);
|
|
643
|
-
},
|
|
644
|
-
}, tt = (
|
|
645
|
-
const i =
|
|
648
|
+
}, e;
|
|
649
|
+
}, tt = (a, t, e) => {
|
|
650
|
+
const i = a.insert("g").attr("class", "node default").attr("id", t.domId || t.id);
|
|
646
651
|
let l = 70, r = 10;
|
|
647
|
-
|
|
652
|
+
e === "LR" && (l = 10, r = 70);
|
|
648
653
|
const s = i.append("rect").attr("x", -1 * l / 2).attr("y", -1 * r / 2).attr("width", l).attr("height", r).attr("class", "fork-join");
|
|
649
654
|
return m(t, s), t.height = t.height + t.padding / 2, t.width = t.width + t.padding / 2, t.intersect = function(n) {
|
|
650
655
|
return w.rect(t, n);
|
|
651
656
|
}, i;
|
|
652
|
-
}, Kt = (
|
|
653
|
-
const
|
|
657
|
+
}, Kt = (a, t) => {
|
|
658
|
+
const e = a.insert("g").attr("class", "node default").attr("id", t.domId || t.id), i = e.insert("circle", ":first-child"), l = e.insert("circle", ":first-child");
|
|
654
659
|
return l.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14), i.attr("class", "state-end").attr("r", 5).attr("width", 10).attr("height", 10), m(t, l), t.intersect = function(r) {
|
|
655
660
|
return w.circle(t, 7, r);
|
|
656
|
-
},
|
|
657
|
-
}, Pt = (
|
|
658
|
-
const
|
|
661
|
+
}, e;
|
|
662
|
+
}, Pt = (a, t) => {
|
|
663
|
+
const e = t.padding / 2, i = 4, l = 8;
|
|
659
664
|
let r;
|
|
660
665
|
t.classes ? r = "node " + t.classes : r = "node default";
|
|
661
|
-
const s =
|
|
666
|
+
const s = a.insert("g").attr("class", r).attr("id", t.domId || t.id), n = s.insert("rect", ":first-child"), c = s.insert("line"), o = s.insert("line");
|
|
662
667
|
let h = 0, y = i;
|
|
663
668
|
const f = s.insert("g").attr("class", "label");
|
|
664
669
|
let p = 0;
|
|
@@ -729,21 +734,21 @@ const Gt = (e, t) => {
|
|
|
729
734
|
return E(B).attr(
|
|
730
735
|
"transform",
|
|
731
736
|
"translate( " + (-1 * h / 2 + nt) + ", " + (-1 * y / 2 + p) + ")"
|
|
732
|
-
), p += C.height + i, c.attr("class", "divider").attr("x1", -h / 2 -
|
|
737
|
+
), p += C.height + i, c.attr("class", "divider").attr("x1", -h / 2 - e).attr("x2", h / 2 + e).attr("y1", -y / 2 - e + l + p).attr("y2", -y / 2 - e + l + p), p += l, X.forEach((v) => {
|
|
733
738
|
E(v).attr(
|
|
734
739
|
"transform",
|
|
735
740
|
"translate( " + -h / 2 + ", " + (-1 * y / 2 + p + l / 2) + ")"
|
|
736
741
|
);
|
|
737
742
|
const L = v == null ? void 0 : v.getBBox();
|
|
738
743
|
p += ((L == null ? void 0 : L.height) ?? 0) + i;
|
|
739
|
-
}), p += l, o.attr("class", "divider").attr("x1", -h / 2 -
|
|
744
|
+
}), p += l, o.attr("class", "divider").attr("x1", -h / 2 - e).attr("x2", h / 2 + e).attr("y1", -y / 2 - e + l + p).attr("y2", -y / 2 - e + l + p), p += l, D.forEach((v) => {
|
|
740
745
|
E(v).attr(
|
|
741
746
|
"transform",
|
|
742
747
|
"translate( " + -h / 2 + ", " + (-1 * y / 2 + p) + ")"
|
|
743
748
|
);
|
|
744
749
|
const L = v == null ? void 0 : v.getBBox();
|
|
745
750
|
p += ((L == null ? void 0 : L.height) ?? 0) + i;
|
|
746
|
-
}), n.attr("style", t.style).attr("class", "outer title-state").attr("x", -h / 2 -
|
|
751
|
+
}), n.attr("style", t.style).attr("class", "outer title-state").attr("x", -h / 2 - e).attr("y", -(y / 2) - e).attr("width", h + t.padding).attr("height", y + t.padding), m(t, n), t.intersect = function(v) {
|
|
747
752
|
return w.rect(t, v);
|
|
748
753
|
}, s;
|
|
749
754
|
}, rt = {
|
|
@@ -775,36 +780,36 @@ const Gt = (e, t) => {
|
|
|
775
780
|
class_box: Pt
|
|
776
781
|
};
|
|
777
782
|
let Y = {};
|
|
778
|
-
const or = async (
|
|
783
|
+
const or = async (a, t, e) => {
|
|
779
784
|
let i, l;
|
|
780
785
|
if (t.link) {
|
|
781
786
|
let r;
|
|
782
|
-
b().securityLevel === "sandbox" ? r = "_top" : t.linkTarget && (r = t.linkTarget || "_blank"), i =
|
|
787
|
+
b().securityLevel === "sandbox" ? r = "_top" : t.linkTarget && (r = t.linkTarget || "_blank"), i = a.insert("svg:a").attr("xlink:href", t.link).attr("target", r), l = await rt[t.shape](i, t, e);
|
|
783
788
|
} else
|
|
784
|
-
l = await rt[t.shape](
|
|
789
|
+
l = await rt[t.shape](a, t, e), i = l;
|
|
785
790
|
return t.tooltip && l.attr("title", t.tooltip), t.class && l.attr("class", "node default " + t.class), i.attr("data-node", "true"), i.attr("data-id", t.id), Y[t.id] = i, t.haveCallback && Y[t.id].attr("class", Y[t.id].attr("class") + " clickable"), i;
|
|
786
|
-
}, yr = (
|
|
787
|
-
Y[t.id] =
|
|
791
|
+
}, yr = (a, t) => {
|
|
792
|
+
Y[t.id] = a;
|
|
788
793
|
}, pr = () => {
|
|
789
794
|
Y = {};
|
|
790
|
-
}, fr = (
|
|
791
|
-
const t = Y[
|
|
795
|
+
}, fr = (a) => {
|
|
796
|
+
const t = Y[a.id];
|
|
792
797
|
g.trace(
|
|
793
798
|
"Transforming node",
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
"translate(" + (
|
|
799
|
+
a.diff,
|
|
800
|
+
a,
|
|
801
|
+
"translate(" + (a.x - a.width / 2 - 5) + ", " + a.width / 2 + ")"
|
|
797
802
|
);
|
|
798
|
-
const
|
|
799
|
-
return
|
|
803
|
+
const e = 8, i = a.diff || 0;
|
|
804
|
+
return a.clusterNode ? t.attr(
|
|
800
805
|
"transform",
|
|
801
|
-
"translate(" + (
|
|
802
|
-
) : t.attr("transform", "translate(" +
|
|
806
|
+
"translate(" + (a.x + i - a.width / 2) + ", " + (a.y - a.height / 2 - e) + ")"
|
|
807
|
+
) : t.attr("transform", "translate(" + a.x + ", " + a.y + ")"), i;
|
|
803
808
|
}, tr = ({
|
|
804
|
-
flowchart:
|
|
809
|
+
flowchart: a
|
|
805
810
|
}) => {
|
|
806
|
-
var t,
|
|
807
|
-
const i = ((t =
|
|
811
|
+
var t, e;
|
|
812
|
+
const i = ((t = a == null ? void 0 : a.subGraphTitleMargin) == null ? void 0 : t.top) ?? 0, l = ((e = a == null ? void 0 : a.subGraphTitleMargin) == null ? void 0 : e.bottom) ?? 0, r = i + l;
|
|
808
813
|
return {
|
|
809
814
|
subGraphTitleTopMargin: i,
|
|
810
815
|
subGraphTitleBottomMargin: l,
|
|
@@ -818,44 +823,44 @@ const or = async (e, t, a) => {
|
|
|
818
823
|
lollipop: 13.5,
|
|
819
824
|
arrow_point: 5.3
|
|
820
825
|
};
|
|
821
|
-
function U(
|
|
822
|
-
if (
|
|
826
|
+
function U(a, t) {
|
|
827
|
+
if (a === void 0 || t === void 0)
|
|
823
828
|
return { angle: 0, deltaX: 0, deltaY: 0 };
|
|
824
|
-
|
|
825
|
-
const [
|
|
829
|
+
a = Z(a), t = Z(t);
|
|
830
|
+
const [e, i] = [a.x, a.y], [l, r] = [t.x, t.y], s = l - e, n = r - i;
|
|
826
831
|
return { angle: Math.atan(n / s), deltaX: s, deltaY: n };
|
|
827
832
|
}
|
|
828
|
-
const Z = (
|
|
829
|
-
x: function(t,
|
|
833
|
+
const Z = (a) => Array.isArray(a) ? { x: a[0], y: a[1] } : a, rr = (a) => ({
|
|
834
|
+
x: function(t, e, i) {
|
|
830
835
|
let l = 0;
|
|
831
|
-
if (
|
|
836
|
+
if (e === 0 && Object.hasOwn(O, a.arrowTypeStart)) {
|
|
832
837
|
const { angle: r, deltaX: s } = U(i[0], i[1]);
|
|
833
|
-
l = O[
|
|
834
|
-
} else if (
|
|
838
|
+
l = O[a.arrowTypeStart] * Math.cos(r) * (s >= 0 ? 1 : -1);
|
|
839
|
+
} else if (e === i.length - 1 && Object.hasOwn(O, a.arrowTypeEnd)) {
|
|
835
840
|
const { angle: r, deltaX: s } = U(
|
|
836
841
|
i[i.length - 1],
|
|
837
842
|
i[i.length - 2]
|
|
838
843
|
);
|
|
839
|
-
l = O[
|
|
844
|
+
l = O[a.arrowTypeEnd] * Math.cos(r) * (s >= 0 ? 1 : -1);
|
|
840
845
|
}
|
|
841
846
|
return Z(t).x + l;
|
|
842
847
|
},
|
|
843
|
-
y: function(t,
|
|
848
|
+
y: function(t, e, i) {
|
|
844
849
|
let l = 0;
|
|
845
|
-
if (
|
|
850
|
+
if (e === 0 && Object.hasOwn(O, a.arrowTypeStart)) {
|
|
846
851
|
const { angle: r, deltaY: s } = U(i[0], i[1]);
|
|
847
|
-
l = O[
|
|
848
|
-
} else if (
|
|
852
|
+
l = O[a.arrowTypeStart] * Math.abs(Math.sin(r)) * (s >= 0 ? 1 : -1);
|
|
853
|
+
} else if (e === i.length - 1 && Object.hasOwn(O, a.arrowTypeEnd)) {
|
|
849
854
|
const { angle: r, deltaY: s } = U(
|
|
850
855
|
i[i.length - 1],
|
|
851
856
|
i[i.length - 2]
|
|
852
857
|
);
|
|
853
|
-
l = O[
|
|
858
|
+
l = O[a.arrowTypeEnd] * Math.abs(Math.sin(r)) * (s >= 0 ? 1 : -1);
|
|
854
859
|
}
|
|
855
860
|
return Z(t).y + l;
|
|
856
861
|
}
|
|
857
|
-
}), ar = (
|
|
858
|
-
t.arrowTypeStart && at(
|
|
862
|
+
}), ar = (a, t, e, i, l) => {
|
|
863
|
+
t.arrowTypeStart && at(a, "start", t.arrowTypeStart, e, i, l), t.arrowTypeEnd && at(a, "end", t.arrowTypeEnd, e, i, l);
|
|
859
864
|
}, er = {
|
|
860
865
|
arrow_cross: "cross",
|
|
861
866
|
arrow_point: "point",
|
|
@@ -866,72 +871,72 @@ const Z = (e) => Array.isArray(e) ? { x: e[0], y: e[1] } : e, rr = (e) => ({
|
|
|
866
871
|
composition: "composition",
|
|
867
872
|
dependency: "dependency",
|
|
868
873
|
lollipop: "lollipop"
|
|
869
|
-
}, at = (
|
|
870
|
-
const s = er[
|
|
874
|
+
}, at = (a, t, e, i, l, r) => {
|
|
875
|
+
const s = er[e];
|
|
871
876
|
if (!s) {
|
|
872
|
-
g.warn(`Unknown arrow type: ${
|
|
877
|
+
g.warn(`Unknown arrow type: ${e}`);
|
|
873
878
|
return;
|
|
874
879
|
}
|
|
875
880
|
const n = t === "start" ? "Start" : "End";
|
|
876
|
-
|
|
881
|
+
a.attr(`marker-${t}`, `url(${i}#${l}_${r}-${s}${n})`);
|
|
877
882
|
};
|
|
878
883
|
let G = {}, T = {};
|
|
879
884
|
const xr = () => {
|
|
880
885
|
G = {}, T = {};
|
|
881
|
-
}, dr = (
|
|
882
|
-
const
|
|
886
|
+
}, dr = (a, t) => {
|
|
887
|
+
const e = H(b().flowchart.htmlLabels), i = t.labelType === "markdown" ? st(a, t.label, {
|
|
883
888
|
style: t.labelStyle,
|
|
884
|
-
useHtmlLabels:
|
|
889
|
+
useHtmlLabels: e,
|
|
885
890
|
addSvgBackground: !0
|
|
886
|
-
}) : R(t.label, t.labelStyle), l =
|
|
891
|
+
}) : R(t.label, t.labelStyle), l = a.insert("g").attr("class", "edgeLabel"), r = l.insert("g").attr("class", "label");
|
|
887
892
|
r.node().appendChild(i);
|
|
888
893
|
let s = i.getBBox();
|
|
889
|
-
if (
|
|
894
|
+
if (e) {
|
|
890
895
|
const c = i.children[0], o = E(i);
|
|
891
896
|
s = c.getBoundingClientRect(), o.attr("width", s.width), o.attr("height", s.height);
|
|
892
897
|
}
|
|
893
898
|
r.attr("transform", "translate(" + -s.width / 2 + ", " + -s.height / 2 + ")"), G[t.id] = l, t.width = s.width, t.height = s.height;
|
|
894
899
|
let n;
|
|
895
900
|
if (t.startLabelLeft) {
|
|
896
|
-
const c = R(t.startLabelLeft, t.labelStyle), o =
|
|
901
|
+
const c = R(t.startLabelLeft, t.labelStyle), o = a.insert("g").attr("class", "edgeTerminals"), h = o.insert("g").attr("class", "inner");
|
|
897
902
|
n = h.node().appendChild(c);
|
|
898
903
|
const y = c.getBBox();
|
|
899
904
|
h.attr("transform", "translate(" + -y.width / 2 + ", " + -y.height / 2 + ")"), T[t.id] || (T[t.id] = {}), T[t.id].startLeft = o, z(n, t.startLabelLeft);
|
|
900
905
|
}
|
|
901
906
|
if (t.startLabelRight) {
|
|
902
|
-
const c = R(t.startLabelRight, t.labelStyle), o =
|
|
907
|
+
const c = R(t.startLabelRight, t.labelStyle), o = a.insert("g").attr("class", "edgeTerminals"), h = o.insert("g").attr("class", "inner");
|
|
903
908
|
n = o.node().appendChild(c), h.node().appendChild(c);
|
|
904
909
|
const y = c.getBBox();
|
|
905
910
|
h.attr("transform", "translate(" + -y.width / 2 + ", " + -y.height / 2 + ")"), T[t.id] || (T[t.id] = {}), T[t.id].startRight = o, z(n, t.startLabelRight);
|
|
906
911
|
}
|
|
907
912
|
if (t.endLabelLeft) {
|
|
908
|
-
const c = R(t.endLabelLeft, t.labelStyle), o =
|
|
913
|
+
const c = R(t.endLabelLeft, t.labelStyle), o = a.insert("g").attr("class", "edgeTerminals"), h = o.insert("g").attr("class", "inner");
|
|
909
914
|
n = h.node().appendChild(c);
|
|
910
915
|
const y = c.getBBox();
|
|
911
916
|
h.attr("transform", "translate(" + -y.width / 2 + ", " + -y.height / 2 + ")"), o.node().appendChild(c), T[t.id] || (T[t.id] = {}), T[t.id].endLeft = o, z(n, t.endLabelLeft);
|
|
912
917
|
}
|
|
913
918
|
if (t.endLabelRight) {
|
|
914
|
-
const c = R(t.endLabelRight, t.labelStyle), o =
|
|
919
|
+
const c = R(t.endLabelRight, t.labelStyle), o = a.insert("g").attr("class", "edgeTerminals"), h = o.insert("g").attr("class", "inner");
|
|
915
920
|
n = h.node().appendChild(c);
|
|
916
921
|
const y = c.getBBox();
|
|
917
922
|
h.attr("transform", "translate(" + -y.width / 2 + ", " + -y.height / 2 + ")"), o.node().appendChild(c), T[t.id] || (T[t.id] = {}), T[t.id].endRight = o, z(n, t.endLabelRight);
|
|
918
923
|
}
|
|
919
924
|
return i;
|
|
920
925
|
};
|
|
921
|
-
function z(
|
|
922
|
-
b().flowchart.htmlLabels &&
|
|
926
|
+
function z(a, t) {
|
|
927
|
+
b().flowchart.htmlLabels && a && (a.style.width = t.length * 9 + "px", a.style.height = "12px");
|
|
923
928
|
}
|
|
924
|
-
const gr = (
|
|
925
|
-
g.debug("Moving label abc88 ",
|
|
926
|
-
let
|
|
929
|
+
const gr = (a, t) => {
|
|
930
|
+
g.debug("Moving label abc88 ", a.id, a.label, G[a.id], t);
|
|
931
|
+
let e = t.updatedPath ? t.updatedPath : t.originalPath;
|
|
927
932
|
const i = b(), { subGraphTitleTotalMargin: l } = tr(i);
|
|
928
|
-
if (
|
|
929
|
-
const r = G[
|
|
930
|
-
let s =
|
|
931
|
-
if (
|
|
932
|
-
const c = j.calcLabelPosition(
|
|
933
|
+
if (a.label) {
|
|
934
|
+
const r = G[a.id];
|
|
935
|
+
let s = a.x, n = a.y;
|
|
936
|
+
if (e) {
|
|
937
|
+
const c = j.calcLabelPosition(e);
|
|
933
938
|
g.debug(
|
|
934
|
-
"Moving label " +
|
|
939
|
+
"Moving label " + a.label + " from (",
|
|
935
940
|
s,
|
|
936
941
|
",",
|
|
937
942
|
n,
|
|
@@ -944,96 +949,96 @@ const gr = (e, t) => {
|
|
|
944
949
|
}
|
|
945
950
|
r.attr("transform", `translate(${s}, ${n + l / 2})`);
|
|
946
951
|
}
|
|
947
|
-
if (
|
|
948
|
-
const r = T[
|
|
949
|
-
let s =
|
|
950
|
-
if (
|
|
951
|
-
const c = j.calcTerminalLabelPosition(
|
|
952
|
+
if (a.startLabelLeft) {
|
|
953
|
+
const r = T[a.id].startLeft;
|
|
954
|
+
let s = a.x, n = a.y;
|
|
955
|
+
if (e) {
|
|
956
|
+
const c = j.calcTerminalLabelPosition(a.arrowTypeStart ? 10 : 0, "start_left", e);
|
|
952
957
|
s = c.x, n = c.y;
|
|
953
958
|
}
|
|
954
959
|
r.attr("transform", `translate(${s}, ${n})`);
|
|
955
960
|
}
|
|
956
|
-
if (
|
|
957
|
-
const r = T[
|
|
958
|
-
let s =
|
|
959
|
-
if (
|
|
961
|
+
if (a.startLabelRight) {
|
|
962
|
+
const r = T[a.id].startRight;
|
|
963
|
+
let s = a.x, n = a.y;
|
|
964
|
+
if (e) {
|
|
960
965
|
const c = j.calcTerminalLabelPosition(
|
|
961
|
-
|
|
966
|
+
a.arrowTypeStart ? 10 : 0,
|
|
962
967
|
"start_right",
|
|
963
|
-
|
|
968
|
+
e
|
|
964
969
|
);
|
|
965
970
|
s = c.x, n = c.y;
|
|
966
971
|
}
|
|
967
972
|
r.attr("transform", `translate(${s}, ${n})`);
|
|
968
973
|
}
|
|
969
|
-
if (
|
|
970
|
-
const r = T[
|
|
971
|
-
let s =
|
|
972
|
-
if (
|
|
973
|
-
const c = j.calcTerminalLabelPosition(
|
|
974
|
+
if (a.endLabelLeft) {
|
|
975
|
+
const r = T[a.id].endLeft;
|
|
976
|
+
let s = a.x, n = a.y;
|
|
977
|
+
if (e) {
|
|
978
|
+
const c = j.calcTerminalLabelPosition(a.arrowTypeEnd ? 10 : 0, "end_left", e);
|
|
974
979
|
s = c.x, n = c.y;
|
|
975
980
|
}
|
|
976
981
|
r.attr("transform", `translate(${s}, ${n})`);
|
|
977
982
|
}
|
|
978
|
-
if (
|
|
979
|
-
const r = T[
|
|
980
|
-
let s =
|
|
981
|
-
if (
|
|
982
|
-
const c = j.calcTerminalLabelPosition(
|
|
983
|
+
if (a.endLabelRight) {
|
|
984
|
+
const r = T[a.id].endRight;
|
|
985
|
+
let s = a.x, n = a.y;
|
|
986
|
+
if (e) {
|
|
987
|
+
const c = j.calcTerminalLabelPosition(a.arrowTypeEnd ? 10 : 0, "end_right", e);
|
|
983
988
|
s = c.x, n = c.y;
|
|
984
989
|
}
|
|
985
990
|
r.attr("transform", `translate(${s}, ${n})`);
|
|
986
991
|
}
|
|
987
|
-
}, sr = (
|
|
988
|
-
const
|
|
992
|
+
}, sr = (a, t) => {
|
|
993
|
+
const e = a.x, i = a.y, l = Math.abs(t.x - e), r = Math.abs(t.y - i), s = a.width / 2, n = a.height / 2;
|
|
989
994
|
return l >= s || r >= n;
|
|
990
|
-
}, ir = (
|
|
995
|
+
}, ir = (a, t, e) => {
|
|
991
996
|
g.debug(`intersection calc abc89:
|
|
992
997
|
outsidePoint: ${JSON.stringify(t)}
|
|
993
|
-
insidePoint : ${JSON.stringify(
|
|
994
|
-
node : x:${
|
|
995
|
-
const i =
|
|
996
|
-
let n =
|
|
997
|
-
const c =
|
|
998
|
+
insidePoint : ${JSON.stringify(e)}
|
|
999
|
+
node : x:${a.x} y:${a.y} w:${a.width} h:${a.height}`);
|
|
1000
|
+
const i = a.x, l = a.y, r = Math.abs(i - e.x), s = a.width / 2;
|
|
1001
|
+
let n = e.x < t.x ? s - r : s + r;
|
|
1002
|
+
const c = a.height / 2, o = Math.abs(t.y - e.y), h = Math.abs(t.x - e.x);
|
|
998
1003
|
if (Math.abs(l - t.y) * s > Math.abs(i - t.x) * c) {
|
|
999
|
-
let y =
|
|
1004
|
+
let y = e.y < t.y ? t.y - c - l : l - c - t.y;
|
|
1000
1005
|
n = h * y / o;
|
|
1001
1006
|
const f = {
|
|
1002
|
-
x:
|
|
1003
|
-
y:
|
|
1007
|
+
x: e.x < t.x ? e.x + n : e.x - h + n,
|
|
1008
|
+
y: e.y < t.y ? e.y + o - y : e.y - o + y
|
|
1004
1009
|
};
|
|
1005
1010
|
return n === 0 && (f.x = t.x, f.y = t.y), h === 0 && (f.x = t.x), o === 0 && (f.y = t.y), g.debug(`abc89 topp/bott calc, Q ${o}, q ${y}, R ${h}, r ${n}`, f), f;
|
|
1006
1011
|
} else {
|
|
1007
|
-
|
|
1008
|
-
let y = o * n / h, f =
|
|
1012
|
+
e.x < t.x ? n = t.x - s - i : n = i - s - t.x;
|
|
1013
|
+
let y = o * n / h, f = e.x < t.x ? e.x + h - n : e.x - h + n, p = e.y < t.y ? e.y + y : e.y - y;
|
|
1009
1014
|
return g.debug(`sides calc abc89, Q ${o}, q ${y}, R ${h}, r ${n}`, { _x: f, _y: p }), n === 0 && (f = t.x, p = t.y), h === 0 && (f = t.x), o === 0 && (p = t.y), { x: f, y: p };
|
|
1010
1015
|
}
|
|
1011
|
-
}, et = (
|
|
1012
|
-
g.debug("abc88 cutPathAtIntersect",
|
|
1013
|
-
let
|
|
1014
|
-
return
|
|
1016
|
+
}, et = (a, t) => {
|
|
1017
|
+
g.debug("abc88 cutPathAtIntersect", a, t);
|
|
1018
|
+
let e = [], i = a[0], l = !1;
|
|
1019
|
+
return a.forEach((r) => {
|
|
1015
1020
|
if (!sr(t, r) && !l) {
|
|
1016
1021
|
const s = ir(t, i, r);
|
|
1017
1022
|
let n = !1;
|
|
1018
|
-
|
|
1023
|
+
e.forEach((c) => {
|
|
1019
1024
|
n = n || c.x === s.x && c.y === s.y;
|
|
1020
|
-
}),
|
|
1025
|
+
}), e.some((c) => c.x === s.x && c.y === s.y) || e.push(s), l = !0;
|
|
1021
1026
|
} else
|
|
1022
|
-
i = r, l ||
|
|
1023
|
-
}),
|
|
1024
|
-
}, ur = function(
|
|
1025
|
-
let n =
|
|
1026
|
-
g.debug("abc88 InsertEdge: edge=",
|
|
1027
|
+
i = r, l || e.push(r);
|
|
1028
|
+
}), e;
|
|
1029
|
+
}, ur = function(a, t, e, i, l, r, s) {
|
|
1030
|
+
let n = e.points;
|
|
1031
|
+
g.debug("abc88 InsertEdge: edge=", e, "e=", t);
|
|
1027
1032
|
let c = !1;
|
|
1028
1033
|
const o = r.node(t.v);
|
|
1029
1034
|
var h = r.node(t.w);
|
|
1030
|
-
h != null && h.intersect && (o != null && o.intersect) && (n = n.slice(1,
|
|
1035
|
+
h != null && h.intersect && (o != null && o.intersect) && (n = n.slice(1, e.points.length - 1), n.unshift(o.intersect(n[0])), n.push(h.intersect(n[n.length - 1]))), e.toCluster && (g.debug("to cluster abc88", i[e.toCluster]), n = et(e.points, i[e.toCluster].node), c = !0), e.fromCluster && (g.debug("from cluster abc88", i[e.fromCluster]), n = et(n.reverse(), i[e.fromCluster].node).reverse(), c = !0);
|
|
1031
1036
|
const y = n.filter((C) => !Number.isNaN(C.y));
|
|
1032
1037
|
let f = lt;
|
|
1033
|
-
|
|
1034
|
-
const { x: p, y: d } = rr(
|
|
1038
|
+
e.curve && (l === "graph" || l === "flowchart") && (f = e.curve);
|
|
1039
|
+
const { x: p, y: d } = rr(e), k = ct().x(p).y(d).curve(f);
|
|
1035
1040
|
let x;
|
|
1036
|
-
switch (
|
|
1041
|
+
switch (e.thickness) {
|
|
1037
1042
|
case "normal":
|
|
1038
1043
|
x = "edge-thickness-normal";
|
|
1039
1044
|
break;
|
|
@@ -1046,7 +1051,7 @@ const gr = (e, t) => {
|
|
|
1046
1051
|
default:
|
|
1047
1052
|
x = "";
|
|
1048
1053
|
}
|
|
1049
|
-
switch (
|
|
1054
|
+
switch (e.pattern) {
|
|
1050
1055
|
case "solid":
|
|
1051
1056
|
x += " edge-pattern-solid";
|
|
1052
1057
|
break;
|
|
@@ -1057,11 +1062,11 @@ const gr = (e, t) => {
|
|
|
1057
1062
|
x += " edge-pattern-dashed";
|
|
1058
1063
|
break;
|
|
1059
1064
|
}
|
|
1060
|
-
const u =
|
|
1065
|
+
const u = a.append("path").attr("d", k(y)).attr("id", e.id).attr("class", " " + x + (e.classes ? " " + e.classes : "")).attr("style", e.style);
|
|
1061
1066
|
let S = "";
|
|
1062
|
-
(b().flowchart.arrowMarkerAbsolute || b().state.arrowMarkerAbsolute) && (S = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, S = S.replace(/\(/g, "\\("), S = S.replace(/\)/g, "\\)")), ar(u,
|
|
1067
|
+
(b().flowchart.arrowMarkerAbsolute || b().state.arrowMarkerAbsolute) && (S = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, S = S.replace(/\(/g, "\\("), S = S.replace(/\)/g, "\\)")), ar(u, e, S, s, l);
|
|
1063
1068
|
let B = {};
|
|
1064
|
-
return c && (B.updatedPath = n), B.originalPath =
|
|
1069
|
+
return c && (B.updatedPath = n), B.originalPath = e.points, B;
|
|
1065
1070
|
};
|
|
1066
1071
|
export {
|
|
1067
1072
|
or as a,
|