@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
|
@@ -1,60 +1,64 @@
|
|
|
1
1
|
import {
|
|
2
2
|
wrapDescriptionLines
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WMIKC5XO.js";
|
|
4
4
|
import {
|
|
5
5
|
renderInlineText
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import {
|
|
8
|
-
COLLAPSE_BAR_HEIGHT
|
|
9
|
-
} from "./chunk-FJ57274M.js";
|
|
6
|
+
} from "./chunk-FWNJDD4U.js";
|
|
10
7
|
import {
|
|
11
8
|
ScaleContext
|
|
12
9
|
} from "./chunk-24YPR5EH.js";
|
|
10
|
+
import {
|
|
11
|
+
ARROWHEAD_HEIGHT,
|
|
12
|
+
ARROWHEAD_WIDTH,
|
|
13
|
+
COLLAPSE_BAR_HEIGHT,
|
|
14
|
+
EDGE_DASH,
|
|
15
|
+
HAIRLINE_DASH
|
|
16
|
+
} from "./chunk-IIEI7VK5.js";
|
|
13
17
|
import {
|
|
14
18
|
layoutInlineHeader
|
|
15
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-2F7AG7LA.js";
|
|
16
20
|
import {
|
|
17
21
|
TITLE_FONT_SIZE,
|
|
18
22
|
TITLE_FONT_WEIGHT,
|
|
19
23
|
TITLE_Y
|
|
20
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-VSPNH7LC.js";
|
|
21
25
|
import {
|
|
22
26
|
renderIntegratedLegend
|
|
23
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-253E5ISJ.js";
|
|
24
28
|
import {
|
|
25
29
|
getLegendExtent,
|
|
26
30
|
getMaxLegendReservedHeight
|
|
27
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-LLZVRWVS.js";
|
|
28
32
|
import {
|
|
29
33
|
FONT_FAMILY
|
|
30
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-ICLB27PZ.js";
|
|
31
35
|
import {
|
|
32
36
|
legendChromeColors
|
|
33
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-CKDYRVOC.js";
|
|
34
38
|
import {
|
|
35
39
|
measureText,
|
|
36
40
|
truncateText
|
|
37
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-YC6GVLTI.js";
|
|
38
42
|
import {
|
|
39
43
|
isSequenceBlock,
|
|
40
44
|
isSequenceNote,
|
|
41
45
|
isSequenceSection
|
|
42
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-55DMCFGM.js";
|
|
43
47
|
import {
|
|
44
48
|
resolveActiveTagGroup,
|
|
45
49
|
tagAttrKey
|
|
46
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-O2HU4AQN.js";
|
|
47
51
|
import {
|
|
48
52
|
fillModeFromOptions,
|
|
49
53
|
legendInlineRequested,
|
|
50
54
|
legendSuppressed
|
|
51
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-4CA7TJ44.js";
|
|
52
56
|
import {
|
|
53
57
|
contrastText,
|
|
54
58
|
mix,
|
|
55
59
|
shapeFill,
|
|
56
60
|
themeBaseBg
|
|
57
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-AMQFJ7P7.js";
|
|
58
62
|
|
|
59
63
|
// src/sequence/renderer.ts
|
|
60
64
|
import * as d3Selection from "d3-selection";
|
|
@@ -250,7 +254,6 @@ var TITLE_HEIGHT = 30;
|
|
|
250
254
|
var PARTICIPANT_Y_OFFSET = 10;
|
|
251
255
|
var MESSAGE_START_OFFSET = 50;
|
|
252
256
|
var LIFELINE_TAIL = 30;
|
|
253
|
-
var ARROWHEAD_SIZE = 8;
|
|
254
257
|
var NOTE_MAX_W = 200;
|
|
255
258
|
var NOTE_FOLD = 10;
|
|
256
259
|
var NOTE_PAD_H = 8;
|
|
@@ -359,7 +362,7 @@ function renderCacheParticipant(g, palette, isDark, color, fillMode, w = W, h =
|
|
|
359
362
|
const bodyH = h - ry * 2;
|
|
360
363
|
const f = fill(palette, isDark, color, fillMode);
|
|
361
364
|
const s = stroke(palette, color);
|
|
362
|
-
const dash =
|
|
365
|
+
const dash = EDGE_DASH;
|
|
363
366
|
g.append("ellipse").attr("cx", 0).attr("cy", topY + bodyH).attr("rx", w / 2).attr("ry", ry).attr("fill", f).attr("stroke", s).attr("stroke-width", SW).attr("stroke-dasharray", dash);
|
|
364
367
|
g.append("rect").attr("class", "participant-body").attr("x", -w / 2).attr("y", topY).attr("width", w).attr("height", bodyH).attr("fill", f).attr("stroke", "none");
|
|
365
368
|
g.append("line").attr("x1", -w / 2).attr("y1", topY).attr("x2", -w / 2).attr("y2", topY + bodyH).attr("stroke", s).attr("stroke-width", SW).attr("stroke-dasharray", dash);
|
|
@@ -712,7 +715,8 @@ function renderSequenceDiagram(container, parsed, palette, isDark, _onNavigateTo
|
|
|
712
715
|
const sParticipantYOffset = ctx.aesthetic(PARTICIPANT_Y_OFFSET);
|
|
713
716
|
const sMsgStartOffset = ctx.structural(MESSAGE_START_OFFSET);
|
|
714
717
|
const sLifelineTail = ctx.structural(LIFELINE_TAIL);
|
|
715
|
-
const
|
|
718
|
+
const sArrowheadW = ctx.structural(ARROWHEAD_WIDTH);
|
|
719
|
+
const sArrowheadH = ctx.structural(ARROWHEAD_HEIGHT);
|
|
716
720
|
const sNoteMaxW = ctx.structural(NOTE_MAX_W);
|
|
717
721
|
const sNoteFold = ctx.structural(NOTE_FOLD);
|
|
718
722
|
const sNotePadH = ctx.structural(NOTE_PAD_H);
|
|
@@ -1338,26 +1342,20 @@ function renderSequenceDiagram(container, parsed, palette, isDark, _onNavigateTo
|
|
|
1338
1342
|
offsetX = leftMargin + Math.max(0, (svgWidth - totalWidth) / 2);
|
|
1339
1343
|
buildParticipantX();
|
|
1340
1344
|
}
|
|
1341
|
-
const svg = d3Selection.select(container).append("svg").attr("width",
|
|
1345
|
+
const svg = d3Selection.select(container).append("svg").attr("width", svgWidth).attr("height", totalHeight).attr("viewBox", `0 0 ${svgWidth} ${totalHeight}`).attr("preserveAspectRatio", "xMidYMin meet").attr("class", "sequence-diagram").style("font-family", FONT_FAMILY);
|
|
1346
|
+
if (ctx.isBelowFloor) {
|
|
1347
|
+
svg.attr("width", "100%");
|
|
1348
|
+
}
|
|
1342
1349
|
const defs = svg.append("defs");
|
|
1343
|
-
defs.append("marker").attr("id", "seq-arrowhead").attr("viewBox", `0 0 ${
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
defs.append("marker").attr("id", "seq-arrowhead-open").attr("viewBox", `0 0 ${sArrowheadSize} ${sArrowheadSize}`).attr("refX", sArrowheadSize).attr("refY", sArrowheadSize / 2).attr("markerWidth", sArrowheadSize).attr("markerHeight", sArrowheadSize).attr("orient", "auto").append("polyline").attr(
|
|
1348
|
-
"points",
|
|
1349
|
-
`0,0 ${sArrowheadSize},${sArrowheadSize / 2} 0,${sArrowheadSize}`
|
|
1350
|
-
).attr("fill", "none").attr("stroke", palette.textMuted).attr("stroke-width", 1.2);
|
|
1351
|
-
defs.append("marker").attr("id", "seq-arrowhead-async").attr("viewBox", `0 0 ${sArrowheadSize} ${sArrowheadSize}`).attr("refX", sArrowheadSize).attr("refY", sArrowheadSize / 2).attr("markerWidth", sArrowheadSize).attr("markerHeight", sArrowheadSize).attr("orient", "auto").append("polyline").attr(
|
|
1352
|
-
"points",
|
|
1353
|
-
`0,0 ${sArrowheadSize},${sArrowheadSize / 2} 0,${sArrowheadSize}`
|
|
1354
|
-
).attr("fill", "none").attr("stroke", palette.text).attr("stroke-width", 1.2);
|
|
1355
|
-
const arrowPoints = `0,0 ${sArrowheadSize},${sArrowheadSize / 2} 0,${sArrowheadSize}`;
|
|
1350
|
+
defs.append("marker").attr("id", "seq-arrowhead").attr("viewBox", `0 0 ${sArrowheadW} ${sArrowheadH}`).attr("refX", sArrowheadW).attr("refY", sArrowheadH / 2).attr("markerWidth", sArrowheadW).attr("markerHeight", sArrowheadH).attr("orient", "auto").append("polygon").attr("points", `0,0 ${sArrowheadW},${sArrowheadH / 2} 0,${sArrowheadH}`).attr("fill", palette.text);
|
|
1351
|
+
defs.append("marker").attr("id", "seq-arrowhead-open").attr("viewBox", `0 0 ${sArrowheadW} ${sArrowheadH}`).attr("refX", sArrowheadW).attr("refY", sArrowheadH / 2).attr("markerWidth", sArrowheadW).attr("markerHeight", sArrowheadH).attr("orient", "auto").append("polyline").attr("points", `0,0 ${sArrowheadW},${sArrowheadH / 2} 0,${sArrowheadH}`).attr("fill", "none").attr("stroke", palette.textMuted).attr("stroke-width", 1.2);
|
|
1352
|
+
defs.append("marker").attr("id", "seq-arrowhead-async").attr("viewBox", `0 0 ${sArrowheadW} ${sArrowheadH}`).attr("refX", sArrowheadW).attr("refY", sArrowheadH / 2).attr("markerWidth", sArrowheadW).attr("markerHeight", sArrowheadH).attr("orient", "auto").append("polyline").attr("points", `0,0 ${sArrowheadW},${sArrowheadH / 2} 0,${sArrowheadH}`).attr("fill", "none").attr("stroke", palette.text).attr("stroke-width", 1.2);
|
|
1353
|
+
const arrowPoints = `0,0 ${sArrowheadW},${sArrowheadH / 2} 0,${sArrowheadH}`;
|
|
1356
1354
|
for (const [, color] of tagValueToColor) {
|
|
1357
1355
|
const hex = color.replace("#", "");
|
|
1358
|
-
defs.append("marker").attr("id", `seq-arrowhead-c${hex}`).attr("viewBox", `0 0 ${
|
|
1359
|
-
defs.append("marker").attr("id", `seq-arrowhead-async-c${hex}`).attr("viewBox", `0 0 ${
|
|
1360
|
-
defs.append("marker").attr("id", `seq-arrowhead-open-c${hex}`).attr("viewBox", `0 0 ${
|
|
1356
|
+
defs.append("marker").attr("id", `seq-arrowhead-c${hex}`).attr("viewBox", `0 0 ${sArrowheadW} ${sArrowheadH}`).attr("refX", sArrowheadW).attr("refY", sArrowheadH / 2).attr("markerWidth", sArrowheadW).attr("markerHeight", sArrowheadH).attr("orient", "auto").append("polygon").attr("points", arrowPoints).attr("fill", color);
|
|
1357
|
+
defs.append("marker").attr("id", `seq-arrowhead-async-c${hex}`).attr("viewBox", `0 0 ${sArrowheadW} ${sArrowheadH}`).attr("refX", sArrowheadW).attr("refY", sArrowheadH / 2).attr("markerWidth", sArrowheadW).attr("markerHeight", sArrowheadH).attr("orient", "auto").append("polyline").attr("points", arrowPoints).attr("fill", "none").attr("stroke", color).attr("stroke-width", 1.2);
|
|
1358
|
+
defs.append("marker").attr("id", `seq-arrowhead-open-c${hex}`).attr("viewBox", `0 0 ${sArrowheadW} ${sArrowheadH}`).attr("refX", sArrowheadW).attr("refY", sArrowheadH / 2).attr("markerWidth", sArrowheadW).attr("markerHeight", sArrowheadH).attr("orient", "auto").append("polyline").attr("points", arrowPoints).attr("fill", "none").attr("stroke", color).attr("stroke-width", 1.2);
|
|
1361
1359
|
}
|
|
1362
1360
|
const coloredMarker = (type, tagColor) => {
|
|
1363
1361
|
if (tagColor) {
|
|
@@ -1513,7 +1511,7 @@ function renderSequenceDiagram(container, parsed, palette, isDark, _onNavigateTo
|
|
|
1513
1511
|
const pStroke = effectiveTagColor || palette.border;
|
|
1514
1512
|
participantG.append("rect").attr("x", -boxW / 2).attr("y", -padTop).attr("width", boxW).attr("height", fullH).attr("rx", 6).attr("fill", pFill).attr("stroke", pStroke).attr("stroke-width", 1.5);
|
|
1515
1513
|
const nameY = -padTop + (fullH - drillBarH) / 2;
|
|
1516
|
-
participantG.append("text").attr("x", 0).attr("y", nameY).attr("text-anchor", "middle").attr("dominant-baseline", "central").attr("fill", palette.text).attr("font-size", sLabelFontSize).attr("font-weight",
|
|
1514
|
+
participantG.append("text").attr("x", 0).attr("y", nameY).attr("text-anchor", "middle").attr("dominant-baseline", "central").attr("fill", palette.text).attr("font-size", sLabelFontSize).attr("font-weight", "normal").attr("class", "collapsed-group-label").text(truncateText(participant.label, sLabelFontSize, sLabelTextWidth));
|
|
1517
1515
|
participantG.append("clipPath").attr("id", clipId).append("rect").attr("x", -boxW / 2).attr("y", -padTop).attr("width", boxW).attr("height", fullH).attr("rx", 6);
|
|
1518
1516
|
participantG.append("rect").attr("class", "sequence-drill-bar").attr("x", -boxW / 2).attr("y", -padTop + fullH - drillBarH).attr("width", boxW).attr("height", drillBarH).attr("fill", drillColor).attr("clip-path", `url(#${clipId})`);
|
|
1519
1517
|
}
|
|
@@ -1524,7 +1522,7 @@ function renderSequenceDiagram(container, parsed, palette, isDark, _onNavigateTo
|
|
|
1524
1522
|
llY,
|
|
1525
1523
|
lifelineStartY + lifelineLength
|
|
1526
1524
|
)) {
|
|
1527
|
-
const lifelineEl = svg.append("line").attr("x1", cx).attr("y1", segTop).attr("x2", cx).attr("y2", segBottom).attr("stroke", llColor).attr("stroke-width", 1).attr("stroke-dasharray",
|
|
1525
|
+
const lifelineEl = svg.append("line").attr("x1", cx).attr("y1", segTop).attr("x2", cx).attr("y2", segBottom).attr("stroke", llColor).attr("stroke-width", 1).attr("stroke-dasharray", EDGE_DASH).attr("class", "lifeline").attr("data-participant-id", participant.id);
|
|
1528
1526
|
if (tagKey && pTagValue) {
|
|
1529
1527
|
lifelineEl.attr(`data-tag-${tagKey}`, pTagValue.toLowerCase());
|
|
1530
1528
|
}
|
|
@@ -1622,7 +1620,7 @@ function renderSequenceDiagram(container, parsed, palette, isDark, _onNavigateTo
|
|
|
1622
1620
|
const frameY = stepY(minStep) - FRAME_PADDING_TOP;
|
|
1623
1621
|
const frameW = maxPX - minPX + FRAME_PADDING_X * 2 + extraRight;
|
|
1624
1622
|
const frameH = stepY(maxStep) - stepY(minStep) + FRAME_PADDING_TOP + FRAME_PADDING_BOTTOM + (maxStepIsSelfCall ? sSelfCallHeight : 0);
|
|
1625
|
-
svg.append("rect").attr("x", frameX).attr("y", frameY).attr("width", frameW).attr("height", frameH).attr("fill", "none").attr("stroke", palette.textMuted).attr("stroke-width", 1).attr("stroke-dasharray",
|
|
1623
|
+
svg.append("rect").attr("x", frameX).attr("y", frameY).attr("width", frameW).attr("height", frameH).attr("fill", "none").attr("stroke", palette.textMuted).attr("stroke-width", 1).attr("stroke-dasharray", HAIRLINE_DASH).attr("rx", 3).attr("ry", 3).attr("class", "block-frame").attr("data-block-line", String(el.lineNumber));
|
|
1626
1624
|
deferredLabels.push({
|
|
1627
1625
|
x: frameX + 6,
|
|
1628
1626
|
y: frameY + FRAME_LABEL_HEIGHT - 4,
|
|
@@ -1731,7 +1729,7 @@ function renderSequenceDiagram(container, parsed, palette, isDark, _onNavigateTo
|
|
|
1731
1729
|
}
|
|
1732
1730
|
});
|
|
1733
1731
|
for (const ln of deferredLines) {
|
|
1734
|
-
const line = svg.append("line").attr("x1", ln.x1).attr("y1", ln.y1).attr("x2", ln.x2).attr("y2", ln.y2).attr("stroke", palette.textMuted).attr("stroke-width", 1).attr("stroke-dasharray",
|
|
1732
|
+
const line = svg.append("line").attr("x1", ln.x1).attr("y1", ln.y1).attr("x2", ln.x2).attr("y2", ln.y2).attr("stroke", palette.textMuted).attr("stroke-width", 1).attr("stroke-dasharray", HAIRLINE_DASH).attr("class", "block-divider");
|
|
1735
1733
|
if (ln.blockLine !== void 0)
|
|
1736
1734
|
line.attr("data-block-line", String(ln.blockLine));
|
|
1737
1735
|
}
|
|
@@ -1786,7 +1784,7 @@ function renderSequenceDiagram(container, parsed, palette, isDark, _onNavigateTo
|
|
|
1786
1784
|
const markY = secY + COLLAPSED_SECTION_MARK_OFFSET;
|
|
1787
1785
|
const involvedXs = participants.filter((p) => participation.has(p.id)).map((p) => participantX.get(p.id)).filter((x) => x !== void 0);
|
|
1788
1786
|
if (involvedXs.length > 1) {
|
|
1789
|
-
sectionG.append("line").attr("x1", Math.min(...involvedXs)).attr("x2", Math.max(...involvedXs)).attr("y1", markY).attr("y2", markY).attr("stroke", lineColor).attr("stroke-width", 1).attr("stroke-dasharray",
|
|
1787
|
+
sectionG.append("line").attr("x1", Math.min(...involvedXs)).attr("x2", Math.max(...involvedXs)).attr("y1", markY).attr("y2", markY).attr("stroke", lineColor).attr("stroke-width", 1).attr("stroke-dasharray", HAIRLINE_DASH).attr("opacity", 0.5).attr("pointer-events", "none").attr("class", "section-reach");
|
|
1790
1788
|
}
|
|
1791
1789
|
for (const participant of participants) {
|
|
1792
1790
|
const markX = participantX.get(participant.id);
|
|
@@ -1868,7 +1866,7 @@ function renderSequenceDiagram(container, parsed, palette, isDark, _onNavigateTo
|
|
|
1868
1866
|
const x2 = arrowEdgeX(step.to, i, goingRight ? "left" : "right");
|
|
1869
1867
|
const returnColor = msgTagColor || palette.textMuted;
|
|
1870
1868
|
svg.append("rect").attr("x", Math.min(x1, x2)).attr("y", y - HIT_H / 2).attr("width", Math.abs(x2 - x1)).attr("height", HIT_H).attr("fill", "transparent").attr("class", "message-hit-area").attr("data-line-number", String(msg.lineNumber)).attr("data-msg-index", String(step.messageIndex)).attr("data-step-index", String(i));
|
|
1871
|
-
const returnEl = svg.append("line").attr("x1", x1).attr("y1", y).attr("x2", x2).attr("y2", y).attr("stroke", returnColor).attr("stroke-width", 1).attr("stroke-dasharray",
|
|
1869
|
+
const returnEl = svg.append("line").attr("x1", x1).attr("y1", y).attr("x2", x2).attr("y2", y).attr("stroke", returnColor).attr("stroke-width", 1).attr("stroke-dasharray", EDGE_DASH).attr("marker-end", coloredMarker("return", msgTagColor)).attr("class", "return-arrow").attr("data-line-number", String(msg.lineNumber)).attr("data-msg-index", String(step.messageIndex)).attr("data-step-index", String(i)).attr("data-from", step.from).attr("data-to", step.to);
|
|
1872
1870
|
if (tagKey && msgTagValue) {
|
|
1873
1871
|
returnEl.attr(`data-tag-${tagKey}`, msgTagValue.toLowerCase());
|
|
1874
1872
|
}
|
|
@@ -2049,7 +2047,7 @@ function renderParticipant(svg, participant, cx, cy, palette, isDark, color, tag
|
|
|
2049
2047
|
palette.textOnFillLight,
|
|
2050
2048
|
palette.textOnFillDark
|
|
2051
2049
|
);
|
|
2052
|
-
const textEl = g.append("text").attr("x", 0).attr("text-anchor", "middle").attr("fill", labelFill).attr("font-size", fontSize).attr("font-weight",
|
|
2050
|
+
const textEl = g.append("text").attr("x", 0).attr("text-anchor", "middle").attr("fill", labelFill).attr("font-size", fontSize).attr("font-weight", "normal");
|
|
2053
2051
|
const maxLabelW = labelTextWidth(boxW);
|
|
2054
2052
|
const truncLine = (text) => truncateText(text, fontSize, maxLabelW);
|
|
2055
2053
|
if (labelLines.length === 1) {
|
|
@@ -2074,4 +2072,4 @@ export {
|
|
|
2074
2072
|
renderSequenceDiagram,
|
|
2075
2073
|
buildNoteMessageMap
|
|
2076
2074
|
};
|
|
2077
|
-
//# sourceMappingURL=chunk-
|
|
2075
|
+
//# sourceMappingURL=chunk-I6DFQQER.js.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// src/fonts.ts
|
|
2
|
+
var FONT_FAMILY = "Inter, system-ui, Avenir, Helvetica, Arial, sans-serif";
|
|
3
|
+
var DEFAULT_FONT_NAME = "Inter";
|
|
4
|
+
var MONO_FAMILY = "ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace";
|
|
5
|
+
|
|
6
|
+
export {
|
|
7
|
+
FONT_FAMILY,
|
|
8
|
+
DEFAULT_FONT_NAME,
|
|
9
|
+
MONO_FAMILY
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=chunk-ICLB27PZ.js.map
|
|
@@ -784,6 +784,7 @@ var palettes = {
|
|
|
784
784
|
};
|
|
785
785
|
|
|
786
786
|
export {
|
|
787
|
+
DEFAULT_PALETTE_ID,
|
|
787
788
|
isValidHex,
|
|
788
789
|
registerPalette,
|
|
789
790
|
getPalette,
|
|
@@ -798,4 +799,4 @@ export {
|
|
|
798
799
|
tokyoNightPalette,
|
|
799
800
|
palettes
|
|
800
801
|
};
|
|
801
|
-
//# sourceMappingURL=chunk-
|
|
802
|
+
//# sourceMappingURL=chunk-IDJGV6VM.js.map
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
stripDefaultModifier,
|
|
19
19
|
tagAttrKey,
|
|
20
20
|
validateTagGroupNames
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-O2HU4AQN.js";
|
|
22
22
|
import {
|
|
23
23
|
AliasRegistry,
|
|
24
24
|
C4_REGISTRY,
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
splitNameAndMeta,
|
|
31
31
|
warnUnknownMetaKeys,
|
|
32
32
|
withTagAliases
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-4CA7TJ44.js";
|
|
34
34
|
import {
|
|
35
35
|
formatDgmoError,
|
|
36
36
|
makeDgmoError,
|
|
@@ -40,6 +40,7 @@ import {
|
|
|
40
40
|
|
|
41
41
|
// src/c4/parser.ts
|
|
42
42
|
var CONTAINER_RE = /^\[([^\]]+)\](?:\s+(collapsed)|\s+collapsed:\s*(\S+))?$/;
|
|
43
|
+
var CONTAINER_META_RE = /^\[([^\]]+)\]\s+(.+)$/;
|
|
43
44
|
var ELEMENT_RE = /^(person|system|container|component)\s+(.+)$/i;
|
|
44
45
|
var IS_A_RE = /\s+is\s+a(?:n)?\s+(\w+)\s*$/i;
|
|
45
46
|
var C4_IS_A_RE = /^([^:]+?)\s+is\s+an?\s+(person|system|container|component|external|database)\b(.*)$/i;
|
|
@@ -389,15 +390,27 @@ function parseC4(content, palette) {
|
|
|
389
390
|
stack.pop();
|
|
390
391
|
}
|
|
391
392
|
const containerMatch = trimmed.match(CONTAINER_RE);
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
393
|
+
let containerMeta = {};
|
|
394
|
+
let metaMatch = null;
|
|
395
|
+
if (!containerMatch) {
|
|
396
|
+
metaMatch = trimmed.match(CONTAINER_META_RE);
|
|
397
|
+
if (metaMatch) {
|
|
398
|
+
containerMeta = parseC4MetaTail(metaMatch[2], metaAliasMap);
|
|
399
|
+
if (Object.keys(containerMeta).length === 0) metaMatch = null;
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
if (containerMatch || metaMatch) {
|
|
403
|
+
const groupName = (containerMatch ?? metaMatch)[1].trim();
|
|
404
|
+
const groupCollapsed = containerMatch !== null && (containerMatch[2] !== void 0 || containerMatch[3]?.toLowerCase() === "true");
|
|
395
405
|
const parentEntry = findParentElement(indent, stack);
|
|
396
406
|
if (parentEntry) {
|
|
397
407
|
const group = {
|
|
398
408
|
name: groupName,
|
|
399
409
|
children: [],
|
|
400
410
|
...groupCollapsed && { collapsed: true },
|
|
411
|
+
...Object.keys(containerMeta).length > 0 && {
|
|
412
|
+
metadata: containerMeta
|
|
413
|
+
},
|
|
401
414
|
lineNumber
|
|
402
415
|
};
|
|
403
416
|
parentEntry.element.groups.push(group);
|
|
@@ -849,4 +862,4 @@ function validateDeploymentRefs(result, knownNames, pushWarning) {
|
|
|
849
862
|
export {
|
|
850
863
|
parseC4
|
|
851
864
|
};
|
|
852
|
-
//# sourceMappingURL=chunk-
|
|
865
|
+
//# sourceMappingURL=chunk-IEK2FUWO.js.map
|
|
@@ -5,6 +5,14 @@ var CARD_RADIUS = 6;
|
|
|
5
5
|
var CONTAINER_RADIUS = 8;
|
|
6
6
|
var COLLAPSE_BAR_INSET = 0;
|
|
7
7
|
var EDGE_LABEL_KNOCKOUT_OPACITY = 0.9;
|
|
8
|
+
var ARROWHEAD_WIDTH = 10;
|
|
9
|
+
var ARROWHEAD_HEIGHT = 7;
|
|
10
|
+
var EDGE_DASH = "6 3";
|
|
11
|
+
var GRID_DASH = "4 4";
|
|
12
|
+
var HAIRLINE_DASH = "2 3";
|
|
13
|
+
function scaleDash(pattern, scale) {
|
|
14
|
+
return pattern.split(/[\s,]+/).filter(Boolean).map((n) => scale(Number(n))).join(" ");
|
|
15
|
+
}
|
|
8
16
|
var HEADER_HEIGHT = 28;
|
|
9
17
|
var LABEL_FONT_SIZE = 13;
|
|
10
18
|
var META_FONT_SIZE = 11;
|
|
@@ -23,6 +31,12 @@ export {
|
|
|
23
31
|
CONTAINER_RADIUS,
|
|
24
32
|
COLLAPSE_BAR_INSET,
|
|
25
33
|
EDGE_LABEL_KNOCKOUT_OPACITY,
|
|
34
|
+
ARROWHEAD_WIDTH,
|
|
35
|
+
ARROWHEAD_HEIGHT,
|
|
36
|
+
EDGE_DASH,
|
|
37
|
+
GRID_DASH,
|
|
38
|
+
HAIRLINE_DASH,
|
|
39
|
+
scaleDash,
|
|
26
40
|
HEADER_HEIGHT,
|
|
27
41
|
LABEL_FONT_SIZE,
|
|
28
42
|
META_FONT_SIZE,
|
|
@@ -34,4 +48,4 @@ export {
|
|
|
34
48
|
CONTAINER_META_FONT_SIZE,
|
|
35
49
|
CONTAINER_META_LINE_HEIGHT
|
|
36
50
|
};
|
|
37
|
-
//# sourceMappingURL=chunk-
|
|
51
|
+
//# sourceMappingURL=chunk-IIEI7VK5.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isTagBlockHeading
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-O2HU4AQN.js";
|
|
4
4
|
import {
|
|
5
5
|
OPTION_NOCOLON_RE,
|
|
6
6
|
measureIndent,
|
|
7
7
|
parseFirstLine,
|
|
8
8
|
tryParseSharedOption
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-4CA7TJ44.js";
|
|
10
10
|
import {
|
|
11
11
|
formatDgmoError,
|
|
12
12
|
makeDgmoError
|
|
@@ -690,4 +690,4 @@ export {
|
|
|
690
690
|
resetWireframeIds,
|
|
691
691
|
parseWireframe
|
|
692
692
|
};
|
|
693
|
-
//# sourceMappingURL=chunk-
|
|
693
|
+
//# sourceMappingURL=chunk-IZK2H4KU.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
splitNameAndMeta,
|
|
6
6
|
tryParseSharedOption,
|
|
7
7
|
warnUnknownMetaKeys
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-4CA7TJ44.js";
|
|
9
9
|
import {
|
|
10
10
|
makeDgmoError,
|
|
11
11
|
makeFail
|
|
@@ -274,4 +274,4 @@ function parseCycle(content) {
|
|
|
274
274
|
export {
|
|
275
275
|
parseCycle
|
|
276
276
|
};
|
|
277
|
-
//# sourceMappingURL=chunk-
|
|
277
|
+
//# sourceMappingURL=chunk-JOG6W3VS.js.map
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import {
|
|
2
|
-
NODE_STROKE_WIDTH
|
|
3
|
-
} from "./chunk-FJ57274M.js";
|
|
4
1
|
import {
|
|
5
2
|
ScaleContext
|
|
6
3
|
} from "./chunk-24YPR5EH.js";
|
|
4
|
+
import {
|
|
5
|
+
NODE_STROKE_WIDTH
|
|
6
|
+
} from "./chunk-IIEI7VK5.js";
|
|
7
7
|
import {
|
|
8
8
|
TITLE_FONT_SIZE,
|
|
9
9
|
TITLE_FONT_WEIGHT,
|
|
10
10
|
TITLE_Y
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-VSPNH7LC.js";
|
|
12
12
|
import {
|
|
13
13
|
FONT_FAMILY
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ICLB27PZ.js";
|
|
15
15
|
import {
|
|
16
16
|
measureText,
|
|
17
17
|
truncateText,
|
|
18
18
|
wrapTextToWidth
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-YC6GVLTI.js";
|
|
20
20
|
import {
|
|
21
21
|
allTasks
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-ZZZJVDIL.js";
|
|
23
23
|
import {
|
|
24
24
|
VARIANTS
|
|
25
25
|
} from "./chunk-MSVQ2YCY.js";
|
|
26
26
|
import {
|
|
27
27
|
fillModeFromOptions,
|
|
28
28
|
legendSuppressed
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-4CA7TJ44.js";
|
|
30
30
|
import {
|
|
31
31
|
contrastText,
|
|
32
32
|
mix,
|
|
33
33
|
themeBaseBg
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-AMQFJ7P7.js";
|
|
35
35
|
|
|
36
36
|
// src/raci/renderer.ts
|
|
37
37
|
import * as d3Selection from "d3-selection";
|
|
@@ -116,7 +116,7 @@ var COLUMN_RADIUS = 8;
|
|
|
116
116
|
var COLUMN_INSET = 8;
|
|
117
117
|
var COLUMN_BOTTOM_PAD = 14;
|
|
118
118
|
var MARKER_FONT = 14;
|
|
119
|
-
var MARKER_FONT_WEIGHT =
|
|
119
|
+
var MARKER_FONT_WEIGHT = "bold";
|
|
120
120
|
var LABEL_FONT = 13;
|
|
121
121
|
var ROLE_HEADER_FONT = 12;
|
|
122
122
|
var PHASE_FONT = 13;
|
|
@@ -372,7 +372,7 @@ function renderRaci(container, parsed, palette, isDark, handlers, exportDims) {
|
|
|
372
372
|
headerPath.attr("stroke", roleColor).attr("stroke-width", 1);
|
|
373
373
|
}
|
|
374
374
|
const cxText = roleX(i) + roleColW / 2;
|
|
375
|
-
colG.append("text").attr("class", "raci-column-label").attr("x", cxText).attr("y", headerY + sHeaderHeight / 2).attr("text-anchor", "middle").attr("dominant-baseline", "central").attr("font-size", sRoleHeaderFont).attr("font-weight",
|
|
375
|
+
colG.append("text").attr("class", "raci-column-label").attr("x", cxText).attr("y", headerY + sHeaderHeight / 2).attr("text-anchor", "middle").attr("dominant-baseline", "central").attr("font-size", sRoleHeaderFont).attr("font-weight", "bold").attr("fill", palette.text).text(
|
|
376
376
|
truncateText(
|
|
377
377
|
parsed.roleDisplayNames[i] ?? "",
|
|
378
378
|
sRoleHeaderFont,
|
|
@@ -519,7 +519,7 @@ function renderLegend(svg, markers, variant, x, y, mode, chipW, palette, surface
|
|
|
519
519
|
const fill2 = fillMode === "solid" ? rawColor : fillMode === "outline" ? surfaceBg : mix(rawColor, surfaceBg, TINT_PCT);
|
|
520
520
|
const stroke2 = fillMode === "solid" ? mix(rawColor, surfaceBg, 70) : rawColor;
|
|
521
521
|
chipG.append("rect").attr("x", cx).attr("y", y).attr("width", chipW).attr("height", sLegendHeight).attr("rx", sNodeRadius).attr("fill", fill2).attr("stroke", stroke2).attr("stroke-width", sNodeStrokeWidth);
|
|
522
|
-
chipG.append("text").attr("x", cx + chipW / 2).attr("y", y + sLegendHeight / 2).attr("text-anchor", "middle").attr("dominant-baseline", "central").attr("font-size", sLegendLetterFont).attr("font-weight",
|
|
522
|
+
chipG.append("text").attr("x", cx + chipW / 2).attr("y", y + sLegendHeight / 2).attr("text-anchor", "middle").attr("dominant-baseline", "central").attr("font-size", sLegendLetterFont).attr("font-weight", "bold").attr(
|
|
523
523
|
"fill",
|
|
524
524
|
fillMode === "solid" ? contrastText(
|
|
525
525
|
fill2,
|
|
@@ -552,7 +552,7 @@ function renderLegend(svg, markers, variant, x, y, mode, chipW, palette, surface
|
|
|
552
552
|
if (fillMode === "outline") {
|
|
553
553
|
slabRect.attr("stroke", rawColor).attr("stroke-width", 1);
|
|
554
554
|
}
|
|
555
|
-
chipG.append("text").attr("x", cx + slabPad + slabW / 2).attr("y", y + sLegendHeight / 2).attr("text-anchor", "middle").attr("dominant-baseline", "central").attr("font-size", sLegendLetterFont).attr("font-weight",
|
|
555
|
+
chipG.append("text").attr("x", cx + slabPad + slabW / 2).attr("y", y + sLegendHeight / 2).attr("text-anchor", "middle").attr("dominant-baseline", "central").attr("font-size", sLegendLetterFont).attr("font-weight", "bold").attr(
|
|
556
556
|
"fill",
|
|
557
557
|
fillMode === "solid" ? contrastText(
|
|
558
558
|
slabFill,
|
|
@@ -560,7 +560,7 @@ function renderLegend(svg, markers, variant, x, y, mode, chipW, palette, surface
|
|
|
560
560
|
palette.textOnFillDark
|
|
561
561
|
) : palette.text
|
|
562
562
|
).text(marker);
|
|
563
|
-
chipG.append("text").attr("x", cx + slabPad + slabW + 8).attr("y", y + sLegendHeight / 2).attr("dominant-baseline", "central").attr("font-size", sLegendLabelFont).attr("font-weight",
|
|
563
|
+
chipG.append("text").attr("x", cx + slabPad + slabW + 8).attr("y", y + sLegendHeight / 2).attr("dominant-baseline", "central").attr("font-size", sLegendLabelFont).attr("font-weight", "bold").attr("fill", palette.text).text(
|
|
564
564
|
truncateText(
|
|
565
565
|
labelText,
|
|
566
566
|
sLegendLabelFont,
|
|
@@ -586,14 +586,14 @@ function renderPhaseBar(svg, phase, x, y, width, palette, collapsed, autoColor,
|
|
|
586
586
|
const chevX = x + 12;
|
|
587
587
|
const chevY = y + sPhaseHeight / 2;
|
|
588
588
|
phaseG.append("text").attr("x", chevX).attr("y", chevY).attr("text-anchor", "middle").attr("dominant-baseline", "central").attr("font-family", FONT_FAMILY).attr("font-size", 9).attr("fill", palette.text).attr("opacity", 0.6).text(collapsed ? "\u25B6" : "\u25BC");
|
|
589
|
-
phaseG.append("text").attr("x", x + 26).attr("y", y + (sPhaseHeight - 4) / 2 + 2).attr("dominant-baseline", "central").attr("font-size", sPhaseFont).attr("font-weight",
|
|
589
|
+
phaseG.append("text").attr("x", x + 26).attr("y", y + (sPhaseHeight - 4) / 2 + 2).attr("dominant-baseline", "central").attr("font-size", sPhaseFont).attr("font-weight", "bold").attr("fill", palette.text).text(phase.displayName);
|
|
590
590
|
if (collapsed) {
|
|
591
591
|
const taskCount = phase.tasks.length;
|
|
592
592
|
if (taskCount > 0) {
|
|
593
593
|
const labelTextWidth = measureText(phase.displayName, sPhaseFont, {
|
|
594
594
|
bold: true
|
|
595
595
|
});
|
|
596
|
-
phaseG.append("text").attr("x", x + 26 + labelTextWidth + 10).attr("y", y + (sPhaseHeight - 4) / 2 + 2).attr("dominant-baseline", "central").attr("font-size", sPhaseFont - 1).attr("font-weight",
|
|
596
|
+
phaseG.append("text").attr("x", x + 26 + labelTextWidth + 10).attr("y", y + (sPhaseHeight - 4) / 2 + 2).attr("dominant-baseline", "central").attr("font-size", sPhaseFont - 1).attr("font-weight", "normal").attr("fill", palette.textMuted).text(`${taskCount} ${taskCount === 1 ? "task" : "tasks"}`);
|
|
597
597
|
}
|
|
598
598
|
if (!showSummary) return;
|
|
599
599
|
const alphabet = VARIANTS[variant].alphabet;
|
|
@@ -621,7 +621,7 @@ function renderPhaseBar(svg, phase, x, y, width, palette, collapsed, autoColor,
|
|
|
621
621
|
const stroke = fillMode === "solid" ? mix(rawColor, surfaceBg, 70) : rawColor;
|
|
622
622
|
const chipG = phaseG.append("g").attr("class", "raci-phase-summary");
|
|
623
623
|
chipG.append("rect").attr("x", cx).attr("y", summaryY).attr("width", sliceW).attr("height", SUMMARY_CHIP_H).attr("rx", sNodeRadius).attr("fill", fill).attr("stroke", stroke).attr("stroke-width", 1.25);
|
|
624
|
-
chipG.append("text").attr("x", cx + sliceW / 2).attr("y", summaryY + SUMMARY_CHIP_H / 2).attr("text-anchor", "middle").attr("dominant-baseline", "central").attr("font-size", SUMMARY_LETTER_FONT).attr("font-weight",
|
|
624
|
+
chipG.append("text").attr("x", cx + sliceW / 2).attr("y", summaryY + SUMMARY_CHIP_H / 2).attr("text-anchor", "middle").attr("dominant-baseline", "central").attr("font-size", SUMMARY_LETTER_FONT).attr("font-weight", "bold").attr(
|
|
625
625
|
"fill",
|
|
626
626
|
fillMode === "solid" ? contrastText(
|
|
627
627
|
fill,
|
|
@@ -676,7 +676,7 @@ function renderTaskRow(svg, task, parsed, x, y, labelW, roleX, roleColW, palette
|
|
|
676
676
|
const tspan = textEl.append("tspan").text(seg.text);
|
|
677
677
|
if (i > 0 && segIdx === 0)
|
|
678
678
|
tspan.attr("x", labelX).attr("dy", sViolationLineHeight);
|
|
679
|
-
if (seg.bold) tspan.attr("font-weight",
|
|
679
|
+
if (seg.bold) tspan.attr("font-weight", "bold");
|
|
680
680
|
});
|
|
681
681
|
});
|
|
682
682
|
if (onClickLine) {
|
|
@@ -859,4 +859,4 @@ export {
|
|
|
859
859
|
renderRaci,
|
|
860
860
|
renderRaciForExport
|
|
861
861
|
};
|
|
862
|
-
//# sourceMappingURL=chunk-
|
|
862
|
+
//# sourceMappingURL=chunk-JTLLQT34.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
mix
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-AMQFJ7P7.js";
|
|
4
4
|
import {
|
|
5
5
|
resolveColor
|
|
6
6
|
} from "./chunk-XOGQY4EC.js";
|
|
@@ -32,4 +32,4 @@ function buildSwatches(palette, muted) {
|
|
|
32
32
|
export {
|
|
33
33
|
buildSwatches
|
|
34
34
|
};
|
|
35
|
-
//# sourceMappingURL=chunk-
|
|
35
|
+
//# sourceMappingURL=chunk-K3K7JHZI.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
measureText
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YC6GVLTI.js";
|
|
4
4
|
import {
|
|
5
5
|
formatDuration,
|
|
6
6
|
formatScheduleValue,
|
|
@@ -603,4 +603,4 @@ export {
|
|
|
603
603
|
layoutPert,
|
|
604
604
|
relayoutPert
|
|
605
605
|
};
|
|
606
|
-
//# sourceMappingURL=chunk-
|
|
606
|
+
//# sourceMappingURL=chunk-KHRZCKKG.js.map
|