@diagrammo/dgmo 0.80.0 → 0.82.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/README.md +2 -2
- package/dist/advanced.d.ts +4 -4
- package/dist/advanced.js +186 -184
- package/dist/{analyzer-NK3B6G2A.js → analyzer-R5UBTRO2.js} +3 -3
- package/dist/block.css +11 -4
- package/dist/block.js +78 -70
- package/dist/calculator-35YVW4QO.js +13 -0
- package/dist/{chart-meta-B9RCaVah.d.ts → chart-meta-BnVwoPaA.d.ts} +10 -2
- package/dist/chart-meta.d.ts +2 -2
- package/dist/chart-meta.js +21 -57
- package/dist/{dgmo-router-DNmcIut1.d.ts → chart-types-CsUlmuiY.d.ts} +2 -60
- package/dist/{charts-d3-ONIU5QN3.js → charts-d3-KNAXWYX5.js} +13 -13
- package/dist/{chunk-3NGB6XAX.js → chunk-2M4IGSCY.js} +2 -2
- package/dist/{chunk-PHMYEHLS.js → chunk-3AX6MCI6.js} +2 -2
- package/dist/{chunk-HFIS5H44.js → chunk-3C2FWS2J.js} +4 -4
- package/dist/{chunk-VPVSERIN.js → chunk-3PRG6ZQ4.js} +6 -6
- package/dist/{chunk-PYX7QA7B.js → chunk-3RYBTEF5.js} +5 -5
- package/dist/{chunk-KY2MOVRQ.js → chunk-3TC2V76V.js} +11 -11
- package/dist/{chunk-HVNIHFEC.js → chunk-3URBJ3MT.js} +5 -5
- package/dist/{chunk-JSQTQSZG.js → chunk-3XTIBO4O.js} +2 -2
- package/dist/{chunk-OD42CAXD.js → chunk-44GP7PD5.js} +238 -238
- package/dist/{chunk-VHFZK72U.js → chunk-47E5UTXE.js} +5 -5
- package/dist/{chunk-CBLAF2JI.js → chunk-4QS2K7ON.js} +5 -5
- package/dist/{chunk-ALKJBGIV.js → chunk-4WW3SGMH.js} +2 -2
- package/dist/{chunk-PPII63O6.js → chunk-4XAB672K.js} +3 -3
- package/dist/{chunk-5ACSKJD7.js → chunk-566WTT4S.js} +3 -3
- package/dist/{chunk-ITLDMXEP.js → chunk-5JO443MB.js} +2 -2
- package/dist/{chunk-SJWLAA3G.js → chunk-64NQHRHZ.js} +8 -8
- package/dist/{chunk-7EHMSQVV.js → chunk-66YFDTT6.js} +8 -8
- package/dist/{chunk-MOVUBLAT.js → chunk-67USWFFE.js} +3 -3
- package/dist/{chunk-WRQ54IZS.js → chunk-6EV2F6W7.js} +5 -5
- package/dist/{chunk-3Y34QEEO.js → chunk-6HOVLE3H.js} +5 -5
- package/dist/{chunk-3KGW6JUX.js → chunk-6K7RODXG.js} +3 -3
- package/dist/{chunk-6X4LJNV6.js → chunk-6ZL5A5MQ.js} +15 -34
- package/dist/{chunk-ARUQ55BK.js → chunk-7HWY4QAJ.js} +2 -2
- package/dist/{chunk-KPXBNN3T.js → chunk-7TH4ELXZ.js} +9 -9
- package/dist/{chunk-WT65QX7I.js → chunk-7UDAIP6W.js} +13 -5
- package/dist/{chunk-FHK5FRAN.js → chunk-7VX3KBF5.js} +6 -6
- package/dist/{chunk-QMBVPA4R.js → chunk-A4XPI4YN.js} +7 -7
- package/dist/{chunk-TR5BFNRR.js → chunk-A77XE4DY.js} +2 -2
- package/dist/{chunk-AT5NLMH3.js → chunk-AERZPALT.js} +10 -10
- package/dist/{chunk-O4CG5ZRH.js → chunk-AYOVY75O.js} +8 -8
- package/dist/{chunk-25HKORHH.js → chunk-AZC23UWQ.js} +4 -4
- package/dist/{chunk-QQLY52Q7.js → chunk-BAZT6CIF.js} +5 -5
- package/dist/{chunk-IHOX6RQZ.js → chunk-BOO24UMJ.js} +3 -3
- package/dist/{chunk-THHXUZTB.js → chunk-BOQXIURQ.js} +64 -10
- package/dist/{chunk-OAQE624Z.js → chunk-BYU54C3S.js} +40 -11
- package/dist/{chunk-I26QNBHS.js → chunk-C7QRRTAW.js} +12 -12
- package/dist/{chunk-NZCJAJEY.js → chunk-CUX5UNSX.js} +10 -10
- package/dist/{chunk-JV457OT7.js → chunk-D6ACM5T3.js} +9 -9
- package/dist/{chunk-5EWJQARG.js → chunk-DTTCDQNZ.js} +9 -9
- package/dist/{chunk-EGY3TS62.js → chunk-DV2VEJCC.js} +2 -2
- package/dist/{chunk-MGSOMBL3.js → chunk-DW5X4NRC.js} +12 -12
- package/dist/chunk-ECIXBEG2.js +86 -0
- package/dist/{chunk-3MJ6ME2I.js → chunk-ERNCPKD4.js} +3 -3
- package/dist/{chunk-J5FSJRQN.js → chunk-FJNXXGTR.js} +4 -4
- package/dist/{chunk-23MSLKPP.js → chunk-FKZ2Y3Q5.js} +5 -5
- package/dist/{chunk-U3IPFKK7.js → chunk-FPXMCGS5.js} +3 -3
- package/dist/{chunk-3QC5FKYN.js → chunk-GBHWYUAE.js} +6 -6
- package/dist/{chunk-54E35DTP.js → chunk-GDJW64XE.js} +3 -3
- package/dist/{chunk-TZZ3CSDF.js → chunk-GJFDPDPM.js} +3 -3
- package/dist/{chunk-VZPVMHLL.js → chunk-GOPWP2LR.js} +4 -4
- package/dist/{chunk-H4YK6Q7A.js → chunk-GSYZZFI5.js} +5 -5
- package/dist/{chunk-4ROEQ3XT.js → chunk-GUTZCRBT.js} +6 -6
- package/dist/{chunk-LA4FDGQO.js → chunk-GUYVKGFN.js} +5 -5
- package/dist/{chunk-GLWIOOYS.js → chunk-HEYGGSNQ.js} +7 -7
- package/dist/{chunk-7TTKMWTA.js → chunk-HMWZQ53A.js} +3 -3
- package/dist/{chunk-3MNFBPFK.js → chunk-HSRQDWV7.js} +4 -4
- package/dist/{chunk-BKM2CJBC.js → chunk-HTWH2XQL.js} +5 -5
- package/dist/{chunk-KJKJTU6T.js → chunk-ITDRR5JA.js} +9 -9
- package/dist/{chunk-TU5ZNZWE.js → chunk-J64NZ6NF.js} +3 -3
- package/dist/{chunk-A57MQC7M.js → chunk-JIPUBFAM.js} +3 -3
- package/dist/{chunk-W4EKQ2P6.js → chunk-JLGN6S4B.js} +56 -7
- package/dist/{chunk-V4IRPJ6J.js → chunk-JQ57AWDL.js} +3 -3
- package/dist/{chunk-SH6QDU4T.js → chunk-JRUEIRJB.js} +6 -6
- package/dist/{chunk-JOGEEMMO.js → chunk-JS2THRCB.js} +2 -2
- package/dist/{chunk-VPSZKOKK.js → chunk-KABGWUND.js} +91 -121
- package/dist/{chunk-E52IYUSJ.js → chunk-KMOFMIMN.js} +11 -11
- package/dist/{chunk-LDJFPEQ5.js → chunk-L5AFONQU.js} +4 -4
- package/dist/{chunk-2EBEML6J.js → chunk-LCAFKUGB.js} +4 -4
- package/dist/{chunk-CS23VOZW.js → chunk-LCJURK7L.js} +3 -3
- package/dist/{chunk-APL3HWFJ.js → chunk-LNO3ASX5.js} +4 -4
- package/dist/{chunk-LH77K2ZK.js → chunk-LWWEQPJU.js} +3 -3
- package/dist/{chunk-KKCWYBAG.js → chunk-LZO4KL2O.js} +2 -2
- package/dist/{chunk-PREUTERU.js → chunk-MGBV4JEI.js} +2 -2
- package/dist/{chunk-3AWWQ2AI.js → chunk-MHAYUS65.js} +7 -7
- package/dist/{chunk-GJ6XD5T7.js → chunk-MV4NT6ZS.js} +2 -2
- package/dist/{chunk-JSQXK2X7.js → chunk-MY6GUH26.js} +4 -4
- package/dist/{chunk-XPINVXMF.js → chunk-N6LCD676.js} +10 -10
- package/dist/{chunk-IMA4D3ZK.js → chunk-N7VMGZCU.js} +2 -2
- package/dist/{chunk-WV3RUC2Z.js → chunk-NF5YKFRH.js} +5 -5
- package/dist/{chunk-2TTDR565.js → chunk-NGC3IZRY.js} +4 -4
- package/dist/{chunk-SF3RXIIM.js → chunk-NOKFJY5L.js} +15 -15
- package/dist/{chunk-BXRXX5PV.js → chunk-NWY4HVY6.js} +7 -7
- package/dist/{chunk-VS5WMPWM.js → chunk-O753JUEZ.js} +2 -2
- package/dist/{chunk-ZV5FSZ3W.js → chunk-OB34QYW2.js} +10 -10
- package/dist/{chunk-ZVGKM3UB.js → chunk-OEQANTLL.js} +4 -4
- package/dist/{chunk-U3BJC66Q.js → chunk-P3SKSKJI.js} +4 -4
- package/dist/{chunk-37HNPLQA.js → chunk-PIXJL77H.js} +3 -3
- package/dist/{chunk-GNQAHN6H.js → chunk-PVJ2MQHP.js} +9 -9
- package/dist/{chunk-3VUWBXW2.js → chunk-QFHWYWQL.js} +8 -12
- package/dist/{chunk-RVWWCQAB.js → chunk-QLCER2HF.js} +4 -4
- package/dist/{chunk-ASJM3OD6.js → chunk-RE6TVIAV.js} +3 -3
- package/dist/{chunk-GCW3FSLR.js → chunk-RU725VCJ.js} +7 -7
- package/dist/{chunk-S6QDCFEU.js → chunk-RYZNNXUV.js} +2 -2
- package/dist/{chunk-5SKRHMWF.js → chunk-SLMETI5B.js} +7 -7
- package/dist/{chunk-MJEVGZDJ.js → chunk-STXGE3A7.js} +10 -10
- package/dist/{chunk-HQR67NIZ.js → chunk-TPCGA3W3.js} +12 -12
- package/dist/{chunk-XH4JUOYQ.js → chunk-UG2XG57E.js} +4 -4
- package/dist/{chunk-JN3OA44O.js → chunk-UNNJCSSQ.js} +4 -4
- package/dist/{chunk-UDUJVGCZ.js → chunk-USSW5NJX.js} +2 -2
- package/dist/{chunk-NODI5ZNG.js → chunk-UYCBJKE6.js} +11 -11
- package/dist/{chunk-CEIDIAVR.js → chunk-VABKWCTJ.js} +113 -113
- package/dist/{chunk-RNLPI5PL.js → chunk-VEPIAUSK.js} +3 -3
- package/dist/{chunk-DL52PKLV.js → chunk-VIRDI7QP.js} +10 -10
- package/dist/{chunk-MY23CJEU.js → chunk-VJ5RRUZO.js} +2 -2
- package/dist/{chunk-KW4QWOQH.js → chunk-VMCT77PY.js} +18 -18
- package/dist/{chunk-FU4XFZN6.js → chunk-VRV4C47J.js} +5 -5
- package/dist/{chunk-Z6N3O2OV.js → chunk-WGOFIJUP.js} +12 -12
- package/dist/{chunk-FEKYZEYF.js → chunk-WKYBA5PC.js} +9 -9
- package/dist/{chunk-X36EJABT.js → chunk-WP2RLGDI.js} +3 -3
- package/dist/{chunk-WM2CR4NX.js → chunk-WPL5PFXE.js} +8 -8
- package/dist/{chunk-I7BVPBPI.js → chunk-WQ6G6FFM.js} +3 -3
- package/dist/{chunk-PN2WBRWF.js → chunk-XJJEHHEH.js} +4 -4
- package/dist/{chunk-S7QQ4U5O.js → chunk-YKLN4VG5.js} +2 -2
- package/dist/{chunk-Q3DEISTC.js → chunk-ZGKVBVSQ.js} +6 -6
- package/dist/{chunk-B66G5S4G.js → chunk-ZUCXFXLD.js} +4 -4
- package/dist/completion-registry.js +8 -8
- package/dist/dgmo-router-YW4SBNYB.js +93 -0
- package/dist/dimensions-IXTFLFDM.js +22 -0
- package/dist/flowchart-parser-GG7XBLQH.js +21 -0
- package/dist/{flowchart-renderer-NVBCUI2C.js → flowchart-renderer-2VQ4WOFU.js} +12 -12
- package/dist/index.d.ts +3 -3
- package/dist/index.js +70 -69
- package/dist/{layout-QT7YRV3G.js → layout-2JDDT4E2.js} +4 -4
- package/dist/layout-FGGUKDE7.js +16 -0
- package/dist/{layout-OHAIIXBC.js → layout-JQ3IPJYR.js} +3 -3
- package/dist/{layout-6ISNEL7W.js → layout-K6OAQFKC.js} +4 -4
- package/dist/{layout-YTNWNFDY.js → layout-KN2ZREUM.js} +8 -8
- package/dist/{layout-4KIWCVYT.js → layout-KSJAARD4.js} +6 -6
- package/dist/{layout-FQUQ6GHB.js → layout-MBQL6DJX.js} +7 -7
- package/dist/{layout-25CSTO66.js → layout-MSSHF45T.js} +4 -4
- package/dist/{layout-FCIYZV63.js → layout-N67E4MXG.js} +3 -3
- package/dist/{layout-TIF77QX4.js → layout-QK3USIZ5.js} +6 -6
- package/dist/{layout-FG2MPG22.js → layout-SE2EHP5T.js} +4 -4
- package/dist/layout-ZND4EET5.js +16 -0
- package/dist/{layout-search-GWCIKHO4.js → layout-search-LPVJJ6E3.js} +48 -12
- package/dist/{legend-constants-EDMTP4Y6.js → legend-constants-6CHRIU5T.js} +5 -5
- package/dist/{palettes-M6T5ENBU.js → palettes-BIV54XLS.js} +4 -4
- package/dist/parser-256EIWB2.js +12 -0
- package/dist/parser-5655XSOR.js +13 -0
- package/dist/{parser-PXGN5EEQ.js → parser-6PHQJO42.js} +7 -7
- package/dist/{parser-2U3LTE3M.js → parser-6TXNMXNB.js} +5 -5
- package/dist/parser-7OEE7QT6.js +11 -0
- package/dist/parser-ACW6C6OY.js +13 -0
- package/dist/parser-AKBVJHMK.js +15 -0
- package/dist/parser-AN3MGHRL.js +12 -0
- package/dist/parser-C327BBE3.js +13 -0
- package/dist/{parser-M2TYYS2M.js → parser-DGF3ZEO6.js} +7 -7
- package/dist/parser-DHSFIUPU.js +13 -0
- package/dist/parser-GEKPWSSK.js +17 -0
- package/dist/parser-GPW4ZHPQ.js +19 -0
- package/dist/parser-GZ3LVF72.js +11 -0
- package/dist/{parser-N7FNNO2X.js → parser-HCGXNHHL.js} +6 -6
- package/dist/parser-J4DVNL4W.js +20 -0
- package/dist/parser-JOOAVBJI.js +17 -0
- package/dist/{parser-5GVHFVVE.js → parser-JXS4426S.js} +6 -6
- package/dist/parser-KFYRTGTC.js +14 -0
- package/dist/parser-KYPP2DX6.js +18 -0
- package/dist/parser-KZMALSB2.js +15 -0
- package/dist/parser-KZMJNKDW.js +11 -0
- package/dist/parser-LANGKWRG.js +15 -0
- package/dist/{parser-3GDLKPTU.js → parser-LGS65QPN.js} +5 -5
- package/dist/parser-NGHQQGD2.js +13 -0
- package/dist/parser-NOANDFJ4.js +11 -0
- package/dist/parser-NPXPJHWN.js +14 -0
- package/dist/parser-OKB64MMN.js +16 -0
- package/dist/parser-OVQTTTUJ.js +11 -0
- package/dist/parser-SA3RAJFS.js +11 -0
- package/dist/parser-WEVTMBJ5.js +16 -0
- package/dist/{parser-O2YCFUZD.js → parser-WUK6CP5X.js} +7 -7
- package/dist/parser-ZLKYDFI5.js +12 -0
- package/dist/renderer-3BD6RNEA.js +25 -0
- package/dist/{renderer-4PUPRFGG.js → renderer-3HZYAP5F.js} +11 -11
- package/dist/{renderer-QKE4VHWG.js → renderer-57IYUDQG.js} +13 -13
- package/dist/{renderer-HLTZHXTP.js → renderer-5O5YV6QI.js} +8 -8
- package/dist/{renderer-AFND3S3N.js → renderer-5RVERY6X.js} +13 -13
- package/dist/{renderer-IRLNJRM6.js → renderer-6BE3KOQ7.js} +11 -11
- package/dist/renderer-6Q6H44XU.js +21 -0
- package/dist/{renderer-IOPZ7CPD.js → renderer-BUOBHUL6.js} +11 -11
- package/dist/renderer-FF2KKA63.js +25 -0
- package/dist/{renderer-TNAPPEDK.js → renderer-FJRHXL6G.js} +12 -12
- package/dist/renderer-HC4GRKWG.js +26 -0
- package/dist/{renderer-HK3IPHLE.js → renderer-HWEGM72C.js} +5 -5
- package/dist/{renderer-VMN4Q7G7.js → renderer-I2VM3N6S.js} +14 -14
- package/dist/renderer-JHKU3GRN.js +20 -0
- package/dist/{renderer-M4NZDCFW.js → renderer-KRQ2IP34.js} +17 -17
- package/dist/{renderer-YXS7GHVI.js → renderer-LYZB32G7.js} +6 -6
- package/dist/renderer-MAFBZSLO.js +23 -0
- package/dist/{renderer-HVOZIG5Y.js → renderer-MB3W3TEB.js} +12 -12
- package/dist/{renderer-HXRAKW5U.js → renderer-ML2CLU25.js} +5 -5
- package/dist/{renderer-N37MV6QX.js → renderer-N6FPRVGH.js} +13 -13
- package/dist/renderer-P7LQBDU2.js +17 -0
- package/dist/{renderer-LIY43V2Z.js → renderer-PQYO2HCE.js} +7 -7
- package/dist/{renderer-X4WS62JV.js → renderer-SFYSXUUY.js} +11 -11
- package/dist/{renderer-LR2KSRCY.js → renderer-UPLSSNQF.js} +6 -6
- package/dist/renderer-VNHD4I5H.js +27 -0
- package/dist/{renderer-W72M5ZHU.js → renderer-VSS5HVOC.js} +17 -17
- package/dist/{renderer-62CDL6X6.js → renderer-WMCMFUJM.js} +13 -13
- package/dist/{renderer-W3TZYI5A.js → renderer-X2IIJS7X.js} +13 -13
- package/dist/renderer-XHC5YBU6.js +79 -0
- package/dist/renderer-XSR2D7OT.js +23 -0
- package/dist/{renderer-3NFIC7UT.js → renderer-XWWL6RJH.js} +10 -10
- package/dist/{renderer-IUX7EYDO.js → renderer-YO4YVEEU.js} +6 -6
- package/dist/{renderer-AVSNWMQK.js → renderer-YQSUUU3W.js} +12 -12
- package/dist/renderer-radial-HG5WGKW3.js +21 -0
- package/dist/{resolver-7GHPU2SV.js → resolver-XSXE2TRX.js} +3 -3
- package/dist/state-parser-FE3RF6XY.js +19 -0
- package/dist/{state-renderer-Y6CCWLVQ.js → state-renderer-YRNO6ADY.js} +17 -17
- package/dist/{themes-D_o7JLlR.d.ts → themes-WjudZgda.d.ts} +52 -2
- package/package.json +1 -1
- package/dist/calculator-ZW6DFOKR.js +0 -13
- package/dist/dgmo-router-62TSED7N.js +0 -91
- package/dist/dimensions-IGSAMCMH.js +0 -22
- package/dist/flowchart-parser-N4DNK6U6.js +0 -21
- package/dist/layout-SUIUWHQ5.js +0 -16
- package/dist/layout-XTUGQPCZ.js +0 -16
- package/dist/parser-2A6KJT2A.js +0 -12
- package/dist/parser-2QAQWYUX.js +0 -14
- package/dist/parser-2XE7VVEH.js +0 -17
- package/dist/parser-4UYQVTIR.js +0 -12
- package/dist/parser-5OM26GJZ.js +0 -13
- package/dist/parser-7A2HY3QJ.js +0 -12
- package/dist/parser-7DPIIILN.js +0 -11
- package/dist/parser-AT4F7FNV.js +0 -15
- package/dist/parser-AVMGVOPJ.js +0 -11
- package/dist/parser-CUZY3OK3.js +0 -11
- package/dist/parser-DFRYG3YK.js +0 -20
- package/dist/parser-HHHINIOH.js +0 -15
- package/dist/parser-IIM3B3DJ.js +0 -13
- package/dist/parser-J3JKGPH5.js +0 -17
- package/dist/parser-JLJWN5O2.js +0 -11
- package/dist/parser-K7B6OCJA.js +0 -13
- package/dist/parser-M6X5IDP4.js +0 -13
- package/dist/parser-MAI2Q4A3.js +0 -15
- package/dist/parser-NBSXY4LA.js +0 -16
- package/dist/parser-QEKXLSTK.js +0 -19
- package/dist/parser-QF722VMI.js +0 -11
- package/dist/parser-RC5JWJPX.js +0 -16
- package/dist/parser-SETVYTVM.js +0 -14
- package/dist/parser-TBKPRT33.js +0 -18
- package/dist/parser-WMKP2QI5.js +0 -13
- package/dist/parser-XI6KXGYB.js +0 -11
- package/dist/renderer-2BB7NQOL.js +0 -23
- package/dist/renderer-2PKBM4AN.js +0 -78
- package/dist/renderer-3BDL37LP.js +0 -27
- package/dist/renderer-AOL3X2AT.js +0 -25
- package/dist/renderer-IIULR7PP.js +0 -21
- package/dist/renderer-MB2LMVEH.js +0 -25
- package/dist/renderer-O3EM5RPJ.js +0 -17
- package/dist/renderer-PK64F2M2.js +0 -20
- package/dist/renderer-TQ7V2TGU.js +0 -23
- package/dist/renderer-VF4FR5SE.js +0 -26
- package/dist/renderer-radial-Q2SLYC4M.js +0 -21
- package/dist/state-parser-ZP7EAX7V.js +0 -19
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-FWNJDD4U.js";
|
|
4
4
|
import {
|
|
5
5
|
layoutInlineHeader
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MV4NT6ZS.js";
|
|
7
7
|
import {
|
|
8
8
|
TITLE_FONT_SIZE,
|
|
9
9
|
TITLE_FONT_WEIGHT,
|
|
@@ -11,37 +11,37 @@ import {
|
|
|
11
11
|
} from "./chunk-VLC6WNRD.js";
|
|
12
12
|
import {
|
|
13
13
|
renderIntegratedLegend
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-3URBJ3MT.js";
|
|
15
15
|
import {
|
|
16
16
|
getLegendExtent,
|
|
17
17
|
getMaxLegendReservedHeight
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-A77XE4DY.js";
|
|
19
19
|
import {
|
|
20
20
|
FONT_FAMILY
|
|
21
21
|
} from "./chunk-ICLB27PZ.js";
|
|
22
22
|
import {
|
|
23
23
|
LEGEND_GROUP_GAP
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-USSW5NJX.js";
|
|
25
25
|
import {
|
|
26
26
|
measureText
|
|
27
27
|
} from "./chunk-YC6GVLTI.js";
|
|
28
28
|
import {
|
|
29
29
|
resolveTagColor,
|
|
30
30
|
tagAttrKey
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-L5AFONQU.js";
|
|
32
32
|
import {
|
|
33
33
|
contrastText,
|
|
34
34
|
getSeriesColors,
|
|
35
35
|
mix,
|
|
36
36
|
shapeFill,
|
|
37
37
|
themeBaseBg
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-7HWY4QAJ.js";
|
|
39
39
|
import {
|
|
40
40
|
resolveColor
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-2M4IGSCY.js";
|
|
42
42
|
import {
|
|
43
43
|
makeDgmoError
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-BYU54C3S.js";
|
|
45
45
|
|
|
46
46
|
// src/bracket/renderer.ts
|
|
47
47
|
import * as d3Selection from "d3-selection";
|
|
@@ -1001,4 +1001,4 @@ export {
|
|
|
1001
1001
|
renderBracket,
|
|
1002
1002
|
renderBracketForExport
|
|
1003
1003
|
};
|
|
1004
|
-
//# sourceMappingURL=chunk-
|
|
1004
|
+
//# sourceMappingURL=chunk-ITDRR5JA.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
extractColor,
|
|
3
3
|
measureIndent
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-44GP7PD5.js";
|
|
5
5
|
import {
|
|
6
6
|
makeDgmoError
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-BYU54C3S.js";
|
|
8
8
|
|
|
9
9
|
// src/utils/notes/parse.ts
|
|
10
10
|
function parseNoteHeader(rest) {
|
|
@@ -73,4 +73,4 @@ function tryCollectNote(lines, index, indent, palette, diagnostics) {
|
|
|
73
73
|
export {
|
|
74
74
|
tryCollectNote
|
|
75
75
|
};
|
|
76
|
-
//# sourceMappingURL=chunk-
|
|
76
|
+
//# sourceMappingURL=chunk-J64NZ6NF.js.map
|
|
@@ -30,10 +30,10 @@ import {
|
|
|
30
30
|
getSeriesColors,
|
|
31
31
|
mix,
|
|
32
32
|
themeBaseBg
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-7HWY4QAJ.js";
|
|
34
34
|
import {
|
|
35
35
|
resolveColor
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-2M4IGSCY.js";
|
|
37
37
|
|
|
38
38
|
// src/countdown/renderer.ts
|
|
39
39
|
import * as d3Selection from "d3-selection";
|
|
@@ -1029,4 +1029,4 @@ export {
|
|
|
1029
1029
|
renderCountdown,
|
|
1030
1030
|
renderCountdownForExport
|
|
1031
1031
|
};
|
|
1032
|
-
//# sourceMappingURL=chunk-
|
|
1032
|
+
//# sourceMappingURL=chunk-JIPUBFAM.js.map
|
|
@@ -3,6 +3,41 @@ import {
|
|
|
3
3
|
NODE_WIDTH
|
|
4
4
|
} from "./chunk-WTTIODDV.js";
|
|
5
5
|
|
|
6
|
+
// src/boxes-and-lines/edge-clip.ts
|
|
7
|
+
function rectBorderPoint(rect, toward) {
|
|
8
|
+
const dx = toward.x - rect.x;
|
|
9
|
+
const dy = toward.y - rect.y;
|
|
10
|
+
const sx = dx === 0 ? Infinity : rect.w / 2 / Math.abs(dx);
|
|
11
|
+
const sy = dy === 0 ? Infinity : rect.h / 2 / Math.abs(dy);
|
|
12
|
+
const s = Math.min(sx, sy);
|
|
13
|
+
if (!Number.isFinite(s)) return { x: rect.x, y: rect.y };
|
|
14
|
+
return { x: rect.x + dx * s, y: rect.y + dy * s };
|
|
15
|
+
}
|
|
16
|
+
function isInsideRect(p, rect) {
|
|
17
|
+
const EPS = 0.5;
|
|
18
|
+
return Math.abs(p.x - rect.x) < rect.w / 2 - EPS && Math.abs(p.y - rect.y) < rect.h / 2 - EPS;
|
|
19
|
+
}
|
|
20
|
+
function clipEndpointsToNodes(pts, rectA, rectB) {
|
|
21
|
+
if (pts.length < 2) return pts;
|
|
22
|
+
const rects = [rectA, rectB].filter((r) => r !== void 0);
|
|
23
|
+
if (rects.length === 0) return pts;
|
|
24
|
+
const enclosing = (p) => rects.find((r) => isInsideRect(p, r));
|
|
25
|
+
let out = pts;
|
|
26
|
+
const head = enclosing(out[0]);
|
|
27
|
+
if (head) {
|
|
28
|
+
let k = 0;
|
|
29
|
+
while (k < out.length - 1 && isInsideRect(out[k], head)) k++;
|
|
30
|
+
out = [rectBorderPoint(head, out[k]), ...out.slice(k)];
|
|
31
|
+
}
|
|
32
|
+
const tail = enclosing(out[out.length - 1]);
|
|
33
|
+
if (tail) {
|
|
34
|
+
let k = out.length - 1;
|
|
35
|
+
while (k > 0 && isInsideRect(out[k], tail)) k--;
|
|
36
|
+
out = [...out.slice(0, k + 1), rectBorderPoint(tail, out[k])];
|
|
37
|
+
}
|
|
38
|
+
return out;
|
|
39
|
+
}
|
|
40
|
+
|
|
6
41
|
// src/boxes-and-lines/layout-grouped.ts
|
|
7
42
|
var NODESEP = 50;
|
|
8
43
|
var RANKSEP = 60;
|
|
@@ -555,6 +590,12 @@ function groupedTierCandidates(parsed, sizes, opts) {
|
|
|
555
590
|
m(b.cross, ctr)
|
|
556
591
|
]);
|
|
557
592
|
}
|
|
593
|
+
const nodeRect = (label) => {
|
|
594
|
+
const n = node.get(label);
|
|
595
|
+
if (!n) return void 0;
|
|
596
|
+
const c = coord(n);
|
|
597
|
+
return { x: c.x, y: c.y, w: n.realW, h: n.realH };
|
|
598
|
+
};
|
|
558
599
|
const layoutEdges = [];
|
|
559
600
|
for (let i = 0; i < parsed.edges.length; i++) {
|
|
560
601
|
const e = parsed.edges[i];
|
|
@@ -563,12 +604,19 @@ function groupedTierCandidates(parsed, sizes, opts) {
|
|
|
563
604
|
if (e.source === e.target) {
|
|
564
605
|
const c = coord(node.get(e.source));
|
|
565
606
|
points = [c, c];
|
|
566
|
-
} else
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
607
|
+
} else {
|
|
608
|
+
if (backPoints.has(i)) points = backPoints.get(i);
|
|
609
|
+
else if (flatPoints.has(i)) points = flatPoints.get(i);
|
|
610
|
+
else {
|
|
611
|
+
const chain = chainById.get(i);
|
|
612
|
+
if (!chain) continue;
|
|
613
|
+
points = chain.map((id) => coord(node.get(id)));
|
|
614
|
+
}
|
|
615
|
+
points = clipEndpointsToNodes(
|
|
616
|
+
points,
|
|
617
|
+
nodeRect(e.source),
|
|
618
|
+
nodeRect(e.target)
|
|
619
|
+
);
|
|
572
620
|
}
|
|
573
621
|
layoutEdges.push({
|
|
574
622
|
source: e.source,
|
|
@@ -686,7 +734,8 @@ function groupedTierCandidates(parsed, sizes, opts) {
|
|
|
686
734
|
}
|
|
687
735
|
|
|
688
736
|
export {
|
|
737
|
+
clipEndpointsToNodes,
|
|
689
738
|
acyclicOrient,
|
|
690
739
|
groupedTierCandidates
|
|
691
740
|
};
|
|
692
|
-
//# sourceMappingURL=chunk-
|
|
741
|
+
//# sourceMappingURL=chunk-JLGN6S4B.js.map
|
|
@@ -16,11 +16,11 @@ import {
|
|
|
16
16
|
fillModeFromToken,
|
|
17
17
|
measureIndent,
|
|
18
18
|
parseFirstLine
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-44GP7PD5.js";
|
|
20
20
|
import {
|
|
21
21
|
makeDgmoError,
|
|
22
22
|
makeFail
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-BYU54C3S.js";
|
|
24
24
|
|
|
25
25
|
// src/countdown/parser.ts
|
|
26
26
|
var RETIRED_SLOTS = /* @__PURE__ */ new Set(["on", "at", "from"]);
|
|
@@ -424,4 +424,4 @@ export {
|
|
|
424
424
|
targetToMs2 as targetToMs,
|
|
425
425
|
parseCountdown
|
|
426
426
|
};
|
|
427
|
-
//# sourceMappingURL=chunk-
|
|
427
|
+
//# sourceMappingURL=chunk-JQ57AWDL.js.map
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
} from "./chunk-7TF3QOOD.js";
|
|
4
4
|
import {
|
|
5
5
|
tryCollectNote
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-J64NZ6NF.js";
|
|
7
7
|
import {
|
|
8
8
|
resolveNotes
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-O753JUEZ.js";
|
|
10
10
|
import {
|
|
11
11
|
parseInArrowLabel
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-N7VMGZCU.js";
|
|
13
13
|
import {
|
|
14
14
|
displayName,
|
|
15
15
|
normalizeName
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
measureIndent,
|
|
22
22
|
parseFirstLine,
|
|
23
23
|
tryParseSharedOption
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-44GP7PD5.js";
|
|
25
25
|
import {
|
|
26
26
|
NAME_DIAGNOSTIC_CODES,
|
|
27
27
|
emit,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
makeDgmoError,
|
|
30
30
|
nameMergedMessage,
|
|
31
31
|
suggest
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-BYU54C3S.js";
|
|
33
33
|
|
|
34
34
|
// src/graph/flowchart-parser.ts
|
|
35
35
|
function nodeId(shape, label) {
|
|
@@ -474,4 +474,4 @@ export {
|
|
|
474
474
|
looksLikeFlowchart,
|
|
475
475
|
extractSymbols
|
|
476
476
|
};
|
|
477
|
-
//# sourceMappingURL=chunk-
|
|
477
|
+
//# sourceMappingURL=chunk-JRUEIRJB.js.map
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-YC6GVLTI.js";
|
|
10
10
|
import {
|
|
11
11
|
resolveNotes
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-O753JUEZ.js";
|
|
13
13
|
|
|
14
14
|
// src/class/layout.ts
|
|
15
15
|
import dagre from "@dagrejs/dagre";
|
|
@@ -201,4 +201,4 @@ function layoutClassDiagram(parsed, options) {
|
|
|
201
201
|
export {
|
|
202
202
|
layoutClassDiagram
|
|
203
203
|
};
|
|
204
|
-
//# sourceMappingURL=chunk-
|
|
204
|
+
//# sourceMappingURL=chunk-JS2THRCB.js.map
|
|
@@ -3,17 +3,14 @@ import {
|
|
|
3
3
|
} from "./chunk-EOYPX6SF.js";
|
|
4
4
|
import {
|
|
5
5
|
parseClock
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WP2RLGDI.js";
|
|
7
7
|
import {
|
|
8
8
|
parseBracket
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import {
|
|
11
|
-
parseRaci
|
|
12
|
-
} from "./chunk-PYX7QA7B.js";
|
|
9
|
+
} from "./chunk-ZUCXFXLD.js";
|
|
13
10
|
import {
|
|
14
11
|
BODY_DIAGNOSTICS,
|
|
15
12
|
parseBody
|
|
16
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-47E5UTXE.js";
|
|
17
14
|
import {
|
|
18
15
|
EXTENDED_CHART_DOORS,
|
|
19
16
|
parseChart,
|
|
@@ -22,90 +19,94 @@ import {
|
|
|
22
19
|
parseHeatmap,
|
|
23
20
|
parseSankey,
|
|
24
21
|
parseScatter
|
|
25
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-7UDAIP6W.js";
|
|
26
23
|
import {
|
|
27
24
|
parseCycle
|
|
28
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-WQ6G6FFM.js";
|
|
29
26
|
import {
|
|
30
27
|
parseJourneyMap
|
|
31
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-NF5YKFRH.js";
|
|
32
29
|
import {
|
|
33
30
|
parsePyramid
|
|
34
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-PIXJL77H.js";
|
|
35
32
|
import {
|
|
36
33
|
parseRing
|
|
37
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-3C2FWS2J.js";
|
|
38
35
|
import {
|
|
39
36
|
TREEMAP_DIAGNOSTICS,
|
|
40
37
|
parseTreemap
|
|
41
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-P3SKSKJI.js";
|
|
42
39
|
import {
|
|
43
40
|
parseBlock
|
|
44
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-MY6GUH26.js";
|
|
45
42
|
import {
|
|
46
43
|
parseGoal
|
|
47
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-BOO24UMJ.js";
|
|
48
45
|
import {
|
|
49
46
|
parseCountdown
|
|
50
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-JQ57AWDL.js";
|
|
51
48
|
import {
|
|
52
49
|
parseMap
|
|
53
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-HTWH2XQL.js";
|
|
54
51
|
import {
|
|
55
52
|
parseBoxesAndLines
|
|
56
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-MHAYUS65.js";
|
|
57
54
|
import {
|
|
58
55
|
parseSketch
|
|
59
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-RU725VCJ.js";
|
|
60
57
|
import {
|
|
61
58
|
SKETCH_DIAGNOSTICS
|
|
62
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-DV2VEJCC.js";
|
|
63
60
|
import {
|
|
64
61
|
SWIMLANE_DIAGNOSTICS,
|
|
65
62
|
parseSwimlane
|
|
66
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-C7QRRTAW.js";
|
|
67
64
|
import {
|
|
68
65
|
FAMILY_DIAGNOSTICS,
|
|
69
66
|
parseFamily
|
|
70
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-FKZ2Y3Q5.js";
|
|
71
68
|
import {
|
|
72
69
|
parseMindmap
|
|
73
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-NGC3IZRY.js";
|
|
74
71
|
import {
|
|
75
72
|
parseTechRadar
|
|
76
|
-
} from "./chunk-
|
|
77
|
-
import {
|
|
78
|
-
PERT_DIAGNOSTICS,
|
|
79
|
-
looksLikePert,
|
|
80
|
-
parsePert
|
|
81
|
-
} from "./chunk-JN3OA44O.js";
|
|
82
|
-
import {
|
|
83
|
-
isLiveLinkLine,
|
|
84
|
-
parseLiveLink
|
|
85
|
-
} from "./chunk-7TTKMWTA.js";
|
|
73
|
+
} from "./chunk-6K7RODXG.js";
|
|
86
74
|
import {
|
|
87
75
|
EVENT_LINE_DIAGNOSTICS,
|
|
88
76
|
parseEventLine
|
|
89
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-66YFDTT6.js";
|
|
90
78
|
import {
|
|
91
79
|
parseTimelineEventLine
|
|
92
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-GDJW64XE.js";
|
|
93
81
|
import {
|
|
94
82
|
VERSION_CONTROL_DIAGNOSTICS,
|
|
95
83
|
parseVersionControl
|
|
96
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-QFHWYWQL.js";
|
|
97
85
|
import {
|
|
98
86
|
parseKanban
|
|
99
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-GUYVKGFN.js";
|
|
100
88
|
import {
|
|
101
89
|
parseC4
|
|
102
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-GSYZZFI5.js";
|
|
103
91
|
import {
|
|
104
92
|
parseInfra
|
|
105
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-GUTZCRBT.js";
|
|
106
94
|
import {
|
|
107
95
|
parseGantt
|
|
108
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-BAZT6CIF.js";
|
|
97
|
+
import {
|
|
98
|
+
parseDgmoChartType
|
|
99
|
+
} from "./chunk-ECIXBEG2.js";
|
|
100
|
+
import {
|
|
101
|
+
parseRaci
|
|
102
|
+
} from "./chunk-3RYBTEF5.js";
|
|
103
|
+
import {
|
|
104
|
+
PERT_DIAGNOSTICS,
|
|
105
|
+
parsePert
|
|
106
|
+
} from "./chunk-UNNJCSSQ.js";
|
|
107
|
+
import {
|
|
108
|
+
parseLiveLink
|
|
109
|
+
} from "./chunk-HMWZQ53A.js";
|
|
109
110
|
import {
|
|
110
111
|
makeYearContext,
|
|
111
112
|
parseDateToken,
|
|
@@ -113,52 +114,45 @@ import {
|
|
|
113
114
|
toInternal
|
|
114
115
|
} from "./chunk-DAOFNU6J.js";
|
|
115
116
|
import {
|
|
116
|
-
looksLikeSequence,
|
|
117
117
|
parseSequenceDgmo
|
|
118
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-6EV2F6W7.js";
|
|
119
119
|
import {
|
|
120
|
-
looksLikeFlowchart,
|
|
121
120
|
parseFlowchart
|
|
122
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-JRUEIRJB.js";
|
|
123
122
|
import {
|
|
124
123
|
GRAPH_DIAGNOSTICS
|
|
125
124
|
} from "./chunk-7TF3QOOD.js";
|
|
126
125
|
import {
|
|
127
|
-
looksLikeState,
|
|
128
126
|
parseState
|
|
129
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-AYOVY75O.js";
|
|
130
128
|
import {
|
|
131
|
-
looksLikeClassDiagram,
|
|
132
129
|
parseClassDiagram
|
|
133
|
-
} from "./chunk-
|
|
130
|
+
} from "./chunk-A4XPI4YN.js";
|
|
134
131
|
import {
|
|
135
|
-
looksLikeERDiagram,
|
|
136
132
|
parseERDiagram
|
|
137
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-WPL5PFXE.js";
|
|
138
134
|
import {
|
|
139
135
|
ARROW_DIAGNOSTIC_CODES
|
|
140
|
-
} from "./chunk-
|
|
136
|
+
} from "./chunk-N7VMGZCU.js";
|
|
141
137
|
import {
|
|
142
|
-
looksLikeOrg,
|
|
143
138
|
parseOrg
|
|
144
|
-
} from "./chunk-
|
|
139
|
+
} from "./chunk-FJNXXGTR.js";
|
|
145
140
|
import {
|
|
146
|
-
looksLikeSitemap,
|
|
147
141
|
parseSitemap
|
|
148
|
-
} from "./chunk-
|
|
149
|
-
import {
|
|
150
|
-
RACI_DIAGNOSTICS
|
|
151
|
-
} from "./chunk-ALKJBGIV.js";
|
|
142
|
+
} from "./chunk-UG2XG57E.js";
|
|
152
143
|
import {
|
|
153
144
|
parseWireframe
|
|
154
|
-
} from "./chunk-
|
|
145
|
+
} from "./chunk-HSRQDWV7.js";
|
|
146
|
+
import {
|
|
147
|
+
RACI_DIAGNOSTICS
|
|
148
|
+
} from "./chunk-4WW3SGMH.js";
|
|
155
149
|
import {
|
|
156
150
|
matchTagBlockHeading,
|
|
157
151
|
stripDefaultModifier,
|
|
158
152
|
tagAttrKey,
|
|
159
153
|
validateTagGroupNames,
|
|
160
154
|
validateTagValues
|
|
161
|
-
} from "./chunk-
|
|
155
|
+
} from "./chunk-L5AFONQU.js";
|
|
162
156
|
import {
|
|
163
157
|
ALIAS_DIAGNOSTICS,
|
|
164
158
|
TIMELINE_REGISTRY,
|
|
@@ -172,11 +166,12 @@ import {
|
|
|
172
166
|
peelTrailingColorName,
|
|
173
167
|
splitNameAndMeta,
|
|
174
168
|
withTagAliases
|
|
175
|
-
} from "./chunk-
|
|
169
|
+
} from "./chunk-44GP7PD5.js";
|
|
176
170
|
import {
|
|
177
171
|
resolveColorWithDiagnostic
|
|
178
|
-
} from "./chunk-
|
|
172
|
+
} from "./chunk-2M4IGSCY.js";
|
|
179
173
|
import {
|
|
174
|
+
MISTYPED_CHART_TYPE_DX,
|
|
180
175
|
NEGATIVE_VALUE_DX,
|
|
181
176
|
TITLE_DIRECTIVE_DX,
|
|
182
177
|
dedupeDiagnostics,
|
|
@@ -186,7 +181,7 @@ import {
|
|
|
186
181
|
makeDgmoError,
|
|
187
182
|
nameMergedMessage,
|
|
188
183
|
suggest
|
|
189
|
-
} from "./chunk-
|
|
184
|
+
} from "./chunk-BYU54C3S.js";
|
|
190
185
|
|
|
191
186
|
// src/visualizations/types.ts
|
|
192
187
|
var DEFAULT_CLOUD_OPTIONS = {
|
|
@@ -197,6 +192,7 @@ var DEFAULT_CLOUD_OPTIONS = {
|
|
|
197
192
|
};
|
|
198
193
|
|
|
199
194
|
// src/visualizations/parse.ts
|
|
195
|
+
var allChartTypeIds = chartTypes.map((c) => c.id);
|
|
200
196
|
function parseVisualization(content, palette) {
|
|
201
197
|
return parseVisualizationFull(content, palette);
|
|
202
198
|
}
|
|
@@ -1175,15 +1171,15 @@ function parseVisualizationFull(content, palette) {
|
|
|
1175
1171
|
}
|
|
1176
1172
|
}
|
|
1177
1173
|
if (!result.type) {
|
|
1178
|
-
const validD3Types = [...VALID_D3_TYPES];
|
|
1179
1174
|
const firstNonEmpty = lines.find((l) => l.trim() && !l.trim().startsWith("//"))?.trim() ?? "";
|
|
1180
|
-
const
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1175
|
+
const word = firstNonEmpty.split(/\s/)[0];
|
|
1176
|
+
const hint = suggest(word.toLowerCase(), allChartTypeIds);
|
|
1177
|
+
let msg = `'${word}' is not a chart type`;
|
|
1178
|
+
msg += hint ? `. ${hint}` : ` \u2014 line 1 names the chart type, e.g. \`bar Sales\` or \`flowchart Deploy\`.`;
|
|
1179
|
+
const diag = makeDgmoError(1, msg);
|
|
1180
|
+
result.diagnostics.unshift(diag);
|
|
1181
|
+
result.error = formatDgmoError(diag);
|
|
1182
|
+
return result;
|
|
1187
1183
|
}
|
|
1188
1184
|
if (result.type === "sequence") {
|
|
1189
1185
|
return result;
|
|
@@ -1593,6 +1589,7 @@ var UNIVERSAL_DIAGNOSTICS = [
|
|
|
1593
1589
|
example: "org Team\nJane\n Sam"
|
|
1594
1590
|
},
|
|
1595
1591
|
// ── Data-chart `title` directive (decision #48) ──
|
|
1592
|
+
MISTYPED_CHART_TYPE_DX,
|
|
1596
1593
|
TITLE_DIRECTIVE_DX,
|
|
1597
1594
|
// ── Negative value on a magnitude channel (pie/polar-area/radar/funnel/
|
|
1598
1595
|
// sankey/arc/wordcloud/treemap size/map size:/width:) ──
|
|
@@ -1744,53 +1741,6 @@ function isExtendedChartParser(parse) {
|
|
|
1744
1741
|
}
|
|
1745
1742
|
|
|
1746
1743
|
// src/dgmo-router.ts
|
|
1747
|
-
var GANTT_DURATION_RE = /^\d+(?:\.\d+)?(?:min|bd|sp|d|w|m|q|y|h)(?:\?)?\s+/;
|
|
1748
|
-
var GANTT_DATE_RE = /^\d{4}-\d{2}-\d{2}(?:\s\d{2}:\d{2})?\s+/;
|
|
1749
|
-
function looksLikeGantt(content) {
|
|
1750
|
-
const lines = content.split("\n");
|
|
1751
|
-
for (const line of lines) {
|
|
1752
|
-
const trimmed = line.trim();
|
|
1753
|
-
if (!trimmed || trimmed.startsWith("//")) continue;
|
|
1754
|
-
if (GANTT_DURATION_RE.test(trimmed) || GANTT_DATE_RE.test(trimmed)) {
|
|
1755
|
-
return true;
|
|
1756
|
-
}
|
|
1757
|
-
}
|
|
1758
|
-
return false;
|
|
1759
|
-
}
|
|
1760
|
-
var C4_TYPE_RE = /\bis\s+an?\s+(person|system|container|component)\b/i;
|
|
1761
|
-
function looksLikeC4(content) {
|
|
1762
|
-
const lines = content.split("\n");
|
|
1763
|
-
for (const line of lines) {
|
|
1764
|
-
const trimmed = line.trim();
|
|
1765
|
-
if (!trimmed || trimmed.startsWith("//")) continue;
|
|
1766
|
-
if (C4_TYPE_RE.test(trimmed)) {
|
|
1767
|
-
return true;
|
|
1768
|
-
}
|
|
1769
|
-
}
|
|
1770
|
-
return false;
|
|
1771
|
-
}
|
|
1772
|
-
function parseDgmoChartType(content) {
|
|
1773
|
-
const lines = content.split("\n");
|
|
1774
|
-
for (const line of lines) {
|
|
1775
|
-
const trimmed = line.trim();
|
|
1776
|
-
if (!trimmed || trimmed.startsWith("//")) continue;
|
|
1777
|
-
const firstLineResult = parseFirstLine(trimmed);
|
|
1778
|
-
if (firstLineResult) return firstLineResult.chartType;
|
|
1779
|
-
if (isLiveLinkLine(trimmed)) return "live-link";
|
|
1780
|
-
break;
|
|
1781
|
-
}
|
|
1782
|
-
if (looksLikeSequence(content)) return "sequence";
|
|
1783
|
-
if (looksLikeFlowchart(content)) return "flowchart";
|
|
1784
|
-
if (looksLikeClassDiagram(content)) return "class";
|
|
1785
|
-
if (looksLikeERDiagram(content)) return "er";
|
|
1786
|
-
if (looksLikeState(content)) return "state";
|
|
1787
|
-
if (looksLikeSitemap(content)) return "sitemap";
|
|
1788
|
-
if (looksLikeOrg(content)) return "org";
|
|
1789
|
-
if (looksLikeC4(content)) return "c4";
|
|
1790
|
-
if (looksLikeGantt(content)) return "gantt";
|
|
1791
|
-
if (looksLikePert(content)) return "pert";
|
|
1792
|
-
return null;
|
|
1793
|
-
}
|
|
1794
1744
|
function getRenderCategory(chartType) {
|
|
1795
1745
|
return REGISTRY_BY_ID.get(chartType.toLowerCase())?.category ?? null;
|
|
1796
1746
|
}
|
|
@@ -1833,8 +1783,10 @@ function parseDgmoUndeduped(content) {
|
|
|
1833
1783
|
const parser = PARSER_BY_ID.get(chartType);
|
|
1834
1784
|
if (parser) {
|
|
1835
1785
|
const result2 = parser(content);
|
|
1786
|
+
const mistyped = detectMistypedChartType(content, chartType);
|
|
1836
1787
|
return {
|
|
1837
1788
|
diagnostics: [
|
|
1789
|
+
...mistyped ? [mistyped] : [],
|
|
1838
1790
|
...result2.diagnostics,
|
|
1839
1791
|
...detectEmptyContent(content, chartType)
|
|
1840
1792
|
],
|
|
@@ -1850,6 +1802,27 @@ function parseDgmoUndeduped(content) {
|
|
|
1850
1802
|
chartType
|
|
1851
1803
|
};
|
|
1852
1804
|
}
|
|
1805
|
+
var MERMAID_FIRST_WORDS = {
|
|
1806
|
+
graph: "flowchart",
|
|
1807
|
+
journey: "journey-map"
|
|
1808
|
+
};
|
|
1809
|
+
function detectMistypedChartType(content, resolved) {
|
|
1810
|
+
const lines = content.split("\n");
|
|
1811
|
+
for (let i = 0; i < lines.length; i++) {
|
|
1812
|
+
const trimmed = lines[i].trim();
|
|
1813
|
+
if (!trimmed || trimmed.startsWith("#") || trimmed.startsWith("//"))
|
|
1814
|
+
continue;
|
|
1815
|
+
const match = trimmed.match(/^([a-z][a-z0-9-]*)(?:\s|$)/);
|
|
1816
|
+
if (!match) return null;
|
|
1817
|
+
const word = match[1];
|
|
1818
|
+
if (ALL_KNOWN_TYPES.has(word)) return null;
|
|
1819
|
+
const alias = MERMAID_FIRST_WORDS[word];
|
|
1820
|
+
const suggestion = alias ? `Did you mean '${alias}'?` : suggest(word, [...ALL_KNOWN_TYPES]);
|
|
1821
|
+
if (!suggestion) return null;
|
|
1822
|
+
return emit(MISTYPED_CHART_TYPE_DX, i + 1, { word, resolved, suggestion });
|
|
1823
|
+
}
|
|
1824
|
+
return null;
|
|
1825
|
+
}
|
|
1853
1826
|
function detectColonChartType(content) {
|
|
1854
1827
|
const lines = content.split("\n");
|
|
1855
1828
|
for (let i = 0; i < lines.length; i++) {
|
|
@@ -1903,9 +1876,6 @@ export {
|
|
|
1903
1876
|
parseQuadrant,
|
|
1904
1877
|
listDiagnosticCodes,
|
|
1905
1878
|
getDiagnosticSpec,
|
|
1906
|
-
looksLikeGantt,
|
|
1907
|
-
looksLikeC4,
|
|
1908
|
-
parseDgmoChartType,
|
|
1909
1879
|
getRenderCategory,
|
|
1910
1880
|
isExtendedChartType,
|
|
1911
1881
|
getAllChartTypes,
|
|
@@ -1914,4 +1884,4 @@ export {
|
|
|
1914
1884
|
knownChartTypeIds,
|
|
1915
1885
|
parseDgmo
|
|
1916
1886
|
};
|
|
1917
|
-
//# sourceMappingURL=chunk-
|
|
1887
|
+
//# sourceMappingURL=chunk-KABGWUND.js.map
|