@layers-app/editor 0.2.2-comments.4 → 0.2.3-specific.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -2
- package/dist/index.d.ts +10 -18
- package/dist/index.js +9 -8
- package/dist/{layers.BFD8Si4q.js → layers.-CCpeJAz.js} +1 -1
- package/dist/{layers.DEgsafsb.js → layers.-CsuSqln.js} +1 -1
- package/dist/{layers.Bx2xeXXm.js → layers.1DawzxLQ.js} +1 -1
- package/dist/layers.1_iCK_gH.js +1 -0
- package/dist/{layers.DbjP8pD1.js → layers.7Ne0l23D.js} +1 -1
- package/dist/{layers.Du_sKWdo.js → layers.7P7f1TiY.js} +1 -1
- package/dist/{layers.CW3lex4H.js → layers.7kvMTcVl.js} +1 -1
- package/dist/{layers.4Mp1HToi.js → layers.89RGGm6L.js} +1 -1
- package/dist/{layers.D2FToRbR.js → layers.A0tKHOFY.js} +1 -1
- package/dist/{layers.o3aNPN0H.js → layers.B2SaT29V.js} +1 -1
- package/dist/{layers.DXmOXFD2.js → layers.B3HTbhOH.js} +1 -1
- package/dist/{layers.CYLG3j3u.js → layers.B3Lc5LCp.js} +1 -1
- package/dist/{layers.Dqs9Ugcb.js → layers.B4Ld0s6L.js} +7 -6
- package/dist/{layers.Bo3YzY4o.js → layers.B4TvHj1g.js} +1 -1
- package/dist/{layers.C8D2ouxI.js → layers.B4hjagvO.js} +1 -1
- package/dist/{layers.B-G6Q662.js → layers.B5tAV8w2.js} +7 -6
- package/dist/{layers.Ypoo6YjR.js → layers.B6pJdj-2.js} +1 -1
- package/dist/{layers.DcrKMEZl.js → layers.BC1rJWaX.js} +1 -1
- package/dist/{layers.CIt2FRF8.js → layers.BCA4wEOk.js} +1 -1
- package/dist/{layers.H1SbjGSm.js → layers.BCpq0IJ_.js} +1 -1
- package/dist/{layers.DGhZQiN1.js → layers.BDxe74jj.js} +2 -2
- package/dist/{layers.DoB0qn9z.js → layers.BGJx5czs.js} +1 -1
- package/dist/{layers.oa5gJIGN.js → layers.BHTfqf65.js} +1 -1
- package/dist/{layers.B3Zz-M8X.js → layers.BHrcgdVX.js} +1 -1
- package/dist/{layers.Dq1lz3NR.js → layers.BHwxfWyI.js} +1 -1
- package/dist/{layers.CD_mAN8C.js → layers.BJcSp7wA.js} +1 -1
- package/dist/{layers.C6cVftiG.js → layers.BKXWbn3O.js} +1 -1
- package/dist/{layers.DVoDjHNC.js → layers.BMHqcWuW.js} +1 -1
- package/dist/{layers.XRaygmpJ.js → layers.BMJzHvtX.js} +27 -26
- package/dist/{layers.CGWdEEy3.js → layers.BN6NMD5s.js} +1 -1
- package/dist/layers.BOph-oP2.js +1 -0
- package/dist/{layers.D2ygBIom.js → layers.BPaO_bJu.js} +1 -1
- package/dist/{layers.BGnjSuZ2.js → layers.BQAMPECT.js} +1 -1
- package/dist/{layers.CrJzEHNd.js → layers.BS15TpKh.js} +1 -1
- package/dist/layers.BT0hf-ZU.js +342 -0
- package/dist/layers.BTr_uySn.js +8 -0
- package/dist/{layers.CWB-gelU.js → layers.BWQZAkgk.js} +39 -39
- package/dist/layers.B_ntCU1P.js +95 -0
- package/dist/{layers.C15-aPAO.js → layers.B_uS44RB.js} +1 -1
- package/dist/{layers.Hoa9jeMD.js → layers.Bal_gFu3.js} +1 -1
- package/dist/{layers.BaAFaMBJ.js → layers.Base8Uod.js} +1 -1
- package/dist/{layers.6eZC5acW.js → layers.BawR9D0t.js} +1 -1
- package/dist/layers.Bbd4cT11.js +230 -0
- package/dist/{layers.DUJ5CO8S.js → layers.Bc1M0sDR.js} +1 -1
- package/dist/{layers.DIeK_4dG.js → layers.BcCY10xp.js} +1 -1
- package/dist/{layers.BPFw88Y5.js → layers.BcVSuTMw.js} +1 -1
- package/dist/{layers.FXK9eL1F.js → layers.Bceq7ThS.js} +1 -1
- package/dist/{layers.D51l7NLD.js → layers.Bda4BZ4V.js} +1 -1
- package/dist/{layers.Bpq3_bFq.js → layers.BeZfVzmg.js} +4 -4
- package/dist/{layers.BWDwadK1.js → layers.BfX1yED3.js} +1 -1
- package/dist/layers.Bm486g8A.js +1 -0
- package/dist/{layers.BUE6DKJ6.js → layers.BnXWo_2S.js} +1 -1
- package/dist/{layers.fdRd0cJU.js → layers.BnkAKk5K.js} +1 -1
- package/dist/{layers.B7-JVIGV.js → layers.BoU8FN-i.js} +1 -1
- package/dist/{layers.D311S6Mc.js → layers.BomX9h5_.js} +3 -3
- package/dist/{layers.DqkYyg8J.js → layers.BsLzc4cm.js} +1 -1
- package/dist/{layers.D8YTfpoa.js → layers.BsRovMzA.js} +1 -1
- package/dist/{layers.C6MnC_wQ.js → layers.BtSNsQNS.js} +1 -1
- package/dist/{layers.BzZUIYsY.js → layers.BuCst22C.js} +1 -1
- package/dist/{layers.CGeek5Fq.js → layers.BuJMbwRU.js} +7 -6
- package/dist/{layers.BB8JANtc.js → layers.BwLzoWz7.js} +1 -1
- package/dist/{layers.dTOdH_ME.js → layers.By-9Q9VE.js} +1 -1
- package/dist/{layers._K8YgY5t.js → layers.ByavM5NS.js} +1 -1
- package/dist/{layers.fMMuxno9.js → layers.C0m7Cs7l.js} +1 -1
- package/dist/{layers.HmYnFQW8.js → layers.C0mXtiC2.js} +3 -3
- package/dist/{layers.Sj77DeHx.js → layers.C1Yt5kQD.js} +1 -1
- package/dist/{layers.bUq_fidO.js → layers.C3_51KUK.js} +1 -1
- package/dist/{layers.C11Yv9-K.js → layers.C3tmitL0.js} +1 -1
- package/dist/{layers.Dz7tyyEZ.js → layers.C4nk_2LP.js} +1 -1
- package/dist/{layers.8WL8L7Mv.js → layers.C6Fsr-4k.js} +1 -1
- package/dist/{layers.D8fSdEn_.js → layers.C9XH2LMl.js} +1 -1
- package/dist/{layers.DwxwSFsn.js → layers.CCGzQFe3.js} +1 -1
- package/dist/{layers.I9IiXoNv.js → layers.CC_ZNrjR.js} +1 -1
- package/dist/{layers.DHyq6sFT.js → layers.CFIfu-0-.js} +6 -5
- package/dist/{layers.BCgsvKyw.js → layers.CICt_WnZ.js} +1 -1
- package/dist/{layers.BSiIcjeT.js → layers.CJ-UcTJk.js} +1 -1
- package/dist/{layers.BzIwWXMS.js → layers.CJEusXLU.js} +1 -1
- package/dist/{layers.DHRTBpMJ.js → layers.CJ_9Czgi.js} +2 -2
- package/dist/{layers.qIbcaT50.js → layers.CKCkluXR.js} +1 -1
- package/dist/{layers.C-HwbKnM.js → layers.CME4Ag64.js} +14 -13
- package/dist/layers.CMga0YwW.js +1 -0
- package/dist/{layers.BgPxT78V.js → layers.CMlr7HUA.js} +21803 -18439
- package/dist/{layers.ULu7_TDY.js → layers.CNDfKgMR.js} +3 -3
- package/dist/{layers.DegKuZAL.js → layers.CR7X7syO.js} +1 -1
- package/dist/{layers.CDmlUj42.js → layers.CRWJHEAN.js} +4 -4
- package/dist/{layers.ComDAbHr.js → layers.CRnqpAiD.js} +1 -1
- package/dist/{layers.BS8K0dSr.js → layers.CUdsxvse.js} +1 -1
- package/dist/{layers.cjv6a7Bp.js → layers.CVXIWdQS.js} +1 -1
- package/dist/{layers.CLbrtdh2.js → layers.CVeltnOj.js} +2 -2
- package/dist/{layers.KFkR9X1o.js → layers.CXDsrJSU.js} +1 -1
- package/dist/{layers.CyjmgqpK.js → layers.CYM2YUlS.js} +1 -1
- package/dist/{layers.CqOLm6Vm.js → layers.CY_TaR8p.js} +1 -1
- package/dist/{layers.Dn5WvQhw.js → layers.CZQoIvyx.js} +6 -5
- package/dist/{layers.GqjSFMYL.js → layers.Caez65dl.js} +1 -1
- package/dist/{layers.BpgUgxDs.js → layers.CccTHubB.js} +1 -1
- package/dist/{layers.noJEre31.js → layers.Cfq6RrFE.js} +90 -89
- package/dist/{layers.Ckrhlpv8.js → layers.ClAIcjLp.js} +1 -1
- package/dist/{layers.ByocsCxo.js → layers.ClMM1y4L.js} +1 -1
- package/dist/{layers.CQVPBDKe.js → layers.CmMSuiFz.js} +1 -1
- package/dist/{layers.Ci3IuTYM.js → layers.CmPp2hfn.js} +1 -1
- package/dist/{layers.Ccug5P9p.js → layers.CojBAunT.js} +1 -1
- package/dist/{layers.D90G-CnV.js → layers.Cq7UWhCe.js} +1 -1
- package/dist/{layers.CWXFR2wL.js → layers.CrYBHHHM.js} +1 -1
- package/dist/{layers.DGbacYn1.js → layers.CskgYvOG.js} +7 -6
- package/dist/{layers.Dze3ZPTz.js → layers.Cu5DxPiP.js} +1 -1
- package/dist/layers.CuW62zQc.js +8 -0
- package/dist/layers.Cvrdp8HI.js +52846 -0
- package/dist/{layers.e087ufBh.js → layers.CxonHyF-.js} +9 -8
- package/dist/layers.CzD_Xpzc.js +1 -0
- package/dist/{layers.K1vQc8-l.js → layers.Cz_IvDrc.js} +1 -1
- package/dist/{layers.CP-mb1d8.js → layers.CzcbE7VI.js} +7 -6
- package/dist/{layers.DUODI6WJ.js → layers.D-s5Ye7x.js} +1 -1
- package/dist/{layers.DXAfyKbp.js → layers.D4rjNiz6.js} +1 -1
- package/dist/layers.D6eKzVJD.js +2 -0
- package/dist/{layers.C5yxAarb.js → layers.D8C-O3Ec.js} +1 -1
- package/dist/{layers.C-BlQfAk.js → layers.D8g5nL_q.js} +1 -1
- package/dist/{layers.dAQkMUSJ.js → layers.D8tbrcNy.js} +6 -6
- package/dist/{layers.Dir617kc.js → layers.D9wTfnw5.js} +1 -1
- package/dist/{layers.BZThXcw6.js → layers.DA3PPVNV.js} +1 -1
- package/dist/{layers.DEp-MvXH.js → layers.DAvtBoeR.js} +1 -1
- package/dist/{layers.BgHih0Tt.js → layers.DEtHjSzG.js} +1 -1
- package/dist/layers.DFmjiTrD.js +1 -0
- package/dist/{layers.Bcn9IAAz.js → layers.DGSwy7oV.js} +1 -1
- package/dist/{layers.B-iCJ1mD.js → layers.DHkYjcLh.js} +1 -1
- package/dist/{layers.BrmIdR3n.js → layers.DHmV-x4V.js} +1 -1
- package/dist/{layers.BT_hkMF1.js → layers.DLTaJ9tx.js} +6 -5
- package/dist/{layers.BGiqmbfN.js → layers.DLo_EAyX.js} +3 -3
- package/dist/{layers.BR4l_3qL.js → layers.DNT0guYV.js} +1 -1
- package/dist/{layers.DQ-Vrsdy.js → layers.DPmer6Kv.js} +1 -1
- package/dist/{layers.BHfwAQsR.js → layers.DQFz6wfj.js} +1 -1
- package/dist/{layers.DH7bnUXU.js → layers.DQV-bOHD.js} +1 -1
- package/dist/{layers.Bat0gKr_.js → layers.DRLm2eyR.js} +1 -1
- package/dist/{layers.BEVjJSTr.js → layers.DRUW-mcj.js} +1 -1
- package/dist/{layers.BMIGYpzw.js → layers.DSBAPojN.js} +5 -4
- package/dist/{layers.BAkbXScZ.js → layers.DSLT3pB1.js} +1 -1
- package/dist/{layers.NylC6bcc.js → layers.DTLqX3vj.js} +1 -1
- package/dist/{layers.C6hsMGfn.js → layers.DTjkfN9n.js} +1 -1
- package/dist/{layers.C5Otasjk.js → layers.DTvbOG9N.js} +1 -1
- package/dist/{layers.3izvHtyi.js → layers.DUhAvMGl.js} +1 -1
- package/dist/{layers.BM0mKNmp.js → layers.DWEPkX6r.js} +1 -1
- package/dist/{layers.gtk9ShEx.js → layers.DXfodum-.js} +1 -1
- package/dist/{layers.6GyZ9zg1.js → layers.DZNIrzEr.js} +1 -1
- package/dist/{layers.CQ6L_50R.js → layers.DaZNumge.js} +6 -5
- package/dist/layers.DatA2QfW.js +159 -0
- package/dist/{layers.CdhFsSGl.js → layers.DeIrgVfc.js} +1 -1
- package/dist/{layers.BP6iXHWE.js → layers.Dh0W0Rlv.js} +1 -1
- package/dist/{layers.DGVeK1li.js → layers.Dj3askUf.js} +1 -1
- package/dist/{layers.D_fxRJjO.js → layers.DjGSZPx3.js} +1 -1
- package/dist/{layers.ULFxPQy_.js → layers.DkUtuy4Z.js} +1 -1
- package/dist/{layers.tLA0vcHT.js → layers.DoUWpy_5.js} +1 -1
- package/dist/{layers.Bl8RpzVH.js → layers.DpBWr6sD.js} +1 -1
- package/dist/{layers.3bfhWWzw.js → layers.DrAF2uVI.js} +1 -1
- package/dist/{layers.DE6Vdmx2.js → layers.Dtpje27P.js} +12 -11
- package/dist/{layers.DhuI_8TZ.js → layers.DuJJnPMd.js} +8 -7
- package/dist/{layers.Dush5fl-.js → layers.DvGJ9-E3.js} +1 -1
- package/dist/{layers.CBDl94ol.js → layers.DyrZ91ae.js} +1 -1
- package/dist/{layers.BwVGs9WZ.js → layers.ETJ6389D.js} +6 -5
- package/dist/{layers.IH77ejM-.js → layers.FNYLisP9.js} +1 -1
- package/dist/{layers.hHb6XOXH.js → layers.Frdc-PTB.js} +1 -1
- package/dist/{layers.BZjmaZFR.js → layers.G9TFvgAd.js} +1 -1
- package/dist/layers.GHnZTJ9O.js +2 -0
- package/dist/{layers.Cs7t-ERg.js → layers.GMIwl7mk.js} +1 -1
- package/dist/{layers.D5oUvwD7.js → layers.H7yIzbTE.js} +1 -1
- package/dist/{layers.DaLFX3XW.js → layers.I8Ql_h2v.js} +1 -1
- package/dist/{layers.DobBVaUG.js → layers.IA-UvvKx.js} +1 -1
- package/dist/{layers.BhNfVwbF.js → layers.JDnQUzDV.js} +1 -1
- package/dist/{layers.BFqGSQbM.js → layers.JhHa0T-H.js} +1 -1
- package/dist/{layers.BxWePjrJ.js → layers.L2K4m76I.js} +1 -1
- package/dist/{layers.CwS5yLVf.js → layers.MF3UrbiP.js} +1 -1
- package/dist/{layers.DLRBzVNU.js → layers.NWONng2m.js} +8 -7
- package/dist/{layers.Db8PSmxx.js → layers.P9Gv9aa3.js} +1 -1
- package/dist/{layers.ntmzTHlr.js → layers.PiNn2mOX.js} +5 -4
- package/dist/{layers.4G849Vmo.js → layers.R3ttrU_g.js} +1 -1
- package/dist/{layers.C47RfRb_.js → layers.RSpgI6MN.js} +5 -4
- package/dist/{layers.CppCEsgo.js → layers.USEeOMJ1.js} +1 -1
- package/dist/{layers.WzHuBzUm.js → layers.UYttQ0Zb.js} +1 -1
- package/dist/{layers.Bu_SJcSy.js → layers.W84WsNiK.js} +1 -1
- package/dist/{layers.CeMOGFHn.js → layers.WZGUuwQw.js} +1 -1
- package/dist/{layers.BSHeJ507.js → layers.XNGTcQDn.js} +1 -1
- package/dist/{layers.v5PDT36l.js → layers.Y1LKjl9b.js} +1 -1
- package/dist/{layers.C1g3F9s0.js → layers.YPJHf8lc.js} +1 -1
- package/dist/{layers.Epz-0GGV.js → layers.Z9hCef4r.js} +1 -1
- package/dist/layers.b-hRtn7J.js +1 -0
- package/dist/layers.bzsDUVrr.js +257 -0
- package/dist/{layers.Bc51hCMr.js → layers.cIU9TFKX.js} +1 -1
- package/dist/{layers.D8n7aBmM.js → layers.dMkCBnnB.js} +1 -1
- package/dist/{layers.CFm0hZnM.js → layers.ddOQhXsv.js} +7 -6
- package/dist/layers.eYFoHPwR.js +528 -0
- package/dist/{layers.1LJ2jRRI.js → layers.gUHeHqVs.js} +9 -8
- package/dist/{layers.DKI6af_5.js → layers.hAKBQg_k.js} +7166 -7368
- package/dist/{layers.DXfOPp6a.js → layers.hXdZ84_y.js} +1 -1
- package/dist/{layers.DggoceC1.js → layers.iQakWJBP.js} +1 -1
- package/dist/layers.iu2L06o2.js +137 -0
- package/dist/{layers.BxuOkVZb.js → layers.jjMKm1YJ.js} +1 -1
- package/dist/{layers.7SQ-m2uF.js → layers.nl_0ZVgt.js} +74 -74
- package/dist/{layers.D_k73JT5.js → layers.pzY1tDPR.js} +1 -1
- package/dist/{layers.aWQ3XxdA.js → layers.qxVY1I_r.js} +1 -1
- package/dist/{layers.FpVAdc00.js → layers.r3EmKo-N.js} +1 -1
- package/dist/{layers.2HPedsvF.js → layers.rLEFJFgm.js} +1 -1
- package/dist/{layers.DhmhjTf7.js → layers.u-VDrr74.js} +1 -1
- package/dist/layers.v_AQPmpY.js +6 -0
- package/dist/layers.vdf-aXrK.js +2 -0
- package/dist/{layers.B-MQ-de1.js → layers.x7eyzWUN.js} +1 -1
- package/dist/{layers.BFQnBoH2.js → layers.y2dUz6fq.js} +2994 -3518
- package/package.json +4 -6
- package/dist/layers.5Ykgr7Jy.js +0 -2
- package/dist/layers.6-4gDOld.js +0 -233
- package/dist/layers.B6O_hwS1.js +0 -257
- package/dist/layers.BTEMViez.js +0 -96
- package/dist/layers.BeLVgQGL.js +0 -1
- package/dist/layers.BjdxIsg0.js +0 -1
- package/dist/layers.BqKeyqAV.js +0 -8
- package/dist/layers.BtSkqiH9.js +0 -230
- package/dist/layers.BvJAEsyo.js +0 -6
- package/dist/layers.C2Go6Teb.js +0 -1
- package/dist/layers.CAVNoIvf.js +0 -1
- package/dist/layers.CGKH9_AG.js +0 -1
- package/dist/layers.COrcM3Q4.js +0 -1
- package/dist/layers.CfLH66Jy.js +0 -8
- package/dist/layers.CpxAQfrk.js +0 -1
- package/dist/layers.DZQTSSFz.js +0 -1
- package/dist/layers.DxUpRC1A.js +0 -135
- package/dist/layers.apcfSNtJ.js +0 -2
- package/dist/layers.stmnFvo6.js +0 -58
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@layers-app/editor",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.3-specific.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"start": "VITE_LAYERS=true vite --mode full ",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"types": "dist/index.d.ts",
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@excalidraw/excalidraw": "^0.18.0",
|
|
30
|
-
"@layers-app/shared": "0.0.39
|
|
30
|
+
"@layers-app/shared": "0.0.39",
|
|
31
31
|
"@lexical/headless": "^0.32.1",
|
|
32
32
|
"@lexical/markdown": "^0.32.1",
|
|
33
33
|
"@lexical/react": "^0.32.1",
|
|
@@ -89,8 +89,7 @@
|
|
|
89
89
|
"vite-plugin-css-injected-by-js": "^3.5.0",
|
|
90
90
|
"vite-plugin-dts": "^4.0.0-beta.1",
|
|
91
91
|
"vite-plugin-static-copy": "^2.3.2",
|
|
92
|
-
"vite-plugin-svgr": "^4.2.0"
|
|
93
|
-
"zustand": "5.0.3"
|
|
92
|
+
"vite-plugin-svgr": "^4.2.0"
|
|
94
93
|
},
|
|
95
94
|
"overrides": {
|
|
96
95
|
"nanoid": "^5.0.9",
|
|
@@ -118,7 +117,6 @@
|
|
|
118
117
|
"lodash-es": ">=4.17.21",
|
|
119
118
|
"react": "^18.3.1",
|
|
120
119
|
"react-dom": "^18.3.1",
|
|
121
|
-
"react-i18next": "^15.7.3"
|
|
122
|
-
"zustand": ">=4.5.4"
|
|
120
|
+
"react-i18next": "^15.7.3"
|
|
123
121
|
}
|
|
124
122
|
}
|
package/dist/layers.5Ykgr7Jy.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("./layers.2HPedsvF.js"),d=require("./layers.BTEMViez.js");require("lodash-es");const $=require("./layers.COAF7f8g.js"),H=require("./layers.9QK1wiQj.js");require("./layers.BtSkqiH9.js");const _=require("./layers.BFD8Si4q.js");let S=0;const C=function(i,r,t,l,p){const c=function(e){switch(e){case p.db.relationType.AGGREGATION:return"aggregation";case p.db.relationType.EXTENSION:return"extension";case p.db.relationType.COMPOSITION:return"composition";case p.db.relationType.DEPENDENCY:return"dependency";case p.db.relationType.LOLLIPOP:return"lollipop"}};r.points=r.points.filter(e=>!Number.isNaN(e.y));const o=r.points,h=_.line().x(function(e){return e.x}).y(function(e){return e.y}).curve(d.curveBasis),n=i.append("path").attr("d",h(o)).attr("id","edge"+S).attr("class","relation");let a="";l.arrowMarkerAbsolute&&(a=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,a=a.replace(/\(/g,"\\("),a=a.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("marker-start","url("+a+"#"+c(t.relation.type1)+"Start)"),t.relation.type2!=="none"&&n.attr("marker-end","url("+a+"#"+c(t.relation.type2)+"End)");let f,u;const x=r.points.length;let w=d.utils.calcLabelPosition(r.points);f=w.x,u=w.y;let y,b,m,k;if(x%2!==0&&x>1){let e=d.utils.calcCardinalityPosition(t.relation.type1!=="none",r.points,r.points[0]),s=d.utils.calcCardinalityPosition(t.relation.type2!=="none",r.points,r.points[x-1]);d.log$1.debug("cardinality_1_point "+JSON.stringify(e)),d.log$1.debug("cardinality_2_point "+JSON.stringify(s)),y=e.x,b=e.y,m=s.x,k=s.y}if(t.title!==void 0){const e=i.append("g").attr("class","classLabel"),s=e.append("text").attr("class","label").attr("x",f).attr("y",u).attr("fill","red").attr("text-anchor","middle").text(t.title);window.label=s;const g=s.node().getBBox();e.insert("rect",":first-child").attr("class","box").attr("x",g.x-l.padding/2).attr("y",g.y-l.padding/2).attr("width",g.width+l.padding).attr("height",g.height+l.padding)}d.log$1.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",y).attr("y",b).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",m).attr("y",k).attr("fill","black").attr("font-size","6").text(t.relationTitle2),S++},A=function(i,r,t,l){d.log$1.debug("Rendering class ",r,t);const p=r.id,c={id:p,label:r.id,width:0,height:0},o=i.append("g").attr("id",l.db.lookUpDomId(p)).attr("class","classGroup");let h;r.link?h=o.append("svg:a").attr("xlink:href",r.link).attr("target",r.linkTarget).append("text").attr("y",t.textHeight+t.padding).attr("x",0):h=o.append("text").attr("y",t.textHeight+t.padding).attr("x",0);let n=!0;r.annotations.forEach(function(s){const g=h.append("tspan").text("«"+s+"»");n||g.attr("dy",t.textHeight),n=!1});let a=v(r);const f=h.append("tspan").text(a).attr("class","title");n||f.attr("dy",t.textHeight);const u=h.node().getBBox().height;let x,w,y;if(r.members.length>0){x=o.append("line").attr("x1",0).attr("y1",t.padding+u+t.dividerMargin/2).attr("y2",t.padding+u+t.dividerMargin/2);const s=o.append("text").attr("x",t.padding).attr("y",u+t.dividerMargin+t.textHeight).attr("fill","white").attr("class","classText");n=!0,r.members.forEach(function(g){N(s,g,n,t),n=!1}),w=s.node().getBBox()}if(r.methods.length>0){y=o.append("line").attr("x1",0).attr("y1",t.padding+u+t.dividerMargin+w.height).attr("y2",t.padding+u+t.dividerMargin+w.height);const s=o.append("text").attr("x",t.padding).attr("y",u+2*t.dividerMargin+w.height+t.textHeight).attr("fill","white").attr("class","classText");n=!0,r.methods.forEach(function(g){N(s,g,n,t),n=!1})}const b=o.node().getBBox();var m=" ";r.cssClasses.length>0&&(m=m+r.cssClasses.join(" "));const e=o.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",b.width+2*t.padding).attr("height",b.height+t.padding+.5*t.dividerMargin).attr("class",m).node().getBBox().width;return h.node().childNodes.forEach(function(s){s.setAttribute("x",(e-s.getBBox().width)/2)}),r.tooltip&&h.insert("title").text(r.tooltip),x&&x.attr("x2",e),y&&y.attr("x2",e),c.width=e,c.height=b.height+t.padding+.5*t.dividerMargin,c},v=function(i){let r=i.id;return i.type&&(r+="<"+d.parseGenericTypes(i.type)+">"),r},W=function(i,r,t,l){d.log$1.debug("Rendering note ",r,t);const p=r.id,c={id:p,text:r.text,width:0,height:0},o=i.append("g").attr("id",p).attr("class","classGroup");let h=o.append("text").attr("y",t.textHeight+t.padding).attr("x",0);const n=JSON.parse(`"${r.text}"`).split(`
|
|
2
|
-
`);n.forEach(function(x){d.log$1.debug(`Adding line: ${x}`),h.append("tspan").text(x).attr("class","title").attr("dy",t.textHeight)});const a=o.node().getBBox(),u=o.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",a.width+2*t.padding).attr("height",a.height+n.length*t.textHeight+t.padding+.5*t.dividerMargin).node().getBBox().width;return h.node().childNodes.forEach(function(x){x.setAttribute("x",(u-x.getBBox().width)/2)}),c.width=u,c.height=a.height+n.length*t.textHeight+t.padding+.5*t.dividerMargin,c},N=function(i,r,t,l){const{displayText:p,cssStyle:c}=r.getDisplayDetails(),o=i.append("tspan").attr("x",l.padding).text(p);c!==""&&o.attr("style",r.cssStyle),t||o.attr("dy",l.textHeight)},M={getClassTitleString:v,drawClass:A,drawEdge:C,drawNote:W};let B={};const E=20,L=function(i){const r=Object.entries(B).find(t=>t[1].label===i);if(r)return r[0]},G=function(i){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")},I=function(i,r,t,l){const p=d.getConfig().class;B={},d.log$1.info("Rendering diagram "+i);const c=d.getConfig().securityLevel;let o;c==="sandbox"&&(o=d.select("#i"+r));const h=c==="sandbox"?d.select(o.nodes()[0].contentDocument.body):d.select("body"),n=h.select(`[id='${r}']`);G(n);const a=new H.Graph({multigraph:!0});a.setGraph({isMultiGraph:!0}),a.setDefaultEdgeLabel(function(){return{}});const f=l.db.getClasses(),u=Object.keys(f);for(const e of u){const s=f[e],g=M.drawClass(n,s,p,l);B[g.id]=g,a.setNode(g.id,g),d.log$1.info("Org height: "+g.height)}l.db.getRelations().forEach(function(e){d.log$1.info("tjoho"+L(e.id1)+L(e.id2)+JSON.stringify(e)),a.setEdge(L(e.id1),L(e.id2),{relation:e},e.title||"DEFAULT")}),l.db.getNotes().forEach(function(e){d.log$1.debug(`Adding note: ${JSON.stringify(e)}`);const s=M.drawNote(n,e,p,l);B[s.id]=s,a.setNode(s.id,s),e.class&&e.class in f&&a.setEdge(e.id,L(e.class),{relation:{id1:e.id,id2:e.class,relation:{type1:"none",type2:"none",lineType:10}}},"DEFAULT")}),$.layout(a),a.nodes().forEach(function(e){e!==void 0&&a.node(e)!==void 0&&(d.log$1.debug("Node "+e+": "+JSON.stringify(a.node(e))),h.select("#"+(l.db.lookUpDomId(e)||e)).attr("transform","translate("+(a.node(e).x-a.node(e).width/2)+","+(a.node(e).y-a.node(e).height/2)+" )"))}),a.edges().forEach(function(e){e!==void 0&&a.edge(e)!==void 0&&(d.log$1.debug("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(a.edge(e))),M.drawEdge(n,a.edge(e),a.edge(e).relation,p,l))});const y=n.node().getBBox(),b=y.width+E*2,m=y.height+E*2;d.configureSvgSize(n,m,b,p.useMaxWidth);const k=`${y.x-E} ${y.y-E} ${b} ${m}`;d.log$1.debug(`viewBox ${k}`),n.attr("viewBox",k)},O={draw:I},P={parser:T.parser$1,db:T.db,renderer:O,styles:T.styles,init:i=>{i.class||(i.class={}),i.class.arrowMarkerAbsolute=i.arrowMarkerAbsolute,T.db.clear()}};exports.diagram=P;
|
package/dist/layers.6-4gDOld.js
DELETED
|
@@ -1,233 +0,0 @@
|
|
|
1
|
-
import { jsx as n, jsxs as k, Fragment as L } from "react/jsx-runtime";
|
|
2
|
-
import { useState as x, useEffect as y, useRef as R, useCallback as M, useMemo as _ } from "react";
|
|
3
|
-
import { R as J, A as $, i as q, h as U, c as b, j as B, k as W, a as G, n as P, p as Q, q as V, r as X, I as O, D as Y, s as Z } from "./layers.BgPxT78V.js";
|
|
4
|
-
import { useTranslation as K } from "react-i18next";
|
|
5
|
-
import { M as ee, H as te } from "./layers.DKI6af_5.js";
|
|
6
|
-
import { useMantineTheme as se, Box as T, Tooltip as j, ActionIcon as H } from "@mantine/core";
|
|
7
|
-
import { IconEdit as ie } from "@tabler/icons-react";
|
|
8
|
-
const ne = (e) => {
|
|
9
|
-
var m;
|
|
10
|
-
const a = (m = e == null ? void 0 : e.firstElementChild) == null ? void 0 : m.firstElementChild, u = e.getAttribute("viewBox");
|
|
11
|
-
if (u != null) {
|
|
12
|
-
const l = u.split(" ");
|
|
13
|
-
e.setAttribute("width", l[2]), e.setAttribute("height", l[3]);
|
|
14
|
-
}
|
|
15
|
-
a && a.tagName === "style" && a.remove();
|
|
16
|
-
};
|
|
17
|
-
function ae({
|
|
18
|
-
elements: e,
|
|
19
|
-
files: a,
|
|
20
|
-
imageContainerRef: u,
|
|
21
|
-
appState: m,
|
|
22
|
-
editor: l,
|
|
23
|
-
rootClassName: s = null,
|
|
24
|
-
width: C = "inherit",
|
|
25
|
-
height: E = "inherit",
|
|
26
|
-
nodeKey: r,
|
|
27
|
-
alignment: N,
|
|
28
|
-
setModalOpen: I
|
|
29
|
-
}) {
|
|
30
|
-
const [o, w] = x(null), [h, A] = x(!1);
|
|
31
|
-
se();
|
|
32
|
-
const { t: S } = K();
|
|
33
|
-
y(() => {
|
|
34
|
-
(async () => {
|
|
35
|
-
const i = await ee({
|
|
36
|
-
appState: m,
|
|
37
|
-
elements: e,
|
|
38
|
-
files: a
|
|
39
|
-
});
|
|
40
|
-
ne(i), i.setAttribute("width", "100%"), i.setAttribute("height", "100%"), i.setAttribute("display", "block"), i.classList.add("excalidraw-svg"), w(i);
|
|
41
|
-
})();
|
|
42
|
-
}, [e, a, m]);
|
|
43
|
-
const p = (d, i) => {
|
|
44
|
-
l.update(() => {
|
|
45
|
-
U(null);
|
|
46
|
-
const g = b(r);
|
|
47
|
-
return B(g) && g.setWidthAndHeight(d, i), !0;
|
|
48
|
-
});
|
|
49
|
-
}, v = (d) => {
|
|
50
|
-
W(l, r);
|
|
51
|
-
};
|
|
52
|
-
return /* @__PURE__ */ n(
|
|
53
|
-
J,
|
|
54
|
-
{
|
|
55
|
-
editor: l,
|
|
56
|
-
isIcon: !1,
|
|
57
|
-
isEmbed: !0,
|
|
58
|
-
width: C,
|
|
59
|
-
height: E,
|
|
60
|
-
onResizeEnd: p,
|
|
61
|
-
alignment: N,
|
|
62
|
-
children: /* @__PURE__ */ k(T, { className: "media-wrapper excaildraw", children: [
|
|
63
|
-
/* @__PURE__ */ k("div", { className: "media-actions", children: [
|
|
64
|
-
/* @__PURE__ */ n(j, { label: S("editor.link.edit"), children: /* @__PURE__ */ n(
|
|
65
|
-
H,
|
|
66
|
-
{
|
|
67
|
-
color: "gray",
|
|
68
|
-
"aria-label": "Settings",
|
|
69
|
-
className: "media-action",
|
|
70
|
-
variant: "default",
|
|
71
|
-
size: 24,
|
|
72
|
-
onClick: () => {
|
|
73
|
-
I(!0);
|
|
74
|
-
},
|
|
75
|
-
children: /* @__PURE__ */ n(ie, { size: 14 })
|
|
76
|
-
}
|
|
77
|
-
) }),
|
|
78
|
-
/* @__PURE__ */ n(
|
|
79
|
-
$,
|
|
80
|
-
{
|
|
81
|
-
opened: h,
|
|
82
|
-
setOpened: A,
|
|
83
|
-
t: S,
|
|
84
|
-
editor: l,
|
|
85
|
-
nodeKey: r
|
|
86
|
-
}
|
|
87
|
-
),
|
|
88
|
-
/* @__PURE__ */ n(j, { label: S("editor.actions.delete"), children: /* @__PURE__ */ n(
|
|
89
|
-
H,
|
|
90
|
-
{
|
|
91
|
-
color: "gray",
|
|
92
|
-
"aria-label": "Settings",
|
|
93
|
-
className: "media-action",
|
|
94
|
-
variant: "default",
|
|
95
|
-
size: 24,
|
|
96
|
-
onClick: v,
|
|
97
|
-
children: /* @__PURE__ */ n(q, { name: "trash", size: "14" })
|
|
98
|
-
}
|
|
99
|
-
) })
|
|
100
|
-
] }),
|
|
101
|
-
/* @__PURE__ */ n(
|
|
102
|
-
T,
|
|
103
|
-
{
|
|
104
|
-
w: "100%",
|
|
105
|
-
ref: (d) => {
|
|
106
|
-
d && u && (u.current = d);
|
|
107
|
-
},
|
|
108
|
-
className: s ?? "",
|
|
109
|
-
dangerouslySetInnerHTML: { __html: (o == null ? void 0 : o.outerHTML) ?? "" }
|
|
110
|
-
}
|
|
111
|
-
)
|
|
112
|
-
] })
|
|
113
|
-
}
|
|
114
|
-
);
|
|
115
|
-
}
|
|
116
|
-
function fe({
|
|
117
|
-
nodeKey: e,
|
|
118
|
-
data: a,
|
|
119
|
-
width: u,
|
|
120
|
-
height: m,
|
|
121
|
-
alignment: l
|
|
122
|
-
}) {
|
|
123
|
-
const [s] = G(), C = P(), [E, r] = x(
|
|
124
|
-
a === "[]" && s.isEditable()
|
|
125
|
-
), N = R(null), I = R(null), [o, w, h] = Q(e), [A, S] = x(!1), p = M(
|
|
126
|
-
(t) => (o && (t.preventDefault(), s.update(() => {
|
|
127
|
-
const c = b(e);
|
|
128
|
-
c && c.remove();
|
|
129
|
-
})), !1),
|
|
130
|
-
[s, o, e]
|
|
131
|
-
);
|
|
132
|
-
y(() => {
|
|
133
|
-
if (!C) {
|
|
134
|
-
o && h();
|
|
135
|
-
return;
|
|
136
|
-
}
|
|
137
|
-
return V(
|
|
138
|
-
s.registerCommand(
|
|
139
|
-
Z,
|
|
140
|
-
(t) => {
|
|
141
|
-
const c = I.current, f = t.target;
|
|
142
|
-
return A ? !0 : c !== null && c.contains(f) ? (t.shiftKey || h(), w(!o), t.detail > 1 && (console.log("--- HUI"), r(!0)), !0) : !1;
|
|
143
|
-
},
|
|
144
|
-
O
|
|
145
|
-
),
|
|
146
|
-
s.registerCommand(
|
|
147
|
-
Y,
|
|
148
|
-
p,
|
|
149
|
-
O
|
|
150
|
-
),
|
|
151
|
-
s.registerCommand(
|
|
152
|
-
X,
|
|
153
|
-
p,
|
|
154
|
-
O
|
|
155
|
-
)
|
|
156
|
-
);
|
|
157
|
-
}, [
|
|
158
|
-
h,
|
|
159
|
-
s,
|
|
160
|
-
o,
|
|
161
|
-
A,
|
|
162
|
-
p,
|
|
163
|
-
w,
|
|
164
|
-
C
|
|
165
|
-
]);
|
|
166
|
-
const v = M(() => (r(!1), s.update(() => {
|
|
167
|
-
const t = b(e);
|
|
168
|
-
t && t.remove();
|
|
169
|
-
})), [s, e]), d = (t, c, f) => s.update(() => {
|
|
170
|
-
const D = b(e);
|
|
171
|
-
B(D) && (t && t.length > 0 || Object.keys(f).length > 0 ? D.setData(
|
|
172
|
-
JSON.stringify({
|
|
173
|
-
appState: c,
|
|
174
|
-
elements: t,
|
|
175
|
-
files: f
|
|
176
|
-
})
|
|
177
|
-
) : D.remove());
|
|
178
|
-
}), {
|
|
179
|
-
elements: i = [],
|
|
180
|
-
files: g = {},
|
|
181
|
-
appState: z = {}
|
|
182
|
-
} = _(() => JSON.parse(a), [a]), F = M(() => {
|
|
183
|
-
r(!1), i.length === 0 && s.update(() => {
|
|
184
|
-
const t = b(e);
|
|
185
|
-
t && t.remove();
|
|
186
|
-
});
|
|
187
|
-
}, [s, e, i.length]);
|
|
188
|
-
return /* @__PURE__ */ k(L, { children: [
|
|
189
|
-
/* @__PURE__ */ n(
|
|
190
|
-
te,
|
|
191
|
-
{
|
|
192
|
-
initialElements: i,
|
|
193
|
-
initialFiles: g,
|
|
194
|
-
initialAppState: z,
|
|
195
|
-
isShown: E,
|
|
196
|
-
onDelete: v,
|
|
197
|
-
onClose: F,
|
|
198
|
-
onSave: (t, c, f) => {
|
|
199
|
-
d(t, c, f), r(!1);
|
|
200
|
-
},
|
|
201
|
-
closeOnClickOutside: !1
|
|
202
|
-
}
|
|
203
|
-
),
|
|
204
|
-
i.length > 0 && /* @__PURE__ */ n(
|
|
205
|
-
"div",
|
|
206
|
-
{
|
|
207
|
-
style: {
|
|
208
|
-
display: "flex",
|
|
209
|
-
justifyContent: l
|
|
210
|
-
},
|
|
211
|
-
children: /* @__PURE__ */ n(
|
|
212
|
-
ae,
|
|
213
|
-
{
|
|
214
|
-
imageContainerRef: N,
|
|
215
|
-
className: "image",
|
|
216
|
-
elements: i,
|
|
217
|
-
files: g,
|
|
218
|
-
appState: z,
|
|
219
|
-
width: u,
|
|
220
|
-
height: m,
|
|
221
|
-
editor: s,
|
|
222
|
-
nodeKey: e,
|
|
223
|
-
alignment: l,
|
|
224
|
-
setModalOpen: r
|
|
225
|
-
}
|
|
226
|
-
)
|
|
227
|
-
}
|
|
228
|
-
)
|
|
229
|
-
] });
|
|
230
|
-
}
|
|
231
|
-
export {
|
|
232
|
-
fe as default
|
|
233
|
-
};
|