@diagrammo/dgmo 0.55.0 → 0.57.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/advanced.d.ts +62 -2
- package/dist/advanced.js +190 -188
- package/dist/{analyzer-TDN5KJFP.js → analyzer-HQUXKZ5J.js} +3 -3
- package/dist/auto.css +24 -0
- package/dist/auto.js +155 -129
- package/dist/auto.mjs +1354 -729
- package/dist/block.css +24 -0
- package/dist/block.d.ts +12 -0
- package/dist/block.js +93 -63
- package/dist/{calculator-VBIT6GQF.js → calculator-BBKAAQGD.js} +3 -3
- package/dist/chart-meta.js +55 -55
- package/dist/charts-d3-Z6FOKUAL.js +29 -0
- package/dist/{chunk-IALX52TR.js → chunk-3D6LDLIH.js} +10 -10
- package/dist/{chunk-VVIRAGID.js → chunk-3G7BCZ4J.js} +20 -17
- package/dist/{chunk-A2ARDILY.js → chunk-3KOPPSUQ.js} +3 -3
- package/dist/{chunk-IWG2ECAO.js → chunk-3M6MKHIQ.js} +11 -9
- package/dist/{chunk-M53MDBIW.js → chunk-3NSOKT7C.js} +5 -5
- package/dist/{chunk-INTAQV2Y.js → chunk-3ZONSZOX.js} +5 -5
- package/dist/{chunk-JYDMBWRP.js → chunk-42IT4BG2.js} +2 -2
- package/dist/{chunk-ASPS5O6F.js → chunk-44GBBTMU.js} +7 -7
- package/dist/{chunk-COVYNAKJ.js → chunk-46NVO5UA.js} +3 -3
- package/dist/{chunk-JQLSFZZP.js → chunk-4MB4UOT5.js} +3 -3
- package/dist/{chunk-ITXL2KU5.js → chunk-4MJOBVY7.js} +3 -3
- package/dist/{chunk-LW7STMYZ.js → chunk-57RE4N22.js} +7 -7
- package/dist/{chunk-WITOJZGL.js → chunk-5J2RQGFG.js} +4 -4
- package/dist/{chunk-ZGIBV36U.js → chunk-5LBCOFA5.js} +8 -8
- package/dist/{chunk-FBP33UM6.js → chunk-5VLUAAAE.js} +4 -4
- package/dist/{chunk-P5XXIVEU.js → chunk-5XMDSXZT.js} +3 -3
- package/dist/{chunk-QZYGRDMM.js → chunk-6DR2GMDM.js} +100 -100
- package/dist/{chunk-6NJWBMJV.js → chunk-6HSRT6WI.js} +10 -10
- package/dist/{chunk-MEQYZZFR.js → chunk-6IVXRTXH.js} +96 -23
- package/dist/{chunk-FGAMFJNJ.js → chunk-6PRLPGJB.js} +14 -14
- package/dist/{chunk-US3P2DQO.js → chunk-6VJCURWU.js} +2 -2
- package/dist/{chunk-QZAW5SFH.js → chunk-7NK42OIB.js} +2 -2
- package/dist/{chunk-RKBCKCSF.js → chunk-7Q35X3AL.js} +2 -2
- package/dist/{chunk-NN5TF4OV.js → chunk-7SXTD7L6.js} +3 -3
- package/dist/{chunk-LCRPGGGS.js → chunk-7YPSFQFA.js} +20 -17
- package/dist/{chunk-JGCEFKZP.js → chunk-A6XELFU6.js} +15 -15
- package/dist/{chunk-RYNCWA5X.js → chunk-ADKDIWCW.js} +7 -7
- package/dist/{chunk-MEH4TJEX.js → chunk-APD52YJV.js} +8 -8
- package/dist/{chunk-PIXZTCKH.js → chunk-BIWMOFSE.js} +9 -9
- package/dist/{chunk-ZXNHHO6D.js → chunk-BQLJAYVB.js} +9 -9
- package/dist/{chunk-HO3RCNF6.js → chunk-CGLBK5Q4.js} +2 -2
- package/dist/{chunk-ADYKAKE3.js → chunk-CQ7Y3O67.js} +7 -4
- package/dist/{chunk-2R6HG6D5.js → chunk-CQJ5SE5T.js} +9 -9
- package/dist/{chunk-A2PTRSAO.js → chunk-CXI6X54X.js} +3 -3
- package/dist/{chunk-PCVXXPYU.js → chunk-CY5KE2P5.js} +57 -7
- package/dist/{chunk-JR7Q6GHE.js → chunk-D5FANMSG.js} +3 -3
- package/dist/{chunk-MSWIBF6J.js → chunk-D64FRGKU.js} +3 -3
- package/dist/{chunk-W4TSD3IP.js → chunk-D76B4DMV.js} +5 -5
- package/dist/{chunk-5K5XBEXT.js → chunk-DIKIHU52.js} +4 -4
- package/dist/{chunk-EMSOFHEN.js → chunk-DNSEG6P2.js} +2 -2
- package/dist/{chunk-UJRTPOHH.js → chunk-DUI5SMFX.js} +2 -2
- package/dist/{chunk-O4CZDTQA.js → chunk-EEKGMS63.js} +4 -4
- package/dist/{chunk-2HX6ZGY7.js → chunk-ES3MUYRX.js} +5 -5
- package/dist/{chunk-GRXPFBYC.js → chunk-ES66QH6J.js} +2 -2
- package/dist/{chunk-ZKPPI6BF.js → chunk-EXNKNJ65.js} +2 -2
- package/dist/{chunk-VMWSZCAK.js → chunk-FERE46TP.js} +5 -5
- package/dist/{chunk-GTO5VCYG.js → chunk-FMPYKUKI.js} +8 -8
- package/dist/{chunk-B4XS2AF2.js → chunk-FWVKPEG3.js} +3 -3
- package/dist/{chunk-KK3L5NVK.js → chunk-FZECLCCU.js} +4 -4
- package/dist/{chunk-ETTDF3S2.js → chunk-G3L4GWLA.js} +90 -59
- package/dist/{chunk-3IUHKMJI.js → chunk-H52HJ26L.js} +3 -3
- package/dist/{chunk-5H5GWWA4.js → chunk-HBRGNLF5.js} +19 -19
- package/dist/{chunk-BEOAKGNA.js → chunk-I55PVEIX.js} +2 -2
- package/dist/{chunk-EFUQENO5.js → chunk-IMXG673Y.js} +3 -3
- package/dist/{chunk-Y4BBGFKY.js → chunk-INU6ANOH.js} +2 -2
- package/dist/{chunk-32HUNA33.js → chunk-J6V3SMR3.js} +18 -15
- package/dist/{chunk-VXTUWXFB.js → chunk-K2GDF2ZR.js} +10 -10
- package/dist/{chunk-HX7QNHC6.js → chunk-KF575IXC.js} +4 -4
- package/dist/{chunk-5D5VHDJM.js → chunk-KH74OWHU.js} +13 -13
- package/dist/{chunk-ZP265ICS.js → chunk-KRKU6WRS.js} +10 -10
- package/dist/{chunk-JTSMEYIZ.js → chunk-L43KTQTW.js} +5 -2
- package/dist/{chunk-5HWPEYWB.js → chunk-LDVUPGWC.js} +2 -2
- package/dist/{chunk-3B2GXZCX.js → chunk-LSFZDBAP.js} +3 -3
- package/dist/{chunk-ZWVKTWK6.js → chunk-LV5BFA24.js} +6 -6
- package/dist/{chunk-IG6J7JWH.js → chunk-LZX3RLRP.js} +24 -21
- package/dist/{chunk-L2DIXZUT.js → chunk-M3IYDSI7.js} +24 -21
- package/dist/{chunk-KC3WBBI7.js → chunk-M65UOFJA.js} +12 -12
- package/dist/{chunk-HES4K6DV.js → chunk-MD2KWAXJ.js} +4 -4
- package/dist/{chunk-ETYF5QZR.js → chunk-MGLJA5TK.js} +3 -3
- package/dist/{chunk-RZWIPDZ2.js → chunk-MXDT446P.js} +8 -8
- package/dist/chunk-NCT22MOD.js +93 -0
- package/dist/{chunk-3BZJ5KD5.js → chunk-NFAHDPCG.js} +4 -4
- package/dist/{chunk-S52F62GW.js → chunk-NHZAYL2X.js} +7 -7
- package/dist/{chunk-YXKNXIWA.js → chunk-NIUE5VWY.js} +8 -8
- package/dist/chunk-NZ5QVASG.js +20 -0
- package/dist/{chunk-QQXFYTLC.js → chunk-OFEUXZPI.js} +38 -21
- package/dist/{chunk-PC4YLEKA.js → chunk-OHBIN74X.js} +4 -4
- package/dist/{chunk-4W2PE66Q.js → chunk-OLMWTJVU.js} +11 -1
- package/dist/{chunk-SCOHNGPG.js → chunk-ORZQVUGW.js} +33 -20
- package/dist/{chunk-4MZCJV4M.js → chunk-OYCIVSL3.js} +22 -19
- package/dist/{chunk-MNS2ENXF.js → chunk-PFG3EVRD.js} +4 -4
- package/dist/{chunk-UBQU2BY6.js → chunk-PKFW6GJD.js} +10 -10
- package/dist/{chunk-UXXLE6AH.js → chunk-PRKPFRC2.js} +6 -6
- package/dist/{chunk-AKE6C2D7.js → chunk-PUGUOFM6.js} +8 -8
- package/dist/{chunk-UES4P7FN.js → chunk-Q772PVKH.js} +11 -19
- package/dist/{chunk-F5ZNUMSY.js → chunk-QMOX5I3G.js} +22 -19
- package/dist/{chunk-HLGOG44K.js → chunk-QWUYFUNO.js} +3 -3
- package/dist/{chunk-WVGNXDEE.js → chunk-RB4HOOKP.js} +6 -6
- package/dist/{chunk-HUTP35XT.js → chunk-RQGNELB3.js} +5 -5
- package/dist/{chunk-WF64MW5G.js → chunk-RRX4Z4TH.js} +2 -2
- package/dist/{chunk-PSIDVCBA.js → chunk-RV2N7COG.js} +4 -4
- package/dist/{chunk-X3X4LZDC.js → chunk-S6QDCFEU.js} +2 -2
- package/dist/{chunk-NPPUZ4SK.js → chunk-SADYIA5Q.js} +9 -9
- package/dist/{chunk-Q5IHQ4NW.js → chunk-SCJ7CAJF.js} +2 -2
- package/dist/{chunk-LKGQ46P4.js → chunk-SFVG4AIG.js} +9 -9
- package/dist/{chunk-2ZJXKJSI.js → chunk-SQWWYGPT.js} +21 -21
- package/dist/{chunk-4R5KIPNX.js → chunk-ST3ZNEUQ.js} +3 -3
- package/dist/{chunk-SSHS42QG.js → chunk-SZCZOA2L.js} +3 -3
- package/dist/{chunk-HGKOVKAX.js → chunk-T2VMOWAM.js} +12 -9
- package/dist/{chunk-DS4MDEQ7.js → chunk-TZ72UBOA.js} +5 -5
- package/dist/{chunk-Q5CMQVWF.js → chunk-U3DGAE7L.js} +9 -9
- package/dist/{chunk-PV7ND5WL.js → chunk-U4FSWAOJ.js} +16 -16
- package/dist/{chunk-A4UJP4IS.js → chunk-UG4MWUXE.js} +18 -18
- package/dist/{chunk-NL7FUIVD.js → chunk-ULR3BVNH.js} +8 -8
- package/dist/{chunk-YP2T5YUP.js → chunk-USFZQPJ2.js} +5 -5
- package/dist/{chunk-UU6LUYUH.js → chunk-VJARCVMH.js} +2 -2
- package/dist/{chunk-PKUWYPI5.js → chunk-VS7DGDT3.js} +17 -25
- package/dist/{chunk-NYOOPQFD.js → chunk-VSFAJUEF.js} +4 -4
- package/dist/{chunk-XKKH2DPG.js → chunk-VYCV5WKH.js} +71 -52
- package/dist/{chunk-IIUYKQ5J.js → chunk-VYEQPPS6.js} +7 -7
- package/dist/{chunk-WB3NA3JJ.js → chunk-W4EKQ2P6.js} +2 -2
- package/dist/{chunk-3HDBAXF5.js → chunk-WGC42WJU.js} +8 -1
- package/dist/{chunk-IF4KYSJZ.js → chunk-WOMXS5R7.js} +20 -5
- package/dist/chunk-WTTIODDV.js +10 -0
- package/dist/{chunk-RSBH2C7O.js → chunk-X32RDWT5.js} +5 -5
- package/dist/{chunk-3FUTFYSP.js → chunk-X3ON4M5S.js} +15 -15
- package/dist/{chunk-3BFXELBL.js → chunk-XBTJJLAU.js} +10 -5
- package/dist/{chunk-AU75JHSR.js → chunk-YNAHUNMA.js} +3 -3
- package/dist/cli.cjs +153 -150
- package/dist/cloud-reference.d.ts +69 -0
- package/dist/cloud-reference.js +49 -0
- package/dist/completion-registry.js +6 -6
- package/dist/dgmo-router-PMEKTIJ7.js +88 -0
- package/dist/dimensions-XRWIPAFO.js +22 -0
- package/dist/element.js +156 -130
- package/dist/element.mjs +1354 -729
- package/dist/flowchart-parser-DA3V2SLH.js +21 -0
- package/dist/flowchart-renderer-JGLZB5P5.js +36 -0
- package/dist/index.js +70 -65
- package/dist/layout-5CX27X7I.js +21 -0
- package/dist/layout-AO3TPZUS.js +15 -0
- package/dist/layout-AQXLQVAJ.js +15 -0
- package/dist/layout-EQTOVNEE.js +15 -0
- package/dist/layout-NU5LQ4UP.js +21 -0
- package/dist/{layout-CB3XWCOI.js → layout-NX37NSRY.js} +3 -3
- package/dist/layout-OHAIIXBC.js +10 -0
- package/dist/layout-RIS5VTGL.js +18 -0
- package/dist/layout-TCWNJ2OZ.js +18 -0
- package/dist/{layout-CRLTSFYQ.js → layout-TZKPVXKJ.js} +6 -6
- package/dist/{layout-LGXOKUCD.js → layout-WHOOLGPO.js} +8 -8
- package/dist/{layout-search-U2H4ORFJ.js → layout-search-6CVR2MTZ.js} +320 -37
- package/dist/{legend-constants-B77VKB3R.js → legend-constants-QQU3QYBF.js} +5 -5
- package/dist/{palettes-FGTNFARW.js → palettes-WO3VA6NU.js} +4 -4
- package/dist/parser-4TX6U4ZU.js +11 -0
- package/dist/{parser-DYYTPLBL.js → parser-4ZIJDGPG.js} +6 -6
- package/dist/parser-5UZWYSIV.js +16 -0
- package/dist/{parser-PVBUAVRR.js → parser-5WMH55UA.js} +8 -8
- package/dist/parser-6CM27UPA.js +14 -0
- package/dist/parser-73YUU35J.js +11 -0
- package/dist/parser-A6M25MLK.js +11 -0
- package/dist/parser-AYZTKZC3.js +11 -0
- package/dist/parser-CCAUZLYI.js +15 -0
- package/dist/parser-D7YZX3CH.js +12 -0
- package/dist/parser-DQ2DGDYO.js +11 -0
- package/dist/parser-DTXM5ROT.js +14 -0
- package/dist/parser-HMQZPPOK.js +19 -0
- package/dist/parser-IPBEW2DG.js +13 -0
- package/dist/parser-IQLLBMBQ.js +15 -0
- package/dist/parser-KTVDCWHG.js +13 -0
- package/dist/parser-LMNFVTIV.js +16 -0
- package/dist/{parser-2LF33IS2.js → parser-MH62NYKM.js} +6 -6
- package/dist/parser-O5XCVGZG.js +11 -0
- package/dist/parser-OPOGIKFR.js +17 -0
- package/dist/parser-PEBXIOPX.js +12 -0
- package/dist/parser-PQXN6SBB.js +18 -0
- package/dist/parser-Q3KNFXQR.js +12 -0
- package/dist/parser-Q62VR2UJ.js +20 -0
- package/dist/parser-QEWSTNEJ.js +15 -0
- package/dist/{parser-SUV52NQW.js → parser-QL2LBPFE.js} +7 -7
- package/dist/{parser-BMOTF72G.js → parser-QN3GJJ3J.js} +5 -5
- package/dist/parser-RBNOWHGM.js +15 -0
- package/dist/parser-SJ7ECFAP.js +13 -0
- package/dist/parser-WT3DSNPQ.js +13 -0
- package/dist/{parser-TO7IENWL.js → parser-XQNM7BGD.js} +7 -7
- package/dist/parser-XWNSCDY6.js +13 -0
- package/dist/renderer-2TEGR3RX.js +26 -0
- package/dist/renderer-3WYLLPQL.js +27 -0
- package/dist/renderer-5BFS4NBL.js +24 -0
- package/dist/renderer-6OFPEBHG.js +25 -0
- package/dist/renderer-AK2X3VRY.js +30 -0
- package/dist/renderer-B6XOO6EE.js +20 -0
- package/dist/{renderer-TKTM2SL4.js → renderer-BNEO5W3E.js} +15 -15
- package/dist/renderer-BZZKS7KQ.js +38 -0
- package/dist/renderer-EJ3FETD2.js +28 -0
- package/dist/renderer-FQLFE3TQ.js +26 -0
- package/dist/renderer-HDLM6OY6.js +39 -0
- package/dist/renderer-HGWKAXS6.js +16 -0
- package/dist/renderer-I2P5FTZ2.js +39 -0
- package/dist/renderer-IAJMS5U5.js +30 -0
- package/dist/{renderer-CENXCMWG.js → renderer-JHYUK5TN.js} +8 -8
- package/dist/{renderer-RDBUXW7P.js → renderer-KXMKAXPQ.js} +9 -9
- package/dist/renderer-LMLSA457.js +25 -0
- package/dist/renderer-LNOBG226.js +29 -0
- package/dist/renderer-LRQ3OPNJ.js +27 -0
- package/dist/renderer-LU4R3BP2.js +16 -0
- package/dist/{renderer-IO4KCFVL.js → renderer-N4V7XVC3.js} +17 -16
- package/dist/{renderer-5EMHIQL5.js → renderer-ND7YIUHD.js} +6 -6
- package/dist/renderer-NKVIQA3C.js +17 -0
- package/dist/{renderer-TXTTV4HA.js → renderer-PLRNQ6T3.js} +15 -14
- package/dist/renderer-Q6TJ52B4.js +21 -0
- package/dist/{renderer-QZESC66H.js → renderer-RJT3MOUU.js} +5 -5
- package/dist/renderer-TIIHLRMM.js +19 -0
- package/dist/{renderer-DW6TEBLA.js → renderer-VWBNIZV3.js} +16 -16
- package/dist/renderer-W3JK5YVD.js +22 -0
- package/dist/renderer-W5GF5USI.js +25 -0
- package/dist/renderer-XKMG3SYD.js +23 -0
- package/dist/renderer-XSZ5MUIF.js +28 -0
- package/dist/renderer-radial-LZAPQVM5.js +21 -0
- package/dist/{resolver-ZSFQQRTH.js → resolver-W3WKLWDP.js} +3 -3
- package/dist/state-parser-NQGVYSM3.js +19 -0
- package/dist/state-renderer-KSAKMFQ2.js +40 -0
- package/docs/language-reference.md +9 -1
- package/package.json +6 -2
- package/dist/charts-d3-KZ6V4OP2.js +0 -28
- package/dist/chunk-BMR4CIEO.js +0 -41
- package/dist/dgmo-router-T4HGLIGA.js +0 -88
- package/dist/dimensions-3JINHSYK.js +0 -22
- package/dist/flowchart-parser-M7KKTLX7.js +0 -21
- package/dist/flowchart-renderer-FFEQFQEU.js +0 -35
- package/dist/layout-3ZZBKUQC.js +0 -20
- package/dist/layout-AUKTWGYL.js +0 -15
- package/dist/layout-FNZDJGKF.js +0 -19
- package/dist/layout-GHWRJKZQ.js +0 -15
- package/dist/layout-NF4EWFLT.js +0 -17
- package/dist/layout-SP7HJWKA.js +0 -17
- package/dist/layout-UR7CYAHL.js +0 -23
- package/dist/layout-UTMEVFHN.js +0 -15
- package/dist/parser-2AXPSKWB.js +0 -14
- package/dist/parser-2AZ2KQTO.js +0 -12
- package/dist/parser-3QJ2Z4H4.js +0 -11
- package/dist/parser-5GCQFSTQ.js +0 -13
- package/dist/parser-62OHBRU5.js +0 -11
- package/dist/parser-7LYJFZCP.js +0 -14
- package/dist/parser-CIFLYZYP.js +0 -15
- package/dist/parser-D2UL2G5U.js +0 -11
- package/dist/parser-DM2APTKB.js +0 -11
- package/dist/parser-GOUGUTPU.js +0 -12
- package/dist/parser-HGVUVD6J.js +0 -11
- package/dist/parser-IEJD3CZB.js +0 -11
- package/dist/parser-JBEWNLAV.js +0 -20
- package/dist/parser-JMXPHNZD.js +0 -12
- package/dist/parser-JMXSQY3K.js +0 -13
- package/dist/parser-LUXS7J32.js +0 -16
- package/dist/parser-M5BUHULF.js +0 -15
- package/dist/parser-MESRHUS4.js +0 -17
- package/dist/parser-OOYNI2UT.js +0 -15
- package/dist/parser-QKRBSQLJ.js +0 -18
- package/dist/parser-S6NWSIJO.js +0 -16
- package/dist/parser-SFEK6Q7Z.js +0 -19
- package/dist/parser-SZHGLOOZ.js +0 -13
- package/dist/parser-TVAMC7CQ.js +0 -13
- package/dist/parser-VAW46R57.js +0 -13
- package/dist/parser-XDSPOXSE.js +0 -15
- package/dist/renderer-3PWLOJPD.js +0 -29
- package/dist/renderer-5PODNLYP.js +0 -16
- package/dist/renderer-AQJIQ2XU.js +0 -25
- package/dist/renderer-BEW3AYFT.js +0 -28
- package/dist/renderer-C3UYAXA6.js +0 -26
- package/dist/renderer-CXM3ARYN.js +0 -23
- package/dist/renderer-FE5M6SEZ.js +0 -25
- package/dist/renderer-FXK6ZL3P.js +0 -20
- package/dist/renderer-G5ESLCJB.js +0 -29
- package/dist/renderer-HTDS4FED.js +0 -37
- package/dist/renderer-IRAFJNTK.js +0 -27
- package/dist/renderer-K7XLVPH5.js +0 -17
- package/dist/renderer-MFTTFW32.js +0 -38
- package/dist/renderer-MPXI4FVL.js +0 -24
- package/dist/renderer-NVBEMQ6L.js +0 -19
- package/dist/renderer-OOGDCR6K.js +0 -16
- package/dist/renderer-Q5P72O4A.js +0 -26
- package/dist/renderer-S4XB3JR2.js +0 -27
- package/dist/renderer-SIWEEWJ5.js +0 -26
- package/dist/renderer-UZIU4AHK.js +0 -28
- package/dist/renderer-V72VJIGG.js +0 -38
- package/dist/renderer-VEGOEZOI.js +0 -25
- package/dist/renderer-W6I6T2TA.js +0 -21
- package/dist/renderer-WSHJRR2T.js +0 -22
- package/dist/renderer-radial-AG75PBYD.js +0 -21
- package/dist/state-parser-KIPZGIB4.js +0 -19
- package/dist/state-renderer-U6OSJG52.js +0 -39
|
@@ -1,22 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
groupedTierCandidates
|
|
3
|
-
} from "./chunk-WB3NA3JJ.js";
|
|
4
1
|
import {
|
|
5
2
|
EDGE_LABEL_FONT_SIZE,
|
|
6
|
-
NODE_HEIGHT,
|
|
7
|
-
NODE_WIDTH,
|
|
8
3
|
computeNodeSize,
|
|
9
4
|
measureEdgeLabel
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import
|
|
5
|
+
} from "./chunk-3M6MKHIQ.js";
|
|
6
|
+
import {
|
|
7
|
+
groupedTierCandidates
|
|
8
|
+
} from "./chunk-W4EKQ2P6.js";
|
|
9
|
+
import {
|
|
10
|
+
NODE_HEIGHT,
|
|
11
|
+
NODE_WIDTH
|
|
12
|
+
} from "./chunk-WTTIODDV.js";
|
|
13
|
+
import "./chunk-LDVUPGWC.js";
|
|
12
14
|
import "./chunk-6EK55ART.js";
|
|
13
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-VJARCVMH.js";
|
|
14
16
|
import "./chunk-5DH3KYFH.js";
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-NCT22MOD.js";
|
|
18
|
+
import "./chunk-WGC42WJU.js";
|
|
19
|
+
import "./chunk-7NK42OIB.js";
|
|
18
20
|
import "./chunk-NOTA6TEI.js";
|
|
19
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-4ASYQ347.js";
|
|
22
|
+
import "./chunk-OLMWTJVU.js";
|
|
20
23
|
import "./chunk-5WRI5ZAA.js";
|
|
21
24
|
|
|
22
25
|
// src/boxes-and-lines/layout-search.ts
|
|
@@ -195,9 +198,9 @@ function layeredCandidates(parsed, sizes, opts) {
|
|
|
195
198
|
const m = Math.floor(vals.length / 2);
|
|
196
199
|
if (vals.length % 2 === 1) return vals[m];
|
|
197
200
|
if (vals.length === 2) return (vals[0] + vals[1]) / 2;
|
|
198
|
-
const
|
|
199
|
-
const
|
|
200
|
-
return
|
|
201
|
+
const left2 = vals[m - 1] - vals[0];
|
|
202
|
+
const right2 = vals[vals.length - 1] - vals[m];
|
|
203
|
+
return left2 + right2 === 0 ? (vals[m - 1] + vals[m]) / 2 : (vals[m - 1] * right2 + vals[m] * left2) / (left2 + right2);
|
|
201
204
|
};
|
|
202
205
|
const wmedianRank = (r, useUp) => {
|
|
203
206
|
const ids = ranks[r];
|
|
@@ -520,6 +523,275 @@ function layeredCandidates(parsed, sizes, opts) {
|
|
|
520
523
|
}
|
|
521
524
|
}
|
|
522
525
|
|
|
526
|
+
// src/boxes-and-lines/layout-stable-collapse.ts
|
|
527
|
+
var GROUP_PAD = 16;
|
|
528
|
+
var GROUP_LABEL_ZONE = 32;
|
|
529
|
+
var MARGIN2 = 40;
|
|
530
|
+
var MIN_GAP = 36;
|
|
531
|
+
var gid = (label) => `__group_${label}`;
|
|
532
|
+
var left = (r) => r.x - r.width / 2;
|
|
533
|
+
var right = (r) => r.x + r.width / 2;
|
|
534
|
+
var top = (r) => r.y - r.height / 2;
|
|
535
|
+
var bottom = (r) => r.y + r.height / 2;
|
|
536
|
+
function bboxOf(rects) {
|
|
537
|
+
let x0 = Infinity, y0 = Infinity, x1 = -Infinity, y1 = -Infinity;
|
|
538
|
+
for (const r of rects) {
|
|
539
|
+
x0 = Math.min(x0, left(r));
|
|
540
|
+
y0 = Math.min(y0, top(r));
|
|
541
|
+
x1 = Math.max(x1, right(r));
|
|
542
|
+
y1 = Math.max(y1, bottom(r));
|
|
543
|
+
}
|
|
544
|
+
return {
|
|
545
|
+
x: (x0 + x1) / 2,
|
|
546
|
+
y: (y0 + y1) / 2,
|
|
547
|
+
width: x1 - x0,
|
|
548
|
+
height: y1 - y0
|
|
549
|
+
};
|
|
550
|
+
}
|
|
551
|
+
function borderPoint(rect, toward) {
|
|
552
|
+
const dx = toward.x - rect.x;
|
|
553
|
+
const dy = toward.y - rect.y;
|
|
554
|
+
const sx = dx === 0 ? Infinity : rect.width / 2 / Math.abs(dx);
|
|
555
|
+
const sy = dy === 0 ? Infinity : rect.height / 2 / Math.abs(dy);
|
|
556
|
+
const s = Math.min(sx, sy);
|
|
557
|
+
if (!Number.isFinite(s)) return { x: rect.x, y: rect.y };
|
|
558
|
+
return { x: rect.x + dx * s, y: rect.y + dy * s };
|
|
559
|
+
}
|
|
560
|
+
function tryStableCollapseLayout(input) {
|
|
561
|
+
const {
|
|
562
|
+
parsed,
|
|
563
|
+
collapseInfo,
|
|
564
|
+
collapsedGroupLabels,
|
|
565
|
+
previousPositions,
|
|
566
|
+
sizes
|
|
567
|
+
} = input;
|
|
568
|
+
const prev = previousPositions;
|
|
569
|
+
const rects = /* @__PURE__ */ new Map();
|
|
570
|
+
for (const n of parsed.nodes) {
|
|
571
|
+
const p = prev.get(n.label);
|
|
572
|
+
const s = sizes.get(n.label);
|
|
573
|
+
if (!p || !s) return null;
|
|
574
|
+
rects.set(n.label, { x: p.x, y: p.y, width: s.width, height: s.height });
|
|
575
|
+
}
|
|
576
|
+
const ogByLabel = /* @__PURE__ */ new Map();
|
|
577
|
+
for (const g of collapseInfo.originalGroups) ogByLabel.set(g.label, g);
|
|
578
|
+
const descendantNodes = (label, seen = /* @__PURE__ */ new Set()) => {
|
|
579
|
+
if (seen.has(label)) return [];
|
|
580
|
+
seen.add(label);
|
|
581
|
+
const g = ogByLabel.get(label);
|
|
582
|
+
if (!g) return [];
|
|
583
|
+
const out = [];
|
|
584
|
+
for (const c of g.children) {
|
|
585
|
+
if (ogByLabel.has(c)) out.push(...descendantNodes(c, seen));
|
|
586
|
+
else out.push(c);
|
|
587
|
+
}
|
|
588
|
+
return out;
|
|
589
|
+
};
|
|
590
|
+
const newlyCollapsed = [];
|
|
591
|
+
for (const label of collapsedGroupLabels) {
|
|
592
|
+
const own = prev.get(gid(label));
|
|
593
|
+
if (own) {
|
|
594
|
+
rects.set(gid(label), {
|
|
595
|
+
x: own.x,
|
|
596
|
+
y: own.y,
|
|
597
|
+
width: NODE_WIDTH,
|
|
598
|
+
height: NODE_HEIGHT
|
|
599
|
+
});
|
|
600
|
+
continue;
|
|
601
|
+
}
|
|
602
|
+
const members = descendantNodes(label);
|
|
603
|
+
if (members.length === 0) return null;
|
|
604
|
+
const memberRects = [];
|
|
605
|
+
for (const m of members) {
|
|
606
|
+
const p = prev.get(m);
|
|
607
|
+
if (!p) return null;
|
|
608
|
+
memberRects.push({
|
|
609
|
+
x: p.x,
|
|
610
|
+
y: p.y,
|
|
611
|
+
width: NODE_WIDTH,
|
|
612
|
+
height: NODE_HEIGHT
|
|
613
|
+
});
|
|
614
|
+
}
|
|
615
|
+
const bbox = bboxOf(memberRects);
|
|
616
|
+
rects.set(gid(label), {
|
|
617
|
+
x: bbox.x,
|
|
618
|
+
y: bbox.y,
|
|
619
|
+
width: NODE_WIDTH,
|
|
620
|
+
height: NODE_HEIGHT
|
|
621
|
+
});
|
|
622
|
+
newlyCollapsed.push({ label, memberBbox: bbox });
|
|
623
|
+
}
|
|
624
|
+
const groupByLabel = new Map(parsed.groups.map((g) => [g.label, g]));
|
|
625
|
+
const inUnit = /* @__PURE__ */ new Set();
|
|
626
|
+
const unitKeys = (label, seen = /* @__PURE__ */ new Set()) => {
|
|
627
|
+
if (seen.has(label)) return [];
|
|
628
|
+
seen.add(label);
|
|
629
|
+
const g = groupByLabel.get(label);
|
|
630
|
+
if (!g) return [];
|
|
631
|
+
const out = [];
|
|
632
|
+
for (const c of g.children) {
|
|
633
|
+
if (groupByLabel.has(c)) out.push(...unitKeys(c, seen));
|
|
634
|
+
else if (rects.has(c)) out.push(c);
|
|
635
|
+
else if (rects.has(gid(c))) out.push(gid(c));
|
|
636
|
+
}
|
|
637
|
+
return out;
|
|
638
|
+
};
|
|
639
|
+
const units = [];
|
|
640
|
+
for (const g of parsed.groups) {
|
|
641
|
+
if (g.parentGroup) continue;
|
|
642
|
+
const keys = unitKeys(g.label);
|
|
643
|
+
if (keys.length === 0) continue;
|
|
644
|
+
for (const k of keys) inUnit.add(k);
|
|
645
|
+
units.push(keys);
|
|
646
|
+
}
|
|
647
|
+
for (const key of rects.keys()) if (!inUnit.has(key)) units.push([key]);
|
|
648
|
+
const axes = ["x", "y"];
|
|
649
|
+
for (const { label, memberBbox } of newlyCollapsed) {
|
|
650
|
+
const pill = rects.get(gid(label));
|
|
651
|
+
for (const axis of axes) {
|
|
652
|
+
const size = axis === "x" ? "width" : "height";
|
|
653
|
+
const perpMin = axis === "x" ? top : left;
|
|
654
|
+
const perpMax = axis === "x" ? bottom : right;
|
|
655
|
+
const axMin = axis === "x" ? left : top;
|
|
656
|
+
const axMax = axis === "x" ? right : bottom;
|
|
657
|
+
const reclaim = memberBbox[size] - pill[size];
|
|
658
|
+
if (reclaim <= 0) continue;
|
|
659
|
+
const unitBbox = (keys) => bboxOf(keys.map((k) => rects.get(k)));
|
|
660
|
+
const sliding = [];
|
|
661
|
+
const staticRects = [];
|
|
662
|
+
for (const u of units) {
|
|
663
|
+
const b = unitBbox(u);
|
|
664
|
+
if (axMin(b) >= pill[axis] && !u.includes(gid(label))) sliding.push(u);
|
|
665
|
+
else staticRects.push(...u.map((k) => rects.get(k)));
|
|
666
|
+
}
|
|
667
|
+
if (sliding.length === 0) continue;
|
|
668
|
+
let delta = reclaim;
|
|
669
|
+
for (const u of sliding) {
|
|
670
|
+
const b = unitBbox(u);
|
|
671
|
+
for (const s of staticRects) {
|
|
672
|
+
const overlaps = perpMin(b) < perpMax(s) - 4 && perpMax(b) > perpMin(s) + 4;
|
|
673
|
+
if (!overlaps || axMax(s) > axMin(b)) continue;
|
|
674
|
+
delta = Math.min(delta, axMin(b) - axMax(s) - MIN_GAP);
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
if (delta <= 0) continue;
|
|
678
|
+
for (const u of sliding)
|
|
679
|
+
for (const k of u) {
|
|
680
|
+
const r = rects.get(k);
|
|
681
|
+
rects.set(k, { ...r, [axis]: r[axis] - delta });
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
const groupRect = /* @__PURE__ */ new Map();
|
|
686
|
+
const buildGroupRect = (label, seen = /* @__PURE__ */ new Set()) => {
|
|
687
|
+
if (groupRect.has(label)) return groupRect.get(label);
|
|
688
|
+
if (seen.has(label)) return null;
|
|
689
|
+
seen.add(label);
|
|
690
|
+
const g = groupByLabel.get(label);
|
|
691
|
+
if (!g) return null;
|
|
692
|
+
const memberRects = [];
|
|
693
|
+
for (const c of g.children) {
|
|
694
|
+
if (groupByLabel.has(c)) {
|
|
695
|
+
const sub = buildGroupRect(c, seen);
|
|
696
|
+
if (sub) memberRects.push(sub);
|
|
697
|
+
} else if (rects.has(c)) memberRects.push(rects.get(c));
|
|
698
|
+
else if (rects.has(gid(c))) memberRects.push(rects.get(gid(c)));
|
|
699
|
+
}
|
|
700
|
+
if (memberRects.length === 0) return null;
|
|
701
|
+
const b = bboxOf(memberRects);
|
|
702
|
+
const rect = {
|
|
703
|
+
x: b.x,
|
|
704
|
+
y: b.y - GROUP_LABEL_ZONE / 2,
|
|
705
|
+
width: b.width + 2 * GROUP_PAD,
|
|
706
|
+
height: b.height + 2 * GROUP_PAD + GROUP_LABEL_ZONE
|
|
707
|
+
};
|
|
708
|
+
groupRect.set(label, rect);
|
|
709
|
+
return rect;
|
|
710
|
+
};
|
|
711
|
+
for (const g of parsed.groups) if (!buildGroupRect(g.label)) return null;
|
|
712
|
+
const boxes = [...rects.values()];
|
|
713
|
+
for (let i = 0; i < boxes.length; i++)
|
|
714
|
+
for (let j = i + 1; j < boxes.length; j++) {
|
|
715
|
+
const a = boxes[i];
|
|
716
|
+
const b = boxes[j];
|
|
717
|
+
if (Math.abs(a.x - b.x) < (a.width + b.width) / 2 - 4 && Math.abs(a.y - b.y) < (a.height + b.height) / 2 - 4)
|
|
718
|
+
return null;
|
|
719
|
+
}
|
|
720
|
+
const endpointRect = (key) => {
|
|
721
|
+
const direct = rects.get(key);
|
|
722
|
+
if (direct) return direct;
|
|
723
|
+
if (key.startsWith("__group_")) {
|
|
724
|
+
const label = key.slice("__group_".length);
|
|
725
|
+
return groupRect.get(label) ?? null;
|
|
726
|
+
}
|
|
727
|
+
return groupRect.get(key) ?? null;
|
|
728
|
+
};
|
|
729
|
+
const edges = [];
|
|
730
|
+
for (const e of parsed.edges) {
|
|
731
|
+
const sr = endpointRect(e.source);
|
|
732
|
+
const tr = endpointRect(e.target);
|
|
733
|
+
if (!sr || !tr) return null;
|
|
734
|
+
edges.push({
|
|
735
|
+
source: e.source,
|
|
736
|
+
target: e.target,
|
|
737
|
+
...e.label !== void 0 && { label: e.label },
|
|
738
|
+
bidirectional: e.bidirectional,
|
|
739
|
+
lineNumber: e.lineNumber,
|
|
740
|
+
points: [borderPoint(sr, tr), borderPoint(tr, sr)],
|
|
741
|
+
yOffset: 0,
|
|
742
|
+
parallelCount: 1,
|
|
743
|
+
metadata: e.metadata
|
|
744
|
+
});
|
|
745
|
+
}
|
|
746
|
+
const allRects = [...rects.values(), ...groupRect.values()];
|
|
747
|
+
const total = bboxOf(allRects);
|
|
748
|
+
const dx = MARGIN2 - left(total);
|
|
749
|
+
const dy = MARGIN2 - top(total);
|
|
750
|
+
const shift = (r) => ({ ...r, x: r.x + dx, y: r.y + dy });
|
|
751
|
+
const nodes = parsed.nodes.map((n) => {
|
|
752
|
+
const r = shift(rects.get(n.label));
|
|
753
|
+
return { label: n.label, x: r.x, y: r.y, width: r.width, height: r.height };
|
|
754
|
+
});
|
|
755
|
+
const groups = parsed.groups.map((g) => {
|
|
756
|
+
const r = shift(groupRect.get(g.label));
|
|
757
|
+
return {
|
|
758
|
+
label: g.label,
|
|
759
|
+
lineNumber: g.lineNumber,
|
|
760
|
+
x: r.x,
|
|
761
|
+
y: r.y,
|
|
762
|
+
width: r.width,
|
|
763
|
+
height: r.height,
|
|
764
|
+
collapsed: false,
|
|
765
|
+
childCount: g.children.length
|
|
766
|
+
};
|
|
767
|
+
});
|
|
768
|
+
for (const label of collapsedGroupLabels) {
|
|
769
|
+
const r = shift(rects.get(gid(label)));
|
|
770
|
+
groups.push({
|
|
771
|
+
label,
|
|
772
|
+
lineNumber: 0,
|
|
773
|
+
x: r.x,
|
|
774
|
+
y: r.y,
|
|
775
|
+
width: r.width,
|
|
776
|
+
height: r.height,
|
|
777
|
+
collapsed: true,
|
|
778
|
+
childCount: collapseInfo.collapsedChildCounts.get(label) ?? 0
|
|
779
|
+
});
|
|
780
|
+
}
|
|
781
|
+
const shiftedEdges = edges.map((e) => ({
|
|
782
|
+
...e,
|
|
783
|
+
points: e.points.map((p) => ({ x: p.x + dx, y: p.y + dy }))
|
|
784
|
+
}));
|
|
785
|
+
const shiftedTotal = shift(total);
|
|
786
|
+
return {
|
|
787
|
+
nodes,
|
|
788
|
+
edges: shiftedEdges,
|
|
789
|
+
groups,
|
|
790
|
+
width: right(shiftedTotal) + MARGIN2,
|
|
791
|
+
height: bottom(shiftedTotal) + MARGIN2
|
|
792
|
+
};
|
|
793
|
+
}
|
|
794
|
+
|
|
523
795
|
// src/boxes-and-lines/layout-search.ts
|
|
524
796
|
var DEFAULT_LAMBDA = 4;
|
|
525
797
|
var ESCALATE_THRESHOLD = 4;
|
|
@@ -873,7 +1145,7 @@ function countEdgeNearMiss(layout, opts) {
|
|
|
873
1145
|
const over = detectEdgeOverlaps(layout, { dist: tight, minLen }).length;
|
|
874
1146
|
return Math.max(0, close - over);
|
|
875
1147
|
}
|
|
876
|
-
var
|
|
1148
|
+
var GROUP_LABEL_ZONE2 = 32;
|
|
877
1149
|
function detectGroupOverlaps(layout, opts) {
|
|
878
1150
|
const margin = opts?.margin ?? 4;
|
|
879
1151
|
const raw = layout.groups.map((g) => ({
|
|
@@ -886,7 +1158,7 @@ function detectGroupOverlaps(layout, opts) {
|
|
|
886
1158
|
const contains = (outer, inner) => outer.l <= inner.l + margin && outer.r >= inner.r - margin && outer.t <= inner.t + margin && outer.b >= inner.b - margin;
|
|
887
1159
|
const rend = raw.map((a, i) => {
|
|
888
1160
|
const parent = raw.some((b, j) => j !== i && contains(a, b));
|
|
889
|
-
return parent ? { ...a, t: a.t -
|
|
1161
|
+
return parent ? { ...a, t: a.t - GROUP_LABEL_ZONE2 } : a;
|
|
890
1162
|
});
|
|
891
1163
|
const hit = /* @__PURE__ */ new Set();
|
|
892
1164
|
for (let i = 0; i < raw.length; i++)
|
|
@@ -913,7 +1185,7 @@ function countGroupOverlaps(layout, opts) {
|
|
|
913
1185
|
const contains = (outer, inner) => outer.l <= inner.l + margin && outer.r >= inner.r - margin && outer.t <= inner.t + margin && outer.b >= inner.b - margin;
|
|
914
1186
|
const rend = raw.map((a, i) => {
|
|
915
1187
|
const parent = raw.some((b, j) => j !== i && contains(a, b));
|
|
916
|
-
return parent ? { ...a, t: a.t -
|
|
1188
|
+
return parent ? { ...a, t: a.t - GROUP_LABEL_ZONE2 } : a;
|
|
917
1189
|
});
|
|
918
1190
|
let count = 0;
|
|
919
1191
|
for (let i = 0; i < raw.length; i++)
|
|
@@ -956,7 +1228,7 @@ function separateGroupBands(layout, parsed) {
|
|
|
956
1228
|
let lo = (axis === "y" ? g.y : g.x) - half2;
|
|
957
1229
|
const hi = (axis === "y" ? g.y : g.x) + half2;
|
|
958
1230
|
const isParent = parsed.groups.some((c) => c.parentGroup === label);
|
|
959
|
-
if (axis === "y" && isParent) lo -=
|
|
1231
|
+
if (axis === "y" && isParent) lo -= GROUP_LABEL_ZONE2;
|
|
960
1232
|
return { label, lo, hi, c: (lo + hi) / 2 };
|
|
961
1233
|
});
|
|
962
1234
|
bands.sort((a, b) => a.c - b.c);
|
|
@@ -992,8 +1264,8 @@ function separateGroupBands(layout, parsed) {
|
|
|
992
1264
|
const nodeDelta = (label) => {
|
|
993
1265
|
if (label.startsWith("__group_"))
|
|
994
1266
|
return delta.get(topOf(label.slice("__group_".length))) ?? 0;
|
|
995
|
-
const
|
|
996
|
-
return
|
|
1267
|
+
const top2 = nodeTop.get(label);
|
|
1268
|
+
return top2 ? delta.get(top2) ?? 0 : 0;
|
|
997
1269
|
};
|
|
998
1270
|
const shift = (p, d) => axis === "y" ? { x: p.x, y: p.y + d } : { x: p.x + d, y: p.y };
|
|
999
1271
|
const nodes = layout.nodes.map((n) => {
|
|
@@ -1027,7 +1299,7 @@ function separateGroupBands(layout, parsed) {
|
|
|
1027
1299
|
acc(n.x + n.width / 2, n.y + n.height / 2);
|
|
1028
1300
|
}
|
|
1029
1301
|
for (const g of groups) {
|
|
1030
|
-
acc(g.x - g.width / 2, g.y - g.height / 2 -
|
|
1302
|
+
acc(g.x - g.width / 2, g.y - g.height / 2 - GROUP_LABEL_ZONE2);
|
|
1031
1303
|
acc(g.x + g.width / 2, g.y + g.height / 2);
|
|
1032
1304
|
}
|
|
1033
1305
|
for (const e of edges) for (const p of e.points) acc(p.x, p.y);
|
|
@@ -1146,8 +1418,19 @@ async function layoutBoxesAndLinesSearch(parsed, collapseInfo, opts) {
|
|
|
1146
1418
|
sizes.set(node.label, { width: s.width, height: maxDescH });
|
|
1147
1419
|
}
|
|
1148
1420
|
}
|
|
1149
|
-
const
|
|
1421
|
+
const gid2 = (label) => `__group_${label}`;
|
|
1150
1422
|
const rankdir = parsed.direction === "TB" ? "TB" : "LR";
|
|
1423
|
+
if (opts?.stableCollapse && collapseInfo && collapsedGroupLabels.size > 0 && opts.previousPositions) {
|
|
1424
|
+
const stable = tryStableCollapseLayout({
|
|
1425
|
+
parsed,
|
|
1426
|
+
collapseInfo,
|
|
1427
|
+
collapsedGroupLabels,
|
|
1428
|
+
previousPositions: opts.previousPositions,
|
|
1429
|
+
sizes,
|
|
1430
|
+
rankdir
|
|
1431
|
+
});
|
|
1432
|
+
if (stable) return stable;
|
|
1433
|
+
}
|
|
1151
1434
|
const nodeLabelSet = new Set(parsed.nodes.map((n2) => n2.label));
|
|
1152
1435
|
const directNodeChildren = /* @__PURE__ */ new Map();
|
|
1153
1436
|
const childGroupsOf = /* @__PURE__ */ new Map();
|
|
@@ -1205,8 +1488,8 @@ async function layoutBoxesAndLinesSearch(parsed, collapseInfo, opts) {
|
|
|
1205
1488
|
if (rankOf(mem) > rankOf(exit)) exit = mem;
|
|
1206
1489
|
if (rankOf(mem) < rankOf(entry)) entry = mem;
|
|
1207
1490
|
}
|
|
1208
|
-
gidSourceRep.set(
|
|
1209
|
-
gidTargetRep.set(
|
|
1491
|
+
gidSourceRep.set(gid2(grp.label), exit);
|
|
1492
|
+
gidTargetRep.set(gid2(grp.label), entry);
|
|
1210
1493
|
}
|
|
1211
1494
|
const srcRep = (label) => gidSourceRep.get(label) ?? label;
|
|
1212
1495
|
const tgtRep = (label) => gidTargetRep.get(label) ?? label;
|
|
@@ -1236,25 +1519,25 @@ async function layoutBoxesAndLinesSearch(parsed, collapseInfo, opts) {
|
|
|
1236
1519
|
});
|
|
1237
1520
|
g.setDefaultEdgeLabel(() => ({}));
|
|
1238
1521
|
for (const grp of ord(parsed.groups))
|
|
1239
|
-
g.setNode(
|
|
1522
|
+
g.setNode(gid2(grp.label), { label: grp.label });
|
|
1240
1523
|
for (const node of ord(parsed.nodes)) {
|
|
1241
1524
|
const s = sizes.get(node.label);
|
|
1242
1525
|
g.setNode(node.label, { width: s.width, height: s.height });
|
|
1243
1526
|
}
|
|
1244
1527
|
for (const label of collapsedGroupLabels)
|
|
1245
|
-
g.setNode(
|
|
1528
|
+
g.setNode(gid2(label), { width: NODE_WIDTH, height: NODE_HEIGHT });
|
|
1246
1529
|
for (const grp of parsed.groups) {
|
|
1247
|
-
if (grp.parentGroup && g.hasNode(
|
|
1248
|
-
g.setParent(
|
|
1530
|
+
if (grp.parentGroup && g.hasNode(gid2(grp.parentGroup)))
|
|
1531
|
+
g.setParent(gid2(grp.label), gid2(grp.parentGroup));
|
|
1249
1532
|
for (const c of ord(grp.children)) {
|
|
1250
|
-
if (g.hasNode(c)) g.setParent(c,
|
|
1533
|
+
if (g.hasNode(c)) g.setParent(c, gid2(grp.label));
|
|
1251
1534
|
}
|
|
1252
1535
|
}
|
|
1253
1536
|
if (collapseInfo)
|
|
1254
1537
|
for (const label of collapsedGroupLabels) {
|
|
1255
1538
|
const og = collapseInfo.originalGroups.find((x) => x.label === label);
|
|
1256
|
-
if (og?.parentGroup && !collapsedGroupLabels.has(og.parentGroup) && g.hasNode(
|
|
1257
|
-
g.setParent(
|
|
1539
|
+
if (og?.parentGroup && !collapsedGroupLabels.has(og.parentGroup) && g.hasNode(gid2(og.parentGroup)))
|
|
1540
|
+
g.setParent(gid2(label), gid2(og.parentGroup));
|
|
1258
1541
|
}
|
|
1259
1542
|
for (const e of ord(parsed.edges)) {
|
|
1260
1543
|
const s = srcRep(e.source);
|
|
@@ -1281,7 +1564,7 @@ async function layoutBoxesAndLinesSearch(parsed, collapseInfo, opts) {
|
|
|
1281
1564
|
});
|
|
1282
1565
|
const groups = parsed.groups.map(
|
|
1283
1566
|
(grp) => {
|
|
1284
|
-
const p = g.node(
|
|
1567
|
+
const p = g.node(gid2(grp.label));
|
|
1285
1568
|
return {
|
|
1286
1569
|
label: grp.label,
|
|
1287
1570
|
lineNumber: grp.lineNumber,
|
|
@@ -1295,7 +1578,7 @@ async function layoutBoxesAndLinesSearch(parsed, collapseInfo, opts) {
|
|
|
1295
1578
|
}
|
|
1296
1579
|
);
|
|
1297
1580
|
for (const label of collapsedGroupLabels) {
|
|
1298
|
-
const p = g.node(
|
|
1581
|
+
const p = g.node(gid2(label));
|
|
1299
1582
|
groups.push({
|
|
1300
1583
|
label,
|
|
1301
1584
|
lineNumber: 0,
|
|
@@ -1309,9 +1592,9 @@ async function layoutBoxesAndLinesSearch(parsed, collapseInfo, opts) {
|
|
|
1309
1592
|
}
|
|
1310
1593
|
const groupRectByGid = /* @__PURE__ */ new Map();
|
|
1311
1594
|
for (const grp of parsed.groups) {
|
|
1312
|
-
const p = g.node(
|
|
1595
|
+
const p = g.node(gid2(grp.label));
|
|
1313
1596
|
if (p)
|
|
1314
|
-
groupRectByGid.set(
|
|
1597
|
+
groupRectByGid.set(gid2(grp.label), {
|
|
1315
1598
|
x: p.x,
|
|
1316
1599
|
y: p.y,
|
|
1317
1600
|
w: p.width,
|
|
@@ -1524,4 +1807,4 @@ export {
|
|
|
1524
1807
|
layoutBoxesAndLinesSearch,
|
|
1525
1808
|
separateGroupBands
|
|
1526
1809
|
};
|
|
1527
|
-
//# sourceMappingURL=layout-search-
|
|
1810
|
+
//# sourceMappingURL=layout-search-6CVR2MTZ.js.map
|
|
@@ -21,11 +21,11 @@ import {
|
|
|
21
21
|
legendChromeColors,
|
|
22
22
|
measureLegendText,
|
|
23
23
|
truncateLegendText
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-SCJ7CAJF.js";
|
|
25
25
|
import "./chunk-4ASYQ347.js";
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-42IT4BG2.js";
|
|
27
|
+
import "./chunk-EXNKNJ65.js";
|
|
28
|
+
import "./chunk-OLMWTJVU.js";
|
|
29
29
|
import "./chunk-5WRI5ZAA.js";
|
|
30
30
|
export {
|
|
31
31
|
CONTROLS_ICON_PATH,
|
|
@@ -51,4 +51,4 @@ export {
|
|
|
51
51
|
measureLegendText,
|
|
52
52
|
truncateLegendText
|
|
53
53
|
};
|
|
54
|
-
//# sourceMappingURL=legend-constants-
|
|
54
|
+
//# sourceMappingURL=legend-constants-QQU3QYBF.js.map
|
|
@@ -24,9 +24,9 @@ import {
|
|
|
24
24
|
shapeFill,
|
|
25
25
|
themeBaseBg,
|
|
26
26
|
tint
|
|
27
|
-
} from "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
27
|
+
} from "./chunk-42IT4BG2.js";
|
|
28
|
+
import "./chunk-EXNKNJ65.js";
|
|
29
|
+
import "./chunk-OLMWTJVU.js";
|
|
30
30
|
import "./chunk-5WRI5ZAA.js";
|
|
31
31
|
export {
|
|
32
32
|
atlasPalette,
|
|
@@ -53,4 +53,4 @@ export {
|
|
|
53
53
|
tint,
|
|
54
54
|
tokyoNightPalette
|
|
55
55
|
};
|
|
56
|
-
//# sourceMappingURL=palettes-
|
|
56
|
+
//# sourceMappingURL=palettes-WO3VA6NU.js.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
parseVersionControl
|
|
3
|
+
} from "./chunk-D64FRGKU.js";
|
|
4
|
+
import "./chunk-3KOPPSUQ.js";
|
|
5
|
+
import "./chunk-EXNKNJ65.js";
|
|
6
|
+
import "./chunk-OLMWTJVU.js";
|
|
7
|
+
import "./chunk-5WRI5ZAA.js";
|
|
8
|
+
export {
|
|
9
|
+
parseVersionControl
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=parser-4TX6U4ZU.js.map
|
|
@@ -3,15 +3,15 @@ import {
|
|
|
3
3
|
looksLikePert,
|
|
4
4
|
parseEdgeLabel,
|
|
5
5
|
parsePert
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-DIKIHU52.js";
|
|
7
7
|
import "./chunk-3TYUXC7D.js";
|
|
8
8
|
import "./chunk-EQW6HOP4.js";
|
|
9
9
|
import "./chunk-DAOFNU6J.js";
|
|
10
10
|
import "./chunk-NOTA6TEI.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-D5FANMSG.js";
|
|
12
|
+
import "./chunk-3KOPPSUQ.js";
|
|
13
|
+
import "./chunk-EXNKNJ65.js";
|
|
14
|
+
import "./chunk-OLMWTJVU.js";
|
|
15
15
|
import "./chunk-5WRI5ZAA.js";
|
|
16
16
|
export {
|
|
17
17
|
extractPertSymbols,
|
|
@@ -19,4 +19,4 @@ export {
|
|
|
19
19
|
parseEdgeLabel,
|
|
20
20
|
parsePert
|
|
21
21
|
};
|
|
22
|
-
//# sourceMappingURL=parser-
|
|
22
|
+
//# sourceMappingURL=parser-4ZIJDGPG.js.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
looksLikeSitemap,
|
|
3
|
+
parseSitemap
|
|
4
|
+
} from "./chunk-OHBIN74X.js";
|
|
5
|
+
import "./chunk-IYULMRBE.js";
|
|
6
|
+
import "./chunk-NOTA6TEI.js";
|
|
7
|
+
import "./chunk-D5FANMSG.js";
|
|
8
|
+
import "./chunk-3KOPPSUQ.js";
|
|
9
|
+
import "./chunk-EXNKNJ65.js";
|
|
10
|
+
import "./chunk-OLMWTJVU.js";
|
|
11
|
+
import "./chunk-5WRI5ZAA.js";
|
|
12
|
+
export {
|
|
13
|
+
looksLikeSitemap,
|
|
14
|
+
parseSitemap
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=parser-5UZWYSIV.js.map
|
|
@@ -2,20 +2,20 @@ import {
|
|
|
2
2
|
GANTT_KNOWN_BOOLEANS,
|
|
3
3
|
GANTT_KNOWN_OPTIONS,
|
|
4
4
|
parseGantt
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ADKDIWCW.js";
|
|
6
6
|
import "./chunk-EQW6HOP4.js";
|
|
7
7
|
import "./chunk-DAOFNU6J.js";
|
|
8
|
-
import "./chunk-R3XI2VC7.js";
|
|
9
|
-
import "./chunk-JYDMBWRP.js";
|
|
10
8
|
import "./chunk-NOTA6TEI.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-D5FANMSG.js";
|
|
10
|
+
import "./chunk-3KOPPSUQ.js";
|
|
11
|
+
import "./chunk-R3XI2VC7.js";
|
|
12
|
+
import "./chunk-42IT4BG2.js";
|
|
13
|
+
import "./chunk-EXNKNJ65.js";
|
|
14
|
+
import "./chunk-OLMWTJVU.js";
|
|
15
15
|
import "./chunk-5WRI5ZAA.js";
|
|
16
16
|
export {
|
|
17
17
|
GANTT_KNOWN_BOOLEANS,
|
|
18
18
|
GANTT_KNOWN_OPTIONS,
|
|
19
19
|
parseGantt
|
|
20
20
|
};
|
|
21
|
-
//# sourceMappingURL=parser-
|
|
21
|
+
//# sourceMappingURL=parser-5WMH55UA.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
parseFamily
|
|
3
|
+
} from "./chunk-ES3MUYRX.js";
|
|
4
|
+
import "./chunk-QQJUTGQH.js";
|
|
5
|
+
import "./chunk-NOTA6TEI.js";
|
|
6
|
+
import "./chunk-D5FANMSG.js";
|
|
7
|
+
import "./chunk-3KOPPSUQ.js";
|
|
8
|
+
import "./chunk-EXNKNJ65.js";
|
|
9
|
+
import "./chunk-OLMWTJVU.js";
|
|
10
|
+
import "./chunk-5WRI5ZAA.js";
|
|
11
|
+
export {
|
|
12
|
+
parseFamily
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=parser-6CM27UPA.js.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
parsePyramid
|
|
3
|
+
} from "./chunk-MGLJA5TK.js";
|
|
4
|
+
import "./chunk-3KOPPSUQ.js";
|
|
5
|
+
import "./chunk-EXNKNJ65.js";
|
|
6
|
+
import "./chunk-OLMWTJVU.js";
|
|
7
|
+
import "./chunk-5WRI5ZAA.js";
|
|
8
|
+
export {
|
|
9
|
+
parsePyramid
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=parser-73YUU35J.js.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
looksLikeOrg,
|
|
3
|
+
parseOrg
|
|
4
|
+
} from "./chunk-PFG3EVRD.js";
|
|
5
|
+
import "./chunk-NOTA6TEI.js";
|
|
6
|
+
import "./chunk-D5FANMSG.js";
|
|
7
|
+
import "./chunk-3KOPPSUQ.js";
|
|
8
|
+
import "./chunk-EXNKNJ65.js";
|
|
9
|
+
import "./chunk-OLMWTJVU.js";
|
|
10
|
+
import "./chunk-5WRI5ZAA.js";
|
|
11
|
+
export {
|
|
12
|
+
looksLikeOrg,
|
|
13
|
+
parseOrg
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=parser-CCAUZLYI.js.map
|