@layers-app/editor 0.7.69 → 0.7.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +831 -831
- package/dist/index.cjs +2 -2
- package/dist/index.d.ts +12 -4
- package/dist/index.js +7 -7
- package/dist/{layers.Bz-ApnNV.js → layers.-FCoQeSi.js} +7 -7
- package/dist/{layers.CNP1oZdB.js → layers.-fP-kR7L.js} +1 -1
- package/dist/{layers.D1ndSKTI.js → layers.0RFkHfms.js} +1 -1
- package/dist/{layers.VG9nD_7m.js → layers.29JyiTGE.js} +2 -2
- package/dist/{layers.hhScrOOB.js → layers.2WG23jed.js} +1 -1
- package/dist/{layers.Cg1xP3_y.js → layers.2dCnbFUO.js} +1 -1
- package/dist/{layers.BzvpI1hh.js → layers.2lTNHUcx.js} +1 -1
- package/dist/{layers.BeUtJKi2.js → layers.2rx-tjvC.js} +3 -3
- package/dist/layers.4MzZv3pl.js +32701 -0
- package/dist/{layers.D2Y8JbSm.js → layers.5_J0XVur.js} +1 -1
- package/dist/{layers.nLwIMr0A.js → layers.7KiKGZ51.js} +1 -1
- package/dist/{layers.BkL_wx9c.js → layers.7shVamGi.js} +1 -1
- package/dist/{layers.BsYppIUT.js → layers.86tuuX07.js} +1 -1
- package/dist/layers.96cbKHLM.js +8 -0
- package/dist/{layers.OXr5r5tZ.js → layers.99IpuQjU.js} +1 -1
- package/dist/{layers.BVixMLzr.js → layers.B-ii4GFT.js} +2 -2
- package/dist/{layers.D86KUGFj.js → layers.B0MZNPbk.js} +1 -1
- package/dist/{layers.CBJ0MOlf.js → layers.B0kq9lWv.js} +1 -1
- package/dist/{layers.CeAmhUfG.js → layers.B0z_WYgW.js} +1 -1
- package/dist/{layers.BKFBrrT0.js → layers.B3Z9kAf4.js} +1 -1
- package/dist/layers.B3btDaFD.js +296 -0
- package/dist/{layers.DO14DAS1.js → layers.B40E5SeY.js} +1 -1
- package/dist/{layers.BRrmq6iF.js → layers.B47TatU2.js} +1 -1
- package/dist/{layers.BOo-MVTB.js → layers.B6B3_Jr6.js} +1 -1
- package/dist/{layers.1h-C3twR.js → layers.B76ZjQbb.js} +1 -1
- package/dist/{layers.Cu4n_10K.js → layers.B87OOEMC.js} +1 -1
- package/dist/layers.B8Bwu93Z.js +129 -0
- package/dist/{layers.CkkOx1Du.js → layers.BE4uTD8E.js} +1 -1
- package/dist/{layers.Bikyk_e4.js → layers.BIGkS4xr.js} +1 -1
- package/dist/{layers.BlxHjIpu.js → layers.BJ3_O4JT.js} +4 -4
- package/dist/{layers.DDcNIM5V.js → layers.BJgaeldx.js} +1 -1
- package/dist/{layers.CxG4X8gX.js → layers.BM1cNB82.js} +1 -1
- package/dist/{layers.7JPTj9nT.js → layers.BOLBxfqV.js} +1 -1
- package/dist/{layers.DGQ_Ip2d.js → layers.BP7jzC4b.js} +9 -9
- package/dist/{layers.CU1Xj7Xw.js → layers.BPL3ncJm.js} +1 -1
- package/dist/{layers.hLDK8NtM.js → layers.BQ38G2bY.js} +1 -1
- package/dist/{layers.C4yu73C7.js → layers.BQDiFrN6.js} +1 -1
- package/dist/{layers.CKe87-Ob.js → layers.BQwcdyRr.js} +1 -1
- package/dist/{layers.Cy4keqhB.js → layers.BS--5Vdh.js} +1 -1
- package/dist/{layers.B9UDpqLV.js → layers.BT5dkRqe.js} +2 -2
- package/dist/{layers.CJXhO9Ve.js → layers.BUZqPh1Y.js} +1 -1
- package/dist/{layers.Ddbl4YKu.js → layers.BU_o0dah.js} +1 -1
- package/dist/{layers.B8owvN6x.js → layers.BUc6RkSD.js} +1 -1
- package/dist/{layers.DaDiP12K.js → layers.BVBUCv5V.js} +1 -1
- package/dist/{layers.JvCTDQpj.js → layers.BYGdg-S9.js} +1 -1
- package/dist/{layers.DeG_vaHA.js → layers.BYi9mUCK.js} +1 -1
- package/dist/{layers.OgHHJ7AJ.js → layers.BYvh8yIz.js} +1 -1
- package/dist/{layers.BEBKNx1X.js → layers.BZbP1yXq.js} +1 -1
- package/dist/{layers.ABwl_epL.js → layers.Bf12RWOg.js} +1 -1
- package/dist/{layers.C65VXHX0.js → layers.Bft8wK3F.js} +3 -3
- package/dist/{layers.BnRSfdCn.js → layers.BhDJhHzw.js} +1 -1
- package/dist/{layers.DLlZvhVA.js → layers.BhQuXb6o.js} +1 -1
- package/dist/layers.Biu0_aWU.js +448 -0
- package/dist/{layers.DyOnTO36.js → layers.BkNcVSt7.js} +1 -1
- package/dist/{layers.oDpU-Hra.js → layers.BkVKUQpH.js} +1 -1
- package/dist/{layers.7Ceqy3dk.js → layers.BoLKNLsr.js} +1 -1
- package/dist/{layers.BPwGq1IZ.js → layers.BogKfVKo.js} +1 -1
- package/dist/{layers.8mP8G0Aq.js → layers.BqCwSNKl.js} +1 -1
- package/dist/{layers.CCOUMNlV.js → layers.Bqz3fZc0.js} +1 -1
- package/dist/{layers.DJE4KoOw.js → layers.BsUoGfVn.js} +1 -1
- package/dist/{layers.Dt8WcpHM.js → layers.ByRPMXvA.js} +1 -1
- package/dist/{layers.DlLc2eVa.js → layers.ByhA1GmD.js} +1 -1
- package/dist/{layers.d-J-pkkX.js → layers.BypLNicV.js} +1 -1
- package/dist/{layers.-rEnD-gW.js → layers.C03GhQ1D.js} +1 -1
- package/dist/{layers.JWOykHoL.js → layers.C266258A.js} +1 -1
- package/dist/{layers.Bp002Gvn.js → layers.C2MHACJy.js} +1 -1
- package/dist/{layers.CMx7vO0L.js → layers.C2wojfYa.js} +1 -1
- package/dist/{layers.Bkg6bWRU.js → layers.C3tSRRCY.js} +1 -1
- package/dist/{layers._rxomw_e.js → layers.C4OmENwy.js} +1 -1
- package/dist/layers.C5TowFPl.js +6 -0
- package/dist/layers.C9IV45sU.js +1 -0
- package/dist/{layers.ChgBnn_C.js → layers.C9JgsoQd.js} +7 -7
- package/dist/{layers.nutPV8y6.js → layers.CBZe_ymE.js} +1 -1
- package/dist/{layers.DThNATm6.js → layers.CBy9s8QI.js} +1 -1
- package/dist/{layers.Bl49cA_q.js → layers.CCMylcSj.js} +3 -3
- package/dist/{layers.BNtW40eC.js → layers.CCNgg9wD.js} +1 -1
- package/dist/{layers.BEzidhNG.js → layers.CDSDvytN.js} +1 -1
- package/dist/{layers.BmFfrMCv.js → layers.CEfBQcmZ.js} +1 -1
- package/dist/{layers.pcuXD239.js → layers.CGatcMVH.js} +1 -1
- package/dist/{layers.v8fikFVy.js → layers.CGummNaV.js} +6 -6
- package/dist/{layers.D33amGFS.js → layers.CHL9X3bf.js} +4 -4
- package/dist/{layers.CgNnf8Hm.js → layers.CJNlVLps.js} +1 -1
- package/dist/{layers.Bj5LxhQF.js → layers.CJjXxcyR.js} +1 -1
- package/dist/{layers.D264prLn.js → layers.CJxbnLgP.js} +1 -1
- package/dist/{layers.PejndB2j.js → layers.CKj0lOmB.js} +1 -1
- package/dist/{layers.NSb01dZ8.js → layers.CM4NJ2K3.js} +3 -3
- package/dist/{layers.Dbdv8-it.js → layers.CMf0siBo.js} +1 -1
- package/dist/{layers.BRlhY-vC.js → layers.CN8eCszj.js} +1 -1
- package/dist/{layers.C8Uasx1W.js → layers.COGNIj1r.js} +1 -1
- package/dist/{layers.DT1WT-jl.js → layers.CPFR5AEe.js} +1 -1
- package/dist/{layers.DZZsW6JV.js → layers.CRKPLK4K.js} +1 -1
- package/dist/{layers.DJhZTayX.js → layers.CU7TsIOQ.js} +1 -1
- package/dist/{layers.6-rJJApG.js → layers.C_r2XVbG.js} +24 -24
- package/dist/{layers.BRMYvE9z.js → layers.CaXJnzkl.js} +1 -1
- package/dist/{layers.DsrGvHCq.js → layers.CcEOtNlD.js} +1 -1
- package/dist/{layers.DCF5TSK6.js → layers.Chcx2Ibd.js} +3 -3
- package/dist/{layers.29-kZlSC.js → layers.CkW2OoCC.js} +1 -1
- package/dist/layers.CmmYt3Ou.js +1 -0
- package/dist/{layers.C4OQU4VG.js → layers.CqkdZQCk.js} +1 -1
- package/dist/{layers.BQt-6gJJ.js → layers.Cs9xHWb2.js} +1 -1
- package/dist/{layers.CrfWp4fJ.js → layers.CsEB8i0s.js} +1 -1
- package/dist/{layers.BXxEMH4b.js → layers.CsmYM99B.js} +4 -4
- package/dist/{layers.ocb-ckJB.js → layers.CswKXpWq.js} +1 -1
- package/dist/{layers.2oQP3Kd1.js → layers.CtRY_H6w.js} +1 -1
- package/dist/{layers.C9aLQWLr.js → layers.CtekKJbi.js} +1 -1
- package/dist/{layers.Bdy9X7vh.js → layers.CusmPrta.js} +3 -3
- package/dist/{layers.yoJPKgxf.js → layers.Cvi-Rdpx.js} +1 -1
- package/dist/{layers.Apre-y7o.js → layers.CwgQHm6q.js} +418 -418
- package/dist/{layers.D7gubwRv.js → layers.CzCLy63p.js} +1 -1
- package/dist/{layers.C_GOAIwQ.js → layers.D1POTQQf.js} +4 -4
- package/dist/{layers.qJxUThUt.js → layers.D2r0kOYj.js} +1 -1
- package/dist/{layers.xj7IEpC3.js → layers.D4v5_bdl.js} +1 -1
- package/dist/{layers.HKuQEi8d.js → layers.D5RdTkr-.js} +1 -1
- package/dist/{layers.Cqc8FCdp.js → layers.D5VC8CV9.js} +10 -10
- package/dist/{layers.CMhGAZ1F.js → layers.D7PjyVzu.js} +1 -1
- package/dist/{layers.QcOQUP20.js → layers.D9NI9MwJ.js} +1 -1
- package/dist/layers.D9opr1Lq.js +1 -0
- package/dist/{layers.BVqcl0kN.js → layers.DA0T5fzL.js} +1 -1
- package/dist/{layers.DKf11IZ4.js → layers.DCNhTuyU.js} +1 -1
- package/dist/{layers.DD3xo4Q7.js → layers.DDqQC0gc.js} +1 -1
- package/dist/{layers.DSFm0uZ6.js → layers.DDqZTsAY.js} +1 -1
- package/dist/{layers.yiF779cI.js → layers.DFBGI9ow.js} +1 -1
- package/dist/{layers.qh_bhSwF.js → layers.DG1hIVbD.js} +4 -4
- package/dist/{layers.CFfrUgu3.js → layers.DHF4FcVf.js} +10 -10
- package/dist/{layers.BPxa1qKy.js → layers.DHHopCMO.js} +6 -6
- package/dist/{layers.BiTvj2e-.js → layers.DIbevmx0.js} +1 -1
- package/dist/{layers.P7yLojmH.js → layers.DKnLBZ10.js} +1 -1
- package/dist/{layers.DOUMVPFI.js → layers.DLB4etno.js} +1 -1
- package/dist/{layers.5QZeTM8q.js → layers.DMN2cnfS.js} +1 -1
- package/dist/{layers.CztaGcF0.js → layers.DMtFF698.js} +1 -1
- package/dist/{layers.BACuuEQj.js → layers.DNBtUTph.js} +1 -1
- package/dist/{layers.C8i5OjeA.js → layers.DOCPEINE.js} +1 -1
- package/dist/{layers.-Ruj4Zo5.js → layers.DPja6zel.js} +7 -7
- package/dist/{layers.B5XR7a6d.js → layers.DPqDk63A.js} +5 -5
- package/dist/{layers.C7ExfGAg.js → layers.DSVcm5Is.js} +1 -1
- package/dist/{layers.BpLCIHmB.js → layers.DTUnRaBw.js} +1 -1
- package/dist/{layers.LpxZivxv.js → layers.DUPRfbHO.js} +1 -1
- package/dist/{layers.BKWjeNv0.js → layers.DWZlQ5ye.js} +1 -1
- package/dist/{layers.D8zgNYxg.js → layers.DYHx8Z0n.js} +1 -1
- package/dist/{layers.DBVgoS4g.js → layers.DcT-H8_R.js} +1 -1
- package/dist/layers.DdqzZDWF.js +17 -0
- package/dist/{layers.DzoWhdzh.js → layers.Dedzg7HW.js} +1 -1
- package/dist/{layers.D0EoHDuH.js → layers.DgPRm4hS.js} +1 -1
- package/dist/{layers.BVazfLwg.js → layers.DhnsLLMA.js} +1 -1
- package/dist/{layers.0Xr9gi8k.js → layers.DiikXRj-.js} +1 -1
- package/dist/layers.DilA0qnM.js +54 -0
- package/dist/{layers.Db05xOFS.js → layers.Dko-4BVz.js} +3 -3
- package/dist/{layers.Dps90Puu.js → layers.DlUil_G1.js} +1 -1
- package/dist/{layers.0DBGZAux.js → layers.DlrvbC3x.js} +1 -1
- package/dist/{layers.BEi-TBNF.js → layers.DpHy4ZyT.js} +1 -1
- package/dist/{layers.v33R5NY5.js → layers.DqTCRUQM.js} +1 -1
- package/dist/{layers.SXC1p29H.js → layers.DqgKRSdc.js} +1 -1
- package/dist/{layers.Yv4tqH51.js → layers.DrcJV9ob.js} +1 -1
- package/dist/{layers.BTHfw6Y3.js → layers.Drmw3OLw.js} +1 -1
- package/dist/{layers.CoaCRc82.js → layers.DsRQvF0R.js} +1 -1
- package/dist/{layers.MMnDRf0F.js → layers.DtIgaT3x.js} +1 -1
- package/dist/{layers.C6M4MqIv.js → layers.DuR9z-Za.js} +1 -1
- package/dist/{layers.D6Zb3uyB.js → layers.DwgrYKV5.js} +1 -1
- package/dist/{layers.DRqadjGU.js → layers.DxxtHwJ4.js} +1 -1
- package/dist/{layers.DhtNmWhH.js → layers.DyQRwI5f.js} +1 -1
- package/dist/{layers.CeSuEnek.js → layers.DzXOkIEW.js} +1 -1
- package/dist/{layers.BazZH6QQ.js → layers.DzaCymAJ.js} +3 -3
- package/dist/{layers.DtIUJOdD.js → layers.Dzn5w2ZK.js} +1 -1
- package/dist/{layers.BFSFcjZf.js → layers.GD9u0TY8.js} +1 -1
- package/dist/{layers.C_BVUEv9.js → layers.HohTS9S9.js} +1 -1
- package/dist/{layers.zQ4PGkmU.js → layers.KQ3GHBwi.js} +2 -2
- package/dist/{layers.GBoQfNMn.js → layers.K_K2O6S1.js} +1 -1
- package/dist/{layers.BYdLVl8c.js → layers.MgccF3I9.js} +2 -2
- package/dist/{layers.C22aJlMR.js → layers.N8pPd4-W.js} +1 -1
- package/dist/{layers.O9aENdhz.js → layers.OID0yNM1.js} +1 -1
- package/dist/{layers.pmVv821j.js → layers.QOHvQQnC.js} +1 -1
- package/dist/{layers.D85fT96W.js → layers.QWlclhT3.js} +4 -4
- package/dist/{layers.D9v06W3U.js → layers.V8cy2Jes.js} +5 -5
- package/dist/{layers.OjmLtSP1.js → layers.XdKgLPlD.js} +1 -1
- package/dist/{layers.BT2p46yj.js → layers.YWKz-BcE.js} +1 -1
- package/dist/{layers.BX73rpJr.js → layers.Ym9InV68.js} +1 -1
- package/dist/{layers.zBZCJFA4.js → layers.ZTielExC.js} +1 -1
- package/dist/{layers.6u9nN9kL.js → layers.Zoh7_KpJ.js} +1 -1
- package/dist/{layers.BQPUKPC6.js → layers.Zz3myt0Z.js} +1 -1
- package/dist/{layers.qLig6Qrb.js → layers._-sQMc4U.js} +4 -4
- package/dist/{layers.BiFdoyLm.js → layers.bQhhcnZ-.js} +1 -1
- package/dist/{layers.Bo0IyTdD.js → layers.bVTshU1p.js} +8 -8
- package/dist/{layers.CB008f5M.js → layers.bfAD-zkU.js} +1 -1
- package/dist/{layers.gaA-42fN.js → layers.bmLqcKmt.js} +1 -1
- package/dist/layers.dntW5X-m.js +1 -0
- package/dist/layers.drVWgQFn.js +7 -0
- package/dist/{layers.DOrpTa-Z.js → layers.e1JrO1W5.js} +1 -1
- package/dist/layers.eqZ4gGGr.js +1 -0
- package/dist/{layers.CScSVAbT.js → layers.fFiGEVFE.js} +1 -1
- package/dist/{layers.5p0-huXu.js → layers.gb7k7V0C.js} +2 -2
- package/dist/{layers.DoCKPdqw.js → layers.lVQv6vc1.js} +1 -1
- package/dist/{layers.gC3dy9DX.js → layers.mBRSSoOR.js} +1 -1
- package/dist/{layers.CTlCeLwn.js → layers.mLAXPMHT.js} +1 -1
- package/dist/{layers.DDCXCLxy.js → layers.mnqXOe2N.js} +1 -1
- package/dist/{layers.fvWum4-u.js → layers.oZ7n-X3T.js} +1 -1
- package/dist/{layers.DXcnRV7U.js → layers.rVrPVh2m.js} +1 -1
- package/dist/{layers.B43YGj4m.js → layers.rxJ2RzRm.js} +1 -1
- package/dist/{layers.BkOoEzpy.js → layers.spXoEYEz.js} +1 -1
- package/dist/layers.tI-TqfCp.js +1 -0
- package/dist/{layers.CIJ4arAq.js → layers.v1kabTk7.js} +1 -1
- package/dist/{layers.27B-KQHO.js → layers.vpIm-tAg.js} +3 -3
- package/dist/{layers.C9m_GsPX.js → layers.wFpdlqjO.js} +1 -1
- package/dist/{layers.BXbpW1pa.js → layers.xN2otuly.js} +1 -1
- package/dist/{layers.CouvMYZ_.js → layers.yc-OSYvR.js} +1 -1
- package/package.json +185 -160
- package/dist/layers.B6oRmypa.js +0 -6
- package/dist/layers.BQn-BoQ1.js +0 -1
- package/dist/layers.BSQ3Xt_h.js +0 -1
- package/dist/layers.BUjjzt0_.js +0 -8
- package/dist/layers.Bf2vZuCE.js +0 -213
- package/dist/layers.BjB-nIkz.js +0 -1
- package/dist/layers.BlDLjKDo.js +0 -28602
- package/dist/layers.CEQVj5e3.js +0 -76
- package/dist/layers.CFdxfEoL.js +0 -6
- package/dist/layers.CQz5mJxl.js +0 -1
- package/dist/layers.CVOG1MPi.js +0 -1
- package/dist/layers.CgDGfwW5.js +0 -129
- package/dist/layers.CmP_wzmD.js +0 -296
- package/dist/layers.D4JTY0h0.js +0 -295
- package/dist/layers.D_dIsPyp.js +0 -271
- package/dist/layers.Df431v9O.js +0 -1
- package/dist/layers.nxzVbnZG.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./layers
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./layers.DPja6zel.js");var e={paste:"Pegar",pasteAsPlaintext:"Pegar como texto sin formato",pasteCharts:"Pegar gráficos",selectAll:"Seleccionar todo",multiSelect:"Añadir elemento a la selección",moveCanvas:"Mover el lienzo",cut:"Cortar",copy:"Copiar",copyAsPng:"Copiar al portapapeles como PNG",copyAsSvg:"Copiar al portapapeles como SVG",copyText:"Copiar al portapapeles como texto",copySource:"Copiar fuente al portapapeles",convertToCode:"Convertir a código",bringForward:"Traer hacia delante",sendToBack:"Enviar al fondo",bringToFront:"Traer al frente",sendBackward:"Enviar atrás",delete:"Borrar",copyStyles:"Copiar estilos",pasteStyles:"Pegar estilos",stroke:"Trazo",background:"Fondo",fill:"Rellenar",strokeWidth:"Grosor del trazo",strokeStyle:"Estilo del trazo",strokeStyle_solid:"Sólido",strokeStyle_dashed:"Discontinua",strokeStyle_dotted:"Punteado",sloppiness:"Estilo de trazo",opacity:"Opacidad",textAlign:"Alineado de texto",edges:"Bordes",sharp:"Afilado",round:"Redondo",arrowheads:"Puntas de flecha",arrowhead_none:"Ninguna",arrowhead_arrow:"Flecha",arrowhead_bar:"Barra",arrowhead_circle:"Círculo",arrowhead_circle_outline:"Círculo (contorno)",arrowhead_triangle:"Triángulo",arrowhead_triangle_outline:"Triángulo (contorno)",arrowhead_diamond:"Diamante",arrowhead_diamond_outline:"Diamante (contorno)",fontSize:"Tamaño de la fuente",fontFamily:"Tipo de fuente",addWatermark:'Agregar "Hecho con Excalidraw"',handDrawn:"Dibujado a mano",normal:"Normal",code:"Código",small:"Pequeña",medium:"Mediana",large:"Grande",veryLarge:"Muy grande",solid:"Sólido",hachure:"Folleto",zigzag:"Zigzag",crossHatch:"Rayado transversal",thin:"Fino",bold:"Grueso",left:"Izquierda",center:"Centrado",right:"Derecha",extraBold:"Extra negrita",architect:"Arquitecto",artist:"Artista",cartoonist:"Caricatura",fileTitle:"Nombre del archivo",colorPicker:"Selector de color",canvasColors:"Usado en lienzo",canvasBackground:"Fondo del lienzo",drawingCanvas:"Lienzo de dibujo",layers:"Capas",actions:"Acciones",language:"Idioma",liveCollaboration:"Colaboración en directo...",duplicateSelection:"Duplicar",untitled:"Sin título",name:"Nombre",yourName:"Tu nombre",madeWithExcalidraw:"Hecho con Excalidraw",group:"Agrupar selección",ungroup:"Desagrupar selección",collaborators:"Colaboradores",showGrid:"Mostrar cuadrícula",addToLibrary:"Añadir a la biblioteca",removeFromLibrary:"Eliminar de la biblioteca",libraryLoadingMessage:"Cargando biblioteca…",libraries:"Explorar bibliotecas",loadingScene:"Cargando escena…",align:"Alinear",alignTop:"Alineación superior",alignBottom:"Alineación inferior",alignLeft:"Alinear a la izquierda",alignRight:"Alinear a la derecha",centerVertically:"Centrar verticalmente",centerHorizontally:"Centrar horizontalmente",distributeHorizontally:"Distribuir horizontalmente",distributeVertically:"Distribuir verticalmente",flipHorizontal:"Girar horizontalmente",flipVertical:"Girar verticalmente",viewMode:"Modo presentación",share:"Compartir",showStroke:"Mostrar selector de color de trazo",showBackground:"Mostrar el selector de color de fondo",toggleTheme:"Cambiar tema",personalLib:"Biblioteca personal",excalidrawLib:"Biblioteca Excalidraw",decreaseFontSize:"Disminuir tamaño de letra",increaseFontSize:"Aumentar el tamaño de letra",unbindText:"Desvincular texto",bindText:"Vincular texto al contenedor",createContainerFromText:"Envolver el texto en un contenedor",link:{edit:"Editar enlace",editEmbed:"Editar enlace e incrustar",create:"Crear enlace",createEmbed:"Crear enlace e incrustar",label:"Enlace",labelEmbed:"Enlazar e incrustar",empty:"No se ha establecido un enlace"},lineEditor:{edit:"Editar línea",exit:"Salir del editor en línea"},elementLock:{lock:"Bloquear",unlock:"Desbloquear",lockAll:"Bloquear todo",unlockAll:"Desbloquear todo"},statusPublished:"Publicado",sidebarLock:"Mantener barra lateral abierta",selectAllElementsInFrame:"Seleccionar todos los elementos en el marco",removeAllElementsFromFrame:"Eliminar todos los elementos del marco",eyeDropper:"Seleccionar un color del lienzo",textToDiagram:"Texto a diagrama",prompt:"Sugerencia"},a={noItems:"No hay elementos añadidos todavía...",hint_emptyLibrary:"Seleccione un elemento en el lienzo para añadirlo aquí, o instale una biblioteca del repositorio público, a continuación.",hint_emptyPrivateLibrary:"Seleccione un elemento del lienzo para añadirlo aquí."},o={clearReset:"Limpiar lienzo y reiniciar el color de fondo",exportJSON:"Exportar a archivo",exportImage:"Exportar imagen...",export:"Guardar en...",copyToClipboard:"Copiar al portapapeles",save:"Guardar en archivo actual",saveAs:"Guardar como",load:"Abrir",getShareableLink:"Obtener enlace para compartir",close:"Cerrar",selectLanguage:"Elegir idioma",scrollBackToContent:"Volver al contenido",zoomIn:"Acercarse",zoomOut:"Alejarse",resetZoom:"Restablecer zoom",menu:"Menú",done:"Hecho",edit:"Editar",undo:"Deshacer",redo:"Rehacer",resetLibrary:"Reiniciar biblioteca",createNewRoom:"Crear nueva sala",fullScreen:"Pantalla completa",darkMode:"Modo oscuro",lightMode:"Modo claro",zenMode:"Modo Zen",objectsSnapMode:"Ajustar a los objetos",exitZenMode:"Salir del modo Zen",cancel:"Cancelar",clear:"Borrar",remove:"Eliminar",embed:"",publishLibrary:"Publicar",submit:"Enviar",confirm:"Confirmar",embeddableInteractionButton:"Pulsa para interactuar"},r={clearReset:"Esto limpiará todo el lienzo. Estás seguro?",couldNotCreateShareableLink:"No se pudo crear un enlace para compartir.",couldNotCreateShareableLinkTooBig:"No se pudo crear el enlace para compartir: la escena es demasiado grande",couldNotLoadInvalidFile:"No se pudo cargar el archivo no válido",importBackendFailed:"La importación falló.",cannotExportEmptyCanvas:"No se puede exportar un lienzo vació",couldNotCopyToClipboard:"No se pudo copiar al portapapeles.",decryptFailed:"No se pudieron descifrar los datos.",uploadedSecurly:"La carga ha sido asegurada con cifrado de principio a fin, lo que significa que el servidor de Excalidraw y terceros no pueden leer el contenido.",loadSceneOverridePrompt:"Si carga este dibujo externo, reemplazará el que tiene. ¿Desea continuar?",collabStopOverridePrompt:`Detener la sesión sobrescribirá su dibujo anterior almacenado localmente. ¿Está seguro?
|
|
2
2
|
|
|
3
3
|
(Si desea mantener su dibujo local, simplemente cierre la pestaña del navegador.)`,errorAddingToLibrary:"No se pudo agregar el elemento a la biblioteca",errorRemovingFromLibrary:"No se pudo quitar el elemento de la biblioteca",confirmAddLibrary:"Esto añadirá {{numShapes}} forma(s) a tu biblioteca. ¿Estás seguro?",imageDoesNotContainScene:"Esta imagen no parece contener datos de escena. ¿Ha habilitado la inserción de la escena durante la exportación?",cannotRestoreFromImage:"No se pudo restaurar la escena desde este archivo de imagen",invalidSceneUrl:"No se ha podido importar la escena desde la URL proporcionada. Está mal formada, o no contiene datos de Excalidraw JSON válidos.",resetLibrary:"Esto borrará tu biblioteca. ¿Estás seguro?",removeItemsFromsLibrary:"¿Eliminar {{count}} elemento(s) de la biblioteca?",invalidEncryptionKey:"La clave de cifrado debe tener 22 caracteres. La colaboración en vivo está deshabilitada.",collabOfflineWarning:`No hay conexión a internet disponible.
|
|
4
4
|
¡No se guardarán los cambios!`},i={unsupportedFileType:"Tipo de archivo no admitido.",imageInsertError:"No se pudo insertar la imagen. Inténtelo de nuevo más tarde...",fileTooBig:"Archivo demasiado grande. El tamaño máximo permitido es {{maxSize}}.",svgImageInsertError:"No se pudo insertar la imagen SVG. El código SVG parece inválido.",failedToFetchImage:"Error al obtener la imagen.",invalidSVGString:"SVG no válido.",cannotResolveCollabServer:"No se pudo conectar al servidor colaborador. Por favor, vuelva a cargar la página y vuelva a intentarlo.",importLibraryError:"No se pudo cargar la librería",collabSaveFailed:"No se pudo guardar en la base de datos del backend. Si los problemas persisten, debería guardar su archivo localmente para asegurarse de que no pierde su trabajo.",collabSaveFailed_sizeExceeded:"No se pudo guardar en la base de datos del backend, el lienzo parece ser demasiado grande. Debería guardar el archivo localmente para asegurarse de que no pierde su trabajo.",imageToolNotSupported:"",brave_measure_text_error:{line1:"Parece que estás usando el navegador Brave con el ajuste <bold>Forzar el bloqueo de huellas digitales</bold> habilitado.",line2:"Esto podría resultar en errores en los <bold>Elementos de Texto</bold> en tus dibujos.",line3:"Recomendamos fuertemente deshabilitar esta configuración. Puedes seguir <link>estos pasos</link> sobre cómo hacerlo.",line4:""},libraryElementTypeError:{embeddable:"",iframe:"Los elementos IFrame no se pueden agregar a la biblioteca.",image:""},asyncPasteFailedOnRead:"No se pudo pegar (no se pudo leer desde el portapapeles del sistema).",asyncPasteFailedOnParse:"No se pudo pegar.",copyToSystemClipboardFailed:"No se pudo copiar al portapapeles."},n={selection:"Selección",image:"Insertar imagen",rectangle:"Rectángulo",diamond:"Diamante",ellipse:"Elipse",arrow:"Flecha",line:"Línea",freedraw:"Dibujar",text:"Texto",library:"Biblioteca",lock:"Mantener la herramienta seleccionada activa después de dibujar",penMode:"Modo Lápiz - previene toque",link:"Añadir/Actualizar enlace para una forma seleccionada",eraser:"Borrar",frame:"",magicframe:"Esquema a código",embeddable:"Incrustar Web",laser:"Puntero láser",hand:"Mano (herramienta de panoramización)",extraTools:"Más herramientas",mermaidToExcalidraw:"Mermaid a Excalidraw",magicSettings:"Ajustes AI"},t={canvasActions:"Acciones del lienzo",selectedShapeActions:"Acciones de la forma seleccionada",shapes:"Formas"},l={canvasPanning:"Para mover el lienzo, mantenga la rueda del ratón o la barra espaciadora mientras arrastra o utilice la herramienta de mano",linearElement:"Haz clic para dibujar múltiples puntos, arrastrar para solo una línea",freeDraw:"Haz clic y arrastra, suelta al terminar",text:"Consejo: también puedes añadir texto haciendo doble clic en cualquier lugar con la herramienta de selección",embeddable:"Haga clic y arrastre para crear un sitio web incrustado",text_selected:"Doble clic o pulse ENTER para editar el texto",text_editing:"Pulse Escape o Ctrl/Cmd + ENTER para terminar de editar",linearElementMulti:"Haz clic en el último punto o presiona Escape o Enter para finalizar",lockAngle:"Puedes restringir el ángulo manteniendo presionado el botón SHIFT",resize:`Para mantener las proporciones mantén SHIFT presionado mientras modificas el tamaño,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const P=require("lodash-es"),J=require("./layers.Cyzu9PKQ.js"),k=require("./layers.BLd2spTm.js"),u=require("./layers.OjmLtSP1.js"),i=require("./layers.6-rJJApG.js"),j=require("./layers.D264prLn.js");function G(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const m=G(P);function x(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:M(e),edges:F(e)};return m.isUndefined(e.graph())||(t.value=m.clone(e.graph())),t}function M(e){return m.map(e.nodes(),function(t){var n=e.node(t),r=e.parent(t),s={v:t};return m.isUndefined(n)||(s.value=n),m.isUndefined(r)||(s.parent=r),s})}function F(e){return m.map(e.edges(),function(t){var n=e.edge(t),r={v:t.v,w:t.w};return m.isUndefined(t.name)||(r.name=t.name),m.isUndefined(n)||(r.value=n),r})}let a={},w={},p={};const q=()=>{w={},p={},a={}},X=(e,t)=>(i.log$1.trace("In isDescendant",t," ",e," = ",w[t].includes(e)),!!w[t].includes(e)),_=(e,t)=>(i.log$1.info("Descendants of ",t," is ",w[t]),i.log$1.info("Edge is ",e),e.v===t||e.w===t?!1:w[t]?w[t].includes(e.v)||X(e.v,t)||X(e.w,t)||w[t].includes(e.w):(i.log$1.debug("Tilt, ",t,",not in descendants"),!1)),B=(e,t,n,r)=>{i.log$1.warn("Copying children of ",e,"root",r,"data",t.node(e),r);const s=t.children(e)||[];e!==r&&s.push(e),i.log$1.warn("Copying (nodes) clusterId",e,"nodes",s),s.forEach(o=>{if(t.children(o).length>0)B(o,t,n,r);else{const f=t.node(o);i.log$1.info("cp ",o," to ",r," with parent ",e),n.setNode(o,f),r!==t.parent(o)&&(i.log$1.warn("Setting parent",o,t.parent(o)),n.setParent(o,t.parent(o))),e!==r&&o!==e?(i.log$1.debug("Setting parent",o,e),n.setParent(o,e)):(i.log$1.info("In copy ",e,"root",r,"data",t.node(e),r),i.log$1.debug("Not Setting parent for node=",o,"cluster!==rootId",e!==r,"node!==clusterId",o!==e));const g=t.edges(o);i.log$1.debug("Copying Edges",g),g.forEach(d=>{i.log$1.info("Edge",d);const h=t.edge(d.v,d.w,d.name);i.log$1.info("Edge data",h,r);try{_(d,r)?(i.log$1.info("Copying as ",d.v,d.w,h,d.name),n.setEdge(d.v,d.w,h,d.name),i.log$1.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):i.log$1.info("Skipping copy of edge ",d.v,"-->",d.w," rootId: ",r," clusterId:",e)}catch($){i.log$1.error($)}})}i.log$1.debug("Removing node",o),t.removeNode(o)})},D=(e,t)=>{const n=t.children(e);let r=[...n];for(const s of n)p[s]=e,r=[...r,...D(s,t)];return r},C=(e,t)=>{i.log$1.trace("Searching",e);const n=t.children(e);if(i.log$1.trace("Searching children of id ",e,n),n.length<1)return i.log$1.trace("This is a valid node",e),e;for(const r of n){const s=C(r,t);if(s)return i.log$1.trace("Found replacement for",e," => ",s),s}},S=e=>!a[e]||!a[e].externalConnections?e:a[e]?a[e].id:e,U=(e,t)=>{if(!e||t>10){i.log$1.debug("Opting out, no graph ");return}else i.log$1.debug("Opting in, graph ");e.nodes().forEach(function(n){e.children(n).length>0&&(i.log$1.warn("Cluster identified",n," Replacement id in edges: ",C(n,e)),w[n]=D(n,e),a[n]={id:C(n,e),clusterData:e.node(n)})}),e.nodes().forEach(function(n){const r=e.children(n),s=e.edges();r.length>0?(i.log$1.debug("Cluster identified",n,w),s.forEach(o=>{if(o.v!==n&&o.w!==n){const f=X(o.v,n),g=X(o.w,n);f^g&&(i.log$1.warn("Edge: ",o," leaves cluster ",n),i.log$1.warn("Descendants of XXX ",n,": ",w[n]),a[n].externalConnections=!0)}})):i.log$1.debug("Not a cluster ",n,w)});for(let n of Object.keys(a)){const r=a[n].id,s=e.parent(r);s!==n&&a[s]&&!a[s].externalConnections&&(a[n].id=s)}e.edges().forEach(function(n){const r=e.edge(n);i.log$1.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),i.log$1.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let s=n.v,o=n.w;if(i.log$1.warn("Fix XXX",a,"ids:",n.v,n.w,"Translating: ",a[n.v]," --- ",a[n.w]),a[n.v]&&a[n.w]&&a[n.v]===a[n.w]){i.log$1.warn("Fixing and trixing link to self - removing XXX",n.v,n.w,n.name),i.log$1.warn("Fixing and trixing - removing XXX",n.v,n.w,n.name),s=S(n.v),o=S(n.w),e.removeEdge(n.v,n.w,n.name);const f=n.w+"---"+n.v;e.setNode(f,{domId:f,id:f,labelStyle:"",labelText:r.label,padding:0,shape:"labelRect",style:""});const g=structuredClone(r),d=structuredClone(r);g.label="",g.arrowTypeEnd="none",d.label="",g.fromCluster=n.v,d.toCluster=n.v,e.setEdge(s,f,g,n.name+"-cyclic-special"),e.setEdge(f,o,d,n.name+"-cyclic-special")}else if(a[n.v]||a[n.w]){if(i.log$1.warn("Fixing and trixing - removing XXX",n.v,n.w,n.name),s=S(n.v),o=S(n.w),e.removeEdge(n.v,n.w,n.name),s!==n.v){const f=e.parent(s);a[f].externalConnections=!0,r.fromCluster=n.v}if(o!==n.w){const f=e.parent(o);a[f].externalConnections=!0,r.toCluster=n.w}i.log$1.warn("Fix Replacing with XXX",s,o,n.name),e.setEdge(s,o,r,n.name)}}),i.log$1.warn("Adjusted Graph",x(e)),T(e,0),i.log$1.trace(a)},T=(e,t)=>{if(i.log$1.warn("extractor - ",t,x(e),e.children("D")),t>10){i.log$1.error("Bailing out");return}let n=e.nodes(),r=!1;for(const s of n){const o=e.children(s);r=r||o.length>0}if(!r){i.log$1.debug("Done, no node has children",e.nodes());return}i.log$1.debug("Nodes = ",n,t);for(const s of n)if(i.log$1.debug("Extracting node",s,a,a[s]&&!a[s].externalConnections,!e.parent(s),e.node(s),e.children("D")," Depth ",t),!a[s])i.log$1.debug("Not a cluster",s,t);else if(!a[s].externalConnections&&e.children(s)&&e.children(s).length>0){i.log$1.warn("Cluster without external connections, without a parent and with children",s,t);let f=e.graph().rankdir==="TB"?"LR":"TB";a[s]&&a[s].clusterData&&a[s].clusterData.dir&&(f=a[s].clusterData.dir,i.log$1.warn("Fixing dir",a[s].clusterData.dir,f));const g=new k.Graph({multigraph:!0,compound:!0}).setGraph({rankdir:f,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});i.log$1.warn("Old graph before copy",x(e)),B(s,e,g,s),e.setNode(s,{clusterNode:!0,id:s,clusterData:a[s].clusterData,labelText:a[s].labelText,graph:g}),i.log$1.warn("New graph after copy node: (",s,")",x(g)),i.log$1.debug("Old graph after copy",x(e))}else i.log$1.warn("Cluster ** ",s," **not meeting the criteria !externalConnections:",!a[s].externalConnections," no parent: ",!e.parent(s)," children ",e.children(s)&&e.children(s).length>0,e.children("D"),t),i.log$1.debug(a);n=e.nodes(),i.log$1.warn("New list of nodes",n);for(const s of n){const o=e.node(s);i.log$1.warn(" Now next level",s,o),o.clusterNode&&T(o.graph,t+1)}},O=(e,t)=>{if(t.length===0)return[];let n=Object.assign(t);return t.forEach(r=>{const s=e.children(r),o=O(e,s);n=[...n,...o]}),n},A=e=>O(e,e.children()),H=(e,t)=>{i.log$1.info("Creating subgraph rect for ",t.id,t);const n=i.getConfig(),r=e.insert("g").attr("class","cluster"+(t.class?" "+t.class:"")).attr("id",t.id),s=r.insert("rect",":first-child"),o=i.evaluate(n.flowchart.htmlLabels),f=r.insert("g").attr("class","cluster-label"),g=t.labelType==="markdown"?j.createText(f,t.labelText,{style:t.labelStyle,useHtmlLabels:o}):f.node().appendChild(u.createLabel$1(t.labelText,t.labelStyle,void 0,!0));let d=g.getBBox();if(i.evaluate(n.flowchart.htmlLabels)){const l=g.children[0],c=i.select(g);d=l.getBoundingClientRect(),c.attr("width",d.width),c.attr("height",d.height)}const h=0*t.padding,$=h/2,y=t.width<=d.width+h?d.width+h:t.width;t.width<=d.width+h?t.diff=(d.width-t.width)/2-t.padding/2:t.diff=-t.padding/2,i.log$1.trace("Data ",t,JSON.stringify(t)),s.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-y/2).attr("y",t.y-t.height/2-$).attr("width",y).attr("height",t.height+h);const{subGraphTitleTopMargin:N}=u.getSubGraphTitleMargins(n);o?f.attr("transform",`translate(${t.x-d.width/2}, ${t.y-t.height/2+N})`):f.attr("transform",`translate(${t.x}, ${t.y-t.height/2+N})`);const b=s.node().getBBox();return t.width=b.width,t.height=b.height,t.intersect=function(l){return u.intersectRect$1(t,l)},r},V=(e,t)=>{const n=e.insert("g").attr("class","note-cluster").attr("id",t.id),r=n.insert("rect",":first-child"),s=0*t.padding,o=s/2;r.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-o).attr("y",t.y-t.height/2-o).attr("width",t.width+s).attr("height",t.height+s).attr("fill","none");const f=r.node().getBBox();return t.width=f.width,t.height=f.height,t.intersect=function(g){return u.intersectRect$1(t,g)},n},z=(e,t)=>{const n=i.getConfig(),r=e.insert("g").attr("class",t.classes).attr("id",t.id),s=r.insert("rect",":first-child"),o=r.insert("g").attr("class","cluster-label"),f=r.append("rect"),g=o.node().appendChild(u.createLabel$1(t.labelText,t.labelStyle,void 0,!0));let d=g.getBBox();if(i.evaluate(n.flowchart.htmlLabels)){const l=g.children[0],c=i.select(g);d=l.getBoundingClientRect(),c.attr("width",d.width),c.attr("height",d.height)}d=g.getBBox();const h=0*t.padding,$=h/2,y=t.width<=d.width+t.padding?d.width+t.padding:t.width;t.width<=d.width+t.padding?t.diff=(d.width+t.padding*0-t.width)/2:t.diff=-t.padding/2,s.attr("class","outer").attr("x",t.x-y/2-$).attr("y",t.y-t.height/2-$).attr("width",y+h).attr("height",t.height+h),f.attr("class","inner").attr("x",t.x-y/2-$).attr("y",t.y-t.height/2-$+d.height-1).attr("width",y+h).attr("height",t.height+h-d.height-3);const{subGraphTitleTopMargin:N}=u.getSubGraphTitleMargins(n);o.attr("transform",`translate(${t.x-d.width/2}, ${t.y-t.height/2-t.padding/3+(i.evaluate(n.flowchart.htmlLabels)?5:3)+N})`);const b=s.node().getBBox();return t.height=b.height,t.intersect=function(l){return u.intersectRect$1(t,l)},r},W=(e,t)=>{const n=e.insert("g").attr("class",t.classes).attr("id",t.id),r=n.insert("rect",":first-child"),s=0*t.padding,o=s/2;r.attr("class","divider").attr("x",t.x-t.width/2-o).attr("y",t.y-t.height/2).attr("width",t.width+s).attr("height",t.height+s);const f=r.node().getBBox();return t.width=f.width,t.height=f.height,t.diff=-t.padding/2,t.intersect=function(g){return u.intersectRect$1(t,g)},n},K={rect:H,roundedWithTitle:z,noteGroup:V,divider:W};let R={};const Q=(e,t)=>{i.log$1.trace("Inserting cluster");const n=t.shape||"rect";R[t.id]=K[n](e,t)},Y=()=>{R={}},L=async(e,t,n,r,s,o)=>{i.log$1.info("Graph in recursive render: XXX",x(t),s);const f=t.graph().rankdir;i.log$1.trace("Dir in recursive render - dir:",f);const g=e.insert("g").attr("class","root");t.nodes()?i.log$1.info("Recursive render XXX",t.nodes()):i.log$1.info("No nodes found for",t),t.edges().length>0&&i.log$1.trace("Recursive edges",t.edge(t.edges()[0]));const d=g.insert("g").attr("class","clusters"),h=g.insert("g").attr("class","edgePaths"),$=g.insert("g").attr("class","edgeLabels"),y=g.insert("g").attr("class","nodes");await Promise.all(t.nodes().map(async function(l){const c=t.node(l);if(s!==void 0){const v=JSON.parse(JSON.stringify(s.clusterData));i.log$1.info("Setting data for cluster XXX (",l,") ",v,s),t.setNode(s.id,v),t.parent(l)||(i.log$1.trace("Setting parent",l,s.id),t.setParent(l,s.id,v))}if(i.log$1.info("(Insert) Node XXX"+l+": "+JSON.stringify(t.node(l))),c&&c.clusterNode){i.log$1.info("Cluster identified",l,c.width,t.node(l));const v=await L(y,c.graph,n,r,t.node(l),o),E=v.elem;u.updateNodeBounds(c,E),c.diff=v.diff||0,i.log$1.info("Node bounds (abc123)",l,c,c.width,c.x,c.y),u.setNodeElem(E,c),i.log$1.warn("Recursive render complete ",E,c)}else t.children(l).length>0?(i.log$1.info("Cluster - the non recursive path XXX",l,c.id,c,t),i.log$1.info(C(c.id,t)),a[c.id]={id:C(c.id,t),node:c}):(i.log$1.info("Node - the non recursive path",l,c.id,c),await u.insertNode(y,t.node(l),f))})),t.edges().forEach(function(l){const c=t.edge(l.v,l.w,l.name);i.log$1.info("Edge "+l.v+" -> "+l.w+": "+JSON.stringify(l)),i.log$1.info("Edge "+l.v+" -> "+l.w+": ",l," ",JSON.stringify(t.edge(l))),i.log$1.info("Fix",a,"ids:",l.v,l.w,"Translating: ",a[l.v],a[l.w]),u.insertEdgeLabel($,c)}),t.edges().forEach(function(l){i.log$1.info("Edge "+l.v+" -> "+l.w+": "+JSON.stringify(l))}),i.log$1.info("#############################################"),i.log$1.info("### Layout ###"),i.log$1.info("#############################################"),i.log$1.info(t),J.layout(t),i.log$1.info("Graph after layout:",x(t));let N=0;const{subGraphTitleTotalMargin:b}=u.getSubGraphTitleMargins(o);return A(t).forEach(function(l){const c=t.node(l);i.log$1.info("Position "+l+": "+JSON.stringify(t.node(l))),i.log$1.info("Position "+l+": ("+c.x,","+c.y,") width: ",c.width," height: ",c.height),c&&c.clusterNode?(c.y+=b,u.positionNode(c)):t.children(l).length>0?(c.height+=b,Q(d,c),a[c.id].node=c):(c.y+=b/2,u.positionNode(c))}),t.edges().forEach(function(l){const c=t.edge(l);i.log$1.info("Edge "+l.v+" -> "+l.w+": "+JSON.stringify(c),c),c.points.forEach(E=>E.y+=b/2);const v=u.insertEdge(h,l,c,a,n,t,r);u.positionEdgeLabel(c,v)}),t.nodes().forEach(function(l){const c=t.node(l);i.log$1.info(l,c.type,c.diff),c.type==="group"&&(N=c.diff)}),{elem:g,diff:N}},Z=async(e,t,n,r,s)=>{u.insertMarkers$1(e,n,r,s),u.clear$1(),u.clear(),Y(),q(),i.log$1.warn("Graph at first:",JSON.stringify(x(t))),U(t),i.log$1.warn("Graph after:",JSON.stringify(x(t)));const o=i.getConfig();await L(e,t,r,s,void 0,o)};exports.render=Z;
|
|
1
|
+
"use strict";const P=require("lodash-es"),J=require("./layers.Cyzu9PKQ.js"),k=require("./layers.BLd2spTm.js"),u=require("./layers.XdKgLPlD.js"),i=require("./layers.C_r2XVbG.js"),j=require("./layers.CJxbnLgP.js");function G(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const m=G(P);function x(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:M(e),edges:F(e)};return m.isUndefined(e.graph())||(t.value=m.clone(e.graph())),t}function M(e){return m.map(e.nodes(),function(t){var n=e.node(t),r=e.parent(t),s={v:t};return m.isUndefined(n)||(s.value=n),m.isUndefined(r)||(s.parent=r),s})}function F(e){return m.map(e.edges(),function(t){var n=e.edge(t),r={v:t.v,w:t.w};return m.isUndefined(t.name)||(r.name=t.name),m.isUndefined(n)||(r.value=n),r})}let a={},w={},p={};const q=()=>{w={},p={},a={}},X=(e,t)=>(i.log$1.trace("In isDescendant",t," ",e," = ",w[t].includes(e)),!!w[t].includes(e)),_=(e,t)=>(i.log$1.info("Descendants of ",t," is ",w[t]),i.log$1.info("Edge is ",e),e.v===t||e.w===t?!1:w[t]?w[t].includes(e.v)||X(e.v,t)||X(e.w,t)||w[t].includes(e.w):(i.log$1.debug("Tilt, ",t,",not in descendants"),!1)),B=(e,t,n,r)=>{i.log$1.warn("Copying children of ",e,"root",r,"data",t.node(e),r);const s=t.children(e)||[];e!==r&&s.push(e),i.log$1.warn("Copying (nodes) clusterId",e,"nodes",s),s.forEach(o=>{if(t.children(o).length>0)B(o,t,n,r);else{const f=t.node(o);i.log$1.info("cp ",o," to ",r," with parent ",e),n.setNode(o,f),r!==t.parent(o)&&(i.log$1.warn("Setting parent",o,t.parent(o)),n.setParent(o,t.parent(o))),e!==r&&o!==e?(i.log$1.debug("Setting parent",o,e),n.setParent(o,e)):(i.log$1.info("In copy ",e,"root",r,"data",t.node(e),r),i.log$1.debug("Not Setting parent for node=",o,"cluster!==rootId",e!==r,"node!==clusterId",o!==e));const g=t.edges(o);i.log$1.debug("Copying Edges",g),g.forEach(d=>{i.log$1.info("Edge",d);const h=t.edge(d.v,d.w,d.name);i.log$1.info("Edge data",h,r);try{_(d,r)?(i.log$1.info("Copying as ",d.v,d.w,h,d.name),n.setEdge(d.v,d.w,h,d.name),i.log$1.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):i.log$1.info("Skipping copy of edge ",d.v,"-->",d.w," rootId: ",r," clusterId:",e)}catch($){i.log$1.error($)}})}i.log$1.debug("Removing node",o),t.removeNode(o)})},D=(e,t)=>{const n=t.children(e);let r=[...n];for(const s of n)p[s]=e,r=[...r,...D(s,t)];return r},C=(e,t)=>{i.log$1.trace("Searching",e);const n=t.children(e);if(i.log$1.trace("Searching children of id ",e,n),n.length<1)return i.log$1.trace("This is a valid node",e),e;for(const r of n){const s=C(r,t);if(s)return i.log$1.trace("Found replacement for",e," => ",s),s}},S=e=>!a[e]||!a[e].externalConnections?e:a[e]?a[e].id:e,U=(e,t)=>{if(!e||t>10){i.log$1.debug("Opting out, no graph ");return}else i.log$1.debug("Opting in, graph ");e.nodes().forEach(function(n){e.children(n).length>0&&(i.log$1.warn("Cluster identified",n," Replacement id in edges: ",C(n,e)),w[n]=D(n,e),a[n]={id:C(n,e),clusterData:e.node(n)})}),e.nodes().forEach(function(n){const r=e.children(n),s=e.edges();r.length>0?(i.log$1.debug("Cluster identified",n,w),s.forEach(o=>{if(o.v!==n&&o.w!==n){const f=X(o.v,n),g=X(o.w,n);f^g&&(i.log$1.warn("Edge: ",o," leaves cluster ",n),i.log$1.warn("Descendants of XXX ",n,": ",w[n]),a[n].externalConnections=!0)}})):i.log$1.debug("Not a cluster ",n,w)});for(let n of Object.keys(a)){const r=a[n].id,s=e.parent(r);s!==n&&a[s]&&!a[s].externalConnections&&(a[n].id=s)}e.edges().forEach(function(n){const r=e.edge(n);i.log$1.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),i.log$1.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let s=n.v,o=n.w;if(i.log$1.warn("Fix XXX",a,"ids:",n.v,n.w,"Translating: ",a[n.v]," --- ",a[n.w]),a[n.v]&&a[n.w]&&a[n.v]===a[n.w]){i.log$1.warn("Fixing and trixing link to self - removing XXX",n.v,n.w,n.name),i.log$1.warn("Fixing and trixing - removing XXX",n.v,n.w,n.name),s=S(n.v),o=S(n.w),e.removeEdge(n.v,n.w,n.name);const f=n.w+"---"+n.v;e.setNode(f,{domId:f,id:f,labelStyle:"",labelText:r.label,padding:0,shape:"labelRect",style:""});const g=structuredClone(r),d=structuredClone(r);g.label="",g.arrowTypeEnd="none",d.label="",g.fromCluster=n.v,d.toCluster=n.v,e.setEdge(s,f,g,n.name+"-cyclic-special"),e.setEdge(f,o,d,n.name+"-cyclic-special")}else if(a[n.v]||a[n.w]){if(i.log$1.warn("Fixing and trixing - removing XXX",n.v,n.w,n.name),s=S(n.v),o=S(n.w),e.removeEdge(n.v,n.w,n.name),s!==n.v){const f=e.parent(s);a[f].externalConnections=!0,r.fromCluster=n.v}if(o!==n.w){const f=e.parent(o);a[f].externalConnections=!0,r.toCluster=n.w}i.log$1.warn("Fix Replacing with XXX",s,o,n.name),e.setEdge(s,o,r,n.name)}}),i.log$1.warn("Adjusted Graph",x(e)),T(e,0),i.log$1.trace(a)},T=(e,t)=>{if(i.log$1.warn("extractor - ",t,x(e),e.children("D")),t>10){i.log$1.error("Bailing out");return}let n=e.nodes(),r=!1;for(const s of n){const o=e.children(s);r=r||o.length>0}if(!r){i.log$1.debug("Done, no node has children",e.nodes());return}i.log$1.debug("Nodes = ",n,t);for(const s of n)if(i.log$1.debug("Extracting node",s,a,a[s]&&!a[s].externalConnections,!e.parent(s),e.node(s),e.children("D")," Depth ",t),!a[s])i.log$1.debug("Not a cluster",s,t);else if(!a[s].externalConnections&&e.children(s)&&e.children(s).length>0){i.log$1.warn("Cluster without external connections, without a parent and with children",s,t);let f=e.graph().rankdir==="TB"?"LR":"TB";a[s]&&a[s].clusterData&&a[s].clusterData.dir&&(f=a[s].clusterData.dir,i.log$1.warn("Fixing dir",a[s].clusterData.dir,f));const g=new k.Graph({multigraph:!0,compound:!0}).setGraph({rankdir:f,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});i.log$1.warn("Old graph before copy",x(e)),B(s,e,g,s),e.setNode(s,{clusterNode:!0,id:s,clusterData:a[s].clusterData,labelText:a[s].labelText,graph:g}),i.log$1.warn("New graph after copy node: (",s,")",x(g)),i.log$1.debug("Old graph after copy",x(e))}else i.log$1.warn("Cluster ** ",s," **not meeting the criteria !externalConnections:",!a[s].externalConnections," no parent: ",!e.parent(s)," children ",e.children(s)&&e.children(s).length>0,e.children("D"),t),i.log$1.debug(a);n=e.nodes(),i.log$1.warn("New list of nodes",n);for(const s of n){const o=e.node(s);i.log$1.warn(" Now next level",s,o),o.clusterNode&&T(o.graph,t+1)}},O=(e,t)=>{if(t.length===0)return[];let n=Object.assign(t);return t.forEach(r=>{const s=e.children(r),o=O(e,s);n=[...n,...o]}),n},A=e=>O(e,e.children()),H=(e,t)=>{i.log$1.info("Creating subgraph rect for ",t.id,t);const n=i.getConfig(),r=e.insert("g").attr("class","cluster"+(t.class?" "+t.class:"")).attr("id",t.id),s=r.insert("rect",":first-child"),o=i.evaluate(n.flowchart.htmlLabels),f=r.insert("g").attr("class","cluster-label"),g=t.labelType==="markdown"?j.createText(f,t.labelText,{style:t.labelStyle,useHtmlLabels:o}):f.node().appendChild(u.createLabel$1(t.labelText,t.labelStyle,void 0,!0));let d=g.getBBox();if(i.evaluate(n.flowchart.htmlLabels)){const l=g.children[0],c=i.select(g);d=l.getBoundingClientRect(),c.attr("width",d.width),c.attr("height",d.height)}const h=0*t.padding,$=h/2,y=t.width<=d.width+h?d.width+h:t.width;t.width<=d.width+h?t.diff=(d.width-t.width)/2-t.padding/2:t.diff=-t.padding/2,i.log$1.trace("Data ",t,JSON.stringify(t)),s.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-y/2).attr("y",t.y-t.height/2-$).attr("width",y).attr("height",t.height+h);const{subGraphTitleTopMargin:N}=u.getSubGraphTitleMargins(n);o?f.attr("transform",`translate(${t.x-d.width/2}, ${t.y-t.height/2+N})`):f.attr("transform",`translate(${t.x}, ${t.y-t.height/2+N})`);const b=s.node().getBBox();return t.width=b.width,t.height=b.height,t.intersect=function(l){return u.intersectRect$1(t,l)},r},V=(e,t)=>{const n=e.insert("g").attr("class","note-cluster").attr("id",t.id),r=n.insert("rect",":first-child"),s=0*t.padding,o=s/2;r.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-o).attr("y",t.y-t.height/2-o).attr("width",t.width+s).attr("height",t.height+s).attr("fill","none");const f=r.node().getBBox();return t.width=f.width,t.height=f.height,t.intersect=function(g){return u.intersectRect$1(t,g)},n},z=(e,t)=>{const n=i.getConfig(),r=e.insert("g").attr("class",t.classes).attr("id",t.id),s=r.insert("rect",":first-child"),o=r.insert("g").attr("class","cluster-label"),f=r.append("rect"),g=o.node().appendChild(u.createLabel$1(t.labelText,t.labelStyle,void 0,!0));let d=g.getBBox();if(i.evaluate(n.flowchart.htmlLabels)){const l=g.children[0],c=i.select(g);d=l.getBoundingClientRect(),c.attr("width",d.width),c.attr("height",d.height)}d=g.getBBox();const h=0*t.padding,$=h/2,y=t.width<=d.width+t.padding?d.width+t.padding:t.width;t.width<=d.width+t.padding?t.diff=(d.width+t.padding*0-t.width)/2:t.diff=-t.padding/2,s.attr("class","outer").attr("x",t.x-y/2-$).attr("y",t.y-t.height/2-$).attr("width",y+h).attr("height",t.height+h),f.attr("class","inner").attr("x",t.x-y/2-$).attr("y",t.y-t.height/2-$+d.height-1).attr("width",y+h).attr("height",t.height+h-d.height-3);const{subGraphTitleTopMargin:N}=u.getSubGraphTitleMargins(n);o.attr("transform",`translate(${t.x-d.width/2}, ${t.y-t.height/2-t.padding/3+(i.evaluate(n.flowchart.htmlLabels)?5:3)+N})`);const b=s.node().getBBox();return t.height=b.height,t.intersect=function(l){return u.intersectRect$1(t,l)},r},W=(e,t)=>{const n=e.insert("g").attr("class",t.classes).attr("id",t.id),r=n.insert("rect",":first-child"),s=0*t.padding,o=s/2;r.attr("class","divider").attr("x",t.x-t.width/2-o).attr("y",t.y-t.height/2).attr("width",t.width+s).attr("height",t.height+s);const f=r.node().getBBox();return t.width=f.width,t.height=f.height,t.diff=-t.padding/2,t.intersect=function(g){return u.intersectRect$1(t,g)},n},K={rect:H,roundedWithTitle:z,noteGroup:V,divider:W};let R={};const Q=(e,t)=>{i.log$1.trace("Inserting cluster");const n=t.shape||"rect";R[t.id]=K[n](e,t)},Y=()=>{R={}},L=async(e,t,n,r,s,o)=>{i.log$1.info("Graph in recursive render: XXX",x(t),s);const f=t.graph().rankdir;i.log$1.trace("Dir in recursive render - dir:",f);const g=e.insert("g").attr("class","root");t.nodes()?i.log$1.info("Recursive render XXX",t.nodes()):i.log$1.info("No nodes found for",t),t.edges().length>0&&i.log$1.trace("Recursive edges",t.edge(t.edges()[0]));const d=g.insert("g").attr("class","clusters"),h=g.insert("g").attr("class","edgePaths"),$=g.insert("g").attr("class","edgeLabels"),y=g.insert("g").attr("class","nodes");await Promise.all(t.nodes().map(async function(l){const c=t.node(l);if(s!==void 0){const v=JSON.parse(JSON.stringify(s.clusterData));i.log$1.info("Setting data for cluster XXX (",l,") ",v,s),t.setNode(s.id,v),t.parent(l)||(i.log$1.trace("Setting parent",l,s.id),t.setParent(l,s.id,v))}if(i.log$1.info("(Insert) Node XXX"+l+": "+JSON.stringify(t.node(l))),c&&c.clusterNode){i.log$1.info("Cluster identified",l,c.width,t.node(l));const v=await L(y,c.graph,n,r,t.node(l),o),E=v.elem;u.updateNodeBounds(c,E),c.diff=v.diff||0,i.log$1.info("Node bounds (abc123)",l,c,c.width,c.x,c.y),u.setNodeElem(E,c),i.log$1.warn("Recursive render complete ",E,c)}else t.children(l).length>0?(i.log$1.info("Cluster - the non recursive path XXX",l,c.id,c,t),i.log$1.info(C(c.id,t)),a[c.id]={id:C(c.id,t),node:c}):(i.log$1.info("Node - the non recursive path",l,c.id,c),await u.insertNode(y,t.node(l),f))})),t.edges().forEach(function(l){const c=t.edge(l.v,l.w,l.name);i.log$1.info("Edge "+l.v+" -> "+l.w+": "+JSON.stringify(l)),i.log$1.info("Edge "+l.v+" -> "+l.w+": ",l," ",JSON.stringify(t.edge(l))),i.log$1.info("Fix",a,"ids:",l.v,l.w,"Translating: ",a[l.v],a[l.w]),u.insertEdgeLabel($,c)}),t.edges().forEach(function(l){i.log$1.info("Edge "+l.v+" -> "+l.w+": "+JSON.stringify(l))}),i.log$1.info("#############################################"),i.log$1.info("### Layout ###"),i.log$1.info("#############################################"),i.log$1.info(t),J.layout(t),i.log$1.info("Graph after layout:",x(t));let N=0;const{subGraphTitleTotalMargin:b}=u.getSubGraphTitleMargins(o);return A(t).forEach(function(l){const c=t.node(l);i.log$1.info("Position "+l+": "+JSON.stringify(t.node(l))),i.log$1.info("Position "+l+": ("+c.x,","+c.y,") width: ",c.width," height: ",c.height),c&&c.clusterNode?(c.y+=b,u.positionNode(c)):t.children(l).length>0?(c.height+=b,Q(d,c),a[c.id].node=c):(c.y+=b/2,u.positionNode(c))}),t.edges().forEach(function(l){const c=t.edge(l);i.log$1.info("Edge "+l.v+" -> "+l.w+": "+JSON.stringify(c),c),c.points.forEach(E=>E.y+=b/2);const v=u.insertEdge(h,l,c,a,n,t,r);u.positionEdgeLabel(c,v)}),t.nodes().forEach(function(l){const c=t.node(l);i.log$1.info(l,c.type,c.diff),c.type==="group"&&(N=c.diff)}),{elem:g,diff:N}},Z=async(e,t,n,r,s)=>{u.insertMarkers$1(e,n,r,s),u.clear$1(),u.clear(),Y(),q(),i.log$1.warn("Graph at first:",JSON.stringify(x(t))),U(t),i.log$1.warn("Graph after:",JSON.stringify(x(t)));const o=i.getConfig();await L(e,t,r,s,void 0,o)};exports.render=Z;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("@lexical/react/LexicalComposerContext"),a=require("./layers.B8Bwu93Z.js"),e=require("./layers.CmmYt3Ou.js");function o(){const[r]=i.useLexicalComposerContext();return a.useExcalidrawBehaviour(r),null}exports.$createExcalidrawNode=a.$createExcalidrawNode;exports.$isExcalidrawNode=a.$isExcalidrawNode;exports.ExcalidrawNode=a.ExcalidrawNode;exports.INSERT_EXCALIDRAW_COMMAND=a.INSERT_EXCALIDRAW_COMMAND;exports.languageToLocaleMap=e.languageToLocaleMap;exports.parseExcalidrawData=e.parseExcalidrawData;exports.ExcalidrawPlugin=o;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./layers.
|
|
1
|
+
import "./layers.BP7jzC4b.js";
|
|
2
2
|
var u = { paste: "Ielīmēt", pasteAsPlaintext: "Ielīmēt kā vienkāršu tekstu", pasteCharts: "Ielīmēt grafikus", selectAll: "Atlasīt visu", multiSelect: "Pievienot elementu atlasei", moveCanvas: "Pārvietot tāfeli", cut: "Izgriezt", copy: "Kopēt", copyAsPng: "Kopēt starpliktuvē kā PNG", copyAsSvg: "Kopēt starpliktuvē kā SVG", copyText: "Kopēt starpliktuvē kā tekstu", copySource: "", convertToCode: "", bringForward: "Pārvietot vienu slāni augstāk", sendToBack: "Pārvietot uz zemāko slāni", bringToFront: "Pārvietot uz virsējo slāni", sendBackward: "Pārvietot par vienu slāni zemāk", delete: "Dzēst", copyStyles: "Kopēt stilus", pasteStyles: "Ielīmēt stilus", stroke: "Svītras krāsa", background: "Fona krāsa", fill: "Aizpildījums", strokeWidth: "Svītras platums", strokeStyle: "Svītras stils", strokeStyle_solid: "Vienlaidu", strokeStyle_dashed: "Raustīta līnija", strokeStyle_dotted: "Punktota līnija", sloppiness: "Precizitāte", opacity: "Necaurspīdīgums", textAlign: "Teksta līdzināšana", edges: "Malas", sharp: "Asas", round: "Apaļas", arrowheads: "Bultas", arrowhead_none: "Nekādas", arrowhead_arrow: "Bulta", arrowhead_bar: "Svītra", arrowhead_circle: "", arrowhead_circle_outline: "", arrowhead_triangle: "Trijstūris", arrowhead_triangle_outline: "", arrowhead_diamond: "", arrowhead_diamond_outline: "", fontSize: "Teksta lielums", fontFamily: "Fontu saime", addWatermark: 'Pievienot "Radīts ar Excalidraw"', handDrawn: "Rokraksts", normal: "Parasts", code: "Kods", small: "Mazs", medium: "Vidējs", large: "Liels", veryLarge: "Ļoti liels", solid: "Pilns", hachure: "Svītrots", zigzag: "Zigzaglīnija", crossHatch: "Šķērssvītrots", thin: "Šaurs", bold: "Trekns", left: "Pa kreisi", center: "Vidū", right: "Pa labi", extraBold: "Īpaši trekns", architect: "Arhitekts", artist: "Mākslinieks", cartoonist: "Karikatūrists", fileTitle: "Datnes nosaukums", colorPicker: "Krāsu atlasītājs", canvasColors: "Izmantots tāfelei", canvasBackground: "Ainas fons", drawingCanvas: "Tāfele", layers: "Slāņi", actions: "Darbības", language: "Valoda", liveCollaboration: "Sadarbība tiešsaistē...", duplicateSelection: "Izveidot kopiju", untitled: "Bez nosaukuma", name: "Vārds", yourName: "Jūsu vārds", madeWithExcalidraw: "Radīts ar Excalidraw", group: "Grupēt atlasīto", ungroup: "Atgrupēt atlasīto", collaborators: "Dalībnieki", showGrid: "Rādīt režģi", addToLibrary: "Pievienot bibliotēkai", removeFromLibrary: "Izņemt no bibliotēkas", libraryLoadingMessage: "Ielādē bibliotēku…", libraries: "Apskatīt bibliotēkas", loadingScene: "Ielādē ainu…", align: "Līdzināt", alignTop: "Līdzināt augšpusē", alignBottom: "Līdzināt lejā", alignLeft: "Līdzināt pa kreisi", alignRight: "Līdzināt pa labi", centerVertically: "Centrēt vertikāli", centerHorizontally: "Centrēt horizontāli", distributeHorizontally: "Izdalīt horizontāli", distributeVertically: "Izdalīt vertikāli", flipHorizontal: "Apmest horizontāli", flipVertical: "Apmest vertikāli", viewMode: "Skata režīms", share: "Kopīgot", showStroke: "Rādīt svītras krāsas atlasītāju", showBackground: "Rādīt fona krāsas atlasītāju", toggleTheme: "Pārslēgt krāsu tēmu", personalLib: "Personīgā bibliotēka", excalidrawLib: "Excalidraw bibliotēka", decreaseFontSize: "Samazināt fonta izmēru", increaseFontSize: "Palielināt fonta izmēru", unbindText: "Atdalīt tekstu", bindText: "Piesaistīt tekstu figūrai", createContainerFromText: "Ietilpināt tekstu figurā", link: { edit: "Rediģēt saiti", editEmbed: "", create: "Izveidot saiti", createEmbed: "", label: "Saite", labelEmbed: "", empty: "" }, lineEditor: { edit: "Rediģēt līniju", exit: "Aizvērt līnijas redaktoru" }, elementLock: { lock: "Fiksēt", unlock: "Atbrīvot", lockAll: "Fiksēt visu", unlockAll: "Atbrīvot visu" }, statusPublished: "Publicēts", sidebarLock: "Paturēt atvērtu sānjoslu", selectAllElementsInFrame: "", removeAllElementsFromFrame: "", eyeDropper: "", textToDiagram: "", prompt: "" }, a = { noItems: "Neviena vienība vēl nav pievienota...", hint_emptyLibrary: "Atlasiet objektu tāfelē, lai to šeit pievienotu, vai pievienojiet publisku bibliotēku zemāk.", hint_emptyPrivateLibrary: "Atlasiet objektu tāfelē, lai to šeit pievienotu." }, t = { clearReset: "Atiestatīt tāfeli", exportJSON: "Eksportēt kā failu", exportImage: "Eksportēt attēlu...", export: "Saglabāt uz...", copyToClipboard: "Kopēt starpliktuvē", save: "Saglabāt pašreizējo datni", saveAs: "Saglabāt kā", load: "Atvērt", getShareableLink: "Iegūt kopīgošanas saiti", close: "Aizvērt", selectLanguage: "Izvēlieties valodu", scrollBackToContent: "Atgriezties pie satura", zoomIn: "Tuvināt", zoomOut: "Tālināt", resetZoom: "Atiestatīt tuvinājumu", menu: "Izvēlne", done: "Gatavs", edit: "Rediģēt", undo: "Atsaukt", redo: "Atcelt atsaukšanu", resetLibrary: "Atiestatīt bibliotēku", createNewRoom: "Izveidot jaunu telpu", fullScreen: "Pilnekrāna režīms", darkMode: "Tumšais režīms", lightMode: "Gaišais režīms", zenMode: "Zen režīms", objectsSnapMode: "", exitZenMode: "Pamest Zen režīmu", cancel: "Atcelt", clear: "Notīrīt", remove: "Noņemt", embed: "", publishLibrary: "Publicēt", submit: "Iesniegt", confirm: "Apstiprināt", embeddableInteractionButton: "" }, e = { clearReset: "Šī funkcija notīrīs visu tāfeli. Vai turpināt?", couldNotCreateShareableLink: "Nevarēja izveidot kopīgojamo saiti.", couldNotCreateShareableLinkTooBig: "Nevarēja izveidot kopīgojamo saiti – aina ir par lielu", couldNotLoadInvalidFile: "Nevarēja ielādēt nederīgu datni", importBackendFailed: "Ielāde no krātuves neizdevās.", cannotExportEmptyCanvas: "Nevar eksportēt tukšu tāfeli.", couldNotCopyToClipboard: "Nevarēja nokopēt starpliktuvē.", decryptFailed: "Nevarēja atšifrēt datus.", uploadedSecurly: "Augšuplāde nodrošināta ar šifrēšanu no gala līdz galam, kas nozīmē, ka Excalidraw serveri un trešās puses nevar lasīt saturu.", loadSceneOverridePrompt: "Ārēja satura ielāde aizstās jūsu pašreizējo saturu. Vai vēlaties turpināt?", collabStopOverridePrompt: `Sesijas pārtraukšana pārrakstīs jūsu iepriekšējo zīmējumu, kas saglabāts jūsu pārlūkā. Vai turpināt?
|
|
3
3
|
|
|
4
4
|
(Ja vēlaties paturēt zīmējumu, kas saglabāts jūsu pārlūkā, vienkārši aizveriet pārlūka cilni.)`, errorAddingToLibrary: "Nevarēja pievienot vienumu bibliotēkai", errorRemovingFromLibrary: "Nevarēja izņemt vienumu no bibliotēkas", confirmAddLibrary: "Šī funkcija pievienos {{numShapes}} formu(-as) jūsu bibliotēkai. Vai turpināt?", imageDoesNotContainScene: "Šķiet, ka attēls nesatur ainas datus. Vai iespējojāt ainas iegulšanu, kad eksportējāt?", cannotRestoreFromImage: "Ainu nevarēja atgūt no attēla datnes", invalidSceneUrl: "Nevarēja importēt ainu no norādītā URL. Vai nu tas ir nederīgs, vai nesatur derīgus Excalidraw JSON datus.", resetLibrary: "Šī funkcija iztukšos bibliotēku. Vai turpināt?", removeItemsFromsLibrary: "Vai izņemt {{count}} vienumu(s) no bibliotēkas?", invalidEncryptionKey: "Šifrēšanas atslēgai jābūt 22 simbolus garai. Tiešsaistes sadarbība ir izslēgta.", collabOfflineWarning: `Nav pieejams interneta pieslēgums.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { g as Ce, s as Fe, a as Me, b as De, c as Te, d as oe, e as Pe, q as Ye, l as Ne, j as ke } from "./layers.CwgQHm6q.js";
|
|
2
2
|
import "lodash-es";
|
|
3
3
|
import { l as Ue } from "./layers.D4T8fTcj.js";
|
|
4
4
|
import { G as Be } from "./layers.BJDrjORS.js";
|
|
5
|
-
import "./layers.
|
|
5
|
+
import "./layers.BP7jzC4b.js";
|
|
6
6
|
import "lodash-es/memoize.js";
|
|
7
7
|
import "lodash-es/merge.js";
|
|
8
8
|
import "lodash-es/isEmpty.js";
|
|
9
|
-
import { l as Qe } from "./layers.
|
|
9
|
+
import { l as Qe } from "./layers.BVBUCv5V.js";
|
|
10
10
|
var ce = (function() {
|
|
11
11
|
var e = function(V, i, n, a) {
|
|
12
12
|
for (n = n || {}, a = V.length; a--; n[V[a]] = i)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./layers.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./layers.C_r2XVbG.js");require("./layers.DPja6zel.js");require("lodash-es/memoize.js");require("lodash-es/merge.js");require("lodash-es/isEmpty.js");const tt=require("./layers.HohTS9S9.js"),nt=require("./layers.B19hGmey.js"),st=require("./layers.9pNaFvaX.js"),R=require("./layers.DOrgOHBr.js");function rt(e,y){return y<e?-1:y>e?1:y>=e?0:NaN}function at(e){return e}function lt(){var e=at,y=rt,$=null,g=R.constant(0),d=R.constant(u.tau),E=R.constant(0);function f(a){var l,m=(a=st.array(a)).length,v,I,D=0,_=new Array(m),b=new Array(m),o=+g.apply(this,arguments),w=Math.min(u.tau,Math.max(-u.tau,d.apply(this,arguments)-o)),P,T=Math.min(Math.abs(w)/m,E.apply(this,arguments)),S=T*(w<0?-1:1),t;for(l=0;l<m;++l)(t=b[_[l]=l]=+e(a[l],l,a))>0&&(D+=t);for(y!=null?_.sort(function(i,n){return y(b[i],b[n])}):$!=null&&_.sort(function(i,n){return $(a[i],a[n])}),l=0,I=D?(w-m*S)/D:0;l<m;++l,o=P)v=_[l],t=b[v],P=o+(t>0?t*I:0)+S,b[v]={data:a[v],index:l,value:t,startAngle:o,endAngle:P,padAngle:T};return b}return f.value=function(a){return arguments.length?(e=typeof a=="function"?a:R.constant(+a),f):e},f.sortValues=function(a){return arguments.length?(y=a,$=null,f):y},f.sort=function(a){return arguments.length?($=a,y=null,f):$},f.startAngle=function(a){return arguments.length?(g=typeof a=="function"?a:R.constant(+a),f):g},f.endAngle=function(a){return arguments.length?(d=typeof a=="function"?a:R.constant(+a),f):d},f.padAngle=function(a){return arguments.length?(E=typeof a=="function"?a:R.constant(+a),f):E},f}var K=(function(){var e=function(S,t,i,n){for(i=i||{},n=S.length;n--;i[S[n]]=t);return i},y=[1,3],$=[1,4],g=[1,5],d=[1,6],E=[1,10,12,14,16,18,19,20,21,22],f=[2,4],a=[1,5,10,12,14,16,18,19,20,21,22],l=[20,21,22],m=[2,7],v=[1,12],I=[1,13],D=[1,14],_=[1,15],b=[1,16],o=[1,17],w={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,PIE:5,document:6,showData:7,line:8,statement:9,txt:10,value:11,title:12,title_value:13,acc_title:14,acc_title_value:15,acc_descr:16,acc_descr_value:17,acc_descr_multiline_value:18,section:19,NEWLINE:20,";":21,EOF:22,$accept:0,$end:1},terminals_:{2:"error",5:"PIE",7:"showData",10:"txt",11:"value",12:"title",13:"title_value",14:"acc_title",15:"acc_title_value",16:"acc_descr",17:"acc_descr_value",18:"acc_descr_multiline_value",19:"section",20:"NEWLINE",21:";",22:"EOF"},productions_:[0,[3,2],[3,2],[3,3],[6,0],[6,2],[8,2],[9,0],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[4,1],[4,1],[4,1]],performAction:function(t,i,n,r,c,s,V){var x=s.length-1;switch(c){case 3:r.setShowData(!0);break;case 6:this.$=s[x-1];break;case 8:r.addSection(s[x-1],r.cleanupValue(s[x]));break;case 9:this.$=s[x].trim(),r.setDiagramTitle(this.$);break;case 10:this.$=s[x].trim(),r.setAccTitle(this.$);break;case 11:case 12:this.$=s[x].trim(),r.setAccDescription(this.$);break;case 13:r.addSection(s[x].substr(8)),this.$=s[x].substr(8);break}},table:[{3:1,4:2,5:y,20:$,21:g,22:d},{1:[3]},{3:7,4:2,5:y,20:$,21:g,22:d},e(E,f,{6:8,7:[1,9]}),e(a,[2,14]),e(a,[2,15]),e(a,[2,16]),{1:[2,1]},e(l,m,{8:10,9:11,1:[2,2],10:v,12:I,14:D,16:_,18:b,19:o}),e(E,f,{6:18}),e(E,[2,5]),{4:19,20:$,21:g,22:d},{11:[1,20]},{13:[1,21]},{15:[1,22]},{17:[1,23]},e(l,[2,12]),e(l,[2,13]),e(l,m,{8:10,9:11,1:[2,3],10:v,12:I,14:D,16:_,18:b,19:o}),e(E,[2,6]),e(l,[2,8]),e(l,[2,9]),e(l,[2,10]),e(l,[2,11])],defaultActions:{7:[2,1]},parseError:function(t,i){if(i.recoverable)this.trace(t);else{var n=new Error(t);throw n.hash=i,n}},parse:function(t){var i=this,n=[0],r=[],c=[null],s=[],V=this.table,x="",p=0,N=0,z=2,j=1,B=s.slice.call(arguments,1),h=Object.create(this.lexer),L={yy:{}};for(var Y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Y)&&(L.yy[Y]=this.yy[Y]);h.setInput(t,L.yy),L.yy.lexer=h,L.yy.parser=this,typeof h.yylloc>"u"&&(h.yylloc={});var Z=h.yylloc;s.push(Z);var et=h.options&&h.options.ranges;typeof L.yy.parseError=="function"?this.parseError=L.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function it(){var O;return O=r.pop()||h.lex()||j,typeof O!="number"&&(O instanceof Array&&(r=O,O=r.pop()),O=i.symbols_[O]||O),O}for(var k,F,A,H,M={},W,C,X,q;;){if(F=n[n.length-1],this.defaultActions[F]?A=this.defaultActions[F]:((k===null||typeof k>"u")&&(k=it()),A=V[F]&&V[F][k]),typeof A>"u"||!A.length||!A[0]){var J="";q=[];for(W in V[F])this.terminals_[W]&&W>z&&q.push("'"+this.terminals_[W]+"'");h.showPosition?J="Parse error on line "+(p+1)+`:
|
|
2
2
|
`+h.showPosition()+`
|
|
3
3
|
Expecting `+q.join(", ")+", got '"+(this.terminals_[k]||k)+"'":J="Parse error on line "+(p+1)+": Unexpected "+(k==j?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(J,{text:h.match,token:this.terminals_[k]||k,line:h.yylineno,loc:Z,expected:q})}if(A[0]instanceof Array&&A.length>1)throw new Error("Parse Error: multiple actions possible at state: "+F+", token: "+k);switch(A[0]){case 1:n.push(k),c.push(h.yytext),s.push(h.yylloc),n.push(A[1]),k=null,N=h.yyleng,x=h.yytext,p=h.yylineno,Z=h.yylloc;break;case 2:if(C=this.productions_[A[1]][1],M.$=c[c.length-C],M._$={first_line:s[s.length-(C||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(C||1)].first_column,last_column:s[s.length-1].last_column},et&&(M._$.range=[s[s.length-(C||1)].range[0],s[s.length-1].range[1]]),H=this.performAction.apply(M,[x,N,p,L.yy,A[1],c,s].concat(B)),typeof H<"u")return H;C&&(n=n.slice(0,-1*C*2),c=c.slice(0,-1*C),s=s.slice(0,-1*C)),n.push(this.productions_[A[1]][0]),c.push(M.$),s.push(M._$),X=V[n[n.length-2]][n[n.length-1]],n.push(X);break;case 3:return!0}}return!0}},P=(function(){var S={EOF:1,parseError:function(i,n){if(this.yy.parser)this.yy.parser.parseError(i,n);else throw new Error(i)},setInput:function(t,i){return this.yy=i||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var i=t.match(/(?:\r\n?|\n).*/g);return i?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var i=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var c=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[c[0],c[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),i=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
|