@diagrammo/dgmo 0.50.2 → 0.52.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/.cursorrules +15 -19
- package/.github/copilot-instructions.md +15 -19
- package/.windsurfrules +15 -19
- package/SKILL.md +15 -19
- package/dist/advanced.d.ts +155 -65
- package/dist/advanced.js +231 -189
- package/dist/{analyzer-UYKBXAKR.js → analyzer-BJ54GIFB.js} +3 -3
- package/dist/auto.css +31 -8
- package/dist/auto.d.ts +6 -0
- package/dist/auto.js +171 -133
- package/dist/auto.mjs +3062 -1478
- package/dist/block.css +28 -8
- package/dist/block.js +138 -72
- package/dist/charts-d3-MXEP6BNP.js +26 -0
- package/dist/{chunk-3YPY3OXD.js → chunk-3HF5YEFJ.js} +17 -7
- package/dist/{chunk-4MJ7M6YL.js → chunk-3HGU63UY.js} +14 -13
- package/dist/chunk-3LK5DNED.js +35 -0
- package/dist/{chunk-3Y2DRD7S.js → chunk-3QD7VP3U.js} +9 -4
- package/dist/{chunk-6BFZKBGD.js → chunk-3YRPZ7ZZ.js} +2 -2
- package/dist/{chunk-WW32K72E.js → chunk-44VCIPHF.js} +25 -21
- package/dist/{chunk-TN35C5KM.js → chunk-4AQRFDXL.js} +2 -2
- package/dist/{chunk-HHXOONLX.js → chunk-4B5YISOR.js} +38 -1
- package/dist/{chunk-PGEGPSCZ.js → chunk-4IHAV6O7.js} +2 -2
- package/dist/{chunk-7L3R6I3U.js → chunk-4UNQ6X24.js} +10 -7
- package/dist/{chunk-O7NUCTFU.js → chunk-4YFKQ5WT.js} +7 -4
- package/dist/{chunk-5WFIYXQ6.js → chunk-5223KXFD.js} +122 -242
- package/dist/{chunk-PFHVU7UA.js → chunk-5BHJZH62.js} +3 -3
- package/dist/{chunk-QYTPPDAO.js → chunk-5HILBT7X.js} +2 -2
- package/dist/{chunk-GKC3HILQ.js → chunk-5NGAO4QK.js} +27 -4
- package/dist/{chunk-IAEC4KLA.js → chunk-5QKQSSPO.js} +2 -2
- package/dist/{chunk-DSWVNQVS.js → chunk-5RP7JRVP.js} +4 -59
- package/dist/{chunk-MCZ5LBZD.js → chunk-5SEVICBT.js} +8 -8
- package/dist/{chunk-GBE54KY6.js → chunk-6EJITS44.js} +8 -5
- package/dist/{chunk-BBGDM4NQ.js → chunk-6HQH6JZE.js} +35 -16
- package/dist/{chunk-66NVRO4K.js → chunk-6LBQ7ELG.js} +17 -18
- package/dist/{chunk-4XK3FLFB.js → chunk-6NYWYNBI.js} +3 -3
- package/dist/{chunk-VBYSIOOY.js → chunk-75G3Q4DK.js} +3 -3
- package/dist/{chunk-3NODSS6A.js → chunk-77FGAVZC.js} +13 -10
- package/dist/{chunk-6IAA2QQ2.js → chunk-7BIZCTAX.js} +2 -2
- package/dist/{chunk-TWQUYVP3.js → chunk-7DF4J4RL.js} +4 -4
- package/dist/{chunk-66RUL3XF.js → chunk-7KINELPI.js} +111 -49
- package/dist/{chunk-L3UHP6TD.js → chunk-7L4UJOY6.js} +1 -2
- package/dist/{chunk-QJP6PG7F.js → chunk-7QE3XMRK.js} +19 -18
- package/dist/{chunk-P7CE7LXL.js → chunk-AAXZDUOV.js} +18 -17
- package/dist/{chunk-SXRTRMEE.js → chunk-AL672HNE.js} +3 -3
- package/dist/chunk-APKUAJ2L.js +220 -0
- package/dist/{chunk-SCHXJTZL.js → chunk-ARGMQ3H4.js} +2 -2
- package/dist/{chunk-HEVYAHLW.js → chunk-AUIM2NVH.js} +5 -5
- package/dist/{chunk-3LH5CLP4.js → chunk-BKVOYV6I.js} +143 -6
- package/dist/{chunk-RZ6YKEUJ.js → chunk-BPIZNB5O.js} +17 -15
- package/dist/{chunk-QROYX7TT.js → chunk-BPY242XU.js} +6 -4
- package/dist/{chunk-OTAL43EH.js → chunk-BRENJ2BQ.js} +39 -3
- package/dist/{chunk-FA6K3FWM.js → chunk-CCNDLW7Z.js} +44 -22
- package/dist/{chunk-2KGXHFYK.js → chunk-CIRFIL4M.js} +49 -29
- package/dist/chunk-DAOFNU6J.js +283 -0
- package/dist/{chunk-QJJZSROI.js → chunk-DYWQFQJP.js} +48 -38
- package/dist/{chunk-XEGTMVYY.js → chunk-EMLPOL77.js} +15 -8
- package/dist/{chunk-NWED7CYO.js → chunk-FHGVORFO.js} +29 -25
- package/dist/{chunk-U2HGPLZS.js → chunk-FQ7HTV52.js} +17 -2
- package/dist/{chunk-H73FP42Q.js → chunk-FQMUHRVC.js} +70 -31
- package/dist/{chunk-BTUTZMPT.js → chunk-FT3ZYWET.js} +108 -42
- package/dist/{chunk-T5SHNNGP.js → chunk-FUPF2UYQ.js} +92 -34
- package/dist/{chunk-3XPUDB7B.js → chunk-FY5MSZAP.js} +279 -39
- package/dist/{chunk-M5RXSRO2.js → chunk-GCYTI3DE.js} +42 -33
- package/dist/{chunk-DN66GPY5.js → chunk-GJFAMOGK.js} +24 -3
- package/dist/{chunk-F2L5GCQ4.js → chunk-GU46PPT3.js} +3 -3
- package/dist/{chunk-6IUAK7RZ.js → chunk-H6PI3KJT.js} +2 -2
- package/dist/{chunk-ONA5KPV3.js → chunk-H7KENAZO.js} +18 -14
- package/dist/{chunk-SQLNBA64.js → chunk-HBPDFCQY.js} +3 -3
- package/dist/{chunk-SCQ5VPUF.js → chunk-HFMYN6N2.js} +2 -2
- package/dist/{chunk-FJUNPCYI.js → chunk-HHKO6SKY.js} +2 -2
- package/dist/{chunk-DZXYF2F5.js → chunk-HQQNCY7W.js} +21 -8
- package/dist/{chunk-7TV5Y53Y.js → chunk-HWX6ZHF3.js} +3 -3
- package/dist/{chunk-3P2DKJCG.js → chunk-ICPJPQ5C.js} +2 -2
- package/dist/{chunk-VUJGMJE6.js → chunk-IM6PDDCE.js} +4 -4
- package/dist/{chunk-JJUOHGX2.js → chunk-INE5YJBZ.js} +13 -8
- package/dist/{chunk-HTMN2Z6U.js → chunk-J6QROYDA.js} +58 -11
- package/dist/{chunk-NX4EQS3U.js → chunk-J76PIKAT.js} +2 -2
- package/dist/{chunk-SVTI362O.js → chunk-J7KJR3R6.js} +129 -109
- package/dist/{chunk-JEUJOX5X.js → chunk-J7TLCB2Q.js} +2 -2
- package/dist/{chunk-O7WP4ZD4.js → chunk-JED6ZDEE.js} +2 -2
- package/dist/{chunk-J6K7RP6P.js → chunk-JRCOYRRH.js} +19 -7
- package/dist/{chunk-7QKLIMRZ.js → chunk-K2I2XOZD.js} +46 -51
- package/dist/{chunk-EAMEADTV.js → chunk-K4EOKJA6.js} +96 -24
- package/dist/{chunk-5OWVC2A6.js → chunk-KGVZ5VGH.js} +13 -10
- package/dist/{chunk-DFTFPYUD.js → chunk-LBMS4AW6.js} +22 -21
- package/dist/{chunk-VVW3F3MD.js → chunk-LGT3PZCJ.js} +27 -19
- package/dist/{chunk-OMNGQPEZ.js → chunk-LTXOLDUZ.js} +9 -6
- package/dist/{chunk-Q4V4XQWV.js → chunk-MUE65OTD.js} +5 -4
- package/dist/{chunk-5GJYGP5Z.js → chunk-MUVJ57EP.js} +14 -18
- package/dist/{chunk-CLD2OKV7.js → chunk-MX2EY5Y7.js} +2 -2
- package/dist/{chunk-OTQKUHRS.js → chunk-NNS4E7CW.js} +6 -4
- package/dist/{chunk-NNAAJVBU.js → chunk-NR5HCAUD.js} +1 -1
- package/dist/{chunk-KFZYNWWO.js → chunk-ONU3U4GL.js} +4 -4
- package/dist/{chunk-YNRDWYZP.js → chunk-OQKP2X3D.js} +170 -51
- package/dist/{chunk-AHGF2YYA.js → chunk-OTOHI4JO.js} +2 -2
- package/dist/{chunk-EOFPYPAU.js → chunk-P3NRSSUU.js} +51 -11
- package/dist/{chunk-QXKWYZNR.js → chunk-PRI2OD4E.js} +10 -3
- package/dist/{chunk-U6EQI3U6.js → chunk-QBZYACOG.js} +3 -3
- package/dist/{chunk-C2CVAM3U.js → chunk-QGATPIPX.js} +170 -91
- package/dist/{chunk-PZFVK3IH.js → chunk-QHXCAEMX.js} +8 -5
- package/dist/{chunk-BH3UYK36.js → chunk-QJMKPUYK.js} +15 -5
- package/dist/{chunk-HQCHYB5F.js → chunk-QOOUC2J5.js} +2 -2
- package/dist/{chunk-Z6XJQ6KO.js → chunk-QVENJMNX.js} +2 -2
- package/dist/{chunk-IUMPEA64.js → chunk-QZX5S6R3.js} +4 -4
- package/dist/{chunk-I7F2A35O.js → chunk-R3YSD62R.js} +25 -47
- package/dist/{chunk-NU3XLTGP.js → chunk-REJAIQ5S.js} +4 -4
- package/dist/{chunk-2C56LEML.js → chunk-ROOE4R4Y.js} +8 -5
- package/dist/{chunk-XHVV4NVW.js → chunk-RT7ACF77.js} +12 -2
- package/dist/{chunk-I2WKW7C7.js → chunk-SMRFPVLQ.js} +3 -3
- package/dist/{chunk-VDOOQZUD.js → chunk-SWSIKFEB.js} +4 -4
- package/dist/{chunk-HLJVEAOF.js → chunk-T4A4TSTJ.js} +19 -45
- package/dist/{chunk-KHEYDLMT.js → chunk-TJVLKNGR.js} +20 -10
- package/dist/{chunk-GL5UZ6NY.js → chunk-TPFKKXCB.js} +3 -3
- package/dist/{chunk-X6EZPSW6.js → chunk-TTIM6YTT.js} +31 -21
- package/dist/{chunk-BCYVE3N5.js → chunk-TYS6CSS5.js} +2 -2
- package/dist/{chunk-T4VOVZT5.js → chunk-UBLHQTLV.js} +15 -14
- package/dist/{chunk-3LKM6FMW.js → chunk-UNURMIQO.js} +2 -2
- package/dist/{chunk-TSA237IM.js → chunk-VILVLS7P.js} +5 -3
- package/dist/{chunk-HGN652MU.js → chunk-VL2O2F3W.js} +2 -2
- package/dist/{chunk-3XGZF2QJ.js → chunk-VQOCMUWI.js} +39 -28
- package/dist/{chunk-P6T66CCZ.js → chunk-WBM7ZNDI.js} +3 -2
- package/dist/{chunk-CMCR5WBW.js → chunk-WBRZJOEC.js} +3 -3
- package/dist/{chunk-5LWQH6QV.js → chunk-WCT3NYCV.js} +1 -1
- package/dist/{chunk-C4GQDB5L.js → chunk-WRNFDFPU.js} +2 -2
- package/dist/{chunk-6HJBFVLO.js → chunk-XD6ZYURY.js} +9 -4
- package/dist/{chunk-C63UWAKM.js → chunk-Y2ZE3MSG.js} +2 -2
- package/dist/{chunk-7UEMZREK.js → chunk-YAA6IID3.js} +2 -2
- package/dist/{chunk-F7BFXWNQ.js → chunk-YIBAWQGJ.js} +7 -4
- package/dist/{chunk-PH5X4GIP.js → chunk-YTMTPUH4.js} +8 -5
- package/dist/{chunk-3UIKSPFB.js → chunk-Z5QVYKR7.js} +11 -3
- package/dist/{chunk-KQ57MHRO.js → chunk-ZEF5M5MB.js} +155 -87
- package/dist/{chunk-LE4MYMLI.js → chunk-ZJV7GYR4.js} +6 -6
- package/dist/{chunk-XJLKLU4D.js → chunk-ZNWAYU6N.js} +11 -7
- package/dist/cli.cjs +165 -148
- package/dist/clock.js +105 -25
- package/dist/countdown.js +208 -82
- package/dist/dgmo-router-X7ZGAPIE.js +86 -0
- package/dist/dimensions-45H6JQEY.js +22 -0
- package/dist/editor.js +17 -2
- package/dist/element.d.ts +6 -0
- package/dist/element.js +172 -134
- package/dist/element.mjs +3026 -1463
- package/dist/{flowchart-parser-OE4WHLTF.js → flowchart-parser-UKELHBSB.js} +4 -4
- package/dist/{flowchart-renderer-GPCSMTOR.js → flowchart-renderer-MNCDS7MV.js} +10 -10
- package/dist/highlight.d.ts +21 -1
- package/dist/highlight.js +106 -3
- package/dist/index.d.ts +2 -2
- package/dist/index.js +59 -57
- package/dist/{layout-FWODLIMP.js → layout-2L3WMRYU.js} +6 -6
- package/dist/{layout-7SKMFYHL.js → layout-46N4JJYK.js} +5 -5
- package/dist/{layout-7H4H46CS.js → layout-7QXCNOVS.js} +3 -3
- package/dist/layout-A4XWNVID.js +14 -0
- package/dist/{layout-46366KBT.js → layout-A5UHRWVH.js} +3 -3
- package/dist/{layout-NXG63LWH.js → layout-AM2JWW3X.js} +4 -4
- package/dist/{layout-DC4TVXER.js → layout-EE6GE46Y.js} +5 -5
- package/dist/{layout-FGQWRYYW.js → layout-F4WO357A.js} +3 -3
- package/dist/layout-G23F7LDH.js +9 -0
- package/dist/{layout-QNUQLEHU.js → layout-GM4UGR7B.js} +5 -4
- package/dist/{layout-7MZ5NF2N.js → layout-GQQJXNYH.js} +5 -5
- package/dist/{layout-5BG6DFCU.js → layout-IIE2S5FK.js} +6 -6
- package/dist/{layout-34CLNICW.js → layout-OAC4PEAC.js} +5 -5
- package/dist/layout-VMCRX66I.js +14 -0
- package/dist/{layout-PUQCB6AN.js → layout-ZDOSXL5G.js} +7 -7
- package/dist/{layout-search-QS44PI5R.js → layout-search-55FU6HD3.js} +6 -157
- package/dist/map-data/gazetteer.json +1 -1
- package/dist/{palettes-PRJ2RI6D.js → palettes-UDLZ2SA4.js} +2 -2
- package/dist/{parser-D5VILGN2.js → parser-2ECN6JA2.js} +4 -4
- package/dist/{parser-LWKKBNSA.js → parser-4WTIHM5J.js} +3 -3
- package/dist/{parser-DFFEDKHH.js → parser-5H2BTSJQ.js} +3 -3
- package/dist/{parser-4NO6VZ6S.js → parser-75KVXUNS.js} +4 -4
- package/dist/{parser-VKOJM7KS.js → parser-774AC53T.js} +4 -4
- package/dist/{parser-IBWNAPY4.js → parser-BE4YCSRU.js} +3 -3
- package/dist/{parser-4AI5ZN5F.js → parser-CNGUQUQI.js} +3 -3
- package/dist/{parser-36HVKU5U.js → parser-DEUUSQIN.js} +7 -6
- package/dist/{parser-H3XEPFPV.js → parser-DQAFLUJB.js} +4 -4
- package/dist/{parser-5OXGPNBF.js → parser-EYCKNKQA.js} +5 -5
- package/dist/{parser-TGQZJ5OT.js → parser-FXISIU6A.js} +4 -4
- package/dist/{parser-JJR52VAT.js → parser-GTB4XC7P.js} +5 -5
- package/dist/{parser-AGVYTQXV.js → parser-GVEPAUSD.js} +4 -4
- package/dist/{parser-WAV5JRPT.js → parser-HSQGTY4G.js} +4 -4
- package/dist/{parser-YS7TOS2K.js → parser-HVKRINUS.js} +3 -3
- package/dist/{parser-W4PQUGX3.js → parser-J5MIEYO4.js} +5 -5
- package/dist/parser-KMZIXLDZ.js +13 -0
- package/dist/{parser-HYRTF3DO.js → parser-LJHXWSXU.js} +3 -3
- package/dist/{parser-KCR2WS3V.js → parser-PT3W72G5.js} +4 -4
- package/dist/{parser-CVMEDULU.js → parser-SBJQDPHL.js} +4 -4
- package/dist/{parser-RZPVAQVX.js → parser-SUWWWCMX.js} +4 -3
- package/dist/{parser-TXND652E.js → parser-SXDRNZOA.js} +4 -4
- package/dist/parser-UMILOW3M.js +14 -0
- package/dist/{parser-RV4M6AS2.js → parser-UP3AZ367.js} +4 -4
- package/dist/{parser-IJBMRXMC.js → parser-WHPRV3X5.js} +5 -5
- package/dist/{parser-MPCE5JBG.js → parser-WX3UODSJ.js} +4 -4
- package/dist/{parser-K3XXLMUW.js → parser-XCIEN3KN.js} +4 -4
- package/dist/{parser-AXKBDGNO.js → parser-XIRTUMVN.js} +5 -5
- package/dist/{parser-B5FVS7O6.js → parser-YKCGIG45.js} +3 -3
- package/dist/{parser-PSA4UBSP.js → parser-YKYMQG3B.js} +4 -4
- package/dist/{parser-MTOMTWTD.js → parser-ZGM2OJ6Y.js} +6 -5
- package/dist/{parser-CSFUN3CT.js → parser-ZL5QUFVH.js} +5 -4
- package/dist/pert.d.ts +2 -2
- package/dist/{renderer-PPIHO5FI.js → renderer-3F7OS2AX.js} +14 -13
- package/dist/{renderer-SBS3YWU5.js → renderer-4QB4K7Q3.js} +9 -9
- package/dist/{renderer-GHPZMFU2.js → renderer-5DAKMIU2.js} +3 -3
- package/dist/{renderer-R2WNIC2C.js → renderer-5H4SY7YY.js} +9 -9
- package/dist/{renderer-DAXMXIKD.js → renderer-5PIQPFOX.js} +5 -4
- package/dist/{renderer-45PSOL3E.js → renderer-6MU37QF5.js} +6 -6
- package/dist/renderer-AQVMWJ4M.js +27 -0
- package/dist/{renderer-A5VE5BCI.js → renderer-BDDW6K7N.js} +9 -9
- package/dist/{renderer-AUW2BE6G.js → renderer-BNB3VIDY.js} +10 -10
- package/dist/{renderer-4ITCHBT7.js → renderer-CQY6ATOS.js} +6 -6
- package/dist/{renderer-6OKF44KS.js → renderer-CVW75CXL.js} +15 -15
- package/dist/{renderer-7RH2SI3B.js → renderer-DT4XRFEP.js} +5 -4
- package/dist/{renderer-B5TBNZJE.js → renderer-ERHBSTQT.js} +9 -9
- package/dist/{renderer-HVCU2C3Z.js → renderer-HSHHVYWF.js} +5 -4
- package/dist/renderer-IDPVUFNB.js +28 -0
- package/dist/renderer-ILX6BGKR.js +21 -0
- package/dist/renderer-JP663HKG.js +22 -0
- package/dist/{renderer-KS7YZJE2.js → renderer-KNFTTOBL.js} +11 -11
- package/dist/{renderer-2AZ5HJFK.js → renderer-MVUZBESR.js} +5 -5
- package/dist/{renderer-QAOBLRXV.js → renderer-N4EBR2FV.js} +11 -11
- package/dist/{renderer-P5ROYQGU.js → renderer-NHO46CT2.js} +4 -4
- package/dist/{renderer-NGXZTRK6.js → renderer-NO2QJ5LZ.js} +10 -10
- package/dist/{renderer-FPE3J5VZ.js → renderer-OGFV5RXX.js} +12 -12
- package/dist/{renderer-ODUUOPVT.js → renderer-PDLESJMS.js} +15 -15
- package/dist/renderer-T4MTNINC.js +24 -0
- package/dist/renderer-TOUGFGTM.js +24 -0
- package/dist/{renderer-BSR2O2H6.js → renderer-U3KPD43Y.js} +14 -13
- package/dist/{renderer-JCCHNECZ.js → renderer-X334IJU2.js} +10 -10
- package/dist/{renderer-5DSEWF74.js → renderer-Y5OAMOCR.js} +9 -9
- package/dist/{renderer-5KVCNMOJ.js → renderer-YONAKAJU.js} +5 -3
- package/dist/{renderer-7SD6MSBS.js → renderer-YWMI6Y2U.js} +12 -12
- package/dist/{renderer-2QPMJ2DA.js → renderer-ZWIH4WDW.js} +10 -10
- package/dist/renderer-radial-7CGZMVMS.js +21 -0
- package/dist/{resolver-FHBCO3PL.js → resolver-EMTGNR3D.js} +4 -3
- package/dist/{state-parser-3REXRK3R.js → state-parser-BATWAID2.js} +4 -4
- package/dist/{state-renderer-XYLNRWXR.js → state-renderer-3FKZJ3LP.js} +10 -10
- package/dist/{themes-PdPR1-hC.d.ts → themes-32xj5ZTW.d.ts} +27 -0
- package/docs/ai-integration.md +15 -19
- package/docs/language-reference.md +106 -21
- package/gallery/fixtures/clock.dgmo +3 -3
- package/gallery/fixtures/countdown-tz.dgmo +5 -0
- package/package.json +1 -1
- package/dist/charts-d3-MUW3LTML.js +0 -26
- package/dist/dgmo-router-CE2G67FV.js +0 -84
- package/dist/dimensions-OTBKC5M6.js +0 -22
- package/dist/layout-6RDJHS6E.js +0 -9
- package/dist/layout-J36454XU.js +0 -14
- package/dist/layout-LD6XTLD6.js +0 -14
- package/dist/parser-4WQQQXCG.js +0 -13
- package/dist/parser-O4HIUN6G.js +0 -13
- package/dist/renderer-CYB4LK3G.js +0 -22
- package/dist/renderer-FF24KZCI.js +0 -24
- package/dist/renderer-FYSVXL7M.js +0 -28
- package/dist/renderer-HDCCZURL.js +0 -24
- package/dist/renderer-PSMMZCKH.js +0 -21
- package/dist/renderer-UYMQQCJK.js +0 -24
- package/dist/renderer-radial-F7X5F2VU.js +0 -21
|
@@ -7,13 +7,13 @@ import {
|
|
|
7
7
|
} from "./chunk-YYVTBZZC.js";
|
|
8
8
|
import {
|
|
9
9
|
renderIntegratedLegend
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-AUIM2NVH.js";
|
|
11
11
|
import {
|
|
12
12
|
createTooltip,
|
|
13
13
|
hideTooltip,
|
|
14
14
|
renderChartTitle,
|
|
15
15
|
showTooltip
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-QBZYACOG.js";
|
|
17
17
|
import {
|
|
18
18
|
FONT_FAMILY
|
|
19
19
|
} from "./chunk-6KFWC4CO.js";
|
|
@@ -28,20 +28,20 @@ import {
|
|
|
28
28
|
LEGEND_PILL_PAD,
|
|
29
29
|
measureLegendText,
|
|
30
30
|
truncateLegendText
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-QOOUC2J5.js";
|
|
32
32
|
import {
|
|
33
33
|
parseTimelineDate
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-R3YSD62R.js";
|
|
35
35
|
import {
|
|
36
36
|
getSeriesColors,
|
|
37
37
|
mix,
|
|
38
38
|
shapeFill,
|
|
39
39
|
themeBaseBg
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-WBM7ZNDI.js";
|
|
41
41
|
import {
|
|
42
42
|
resolveTagColor,
|
|
43
43
|
tagAttrKey
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-HHKO6SKY.js";
|
|
45
45
|
|
|
46
46
|
// src/timeline/renderer.ts
|
|
47
47
|
import * as d3Scale from "d3-scale";
|
|
@@ -55,7 +55,7 @@ function getEraColors(palette) {
|
|
|
55
55
|
palette.colors.purple
|
|
56
56
|
];
|
|
57
57
|
}
|
|
58
|
-
function renderEras(g, eras, scale, isVertical, innerWidth, innerHeight, onEnter, onLeave, hasScale = false, _tooltip = null, palette, reservedLabelY) {
|
|
58
|
+
function renderEras(g, eras, scale, isVertical, innerWidth, innerHeight, onEnter, onLeave, hasScale = false, _tooltip = null, palette, reservedLabelY, fillMode, outlineBg) {
|
|
59
59
|
const eraColors = palette ? getEraColors(palette) : ["#3b6ea5", "#5b9357", "#c9a227", "#cc7a33", "#7d5ba6"];
|
|
60
60
|
eras.forEach((era, i) => {
|
|
61
61
|
const startVal = parseTimelineDate(era.startDate);
|
|
@@ -69,10 +69,20 @@ function renderEras(g, eras, scale, isVertical, innerWidth, innerHeight, onEnter
|
|
|
69
69
|
let labelEl;
|
|
70
70
|
let displayLabel = era.label;
|
|
71
71
|
let truncated = false;
|
|
72
|
+
const outlineEra = fillMode === "outline" && outlineBg !== void 0;
|
|
73
|
+
const applyEraFill = (rect) => {
|
|
74
|
+
if (outlineEra) {
|
|
75
|
+
rect.attr("fill", outlineBg).attr("stroke", color).attr("stroke-width", 1);
|
|
76
|
+
} else {
|
|
77
|
+
rect.attr("fill", color).attr("opacity", 0.08);
|
|
78
|
+
}
|
|
79
|
+
};
|
|
72
80
|
if (isVertical) {
|
|
73
81
|
const y = Math.min(start, end);
|
|
74
82
|
const h = Math.abs(end - start);
|
|
75
|
-
|
|
83
|
+
applyEraFill(
|
|
84
|
+
eraG.append("rect").attr("x", 0).attr("y", y).attr("width", innerWidth).attr("height", h)
|
|
85
|
+
);
|
|
76
86
|
labelEl = eraG.append("text").attr("x", 6).attr("y", y + 18).attr("text-anchor", "start").attr("fill", color).attr("font-size", "13px").attr("font-weight", "600").attr("opacity", 0.8).text(displayLabel);
|
|
77
87
|
} else {
|
|
78
88
|
const x = Math.min(start, end);
|
|
@@ -80,7 +90,9 @@ function renderEras(g, eras, scale, isVertical, innerWidth, innerHeight, onEnter
|
|
|
80
90
|
const useReservedRow = reservedLabelY != null;
|
|
81
91
|
const rectTop = useReservedRow ? 0 : hasScale ? -48 : 0;
|
|
82
92
|
const labelY = useReservedRow ? reservedLabelY : hasScale ? -32 : 18;
|
|
83
|
-
|
|
93
|
+
applyEraFill(
|
|
94
|
+
eraG.append("rect").attr("x", x).attr("y", rectTop).attr("width", w).attr("height", innerHeight - rectTop)
|
|
95
|
+
);
|
|
84
96
|
if (useReservedRow) {
|
|
85
97
|
const maxW = Math.max(0, w - 8);
|
|
86
98
|
displayLabel = truncateLegendText(era.label, 13, maxW);
|
|
@@ -97,7 +109,7 @@ function renderEras(g, eras, scale, isVertical, innerWidth, innerHeight, onEnter
|
|
|
97
109
|
});
|
|
98
110
|
});
|
|
99
111
|
}
|
|
100
|
-
function renderMarkers(g, markers, scale, isVertical, innerWidth, innerHeight, onEnter, onLeave, _hasScale = false, _tooltip = null, palette, reservedLabelY) {
|
|
112
|
+
function renderMarkers(g, markers, scale, isVertical, innerWidth, innerHeight, onEnter, onLeave, _hasScale = false, _tooltip = null, palette, reservedLabelY, fillMode, outlineBg) {
|
|
101
113
|
const defaultColor = palette?.accent || "#3a9188";
|
|
102
114
|
const positions = markers.map((m) => {
|
|
103
115
|
const v = parseTimelineDate(m.date);
|
|
@@ -112,14 +124,24 @@ function renderMarkers(g, markers, scale, isVertical, innerWidth, innerHeight, o
|
|
|
112
124
|
const color = marker.color || defaultColor;
|
|
113
125
|
const lineOpacity = 0.5;
|
|
114
126
|
const diamondSize = 5;
|
|
127
|
+
const outlineDiamond = fillMode === "outline" && outlineBg !== void 0;
|
|
128
|
+
const applyDiamondFill = (path) => {
|
|
129
|
+
if (outlineDiamond) {
|
|
130
|
+
path.attr("fill", outlineBg).attr("stroke", color).attr("stroke-width", 1.25).attr("opacity", 0.9);
|
|
131
|
+
} else {
|
|
132
|
+
path.attr("fill", color).attr("opacity", 0.9);
|
|
133
|
+
}
|
|
134
|
+
};
|
|
115
135
|
const markerG = g.append("g").attr("class", "tl-marker").attr("data-marker-date", String(dateVal)).attr("data-line-number", String(marker.lineNumber)).style("cursor", "pointer");
|
|
116
136
|
if (isVertical) {
|
|
117
137
|
markerG.append("line").attr("x1", 0).attr("y1", pos).attr("x2", innerWidth).attr("y2", pos).attr("stroke", color).attr("stroke-width", 1.5).attr("stroke-dasharray", "6 4").attr("opacity", lineOpacity);
|
|
118
138
|
markerG.append("text").attr("x", -diamondSize - 8).attr("y", pos - diamondSize - 4).attr("text-anchor", "middle").attr("fill", color).attr("font-size", "11px").attr("font-weight", "600").text(marker.label);
|
|
119
|
-
|
|
120
|
-
"
|
|
121
|
-
|
|
122
|
-
|
|
139
|
+
applyDiamondFill(
|
|
140
|
+
markerG.append("path").attr(
|
|
141
|
+
"d",
|
|
142
|
+
`M${-diamondSize - 8},${pos} l${diamondSize},-${diamondSize} l${diamondSize},${diamondSize} l-${diamondSize},${diamondSize} Z`
|
|
143
|
+
)
|
|
144
|
+
);
|
|
123
145
|
markerG.on("mouseenter", function() {
|
|
124
146
|
onEnter(dateVal);
|
|
125
147
|
}).on("mouseleave", function() {
|
|
@@ -145,10 +167,12 @@ function renderMarkers(g, markers, scale, isVertical, innerWidth, innerHeight, o
|
|
|
145
167
|
truncated = displayLabel !== marker.label;
|
|
146
168
|
}
|
|
147
169
|
const labelEl = markerG.append("text").attr("x", pos).attr("y", labelY).attr("text-anchor", "middle").attr("fill", color).attr("font-size", "11px").attr("font-weight", "600").text(displayLabel);
|
|
148
|
-
|
|
149
|
-
"
|
|
150
|
-
|
|
151
|
-
|
|
170
|
+
applyDiamondFill(
|
|
171
|
+
markerG.append("path").attr(
|
|
172
|
+
"d",
|
|
173
|
+
`M${pos},${diamondY - diamondSize} l${diamondSize},${diamondSize} l-${diamondSize},${diamondSize} l-${diamondSize},-${diamondSize} Z`
|
|
174
|
+
)
|
|
175
|
+
);
|
|
152
176
|
markerG.append("line").attr("x1", pos).attr("y1", lineTop).attr("x2", pos).attr("y2", innerHeight).attr("stroke", color).attr("stroke-width", 1.5).attr("stroke-dasharray", "6 4").attr("opacity", lineOpacity);
|
|
153
177
|
markerG.on("mouseenter", function() {
|
|
154
178
|
onEnter(dateVal);
|
|
@@ -275,7 +299,7 @@ function renderTimelineGroupLegend(g, groups, groupColorMap, textColor, palette,
|
|
|
275
299
|
}
|
|
276
300
|
function setupTimeline(container, parsed, palette, isDark, exportDims, activeTagGroup, swimlaneTagGroup) {
|
|
277
301
|
d3Selection.select(container).selectAll(":not([data-d3-tooltip])").remove();
|
|
278
|
-
const
|
|
302
|
+
const fillMode = parsed.fillMode;
|
|
279
303
|
const {
|
|
280
304
|
timelineEvents,
|
|
281
305
|
timelineGroups,
|
|
@@ -400,7 +424,7 @@ function setupTimeline(container, parsed, palette, isDark, exportDims, activeTag
|
|
|
400
424
|
height,
|
|
401
425
|
isVertical,
|
|
402
426
|
tooltip,
|
|
403
|
-
|
|
427
|
+
fillMode,
|
|
404
428
|
textColor,
|
|
405
429
|
mutedColor,
|
|
406
430
|
bgColor,
|
|
@@ -530,7 +554,7 @@ function makeTimelineHoverHelpers() {
|
|
|
530
554
|
}
|
|
531
555
|
function renderTimelineTagLegendOverlay(container, parsed, palette, isDark, setup, hovers, onClickItem, exportDims, swimlaneTagGroup, activeTagGroup, onTagStateChange, viewMode, exportMode) {
|
|
532
556
|
if (parsed.timelineTagGroups.length === 0) return;
|
|
533
|
-
const { width, textColor, groupColorMap,
|
|
557
|
+
const { width, textColor, groupColorMap, fillMode } = setup;
|
|
534
558
|
const { FADE_OPACITY, fadeReset, fadeToTagValue } = hovers;
|
|
535
559
|
const title = parsed.noTitle ? null : parsed.title;
|
|
536
560
|
const { timelineEvents } = parsed;
|
|
@@ -683,8 +707,8 @@ function renderTimelineTagLegendOverlay(container, parsed, palette, isDark, setu
|
|
|
683
707
|
} else {
|
|
684
708
|
color = ev.group && groupColorMap.has(ev.group) ? groupColorMap.get(ev.group) : textColor;
|
|
685
709
|
}
|
|
686
|
-
el.selectAll("rect").attr("fill", shapeFill(palette, color, isDark, {
|
|
687
|
-
el.selectAll("circle:not(.tl-event-point-outline)").attr("fill", shapeFill(palette, color, isDark, {
|
|
710
|
+
el.selectAll("rect").attr("fill", shapeFill(palette, color, isDark, { mode: fillMode })).attr("stroke", color);
|
|
711
|
+
el.selectAll("circle:not(.tl-event-point-outline)").attr("fill", shapeFill(palette, color, isDark, { mode: fillMode })).attr("stroke", color);
|
|
688
712
|
});
|
|
689
713
|
};
|
|
690
714
|
var drawSwimlaneIcon = drawSwimlaneIcon2, relayout = relayout2, drawLegend = drawLegend2, recolorEvents = recolorEvents2;
|
|
@@ -717,7 +741,7 @@ function renderTimelineHorizontalTimeSort(container, parsed, palette, isDark, se
|
|
|
717
741
|
width,
|
|
718
742
|
height,
|
|
719
743
|
tooltip,
|
|
720
|
-
|
|
744
|
+
fillMode,
|
|
721
745
|
textColor,
|
|
722
746
|
bgColor,
|
|
723
747
|
bg,
|
|
@@ -795,7 +819,9 @@ function renderTimelineHorizontalTimeSort(container, parsed, palette, isDark, se
|
|
|
795
819
|
timelineScale,
|
|
796
820
|
tooltip,
|
|
797
821
|
palette,
|
|
798
|
-
eraReserve ? eraLabelY : void 0
|
|
822
|
+
eraReserve ? eraLabelY : void 0,
|
|
823
|
+
fillMode,
|
|
824
|
+
bg
|
|
799
825
|
);
|
|
800
826
|
renderMarkers(
|
|
801
827
|
g,
|
|
@@ -809,7 +835,9 @@ function renderTimelineHorizontalTimeSort(container, parsed, palette, isDark, se
|
|
|
809
835
|
timelineScale,
|
|
810
836
|
tooltip,
|
|
811
837
|
palette,
|
|
812
|
-
markerReserve ? markerLabelY : void 0
|
|
838
|
+
markerReserve ? markerLabelY : void 0,
|
|
839
|
+
fillMode,
|
|
840
|
+
bg
|
|
813
841
|
);
|
|
814
842
|
if (timelineScale) {
|
|
815
843
|
renderTimeScale(
|
|
@@ -880,7 +908,7 @@ function renderTimelineHorizontalTimeSort(container, parsed, palette, isDark, se
|
|
|
880
908
|
const rectW = Math.max(x2 - x, 4);
|
|
881
909
|
const estLabelWidth = ev.label.length * sCharW + ctx.aesthetic(16);
|
|
882
910
|
const labelFitsInside = rectW >= estLabelWidth;
|
|
883
|
-
let fill = shapeFill(palette, color, isDark, {
|
|
911
|
+
let fill = shapeFill(palette, color, isDark, { mode: fillMode });
|
|
884
912
|
let stroke = color;
|
|
885
913
|
if (ev.uncertain) {
|
|
886
914
|
const gradientId = `uncertain-ts-${ev.lineNumber}`;
|
|
@@ -891,7 +919,7 @@ function renderTimelineHorizontalTimeSort(container, parsed, palette, isDark, se
|
|
|
891
919
|
{ offset: "0%", opacity: 1 },
|
|
892
920
|
{ offset: "80%", opacity: 1 },
|
|
893
921
|
{ offset: "100%", opacity: 0 }
|
|
894
|
-
]).enter().append("stop").attr("offset", (d) => d.offset).attr("stop-color", mix(color, bg, 30)).attr("stop-opacity", (d) => d.opacity);
|
|
922
|
+
]).enter().append("stop").attr("offset", (d) => d.offset).attr("stop-color", fillMode === "outline" ? bg : mix(color, bg, 30)).attr("stop-opacity", (d) => d.opacity);
|
|
895
923
|
defsEl.append("linearGradient").attr("id", strokeGradientId).attr("x1", "0%").attr("y1", "0%").attr("x2", "100%").attr("y2", "0%").selectAll("stop").data([
|
|
896
924
|
{ offset: "0%", opacity: 1 },
|
|
897
925
|
{ offset: "80%", opacity: 1 },
|
|
@@ -916,7 +944,7 @@ function renderTimelineHorizontalTimeSort(container, parsed, palette, isDark, se
|
|
|
916
944
|
const wouldFlipLeft = x > innerWidth * 0.6;
|
|
917
945
|
const labelFitsLeft = x - sPointGap - estLabelWidth > 0;
|
|
918
946
|
const flipLeft = wouldFlipLeft && labelFitsLeft;
|
|
919
|
-
evG.append("circle").attr("cx", x).attr("cy", y).attr("r", sPointR).attr("fill", shapeFill(palette, color, isDark, {
|
|
947
|
+
evG.append("circle").attr("cx", x).attr("cy", y).attr("r", sPointR).attr("fill", shapeFill(palette, color, isDark, { mode: fillMode })).attr("stroke", color).attr("stroke-width", sPointStroke);
|
|
920
948
|
evG.append("text").attr("x", flipLeft ? x - sPointGap : x + sPointGap).attr("y", y).attr("dy", "0.35em").attr("text-anchor", flipLeft ? "end" : "start").attr("fill", textColor).attr("font-size", `${sEventFontSm}px`).text(ev.label);
|
|
921
949
|
}
|
|
922
950
|
});
|
|
@@ -926,7 +954,7 @@ function renderTimelineHorizontalGrouped(container, parsed, palette, isDark, set
|
|
|
926
954
|
width,
|
|
927
955
|
height,
|
|
928
956
|
tooltip,
|
|
929
|
-
|
|
957
|
+
fillMode,
|
|
930
958
|
textColor,
|
|
931
959
|
bgColor,
|
|
932
960
|
bg,
|
|
@@ -1037,7 +1065,9 @@ function renderTimelineHorizontalGrouped(container, parsed, palette, isDark, set
|
|
|
1037
1065
|
timelineScale,
|
|
1038
1066
|
tooltip,
|
|
1039
1067
|
palette,
|
|
1040
|
-
eraReserve ? eraLabelY : void 0
|
|
1068
|
+
eraReserve ? eraLabelY : void 0,
|
|
1069
|
+
fillMode,
|
|
1070
|
+
bg
|
|
1041
1071
|
);
|
|
1042
1072
|
renderMarkers(
|
|
1043
1073
|
g,
|
|
@@ -1051,7 +1081,9 @@ function renderTimelineHorizontalGrouped(container, parsed, palette, isDark, set
|
|
|
1051
1081
|
timelineScale,
|
|
1052
1082
|
tooltip,
|
|
1053
1083
|
palette,
|
|
1054
|
-
markerReserve ? markerLabelY : void 0
|
|
1084
|
+
markerReserve ? markerLabelY : void 0,
|
|
1085
|
+
fillMode,
|
|
1086
|
+
bg
|
|
1055
1087
|
);
|
|
1056
1088
|
if (timelineScale) {
|
|
1057
1089
|
renderTimeScale(
|
|
@@ -1080,7 +1112,7 @@ function renderTimelineHorizontalGrouped(container, parsed, palette, isDark, set
|
|
|
1080
1112
|
const sBandAccentW = ctx.structural(4);
|
|
1081
1113
|
const clipId = `tl-band-clip-${tlBandClipCounter++}`;
|
|
1082
1114
|
g.append("clipPath").attr("id", clipId).append("rect").attr("x", bandX).attr("y", bandY).attr("width", bandW).attr("height", bandH).attr("rx", sBandRx);
|
|
1083
|
-
g.append("rect").attr("class", "tl-group-header-bg").attr("data-group", lane.name).attr("x", bandX).attr("y", bandY).attr("width", bandW).attr("height", bandH).attr("rx", sBandRx).attr("fill", shapeFill(palette, laneColor, isDark, {
|
|
1115
|
+
g.append("rect").attr("class", "tl-group-header-bg").attr("data-group", lane.name).attr("x", bandX).attr("y", bandY).attr("width", bandW).attr("height", bandH).attr("rx", sBandRx).attr("fill", shapeFill(palette, laneColor, isDark, { mode: fillMode })).style("pointer-events", "none");
|
|
1084
1116
|
g.append("rect").attr("class", "tl-group-header-accent").attr("data-group", lane.name).attr("x", bandX).attr("y", bandY).attr("width", sBandAccentW).attr("height", bandH).attr("fill", laneColor).attr("clip-path", `url(#${clipId})`).style("pointer-events", "none");
|
|
1085
1117
|
const headerG = g.append("g").attr("class", "tl-group-header").attr("data-group", lane.name).style("cursor", "pointer").on("mouseenter", () => fadeToGroup(g, lane.name)).on("mouseleave", () => fadeReset(g)).on("click", () => toggleGroup(lane.name));
|
|
1086
1118
|
headerG.append("text").attr("x", -margin.left + ctx.aesthetic(10)).attr("y", curY + sBarH / 2).attr("dy", "0.35em").attr("text-anchor", "start").attr("fill", textColor).attr("font-size", `${sLaneHeaderFont}px`).attr("font-weight", "600").text(`${toggleIcon} ${lane.name}`);
|
|
@@ -1093,7 +1125,7 @@ function renderTimelineHorizontalGrouped(container, parsed, palette, isDark, set
|
|
|
1093
1125
|
const sx2 = xScale(laneMaxD);
|
|
1094
1126
|
const groupBarW = Math.max(sx2 - sx1, ctx.structural(20));
|
|
1095
1127
|
const groupBarG = g.append("g").attr("class", isCollapsed ? "tl-group-summary" : "tl-group-bar").attr("data-group", lane.name).style("cursor", "pointer").on("mouseenter", () => fadeToGroup(g, lane.name)).on("mouseleave", () => fadeReset(g)).on("click", () => toggleGroup(lane.name));
|
|
1096
|
-
groupBarG.append("rect").attr("x", sx1).attr("y", curY).attr("width", groupBarW).attr("height", sBarH).attr("rx", sBarRx).attr("fill", shapeFill(palette, laneColor, isDark, {
|
|
1128
|
+
groupBarG.append("rect").attr("x", sx1).attr("y", curY).attr("width", groupBarW).attr("height", sBarH).attr("rx", sBarRx).attr("fill", shapeFill(palette, laneColor, isDark, { mode: fillMode })).attr("stroke", laneColor).attr("stroke-width", sBarStroke);
|
|
1097
1129
|
}
|
|
1098
1130
|
if (isCollapsed) {
|
|
1099
1131
|
curY += rowH + sGroupGap;
|
|
@@ -1143,7 +1175,9 @@ function renderTimelineHorizontalGrouped(container, parsed, palette, isDark, set
|
|
|
1143
1175
|
if (ev.endDate) {
|
|
1144
1176
|
const x2 = xScale(parseTimelineDate(ev.endDate));
|
|
1145
1177
|
const rectW = Math.max(x2 - x, 4);
|
|
1146
|
-
let fill = shapeFill(palette, evColor, isDark, {
|
|
1178
|
+
let fill = shapeFill(palette, evColor, isDark, {
|
|
1179
|
+
mode: fillMode
|
|
1180
|
+
});
|
|
1147
1181
|
let stroke = evColor;
|
|
1148
1182
|
if (ev.uncertain) {
|
|
1149
1183
|
const gradientId = `uncertain-${ev.lineNumber}`;
|
|
@@ -1154,7 +1188,10 @@ function renderTimelineHorizontalGrouped(container, parsed, palette, isDark, set
|
|
|
1154
1188
|
{ offset: "0%", opacity: 1 },
|
|
1155
1189
|
{ offset: "80%", opacity: 1 },
|
|
1156
1190
|
{ offset: "100%", opacity: 0 }
|
|
1157
|
-
]).enter().append("stop").attr("offset", (d) => d.offset).attr(
|
|
1191
|
+
]).enter().append("stop").attr("offset", (d) => d.offset).attr(
|
|
1192
|
+
"stop-color",
|
|
1193
|
+
fillMode === "outline" ? bg : mix(evColor, bg, 30)
|
|
1194
|
+
).attr("stop-opacity", (d) => d.opacity);
|
|
1158
1195
|
defsEl.append("linearGradient").attr("id", strokeGradientId).attr("x1", "0%").attr("y1", "0%").attr("x2", "100%").attr("y2", "0%").selectAll("stop").data([
|
|
1159
1196
|
{ offset: "0%", opacity: 1 },
|
|
1160
1197
|
{ offset: "80%", opacity: 1 },
|
|
@@ -1165,7 +1202,7 @@ function renderTimelineHorizontalGrouped(container, parsed, palette, isDark, set
|
|
|
1165
1202
|
}
|
|
1166
1203
|
evG.append("rect").attr("x", x).attr("y", y - sBarH / 2).attr("width", rectW).attr("height", sBarH).attr("rx", sBarRx).attr("fill", fill).attr("stroke", stroke).attr("stroke-width", sBarStroke);
|
|
1167
1204
|
} else {
|
|
1168
|
-
evG.append("circle").attr("cx", x).attr("cy", y).attr("r", sPointR).attr("fill", shapeFill(palette, evColor, isDark, {
|
|
1205
|
+
evG.append("circle").attr("cx", x).attr("cy", y).attr("r", sPointR).attr("fill", shapeFill(palette, evColor, isDark, { mode: fillMode })).attr("stroke", evColor).attr("stroke-width", sPointStroke);
|
|
1169
1206
|
}
|
|
1170
1207
|
});
|
|
1171
1208
|
curY += (lane.events.length + 1) * rowH + sGroupGap;
|
|
@@ -1176,7 +1213,7 @@ function renderTimelineVertical(container, parsed, palette, isDark, setup, hover
|
|
|
1176
1213
|
width,
|
|
1177
1214
|
height,
|
|
1178
1215
|
tooltip,
|
|
1179
|
-
|
|
1216
|
+
fillMode,
|
|
1180
1217
|
textColor,
|
|
1181
1218
|
mutedColor,
|
|
1182
1219
|
bgColor,
|
|
@@ -1269,7 +1306,10 @@ function renderTimelineVertical(container, parsed, palette, isDark, setup, hover
|
|
|
1269
1306
|
() => fadeReset(g),
|
|
1270
1307
|
timelineScale,
|
|
1271
1308
|
tooltip,
|
|
1272
|
-
palette
|
|
1309
|
+
palette,
|
|
1310
|
+
void 0,
|
|
1311
|
+
fillMode,
|
|
1312
|
+
bg
|
|
1273
1313
|
);
|
|
1274
1314
|
renderMarkers(
|
|
1275
1315
|
g,
|
|
@@ -1282,7 +1322,10 @@ function renderTimelineVertical(container, parsed, palette, isDark, setup, hover
|
|
|
1282
1322
|
() => fadeReset(g),
|
|
1283
1323
|
timelineScale,
|
|
1284
1324
|
tooltip,
|
|
1285
|
-
palette
|
|
1325
|
+
palette,
|
|
1326
|
+
void 0,
|
|
1327
|
+
fillMode,
|
|
1328
|
+
bg
|
|
1286
1329
|
);
|
|
1287
1330
|
if (timelineScale) {
|
|
1288
1331
|
renderTimeScale(
|
|
@@ -1334,7 +1377,9 @@ function renderTimelineVertical(container, parsed, palette, isDark, setup, hover
|
|
|
1334
1377
|
if (ev.endDate) {
|
|
1335
1378
|
const y2 = yScale(parseTimelineDate(ev.endDate));
|
|
1336
1379
|
const rectH = Math.max(y2 - y, 4);
|
|
1337
|
-
let fill = shapeFill(palette, evColor, isDark, {
|
|
1380
|
+
let fill = shapeFill(palette, evColor, isDark, {
|
|
1381
|
+
mode: fillMode
|
|
1382
|
+
});
|
|
1338
1383
|
let stroke = evColor;
|
|
1339
1384
|
if (ev.uncertain) {
|
|
1340
1385
|
const gradientId = `uncertain-vg-${ev.lineNumber}`;
|
|
@@ -1345,7 +1390,10 @@ function renderTimelineVertical(container, parsed, palette, isDark, setup, hover
|
|
|
1345
1390
|
{ offset: "0%", opacity: 1 },
|
|
1346
1391
|
{ offset: "80%", opacity: 1 },
|
|
1347
1392
|
{ offset: "100%", opacity: 0 }
|
|
1348
|
-
]).enter().append("stop").attr("offset", (d) => d.offset).attr(
|
|
1393
|
+
]).enter().append("stop").attr("offset", (d) => d.offset).attr(
|
|
1394
|
+
"stop-color",
|
|
1395
|
+
fillMode === "outline" ? bg : mix(laneColor, bg, 30)
|
|
1396
|
+
).attr("stop-opacity", (d) => d.opacity);
|
|
1349
1397
|
defsEl.append("linearGradient").attr("id", strokeGradientId).attr("x1", "0%").attr("y1", "0%").attr("x2", "0%").attr("y2", "100%").selectAll("stop").data([
|
|
1350
1398
|
{ offset: "0%", opacity: 1 },
|
|
1351
1399
|
{ offset: "80%", opacity: 1 },
|
|
@@ -1357,7 +1405,10 @@ function renderTimelineVertical(container, parsed, palette, isDark, setup, hover
|
|
|
1357
1405
|
evG.append("rect").attr("x", laneCenter - sBarW / 2).attr("y", y).attr("width", sBarW).attr("height", rectH).attr("rx", sBarRx).attr("fill", fill).attr("stroke", stroke).attr("stroke-width", sBarStroke);
|
|
1358
1406
|
evG.append("text").attr("x", laneCenter + sBarW + ctx.aesthetic(2)).attr("y", y + rectH / 2).attr("dy", "0.35em").attr("fill", textColor).attr("font-size", `${sEventFont}px`).text(ev.label);
|
|
1359
1407
|
} else {
|
|
1360
|
-
evG.append("circle").attr("cx", laneCenter).attr("cy", y).attr("r", sPointR).attr(
|
|
1408
|
+
evG.append("circle").attr("cx", laneCenter).attr("cy", y).attr("r", sPointR).attr(
|
|
1409
|
+
"fill",
|
|
1410
|
+
shapeFill(palette, evColor, isDark, { mode: fillMode })
|
|
1411
|
+
).attr("stroke", evColor).attr("stroke-width", sPointStroke);
|
|
1361
1412
|
evG.append("text").attr("x", laneCenter + ctx.aesthetic(10)).attr("y", y).attr("dy", "0.35em").attr("fill", textColor).attr("font-size", `${sEventFont}px`).text(ev.label);
|
|
1362
1413
|
}
|
|
1363
1414
|
}
|
|
@@ -1397,7 +1448,10 @@ function renderTimelineVertical(container, parsed, palette, isDark, setup, hover
|
|
|
1397
1448
|
() => fadeReset(g),
|
|
1398
1449
|
timelineScale,
|
|
1399
1450
|
tooltip,
|
|
1400
|
-
palette
|
|
1451
|
+
palette,
|
|
1452
|
+
void 0,
|
|
1453
|
+
fillMode,
|
|
1454
|
+
bg
|
|
1401
1455
|
);
|
|
1402
1456
|
renderMarkers(
|
|
1403
1457
|
g,
|
|
@@ -1410,7 +1464,10 @@ function renderTimelineVertical(container, parsed, palette, isDark, setup, hover
|
|
|
1410
1464
|
() => fadeReset(g),
|
|
1411
1465
|
timelineScale,
|
|
1412
1466
|
tooltip,
|
|
1413
|
-
palette
|
|
1467
|
+
palette,
|
|
1468
|
+
void 0,
|
|
1469
|
+
fillMode,
|
|
1470
|
+
bg
|
|
1414
1471
|
);
|
|
1415
1472
|
if (timelineScale) {
|
|
1416
1473
|
renderTimeScale(
|
|
@@ -1461,7 +1518,9 @@ function renderTimelineVertical(container, parsed, palette, isDark, setup, hover
|
|
|
1461
1518
|
if (ev.endDate) {
|
|
1462
1519
|
const y2 = yScale(parseTimelineDate(ev.endDate));
|
|
1463
1520
|
const rectH = Math.max(y2 - y, 4);
|
|
1464
|
-
let fill = shapeFill(palette, color, isDark, {
|
|
1521
|
+
let fill = shapeFill(palette, color, isDark, {
|
|
1522
|
+
mode: fillMode
|
|
1523
|
+
});
|
|
1465
1524
|
let stroke = color;
|
|
1466
1525
|
if (ev.uncertain) {
|
|
1467
1526
|
const gradientId = `uncertain-v-${ev.lineNumber}`;
|
|
@@ -1472,7 +1531,10 @@ function renderTimelineVertical(container, parsed, palette, isDark, setup, hover
|
|
|
1472
1531
|
{ offset: "0%", opacity: 1 },
|
|
1473
1532
|
{ offset: "80%", opacity: 1 },
|
|
1474
1533
|
{ offset: "100%", opacity: 0 }
|
|
1475
|
-
]).enter().append("stop").attr("offset", (d) => d.offset).attr(
|
|
1534
|
+
]).enter().append("stop").attr("offset", (d) => d.offset).attr(
|
|
1535
|
+
"stop-color",
|
|
1536
|
+
fillMode === "outline" ? bg : mix(color, bg, 30)
|
|
1537
|
+
).attr("stop-opacity", (d) => d.opacity);
|
|
1476
1538
|
defsEl.append("linearGradient").attr("id", strokeGradientId).attr("x1", "0%").attr("y1", "0%").attr("x2", "0%").attr("y2", "100%").selectAll("stop").data([
|
|
1477
1539
|
{ offset: "0%", opacity: 1 },
|
|
1478
1540
|
{ offset: "80%", opacity: 1 },
|
|
@@ -1484,7 +1546,7 @@ function renderTimelineVertical(container, parsed, palette, isDark, setup, hover
|
|
|
1484
1546
|
evG.append("rect").attr("x", axisX - sBarW / 2).attr("y", y).attr("width", sBarW).attr("height", rectH).attr("rx", sBarRx).attr("fill", fill).attr("stroke", stroke).attr("stroke-width", sBarStroke);
|
|
1485
1547
|
evG.append("text").attr("x", axisX + sBarW + ctx.aesthetic(4)).attr("y", y + rectH / 2).attr("dy", "0.35em").attr("fill", textColor).attr("font-size", `${sEventFontSm}px`).text(ev.label);
|
|
1486
1548
|
} else {
|
|
1487
|
-
evG.append("circle").attr("cx", axisX).attr("cy", y).attr("r", sPointR).attr("fill", shapeFill(palette, color, isDark, {
|
|
1549
|
+
evG.append("circle").attr("cx", axisX).attr("cy", y).attr("r", sPointR).attr("fill", shapeFill(palette, color, isDark, { mode: fillMode })).attr("stroke", color).attr("stroke-width", sPointStroke);
|
|
1488
1550
|
evG.append("text").attr("x", axisX + sBarW + ctx.aesthetic(4)).attr("y", y).attr("dy", "0.35em").attr("fill", textColor).attr("font-size", `${sEventFontSm}px`).text(ev.label);
|
|
1489
1551
|
}
|
|
1490
1552
|
evG.append("text").attr("x", axisX - ctx.aesthetic(14)).attr(
|
|
@@ -1607,4 +1669,4 @@ export {
|
|
|
1607
1669
|
formatDateLabel,
|
|
1608
1670
|
renderTimeline
|
|
1609
1671
|
};
|
|
1610
|
-
//# sourceMappingURL=chunk-
|
|
1672
|
+
//# sourceMappingURL=chunk-7KINELPI.js.map
|
|
@@ -90,7 +90,6 @@ export {
|
|
|
90
90
|
CONFIDENCE_TABLE,
|
|
91
91
|
resolveConfidence,
|
|
92
92
|
unitToDays,
|
|
93
|
-
parseLocalISODate,
|
|
94
93
|
formatLocalISODate,
|
|
95
94
|
addCalendarDays,
|
|
96
95
|
formatDuration,
|
|
@@ -98,4 +97,4 @@ export {
|
|
|
98
97
|
formatSprintCell,
|
|
99
98
|
formatSlackValue
|
|
100
99
|
};
|
|
101
|
-
//# sourceMappingURL=chunk-
|
|
100
|
+
//# sourceMappingURL=chunk-7L4UJOY6.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
renderCollapseBar,
|
|
7
7
|
renderNodeCard
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-OTOHI4JO.js";
|
|
9
9
|
import {
|
|
10
10
|
CARD_RADIUS,
|
|
11
11
|
COLLAPSE_BAR_HEIGHT,
|
|
@@ -25,16 +25,16 @@ import {
|
|
|
25
25
|
} from "./chunk-3CIOJ5YJ.js";
|
|
26
26
|
import {
|
|
27
27
|
layoutOrg
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-QZX5S6R3.js";
|
|
29
29
|
import {
|
|
30
30
|
ScaleContext
|
|
31
31
|
} from "./chunk-YYVTBZZC.js";
|
|
32
32
|
import {
|
|
33
33
|
renderIntegratedLegend
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-AUIM2NVH.js";
|
|
35
35
|
import {
|
|
36
36
|
getMaxLegendReservedHeight
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-YAA6IID3.js";
|
|
38
38
|
import {
|
|
39
39
|
TITLE_FONT_SIZE,
|
|
40
40
|
TITLE_FONT_WEIGHT
|
|
@@ -49,23 +49,26 @@ import {
|
|
|
49
49
|
LEGEND_EYE_SIZE,
|
|
50
50
|
LEGEND_GROUP_GAP,
|
|
51
51
|
LEGEND_HEIGHT
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-QOOUC2J5.js";
|
|
53
53
|
import {
|
|
54
54
|
measureText
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-WCT3NYCV.js";
|
|
56
56
|
import {
|
|
57
57
|
parseOrg
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-NNS4E7CW.js";
|
|
59
59
|
import {
|
|
60
60
|
contrastText,
|
|
61
61
|
mix,
|
|
62
62
|
shapeFill,
|
|
63
63
|
themeBaseBg
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-WBM7ZNDI.js";
|
|
65
65
|
import {
|
|
66
66
|
resolveTagColor,
|
|
67
67
|
tagAttrKey
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-HHKO6SKY.js";
|
|
69
|
+
import {
|
|
70
|
+
fillModeFromOptions
|
|
71
|
+
} from "./chunk-BRENJ2BQ.js";
|
|
69
72
|
|
|
70
73
|
// src/org/renderer.ts
|
|
71
74
|
import * as d3Selection from "d3-selection";
|
|
@@ -77,11 +80,9 @@ var ANCESTOR_LABEL_FONT_SIZE = 11;
|
|
|
77
80
|
var ANCESTOR_ROW_HEIGHT = 22;
|
|
78
81
|
var ANCESTOR_TRAIL_BOTTOM_GAP = 16;
|
|
79
82
|
var LEGEND_FIXED_GAP = 8;
|
|
80
|
-
function nodeFill(palette, isDark, nodeColor,
|
|
83
|
+
function nodeFill(palette, isDark, nodeColor, fillMode) {
|
|
81
84
|
const color = nodeColor ?? palette.primary;
|
|
82
|
-
return shapeFill(palette, color, isDark, {
|
|
83
|
-
...solid !== void 0 && { solid }
|
|
84
|
-
});
|
|
85
|
+
return shapeFill(palette, color, isDark, { mode: fillMode });
|
|
85
86
|
}
|
|
86
87
|
function nodeStroke(palette, nodeColor) {
|
|
87
88
|
return nodeColor ?? palette.primary;
|
|
@@ -285,12 +286,12 @@ function renderOrg(container, parsed, layout, palette, isDark, onClickItem, expo
|
|
|
285
286
|
onClickItem(node.lineNumber);
|
|
286
287
|
});
|
|
287
288
|
}
|
|
288
|
-
const
|
|
289
|
+
const fillMode = fillModeFromOptions(parsed.options);
|
|
289
290
|
const fill = nodeFill(
|
|
290
291
|
palette,
|
|
291
292
|
isDark,
|
|
292
293
|
colorOff ? void 0 : node.color,
|
|
293
|
-
|
|
294
|
+
fillMode
|
|
294
295
|
);
|
|
295
296
|
const stroke = nodeStroke(palette, colorOff ? void 0 : node.color);
|
|
296
297
|
const labelColor = contrastText(
|
|
@@ -319,7 +320,7 @@ function renderOrg(container, parsed, layout, palette, isDark, onClickItem, expo
|
|
|
319
320
|
fontSize: sMetaFontSize,
|
|
320
321
|
lineHeight: sMetaLineHeight,
|
|
321
322
|
separatorGap: sSeparatorGap,
|
|
322
|
-
separatorColor: solid ? labelColor : stroke,
|
|
323
|
+
separatorColor: fillMode === "solid" ? labelColor : stroke,
|
|
323
324
|
textColor: labelColor
|
|
324
325
|
}
|
|
325
326
|
}
|
|
@@ -331,7 +332,7 @@ function renderOrg(container, parsed, layout, palette, isDark, onClickItem, expo
|
|
|
331
332
|
barHeight: sCollapseBarHeight,
|
|
332
333
|
inset: sCollapseBarInset,
|
|
333
334
|
rx: sCardRadius,
|
|
334
|
-
fill: solid ? labelColor : nodeStroke(palette, colorOff ? void 0 : node.color),
|
|
335
|
+
fill: fillMode === "solid" ? labelColor : nodeStroke(palette, colorOff ? void 0 : node.color),
|
|
335
336
|
clipId: `clip-${node.id}`,
|
|
336
337
|
className: "org-collapse-bar"
|
|
337
338
|
});
|
|
@@ -484,4 +485,4 @@ export {
|
|
|
484
485
|
renderOrg,
|
|
485
486
|
renderOrgForExport
|
|
486
487
|
};
|
|
487
|
-
//# sourceMappingURL=chunk-
|
|
488
|
+
//# sourceMappingURL=chunk-7QE3XMRK.js.map
|