@diagrammo/dgmo 0.89.0 → 0.90.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 +1 -1
- package/dist/advanced.d.ts +435 -15
- package/dist/advanced.js +356 -197
- package/dist/block.d.ts +1 -1
- package/dist/block.js +86 -63
- package/dist/{calculator-35YVW4QO.js → calculator-PX3JHKAS.js} +2 -2
- package/dist/{chart-meta-Bev5Ebjr.d.ts → chart-meta-B_WTMP0y.d.ts} +1 -1
- package/dist/chart-meta.d.ts +2 -2
- package/dist/chart-meta.js +17 -16
- package/dist/{chart-types-Bf8C5QQW.d.ts → chart-types-V2NcgN5O.d.ts} +4 -0
- package/dist/{charts-d3-KEQSUWKP.js → charts-d3-QW4ERNUE.js} +8 -7
- package/dist/{chunk-ECMA6XE2.js → chunk-2EDJPHXQ.js} +9 -9
- package/dist/{chunk-7WGCQE2E.js → chunk-2ZVLI6GQ.js} +1 -1
- package/dist/{chunk-UWKRPQZO.js → chunk-3BQCSQQJ.js} +16 -13
- package/dist/{chunk-7C2RAGPT.js → chunk-3HBR3YAN.js} +12 -12
- package/dist/chunk-3UR4F7FE.js +14 -0
- package/dist/{chunk-NIUO2TNR.js → chunk-4HG4PYHM.js} +197 -203
- package/dist/{chunk-NSR2CGV6.js → chunk-4IYJOXGS.js} +10 -10
- package/dist/{chunk-BOO24UMJ.js → chunk-4YO7VJTP.js} +1 -1
- package/dist/{chunk-YMFQLWZ2.js → chunk-54YUDXGP.js} +1 -1
- package/dist/{chunk-UG2XG57E.js → chunk-5M52RPAS.js} +2 -2
- package/dist/{chunk-QIOYTQDZ.js → chunk-5M6PMV5Z.js} +9 -9
- package/dist/{chunk-S2WE7TVK.js → chunk-5MDQMB6A.js} +1 -1
- package/dist/{chunk-WPL5PFXE.js → chunk-5TZPIKNV.js} +5 -5
- package/dist/{chunk-LFKSHDVI.js → chunk-62VWZ3SE.js} +5 -4
- package/dist/{chunk-PMNITNPR.js → chunk-64KSPLU2.js} +2 -1
- package/dist/{chunk-VEPIAUSK.js → chunk-6BQSDF77.js} +1 -5
- package/dist/{chunk-HUNDJTTH.js → chunk-A5EE66RQ.js} +1 -1
- package/dist/{chunk-JVZ7KFAX.js → chunk-AAC3XQWV.js} +2 -2
- package/dist/{chunk-7KPHRTND.js → chunk-AHWA36O7.js} +1 -1
- package/dist/{chunk-FKZ2Y3Q5.js → chunk-C4W62JZO.js} +2 -2
- package/dist/{chunk-C4FRGZGX.js → chunk-CDT33RHG.js} +1 -1
- package/dist/{chunk-B3S76BZO.js → chunk-COPSI54O.js} +3 -3
- package/dist/{chunk-GUTZCRBT.js → chunk-CUY56BK4.js} +2 -2
- package/dist/{chunk-HSRQDWV7.js → chunk-CYF2X3CG.js} +2 -11
- package/dist/{chunk-NGC3IZRY.js → chunk-DNMICILX.js} +2 -2
- package/dist/{chunk-N4BBSDWI.js → chunk-DXPT2HPH.js} +140 -151
- package/dist/{chunk-TAP2NZEU.js → chunk-EB7AEM2H.js} +13 -13
- package/dist/{chunk-3AQJNY65.js → chunk-EEYQFJVK.js} +149 -43
- package/dist/{chunk-SLQT3JP3.js → chunk-EK7JYFCL.js} +1 -1
- package/dist/{chunk-3C2FWS2J.js → chunk-EWERNTOX.js} +1 -1
- package/dist/{chunk-4AJKOUBO.js → chunk-FDRHBQUG.js} +17 -15
- package/dist/{chunk-FJNXXGTR.js → chunk-FS2LZBHG.js} +2 -2
- package/dist/{chunk-LPYYZCSI.js → chunk-G5BGW4BX.js} +1 -1
- package/dist/{chunk-IQ6P3HDE.js → chunk-GQVXYRPC.js} +2 -2
- package/dist/{chunk-MHAYUS65.js → chunk-GXP344YZ.js} +3 -3
- package/dist/{chunk-HAMF4F3P.js → chunk-GYBKG4Z6.js} +5 -5
- package/dist/{chunk-Q6SQISHT.js → chunk-HIVJBESO.js} +306 -68
- package/dist/{chunk-ID2K3IHI.js → chunk-HLE5QGZJ.js} +1 -1
- package/dist/{chunk-L5AFONQU.js → chunk-HX2KJEPD.js} +1 -1
- package/dist/{chunk-SOPM5PLO.js → chunk-I6FWHICD.js} +13 -13
- package/dist/{chunk-3RYBTEF5.js → chunk-I74AQRVD.js} +6 -12
- package/dist/{chunk-NRPELUB6.js → chunk-ICYPGWOV.js} +2 -2
- package/dist/chunk-IHK3Y2HG.js +781 -0
- package/dist/{chunk-RXIKESRI.js → chunk-IMHNZITR.js} +2 -2
- package/dist/{chunk-DPSMX4EY.js → chunk-IRVQT4GR.js} +3 -3
- package/dist/{chunk-AZ24RI5L.js → chunk-J3ODKAWN.js} +2 -2
- package/dist/{chunk-BB6QKWHZ.js → chunk-JRQ4LBQI.js} +10 -10
- package/dist/{chunk-MY6GUH26.js → chunk-JX4RCC6B.js} +2 -2
- package/dist/{chunk-XUCQVKLQ.js → chunk-K4GUO7FV.js} +4 -4
- package/dist/{chunk-J64NZ6NF.js → chunk-KSZHIAI2.js} +1 -1
- package/dist/{chunk-CUYHST3B.js → chunk-LBRHDWEA.js} +1 -1
- package/dist/{chunk-GSYZZFI5.js → chunk-LC5LY5V2.js} +2 -2
- package/dist/{chunk-WP22MHH6.js → chunk-LNQDICFJ.js} +9 -9
- package/dist/{chunk-PIXJL77H.js → chunk-M6J25PAZ.js} +1 -1
- package/dist/{chunk-UQLHKLF4.js → chunk-MIVSVEK4.js} +8 -8
- package/dist/{chunk-6K7RODXG.js → chunk-MKFQ5E7J.js} +1 -1
- package/dist/{chunk-44GP7PD5.js → chunk-MPJQMMBZ.js} +12 -0
- package/dist/{chunk-WQ6G6FFM.js → chunk-NFWRIC2V.js} +1 -1
- package/dist/{chunk-7SX4IY6T.js → chunk-NJYA4QSN.js} +1 -1
- package/dist/{chunk-RU725VCJ.js → chunk-NMKLX57Y.js} +10 -35
- package/dist/{chunk-RPKBWJBB.js → chunk-NP2SE6MQ.js} +1 -1
- package/dist/{chunk-ITSBBQTH.js → chunk-NUYWNKHH.js} +2 -2
- package/dist/{chunk-DV2VEJCC.js → chunk-NWSPPGIE.js} +6 -6
- package/dist/{chunk-AYOVY75O.js → chunk-NY56FM55.js} +3 -3
- package/dist/{chunk-MFW6P7WH.js → chunk-OSIUWQ3N.js} +3 -3
- package/dist/{chunk-2GM7N5TV.js → chunk-OWJVSJLA.js} +9 -9
- package/dist/{chunk-GDJW64XE.js → chunk-OYKNMFUY.js} +1 -1
- package/dist/{chunk-4R6OMKXB.js → chunk-PIHAUVA4.js} +5 -5
- package/dist/{chunk-C7QRRTAW.js → chunk-PNCKZFPE.js} +2 -2
- package/dist/{chunk-DDPGEGHB.js → chunk-POBNN5DP.js} +2 -2
- package/dist/{chunk-XJ2TBXHA.js → chunk-PQ5NW3QZ.js} +8 -8
- package/dist/{chunk-FKLE6QA3.js → chunk-PXEUQ7EG.js} +12 -12
- package/dist/{chunk-WEF6MXFG.js → chunk-QOZ4RVQY.js} +8 -8
- package/dist/{chunk-LR6RRDWN.js → chunk-QRIW46LR.js} +5 -5
- package/dist/{chunk-7W4XLIVH.js → chunk-R2PTZ6QM.js} +10 -10
- package/dist/{chunk-M2BCY7H3.js → chunk-RCBHL2B5.js} +189 -136
- package/dist/{chunk-66YFDTT6.js → chunk-RJYFHEP4.js} +3 -3
- package/dist/{chunk-P3SKSKJI.js → chunk-RNXX2GOQ.js} +2 -2
- package/dist/{chunk-RGWYZR3S.js → chunk-RRBV4HIM.js} +2 -2
- package/dist/{chunk-44FTCIRI.js → chunk-RY5RRKYN.js} +8 -8
- package/dist/{chunk-Y7PSAHAY.js → chunk-S4LLHDGK.js} +3 -3
- package/dist/chunk-S7C32S2T.js +825 -0
- package/dist/{chunk-JRUEIRJB.js → chunk-SLO22FPS.js} +2 -2
- package/dist/{chunk-47E5UTXE.js → chunk-SMEVBJJJ.js} +2 -2
- package/dist/{chunk-QFHWYWQL.js → chunk-SVQDLYX7.js} +1 -1
- package/dist/{chunk-WP2RLGDI.js → chunk-TCX5PMEY.js} +1 -1
- package/dist/{chunk-EXKCRXPO.js → chunk-TQ644YGV.js} +12 -12
- package/dist/{chunk-WRCAH3UO.js → chunk-U762HK4D.js} +15 -15
- package/dist/{chunk-LYLNMN77.js → chunk-VCHYS3RD.js} +8 -3
- package/dist/{chunk-7UDAIP6W.js → chunk-WHRIN7N3.js} +1 -1
- package/dist/{chunk-ZUCXFXLD.js → chunk-X3WYJ5T7.js} +2 -2
- package/dist/{chunk-UKJLPA7R.js → chunk-X6IZP2BD.js} +1 -1
- package/dist/{chunk-LCJURK7L.js → chunk-Y6GQQ4Y2.js} +1 -1
- package/dist/{chunk-HTWH2XQL.js → chunk-YE7D2S75.js} +2 -2
- package/dist/{chunk-DZPHN2WN.js → chunk-YKGUSW6D.js} +10 -10
- package/dist/{chunk-K5XT7NHD.js → chunk-YWRZG6GN.js} +10 -10
- package/dist/{chunk-JQ57AWDL.js → chunk-ZJ4PYTCK.js} +1 -1
- package/dist/completion-registry.d.ts +6 -0
- package/dist/completion-registry.js +62 -6
- package/dist/{d3-B6524aaP.d.ts → d3-2S3PrXik.d.ts} +11 -0
- package/dist/dgmo-router-BJBXSZMV.js +94 -0
- package/dist/{dimensions-7MF7VSGS.js → dimensions-AMA2S7RO.js} +5 -5
- package/dist/editor.js +12 -0
- package/dist/{flowchart-parser-GG7XBLQH.js → flowchart-parser-ADZIFVCH.js} +3 -3
- package/dist/{flowchart-renderer-DZQZRL2F.js → flowchart-renderer-CAG6ZNJ6.js} +5 -5
- package/dist/highlight.js +12 -0
- package/dist/index.d.ts +26 -5
- package/dist/index.js +83 -56
- package/dist/{layout-EFEZ533S.js → layout-6OSF2UGP.js} +3 -3
- package/dist/{layout-IGAVGDME.js → layout-C6MKMOBI.js} +1 -1
- package/dist/{layout-XUW444O5.js → layout-QS2SESBU.js} +2 -2
- package/dist/{layout-PP36LUTA.js → layout-T2PGKQUQ.js} +3 -3
- package/dist/{layout-Q3RYSODA.js → layout-UFB2O4AO.js} +3 -3
- package/dist/{layout-MSSHF45T.js → layout-UPQGIT3N.js} +2 -2
- package/dist/{layout-6L3BIFEZ.js → layout-VQ2USZJ3.js} +3 -3
- package/dist/{layout-DXVAYF6W.js → layout-VRJ5YFUE.js} +2 -2
- package/dist/{palettes-WZAIQTEG.js → palettes-WQHELGVQ.js} +2 -1
- package/dist/{parser-KYPP2DX6.js → parser-223VOHSB.js} +4 -4
- package/dist/{parser-JOOAVBJI.js → parser-2PNV7UI3.js} +3 -3
- package/dist/{parser-GZ3LVF72.js → parser-3MGA2MTM.js} +2 -2
- package/dist/{parser-NOANDFJ4.js → parser-4AR25MAS.js} +2 -2
- package/dist/{parser-337TACHB.js → parser-4B2PIXHI.js} +3 -3
- package/dist/{parser-KZMJNKDW.js → parser-57YQEEMC.js} +2 -2
- package/dist/{parser-J4DVNL4W.js → parser-5ZD2NKGU.js} +4 -4
- package/dist/{parser-LANGKWRG.js → parser-6LMB7BQQ.js} +2 -2
- package/dist/parser-AL6YL7KM.js +12 -0
- package/dist/{parser-5655XSOR.js → parser-B2FWP7ZO.js} +3 -3
- package/dist/{parser-GEKPWSSK.js → parser-BJDQX4KV.js} +3 -3
- package/dist/{parser-UTXFJG4X.js → parser-CA5WC5HF.js} +3 -3
- package/dist/{parser-KZMALSB2.js → parser-E5HFYL7B.js} +4 -4
- package/dist/{parser-GCCWMBTU.js → parser-ESZ5J5IJ.js} +5 -4
- package/dist/{parser-256EIWB2.js → parser-FDXUQ5TI.js} +2 -2
- package/dist/{parser-AN3MGHRL.js → parser-FV6RGALQ.js} +3 -3
- package/dist/{parser-DGF3ZEO6.js → parser-HPR7G7F6.js} +3 -3
- package/dist/{parser-OKB64MMN.js → parser-I4HZVIHX.js} +3 -3
- package/dist/{parser-P4TOQYNN.js → parser-J3BM2AP2.js} +3 -3
- package/dist/{parser-NPXPJHWN.js → parser-JFNDS5E5.js} +3 -3
- package/dist/{parser-TL3JA4RI.js → parser-KFIK3EOO.js} +3 -3
- package/dist/{parser-IMM2JJX3.js → parser-LGUT7KKH.js} +4 -4
- package/dist/{parser-KFYRTGTC.js → parser-MYRGCK7Q.js} +4 -4
- package/dist/{parser-ZLKYDFI5.js → parser-NAUUUCI3.js} +3 -3
- package/dist/{parser-DHSFIUPU.js → parser-NJ5VEZA3.js} +3 -3
- package/dist/{parser-OVQTTTUJ.js → parser-OFTMA36M.js} +2 -2
- package/dist/{parser-AKBVJHMK.js → parser-OV2WDSEV.js} +3 -3
- package/dist/{parser-LGS65QPN.js → parser-Q3UAOLEZ.js} +2 -2
- package/dist/{parser-XYY5NHP4.js → parser-R6OETHWM.js} +2 -2
- package/dist/{parser-7OEE7QT6.js → parser-RARXAHC7.js} +2 -2
- package/dist/{parser-NGHQQGD2.js → parser-T2RVIRDG.js} +3 -3
- package/dist/{parser-WEVTMBJ5.js → parser-W2DWCCLO.js} +3 -3
- package/dist/{parser-HCGXNHHL.js → parser-WFY4ZJUW.js} +3 -3
- package/dist/{parser-SA3RAJFS.js → parser-WSONWDFN.js} +2 -2
- package/dist/{renderer-CHQZES6G.js → renderer-3N64GVNM.js} +2 -2
- package/dist/{renderer-JR2XNZAH.js → renderer-3QM2DK7I.js} +5 -5
- package/dist/{renderer-XHEMXBQM.js → renderer-3W5T3IU6.js} +5 -5
- package/dist/{renderer-2ZQ6DPVD.js → renderer-4Z7FRQ2A.js} +2 -2
- package/dist/{renderer-EAORWLVK.js → renderer-52CHSV6S.js} +7 -7
- package/dist/{renderer-ZXQXRNDR.js → renderer-6OOJNEQE.js} +6 -6
- package/dist/{renderer-IR5GGAPB.js → renderer-A3PMPUO6.js} +11 -7
- package/dist/{renderer-3AD4NDF5.js → renderer-AM4VZSBQ.js} +6 -6
- package/dist/{renderer-P4XCRNCY.js → renderer-B3CPMS5R.js} +6 -6
- package/dist/{renderer-VGQMJC5K.js → renderer-B4KE3NM4.js} +11 -10
- package/dist/renderer-COSJM7UG.js +80 -0
- package/dist/{renderer-NAA7D33G.js → renderer-FXCVH2M5.js} +10 -9
- package/dist/{renderer-J4OS77PK.js → renderer-GWH5ACJ5.js} +3 -3
- package/dist/{renderer-7HOSI6JJ.js → renderer-IG72UJHW.js} +4 -4
- package/dist/{renderer-QQHQY3GT.js → renderer-IO3D5E4E.js} +5 -5
- package/dist/{renderer-6OQM32X3.js → renderer-IPDCAACY.js} +3 -3
- package/dist/{renderer-VYWCMRWA.js → renderer-KK5BU5K2.js} +5 -5
- package/dist/{renderer-7MCC6GKH.js → renderer-LD2H7WGP.js} +2 -2
- package/dist/{renderer-DCJ4AQ3N.js → renderer-MK47ESCB.js} +5 -5
- package/dist/{renderer-BLHN3RCY.js → renderer-MRMFYYZT.js} +2 -2
- package/dist/{renderer-XFEZ5UBE.js → renderer-O5RQHGK2.js} +6 -6
- package/dist/{renderer-43ESBXVY.js → renderer-OA5D3ZKB.js} +6 -6
- package/dist/{renderer-YTEZK3GC.js → renderer-ON4PTUHJ.js} +7 -7
- package/dist/{renderer-JRVY7HAD.js → renderer-OPDSKCQS.js} +4 -4
- package/dist/{renderer-FCXRDYSJ.js → renderer-PLRMST57.js} +7 -7
- package/dist/{renderer-WB75JME5.js → renderer-PSMRAL72.js} +6 -6
- package/dist/{renderer-7L7J4DHO.js → renderer-PXGCR7N4.js} +7 -6
- package/dist/{renderer-CEIX5JPA.js → renderer-R7OYCJEA.js} +2 -2
- package/dist/{renderer-DBNDLKPE.js → renderer-SBXCPA3S.js} +7 -7
- package/dist/{renderer-4JE5ORRO.js → renderer-TMQNTUQS.js} +7 -7
- package/dist/renderer-TTKTBB4C.js +46 -0
- package/dist/{renderer-5GZNGZU5.js → renderer-UVFGW2O6.js} +9 -7
- package/dist/{renderer-7VQOKAII.js → renderer-W22GX72R.js} +6 -6
- package/dist/{renderer-radial-NA5DVBG4.js → renderer-radial-42LVSG74.js} +5 -5
- package/dist/{state-parser-FE3RF6XY.js → state-parser-ROKY5KSI.js} +4 -4
- package/dist/{state-renderer-4S2C2CHB.js → state-renderer-MMG23G4W.js} +8 -8
- package/dist/{themes-CzuBdx1T.d.ts → themes-Cm2YBcT8.d.ts} +38 -2
- package/docs/ai-integration.md +4 -3
- package/docs/language-reference.md +162 -12
- package/gallery/fixtures/sketch.dgmo +2 -2
- package/gallery/fixtures/whiteboard.dgmo +18 -0
- package/package.json +2 -1
- package/dist/dgmo-router-7WANZOBD.js +0 -92
- package/dist/renderer-TJJGFQGT.js +0 -78
- package/dist/{chunk-CX6OH5WP.js → chunk-A5PUOHIS.js} +3 -3
- package/dist/{chunk-5LE2CTLS.js → chunk-NTJ5HVV6.js} +3 -3
package/dist/block.d.ts
CHANGED
package/dist/block.js
CHANGED
|
@@ -4,102 +4,108 @@ import {
|
|
|
4
4
|
} from "./chunk-D3K4U3ZM.js";
|
|
5
5
|
import {
|
|
6
6
|
render
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-RCBHL2B5.js";
|
|
8
8
|
import "./chunk-ABP5BUD6.js";
|
|
9
9
|
import {
|
|
10
10
|
docsLink,
|
|
11
11
|
renderErrorCard
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import
|
|
12
|
+
} from "./chunk-POBNN5DP.js";
|
|
13
|
+
import {
|
|
14
|
+
choosePalette,
|
|
15
|
+
extractPaletteDirective
|
|
16
|
+
} from "./chunk-HIVJBESO.js";
|
|
14
17
|
import "./chunk-EOYPX6SF.js";
|
|
15
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-ZJ4PYTCK.js";
|
|
19
|
+
import {
|
|
20
|
+
monthIndex,
|
|
21
|
+
weekdayIndex
|
|
22
|
+
} from "./chunk-WFA6IULY.js";
|
|
23
|
+
import "./chunk-3DPOIW3W.js";
|
|
24
|
+
import "./chunk-TCX5PMEY.js";
|
|
16
25
|
import "./chunk-A2RUBBVT.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-X3WYJ5T7.js";
|
|
27
|
+
import "./chunk-SMEVBJJJ.js";
|
|
28
|
+
import "./chunk-BDXC7MDK.js";
|
|
29
|
+
import "./chunk-EEYQFJVK.js";
|
|
20
30
|
import "./chunk-KMU65FYM.js";
|
|
21
31
|
import "./chunk-EPDBWATV.js";
|
|
22
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-WHRIN7N3.js";
|
|
23
33
|
import "./chunk-2CW5ZTNH.js";
|
|
24
34
|
import {
|
|
25
35
|
escapeAttr,
|
|
26
36
|
escapeHtml
|
|
27
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-3BQCSQQJ.js";
|
|
28
38
|
import "./chunk-YRYKTYMQ.js";
|
|
29
39
|
import "./chunk-24YPR5EH.js";
|
|
40
|
+
import "./chunk-NJYA4QSN.js";
|
|
30
41
|
import "./chunk-XCKNFFKM.js";
|
|
31
|
-
import "./chunk-
|
|
42
|
+
import "./chunk-X6IZP2BD.js";
|
|
32
43
|
import "./chunk-SEKNYIMO.js";
|
|
33
44
|
import "./chunk-CNUN5GO6.js";
|
|
34
45
|
import "./chunk-OOCVGX4W.js";
|
|
35
|
-
import "./chunk-VLC6WNRD.js";
|
|
36
|
-
import "./chunk-BDXC7MDK.js";
|
|
37
|
-
import "./chunk-7SX4IY6T.js";
|
|
38
46
|
import "./chunk-NS7L7YKH.js";
|
|
47
|
+
import "./chunk-VLC6WNRD.js";
|
|
39
48
|
import "./chunk-ICLB27PZ.js";
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
49
|
+
import "./chunk-MKFQ5E7J.js";
|
|
50
|
+
import "./chunk-NFWRIC2V.js";
|
|
51
|
+
import "./chunk-COPSI54O.js";
|
|
52
|
+
import "./chunk-M6J25PAZ.js";
|
|
53
|
+
import "./chunk-EWERNTOX.js";
|
|
54
|
+
import "./chunk-RNXX2GOQ.js";
|
|
55
|
+
import "./chunk-JX4RCC6B.js";
|
|
46
56
|
import "./chunk-XSVWUOUZ.js";
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
import "./chunk-
|
|
54
|
-
import "./chunk-
|
|
55
|
-
import "./chunk-MHAYUS65.js";
|
|
56
|
-
import "./chunk-RU725VCJ.js";
|
|
57
|
-
import "./chunk-DV2VEJCC.js";
|
|
58
|
-
import "./chunk-C7QRRTAW.js";
|
|
59
|
-
import "./chunk-FKZ2Y3Q5.js";
|
|
57
|
+
import "./chunk-4YO7VJTP.js";
|
|
58
|
+
import "./chunk-YE7D2S75.js";
|
|
59
|
+
import "./chunk-GXP344YZ.js";
|
|
60
|
+
import "./chunk-NMKLX57Y.js";
|
|
61
|
+
import "./chunk-NWSPPGIE.js";
|
|
62
|
+
import "./chunk-IHK3Y2HG.js";
|
|
63
|
+
import "./chunk-PNCKZFPE.js";
|
|
64
|
+
import "./chunk-C4W62JZO.js";
|
|
60
65
|
import "./chunk-QQJUTGQH.js";
|
|
61
|
-
import "./chunk-
|
|
62
|
-
import "./chunk-
|
|
63
|
-
import "./chunk-
|
|
64
|
-
import "./chunk-
|
|
65
|
-
import "./chunk-
|
|
66
|
-
import "./chunk-
|
|
67
|
-
import "./chunk-
|
|
68
|
-
import "./chunk-
|
|
69
|
-
import "./chunk-ITSBBQTH.js";
|
|
66
|
+
import "./chunk-DNMICILX.js";
|
|
67
|
+
import "./chunk-RJYFHEP4.js";
|
|
68
|
+
import "./chunk-OYKNMFUY.js";
|
|
69
|
+
import "./chunk-SVQDLYX7.js";
|
|
70
|
+
import "./chunk-IRVQT4GR.js";
|
|
71
|
+
import "./chunk-LC5LY5V2.js";
|
|
72
|
+
import "./chunk-CUY56BK4.js";
|
|
73
|
+
import "./chunk-NUYWNKHH.js";
|
|
70
74
|
import {
|
|
71
75
|
encodeDiagramUrl
|
|
72
76
|
} from "./chunk-RE27AX7O.js";
|
|
73
|
-
import "./chunk-
|
|
74
|
-
import "./chunk-
|
|
75
|
-
import "./chunk-
|
|
77
|
+
import "./chunk-YWRZG6GN.js";
|
|
78
|
+
import "./chunk-I74AQRVD.js";
|
|
79
|
+
import "./chunk-AAC3XQWV.js";
|
|
76
80
|
import "./chunk-2SKMEL7V.js";
|
|
77
|
-
import "./chunk-
|
|
81
|
+
import "./chunk-2ZVLI6GQ.js";
|
|
78
82
|
import "./chunk-EQW6HOP4.js";
|
|
79
83
|
import {
|
|
80
84
|
scanMonthNameDates
|
|
81
85
|
} from "./chunk-DAOFNU6J.js";
|
|
82
86
|
import {
|
|
87
|
+
getPalette,
|
|
83
88
|
resolvePaletteOrFallback
|
|
84
|
-
} from "./chunk-
|
|
85
|
-
import "./chunk-
|
|
89
|
+
} from "./chunk-4HG4PYHM.js";
|
|
90
|
+
import "./chunk-62VWZ3SE.js";
|
|
86
91
|
import "./chunk-C3Z4DX3V.js";
|
|
87
|
-
import "./chunk-
|
|
92
|
+
import "./chunk-SLO22FPS.js";
|
|
88
93
|
import "./chunk-7TF3QOOD.js";
|
|
89
|
-
import "./chunk-
|
|
94
|
+
import "./chunk-NY56FM55.js";
|
|
90
95
|
import "./chunk-NXMESY4J.js";
|
|
91
|
-
import "./chunk-
|
|
92
|
-
import "./chunk-
|
|
93
|
-
import "./chunk-
|
|
96
|
+
import "./chunk-OSIUWQ3N.js";
|
|
97
|
+
import "./chunk-5TZPIKNV.js";
|
|
98
|
+
import "./chunk-KSZHIAI2.js";
|
|
94
99
|
import "./chunk-O753JUEZ.js";
|
|
95
100
|
import "./chunk-N7VMGZCU.js";
|
|
96
|
-
import "./chunk-
|
|
97
|
-
import "./chunk-
|
|
101
|
+
import "./chunk-FS2LZBHG.js";
|
|
102
|
+
import "./chunk-5M52RPAS.js";
|
|
98
103
|
import "./chunk-IYULMRBE.js";
|
|
99
104
|
import "./chunk-NOTA6TEI.js";
|
|
100
|
-
import "./chunk-
|
|
105
|
+
import "./chunk-CYF2X3CG.js";
|
|
101
106
|
import "./chunk-4WW3SGMH.js";
|
|
102
|
-
import "./chunk-
|
|
107
|
+
import "./chunk-3UR4F7FE.js";
|
|
108
|
+
import "./chunk-HX2KJEPD.js";
|
|
103
109
|
import {
|
|
104
110
|
CHART_TYPE_IDS,
|
|
105
111
|
REGISTRY_COLON_KEY_TOKENS,
|
|
@@ -107,7 +113,7 @@ import {
|
|
|
107
113
|
REGISTRY_DIRECTIVE_TOKENS,
|
|
108
114
|
REGISTRY_MODIFIER_TOKENS,
|
|
109
115
|
REGISTRY_STATUS_TOKENS
|
|
110
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-MPJQMMBZ.js";
|
|
111
117
|
import "./chunk-5NU7NII2.js";
|
|
112
118
|
import "./chunk-I6GGMCTV.js";
|
|
113
119
|
import "./chunk-KAO7JL4I.js";
|
|
@@ -1068,6 +1074,24 @@ async function renderDgmoBlock(source, options = {}) {
|
|
|
1068
1074
|
const palette = resolvePaletteOrFallback(opts.palette, opts.onWarn);
|
|
1069
1075
|
const diagnostics = [];
|
|
1070
1076
|
let chartType;
|
|
1077
|
+
const directive = extractPaletteDirective(trimmed);
|
|
1078
|
+
const drawnIn = (theme) => {
|
|
1079
|
+
const chosen = choosePalette(directive, { palette: palette.id, theme });
|
|
1080
|
+
const config = chosen.palette ?? (chosen.paletteId === palette.id ? palette : getPalette(chosen.paletteId));
|
|
1081
|
+
return {
|
|
1082
|
+
config,
|
|
1083
|
+
theme: chosen.theme,
|
|
1084
|
+
bg: config[chosen.theme === "dark" ? "dark" : "light"].bg,
|
|
1085
|
+
// Drawn in another mode than the slot asked for: its colours were
|
|
1086
|
+
// picked against its own ground, so stripping that ground would put
|
|
1087
|
+
// dark-mode text on a light page.
|
|
1088
|
+
pinned: chosen.theme !== theme
|
|
1089
|
+
};
|
|
1090
|
+
};
|
|
1091
|
+
const backgroundFor = (theme) => {
|
|
1092
|
+
if (opts.background !== "auto") return opts.background;
|
|
1093
|
+
return drawnIn(theme).pinned ? "opaque" : defaultEmbedBackground(chartType);
|
|
1094
|
+
};
|
|
1071
1095
|
const renderTheme = async (theme) => {
|
|
1072
1096
|
const r = await render(trimmed, {
|
|
1073
1097
|
palette: palette.id,
|
|
@@ -1077,7 +1101,8 @@ async function renderDgmoBlock(source, options = {}) {
|
|
|
1077
1101
|
chartType = r.chartType;
|
|
1078
1102
|
diagnostics.push(...r.diagnostics);
|
|
1079
1103
|
const errors = r.diagnostics.filter((d) => d.severity === "error");
|
|
1080
|
-
|
|
1104
|
+
const drawn = drawnIn(theme);
|
|
1105
|
+
return errors.length ? renderErrorCard(errors, trimmed, drawn.config, drawn.theme) : r.svg;
|
|
1081
1106
|
};
|
|
1082
1107
|
let svgsHtml;
|
|
1083
1108
|
if (opts.colorMode === "auto") {
|
|
@@ -1085,13 +1110,11 @@ async function renderDgmoBlock(source, options = {}) {
|
|
|
1085
1110
|
renderTheme("light"),
|
|
1086
1111
|
renderTheme("dark")
|
|
1087
1112
|
]);
|
|
1088
|
-
|
|
1089
|
-
svgsHtml = `<div class="${escapeAttr(innerClasses(opts, "dgmo-light"))}" data-dgmo-bg="${escapeAttr(palette.light.bg)}">${normalizeSvgForEmbed(light, { background })}</div><div class="${escapeAttr(innerClasses(opts, "dgmo-dark"))}" data-dgmo-bg="${escapeAttr(palette.dark.bg)}" style="display:none">${normalizeSvgForEmbed(dark, { background })}</div>`;
|
|
1113
|
+
svgsHtml = `<div class="${escapeAttr(innerClasses(opts, "dgmo-light"))}" data-dgmo-bg="${escapeAttr(drawnIn("light").bg)}">${normalizeSvgForEmbed(light, { background: backgroundFor("light") })}</div><div class="${escapeAttr(innerClasses(opts, "dgmo-dark"))}" data-dgmo-bg="${escapeAttr(drawnIn("dark").bg)}" style="display:none">${normalizeSvgForEmbed(dark, { background: backgroundFor("dark") })}</div>`;
|
|
1090
1114
|
} else {
|
|
1091
1115
|
const svg = await renderTheme(opts.colorMode);
|
|
1092
|
-
const
|
|
1093
|
-
|
|
1094
|
-
svgsHtml = `<div class="${escapeAttr(innerClasses(opts, "dgmo-svg"))}" data-dgmo-bg="${escapeAttr(paletteBg)}">${normalizeSvgForEmbed(svg, { background })}</div>`;
|
|
1116
|
+
const paletteBg = drawnIn(opts.colorMode).bg;
|
|
1117
|
+
svgsHtml = `<div class="${escapeAttr(innerClasses(opts, "dgmo-svg"))}" data-dgmo-bg="${escapeAttr(paletteBg)}">${normalizeSvgForEmbed(svg, { background: backgroundFor(opts.colorMode) })}</div>`;
|
|
1095
1118
|
}
|
|
1096
1119
|
return { html: assembleBlock(trimmed, svgsHtml, opts), diagnostics };
|
|
1097
1120
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
calculateSchedule
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-Y6GQQ4Y2.js";
|
|
4
4
|
import "./chunk-EQW6HOP4.js";
|
|
5
5
|
import "./chunk-NOTA6TEI.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-MPJQMMBZ.js";
|
|
7
7
|
import "./chunk-2M4IGSCY.js";
|
|
8
8
|
import "./chunk-BYU54C3S.js";
|
|
9
9
|
import "./chunk-5WRI5ZAA.js";
|
package/dist/chart-meta.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { C as ChartTypeId, a as ChartTypeMeta, c as chartTypes, b as getAvailablePalettes, g as getPalette } from './chart-types-
|
|
2
|
-
export { A as ALL_CHART_TYPES, O as OrgNode, P as ParsedOrg, l as hexToHSLString, o as normalizePertSourceForShare, p as parseDgmoChartType, q as parseFirstLine, r as parseOrg, s as parseRaci, t as resolveOrgImports } from './chart-meta-
|
|
1
|
+
export { C as ChartTypeId, a as ChartTypeMeta, c as chartTypes, b as getAvailablePalettes, g as getPalette } from './chart-types-V2NcgN5O.js';
|
|
2
|
+
export { A as ALL_CHART_TYPES, O as OrgNode, P as ParsedOrg, l as hexToHSLString, o as normalizePertSourceForShare, p as parseDgmoChartType, q as parseFirstLine, r as parseOrg, s as parseRaci, t as resolveOrgImports } from './chart-meta-B_WTMP0y.js';
|
|
3
3
|
export { C as CompactViewState, h as DecodedDiagramUrl, i as EncodeDiagramUrlOptions, j as EncodeDiagramUrlResult, a as PaletteColors, l as decodeDiagramUrl, m as decodeViewState, n as encodeDiagramUrl, o as encodeViewState } from './tag-groups-fgxWTyyB.js';
|
package/dist/chart-meta.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
normalizePertSourceForShare,
|
|
3
3
|
resolveOrgImports
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-EK7JYFCL.js";
|
|
5
5
|
import {
|
|
6
6
|
decodeDiagramUrl,
|
|
7
7
|
decodeViewState,
|
|
@@ -10,43 +10,44 @@ import {
|
|
|
10
10
|
} from "./chunk-RE27AX7O.js";
|
|
11
11
|
import {
|
|
12
12
|
parseDgmoChartType
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-YWRZG6GN.js";
|
|
14
14
|
import {
|
|
15
15
|
parseRaci
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-I74AQRVD.js";
|
|
17
|
+
import "./chunk-AAC3XQWV.js";
|
|
18
18
|
import "./chunk-2SKMEL7V.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-2ZVLI6GQ.js";
|
|
20
20
|
import "./chunk-EQW6HOP4.js";
|
|
21
21
|
import "./chunk-DAOFNU6J.js";
|
|
22
22
|
import {
|
|
23
23
|
getAvailablePalettes,
|
|
24
24
|
getPalette
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import "./chunk-
|
|
25
|
+
} from "./chunk-4HG4PYHM.js";
|
|
26
|
+
import "./chunk-62VWZ3SE.js";
|
|
27
27
|
import "./chunk-C3Z4DX3V.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-SLO22FPS.js";
|
|
29
29
|
import "./chunk-7TF3QOOD.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-NY56FM55.js";
|
|
31
31
|
import "./chunk-NXMESY4J.js";
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-OSIUWQ3N.js";
|
|
33
|
+
import "./chunk-5TZPIKNV.js";
|
|
34
|
+
import "./chunk-KSZHIAI2.js";
|
|
35
35
|
import "./chunk-O753JUEZ.js";
|
|
36
36
|
import "./chunk-N7VMGZCU.js";
|
|
37
37
|
import {
|
|
38
38
|
parseOrg
|
|
39
|
-
} from "./chunk-
|
|
40
|
-
import "./chunk-
|
|
39
|
+
} from "./chunk-FS2LZBHG.js";
|
|
40
|
+
import "./chunk-5M52RPAS.js";
|
|
41
41
|
import "./chunk-IYULMRBE.js";
|
|
42
42
|
import "./chunk-NOTA6TEI.js";
|
|
43
43
|
import "./chunk-4WW3SGMH.js";
|
|
44
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-3UR4F7FE.js";
|
|
45
|
+
import "./chunk-HX2KJEPD.js";
|
|
45
46
|
import {
|
|
46
47
|
ALL_CHART_TYPES,
|
|
47
48
|
chartTypes,
|
|
48
49
|
parseFirstLine
|
|
49
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-MPJQMMBZ.js";
|
|
50
51
|
import "./chunk-5NU7NII2.js";
|
|
51
52
|
import {
|
|
52
53
|
hexToHSLString
|
|
@@ -159,6 +159,10 @@ declare const chartTypesData: readonly [{
|
|
|
159
159
|
readonly id: "sketch";
|
|
160
160
|
readonly description: "GUI-first constrained canvas: uniformly-sized shapes placed freely on a snap grid, arrows between them, meaning through tags — the markup is generated by the canvas editor";
|
|
161
161
|
readonly beta: true;
|
|
162
|
+
}, {
|
|
163
|
+
readonly id: "whiteboard";
|
|
164
|
+
readonly description: "Free-form whiteboard on an infinite canvas: rectangles, ellipses, databases, queues, free arrows, text, pasted images and freehand ink at pixel positions — drawn in the canvas; AI writes shapes, arrows and text, never ink";
|
|
165
|
+
readonly beta: true;
|
|
162
166
|
}, {
|
|
163
167
|
readonly id: "goal";
|
|
164
168
|
readonly description: "Single progress-toward-a-target value (now vs target) as a progress bar, thermometer, or gauge — KPIs, fundraising, quotas, completion";
|
|
@@ -2,21 +2,22 @@ import {
|
|
|
2
2
|
D3_DATA_CHART_TYPES,
|
|
3
3
|
renderDataChartD3,
|
|
4
4
|
supportsD3DataChart
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-EEYQFJVK.js";
|
|
6
6
|
import "./chunk-KMU65FYM.js";
|
|
7
7
|
import "./chunk-EPDBWATV.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-WHRIN7N3.js";
|
|
9
9
|
import "./chunk-2CW5ZTNH.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-X6IZP2BD.js";
|
|
11
11
|
import "./chunk-SEKNYIMO.js";
|
|
12
12
|
import "./chunk-CNUN5GO6.js";
|
|
13
13
|
import "./chunk-OOCVGX4W.js";
|
|
14
|
-
import "./chunk-VLC6WNRD.js";
|
|
15
14
|
import "./chunk-NS7L7YKH.js";
|
|
15
|
+
import "./chunk-VLC6WNRD.js";
|
|
16
16
|
import "./chunk-ICLB27PZ.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-4HG4PYHM.js";
|
|
18
|
+
import "./chunk-3UR4F7FE.js";
|
|
19
|
+
import "./chunk-HX2KJEPD.js";
|
|
20
|
+
import "./chunk-MPJQMMBZ.js";
|
|
20
21
|
import "./chunk-I6GGMCTV.js";
|
|
21
22
|
import "./chunk-KAO7JL4I.js";
|
|
22
23
|
import "./chunk-L24LESXF.js";
|
|
@@ -19,6 +19,9 @@ import {
|
|
|
19
19
|
import {
|
|
20
20
|
ScaleContext
|
|
21
21
|
} from "./chunk-24YPR5EH.js";
|
|
22
|
+
import {
|
|
23
|
+
renderIntegratedLegend
|
|
24
|
+
} from "./chunk-NJYA4QSN.js";
|
|
22
25
|
import {
|
|
23
26
|
ARROWHEAD_HEIGHT,
|
|
24
27
|
ARROWHEAD_WIDTH,
|
|
@@ -32,30 +35,27 @@ import {
|
|
|
32
35
|
import {
|
|
33
36
|
layoutInlineHeader
|
|
34
37
|
} from "./chunk-CNUN5GO6.js";
|
|
38
|
+
import {
|
|
39
|
+
getLegendExtent,
|
|
40
|
+
getMaxLegendReservedHeight
|
|
41
|
+
} from "./chunk-NS7L7YKH.js";
|
|
35
42
|
import {
|
|
36
43
|
TITLE_FONT_SIZE,
|
|
37
44
|
TITLE_FONT_WEIGHT,
|
|
38
45
|
TITLE_Y
|
|
39
46
|
} from "./chunk-VLC6WNRD.js";
|
|
40
|
-
import {
|
|
41
|
-
renderIntegratedLegend
|
|
42
|
-
} from "./chunk-7SX4IY6T.js";
|
|
43
|
-
import {
|
|
44
|
-
getLegendExtent,
|
|
45
|
-
getMaxLegendReservedHeight
|
|
46
|
-
} from "./chunk-NS7L7YKH.js";
|
|
47
47
|
import {
|
|
48
48
|
FONT_FAMILY
|
|
49
49
|
} from "./chunk-ICLB27PZ.js";
|
|
50
50
|
import {
|
|
51
51
|
resolveGroupTagColor,
|
|
52
52
|
resolveTagColor
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-HX2KJEPD.js";
|
|
54
54
|
import {
|
|
55
55
|
fillModeFromOptions,
|
|
56
56
|
legendInlineRequested,
|
|
57
57
|
legendSuppressed
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-MPJQMMBZ.js";
|
|
59
59
|
import {
|
|
60
60
|
CHAR_WIDTH_RATIO,
|
|
61
61
|
measureText,
|
|
@@ -5,6 +5,11 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
ScaleContext
|
|
7
7
|
} from "./chunk-24YPR5EH.js";
|
|
8
|
+
import {
|
|
9
|
+
keepSwimlaneToggleFocus,
|
|
10
|
+
renderIntegratedLegend,
|
|
11
|
+
wireSwimlaneToggle
|
|
12
|
+
} from "./chunk-NJYA4QSN.js";
|
|
8
13
|
import {
|
|
9
14
|
EDGE_DASH,
|
|
10
15
|
GRID_DASH,
|
|
@@ -15,26 +20,21 @@ import {
|
|
|
15
20
|
hideTooltip,
|
|
16
21
|
renderChartTitle,
|
|
17
22
|
showTooltip
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import {
|
|
20
|
-
keepSwimlaneToggleFocus,
|
|
21
|
-
renderIntegratedLegend,
|
|
22
|
-
wireSwimlaneToggle
|
|
23
|
-
} from "./chunk-7SX4IY6T.js";
|
|
23
|
+
} from "./chunk-X6IZP2BD.js";
|
|
24
24
|
import {
|
|
25
25
|
FONT_FAMILY
|
|
26
26
|
} from "./chunk-ICLB27PZ.js";
|
|
27
27
|
import {
|
|
28
28
|
parseTimelineDate
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-OYKNMFUY.js";
|
|
30
30
|
import {
|
|
31
31
|
DEFAULT_PALETTE_ID,
|
|
32
32
|
getPalette
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-4HG4PYHM.js";
|
|
34
34
|
import {
|
|
35
35
|
resolveTagColor,
|
|
36
36
|
tagAttrKey
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-HX2KJEPD.js";
|
|
38
38
|
import {
|
|
39
39
|
LEGEND_CAPSULE_PAD,
|
|
40
40
|
LEGEND_DOT_R,
|
|
@@ -356,7 +356,7 @@ function setupTimeline(container, parsed, palette, isDark, exportDims, activeTag
|
|
|
356
356
|
if (resolvedSwimlaneTG) {
|
|
357
357
|
const tagKey = tagAttrKey(resolvedSwimlaneTG);
|
|
358
358
|
const tagGroup = parsed.timelineTagGroups.find(
|
|
359
|
-
(g) => g.name
|
|
359
|
+
(g) => tagAttrKey(g.name) === tagKey
|
|
360
360
|
);
|
|
361
361
|
if (tagGroup) {
|
|
362
362
|
const buckets = /* @__PURE__ */ new Map();
|
|
@@ -625,7 +625,10 @@ function renderTimelineTagLegendOverlay(container, parsed, palette, isDark, setu
|
|
|
625
625
|
}, drawLegend2 = function() {
|
|
626
626
|
mainSvg.selectAll(".tl-tag-legend-group").remove();
|
|
627
627
|
mainSvg.selectAll(".tl-tag-legend-container").remove();
|
|
628
|
-
const
|
|
628
|
+
const effectiveSource = currentActiveGroup ?? currentSwimlaneGroup;
|
|
629
|
+
const effectiveColorKey = effectiveSource == null ? null : legendGroups.find(
|
|
630
|
+
(lg) => tagAttrKey(lg.group.name) === tagAttrKey(effectiveSource)
|
|
631
|
+
)?.group.name.toLowerCase() ?? effectiveSource.toLowerCase();
|
|
629
632
|
const visibleGroups = viewMode ? legendGroups.filter(
|
|
630
633
|
(lg) => effectiveColorKey != null && lg.group.name.toLowerCase() === effectiveColorKey
|
|
631
634
|
) : legendGroups;
|
|
@@ -682,7 +685,7 @@ function renderTimelineTagLegendOverlay(container, parsed, palette, isDark, setu
|
|
|
682
685
|
const groupKey = tagAttrKey(groupName);
|
|
683
686
|
groupEl.attr("data-tag-group", groupKey);
|
|
684
687
|
if (isActive && !viewMode) {
|
|
685
|
-
const isSwimActive = currentSwimlaneGroup
|
|
688
|
+
const isSwimActive = currentSwimlaneGroup != null && tagAttrKey(currentSwimlaneGroup) === groupKey;
|
|
686
689
|
const pillWidth = measureLegendText(groupName, LG_PILL_FONT_SIZE) + LG_PILL_PAD;
|
|
687
690
|
const pillXOff = LG_CAPSULE_PAD;
|
|
688
691
|
const iconX = pillXOff + pillWidth + 5;
|
|
@@ -700,7 +703,7 @@ function renderTimelineTagLegendOverlay(container, parsed, palette, isDark, setu
|
|
|
700
703
|
isSwimActive,
|
|
701
704
|
!exportDims,
|
|
702
705
|
() => {
|
|
703
|
-
currentSwimlaneGroup = currentSwimlaneGroup === groupKey ? null : groupKey;
|
|
706
|
+
currentSwimlaneGroup = currentSwimlaneGroup != null && tagAttrKey(currentSwimlaneGroup) === groupKey ? null : groupKey;
|
|
704
707
|
onTagStateChange?.(
|
|
705
708
|
currentActiveGroup,
|
|
706
709
|
currentSwimlaneGroup
|
|
@@ -5,6 +5,11 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
ScaleContext
|
|
7
7
|
} from "./chunk-24YPR5EH.js";
|
|
8
|
+
import {
|
|
9
|
+
keepSwimlaneToggleFocus,
|
|
10
|
+
renderIntegratedLegend,
|
|
11
|
+
wireSwimlaneToggle
|
|
12
|
+
} from "./chunk-NJYA4QSN.js";
|
|
8
13
|
import {
|
|
9
14
|
EDGE_DASH,
|
|
10
15
|
GRID_DASH,
|
|
@@ -14,21 +19,16 @@ import {
|
|
|
14
19
|
INLINE_HEADER_PAD,
|
|
15
20
|
layoutInlineHeader
|
|
16
21
|
} from "./chunk-CNUN5GO6.js";
|
|
17
|
-
import {
|
|
18
|
-
TITLE_FONT_SIZE,
|
|
19
|
-
TITLE_FONT_WEIGHT,
|
|
20
|
-
TITLE_Y
|
|
21
|
-
} from "./chunk-VLC6WNRD.js";
|
|
22
|
-
import {
|
|
23
|
-
keepSwimlaneToggleFocus,
|
|
24
|
-
renderIntegratedLegend,
|
|
25
|
-
wireSwimlaneToggle
|
|
26
|
-
} from "./chunk-7SX4IY6T.js";
|
|
27
22
|
import {
|
|
28
23
|
controlsGroupCapsuleWidth,
|
|
29
24
|
getLegendExtent,
|
|
30
25
|
getMaxLegendReservedHeight
|
|
31
26
|
} from "./chunk-NS7L7YKH.js";
|
|
27
|
+
import {
|
|
28
|
+
TITLE_FONT_SIZE,
|
|
29
|
+
TITLE_FONT_WEIGHT,
|
|
30
|
+
TITLE_Y
|
|
31
|
+
} from "./chunk-VLC6WNRD.js";
|
|
32
32
|
import {
|
|
33
33
|
FONT_FAMILY
|
|
34
34
|
} from "./chunk-ICLB27PZ.js";
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
resolveActiveTagGroup,
|
|
41
41
|
resolveTagColor,
|
|
42
42
|
tagAttrKey
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-HX2KJEPD.js";
|
|
44
44
|
import {
|
|
45
45
|
LEGEND_CAPSULE_PAD,
|
|
46
46
|
LEGEND_DOT_R,
|
|
@@ -1251,7 +1251,7 @@ function renderTagLegend(svg, chartG, tagGroups, activeGroupName, chartLeftMargi
|
|
|
1251
1251
|
const showIcon = !legendViewMode && tagGroups.length > 0;
|
|
1252
1252
|
const iconReserve = showIcon ? LEGEND_ICON_W : 0;
|
|
1253
1253
|
const legendGroups = visibleGroups.map((g) => {
|
|
1254
|
-
const key = g.name
|
|
1254
|
+
const key = tagAttrKey(g.name);
|
|
1255
1255
|
const entries = filteredEntries.get(key) ?? g.entries;
|
|
1256
1256
|
return {
|
|
1257
1257
|
name: g.name,
|