@diagrammo/dgmo 0.71.0 → 0.73.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 +54 -37
- package/dist/advanced.js +116 -117
- package/dist/{analyzer-HQUXKZ5J.js → analyzer-KQWXVQOI.js} +3 -3
- package/dist/block.d.ts +2 -2
- package/dist/block.js +64 -76
- package/dist/calculator-2Z5DUTOB.js +13 -0
- package/dist/{chart-meta-6JaOudSs.d.ts → chart-meta-lP8Rl19E.d.ts} +4 -3
- package/dist/chart-meta.d.ts +3 -3
- package/dist/chart-meta.js +49 -49
- package/dist/{charts-d3-6IHGTXBR.js → charts-d3-S6JPQQFZ.js} +12 -12
- package/dist/{chunk-YYVTBZZC.js → chunk-24YPR5EH.js} +1 -1
- package/dist/{chunk-7BHM774H.js → chunk-25LXU4OQ.js} +8 -8
- package/dist/{chunk-7SEQPFBX.js → chunk-2AC2KTVM.js} +33 -28
- package/dist/{chunk-NUF7YTHA.js → chunk-2M2UC5EU.js} +3 -3
- package/dist/{chunk-CGLBK5Q4.js → chunk-2PU5XWLA.js} +2 -2
- package/dist/{chunk-MWWRIOEN.js → chunk-2TFWQM3E.js} +3 -3
- package/dist/{chunk-FLXDMH7B.js → chunk-3ATHNEOQ.js} +30 -24
- package/dist/{chunk-FFD6A3B2.js → chunk-3AXUJ5PT.js} +16 -10
- package/dist/{chunk-IFJIYUI6.js → chunk-3OKBXV3I.js} +4 -4
- package/dist/{chunk-LJS4Z326.js → chunk-3X3UD7PN.js} +6 -6
- package/dist/{chunk-DPGI742S.js → chunk-4FKEI4MF.js} +4 -4
- package/dist/{chunk-WPXHTYET.js → chunk-4K5H6LON.js} +4 -4
- package/dist/{chunk-LTGOPJUV.js → chunk-4NYJEK4R.js} +3 -3
- package/dist/{chunk-MTPKBSTR.js → chunk-4SXHMFFP.js} +2 -2
- package/dist/{chunk-VE7PPEU3.js → chunk-54SJUHNY.js} +8 -8
- package/dist/{chunk-BYSRXYRW.js → chunk-5EI23VVR.js} +6 -6
- package/dist/{chunk-OLMWTJVU.js → chunk-5SI6T5A5.js} +1 -1
- package/dist/{chunk-UJXCDF4E.js → chunk-5VMUVJO4.js} +2 -2
- package/dist/{chunk-ZGVVPILJ.js → chunk-6DYZ2JM6.js} +2 -2
- package/dist/{chunk-ELIGVSLE.js → chunk-6G2GJGUC.js} +12 -6
- package/dist/{chunk-E36Q5ABQ.js → chunk-6LGPL4LP.js} +7 -7
- package/dist/{chunk-KJWIU5AM.js → chunk-7GYSVN4Z.js} +3 -3
- package/dist/{chunk-YTFA4VTW.js → chunk-7S5WQXI3.js} +3 -3
- package/dist/{chunk-MKNWMFZU.js → chunk-7VMUKH2Z.js} +31 -27
- package/dist/{chunk-ZNHPCITV.js → chunk-A34AXXBO.js} +8 -8
- package/dist/{chunk-TGGKBY22.js → chunk-ABH626W7.js} +15 -10
- package/dist/{chunk-722TKHMS.js → chunk-AG3Z47VY.js} +11 -11
- package/dist/{chunk-T7W5LM4N.js → chunk-AMYMV4JZ.js} +5 -5
- package/dist/{chunk-KOVRFBGR.js → chunk-ARM4G2HJ.js} +16 -11
- package/dist/{chunk-XQW4KFJ4.js → chunk-B5CIHVBP.js} +11 -11
- package/dist/{chunk-MC2H32SM.js → chunk-BVNTXVYJ.js} +4 -4
- package/dist/{chunk-T3LNWU7B.js → chunk-CLKRRKV6.js} +12 -12
- package/dist/{chunk-UY77QQWU.js → chunk-CVGTEAIO.js} +11 -7
- package/dist/{chunk-6EDBUKC7.js → chunk-D5ZZOTE6.js} +3 -3
- package/dist/{chunk-WMHHNK44.js → chunk-DGPFFRLS.js} +2 -2
- package/dist/{chunk-EETUTZ5C.js → chunk-DTYZAXEH.js} +2 -2
- package/dist/{chunk-UIBPFSIT.js → chunk-DZC2OCK3.js} +11 -11
- package/dist/{chunk-REBTZP3W.js → chunk-E27E4ZFN.js} +6 -6
- package/dist/{chunk-BSI5EOAX.js → chunk-E3BJVEMZ.js} +7 -11
- package/dist/{chunk-7NK42OIB.js → chunk-E6PNTYRK.js} +2 -2
- package/dist/{chunk-3SNE4CLI.js → chunk-EPJHJF3J.js} +7 -7
- package/dist/{chunk-HBVKOYZD.js → chunk-FGXBIOVK.js} +3 -3
- package/dist/{chunk-YCOGUPHL.js → chunk-FQDH6AL3.js} +10 -10
- package/dist/{chunk-XIZCHGP7.js → chunk-FQFQGPWA.js} +9 -9
- package/dist/{chunk-IKHV5IJB.js → chunk-GE5RO4BS.js} +2 -2
- package/dist/{chunk-KWRW6BLG.js → chunk-GLREDNBA.js} +2 -2
- package/dist/{chunk-UVAOL2EO.js → chunk-H454ZVAS.js} +291 -29
- package/dist/{chunk-VMXV2CL5.js → chunk-HQ34V2XV.js} +5 -5
- package/dist/{chunk-YG35ZCNW.js → chunk-I4YT5KL6.js} +36 -32
- package/dist/{chunk-QAJFIXJE.js → chunk-IDEJ3J4J.js} +28 -28
- package/dist/{chunk-TF7CFAZ5.js → chunk-IEZYF5CN.js} +4 -4
- package/dist/{chunk-RRX4Z4TH.js → chunk-IHOFUR74.js} +2 -2
- package/dist/{chunk-3HN32MEK.js → chunk-INOSOL3J.js} +4 -4
- package/dist/{chunk-HTGYAMOK.js → chunk-ITAFWUSB.js} +3 -3
- package/dist/{chunk-MX3BYU7V.js → chunk-JLSGQMRA.js} +3 -3
- package/dist/{chunk-5GTYY2XV.js → chunk-JPVRJS74.js} +7 -7
- package/dist/{chunk-C3MVZ7EW.js → chunk-K3O2CZTD.js} +7 -7
- package/dist/{chunk-2JY7KE7C.js → chunk-K7P4SCB3.js} +9 -9
- package/dist/{chunk-UTVKOGFF.js → chunk-KCHCOXAL.js} +94 -40
- package/dist/{chunk-VGLSKDDI.js → chunk-KI2L4DWM.js} +3 -3
- package/dist/{chunk-AEYRSPVV.js → chunk-KUDYLU3M.js} +3 -3
- package/dist/{chunk-FAJS2N4O.js → chunk-KZKRK57S.js} +12 -12
- package/dist/{chunk-4VUFJ7UA.js → chunk-LGASNVZE.js} +6 -6
- package/dist/{chunk-ET4R3AU5.js → chunk-LM3HY3VG.js} +2 -2
- package/dist/{chunk-RJI6MHHK.js → chunk-LMJKHQ4W.js} +6 -6
- package/dist/{chunk-ZJJWON5O.js → chunk-MK55PZVB.js} +268 -3
- package/dist/{chunk-RTTELOOP.js → chunk-MS5574I7.js} +3 -3
- package/dist/{chunk-I55PVEIX.js → chunk-MSVQ2YCY.js} +2 -2
- package/dist/{chunk-WEC3JPTN.js → chunk-MZMK474U.js} +8 -8
- package/dist/{chunk-NTBHGUXY.js → chunk-NE7JHZCQ.js} +4 -4
- package/dist/{chunk-JIWDWOYA.js → chunk-NQJ7DDUT.js} +4 -4
- package/dist/{chunk-6S53NO3M.js → chunk-O7ZKDUDX.js} +5 -5
- package/dist/{chunk-PBV2C3BW.js → chunk-OMQ5V5NH.js} +24 -20
- package/dist/{chunk-W27BULCB.js → chunk-OR3OX32W.js} +9 -9
- package/dist/{chunk-MFSTE3YG.js → chunk-OYK45NY5.js} +26 -18
- package/dist/{chunk-ISKO4MQ5.js → chunk-PFZDLHHG.js} +10 -10
- package/dist/{chunk-ENJWB5LU.js → chunk-PJHYUVD3.js} +28 -24
- package/dist/{chunk-K6MQJ5IV.js → chunk-Q446PFCV.js} +3 -3
- package/dist/{chunk-IW6N2JJL.js → chunk-Q74GP3GK.js} +2 -2
- package/dist/{chunk-7REARI5N.js → chunk-QFHPGDR5.js} +2 -2
- package/dist/{chunk-QPG55HGH.js → chunk-RJUMXXKR.js} +5 -5
- package/dist/{chunk-SPA7DCB3.js → chunk-RN3PAL4E.js} +3 -3
- package/dist/{chunk-IQ4W4Q2R.js → chunk-RXSAE6F5.js} +5 -5
- package/dist/{chunk-W7SZKJR6.js → chunk-RYHZFP7Y.js} +4 -4
- package/dist/{chunk-WF2HDQPG.js → chunk-S6OXNZBM.js} +3 -3
- package/dist/{chunk-UNM2PX5D.js → chunk-SNZFXGSE.js} +4 -4
- package/dist/{chunk-LSHROB27.js → chunk-T4L4LKXO.js} +5 -5
- package/dist/{chunk-CH4WODSG.js → chunk-TJS3J5B3.js} +19 -7
- package/dist/{chunk-7TSBM4BV.js → chunk-TP42IN23.js} +5 -5
- package/dist/{chunk-XJZSN42P.js → chunk-TTVHS3D5.js} +102 -100
- package/dist/{chunk-6PA32CUB.js → chunk-TXWW4UZM.js} +4 -4
- package/dist/{chunk-LUI425JB.js → chunk-V7E3RZLQ.js} +6 -6
- package/dist/{chunk-NNMNHE3J.js → chunk-VQEW7XMN.js} +3 -3
- package/dist/{chunk-YYBQ55V2.js → chunk-VWIXRNY2.js} +4 -4
- package/dist/{chunk-YH5KJIO5.js → chunk-W242EWZZ.js} +8 -8
- package/dist/{chunk-LXGUK56B.js → chunk-WDKLODC3.js} +11 -11
- package/dist/{chunk-OQKP2X3D.js → chunk-WFA6IULY.js} +57 -3
- package/dist/{chunk-HWNF22ZZ.js → chunk-WPEHUSUQ.js} +5 -5
- package/dist/{chunk-NJKUTY4M.js → chunk-WTMP6VZ6.js} +5 -5
- package/dist/{chunk-CR5WIA6I.js → chunk-X6LVGU4W.js} +13 -4
- package/dist/{chunk-IWNHEK5K.js → chunk-X6LXZJPT.js} +8 -8
- package/dist/{chunk-X2NX2SK6.js → chunk-XGBUCXU7.js} +5 -5
- package/dist/{chunk-NEC7R2CB.js → chunk-XL2C26LV.js} +3 -3
- package/dist/{chunk-EXNKNJ65.js → chunk-XOGQY4EC.js} +2 -2
- package/dist/{chunk-UNTFANSM.js → chunk-XOOYMOIW.js} +15 -10
- package/dist/{chunk-DEVZWCD5.js → chunk-XUCHK3OJ.js} +21 -12
- package/dist/{chunk-RNSGPTOZ.js → chunk-XVJWAE2F.js} +8 -8
- package/dist/{chunk-PZVYUQJA.js → chunk-YDA46XHI.js} +4 -4
- package/dist/{chunk-PLSTP7P4.js → chunk-YGKYQ7LA.js} +72 -387
- package/dist/{chunk-6CLC26GU.js → chunk-YJMWEZOB.js} +2 -2
- package/dist/{chunk-QX53GOI7.js → chunk-YT5ICQ4R.js} +2 -2
- package/dist/{chunk-376ATV2Q.js → chunk-ZIJXK3U5.js} +5 -5
- package/dist/{chunk-5DYDPP7K.js → chunk-ZQ5SROS2.js} +115 -240
- package/dist/completion-registry.js +24 -21
- package/dist/countdown.js +26 -6
- package/dist/{d3-Bfhj-XBX.d.ts → d3--y67plmW.d.ts} +1 -1
- package/dist/dgmo-router-AE6FUBV3.js +89 -0
- package/dist/{dgmo-router-Lya7cs3R.d.ts → dgmo-router-CY5j16Pl.d.ts} +1 -1
- package/dist/dimensions-PRZSDFWR.js +22 -0
- package/dist/flowchart-parser-HR25V5AH.js +21 -0
- package/dist/{flowchart-renderer-HB277GNE.js → flowchart-renderer-FY63GDRH.js} +13 -13
- package/dist/highlight.js +6 -18
- package/dist/index.d.ts +7 -7
- package/dist/index.js +65 -59
- package/dist/{layout-AWPST2S3.js → layout-43A4YMAH.js} +7 -7
- package/dist/layout-4URV4OXF.js +15 -0
- package/dist/{layout-RD7GDM4I.js → layout-B5GQVXXY.js} +4 -4
- package/dist/layout-BWHNERBW.js +15 -0
- package/dist/{layout-5RUQ5FBZ.js → layout-DAYQ46PS.js} +3 -3
- package/dist/{layout-LVMWK4QY.js → layout-KQUSB45X.js} +4 -4
- package/dist/{layout-2DVT24YY.js → layout-O4PR46GN.js} +6 -6
- package/dist/layout-PKGNLY6P.js +15 -0
- package/dist/{layout-WIMQIHBU.js → layout-ROORJQ4X.js} +4 -4
- package/dist/{layout-BGXLVSXL.js → layout-U5OVRUOK.js} +8 -8
- package/dist/{layout-search-C44CJQOB.js → layout-search-UOKEMER5.js} +4 -4
- package/dist/{legend-constants-FP5MFDD4.js → legend-constants-PLN2YHGM.js} +5 -5
- package/dist/{palettes-WQZ2TPVZ.js → palettes-54YSI3IX.js} +4 -4
- package/dist/parser-23MYMNF6.js +14 -0
- package/dist/parser-2FNHLEBN.js +12 -0
- package/dist/{parser-XM6JC3UK.js → parser-2FZ4BDEW.js} +6 -6
- package/dist/parser-3JDQL7QF.js +15 -0
- package/dist/parser-5CAGM3ED.js +16 -0
- package/dist/parser-5RY6ID5M.js +18 -0
- package/dist/parser-6YBYIFS2.js +13 -0
- package/dist/parser-A665TNOV.js +20 -0
- package/dist/parser-AN4SUBQ6.js +11 -0
- package/dist/parser-BC2TAVB3.js +11 -0
- package/dist/parser-BCQBK2XB.js +12 -0
- package/dist/parser-BTTFGJGI.js +12 -0
- package/dist/parser-CAAFD3HB.js +19 -0
- package/dist/parser-COBTDQPC.js +11 -0
- package/dist/parser-DBOJKLDF.js +14 -0
- package/dist/{parser-TJ3SP2MJ.js → parser-DIQ2E5MR.js} +7 -7
- package/dist/parser-EDXD6ZGJ.js +13 -0
- package/dist/parser-GPZYL6ZE.js +11 -0
- package/dist/parser-MDYNA6JL.js +17 -0
- package/dist/parser-PCALQIW2.js +17 -0
- package/dist/parser-PDPZ2I6C.js +13 -0
- package/dist/parser-SQFNO6XG.js +15 -0
- package/dist/{parser-ZIEEBJMU.js → parser-SQMOEVG4.js} +7 -7
- package/dist/parser-TATBFGQ2.js +15 -0
- package/dist/{parser-EX3AGFT5.js → parser-VJEHPDOO.js} +6 -6
- package/dist/{parser-O7GTECFP.js → parser-VQX2LVUJ.js} +5 -5
- package/dist/{parser-CDMP3UVH.js → parser-W2LEO5QM.js} +7 -7
- package/dist/parser-W3QZBUOF.js +13 -0
- package/dist/parser-WQCSMLUI.js +15 -0
- package/dist/parser-X5RGCC3C.js +11 -0
- package/dist/parser-XGUJ7SMG.js +13 -0
- package/dist/parser-XS7DL63K.js +16 -0
- package/dist/parser-XTSWP4N3.js +11 -0
- package/dist/pert.d.ts +10 -0
- package/dist/renderer-2DIH3YW6.js +27 -0
- package/dist/{renderer-JWSO5O2L.js → renderer-2E2Z5N66.js} +7 -7
- package/dist/renderer-4HGNWJRC.js +25 -0
- package/dist/renderer-6U6YW4HX.js +26 -0
- package/dist/renderer-AKZECRNK.js +39 -0
- package/dist/{renderer-7VPABTMS.js → renderer-BUMIZJIY.js} +15 -15
- package/dist/renderer-BY5AAKV7.js +25 -0
- package/dist/renderer-DU6D3S6K.js +27 -0
- package/dist/{renderer-5YV6KP4U.js → renderer-EAQNSDTC.js} +13 -13
- package/dist/{renderer-FAD65M5Z.js → renderer-EP4GRCDX.js} +6 -6
- package/dist/{renderer-LVAUI6T6.js → renderer-GQUJVPVA.js} +14 -14
- package/dist/renderer-HZCYBOAB.js +16 -0
- package/dist/renderer-IMZKZ6TV.js +23 -0
- package/dist/renderer-J2N5YBFP.js +16 -0
- package/dist/renderer-KJNTNI22.js +26 -0
- package/dist/renderer-LKZZID6J.js +76 -0
- package/dist/renderer-MCWAHNQG.js +22 -0
- package/dist/renderer-MJCSBYAR.js +25 -0
- package/dist/renderer-NXOSBZPO.js +30 -0
- package/dist/renderer-ODDULMVE.js +20 -0
- package/dist/renderer-OTHBTGBN.js +16 -0
- package/dist/{renderer-ZEPPPA3W.js → renderer-R7Q72DM4.js} +7 -7
- package/dist/renderer-S42JPAZO.js +24 -0
- package/dist/{renderer-QZRM6H4S.js → renderer-SCIHPARI.js} +5 -5
- package/dist/{renderer-BQWAUDEF.js → renderer-SW5YUK6H.js} +9 -9
- package/dist/{renderer-KFWZPVYT.js → renderer-TBWE67FB.js} +13 -13
- package/dist/renderer-V7476J5G.js +39 -0
- package/dist/renderer-VG4C23TY.js +21 -0
- package/dist/{renderer-S5MGQHRQ.js → renderer-WG6CUDWI.js} +14 -14
- package/dist/{renderer-2MEPYGAP.js → renderer-XL54ZE4H.js} +13 -13
- package/dist/{renderer-QOWN3XDI.js → renderer-XNLRQWM6.js} +14 -14
- package/dist/renderer-YIJYYZZE.js +28 -0
- package/dist/{renderer-7BGC4KPZ.js → renderer-YX6S3U4L.js} +12 -12
- package/dist/renderer-radial-ZZAAPDSY.js +21 -0
- package/dist/{resolver-B3TXWNWF.js → resolver-H5E6V7LJ.js} +3 -3
- package/dist/state-parser-4DJ67MNV.js +19 -0
- package/dist/state-renderer-IABX3URA.js +40 -0
- package/dist/{tag-groups-NUA2F1I5.d.ts → tag-groups-DrHT2tEc.d.ts} +10 -0
- package/dist/{themes-Dem5xalq.d.ts → themes-GWhsabnx.d.ts} +2 -2
- package/docs/language-reference.md +49 -11
- package/gallery/fixtures/countdown.dgmo +1 -1
- package/package.json +1 -1
- package/dist/calculator-4CNL2GKU.js +0 -13
- package/dist/dgmo-router-J6OWNMEJ.js +0 -89
- package/dist/dimensions-EFEBIRS6.js +0 -22
- package/dist/flowchart-parser-LZF2GW2P.js +0 -21
- package/dist/layout-BNR6ZDB6.js +0 -15
- package/dist/layout-N6ZOOAYT.js +0 -15
- package/dist/layout-PBB2RQJ4.js +0 -15
- package/dist/parser-2CXA7K5C.js +0 -13
- package/dist/parser-4E2TVMOK.js +0 -13
- package/dist/parser-52AZJ3BA.js +0 -17
- package/dist/parser-52BOCAVQ.js +0 -15
- package/dist/parser-5IPCYVXY.js +0 -12
- package/dist/parser-6BF5TJQH.js +0 -16
- package/dist/parser-6VZISXFY.js +0 -11
- package/dist/parser-6Y5BMNNJ.js +0 -14
- package/dist/parser-7HUZBXKW.js +0 -11
- package/dist/parser-AEJ73QJS.js +0 -11
- package/dist/parser-AWNEAGMJ.js +0 -12
- package/dist/parser-C2QRTZPJ.js +0 -13
- package/dist/parser-CBSYFN6U.js +0 -11
- package/dist/parser-CNKHKQKZ.js +0 -17
- package/dist/parser-GK3JWVHY.js +0 -18
- package/dist/parser-GZKR6BFA.js +0 -14
- package/dist/parser-K26KDCZN.js +0 -11
- package/dist/parser-LTJ5AKY4.js +0 -16
- package/dist/parser-NIGB4EYX.js +0 -12
- package/dist/parser-OHWDJGCP.js +0 -15
- package/dist/parser-QCVEWLCO.js +0 -15
- package/dist/parser-SUAOF72Y.js +0 -13
- package/dist/parser-W2HXBHNC.js +0 -11
- package/dist/parser-WF4R7225.js +0 -15
- package/dist/parser-XRZQ7SC7.js +0 -13
- package/dist/parser-YRJAGBV7.js +0 -19
- package/dist/parser-Z3LN7P6G.js +0 -20
- package/dist/renderer-35HBBPIQ.js +0 -26
- package/dist/renderer-3DSU72CP.js +0 -30
- package/dist/renderer-4CUV63GT.js +0 -39
- package/dist/renderer-4ORE7HJ3.js +0 -28
- package/dist/renderer-52KYFTNZ.js +0 -16
- package/dist/renderer-5FQFMCBZ.js +0 -39
- package/dist/renderer-ANWAX5QO.js +0 -27
- package/dist/renderer-DGZDRRJW.js +0 -76
- package/dist/renderer-E3UQ24DE.js +0 -25
- package/dist/renderer-FCIOD2QK.js +0 -22
- package/dist/renderer-H5QR3LC3.js +0 -16
- package/dist/renderer-JFZVWH2G.js +0 -16
- package/dist/renderer-JHWGW4Q7.js +0 -25
- package/dist/renderer-KQIJV5WD.js +0 -19
- package/dist/renderer-MZ4N2SVV.js +0 -25
- package/dist/renderer-QMSFXMAL.js +0 -21
- package/dist/renderer-V3PN5ZQS.js +0 -24
- package/dist/renderer-VOXE7V6L.js +0 -27
- package/dist/renderer-WBG576LB.js +0 -26
- package/dist/renderer-YXYEP46H.js +0 -23
- package/dist/renderer-radial-KZ3W4WXI.js +0 -21
- package/dist/state-parser-HJNCGIFT.js +0 -19
- package/dist/state-renderer-776LP3NE.js +0 -40
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
tryCollectNote
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JLSGQMRA.js";
|
|
4
4
|
import {
|
|
5
5
|
resolveNotes
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-E6PNTYRK.js";
|
|
7
7
|
import {
|
|
8
8
|
parseInArrowLabel
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-IHOFUR74.js";
|
|
10
10
|
import {
|
|
11
11
|
displayName,
|
|
12
12
|
normalizeName
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
tagAttrKey,
|
|
20
20
|
validateTagGroupNames,
|
|
21
21
|
validateTagValues
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-4FKEI4MF.js";
|
|
23
23
|
import {
|
|
24
24
|
ALL_CHART_TYPES,
|
|
25
25
|
FILL_FAMILY_TOKENS,
|
|
@@ -32,17 +32,17 @@ import {
|
|
|
32
32
|
parseMetadataRegion,
|
|
33
33
|
tryParseSharedOption,
|
|
34
34
|
withTagAliases
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-MK55PZVB.js";
|
|
36
36
|
import {
|
|
37
37
|
resolveColorWithDiagnostic
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-XOGQY4EC.js";
|
|
39
39
|
import {
|
|
40
40
|
NAME_DIAGNOSTIC_CODES,
|
|
41
41
|
formatDgmoError,
|
|
42
42
|
makeDgmoError,
|
|
43
43
|
nameMergedMessage,
|
|
44
44
|
suggest
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-5SI6T5A5.js";
|
|
46
46
|
|
|
47
47
|
// src/graph/state-parser.ts
|
|
48
48
|
var PSEUDOSTATE_ID = "pseudostate:[*]";
|
|
@@ -543,4 +543,4 @@ export {
|
|
|
543
543
|
parseState,
|
|
544
544
|
looksLikeState
|
|
545
545
|
};
|
|
546
|
-
//# sourceMappingURL=chunk-
|
|
546
|
+
//# sourceMappingURL=chunk-W242EWZZ.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-PDKUANDZ.js";
|
|
5
5
|
import {
|
|
6
6
|
layoutGraph
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-GE5RO4BS.js";
|
|
8
8
|
import {
|
|
9
9
|
appendArrowheadMarkers
|
|
10
10
|
} from "./chunk-LP7EC4MI.js";
|
|
@@ -14,17 +14,17 @@ import {
|
|
|
14
14
|
renderNoteBadge,
|
|
15
15
|
renderNoteBox,
|
|
16
16
|
renderNoteConnector
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-Q74GP3GK.js";
|
|
18
18
|
import {
|
|
19
19
|
EDGE_STROKE_WIDTH,
|
|
20
20
|
NODE_STROKE_WIDTH
|
|
21
21
|
} from "./chunk-FJ57274M.js";
|
|
22
22
|
import {
|
|
23
23
|
ScaleContext
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-24YPR5EH.js";
|
|
25
25
|
import {
|
|
26
26
|
layoutInlineHeader
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-YJMWEZOB.js";
|
|
28
28
|
import {
|
|
29
29
|
serializeSvg
|
|
30
30
|
} from "./chunk-RU2HHHYA.js";
|
|
@@ -35,11 +35,11 @@ import {
|
|
|
35
35
|
} from "./chunk-A4GOY3PE.js";
|
|
36
36
|
import {
|
|
37
37
|
renderIntegratedLegend
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-O7ZKDUDX.js";
|
|
39
39
|
import {
|
|
40
40
|
getLegendExtent,
|
|
41
41
|
getMaxLegendReservedHeight
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-4SXHMFFP.js";
|
|
43
43
|
import {
|
|
44
44
|
FONT_FAMILY
|
|
45
45
|
} from "./chunk-UTCPNJND.js";
|
|
@@ -48,23 +48,23 @@ import {
|
|
|
48
48
|
} from "./chunk-MTGGOCND.js";
|
|
49
49
|
import {
|
|
50
50
|
parseState
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-W242EWZZ.js";
|
|
52
52
|
import {
|
|
53
53
|
resolveActiveTagGroup,
|
|
54
54
|
resolveTagColor,
|
|
55
55
|
tagAttrKey
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-4FKEI4MF.js";
|
|
57
57
|
import {
|
|
58
58
|
fillModeFromOptions,
|
|
59
59
|
legendInlineRequested,
|
|
60
60
|
legendSuppressed
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-MK55PZVB.js";
|
|
62
62
|
import {
|
|
63
63
|
contrastText,
|
|
64
64
|
mix,
|
|
65
65
|
shapeFill,
|
|
66
66
|
themeBaseBg
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-GLREDNBA.js";
|
|
68
68
|
|
|
69
69
|
// src/graph/state-renderer.ts
|
|
70
70
|
import * as d3Selection from "d3-selection";
|
|
@@ -481,4 +481,4 @@ export {
|
|
|
481
481
|
renderState,
|
|
482
482
|
renderStateForExport
|
|
483
483
|
};
|
|
484
|
-
//# sourceMappingURL=chunk-
|
|
484
|
+
//# sourceMappingURL=chunk-WDKLODC3.js.map
|
|
@@ -97,6 +97,38 @@ function targetToMs(target, tz = null) {
|
|
|
97
97
|
}
|
|
98
98
|
return new Date(s).getTime();
|
|
99
99
|
}
|
|
100
|
+
function ruleFromAnchor(cadence, anchorMs, allDay, tz) {
|
|
101
|
+
const a = zoneFields(anchorMs, tz);
|
|
102
|
+
const base = {
|
|
103
|
+
hour: allDay ? 0 : a.hour,
|
|
104
|
+
minute: allDay ? 0 : a.minute,
|
|
105
|
+
allDay,
|
|
106
|
+
anchorMs,
|
|
107
|
+
...tz ? { tz } : {}
|
|
108
|
+
};
|
|
109
|
+
switch (cadence.kind) {
|
|
110
|
+
case "year":
|
|
111
|
+
return { ...base, kind: "month-day", month: a.month, day: a.day };
|
|
112
|
+
case "week":
|
|
113
|
+
return { ...base, kind: "weekly", weekday: a.weekday };
|
|
114
|
+
case "month-weekday":
|
|
115
|
+
return cadence.last ? { ...base, kind: "last-weekday", weekday: a.weekday } : {
|
|
116
|
+
...base,
|
|
117
|
+
kind: "nth-weekday",
|
|
118
|
+
weekday: a.weekday,
|
|
119
|
+
nth: Math.floor((a.day - 1) / 7) + 1
|
|
120
|
+
};
|
|
121
|
+
case "month":
|
|
122
|
+
return { ...base, kind: "interval", intervalUnit: "month", intervalN: 1 };
|
|
123
|
+
case "interval":
|
|
124
|
+
return {
|
|
125
|
+
...base,
|
|
126
|
+
kind: "interval",
|
|
127
|
+
intervalUnit: cadence.unit,
|
|
128
|
+
intervalN: cadence.n
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
}
|
|
100
132
|
function monthIndex(token) {
|
|
101
133
|
const t = token.trim().toLowerCase().slice(0, 3);
|
|
102
134
|
const i = [
|
|
@@ -238,8 +270,29 @@ function resolveNext(rule, now) {
|
|
|
238
270
|
}
|
|
239
271
|
}
|
|
240
272
|
}
|
|
241
|
-
function ordinalFor(resolvedMs,
|
|
242
|
-
|
|
273
|
+
function ordinalFor(resolvedMs, rule) {
|
|
274
|
+
const anchor = rule.anchorMs;
|
|
275
|
+
if (anchor === void 0) return 0;
|
|
276
|
+
const tz = rule.tz ?? null;
|
|
277
|
+
const a = zoneFields(anchor, tz);
|
|
278
|
+
const r = zoneFields(resolvedMs, tz);
|
|
279
|
+
const months = (r.year - a.year) * 12 + (r.month - a.month);
|
|
280
|
+
const spanDays = (dayStart(resolvedMs, tz) - dayStart(anchor, tz)) / DAY_MS;
|
|
281
|
+
switch (rule.kind) {
|
|
282
|
+
case "month-day":
|
|
283
|
+
return r.year - a.year;
|
|
284
|
+
case "nth-weekday":
|
|
285
|
+
case "last-weekday":
|
|
286
|
+
return months;
|
|
287
|
+
case "weekly":
|
|
288
|
+
return Math.round(spanDays / 7);
|
|
289
|
+
case "interval": {
|
|
290
|
+
const n = rule.intervalN ?? 1;
|
|
291
|
+
if (rule.intervalUnit === "month") return Math.floor(months / n);
|
|
292
|
+
const perStep = rule.intervalUnit === "week" ? 7 : 1;
|
|
293
|
+
return Math.round(spanDays / perStep / n);
|
|
294
|
+
}
|
|
295
|
+
}
|
|
243
296
|
}
|
|
244
297
|
function roundBy(value, mode) {
|
|
245
298
|
return mode === "down" ? Math.floor(value) : mode === "nearest" ? Math.round(value) : Math.ceil(value);
|
|
@@ -395,6 +448,7 @@ function formatFooter(resolvedMs, hasTime, tz = null) {
|
|
|
395
448
|
export {
|
|
396
449
|
DAY_MS,
|
|
397
450
|
targetToMs,
|
|
451
|
+
ruleFromAnchor,
|
|
398
452
|
monthIndex,
|
|
399
453
|
weekdayIndex,
|
|
400
454
|
applyOrdinalTemplate,
|
|
@@ -411,4 +465,4 @@ export {
|
|
|
411
465
|
formatDateShort,
|
|
412
466
|
formatFooter
|
|
413
467
|
};
|
|
414
|
-
//# sourceMappingURL=chunk-
|
|
468
|
+
//# sourceMappingURL=chunk-WFA6IULY.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseInArrowLabel
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IHOFUR74.js";
|
|
4
4
|
import {
|
|
5
5
|
AUTO_TAG_COLOR_SENTINEL,
|
|
6
6
|
activeTagNoMatchMessage,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
stripDefaultModifier,
|
|
10
10
|
tagAttrKey,
|
|
11
11
|
validateTagGroupNames
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-4FKEI4MF.js";
|
|
13
13
|
import {
|
|
14
14
|
MAP_DIRECTIVE_KEY_SET,
|
|
15
15
|
MAP_REGISTRY,
|
|
@@ -18,13 +18,13 @@ import {
|
|
|
18
18
|
peelRampColors,
|
|
19
19
|
splitNameAndMeta,
|
|
20
20
|
withTagAliases
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-MK55PZVB.js";
|
|
22
22
|
import {
|
|
23
23
|
NEGATIVE_VALUE_DX,
|
|
24
24
|
emit,
|
|
25
25
|
formatDgmoError,
|
|
26
26
|
makeDgmoError
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-5SI6T5A5.js";
|
|
28
28
|
|
|
29
29
|
// src/map/parser.ts
|
|
30
30
|
var COORD_RE = /^[+-]?\d+(?:\.\d+)?\s+[+-]?\d+(?:\.\d+)?$/;
|
|
@@ -657,4 +657,4 @@ export {
|
|
|
657
657
|
looksLikeMap,
|
|
658
658
|
parseMap
|
|
659
659
|
};
|
|
660
|
-
//# sourceMappingURL=chunk-
|
|
660
|
+
//# sourceMappingURL=chunk-WPEHUSUQ.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-RT7ACF77.js";
|
|
4
4
|
import {
|
|
5
5
|
parseInArrowLabel
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-IHOFUR74.js";
|
|
7
7
|
import {
|
|
8
8
|
normalizeName
|
|
9
9
|
} from "./chunk-NOTA6TEI.js";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
tagAttrKey,
|
|
17
17
|
validateTagGroupNames,
|
|
18
18
|
validateTagValues
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-4FKEI4MF.js";
|
|
20
20
|
import {
|
|
21
21
|
SKETCH_REGISTRY,
|
|
22
22
|
extractColor,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
stripQuotes,
|
|
28
28
|
warnUnknownMetaKeys,
|
|
29
29
|
withTagAliases
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-MK55PZVB.js";
|
|
31
31
|
import {
|
|
32
32
|
NAME_DIAGNOSTIC_CODES,
|
|
33
33
|
formatDgmoError,
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
makeFail,
|
|
36
36
|
nameMergedMessage,
|
|
37
37
|
suggest
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-5SI6T5A5.js";
|
|
39
39
|
|
|
40
40
|
// src/sketch/types.ts
|
|
41
41
|
var SKETCH_SHAPE_KINDS = [
|
|
@@ -632,4 +632,4 @@ export {
|
|
|
632
632
|
isSketchShapeKind,
|
|
633
633
|
parseSketch
|
|
634
634
|
};
|
|
635
|
-
//# sourceMappingURL=chunk-
|
|
635
|
+
//# sourceMappingURL=chunk-WTMP6VZ6.js.map
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
LEGEND_PILL_FONT_SIZE,
|
|
12
12
|
LEGEND_PILL_PAD,
|
|
13
13
|
measureLegendText
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-YT5ICQ4R.js";
|
|
15
15
|
import {
|
|
16
16
|
measureText
|
|
17
17
|
} from "./chunk-MTGGOCND.js";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
injectDefaultTagMetadata,
|
|
20
20
|
resolveTagColor,
|
|
21
21
|
tagAttrKey
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-4FKEI4MF.js";
|
|
23
23
|
|
|
24
24
|
// src/sitemap/layout.ts
|
|
25
25
|
import dagre from "@dagrejs/dagre";
|
|
@@ -595,7 +595,16 @@ function layoutSitemap(parsed, hiddenCounts, activeTagGroup, hiddenAttributes, e
|
|
|
595
595
|
const legendShift = LEGEND_HEIGHT + LEGEND_GROUP_GAP;
|
|
596
596
|
const totalGroupsWidth = visibleGroups.reduce((s, g2) => s + effectiveW(g2), 0) + (visibleGroups.length - 1) * LEGEND_GROUP_GAP;
|
|
597
597
|
const neededWidth = totalGroupsWidth + MARGIN * 2;
|
|
598
|
-
if (neededWidth > totalWidth)
|
|
598
|
+
if (neededWidth > totalWidth) {
|
|
599
|
+
const shift = (neededWidth - totalWidth) / 2;
|
|
600
|
+
totalWidth = neededWidth;
|
|
601
|
+
for (const n of layoutNodes) n.x += shift;
|
|
602
|
+
for (const c of layoutContainers) c.x += shift;
|
|
603
|
+
for (const e of layoutEdges) {
|
|
604
|
+
for (const p of e.points)
|
|
605
|
+
p.x += shift;
|
|
606
|
+
}
|
|
607
|
+
}
|
|
599
608
|
let cx = (totalWidth - totalGroupsWidth) / 2;
|
|
600
609
|
const legendY = totalHeight + LEGEND_GROUP_GAP;
|
|
601
610
|
for (const g2 of visibleGroups) {
|
|
@@ -618,4 +627,4 @@ function layoutSitemap(parsed, hiddenCounts, activeTagGroup, hiddenAttributes, e
|
|
|
618
627
|
export {
|
|
619
628
|
layoutSitemap
|
|
620
629
|
};
|
|
621
|
-
//# sourceMappingURL=chunk-
|
|
630
|
+
//# sourceMappingURL=chunk-X6LVGU4W.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
layoutJourneyMap,
|
|
4
4
|
scoreToColor,
|
|
5
5
|
scoreToCurveY
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2TFWQM3E.js";
|
|
7
7
|
import {
|
|
8
8
|
wrapNoteBody
|
|
9
9
|
} from "./chunk-MU3CJPJF.js";
|
|
@@ -18,13 +18,13 @@ import {
|
|
|
18
18
|
} from "./chunk-FJ57274M.js";
|
|
19
19
|
import {
|
|
20
20
|
ScaleContext
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-24YPR5EH.js";
|
|
22
22
|
import {
|
|
23
23
|
serializeSvg
|
|
24
24
|
} from "./chunk-RU2HHHYA.js";
|
|
25
25
|
import {
|
|
26
26
|
renderIntegratedLegend
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-O7ZKDUDX.js";
|
|
28
28
|
import {
|
|
29
29
|
FONT_FAMILY
|
|
30
30
|
} from "./chunk-UTCPNJND.js";
|
|
@@ -35,20 +35,20 @@ import {
|
|
|
35
35
|
} from "./chunk-MTGGOCND.js";
|
|
36
36
|
import {
|
|
37
37
|
parseJourneyMap
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-ZIJXK3U5.js";
|
|
39
39
|
import {
|
|
40
40
|
resolveActiveTagGroup,
|
|
41
41
|
tagAttrKey
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-4FKEI4MF.js";
|
|
43
43
|
import {
|
|
44
44
|
fillModeFromOptions
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-MK55PZVB.js";
|
|
46
46
|
import {
|
|
47
47
|
contrastText,
|
|
48
48
|
mix,
|
|
49
49
|
shapeFill,
|
|
50
50
|
themeBaseBg
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-GLREDNBA.js";
|
|
52
52
|
|
|
53
53
|
// src/journey-map/renderer.ts
|
|
54
54
|
import * as d3 from "d3-selection";
|
|
@@ -877,4 +877,4 @@ export {
|
|
|
877
877
|
renderJourneyMap,
|
|
878
878
|
renderJourneyMapForExport
|
|
879
879
|
};
|
|
880
|
-
//# sourceMappingURL=chunk-
|
|
880
|
+
//# sourceMappingURL=chunk-X6LXZJPT.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-WGC42WJU.js";
|
|
7
7
|
import {
|
|
8
8
|
ScaleContext
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-24YPR5EH.js";
|
|
10
10
|
import {
|
|
11
11
|
TITLE_FONT_SIZE,
|
|
12
12
|
TITLE_FONT_WEIGHT,
|
|
@@ -21,15 +21,15 @@ import {
|
|
|
21
21
|
} from "./chunk-MTGGOCND.js";
|
|
22
22
|
import {
|
|
23
23
|
fillModeFromOptions
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-MK55PZVB.js";
|
|
25
25
|
import {
|
|
26
26
|
contrastText,
|
|
27
27
|
getSeriesColors,
|
|
28
28
|
shapeFill
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-GLREDNBA.js";
|
|
30
30
|
import {
|
|
31
31
|
resolveColor
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-XOGQY4EC.js";
|
|
33
33
|
|
|
34
34
|
// src/ring/renderer.ts
|
|
35
35
|
import * as d3Selection from "d3-selection";
|
|
@@ -296,4 +296,4 @@ export {
|
|
|
296
296
|
renderRing,
|
|
297
297
|
renderRingForExport
|
|
298
298
|
};
|
|
299
|
-
//# sourceMappingURL=chunk-
|
|
299
|
+
//# sourceMappingURL=chunk-XGBUCXU7.js.map
|
|
@@ -7,11 +7,11 @@ import {
|
|
|
7
7
|
extractColor,
|
|
8
8
|
fillModeFromToken,
|
|
9
9
|
parseFirstLine
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-MK55PZVB.js";
|
|
11
11
|
import {
|
|
12
12
|
makeDgmoError,
|
|
13
13
|
makeFail
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-5SI6T5A5.js";
|
|
15
15
|
|
|
16
16
|
// src/clock/zone-coords.ts
|
|
17
17
|
var ZONE_COORDS = {
|
|
@@ -675,4 +675,4 @@ export {
|
|
|
675
675
|
searchZones,
|
|
676
676
|
parseClock
|
|
677
677
|
};
|
|
678
|
-
//# sourceMappingURL=chunk-
|
|
678
|
+
//# sourceMappingURL=chunk-XL2C26LV.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeDgmoError,
|
|
3
3
|
suggest
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-5SI6T5A5.js";
|
|
5
5
|
|
|
6
6
|
// src/colors.ts
|
|
7
7
|
var nord = {
|
|
@@ -293,4 +293,4 @@ export {
|
|
|
293
293
|
resolveColorWithDiagnostic,
|
|
294
294
|
seriesColors
|
|
295
295
|
};
|
|
296
|
-
//# sourceMappingURL=chunk-
|
|
296
|
+
//# sourceMappingURL=chunk-XOGQY4EC.js.map
|
|
@@ -1,31 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
2
|
tryCollectNote
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JLSGQMRA.js";
|
|
4
4
|
import {
|
|
5
5
|
resolveNotes
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-E6PNTYRK.js";
|
|
7
7
|
import {
|
|
8
8
|
validateLabelCharacters
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-IHOFUR74.js";
|
|
10
10
|
import {
|
|
11
11
|
displayName,
|
|
12
12
|
normalizeName
|
|
13
13
|
} from "./chunk-NOTA6TEI.js";
|
|
14
14
|
import {
|
|
15
|
+
AliasRegistry,
|
|
15
16
|
OPTION_NOCOLON_RE,
|
|
16
17
|
measureIndent,
|
|
17
18
|
parseFirstLine,
|
|
18
19
|
tryParseSharedOption
|
|
19
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-MK55PZVB.js";
|
|
20
21
|
import {
|
|
21
22
|
resolveColorWithDiagnostic
|
|
22
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-XOGQY4EC.js";
|
|
23
24
|
import {
|
|
24
25
|
NAME_DIAGNOSTIC_CODES,
|
|
25
26
|
formatDgmoError,
|
|
26
27
|
makeDgmoError,
|
|
27
28
|
nameMergedMessage
|
|
28
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-5SI6T5A5.js";
|
|
29
30
|
|
|
30
31
|
// src/class/parser.ts
|
|
31
32
|
function classId(name) {
|
|
@@ -124,11 +125,11 @@ function parseClassDiagram(content, palette) {
|
|
|
124
125
|
};
|
|
125
126
|
const classMap = /* @__PURE__ */ new Map();
|
|
126
127
|
const notes = [];
|
|
127
|
-
const nameAliasMap =
|
|
128
|
+
const nameAliasMap = new AliasRegistry();
|
|
128
129
|
function resolveAliasName(token) {
|
|
129
130
|
if (!token) return token;
|
|
130
131
|
const trimmed = token.trim();
|
|
131
|
-
const hit = nameAliasMap.
|
|
132
|
+
const hit = nameAliasMap.resolve(trimmed);
|
|
132
133
|
if (hit !== void 0) {
|
|
133
134
|
for (const [, node] of classMap) {
|
|
134
135
|
if (classId(node.name) === hit) return node.name;
|
|
@@ -175,6 +176,7 @@ function parseClassDiagram(content, palette) {
|
|
|
175
176
|
const raw = lines[i];
|
|
176
177
|
const trimmed = raw.trim();
|
|
177
178
|
const lineNumber = i + 1;
|
|
179
|
+
nameAliasMap.at(lineNumber);
|
|
178
180
|
const indent = measureIndent(raw);
|
|
179
181
|
if (!trimmed) {
|
|
180
182
|
if (indent === 0) currentClass = null;
|
|
@@ -301,7 +303,9 @@ function parseClassDiagram(content, palette) {
|
|
|
301
303
|
const node = getOrCreateClass(name, lineNumber);
|
|
302
304
|
if (modifier) node.modifier = modifier;
|
|
303
305
|
if (color) node.color = color;
|
|
304
|
-
if (aliasLiteral)
|
|
306
|
+
if (aliasLiteral)
|
|
307
|
+
nameAliasMap.declare(aliasLiteral, classId(name), lineNumber);
|
|
308
|
+
nameAliasMap.noteCanonical(classId(name), lineNumber);
|
|
305
309
|
node.lineNumber = lineNumber;
|
|
306
310
|
if (extendsParent) {
|
|
307
311
|
const ext = resolveAliasName(extendsParent) ?? extendsParent;
|
|
@@ -368,6 +372,7 @@ function parseClassDiagram(content, palette) {
|
|
|
368
372
|
}
|
|
369
373
|
}
|
|
370
374
|
}
|
|
375
|
+
result.diagnostics.push(...nameAliasMap.finish());
|
|
371
376
|
return result;
|
|
372
377
|
}
|
|
373
378
|
function looksLikeClassDiagram(content) {
|
|
@@ -445,4 +450,4 @@ export {
|
|
|
445
450
|
looksLikeClassDiagram,
|
|
446
451
|
extractSymbols
|
|
447
452
|
};
|
|
448
|
-
//# sourceMappingURL=chunk-
|
|
453
|
+
//# sourceMappingURL=chunk-XOOYMOIW.js.map
|
|
@@ -17,8 +17,9 @@ import {
|
|
|
17
17
|
stripDefaultModifier,
|
|
18
18
|
tagAttrKey,
|
|
19
19
|
validateTagGroupNames
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-4FKEI4MF.js";
|
|
21
21
|
import {
|
|
22
|
+
AliasRegistry,
|
|
22
23
|
GANTT_BOOLEAN_SET,
|
|
23
24
|
GANTT_OPTION_SET,
|
|
24
25
|
GANTT_REGISTRY,
|
|
@@ -31,14 +32,14 @@ import {
|
|
|
31
32
|
splitNameAndMeta,
|
|
32
33
|
warnUnknownMetaKeys,
|
|
33
34
|
withTagAliases
|
|
34
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-MK55PZVB.js";
|
|
35
36
|
import {
|
|
36
37
|
getSeriesColors
|
|
37
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-GLREDNBA.js";
|
|
38
39
|
import {
|
|
39
40
|
formatDgmoError,
|
|
40
41
|
makeDgmoError
|
|
41
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-5SI6T5A5.js";
|
|
42
43
|
|
|
43
44
|
// src/gantt/parser.ts
|
|
44
45
|
var GROUP_RE = /^\[(.+?)\]\s*(.*)$/;
|
|
@@ -176,7 +177,7 @@ function parseGantt(content, palette) {
|
|
|
176
177
|
diagnostics.push(makeDgmoError(line, message, "error"));
|
|
177
178
|
};
|
|
178
179
|
const metaAliasMap = /* @__PURE__ */ new Map();
|
|
179
|
-
const nameAliasMap =
|
|
180
|
+
const nameAliasMap = new AliasRegistry();
|
|
180
181
|
function peelAlias(label) {
|
|
181
182
|
const trimmed = label.trim();
|
|
182
183
|
const m = trimmed.match(/^(.*?)\s+as\s+([A-Za-z][A-Za-z0-9_]{0,11})\s*$/);
|
|
@@ -184,7 +185,7 @@ function parseGantt(content, palette) {
|
|
|
184
185
|
return { label: m[1].trim(), alias: m[2] };
|
|
185
186
|
}
|
|
186
187
|
function resolveAliasTarget(token) {
|
|
187
|
-
return nameAliasMap.
|
|
188
|
+
return nameAliasMap.resolve(token.trim()) ?? token;
|
|
188
189
|
}
|
|
189
190
|
const blockStack = [];
|
|
190
191
|
const currentContainer = () => {
|
|
@@ -224,6 +225,7 @@ function parseGantt(content, palette) {
|
|
|
224
225
|
const line = rawLine.trim();
|
|
225
226
|
const indent = measureIndent(rawLine);
|
|
226
227
|
const lineNumber = i + 1;
|
|
228
|
+
nameAliasMap.at(lineNumber);
|
|
227
229
|
if (!line) {
|
|
228
230
|
if (inHolidaysBlock && indent <= holidaysBlockIndent) {
|
|
229
231
|
inHolidaysBlock = false;
|
|
@@ -438,7 +440,8 @@ function parseGantt(content, palette) {
|
|
|
438
440
|
content2.explicitStart,
|
|
439
441
|
content2.preExtracted
|
|
440
442
|
);
|
|
441
|
-
if (content2.alias) nameAliasMap.
|
|
443
|
+
if (content2.alias) nameAliasMap.declare(content2.alias, task.label);
|
|
444
|
+
nameAliasMap.noteCanonical(task.label);
|
|
442
445
|
const taskNode = { kind: "task", ...task };
|
|
443
446
|
if (lastTaskNode) {
|
|
444
447
|
lastTaskNode.dependencies.push({
|
|
@@ -779,7 +782,8 @@ function parseGantt(content, palette) {
|
|
|
779
782
|
explicitStart,
|
|
780
783
|
preExtracted
|
|
781
784
|
);
|
|
782
|
-
if (split.alias) nameAliasMap.
|
|
785
|
+
if (split.alias) nameAliasMap.declare(split.alias, task.label);
|
|
786
|
+
nameAliasMap.noteCanonical(task.label);
|
|
783
787
|
const taskNode = { kind: "task", ...task };
|
|
784
788
|
currentContainer().push(taskNode);
|
|
785
789
|
const writableTaskN = taskNode;
|
|
@@ -1006,7 +1010,9 @@ function parseGantt(content, palette) {
|
|
|
1006
1010
|
}
|
|
1007
1011
|
const groupPeeled = peelAlias(gm[1]);
|
|
1008
1012
|
const groupName = peelQuotedName(groupPeeled.label);
|
|
1009
|
-
if (groupPeeled.alias)
|
|
1013
|
+
if (groupPeeled.alias)
|
|
1014
|
+
nameAliasMap.declare(groupPeeled.alias, groupName);
|
|
1015
|
+
nameAliasMap.noteCanonical(groupName);
|
|
1010
1016
|
const group = {
|
|
1011
1017
|
name: groupName,
|
|
1012
1018
|
color: null,
|
|
@@ -1044,7 +1050,8 @@ function parseGantt(content, palette) {
|
|
|
1044
1050
|
content2.explicitStart,
|
|
1045
1051
|
content2.preExtracted
|
|
1046
1052
|
);
|
|
1047
|
-
if (content2.alias) nameAliasMap.
|
|
1053
|
+
if (content2.alias) nameAliasMap.declare(content2.alias, task.label);
|
|
1054
|
+
nameAliasMap.noteCanonical(task.label);
|
|
1048
1055
|
if (lineOffset) {
|
|
1049
1056
|
task.offset = lineOffset;
|
|
1050
1057
|
}
|
|
@@ -1107,6 +1114,7 @@ function parseGantt(content, palette) {
|
|
|
1107
1114
|
result.options.sprintNumber = 1;
|
|
1108
1115
|
}
|
|
1109
1116
|
}
|
|
1117
|
+
result.diagnostics.push(...nameAliasMap.finish());
|
|
1110
1118
|
return result;
|
|
1111
1119
|
function matchArrowLine(trimmedLine) {
|
|
1112
1120
|
const leadMatch = trimmedLine.match(LEAD_ARROW_RE);
|
|
@@ -1252,7 +1260,8 @@ function parseGantt(content, palette) {
|
|
|
1252
1260
|
}
|
|
1253
1261
|
}
|
|
1254
1262
|
label = peelQuotedName(label);
|
|
1255
|
-
if (peeled.alias) nameAliasMap.
|
|
1263
|
+
if (peeled.alias) nameAliasMap.declare(peeled.alias, label);
|
|
1264
|
+
nameAliasMap.noteCanonical(label);
|
|
1256
1265
|
if (preExtractedMeta) {
|
|
1257
1266
|
Object.assign(metadata, preExtractedMeta);
|
|
1258
1267
|
}
|
|
@@ -1372,4 +1381,4 @@ export {
|
|
|
1372
1381
|
GANTT_KNOWN_OPTIONS,
|
|
1373
1382
|
GANTT_KNOWN_BOOLEANS
|
|
1374
1383
|
};
|
|
1375
|
-
//# sourceMappingURL=chunk-
|
|
1384
|
+
//# sourceMappingURL=chunk-XUCHK3OJ.js.map
|