@diagrammo/dgmo 0.77.0 → 0.79.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 +17 -13
- package/dist/advanced.d.ts +197 -23
- package/dist/advanced.js +161 -142
- package/dist/block.css +1 -1
- package/dist/block.d.ts +2 -2
- package/dist/block.js +62 -58
- package/dist/{calculator-CVQ54JNE.js → calculator-OHTCZSBW.js} +3 -3
- package/dist/{chart-meta-Cf_jkApJ.d.ts → chart-meta-B7lSmrzg.d.ts} +2 -2
- package/dist/chart-meta.d.ts +3 -3
- package/dist/chart-meta.js +45 -44
- package/dist/charts-d3-EST3Z5VG.js +31 -0
- package/dist/{chunk-U4DS2ODO.js → chunk-253E5ISJ.js} +9 -9
- package/dist/{chunk-7IATMZSA.js → chunk-26EVL454.js} +1 -25
- package/dist/{chunk-MG3DE3VO.js → chunk-2F7AG7LA.js} +4 -4
- package/dist/{chunk-OWVDD5EC.js → chunk-2R2M2C6V.js} +2 -2
- package/dist/{chunk-LYJ53DBK.js → chunk-2RAH6GVR.js} +56 -41
- package/dist/{chunk-Q74GP3GK.js → chunk-37NDM5NW.js} +3 -3
- package/dist/{chunk-N6MZSBOL.js → chunk-3BN3WCUD.js} +5 -2
- package/dist/chunk-3DPOIW3W.js +10 -0
- package/dist/{chunk-HDLRRY3N.js → chunk-3KFGPXHD.js} +195 -135
- package/dist/{chunk-NWNSXHA5.js → chunk-3KNA7OIO.js} +3 -3
- package/dist/{chunk-M5OOAP65.js → chunk-4CA7TJ44.js} +2 -1
- package/dist/{chunk-M5JT2AU7.js → chunk-4L43NPSQ.js} +10 -6
- package/dist/{chunk-4YER7UCV.js → chunk-4T6V7JJA.js} +3 -3
- package/dist/{chunk-3E4YB6TY.js → chunk-4YSWUQKZ.js} +12 -7
- package/dist/{chunk-6BVAW7KI.js → chunk-54JYWS7D.js} +50 -43
- package/dist/{chunk-7NSNE52V.js → chunk-55DMCFGM.js} +3 -3
- package/dist/{chunk-XPBJVSRY.js → chunk-5BV5MXLY.js} +38 -32
- package/dist/{chunk-5VMUVJO4.js → chunk-5DWF3N3V.js} +3 -3
- package/dist/{chunk-SSEAULA5.js → chunk-6775W3UW.js} +19 -15
- package/dist/{chunk-2QRIMMIH.js → chunk-6EMJRAEY.js} +3 -3
- package/dist/{chunk-OZOHREFQ.js → chunk-6FUIPWTS.js} +14 -15
- package/dist/{chunk-F4V67JXG.js → chunk-6JIMYPXR.js} +4 -4
- package/dist/{chunk-CHOK7NCJ.js → chunk-7AEMAUDF.js} +29 -25
- package/dist/{chunk-NVOU7N6C.js → chunk-7DCM3CB5.js} +2 -2
- package/dist/{chunk-UBDVAHGK.js → chunk-7EUTTKNU.js} +36 -31
- package/dist/{chunk-76NHL5UG.js → chunk-7I6NWTPE.js} +2 -2
- package/dist/{chunk-OKXWPKUC.js → chunk-7SHL2WME.js} +2 -2
- package/dist/{chunk-SWEKCK34.js → chunk-AFOHIR2O.js} +3 -3
- package/dist/{chunk-RWFMOVHG.js → chunk-AI7TZQ2R.js} +3 -3
- package/dist/{chunk-BWJLLNUX.js → chunk-ALVK3TBO.js} +3 -3
- package/dist/{chunk-GLREDNBA.js → chunk-AMQFJ7P7.js} +21 -2
- package/dist/{chunk-RGW26UAR.js → chunk-CCETDPLV.js} +11 -11
- package/dist/{chunk-5ZD4DDG7.js → chunk-CE654SL2.js} +17 -14
- package/dist/{chunk-TPN7RJOM.js → chunk-CFYTCBRH.js} +4 -4
- package/dist/{chunk-YT5ICQ4R.js → chunk-CKDYRVOC.js} +3 -3
- package/dist/{chunk-WQXD3IIN.js → chunk-CRBW2WS7.js} +11 -9
- package/dist/{chunk-J76YDS4V.js → chunk-CREALBZL.js} +3 -3
- package/dist/{chunk-MZEGUDTA.js → chunk-CSTYDCKB.js} +16 -16
- package/dist/{chunk-QBM5BURJ.js → chunk-DG5IQW74.js} +10 -10
- package/dist/{chunk-Y2CYNRL7.js → chunk-DN6K6QCF.js} +2 -2
- package/dist/{chunk-43AJKH2U.js → chunk-DQOCYWB6.js} +12 -10
- package/dist/{chunk-FTTB64OJ.js → chunk-EBEFYSVZ.js} +40 -40
- package/dist/{chunk-L65WI4HO.js → chunk-EDU2OCIQ.js} +2 -2
- package/dist/{chunk-SWUQJ5VR.js → chunk-EOG4QKKV.js} +108 -65
- package/dist/chunk-EPDBWATV.js +38 -0
- package/dist/{chunk-5GM6BZO7.js → chunk-F66R7CPY.js} +6 -3
- package/dist/{chunk-7BMX2M3F.js → chunk-FFDHZVEL.js} +2 -2
- package/dist/{chunk-WGC42WJU.js → chunk-FWNJDD4U.js} +6 -2
- package/dist/{chunk-SI3PYDL4.js → chunk-GWA6UGNX.js} +22 -22
- package/dist/{chunk-QMFIZQTB.js → chunk-HIOJSYDA.js} +7 -5
- package/dist/{chunk-NHQ7HUAS.js → chunk-HJ5DKZPO.js} +12 -10
- package/dist/{chunk-FPRMP6YA.js → chunk-HJZ4OET2.js} +32 -17
- package/dist/{chunk-N5NQIZ56.js → chunk-HLTVEXML.js} +25 -25
- package/dist/{chunk-6IN4F4RH.js → chunk-I6DFQQER.js} +42 -44
- package/dist/chunk-ICLB27PZ.js +11 -0
- package/dist/{chunk-R3XI2VC7.js → chunk-IDJGV6VM.js} +2 -1
- package/dist/{chunk-ZM27UI5O.js → chunk-IEK2FUWO.js} +19 -6
- package/dist/{chunk-FJ57274M.js → chunk-IIEI7VK5.js} +15 -1
- package/dist/{chunk-DY7KDZUF.js → chunk-IZK2H4KU.js} +3 -3
- package/dist/{chunk-CRLVJZWX.js → chunk-JOG6W3VS.js} +2 -2
- package/dist/{chunk-XFXJXLK7.js → chunk-JTLLQT34.js} +19 -19
- package/dist/{chunk-MS5574I7.js → chunk-K3K7JHZI.js} +2 -2
- package/dist/{chunk-GOW5VO6M.js → chunk-KHRZCKKG.js} +2 -2
- package/dist/{chunk-D3B6YEZK.js → chunk-KIF4UFD2.js} +20 -16
- package/dist/{chunk-EUVUOPRC.js → chunk-KYK6PMB5.js} +55 -34
- package/dist/{chunk-RU2HHHYA.js → chunk-LD2JSKU3.js} +12 -2
- package/dist/{chunk-CYMYZYLI.js → chunk-LJ7X6ZNV.js} +25 -28
- package/dist/{chunk-ICVIJLBA.js → chunk-LLYHYPYG.js} +4 -4
- package/dist/{chunk-VRPV6QXR.js → chunk-LLZVRWVS.js} +2 -2
- package/dist/{chunk-Z7KVOVE4.js → chunk-LXTMP3VT.js} +7 -4
- package/dist/{chunk-7CXW6EGX.js → chunk-MDUCF376.js} +28 -26
- package/dist/{chunk-KWSBNLSC.js → chunk-MQAD75AY.js} +2 -2
- package/dist/{chunk-XCFIAGT7.js → chunk-MUTZSF2A.js} +17 -16
- package/dist/{chunk-CF3I5SOG.js → chunk-NVI5G57O.js} +29 -27
- package/dist/{chunk-76LHNLGX.js → chunk-O2HU4AQN.js} +34 -5
- package/dist/{chunk-46KVXDUJ.js → chunk-O5QG5IFV.js} +12 -3
- package/dist/{chunk-V4NHFY22.js → chunk-OLRVGPJ3.js} +33 -20
- package/dist/{chunk-WHWUVDYK.js → chunk-OM6XZAKM.js} +7 -7
- package/dist/{chunk-DSXWJAOA.js → chunk-OMN4F42L.js} +17 -15
- package/dist/{chunk-LM3HY3VG.js → chunk-P4U5GST7.js} +3 -3
- package/dist/{chunk-BH3BQICT.js → chunk-PKW4TLJC.js} +88 -44
- package/dist/{chunk-GRN44Z6A.js → chunk-PQR7E3LY.js} +2 -2
- package/dist/{chunk-SH4PPRU7.js → chunk-Q5KGGW7Z.js} +2 -2
- package/dist/{chunk-RV5A3EGI.js → chunk-QDHOIBHZ.js} +21 -20
- package/dist/{chunk-UH5YTZN7.js → chunk-QDTFFVLT.js} +113 -23
- package/dist/chunk-QFIXL3OK.js +68 -0
- package/dist/{chunk-QXMHBIQG.js → chunk-QGXH64FT.js} +52 -49
- package/dist/{chunk-VS2M72PF.js → chunk-RLJKH4ZO.js} +4 -2
- package/dist/{chunk-6ZZKEYBS.js → chunk-RN3DOUOU.js} +17 -15
- package/dist/{chunk-VBJCGGNF.js → chunk-RPP3NHKV.js} +2 -2
- package/dist/{chunk-RTTZIX34.js → chunk-RVWWCQAB.js} +3 -3
- package/dist/{chunk-FR5EVD2X.js → chunk-RWF7TCGT.js} +68 -38
- package/dist/{chunk-LKS56RDT.js → chunk-S6GPBJWG.js} +2 -2
- package/dist/{chunk-UJBP57UJ.js → chunk-S7ZJEQPW.js} +4 -4
- package/dist/{chunk-3H4PDNP4.js → chunk-SEOM2BGQ.js} +3 -3
- package/dist/{chunk-5PFNUDXR.js → chunk-T3EW35M2.js} +3 -3
- package/dist/{chunk-3SP6G4LN.js → chunk-TPQ6Q7JP.js} +3 -3
- package/dist/{chunk-B52RL5VV.js → chunk-ULUZBEFO.js} +11 -11
- package/dist/{chunk-F4X5NVKY.js → chunk-UNYOWKEC.js} +13 -4
- package/dist/{chunk-DEW62ON3.js → chunk-VSPNH7LC.js} +2 -2
- package/dist/{chunk-C2WH3BMS.js → chunk-VTWUHX4H.js} +10 -7
- package/dist/{chunk-DJL5PO27.js → chunk-W4MC3KP6.js} +2 -2
- package/dist/{chunk-MU3CJPJF.js → chunk-W6DBWWPC.js} +3 -3
- package/dist/{chunk-JLODGGN2.js → chunk-WC72PTV4.js} +3 -3
- package/dist/{chunk-NCT22MOD.js → chunk-WMIKC5XO.js} +2 -2
- package/dist/{chunk-H7BYMIVK.js → chunk-WY4L675I.js} +70 -44
- package/dist/chunk-XBJJP2HN.js +37 -0
- package/dist/{chunk-KRTLS3G6.js → chunk-XDEEYDPQ.js} +4 -4
- package/dist/{chunk-S5P5Z5Y5.js → chunk-XNAMWOPJ.js} +3 -3
- package/dist/{chunk-2MTM4E6M.js → chunk-XND5JIJA.js} +68 -65
- package/dist/{chunk-S6OXNZBM.js → chunk-XWC4RQ7T.js} +4 -4
- package/dist/{chunk-UCZBRGJN.js → chunk-XXLAZQ5E.js} +2 -2
- package/dist/{chunk-LXXVHLTH.js → chunk-Y22BJKMK.js} +3 -3
- package/dist/{chunk-OO2L2LWV.js → chunk-Y2KFQX5K.js} +89 -66
- package/dist/{chunk-TI4YUUW6.js → chunk-Y3OLUMJH.js} +31 -30
- package/dist/{chunk-CIWFL2LM.js → chunk-Y3RYIGHZ.js} +17 -15
- package/dist/{chunk-MTGGOCND.js → chunk-YC6GVLTI.js} +61 -10
- package/dist/{chunk-TKIPK5P6.js → chunk-YD2HPT7W.js} +5 -7
- package/dist/{chunk-3O7ZYVJV.js → chunk-YPVP6I62.js} +19 -15
- package/dist/{chunk-FF7LRT5L.js → chunk-YQIZIKCK.js} +35 -27
- package/dist/{chunk-M526IKKH.js → chunk-Z4COUG7H.js} +2 -2
- package/dist/{chunk-LTTZX6RD.js → chunk-Z5ZCTCX4.js} +3 -3
- package/dist/{chunk-QOVM5VRC.js → chunk-ZASX45SU.js} +3 -3
- package/dist/{chunk-W7UBPARG.js → chunk-ZH3BWGTE.js} +3 -3
- package/dist/{chunk-TN754B3R.js → chunk-ZZZJVDIL.js} +2 -2
- package/dist/clock.js +11 -5
- package/dist/completion-registry.js +3 -3
- package/dist/countdown.js +26 -20
- package/dist/{d3-BiaJtaSw.d.ts → d3-Bje6Mla1.d.ts} +1 -1
- package/dist/dgmo-router-OXFV43XX.js +90 -0
- package/dist/{dgmo-router-BwXHZ_P3.d.ts → dgmo-router-zWf4Uxxg.d.ts} +1 -1
- package/dist/dimensions-AN34SPVX.js +22 -0
- package/dist/{flowchart-parser-NVBP3C5D.js → flowchart-parser-MRNAVG35.js} +4 -4
- package/dist/flowchart-renderer-IGSKJFMF.js +37 -0
- package/dist/index.d.ts +7 -7
- package/dist/index.js +75 -60
- package/dist/{layout-Y2V3LYV7.js → layout-5AYAYUJH.js} +2 -2
- package/dist/{layout-ZAGUFT2G.js → layout-6APS2RRG.js} +8 -7
- package/dist/{layout-B5GQVXXY.js → layout-6VUNAH6F.js} +8 -7
- package/dist/{layout-RV2T2YTT.js → layout-74HDWQYG.js} +6 -5
- package/dist/{layout-6SKHNQYO.js → layout-FCIYZV63.js} +4 -4
- package/dist/{layout-4LNMXLVK.js → layout-J2Z2SYH5.js} +3 -3
- package/dist/layout-LELNMRM5.js +16 -0
- package/dist/{layout-EM4DLMAX.js → layout-OPF6KTOH.js} +5 -5
- package/dist/layout-SUND6B7D.js +9 -0
- package/dist/layout-WASEHV3S.js +19 -0
- package/dist/{layout-SGYR6HBX.js → layout-XAJLQPI6.js} +3 -3
- package/dist/layout-XY45TFJ4.js +16 -0
- package/dist/layout-YPRXVCW5.js +19 -0
- package/dist/{layout-2OJ25STS.js → layout-ZJOWB27N.js} +9 -8
- package/dist/{layout-search-UOKEMER5.js → layout-search-3JKNSUTJ.js} +8 -7
- package/dist/{legend-constants-PLN2YHGM.js → legend-constants-RSWFR3L6.js} +4 -4
- package/dist/{palettes-54YSI3IX.js → palettes-IAF6WVL4.js} +5 -3
- package/dist/{parser-QOIZGW7I.js → parser-2Y7LWKNO.js} +4 -4
- package/dist/{parser-EQ4I3TSH.js → parser-4GUQUDAC.js} +5 -5
- package/dist/{parser-TA5TYZNL.js → parser-4OXANARZ.js} +5 -5
- package/dist/{parser-L7T7FY3H.js → parser-56UEMRXS.js} +4 -4
- package/dist/{parser-2GMHFSTS.js → parser-66QZQYGE.js} +4 -4
- package/dist/{parser-3AOMUX5D.js → parser-6SS7DKVW.js} +4 -4
- package/dist/{parser-QYAIFXLP.js → parser-AYURCBDZ.js} +4 -4
- package/dist/{parser-5XFGK5C5.js → parser-COPCQEHV.js} +6 -6
- package/dist/{parser-F4ZKDGUZ.js → parser-DEWJM5PX.js} +3 -3
- package/dist/{parser-ZXQZZK6W.js → parser-DQKZDA2J.js} +4 -3
- package/dist/{parser-WCFG3DZA.js → parser-EMPM3V35.js} +3 -3
- package/dist/{parser-6FUESG4N.js → parser-EP2JQJNV.js} +4 -4
- package/dist/{parser-ZYAFHXKQ.js → parser-FDDHTBRV.js} +4 -4
- package/dist/{parser-3KQONLXZ.js → parser-FDESUQ32.js} +3 -3
- package/dist/{parser-LV7PQBUG.js → parser-GK6CMK4P.js} +4 -4
- package/dist/{parser-WVE6SKB7.js → parser-H33OKBUB.js} +4 -4
- package/dist/{parser-ML3LVNDV.js → parser-HJBSWTDY.js} +4 -4
- package/dist/{parser-PR3OR3LO.js → parser-HRIKI5O3.js} +5 -5
- package/dist/{parser-H4ZUNLX4.js → parser-I77632XB.js} +3 -3
- package/dist/{parser-YWQCC33R.js → parser-JGMQE7FS.js} +4 -4
- package/dist/{parser-WMJEPZDC.js → parser-JIPG576H.js} +4 -4
- package/dist/{parser-E3OHNNTH.js → parser-JNJ2IFSO.js} +4 -4
- package/dist/{parser-CJNP7RKR.js → parser-LCUQTABE.js} +4 -4
- package/dist/{parser-4DLU4SNG.js → parser-LXU3MGG6.js} +3 -3
- package/dist/{parser-WWRRG2DV.js → parser-N4YB5EIZ.js} +4 -4
- package/dist/{parser-XVSDFO56.js → parser-NC36PRBR.js} +3 -3
- package/dist/{parser-RDBXEVI4.js → parser-O6WYAXTS.js} +4 -4
- package/dist/{parser-4KFJKLP2.js → parser-UHABNZBC.js} +3 -3
- package/dist/{parser-GCVSRQPY.js → parser-V6HULGXW.js} +4 -4
- package/dist/{parser-UTR5WE4O.js → parser-VVWZIMYS.js} +4 -4
- package/dist/{parser-B2XQNHZM.js → parser-YJGTPT7A.js} +3 -3
- package/dist/{parser-WQNT7T2P.js → parser-YQ5F7ATB.js} +3 -3
- package/dist/{parser-ZT3PU2HT.js → parser-ZUH2G7J2.js} +4 -4
- package/dist/renderer-2ZGZSSCV.js +39 -0
- package/dist/renderer-33AB7UAZ.js +35 -0
- package/dist/renderer-43KEDLTQ.js +23 -0
- package/dist/renderer-4E6NNPNU.js +29 -0
- package/dist/renderer-4HFT4HJG.js +39 -0
- package/dist/renderer-63MHARNI.js +20 -0
- package/dist/renderer-6HPV7BMG.js +23 -0
- package/dist/renderer-BVJ3NVRB.js +20 -0
- package/dist/renderer-DV44AS75.js +28 -0
- package/dist/renderer-FLLVGYUY.js +30 -0
- package/dist/renderer-FSV7MTW3.js +17 -0
- package/dist/renderer-H6XEVHKH.js +27 -0
- package/dist/renderer-HNEMQJXT.js +21 -0
- package/dist/{renderer-CVWQD442.js → renderer-IIN3RY4F.js} +6 -5
- package/dist/renderer-K2OWHNBV.js +25 -0
- package/dist/renderer-M6UIXQHH.js +27 -0
- package/dist/renderer-N5CRYFBI.js +31 -0
- package/dist/{renderer-VF7X66SL.js → renderer-O3O6A3RY.js} +16 -16
- package/dist/renderer-OVRX36WE.js +39 -0
- package/dist/renderer-PLKMHBAB.js +30 -0
- package/dist/{renderer-G2DPKJAN.js → renderer-REHVBQ57.js} +17 -16
- package/dist/{renderer-GHBF5PRH.js → renderer-RW446FGL.js} +6 -5
- package/dist/renderer-SJV75NUI.js +28 -0
- package/dist/renderer-TKWW45LZ.js +36 -0
- package/dist/{renderer-FTX67CYZ.js → renderer-UHLTPQTW.js} +7 -6
- package/dist/renderer-UNYFAMFE.js +16 -0
- package/dist/renderer-URXHBQOF.js +26 -0
- package/dist/renderer-VBAQQWDB.js +25 -0
- package/dist/renderer-VI72MVFW.js +77 -0
- package/dist/renderer-XGJIACBV.js +25 -0
- package/dist/renderer-XVTKGPYT.js +20 -0
- package/dist/{renderer-R5HIRN2M.js → renderer-YLIICO4R.js} +9 -9
- package/dist/renderer-ZG6GPWZF.js +27 -0
- package/dist/renderer-radial-7UHFYOOL.js +21 -0
- package/dist/{state-parser-TPA67IXM.js → state-parser-XT4ZPQAF.js} +5 -5
- package/dist/state-renderer-6TVII5ZJ.js +41 -0
- package/dist/{tag-groups-BAtkq0b_.d.ts → tag-groups-DIJV_50B.d.ts} +18 -9
- package/dist/{themes-DpsyRSO7.d.ts → themes-Bgkyh6gh.d.ts} +2 -2
- package/docs/architecture-report.md +3 -3
- package/docs/language-reference.md +128 -30
- package/docs/migration-sequence-color-to-tags.md +16 -8
- package/package.json +7 -6
- package/dist/charts-d3-HMEMHSSW.js +0 -29
- package/dist/chunk-53SEVJQM.js +0 -9
- package/dist/chunk-LP7EC4MI.js +0 -16
- package/dist/chunk-YM5RMLFO.js +0 -40
- package/dist/dgmo-router-A3LIHT6H.js +0 -89
- package/dist/dimensions-OFF4GRFL.js +0 -22
- package/dist/flowchart-renderer-BBJUPORB.js +0 -36
- package/dist/layout-5ILNODTP.js +0 -15
- package/dist/layout-IN53LAE6.js +0 -9
- package/dist/layout-KQUSB45X.js +0 -18
- package/dist/layout-ROORJQ4X.js +0 -18
- package/dist/layout-VUZ3MLOI.js +0 -15
- package/dist/renderer-2ANDPQWC.js +0 -16
- package/dist/renderer-2LDT4TUX.js +0 -25
- package/dist/renderer-2NYQDW37.js +0 -20
- package/dist/renderer-2RIIIO34.js +0 -39
- package/dist/renderer-3HFU3DTO.js +0 -25
- package/dist/renderer-4BF6ILP6.js +0 -27
- package/dist/renderer-5E2AH5TO.js +0 -38
- package/dist/renderer-62SLWRYF.js +0 -27
- package/dist/renderer-ANJUDBOS.js +0 -34
- package/dist/renderer-D6GJ6EVK.js +0 -30
- package/dist/renderer-DNFV2IQI.js +0 -36
- package/dist/renderer-EDVCGIQO.js +0 -76
- package/dist/renderer-EFQSMHID.js +0 -27
- package/dist/renderer-GZLRX764.js +0 -24
- package/dist/renderer-H2HYLFN3.js +0 -20
- package/dist/renderer-IR5655M7.js +0 -28
- package/dist/renderer-L237AOOZ.js +0 -16
- package/dist/renderer-LSJWYGOL.js +0 -39
- package/dist/renderer-LWXDMZOV.js +0 -28
- package/dist/renderer-MYSVPERC.js +0 -22
- package/dist/renderer-OL5QSZPC.js +0 -31
- package/dist/renderer-P26HH3NA.js +0 -30
- package/dist/renderer-RNFECJ5D.js +0 -21
- package/dist/renderer-RPZVNCTF.js +0 -26
- package/dist/renderer-SDNWZDUY.js +0 -23
- package/dist/renderer-UKHH4UWV.js +0 -25
- package/dist/renderer-Y3Y7PEUS.js +0 -20
- package/dist/renderer-radial-QNGCGKZP.js +0 -21
- package/dist/state-renderer-ELWDRXD6.js +0 -40
|
@@ -3,16 +3,20 @@ import {
|
|
|
3
3
|
} from "./chunk-EOYPX6SF.js";
|
|
4
4
|
import {
|
|
5
5
|
renderDataChartD3
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QDTFFVLT.js";
|
|
7
7
|
import {
|
|
8
8
|
computeQuadrantPointLabels
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-EDU2OCIQ.js";
|
|
10
10
|
import {
|
|
11
11
|
renderTimeline
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-QGXH64FT.js";
|
|
13
13
|
import {
|
|
14
14
|
ScaleContext
|
|
15
15
|
} from "./chunk-24YPR5EH.js";
|
|
16
|
+
import {
|
|
17
|
+
GRID_DASH,
|
|
18
|
+
scaleDash
|
|
19
|
+
} from "./chunk-IIEI7VK5.js";
|
|
16
20
|
import {
|
|
17
21
|
EXPORT_HEIGHT,
|
|
18
22
|
EXPORT_WIDTH,
|
|
@@ -24,17 +28,17 @@ import {
|
|
|
24
28
|
renderChartTitle,
|
|
25
29
|
resolveExportPalette,
|
|
26
30
|
showTooltip
|
|
27
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-4YSWUQKZ.js";
|
|
28
32
|
import {
|
|
29
33
|
legendInlineSupported
|
|
30
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-2F7AG7LA.js";
|
|
31
35
|
import {
|
|
32
36
|
FONT_FAMILY
|
|
33
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-ICLB27PZ.js";
|
|
34
38
|
import {
|
|
35
39
|
measureText,
|
|
36
40
|
wrapTextToWidth
|
|
37
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-YC6GVLTI.js";
|
|
38
42
|
import {
|
|
39
43
|
getRenderCategory,
|
|
40
44
|
parseArc,
|
|
@@ -45,19 +49,19 @@ import {
|
|
|
45
49
|
parseVenn,
|
|
46
50
|
parseVisualization,
|
|
47
51
|
parseWordcloud
|
|
48
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-EBEFYSVZ.js";
|
|
49
53
|
import {
|
|
50
54
|
resolveActiveTagGroup,
|
|
51
55
|
tagAttrKey
|
|
52
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-O2HU4AQN.js";
|
|
53
57
|
import {
|
|
54
58
|
getPalette
|
|
55
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-IDJGV6VM.js";
|
|
56
60
|
import {
|
|
57
61
|
getSeriesColors,
|
|
58
62
|
mix,
|
|
59
63
|
themeBaseBg
|
|
60
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-AMQFJ7P7.js";
|
|
61
65
|
import {
|
|
62
66
|
emit,
|
|
63
67
|
makeDgmoError
|
|
@@ -101,7 +105,7 @@ function renderSlopeChart(container, parsed, palette, isDark, onClickItem, expor
|
|
|
101
105
|
const sPeriodFont = ctx.text(18);
|
|
102
106
|
const sValueFont = ctx.text(16);
|
|
103
107
|
const sPeriodHeaderY = ctx.structural(15);
|
|
104
|
-
const sDash =
|
|
108
|
+
const sDash = scaleDash(GRID_DASH, (n) => ctx.structural(n));
|
|
105
109
|
const sLineStroke = ctx.structural(2.5);
|
|
106
110
|
const sHitWidth = ctx.structural(14);
|
|
107
111
|
const sPointR = ctx.structural(4);
|
|
@@ -141,7 +145,7 @@ function renderSlopeChart(container, parsed, palette, isDark, onClickItem, expor
|
|
|
141
145
|
);
|
|
142
146
|
for (const period of periods) {
|
|
143
147
|
const x = xScale(period);
|
|
144
|
-
g.append("text").attr("x", x).attr("y", -sPeriodHeaderY).attr("text-anchor", "middle").attr("fill", textColor).attr("font-size",
|
|
148
|
+
g.append("text").attr("x", x).attr("y", -sPeriodHeaderY).attr("text-anchor", "middle").attr("fill", textColor).attr("font-size", sPeriodFont).attr("font-weight", "bold").text(period);
|
|
145
149
|
g.append("line").attr("x1", x).attr("y1", 0).attr("x2", x).attr("y2", innerHeight).attr("stroke", mutedColor).attr("stroke-width", 1).attr("stroke-dasharray", sDash);
|
|
146
150
|
}
|
|
147
151
|
const lineGen = d3Shape.line().x((_d, i) => xScale(periods[i])).y((d) => yScale(d));
|
|
@@ -232,11 +236,11 @@ function renderSlopeChart(container, parsed, palette, isDark, onClickItem, expor
|
|
|
232
236
|
const isLast = i === periods.length - 1;
|
|
233
237
|
if (!isLast) {
|
|
234
238
|
const adjustedY = leftLabelCollisions.get(i)[idx];
|
|
235
|
-
seriesG.append("text").attr("x", isFirst ? x - sValueLabelXOff : x).attr("y", adjustedY).attr("dy", "0.35em").attr("text-anchor", isFirst ? "end" : "middle").attr("fill", color).attr("font-size",
|
|
239
|
+
seriesG.append("text").attr("x", isFirst ? x - sValueLabelXOff : x).attr("y", adjustedY).attr("dy", "0.35em").attr("text-anchor", isFirst ? "end" : "middle").attr("fill", color).attr("font-size", sValueFont).text(val.toString());
|
|
236
240
|
}
|
|
237
241
|
});
|
|
238
242
|
const adjustedLastY = rightAdjustedY[idx];
|
|
239
|
-
const labelEl = seriesG.append("text").attr("x", si.lastX + sLabelGap).attr("y", adjustedLastY).attr("text-anchor", "start").attr("fill", color).attr("font-size",
|
|
243
|
+
const labelEl = seriesG.append("text").attr("x", si.lastX + sLabelGap).attr("y", adjustedLastY).attr("text-anchor", "start").attr("fill", color).attr("font-size", sLabelFontSize).attr("font-weight", "normal");
|
|
240
244
|
if (!si.wrappedLines) {
|
|
241
245
|
labelEl.attr("dy", "0.35em").text(si.labelText);
|
|
242
246
|
} else {
|
|
@@ -392,7 +396,7 @@ function renderArcDiagram(container, parsed, palette, isDark, onClickItem, expor
|
|
|
392
396
|
const sNodeLabelYOffset = ctx.structural(ARC_NODE_LABEL_Y_OFFSET);
|
|
393
397
|
const sStrokeMin = ctx.structural(ARC_STROKE_MIN);
|
|
394
398
|
const sStrokeMax = ctx.structural(ARC_STROKE_MAX);
|
|
395
|
-
const sBaselineDash =
|
|
399
|
+
const sBaselineDash = scaleDash(GRID_DASH, (n) => ctx.structural(n));
|
|
396
400
|
const sBaselineStrokeWidth = ctx.structural(ARC_BASELINE_STROKE_WIDTH);
|
|
397
401
|
svg.attr("preserveAspectRatio", "xMidYMin meet");
|
|
398
402
|
if (ctx.isBelowFloor) {
|
|
@@ -530,7 +534,7 @@ function renderArcDiagram(container, parsed, palette, isDark, onClickItem, expor
|
|
|
530
534
|
if (onClickItem) onClickItem(group.lineNumber);
|
|
531
535
|
});
|
|
532
536
|
const nameX = bandLeft + vNameColW / 2;
|
|
533
|
-
g.append("text").attr("class", "arc-group-label").attr("data-group", group.name).attr("data-line-number", String(group.lineNumber)).attr("x", nameX).attr("y", midYBand).attr("text-anchor", "middle").attr("transform", `rotate(-90 ${nameX} ${midYBand})`).attr("fill", textColor).attr("font-size",
|
|
537
|
+
g.append("text").attr("class", "arc-group-label").attr("data-group", group.name).attr("data-line-number", String(group.lineNumber)).attr("x", nameX).attr("y", midYBand).attr("text-anchor", "middle").attr("transform", `rotate(-90 ${nameX} ${midYBand})`).attr("fill", textColor).attr("font-size", sGroupLabelFont).attr("font-weight", "bold").attr("fill-opacity", 0.6).style("cursor", onClickItem ? "pointer" : "default").text(group.name).on("mouseenter", () => handleGroupEnter(group.name)).on("mouseleave", handleMouseLeave).on("click", () => {
|
|
534
538
|
if (onClickItem) onClickItem(group.lineNumber);
|
|
535
539
|
});
|
|
536
540
|
}
|
|
@@ -564,7 +568,7 @@ function renderArcDiagram(container, parsed, palette, isDark, onClickItem, expor
|
|
|
564
568
|
"stroke-width",
|
|
565
569
|
outlineDots ? ctx.structural(2) : sNodeStrokeWidth
|
|
566
570
|
);
|
|
567
|
-
nodeG.append("text").attr("x", baseX - sNodeLabelXOffset).attr("y", y).attr("dy", "0.35em").attr("text-anchor", "end").attr("fill", textColor).attr("font-size",
|
|
571
|
+
nodeG.append("text").attr("x", baseX - sNodeLabelXOffset).attr("y", y).attr("dy", "0.35em").attr("text-anchor", "end").attr("fill", textColor).attr("font-size", sNodeLabelFont).text(node);
|
|
568
572
|
}
|
|
569
573
|
} else {
|
|
570
574
|
const xScale = d3Scale2.scalePoint().domain(nodes).range([0, innerWidth]).padding(0.5);
|
|
@@ -649,7 +653,7 @@ function renderArcDiagram(container, parsed, palette, isDark, onClickItem, expor
|
|
|
649
653
|
}).style("cursor", "pointer").on("mouseenter", () => handleGroupEnter(group.name)).on("mouseleave", handleMouseLeave).on("click", () => {
|
|
650
654
|
if (onClickItem) onClickItem(group.lineNumber);
|
|
651
655
|
});
|
|
652
|
-
g.append("text").attr("class", "arc-group-label").attr("data-group", group.name).attr("data-line-number", String(group.lineNumber)).attr("x", (minP + maxP) / 2).attr("y", nameY).attr("text-anchor", "middle").attr("fill", textColor).attr("font-size",
|
|
656
|
+
g.append("text").attr("class", "arc-group-label").attr("data-group", group.name).attr("data-line-number", String(group.lineNumber)).attr("x", (minP + maxP) / 2).attr("y", nameY).attr("text-anchor", "middle").attr("fill", textColor).attr("font-size", sGroupLabelFont).attr("font-weight", "bold").attr("fill-opacity", 0.6).style("cursor", onClickItem ? "pointer" : "default").text(group.name).on("mouseenter", () => handleGroupEnter(group.name)).on("mouseleave", handleMouseLeave).on("click", () => {
|
|
653
657
|
if (onClickItem) onClickItem(group.lineNumber);
|
|
654
658
|
});
|
|
655
659
|
}
|
|
@@ -684,7 +688,7 @@ function renderArcDiagram(container, parsed, palette, isDark, onClickItem, expor
|
|
|
684
688
|
outlineDots ? ctx.structural(2) : sNodeStrokeWidth
|
|
685
689
|
);
|
|
686
690
|
const labelY = rotateLabels ? baseY + labelPivotGap : baseY + sNodeLabelYOffset;
|
|
687
|
-
const nodeLabel = nodeG.append("text").attr("x", x).attr("y", labelY).attr("text-anchor", rotateLabels ? "end" : "middle").attr("fill", textColor).attr("font-size",
|
|
691
|
+
const nodeLabel = nodeG.append("text").attr("x", x).attr("y", labelY).attr("text-anchor", rotateLabels ? "end" : "middle").attr("fill", textColor).attr("font-size", sNodeLabelFont).text(node);
|
|
688
692
|
if (rotateLabels) {
|
|
689
693
|
nodeLabel.attr("transform", `rotate(-45 ${x} ${labelY})`);
|
|
690
694
|
}
|
|
@@ -795,7 +799,7 @@ function renderWordCloud(container, parsed, palette, _isDark, onClickItem, expor
|
|
|
795
799
|
);
|
|
796
800
|
const sized = words.map((w) => ({ ...w, size: fontSize(w.weight) }));
|
|
797
801
|
const draw = (layoutWords) => {
|
|
798
|
-
g.selectAll("text").data(layoutWords).join("text").style("font-size", (d) => `${d.size}px`).style("font-family", FONT_FAMILY).style("font-weight", "
|
|
802
|
+
g.selectAll("text").data(layoutWords).join("text").style("font-size", (d) => `${d.size}px`).style("font-family", FONT_FAMILY).style("font-weight", "bold").style("fill", (_d, i) => colors[i % colors.length]).style(
|
|
799
803
|
"cursor",
|
|
800
804
|
(d) => onClickItem && d.lineNumber ? "pointer" : "default"
|
|
801
805
|
).attr("text-anchor", "middle").attr("transform", (d) => `translate(${d.x},${d.y}) rotate(${d.rotate})`).attr("data-line-number", (d) => {
|
|
@@ -850,7 +854,7 @@ function renderWordCloudAsync(container, parsed, palette, _isDark, exportDims) {
|
|
|
850
854
|
);
|
|
851
855
|
const sized = words.map((w) => ({ ...w, size: fontSize(w.weight) }));
|
|
852
856
|
const draw = (layoutWords) => {
|
|
853
|
-
g.selectAll("text").data(layoutWords).join("text").style("font-size", (d) => `${d.size}px`).style("font-family", FONT_FAMILY).style("font-weight", "
|
|
857
|
+
g.selectAll("text").data(layoutWords).join("text").style("font-size", (d) => `${d.size}px`).style("font-family", FONT_FAMILY).style("font-weight", "bold").style("fill", (_d, i) => colors[i % colors.length]).attr("text-anchor", "middle").attr(
|
|
854
858
|
"transform",
|
|
855
859
|
(d) => `translate(${d.x},${d.y}) rotate(${d.rotate})`
|
|
856
860
|
).text((d) => d.text);
|
|
@@ -1215,7 +1219,7 @@ function renderVenn(container, parsed, palette, _isDark, onClickItem, exportDims
|
|
|
1215
1219
|
const labelG = labelGroup.append("g").style("cursor", "default").on("mouseenter", () => showRegionOverlay([i])).on("mouseleave", () => hideAllOverlays());
|
|
1216
1220
|
registerLabel(setKey, labelG);
|
|
1217
1221
|
if (fitsInside) {
|
|
1218
|
-
labelG.append("text").attr("x", centroid.x).attr("y", centroid.y).attr("text-anchor", "middle").attr("dominant-baseline", "central").attr("fill", textColor).attr("font-size",
|
|
1222
|
+
labelG.append("text").attr("x", centroid.x).attr("y", centroid.y).attr("text-anchor", "middle").attr("dominant-baseline", "central").attr("fill", textColor).attr("font-size", Math.round(fitFont)).attr("font-weight", "bold").text(text);
|
|
1219
1223
|
setLabelBBoxes[i] = {
|
|
1220
1224
|
x: centroid.x - estTextW / 2,
|
|
1221
1225
|
y: centroid.y - fitFont / 2,
|
|
@@ -1251,7 +1255,7 @@ function renderVenn(container, parsed, palette, _isDark, onClickItem, exportDims
|
|
|
1251
1255
|
sSetLabelFont,
|
|
1252
1256
|
Math.min(height - 4, textY)
|
|
1253
1257
|
);
|
|
1254
|
-
labelG.append("text").attr("x", textX).attr("y", renderedTextY).attr("text-anchor", textAnchor).attr("dominant-baseline", "central").attr("fill", textColor).attr("font-size",
|
|
1258
|
+
labelG.append("text").attr("x", textX).attr("y", renderedTextY).attr("text-anchor", textAnchor).attr("dominant-baseline", "central").attr("fill", textColor).attr("font-size", sSetLabelFont).attr("font-weight", "bold").text(text);
|
|
1255
1259
|
const externalEstW = measureText(text, sSetLabelFont, { bold: true });
|
|
1256
1260
|
setLabelBBoxes[i] = {
|
|
1257
1261
|
x: isRight ? textX : textX - externalEstW,
|
|
@@ -1468,7 +1472,7 @@ function renderVenn(container, parsed, palette, _isDark, onClickItem, exportDims
|
|
|
1468
1472
|
for (const seg of segments) {
|
|
1469
1473
|
ovLabelG.append("line").attr("x1", seg.x1).attr("y1", seg.y1).attr("x2", seg.x2).attr("y2", seg.y2).attr("stroke", overlapColor).attr("stroke-width", ctx.structural(1.25)).attr("opacity", 0.85);
|
|
1470
1474
|
}
|
|
1471
|
-
const textEl = ovLabelG.append("text").attr("text-anchor", textAnchor).attr("dominant-baseline", baseline).attr("fill", overlapColor).attr("font-size",
|
|
1475
|
+
const textEl = ovLabelG.append("text").attr("text-anchor", textAnchor).attr("dominant-baseline", baseline).attr("fill", overlapColor).attr("font-size", OVERLAP_FONT).attr("font-weight", "bold");
|
|
1472
1476
|
lines.forEach((line2, i) => {
|
|
1473
1477
|
const tspan = textEl.append("tspan").attr("x", textX);
|
|
1474
1478
|
if (i === 0) tspan.attr("y", startY);
|
|
@@ -1637,7 +1641,7 @@ function renderQuadrant(container, parsed, palette, isDark, onClickItem, exportD
|
|
|
1637
1641
|
}
|
|
1638
1642
|
];
|
|
1639
1643
|
const quadrantRects = chartG.selectAll("rect.quadrant").data(quadrantDefs).enter().append("rect").attr("class", "quadrant").attr("x", (d) => d.x).attr("y", (d) => d.y).attr("width", (d) => d.w).attr("height", (d) => d.h).attr("fill", (d) => getQuadrantFill(d.label, d.colorIdx)).attr("stroke", (d) => getQuadrantColor(d.label, d.colorIdx)).attr("stroke-width", ctx.structural(2));
|
|
1640
|
-
const shadowColor = "rgba(0,0,0,0.4)";
|
|
1644
|
+
const shadowColor = isDark ? "rgba(0,0,0,0.55)" : "rgba(0,0,0,0.4)";
|
|
1641
1645
|
const quadrantLabelColor = mix(textColor, bg, 35);
|
|
1642
1646
|
const LABEL_MAX_FONT = ctx.text(48);
|
|
1643
1647
|
const LABEL_MIN_FONT = ctx.text(14);
|
|
@@ -1686,7 +1690,7 @@ function renderQuadrant(container, parsed, palette, isDark, onClickItem, exportD
|
|
|
1686
1690
|
const renderWatermarkOriginal = (textEl, d) => {
|
|
1687
1691
|
const layout = labelLayouts.get(d.label.text);
|
|
1688
1692
|
const el = d3Selection3.select(textEl);
|
|
1689
|
-
el.text(null).attr("font-size",
|
|
1693
|
+
el.text(null).attr("font-size", layout.fontSize).attr("font-weight", "bold");
|
|
1690
1694
|
if (layout.lines.length === 1) {
|
|
1691
1695
|
el.text(layout.lines[0]);
|
|
1692
1696
|
} else {
|
|
@@ -1720,14 +1724,14 @@ function renderQuadrant(container, parsed, palette, isDark, onClickItem, exportD
|
|
|
1720
1724
|
const sAxisPad = ctx.aesthetic(20);
|
|
1721
1725
|
const sAxisX = ctx.aesthetic(22);
|
|
1722
1726
|
if (quadrantXAxis) {
|
|
1723
|
-
const xLowLabel = svg.append("text").attr("class", "quadrant-axis-label").attr("x", margin.left + chartWidth / 4).attr("y", height - sAxisPad).attr("text-anchor", "middle").attr("fill", textColor).attr("font-size",
|
|
1727
|
+
const xLowLabel = svg.append("text").attr("class", "quadrant-axis-label").attr("x", margin.left + chartWidth / 4).attr("y", height - sAxisPad).attr("text-anchor", "middle").attr("fill", textColor).attr("font-size", sAxisFont).attr(
|
|
1724
1728
|
"data-line-number",
|
|
1725
1729
|
quadrantXAxisLineNumber ? String(quadrantXAxisLineNumber) : null
|
|
1726
1730
|
).style(
|
|
1727
1731
|
"cursor",
|
|
1728
1732
|
onClickItem && quadrantXAxisLineNumber ? "pointer" : "default"
|
|
1729
1733
|
).text(quadrantXAxis[0]);
|
|
1730
|
-
const xHighLabel = svg.append("text").attr("class", "quadrant-axis-label").attr("x", margin.left + chartWidth * 3 / 4).attr("y", height - sAxisPad).attr("text-anchor", "middle").attr("fill", textColor).attr("font-size",
|
|
1734
|
+
const xHighLabel = svg.append("text").attr("class", "quadrant-axis-label").attr("x", margin.left + chartWidth * 3 / 4).attr("y", height - sAxisPad).attr("text-anchor", "middle").attr("fill", textColor).attr("font-size", sAxisFont).attr(
|
|
1731
1735
|
"data-line-number",
|
|
1732
1736
|
quadrantXAxisLineNumber ? String(quadrantXAxisLineNumber) : null
|
|
1733
1737
|
).style(
|
|
@@ -1747,14 +1751,14 @@ function renderQuadrant(container, parsed, palette, isDark, onClickItem, exportD
|
|
|
1747
1751
|
if (quadrantYAxis) {
|
|
1748
1752
|
const yMidBottom = margin.top + chartHeight * 3 / 4;
|
|
1749
1753
|
const yMidTop = margin.top + chartHeight / 4;
|
|
1750
|
-
const yLowLabel = svg.append("text").attr("class", "quadrant-axis-label").attr("x", sAxisX).attr("y", yMidBottom).attr("text-anchor", "middle").attr("fill", textColor).attr("font-size",
|
|
1754
|
+
const yLowLabel = svg.append("text").attr("class", "quadrant-axis-label").attr("x", sAxisX).attr("y", yMidBottom).attr("text-anchor", "middle").attr("fill", textColor).attr("font-size", sAxisFont).attr("transform", `rotate(-90, ${sAxisX}, ${yMidBottom})`).attr(
|
|
1751
1755
|
"data-line-number",
|
|
1752
1756
|
quadrantYAxisLineNumber ? String(quadrantYAxisLineNumber) : null
|
|
1753
1757
|
).style(
|
|
1754
1758
|
"cursor",
|
|
1755
1759
|
onClickItem && quadrantYAxisLineNumber ? "pointer" : "default"
|
|
1756
1760
|
).text(quadrantYAxis[0]);
|
|
1757
|
-
const yHighLabel = svg.append("text").attr("class", "quadrant-axis-label").attr("x", sAxisX).attr("y", yMidTop).attr("text-anchor", "middle").attr("fill", textColor).attr("font-size",
|
|
1761
|
+
const yHighLabel = svg.append("text").attr("class", "quadrant-axis-label").attr("x", sAxisX).attr("y", yMidTop).attr("text-anchor", "middle").attr("fill", textColor).attr("font-size", sAxisFont).attr("transform", `rotate(-90, ${sAxisX}, ${yMidTop})`).attr(
|
|
1758
1762
|
"data-line-number",
|
|
1759
1763
|
quadrantYAxisLineNumber ? String(quadrantYAxisLineNumber) : null
|
|
1760
1764
|
).style(
|
|
@@ -1820,10 +1824,10 @@ function renderQuadrant(container, parsed, palette, isDark, onClickItem, exportD
|
|
|
1820
1824
|
if (placed.connectorLine) {
|
|
1821
1825
|
pointG.append("line").attr("x1", placed.connectorLine.x1).attr("y1", placed.connectorLine.y1).attr("x2", placed.connectorLine.x2).attr("y2", placed.connectorLine.y2).attr("stroke", pointColor).attr("stroke-width", 1).attr("opacity", 0.5);
|
|
1822
1826
|
}
|
|
1823
|
-
pointG.append("circle").attr("cx", cx).attr("cy", cy).attr("r", POINT_RADIUS).attr("fill",
|
|
1824
|
-
const labelText = pointG.append("text").attr("x", placed.x).attr("y", placed.y).attr("text-anchor", placed.anchor).attr("dominant-baseline", "central").attr("fill", textColor).attr("font-size",
|
|
1827
|
+
pointG.append("circle").attr("cx", cx).attr("cy", cy).attr("r", POINT_RADIUS).attr("fill", bg).attr("stroke", pointColor).attr("stroke-width", ctx.structural(2));
|
|
1828
|
+
const labelText = pointG.append("text").attr("x", placed.x).attr("y", placed.y).attr("text-anchor", placed.anchor).attr("dominant-baseline", "central").attr("fill", textColor).attr("font-size", POINT_LABEL_FONT_SIZE).attr("font-weight", "bold").style("text-shadow", `0 1px 2px ${shadowColor}`).style("transition", "y 120ms ease-out");
|
|
1825
1829
|
labelText.append("tspan").text(point.label);
|
|
1826
|
-
const coordsTspan = labelText.append("tspan").attr("class", "point-coords").attr("x", placed.x).attr("dy", `${POINT_LABEL_FONT_SIZE}px`).attr("font-size",
|
|
1830
|
+
const coordsTspan = labelText.append("tspan").attr("class", "point-coords").attr("x", placed.x).attr("dy", `${POINT_LABEL_FONT_SIZE}px`).attr("font-size", ctx.text(10)).attr("font-weight", "normal").attr("opacity", 0).text(`${point.x.toFixed(2)}, ${point.y.toFixed(2)}`);
|
|
1827
1831
|
const COORDS_LINE_H = ctx.structural(14);
|
|
1828
1832
|
const bumpDy = placed.y < cy ? -COORDS_LINE_H : COORDS_LINE_H;
|
|
1829
1833
|
pointG.style("cursor", onClickItem ? "pointer" : "default").on("mouseenter", () => {
|
|
@@ -1947,15 +1951,18 @@ function resolveArcChordOverride(content, detectedType, palette) {
|
|
|
1947
1951
|
}
|
|
1948
1952
|
async function renderForExport(content, theme, palette, viewState, options) {
|
|
1949
1953
|
const exportMode = options?.exportMode ?? false;
|
|
1950
|
-
const { parseDgmoChartType } = await import("./dgmo-router-
|
|
1954
|
+
const { parseDgmoChartType } = await import("./dgmo-router-OXFV43XX.js");
|
|
1951
1955
|
const detectedTypeRaw = parseDgmoChartType(content);
|
|
1952
1956
|
const override = resolveArcChordOverride(content, detectedTypeRaw, palette);
|
|
1953
1957
|
const renderContent = override?.content ?? content;
|
|
1954
1958
|
const detectedType = override?.type ?? detectedTypeRaw;
|
|
1955
1959
|
if (detectedType !== null) {
|
|
1956
|
-
const { supportsD3DataChart, renderDataChartD3: renderDataChartD32 } = await import("./charts-d3-
|
|
1960
|
+
const { supportsD3DataChart, renderDataChartD3: renderDataChartD32 } = await import("./charts-d3-EST3Z5VG.js");
|
|
1957
1961
|
if (supportsD3DataChart(detectedType)) {
|
|
1958
|
-
return renderDataChartD32(renderContent, theme, palette
|
|
1962
|
+
return renderDataChartD32(renderContent, theme, palette, {
|
|
1963
|
+
...options?.width !== void 0 && { width: options.width },
|
|
1964
|
+
...options?.height !== void 0 && { height: options.height }
|
|
1965
|
+
});
|
|
1959
1966
|
}
|
|
1960
1967
|
}
|
|
1961
1968
|
const ctx = {
|
|
@@ -1966,6 +1973,12 @@ async function renderForExport(content, theme, palette, viewState, options) {
|
|
|
1966
1973
|
options,
|
|
1967
1974
|
exportMode,
|
|
1968
1975
|
isDark: theme === "dark",
|
|
1976
|
+
// The resolved canvas, and the raw request beside it. A chart whose own
|
|
1977
|
+
// natural size is not EXPORT_WIDTH (tech-radar) needs to tell "the caller
|
|
1978
|
+
// asked for 1200" apart from "nobody asked", which the resolved value
|
|
1979
|
+
// cannot express.
|
|
1980
|
+
requestedWidth: options?.width && options.width > 0 ? Math.round(options.width) : void 0,
|
|
1981
|
+
requestedHeight: options?.height && options.height > 0 ? Math.round(options.height) : void 0,
|
|
1969
1982
|
width: options?.width && options.width > 0 ? Math.round(options.width) : EXPORT_WIDTH,
|
|
1970
1983
|
height: options?.height && options.height > 0 ? Math.round(options.height) : EXPORT_HEIGHT
|
|
1971
1984
|
};
|
|
@@ -1977,8 +1990,8 @@ function ctxTagOverride(ctx) {
|
|
|
1977
1990
|
}
|
|
1978
1991
|
async function exportEventLine(ctx) {
|
|
1979
1992
|
const { content, theme, palette } = ctx;
|
|
1980
|
-
const { parseEventLine } = await import("./parser-
|
|
1981
|
-
const { renderEventLineForExport } = await import("./renderer-
|
|
1993
|
+
const { parseEventLine } = await import("./parser-HRIKI5O3.js");
|
|
1994
|
+
const { renderEventLineForExport } = await import("./renderer-4HFT4HJG.js");
|
|
1982
1995
|
const effectivePalette = await resolveExportPalette(theme, palette);
|
|
1983
1996
|
const parsed = parseEventLine(content, effectivePalette);
|
|
1984
1997
|
if (parsed.error || parsed.events.length === 0) return "";
|
|
@@ -1996,8 +2009,8 @@ async function exportEventLine(ctx) {
|
|
|
1996
2009
|
}
|
|
1997
2010
|
async function exportBody(ctx) {
|
|
1998
2011
|
const { content, theme, palette } = ctx;
|
|
1999
|
-
const { parseBody } = await import("./parser-
|
|
2000
|
-
const { renderBodyForExport } = await import("./renderer-
|
|
2012
|
+
const { parseBody } = await import("./parser-N4YB5EIZ.js");
|
|
2013
|
+
const { renderBodyForExport } = await import("./renderer-HNEMQJXT.js");
|
|
2001
2014
|
const effectivePalette = await resolveExportPalette(theme, palette);
|
|
2002
2015
|
const parsed = parseBody(content, effectivePalette);
|
|
2003
2016
|
if (parsed.error) return "";
|
|
@@ -2014,8 +2027,8 @@ async function exportBody(ctx) {
|
|
|
2014
2027
|
}
|
|
2015
2028
|
async function exportVersionControl(ctx) {
|
|
2016
2029
|
const { content, theme, palette } = ctx;
|
|
2017
|
-
const { parseVersionControl } = await import("./parser-
|
|
2018
|
-
const { renderVersionControlForExport } = await import("./renderer-
|
|
2030
|
+
const { parseVersionControl } = await import("./parser-LXU3MGG6.js");
|
|
2031
|
+
const { renderVersionControlForExport } = await import("./renderer-RW446FGL.js");
|
|
2019
2032
|
const effectivePalette = await resolveExportPalette(theme, palette);
|
|
2020
2033
|
const parsed = parseVersionControl(content, effectivePalette);
|
|
2021
2034
|
if (parsed.error || parsed.nodes.length === 0) return "";
|
|
@@ -2039,10 +2052,10 @@ function unionHiddenAttributes(hideOption, ha) {
|
|
|
2039
2052
|
}
|
|
2040
2053
|
async function exportOrg(ctx) {
|
|
2041
2054
|
const { content, theme, palette, viewState, exportMode } = ctx;
|
|
2042
|
-
const { parseOrg, findOrgNodeIdByName } = await import("./parser-
|
|
2043
|
-
const { layoutOrg } = await import("./layout-
|
|
2055
|
+
const { parseOrg, findOrgNodeIdByName } = await import("./parser-2Y7LWKNO.js");
|
|
2056
|
+
const { layoutOrg } = await import("./layout-XY45TFJ4.js");
|
|
2044
2057
|
const { collapseOrgTree, focusOrgTree, unionCollapsedOrgNodes } = await import("./collapse-JRGPUE67.js");
|
|
2045
|
-
const { renderOrg, ancestorTrailReserve } = await import("./renderer-
|
|
2058
|
+
const { renderOrg, ancestorTrailReserve } = await import("./renderer-N5CRYFBI.js");
|
|
2046
2059
|
const isDark = ctx.isDark;
|
|
2047
2060
|
const effectivePalette = await resolveExportPalette(theme, palette);
|
|
2048
2061
|
const orgParsed = parseOrg(content, effectivePalette);
|
|
@@ -2103,10 +2116,10 @@ async function exportOrg(ctx) {
|
|
|
2103
2116
|
}
|
|
2104
2117
|
async function exportSitemap(ctx) {
|
|
2105
2118
|
const { content, theme, palette, viewState, exportMode } = ctx;
|
|
2106
|
-
const { parseSitemap } = await import("./parser-
|
|
2107
|
-
const { layoutSitemap } = await import("./layout-
|
|
2119
|
+
const { parseSitemap } = await import("./parser-66QZQYGE.js");
|
|
2120
|
+
const { layoutSitemap } = await import("./layout-LELNMRM5.js");
|
|
2108
2121
|
const { collapseSitemapTree } = await import("./collapse-ZWUFFCK2.js");
|
|
2109
|
-
const { renderSitemap } = await import("./renderer-
|
|
2122
|
+
const { renderSitemap } = await import("./renderer-DV44AS75.js");
|
|
2110
2123
|
const isDark = ctx.isDark;
|
|
2111
2124
|
const effectivePalette = await resolveExportPalette(theme, palette);
|
|
2112
2125
|
const sitemapParsed = parseSitemap(content, effectivePalette);
|
|
@@ -2134,7 +2147,7 @@ async function exportSitemap(ctx) {
|
|
|
2134
2147
|
const {
|
|
2135
2148
|
LEGEND_HEIGHT: SITEMAP_LEGEND_HEIGHT,
|
|
2136
2149
|
LEGEND_GROUP_GAP: SITEMAP_LEGEND_GROUP_GAP
|
|
2137
|
-
} = await import("./legend-constants-
|
|
2150
|
+
} = await import("./legend-constants-RSWFR3L6.js");
|
|
2138
2151
|
const suppressedLegendBand = sitemapLayout.legend.length > 0 && effectiveParsed.options["no-legend"] === "on" ? SITEMAP_LEGEND_HEIGHT + SITEMAP_LEGEND_GROUP_GAP : 0;
|
|
2139
2152
|
const exportWidth = sitemapLayout.width + PADDING * 2;
|
|
2140
2153
|
const exportHeight = sitemapLayout.height + PADDING * 2 + titleOffset - suppressedLegendBand;
|
|
@@ -2155,8 +2168,8 @@ async function exportSitemap(ctx) {
|
|
|
2155
2168
|
}
|
|
2156
2169
|
async function exportKanban(ctx) {
|
|
2157
2170
|
const { content, theme, palette, viewState, exportMode } = ctx;
|
|
2158
|
-
const { parseKanban } = await import("./parser-
|
|
2159
|
-
const { renderKanban } = await import("./renderer-
|
|
2171
|
+
const { parseKanban } = await import("./parser-EP2JQJNV.js");
|
|
2172
|
+
const { renderKanban } = await import("./renderer-H6XEVHKH.js");
|
|
2160
2173
|
const effectivePalette = await resolveExportPalette(theme, palette);
|
|
2161
2174
|
const kanbanParsed = parseKanban(content, effectivePalette);
|
|
2162
2175
|
if (kanbanParsed.error || kanbanParsed.columns.length === 0) return "";
|
|
@@ -2187,9 +2200,9 @@ async function exportKanban(ctx) {
|
|
|
2187
2200
|
}
|
|
2188
2201
|
async function exportClass(ctx) {
|
|
2189
2202
|
const { content, theme, palette, exportMode } = ctx;
|
|
2190
|
-
const { parseClassDiagram } = await import("./parser-
|
|
2191
|
-
const { layoutClassDiagram } = await import("./layout-
|
|
2192
|
-
const { renderClassDiagram } = await import("./renderer-
|
|
2203
|
+
const { parseClassDiagram } = await import("./parser-FDDHTBRV.js");
|
|
2204
|
+
const { layoutClassDiagram } = await import("./layout-YPRXVCW5.js");
|
|
2205
|
+
const { renderClassDiagram } = await import("./renderer-2ZGZSSCV.js");
|
|
2193
2206
|
const effectivePalette = await resolveExportPalette(theme, palette);
|
|
2194
2207
|
const classParsed = parseClassDiagram(content, effectivePalette);
|
|
2195
2208
|
if (classParsed.error || classParsed.classes.length === 0) return "";
|
|
@@ -2214,9 +2227,9 @@ async function exportClass(ctx) {
|
|
|
2214
2227
|
}
|
|
2215
2228
|
async function exportEr(ctx) {
|
|
2216
2229
|
const { content, theme, palette, viewState, exportMode } = ctx;
|
|
2217
|
-
const { parseERDiagram } = await import("./parser-
|
|
2218
|
-
const { layoutERDiagram } = await import("./layout-
|
|
2219
|
-
const { renderERDiagram } = await import("./renderer-
|
|
2230
|
+
const { parseERDiagram } = await import("./parser-4GUQUDAC.js");
|
|
2231
|
+
const { layoutERDiagram } = await import("./layout-WASEHV3S.js");
|
|
2232
|
+
const { renderERDiagram } = await import("./renderer-OVRX36WE.js");
|
|
2220
2233
|
const effectivePalette = await resolveExportPalette(theme, palette);
|
|
2221
2234
|
const erParsed = parseERDiagram(content, effectivePalette);
|
|
2222
2235
|
if (erParsed.error || erParsed.tables.length === 0) return "";
|
|
@@ -2248,14 +2261,14 @@ async function exportEr(ctx) {
|
|
|
2248
2261
|
}
|
|
2249
2262
|
async function exportSketch(ctx) {
|
|
2250
2263
|
const { content, theme, viewState, exportMode } = ctx;
|
|
2251
|
-
const { parseSketch } = await import("./parser-
|
|
2264
|
+
const { parseSketch } = await import("./parser-AYURCBDZ.js");
|
|
2252
2265
|
const effectivePalette = await resolveExportPalette(theme, ctx.palette);
|
|
2253
2266
|
const parsed = parseSketch(content, effectivePalette);
|
|
2254
2267
|
if (parsed.error || parsed.nodes.length === 0 && parsed.boxes.length === 0) {
|
|
2255
2268
|
return "";
|
|
2256
2269
|
}
|
|
2257
|
-
const { layoutSketch } = await import("./layout-
|
|
2258
|
-
const { renderSketchForExport } = await import("./renderer-
|
|
2270
|
+
const { layoutSketch } = await import("./layout-5AYAYUJH.js");
|
|
2271
|
+
const { renderSketchForExport } = await import("./renderer-SJV75NUI.js");
|
|
2259
2272
|
const collapsedBoxes = viewState?.cg ? new Set(viewState.cg) : void 0;
|
|
2260
2273
|
const skLayout = layoutSketch(parsed, {
|
|
2261
2274
|
...collapsedBoxes !== void 0 && { collapsedBoxes }
|
|
@@ -2282,7 +2295,7 @@ async function exportSketch(ctx) {
|
|
|
2282
2295
|
}
|
|
2283
2296
|
async function exportBoxesAndLines(ctx) {
|
|
2284
2297
|
const { content, theme, palette, viewState, exportMode } = ctx;
|
|
2285
|
-
const { parseBoxesAndLines } = await import("./parser-
|
|
2298
|
+
const { parseBoxesAndLines } = await import("./parser-4OXANARZ.js");
|
|
2286
2299
|
const effectivePalette = await resolveExportPalette(theme, palette);
|
|
2287
2300
|
const blParsed = parseBoxesAndLines(content, effectivePalette);
|
|
2288
2301
|
if (blParsed.error || blParsed.nodes.length === 0) return "";
|
|
@@ -2293,8 +2306,8 @@ async function exportBoxesAndLines(ctx) {
|
|
|
2293
2306
|
blHiddenTagValues.set(k, new Set(v));
|
|
2294
2307
|
}
|
|
2295
2308
|
}
|
|
2296
|
-
const { renderBoxesAndLinesForExport } = await import("./renderer-
|
|
2297
|
-
const { layoutBoxesAndLines } = await import("./layout-
|
|
2309
|
+
const { renderBoxesAndLinesForExport } = await import("./renderer-4E6NNPNU.js");
|
|
2310
|
+
const { layoutBoxesAndLines } = await import("./layout-6VUNAH6F.js");
|
|
2298
2311
|
const blLayout = await layoutBoxesAndLines(blParsed);
|
|
2299
2312
|
const PADDING = 20;
|
|
2300
2313
|
const titleOffset = blParsed.title ? 40 : 0;
|
|
@@ -2323,9 +2336,9 @@ async function exportBoxesAndLines(ctx) {
|
|
|
2323
2336
|
}
|
|
2324
2337
|
async function exportSwimlane(ctx) {
|
|
2325
2338
|
const { content, theme, palette } = ctx;
|
|
2326
|
-
const { parseSwimlane } = await import("./parser-
|
|
2339
|
+
const { parseSwimlane } = await import("./parser-JNJ2IFSO.js");
|
|
2327
2340
|
const { layoutSwimlane } = await import("./layout-OHAIIXBC.js");
|
|
2328
|
-
const { renderSwimlaneForExport } = await import("./renderer-
|
|
2341
|
+
const { renderSwimlaneForExport } = await import("./renderer-FSV7MTW3.js");
|
|
2329
2342
|
const effectivePalette = await resolveExportPalette(theme, palette);
|
|
2330
2343
|
const swimParsed = parseSwimlane(content, effectivePalette);
|
|
2331
2344
|
if (swimParsed.error || swimParsed.nodes.length === 0) return "";
|
|
@@ -2355,9 +2368,9 @@ async function exportSwimlane(ctx) {
|
|
|
2355
2368
|
}
|
|
2356
2369
|
async function exportFamily(ctx) {
|
|
2357
2370
|
const { content, theme, palette } = ctx;
|
|
2358
|
-
const { parseFamily } = await import("./parser-
|
|
2359
|
-
const { layoutFamily } = await import("./layout-
|
|
2360
|
-
const { renderFamilyForExport } = await import("./renderer-
|
|
2371
|
+
const { parseFamily } = await import("./parser-6SS7DKVW.js");
|
|
2372
|
+
const { layoutFamily } = await import("./layout-FCIYZV63.js");
|
|
2373
|
+
const { renderFamilyForExport } = await import("./renderer-K2OWHNBV.js");
|
|
2361
2374
|
const effectivePalette = await resolveExportPalette(theme, palette);
|
|
2362
2375
|
const parsed = parseFamily(content, effectivePalette);
|
|
2363
2376
|
if (parsed.error || parsed.persons.size === 0) return "";
|
|
@@ -2387,10 +2400,10 @@ async function exportFamily(ctx) {
|
|
|
2387
2400
|
}
|
|
2388
2401
|
async function exportMindmap(ctx) {
|
|
2389
2402
|
const { content, theme, palette, viewState, exportMode } = ctx;
|
|
2390
|
-
const { parseMindmap } = await import("./parser-
|
|
2391
|
-
const { layoutMindmap } = await import("./layout-
|
|
2403
|
+
const { parseMindmap } = await import("./parser-GK6CMK4P.js");
|
|
2404
|
+
const { layoutMindmap } = await import("./layout-74HDWQYG.js");
|
|
2392
2405
|
const { collapseMindmapTree } = await import("./collapse-SLINJQW6.js");
|
|
2393
|
-
const { renderMindmap } = await import("./renderer-
|
|
2406
|
+
const { renderMindmap } = await import("./renderer-PLKMHBAB.js");
|
|
2394
2407
|
const isDark = ctx.isDark;
|
|
2395
2408
|
const effectivePalette = await resolveExportPalette(theme, palette);
|
|
2396
2409
|
const mmParsed = parseMindmap(content, effectivePalette);
|
|
@@ -2440,9 +2453,9 @@ async function exportMindmap(ctx) {
|
|
|
2440
2453
|
}
|
|
2441
2454
|
async function exportWireframe(ctx) {
|
|
2442
2455
|
const { content, theme, palette } = ctx;
|
|
2443
|
-
const { parseWireframe } = await import("./parser-
|
|
2444
|
-
const { layoutWireframe } = await import("./layout-
|
|
2445
|
-
const { renderWireframe } = await import("./renderer-
|
|
2456
|
+
const { parseWireframe } = await import("./parser-JIPG576H.js");
|
|
2457
|
+
const { layoutWireframe } = await import("./layout-SUND6B7D.js");
|
|
2458
|
+
const { renderWireframe } = await import("./renderer-UNYFAMFE.js");
|
|
2446
2459
|
const effectivePalette = await resolveExportPalette(theme, palette);
|
|
2447
2460
|
const wireframeParsed = parseWireframe(content);
|
|
2448
2461
|
if (wireframeParsed.error || wireframeParsed.roots.length === 0 && wireframeParsed.modals.length === 0)
|
|
@@ -2465,14 +2478,14 @@ async function exportWireframe(ctx) {
|
|
|
2465
2478
|
}
|
|
2466
2479
|
async function exportC4(ctx) {
|
|
2467
2480
|
const { content, theme, palette, viewState, exportMode } = ctx;
|
|
2468
|
-
const { parseC4 } = await import("./parser-
|
|
2481
|
+
const { parseC4 } = await import("./parser-JGMQE7FS.js");
|
|
2469
2482
|
const {
|
|
2470
2483
|
layoutC4Context,
|
|
2471
2484
|
layoutC4Containers,
|
|
2472
2485
|
layoutC4Components,
|
|
2473
2486
|
layoutC4Deployment
|
|
2474
|
-
} = await import("./layout-
|
|
2475
|
-
const { renderC4Context, renderC4Containers } = await import("./renderer-
|
|
2487
|
+
} = await import("./layout-6APS2RRG.js");
|
|
2488
|
+
const { renderC4Context, renderC4Containers } = await import("./renderer-REHVBQ57.js");
|
|
2476
2489
|
const effectivePalette = await resolveExportPalette(theme, palette);
|
|
2477
2490
|
const c4Parsed = parseC4(content, effectivePalette);
|
|
2478
2491
|
if (c4Parsed.error || c4Parsed.elements.length === 0) return "";
|
|
@@ -2506,9 +2519,9 @@ async function exportC4(ctx) {
|
|
|
2506
2519
|
}
|
|
2507
2520
|
async function exportFlowchart(ctx) {
|
|
2508
2521
|
const { content, theme, palette } = ctx;
|
|
2509
|
-
const { parseFlowchart } = await import("./flowchart-parser-
|
|
2510
|
-
const { layoutGraph } = await import("./layout-
|
|
2511
|
-
const { renderFlowchart } = await import("./flowchart-renderer-
|
|
2522
|
+
const { parseFlowchart } = await import("./flowchart-parser-MRNAVG35.js");
|
|
2523
|
+
const { layoutGraph } = await import("./layout-ZJOWB27N.js");
|
|
2524
|
+
const { renderFlowchart } = await import("./flowchart-renderer-IGSKJFMF.js");
|
|
2512
2525
|
const effectivePalette = await resolveExportPalette(theme, palette);
|
|
2513
2526
|
const fcParsed = parseFlowchart(content, effectivePalette);
|
|
2514
2527
|
if (fcParsed.error || fcParsed.nodes.length === 0) return "";
|
|
@@ -2527,10 +2540,10 @@ async function exportFlowchart(ctx) {
|
|
|
2527
2540
|
}
|
|
2528
2541
|
async function exportInfra(ctx) {
|
|
2529
2542
|
const { content, theme, palette, viewState } = ctx;
|
|
2530
|
-
const { parseInfra } = await import("./parser-
|
|
2543
|
+
const { parseInfra } = await import("./parser-H33OKBUB.js");
|
|
2531
2544
|
const { computeInfra } = await import("./compute-JAP5E2E4.js");
|
|
2532
|
-
const { layoutInfra } = await import("./layout-
|
|
2533
|
-
const { renderInfra, computeInfraLegendGroups } = await import("./renderer-
|
|
2545
|
+
const { layoutInfra } = await import("./layout-J2Z2SYH5.js");
|
|
2546
|
+
const { renderInfra, computeInfraLegendGroups } = await import("./renderer-33AB7UAZ.js");
|
|
2534
2547
|
const effectivePalette = await resolveExportPalette(theme, palette);
|
|
2535
2548
|
const infraParsed = parseInfra(content);
|
|
2536
2549
|
if (infraParsed.error || infraParsed.nodes.length === 0) return "";
|
|
@@ -2577,10 +2590,10 @@ async function exportInfra(ctx) {
|
|
|
2577
2590
|
}
|
|
2578
2591
|
async function exportPert(ctx) {
|
|
2579
2592
|
const { content, theme, palette, viewState } = ctx;
|
|
2580
|
-
const { parsePert } = await import("./parser-
|
|
2593
|
+
const { parsePert } = await import("./parser-ZUH2G7J2.js");
|
|
2581
2594
|
const { analyzePert } = await import("./analyzer-QTDQEMS5.js");
|
|
2582
|
-
const { layoutPert } = await import("./layout-
|
|
2583
|
-
const { renderPert, measurePertAnalysisBlock } = await import("./renderer-
|
|
2595
|
+
const { layoutPert } = await import("./layout-XAJLQPI6.js");
|
|
2596
|
+
const { renderPert, measurePertAnalysisBlock } = await import("./renderer-TKWW45LZ.js");
|
|
2584
2597
|
const effectivePalette = await resolveExportPalette(theme, palette);
|
|
2585
2598
|
const pertParsed = parsePert(content, { palette: effectivePalette });
|
|
2586
2599
|
if (pertParsed.error || pertParsed.activities.length === 0) return "";
|
|
@@ -2623,15 +2636,15 @@ async function exportPert(ctx) {
|
|
|
2623
2636
|
}
|
|
2624
2637
|
async function exportGantt(ctx) {
|
|
2625
2638
|
const { content, theme, palette, viewState, exportMode } = ctx;
|
|
2626
|
-
const { parseGantt } = await import("./parser-
|
|
2627
|
-
const { calculateSchedule } = await import("./calculator-
|
|
2628
|
-
const { renderGantt } = await import("./renderer-
|
|
2639
|
+
const { parseGantt } = await import("./parser-COPCQEHV.js");
|
|
2640
|
+
const { calculateSchedule } = await import("./calculator-OHTCZSBW.js");
|
|
2641
|
+
const { renderGantt } = await import("./renderer-ZG6GPWZF.js");
|
|
2629
2642
|
const effectivePalette = await resolveExportPalette(theme, palette);
|
|
2630
2643
|
const ganttParsed = parseGantt(content, effectivePalette);
|
|
2631
2644
|
const resolved = calculateSchedule(ganttParsed);
|
|
2632
2645
|
if (resolved.tasks.length === 0) return "";
|
|
2633
|
-
const EXPORT_W =
|
|
2634
|
-
const EXPORT_H =
|
|
2646
|
+
const EXPORT_W = ctx.width;
|
|
2647
|
+
const EXPORT_H = ctx.height;
|
|
2635
2648
|
const container = createExportContainer(EXPORT_W, EXPORT_H);
|
|
2636
2649
|
const sourceCollapsedGroups = resolved.groups.filter((g) => g.collapsed).map((g) => g.name);
|
|
2637
2650
|
const ganttCollapsedGroups = viewState?.cg || sourceCollapsedGroups.length > 0 ? /* @__PURE__ */ new Set([...sourceCollapsedGroups, ...viewState?.cg ?? []]) : void 0;
|
|
@@ -2666,9 +2679,9 @@ async function exportGantt(ctx) {
|
|
|
2666
2679
|
}
|
|
2667
2680
|
async function exportState(ctx) {
|
|
2668
2681
|
const { content, theme, palette, viewState } = ctx;
|
|
2669
|
-
const { parseState } = await import("./state-parser-
|
|
2670
|
-
const { layoutGraph } = await import("./layout-
|
|
2671
|
-
const { renderState } = await import("./state-renderer-
|
|
2682
|
+
const { parseState } = await import("./state-parser-XT4ZPQAF.js");
|
|
2683
|
+
const { layoutGraph } = await import("./layout-ZJOWB27N.js");
|
|
2684
|
+
const { renderState } = await import("./state-renderer-6TVII5ZJ.js");
|
|
2672
2685
|
const { collapseStateGroups } = await import("./state-collapse-HCGD6IVJ.js");
|
|
2673
2686
|
const effectivePalette = await resolveExportPalette(theme, palette);
|
|
2674
2687
|
const stateParsed = parseState(content, effectivePalette);
|
|
@@ -2705,13 +2718,13 @@ async function exportState(ctx) {
|
|
|
2705
2718
|
}
|
|
2706
2719
|
async function exportTechRadar(ctx) {
|
|
2707
2720
|
const { content, theme, palette, viewState, exportMode } = ctx;
|
|
2708
|
-
const { parseTechRadar } = await import("./parser-
|
|
2709
|
-
const { renderTechRadarForExport } = await import("./renderer-
|
|
2721
|
+
const { parseTechRadar } = await import("./parser-FDESUQ32.js");
|
|
2722
|
+
const { renderTechRadarForExport } = await import("./renderer-6HPV7BMG.js");
|
|
2710
2723
|
const effectivePalette = await resolveExportPalette(theme, palette);
|
|
2711
2724
|
const radarParsed = parseTechRadar(content);
|
|
2712
2725
|
if (radarParsed.error || radarParsed.quadrants.length === 0) return "";
|
|
2713
|
-
const RADAR_EXPORT_W = 1300;
|
|
2714
|
-
const RADAR_EXPORT_H = 1500;
|
|
2726
|
+
const RADAR_EXPORT_W = ctx.requestedWidth ?? 1300;
|
|
2727
|
+
const RADAR_EXPORT_H = ctx.requestedHeight ?? 1500;
|
|
2715
2728
|
const container = createExportContainer(RADAR_EXPORT_W, RADAR_EXPORT_H);
|
|
2716
2729
|
renderTechRadarForExport(
|
|
2717
2730
|
container,
|
|
@@ -2726,9 +2739,9 @@ async function exportTechRadar(ctx) {
|
|
|
2726
2739
|
}
|
|
2727
2740
|
async function exportJourneyMap(ctx) {
|
|
2728
2741
|
const { content, theme, palette, exportMode } = ctx;
|
|
2729
|
-
const { parseJourneyMap } = await import("./parser-
|
|
2730
|
-
const { renderJourneyMap } = await import("./renderer-
|
|
2731
|
-
const { layoutJourneyMap } = await import("./layout-
|
|
2742
|
+
const { parseJourneyMap } = await import("./parser-HJBSWTDY.js");
|
|
2743
|
+
const { renderJourneyMap } = await import("./renderer-FLLVGYUY.js");
|
|
2744
|
+
const { layoutJourneyMap } = await import("./layout-OPF6KTOH.js");
|
|
2732
2745
|
const effectivePalette = await resolveExportPalette(theme, palette);
|
|
2733
2746
|
const jmParsed = parseJourneyMap(content, effectivePalette);
|
|
2734
2747
|
if (jmParsed.error || jmParsed.phases.length === 0 && jmParsed.steps.length === 0)
|
|
@@ -2748,8 +2761,8 @@ async function exportJourneyMap(ctx) {
|
|
|
2748
2761
|
}
|
|
2749
2762
|
async function exportCycle(ctx) {
|
|
2750
2763
|
const { content, theme, palette, viewState, exportMode } = ctx;
|
|
2751
|
-
const { parseCycle } = await import("./parser-
|
|
2752
|
-
const { renderCycleForExport } = await import("./renderer-
|
|
2764
|
+
const { parseCycle } = await import("./parser-EMPM3V35.js");
|
|
2765
|
+
const { renderCycleForExport } = await import("./renderer-XGJIACBV.js");
|
|
2753
2766
|
const effectivePalette = await resolveExportPalette(theme, palette);
|
|
2754
2767
|
const cycleParsed = parseCycle(content);
|
|
2755
2768
|
if (cycleParsed.error || cycleParsed.nodes.length === 0) return "";
|
|
@@ -2767,10 +2780,10 @@ async function exportCycle(ctx) {
|
|
|
2767
2780
|
}
|
|
2768
2781
|
async function exportMap(ctx) {
|
|
2769
2782
|
const { content, theme, palette, options } = ctx;
|
|
2770
|
-
const { parseMap } = await import("./parser-
|
|
2783
|
+
const { parseMap } = await import("./parser-V6HULGXW.js");
|
|
2771
2784
|
const { resolveMap } = await import("./resolver-H5E6V7LJ.js");
|
|
2772
|
-
const { renderMapForExport } = await import("./renderer-
|
|
2773
|
-
const { mapExportDimensions } = await import("./dimensions-
|
|
2785
|
+
const { renderMapForExport } = await import("./renderer-M6UIXQHH.js");
|
|
2786
|
+
const { mapExportDimensions } = await import("./dimensions-AN34SPVX.js");
|
|
2774
2787
|
const effectivePalette = await resolveExportPalette(theme, palette);
|
|
2775
2788
|
const mapParsed = parseMap(content, effectivePalette);
|
|
2776
2789
|
const { data: mapData, reason } = await resolveMapDataSource(
|
|
@@ -2803,8 +2816,8 @@ async function exportMap(ctx) {
|
|
|
2803
2816
|
}
|
|
2804
2817
|
async function exportPyramid(ctx) {
|
|
2805
2818
|
const { content, theme, palette } = ctx;
|
|
2806
|
-
const { parsePyramid } = await import("./parser-
|
|
2807
|
-
const { renderPyramidForExport } = await import("./renderer-
|
|
2819
|
+
const { parsePyramid } = await import("./parser-YJGTPT7A.js");
|
|
2820
|
+
const { renderPyramidForExport } = await import("./renderer-BVJ3NVRB.js");
|
|
2808
2821
|
const effectivePalette = await resolveExportPalette(theme, palette);
|
|
2809
2822
|
const pyramidParsed = parsePyramid(content);
|
|
2810
2823
|
if (pyramidParsed.error || pyramidParsed.layers.length === 0) return "";
|
|
@@ -2820,8 +2833,8 @@ async function exportPyramid(ctx) {
|
|
|
2820
2833
|
}
|
|
2821
2834
|
async function exportRing(ctx) {
|
|
2822
2835
|
const { content, theme, palette } = ctx;
|
|
2823
|
-
const { parseRing } = await import("./parser-
|
|
2824
|
-
const { renderRingForExport } = await import("./renderer-
|
|
2836
|
+
const { parseRing } = await import("./parser-NC36PRBR.js");
|
|
2837
|
+
const { renderRingForExport } = await import("./renderer-63MHARNI.js");
|
|
2825
2838
|
const effectivePalette = await resolveExportPalette(theme, palette);
|
|
2826
2839
|
const ringParsed = parseRing(content);
|
|
2827
2840
|
if (ringParsed.error || ringParsed.layers.length === 0) return "";
|
|
@@ -2834,14 +2847,14 @@ async function exportRing(ctx) {
|
|
|
2834
2847
|
}
|
|
2835
2848
|
async function exportTreemap(ctx) {
|
|
2836
2849
|
const { content, theme, palette } = ctx;
|
|
2837
|
-
const { parseTreemap } = await import("./parser-
|
|
2850
|
+
const { parseTreemap } = await import("./parser-O6WYAXTS.js");
|
|
2838
2851
|
const effectivePalette = await resolveExportPalette(theme, palette);
|
|
2839
2852
|
const treemapParsed = parseTreemap(content, effectivePalette);
|
|
2840
2853
|
if (treemapParsed.error || treemapParsed.roots.length === 0) return "";
|
|
2841
2854
|
const container = createExportContainer(ctx.width, ctx.height);
|
|
2842
2855
|
const dims = { width: ctx.width, height: ctx.height };
|
|
2843
2856
|
if (treemapParsed.options.radial) {
|
|
2844
|
-
const { renderTreemapRadialForExport } = await import("./renderer-radial-
|
|
2857
|
+
const { renderTreemapRadialForExport } = await import("./renderer-radial-7UHFYOOL.js");
|
|
2845
2858
|
renderTreemapRadialForExport(
|
|
2846
2859
|
container,
|
|
2847
2860
|
treemapParsed,
|
|
@@ -2850,7 +2863,7 @@ async function exportTreemap(ctx) {
|
|
|
2850
2863
|
dims
|
|
2851
2864
|
);
|
|
2852
2865
|
} else {
|
|
2853
|
-
const { renderTreemapForExport } = await import("./renderer-
|
|
2866
|
+
const { renderTreemapForExport } = await import("./renderer-43KEDLTQ.js");
|
|
2854
2867
|
renderTreemapForExport(
|
|
2855
2868
|
container,
|
|
2856
2869
|
treemapParsed,
|
|
@@ -2863,15 +2876,15 @@ async function exportTreemap(ctx) {
|
|
|
2863
2876
|
}
|
|
2864
2877
|
async function exportLiveLink(ctx) {
|
|
2865
2878
|
const { content, theme, palette } = ctx;
|
|
2866
|
-
const { parseLiveLink } = await import("./parser-
|
|
2867
|
-
const { renderLiveLinkCard } = await import("./renderer-
|
|
2879
|
+
const { parseLiveLink } = await import("./parser-YQ5F7ATB.js");
|
|
2880
|
+
const { renderLiveLinkCard } = await import("./renderer-VI72MVFW.js");
|
|
2868
2881
|
const effectivePalette = await resolveExportPalette(theme, palette);
|
|
2869
2882
|
return renderLiveLinkCard(parseLiveLink(content), effectivePalette, theme);
|
|
2870
2883
|
}
|
|
2871
2884
|
async function exportBlock(ctx) {
|
|
2872
2885
|
const { content, theme, palette } = ctx;
|
|
2873
|
-
const { parseBlock } = await import("./parser-
|
|
2874
|
-
const { renderBlockForExport } = await import("./renderer-
|
|
2886
|
+
const { parseBlock } = await import("./parser-VVWZIMYS.js");
|
|
2887
|
+
const { renderBlockForExport } = await import("./renderer-URXHBQOF.js");
|
|
2875
2888
|
const effectivePalette = await resolveExportPalette(theme, palette);
|
|
2876
2889
|
const blockParsed = parseBlock(content, effectivePalette);
|
|
2877
2890
|
if (blockParsed.error || blockParsed.top.rows.length === 0) return "";
|
|
@@ -2884,8 +2897,8 @@ async function exportBlock(ctx) {
|
|
|
2884
2897
|
}
|
|
2885
2898
|
async function exportGoal(ctx) {
|
|
2886
2899
|
const { content, theme, palette } = ctx;
|
|
2887
|
-
const { parseGoal } = await import("./parser-
|
|
2888
|
-
const { renderGoalForExport } = await import("./renderer-
|
|
2900
|
+
const { parseGoal } = await import("./parser-UHABNZBC.js");
|
|
2901
|
+
const { renderGoalForExport } = await import("./renderer-XVTKGPYT.js");
|
|
2889
2902
|
const effectivePalette = await resolveExportPalette(theme, palette);
|
|
2890
2903
|
const parsed = parseGoal(content, effectivePalette);
|
|
2891
2904
|
if (parsed.error) return "";
|
|
@@ -2898,8 +2911,8 @@ async function exportGoal(ctx) {
|
|
|
2898
2911
|
}
|
|
2899
2912
|
async function exportCountdown(ctx) {
|
|
2900
2913
|
const { content, theme, palette } = ctx;
|
|
2901
|
-
const { parseCountdown } = await import("./parser-
|
|
2902
|
-
const { renderCountdownForExport } = await import("./renderer-
|
|
2914
|
+
const { parseCountdown } = await import("./parser-DQKZDA2J.js");
|
|
2915
|
+
const { renderCountdownForExport } = await import("./renderer-UHLTPQTW.js");
|
|
2903
2916
|
const effectivePalette = await resolveExportPalette(theme, palette);
|
|
2904
2917
|
const parsed = parseCountdown(content, effectivePalette);
|
|
2905
2918
|
if (parsed.error) return "";
|
|
@@ -2912,8 +2925,8 @@ async function exportCountdown(ctx) {
|
|
|
2912
2925
|
}
|
|
2913
2926
|
async function exportClock(ctx) {
|
|
2914
2927
|
const { content, theme, palette } = ctx;
|
|
2915
|
-
const { parseClock } = await import("./parser-
|
|
2916
|
-
const { renderClockForExport } = await import("./renderer-
|
|
2928
|
+
const { parseClock } = await import("./parser-DEWJM5PX.js");
|
|
2929
|
+
const { renderClockForExport } = await import("./renderer-IIN3RY4F.js");
|
|
2917
2930
|
const effectivePalette = await resolveExportPalette(theme, palette);
|
|
2918
2931
|
const parsed = parseClock(content, effectivePalette);
|
|
2919
2932
|
if (parsed.error) return "";
|
|
@@ -2926,8 +2939,8 @@ async function exportClock(ctx) {
|
|
|
2926
2939
|
}
|
|
2927
2940
|
async function exportBracket(ctx) {
|
|
2928
2941
|
const { content, theme, palette } = ctx;
|
|
2929
|
-
const { parseBracket } = await import("./parser-
|
|
2930
|
-
const { renderBracketForExport, bracketExportDimensions } = await import("./renderer-
|
|
2942
|
+
const { parseBracket } = await import("./parser-LCUQTABE.js");
|
|
2943
|
+
const { renderBracketForExport, bracketExportDimensions } = await import("./renderer-VBAQQWDB.js");
|
|
2931
2944
|
const effectivePalette = await resolveExportPalette(theme, palette);
|
|
2932
2945
|
const parsed = parseBracket(content, effectivePalette);
|
|
2933
2946
|
if (parsed.error) return "";
|
|
@@ -2941,8 +2954,8 @@ async function exportBracket(ctx) {
|
|
|
2941
2954
|
}
|
|
2942
2955
|
async function exportRaci(ctx) {
|
|
2943
2956
|
const { content, theme, palette } = ctx;
|
|
2944
|
-
const { parseRaci } = await import("./parser-
|
|
2945
|
-
const { renderRaciForExport } = await import("./renderer-
|
|
2957
|
+
const { parseRaci } = await import("./parser-I77632XB.js");
|
|
2958
|
+
const { renderRaciForExport } = await import("./renderer-YLIICO4R.js");
|
|
2946
2959
|
const effectivePalette = await resolveExportPalette(theme, palette);
|
|
2947
2960
|
const raciParsed = parseRaci(content, effectivePalette);
|
|
2948
2961
|
if (raciParsed.error) return "";
|
|
@@ -3074,8 +3087,8 @@ async function exportVisualization(ctx) {
|
|
|
3074
3087
|
const effectivePalette = await resolveExportPalette(theme, palette);
|
|
3075
3088
|
const isDark = ctx.isDark;
|
|
3076
3089
|
const container = createExportContainer(ctx.width, ctx.height);
|
|
3077
|
-
const { parseSequenceDgmo } = await import("./parser-
|
|
3078
|
-
const { renderSequenceDiagram } = await import("./renderer-
|
|
3090
|
+
const { parseSequenceDgmo } = await import("./parser-56UEMRXS.js");
|
|
3091
|
+
const { renderSequenceDiagram } = await import("./renderer-O3O6A3RY.js");
|
|
3079
3092
|
const seqParsed = parseSequenceDgmo(content, effectivePalette);
|
|
3080
3093
|
if (seqParsed.error || seqParsed.participants.length === 0) return "";
|
|
3081
3094
|
const collapsedSections = viewState?.cs ? new Set(viewState.cs) : void 0;
|
|
@@ -3648,6 +3661,24 @@ function injectHoverStyles(svg, chartType, opts) {
|
|
|
3648
3661
|
return `${svg.slice(0, at)}<style>${css}</style>${svg.slice(at)}`;
|
|
3649
3662
|
}
|
|
3650
3663
|
|
|
3664
|
+
// src/utils/root-a11y.ts
|
|
3665
|
+
function applyRootA11y(svg, chartType) {
|
|
3666
|
+
if (!chartType) return svg;
|
|
3667
|
+
const m = svg.match(/<svg\b[^>]*>/);
|
|
3668
|
+
if (!m) return svg;
|
|
3669
|
+
const rootTag = m[0];
|
|
3670
|
+
if (/\brole=/.test(rootTag) || /\baria-label=/.test(rootTag)) return svg;
|
|
3671
|
+
const label = `${chartType.charAt(0).toUpperCase()}${chartType.slice(1)} diagram`;
|
|
3672
|
+
const withA11y = rootTag.replace(
|
|
3673
|
+
/^<svg\b/,
|
|
3674
|
+
`<svg role="img" aria-label="${escapeAttr(label)}"`
|
|
3675
|
+
);
|
|
3676
|
+
return svg.replace(rootTag, withA11y);
|
|
3677
|
+
}
|
|
3678
|
+
function escapeAttr(s) {
|
|
3679
|
+
return s.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """);
|
|
3680
|
+
}
|
|
3681
|
+
|
|
3651
3682
|
// src/render.ts
|
|
3652
3683
|
var DOM_GLOBALS = [
|
|
3653
3684
|
"document",
|
|
@@ -3739,6 +3770,22 @@ async function render(content, options) {
|
|
|
3739
3770
|
);
|
|
3740
3771
|
})();
|
|
3741
3772
|
const withLegendInlineWarning = (ds) => legendInlineWarning ? [...ds, legendInlineWarning] : ds;
|
|
3773
|
+
const withCanvasWidthWarning = (ds, svg2) => {
|
|
3774
|
+
const asked = options?.width;
|
|
3775
|
+
if (!asked || asked <= 0) return ds;
|
|
3776
|
+
const vb = /viewBox="[-\d.]+ [-\d.]+ ([\d.]+) /.exec(svg2);
|
|
3777
|
+
const got = vb ? Number(vb[1]) : NaN;
|
|
3778
|
+
if (!Number.isFinite(got) || got <= asked + 1) return ds;
|
|
3779
|
+
return [
|
|
3780
|
+
...ds,
|
|
3781
|
+
makeDgmoError(
|
|
3782
|
+
1,
|
|
3783
|
+
`This ${chartType ?? "diagram"} is ${Math.round(got)}px wide \u2014 it sizes itself from its content, so the requested width of ${Math.round(asked)}px was not applied.`,
|
|
3784
|
+
"warning",
|
|
3785
|
+
"W_CANVAS_WIDTH_IGNORED"
|
|
3786
|
+
)
|
|
3787
|
+
];
|
|
3788
|
+
};
|
|
3742
3789
|
const viewState = options?.viewState ?? (options?.legendState ? {
|
|
3743
3790
|
...options.legendState.activeGroup !== void 0 && {
|
|
3744
3791
|
tag: options.legendState.activeGroup
|
|
@@ -3754,10 +3801,16 @@ async function render(content, options) {
|
|
|
3754
3801
|
...options?.width !== void 0 && { width: options.width },
|
|
3755
3802
|
...options?.height !== void 0 && { height: options.height }
|
|
3756
3803
|
});
|
|
3757
|
-
const svg2 =
|
|
3804
|
+
const svg2 = applyRootA11y(
|
|
3805
|
+
injectHoverStyles(raw, chartType, { bakeHover }),
|
|
3806
|
+
chartType
|
|
3807
|
+
);
|
|
3758
3808
|
return {
|
|
3759
3809
|
svg: svg2,
|
|
3760
|
-
diagnostics:
|
|
3810
|
+
diagnostics: withCanvasWidthWarning(
|
|
3811
|
+
withLegendInlineWarning(diagnostics),
|
|
3812
|
+
svg2
|
|
3813
|
+
),
|
|
3761
3814
|
chartType: chartType ?? void 0
|
|
3762
3815
|
};
|
|
3763
3816
|
} finally {
|
|
@@ -3788,7 +3841,10 @@ async function render(content, options) {
|
|
|
3788
3841
|
}
|
|
3789
3842
|
}
|
|
3790
3843
|
);
|
|
3791
|
-
svg =
|
|
3844
|
+
svg = applyRootA11y(
|
|
3845
|
+
injectHoverStyles(svg, chartType, { bakeHover }),
|
|
3846
|
+
chartType
|
|
3847
|
+
);
|
|
3792
3848
|
} finally {
|
|
3793
3849
|
releaseDom();
|
|
3794
3850
|
}
|
|
@@ -3797,7 +3853,10 @@ async function render(content, options) {
|
|
|
3797
3853
|
}
|
|
3798
3854
|
return {
|
|
3799
3855
|
svg,
|
|
3800
|
-
diagnostics:
|
|
3856
|
+
diagnostics: withCanvasWidthWarning(
|
|
3857
|
+
withLegendInlineWarning(diagnostics),
|
|
3858
|
+
svg
|
|
3859
|
+
),
|
|
3801
3860
|
chartType: chartType ?? void 0
|
|
3802
3861
|
};
|
|
3803
3862
|
}
|
|
@@ -3810,6 +3869,7 @@ export {
|
|
|
3810
3869
|
renderVenn,
|
|
3811
3870
|
renderQuadrant,
|
|
3812
3871
|
renderForExport,
|
|
3872
|
+
DEFAULT_DIM_OPACITY,
|
|
3813
3873
|
render
|
|
3814
3874
|
};
|
|
3815
|
-
//# sourceMappingURL=chunk-
|
|
3875
|
+
//# sourceMappingURL=chunk-3KFGPXHD.js.map
|