@diagrammo/dgmo 0.76.0 → 0.78.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 +150 -13
- package/dist/advanced.js +180 -131
- package/dist/block.css +1 -1
- package/dist/block.d.ts +2 -2
- package/dist/block.js +45 -41
- package/dist/{chart-meta-lP8Rl19E.d.ts → chart-meta-BKN2ORkc.d.ts} +2 -2
- package/dist/chart-meta.d.ts +3 -3
- package/dist/chart-meta.js +30 -29
- package/dist/charts-d3-KEQ7XVSM.js +31 -0
- package/dist/{chunk-7IATMZSA.js → chunk-26EVL454.js} +1 -25
- package/dist/{chunk-3H4PDNP4.js → chunk-2NLBIZEW.js} +2 -2
- package/dist/{chunk-GFXFRKUG.js → chunk-32VR65TL.js} +63 -36
- package/dist/{chunk-IHUOYDLN.js → chunk-36UQ77JV.js} +24 -24
- package/dist/chunk-3DPOIW3W.js +10 -0
- package/dist/{chunk-3SP6G4LN.js → chunk-3GLTQZKE.js} +2 -2
- package/dist/{chunk-DY7KDZUF.js → chunk-3OWIYK52.js} +2 -2
- package/dist/{chunk-UBW53CNS.js → chunk-3XFOE3DQ.js} +12 -7
- package/dist/{chunk-W7UBPARG.js → chunk-3ZLQM6XN.js} +2 -2
- package/dist/{chunk-5GM6BZO7.js → chunk-4AWLEWSD.js} +5 -2
- package/dist/{chunk-AYM472K3.js → chunk-4IGUEGD6.js} +80 -61
- package/dist/{chunk-QOVM5VRC.js → chunk-57GSSHBR.js} +2 -2
- package/dist/{chunk-5VMUVJO4.js → chunk-5G55TS3H.js} +2 -2
- package/dist/{chunk-QT5UMFPE.js → chunk-67I3HFSF.js} +9 -9
- package/dist/{chunk-WQXD3IIN.js → chunk-6B3M6LW6.js} +10 -8
- package/dist/{chunk-3EGIU5WY.js → chunk-6PHOZBW5.js} +4 -6
- package/dist/{chunk-5PFNUDXR.js → chunk-6VTLVU7D.js} +2 -2
- package/dist/{chunk-M5JT2AU7.js → chunk-6Z2NUJSX.js} +2 -2
- package/dist/{chunk-BWJLLNUX.js → chunk-7BNRHSSF.js} +2 -2
- package/dist/{chunk-JLODGGN2.js → chunk-7NNJXYXU.js} +2 -2
- package/dist/{chunk-FTTB64OJ.js → chunk-7SMVTA7I.js} +26 -26
- package/dist/{chunk-Z7KVOVE4.js → chunk-7WTFX6OA.js} +6 -3
- package/dist/{chunk-ZM27UI5O.js → chunk-A7Y32YD6.js} +2 -2
- package/dist/{chunk-FPRMP6YA.js → chunk-AHN2CVCH.js} +10 -7
- package/dist/{chunk-N6MZSBOL.js → chunk-AN7T6VP7.js} +2 -2
- package/dist/{chunk-F4X5NVKY.js → chunk-B6PVPAS5.js} +2 -2
- package/dist/{chunk-QI4Q5ZZH.js → chunk-BB2ORSTF.js} +19 -18
- package/dist/{chunk-HGFKDSKZ.js → chunk-BJB4YDJP.js} +21 -21
- package/dist/{chunk-BZQCAZZZ.js → chunk-BPM52K3Z.js} +41 -34
- package/dist/{chunk-HFCKU73Y.js → chunk-BSREARWG.js} +29 -28
- package/dist/{chunk-F4V67JXG.js → chunk-CTERZC4K.js} +2 -2
- package/dist/{chunk-FMZEU7MF.js → chunk-CYLSQO4L.js} +6 -6
- package/dist/{chunk-JLJ7SP4X.js → chunk-DCPD5SHV.js} +3 -3
- package/dist/{chunk-U7AO6FRL.js → chunk-ENDB5YSV.js} +363 -129
- package/dist/{chunk-RTTZIX34.js → chunk-EOB7XVYR.js} +2 -2
- package/dist/chunk-EPDBWATV.js +38 -0
- package/dist/{chunk-TPN7RJOM.js → chunk-FJADQOFQ.js} +3 -3
- package/dist/{chunk-MG3DE3VO.js → chunk-FLMXJMMY.js} +3 -3
- package/dist/{chunk-WGC42WJU.js → chunk-FWNJDD4U.js} +6 -2
- package/dist/{chunk-S5P5Z5Y5.js → chunk-GINNZHVN.js} +2 -2
- package/dist/{chunk-7EZ5AKBK.js → chunk-GJH7ZEPH.js} +45 -38
- package/dist/{chunk-E3BJVEMZ.js → chunk-GQEXY7XL.js} +68 -65
- package/dist/{chunk-COCMMQXW.js → chunk-HHHYVTVS.js} +16 -16
- package/dist/chunk-ICLB27PZ.js +11 -0
- package/dist/{chunk-QMFIZQTB.js → chunk-IDGQB6XD.js} +6 -4
- package/dist/{chunk-R3XI2VC7.js → chunk-IDJGV6VM.js} +2 -1
- package/dist/{chunk-4CRLM3IT.js → chunk-IE47TYZT.js} +177 -118
- package/dist/{chunk-FJ57274M.js → chunk-IIEI7VK5.js} +15 -1
- package/dist/{chunk-YDA46XHI.js → chunk-IMO46ROR.js} +38 -32
- package/dist/{chunk-4SXHMFFP.js → chunk-IZTU6WVR.js} +24 -13
- package/dist/{chunk-U74EGVOA.js → chunk-JOD2CK2M.js} +16 -14
- package/dist/{chunk-U5B3TUEW.js → chunk-JUNTVLOU.js} +16 -15
- package/dist/{chunk-RWFMOVHG.js → chunk-KAZQX2EY.js} +2 -2
- package/dist/{chunk-NHQ7HUAS.js → chunk-KGX5LIUG.js} +10 -8
- package/dist/{chunk-Q74GP3GK.js → chunk-KO6DGOOB.js} +3 -3
- package/dist/{chunk-UTTRJ6KN.js → chunk-L26M3X7K.js} +16 -13
- package/dist/{chunk-RU2HHHYA.js → chunk-LD2JSKU3.js} +12 -2
- package/dist/{chunk-32MOGTKT.js → chunk-LEBPWFVF.js} +50 -46
- package/dist/{chunk-MU3CJPJF.js → chunk-LGI735AJ.js} +2 -2
- package/dist/{chunk-OWVDD5EC.js → chunk-LMWXBFLA.js} +2 -2
- package/dist/{chunk-CLQJAGWL.js → chunk-M3LZCDB6.js} +40 -42
- package/dist/{chunk-YT5ICQ4R.js → chunk-MFK7LF66.js} +2 -2
- package/dist/{chunk-JL7BDLC6.js → chunk-MJYFPFZT.js} +110 -20
- package/dist/{chunk-2QRIMMIH.js → chunk-N56W4R66.js} +2 -2
- package/dist/{chunk-LXXVHLTH.js → chunk-NN5IDH2I.js} +2 -2
- package/dist/{chunk-46KVXDUJ.js → chunk-NS3KIRSW.js} +2 -2
- package/dist/{chunk-LM3HY3VG.js → chunk-P2DM7Q5U.js} +2 -2
- package/dist/{chunk-DJL5PO27.js → chunk-P4SQV3XD.js} +2 -2
- package/dist/{chunk-HOIAQ3P2.js → chunk-P54AX5XN.js} +9 -9
- package/dist/{chunk-JQ575OAK.js → chunk-P64NBPSK.js} +14 -14
- package/dist/{chunk-7G4XMHDB.js → chunk-PIWUZFG7.js} +33 -25
- package/dist/{chunk-SWEKCK34.js → chunk-QAPFXLAC.js} +2 -2
- package/dist/chunk-QFIXL3OK.js +68 -0
- package/dist/{chunk-KRTLS3G6.js → chunk-QVMV4KCA.js} +2 -2
- package/dist/{chunk-76LHNLGX.js → chunk-R4YGH7DJ.js} +5 -3
- package/dist/{chunk-PAW4RMH3.js → chunk-RC3FM3FE.js} +12 -13
- package/dist/{chunk-UJBP57UJ.js → chunk-RC6GGF6X.js} +2 -2
- package/dist/{chunk-S6OXNZBM.js → chunk-RHZZVIGA.js} +3 -3
- package/dist/{chunk-MS5574I7.js → chunk-RIXWLFB4.js} +2 -2
- package/dist/{chunk-BCB24FG7.js → chunk-RUNI4OXP.js} +18 -14
- package/dist/{chunk-ICVIJLBA.js → chunk-SFSJ6XWV.js} +2 -2
- package/dist/{chunk-EGXJWRO6.js → chunk-SNBEAO4Q.js} +8 -8
- package/dist/{chunk-XHROEQ23.js → chunk-SXD6VY7D.js} +16 -14
- package/dist/{chunk-GEURKGZS.js → chunk-TLM3I4XF.js} +16 -16
- package/dist/{chunk-IFC3JXCT.js → chunk-TO6TWNMF.js} +19 -15
- package/dist/{chunk-OUJG73YJ.js → chunk-U2JIFCJN.js} +18 -18
- package/dist/{chunk-CAPR5DET.js → chunk-U4ND3J6C.js} +18 -14
- package/dist/{chunk-YVDBBWEP.js → chunk-UCF6TKWV.js} +51 -48
- package/dist/{chunk-UWYZIGCB.js → chunk-UDYJVX6Y.js} +9 -9
- package/dist/{chunk-OBYZU23V.js → chunk-UQY2VLUK.js} +25 -23
- package/dist/{chunk-CQKD6GOC.js → chunk-VAA7QSZ7.js} +53 -32
- package/dist/{chunk-Q6BAFS7I.js → chunk-VQGQF7O7.js} +12 -10
- package/dist/{chunk-DEW62ON3.js → chunk-VSPNH7LC.js} +2 -2
- package/dist/{chunk-4YER7UCV.js → chunk-VUJQ6RU6.js} +2 -2
- package/dist/{chunk-C576CU77.js → chunk-VZD3ZV4Y.js} +26 -22
- package/dist/{chunk-NCT22MOD.js → chunk-WMIKC5XO.js} +2 -2
- package/dist/{chunk-C2WH3BMS.js → chunk-X326N4GN.js} +10 -7
- package/dist/chunk-XBJJP2HN.js +37 -0
- package/dist/{chunk-7NSNE52V.js → chunk-XCR3PDFF.js} +2 -2
- package/dist/{chunk-TF76LCZS.js → chunk-XDPJMLOH.js} +30 -27
- package/dist/{chunk-3LJNQ6LR.js → chunk-YKDZ3ZRI.js} +27 -25
- package/dist/{chunk-GLREDNBA.js → chunk-YVLTNNME.js} +12 -2
- package/dist/{chunk-76IBFEYW.js → chunk-ZGOBAMQ2.js} +15 -13
- package/dist/{chunk-AFR6GWXD.js → chunk-ZMCFUGKO.js} +49 -42
- package/dist/clock.js +11 -5
- package/dist/completion-registry.js +2 -2
- package/dist/countdown.js +26 -20
- package/dist/{d3--y67plmW.d.ts → d3-CQT5bwpb.d.ts} +1 -1
- package/dist/{dgmo-router-CY5j16Pl.d.ts → dgmo-router-C9CsswPZ.d.ts} +1 -1
- package/dist/{dgmo-router-A3LIHT6H.js → dgmo-router-XZNCLYTV.js} +30 -29
- package/dist/{dimensions-7NYBSZRJ.js → dimensions-SIZMZ4DC.js} +8 -8
- package/dist/{flowchart-renderer-QYGQ64BM.js → flowchart-renderer-FDJ4QQXE.js} +15 -14
- package/dist/index.d.ts +7 -7
- package/dist/index.js +58 -43
- package/dist/{layout-LAS67TK3.js → layout-5DZ2LI2R.js} +2 -2
- package/dist/{layout-ZAGUFT2G.js → layout-6I6LSBUR.js} +6 -5
- package/dist/{layout-2OJ25STS.js → layout-C2SCZV5M.js} +6 -5
- package/dist/{layout-6SKHNQYO.js → layout-CHWKNE3O.js} +3 -3
- package/dist/{layout-EM4DLMAX.js → layout-K4KML2DL.js} +3 -3
- package/dist/{layout-KQUSB45X.js → layout-S53FSD6R.js} +7 -6
- package/dist/{layout-ROORJQ4X.js → layout-TCFXB5XH.js} +7 -6
- package/dist/{layout-5ILNODTP.js → layout-XK6ZD7BU.js} +6 -5
- package/dist/{layout-B5GQVXXY.js → layout-YVY72CIG.js} +7 -6
- package/dist/{layout-VUZ3MLOI.js → layout-YY6VH5XH.js} +6 -5
- package/dist/{layout-RV2T2YTT.js → layout-ZDN252GR.js} +4 -3
- package/dist/{layout-search-UOKEMER5.js → layout-search-TSV4FURP.js} +7 -6
- package/dist/{legend-constants-PLN2YHGM.js → legend-constants-SB4PLHV5.js} +3 -3
- package/dist/{palettes-54YSI3IX.js → palettes-YIPSRYXP.js} +5 -3
- package/dist/{parser-GCVSRQPY.js → parser-2BX2EJUB.js} +3 -3
- package/dist/{parser-WVE6SKB7.js → parser-3UNIPVNY.js} +3 -3
- package/dist/{parser-5XFGK5C5.js → parser-4IHIVDJD.js} +5 -5
- package/dist/{parser-ZT3PU2HT.js → parser-62VNEQRT.js} +3 -3
- package/dist/{parser-PR3OR3LO.js → parser-6JNJHQAG.js} +3 -3
- package/dist/{parser-ZXQZZK6W.js → parser-6ZFQLLVE.js} +3 -2
- package/dist/{parser-WMJEPZDC.js → parser-BOPXE6RP.js} +3 -3
- package/dist/{parser-WWRRG2DV.js → parser-DFBQ2RID.js} +3 -3
- package/dist/{parser-2GMHFSTS.js → parser-EPKXJ2RL.js} +3 -3
- package/dist/{parser-ML3LVNDV.js → parser-G7E2BURB.js} +3 -3
- package/dist/{parser-QOIZGW7I.js → parser-GFGU5ZLQ.js} +3 -3
- package/dist/{parser-L7T7FY3H.js → parser-GKZWI5SZ.js} +3 -3
- package/dist/{parser-QYAIFXLP.js → parser-HSPODF4H.js} +3 -3
- package/dist/{parser-EQ4I3TSH.js → parser-IK3FXZ7D.js} +3 -3
- package/dist/{parser-LV7PQBUG.js → parser-LJWPKRDM.js} +3 -3
- package/dist/{parser-RDBXEVI4.js → parser-OYWUBQV4.js} +3 -3
- package/dist/{parser-6FUESG4N.js → parser-PD4TP6NM.js} +3 -3
- package/dist/{parser-E3OHNNTH.js → parser-R2JHC7LQ.js} +3 -3
- package/dist/{parser-CJNP7RKR.js → parser-RMZ6YI7H.js} +3 -3
- package/dist/{parser-TA5TYZNL.js → parser-RUJNN5PK.js} +3 -3
- package/dist/{parser-UTR5WE4O.js → parser-YWE7GHW6.js} +3 -3
- package/dist/{parser-3AOMUX5D.js → parser-Z5UK6ADF.js} +3 -3
- package/dist/{parser-YWQCC33R.js → parser-ZO5YT5SV.js} +3 -3
- package/dist/renderer-5TPUPMZ7.js +26 -0
- package/dist/{renderer-4EWGZLJ6.js → renderer-AIVALEQR.js} +7 -7
- package/dist/renderer-AMELXBNW.js +23 -0
- package/dist/renderer-BF7FYXG3.js +25 -0
- package/dist/renderer-CRRW7LTW.js +17 -0
- package/dist/renderer-CXU2MGSC.js +27 -0
- package/dist/renderer-DI66RLAG.js +30 -0
- package/dist/renderer-E2JTYQY5.js +39 -0
- package/dist/{renderer-ZAJ5353N.js → renderer-FA4BTAOL.js} +7 -7
- package/dist/{renderer-GF6S5ZX6.js → renderer-FFGFTIT4.js} +15 -14
- package/dist/renderer-IVAM7Z3Y.js +27 -0
- package/dist/renderer-J6HK2KOW.js +23 -0
- package/dist/renderer-J7J3OVLQ.js +39 -0
- package/dist/{renderer-QAMOXOZ2.js → renderer-JC7MK7SD.js} +6 -5
- package/dist/{renderer-CGOPX4HW.js → renderer-JHQC5RGJ.js} +14 -14
- package/dist/renderer-JRITSZY3.js +28 -0
- package/dist/{renderer-E6NHTVN6.js → renderer-KD5X4RIS.js} +14 -13
- package/dist/{renderer-OTHBTGBN.js → renderer-KWNNWCGD.js} +6 -5
- package/dist/{renderer-EP4GRCDX.js → renderer-LGMIAG6N.js} +7 -6
- package/dist/{renderer-IH45QV6Z.js → renderer-LQN3FXAP.js} +33 -32
- package/dist/renderer-LRL4SU43.js +29 -0
- package/dist/{renderer-D7N7PPB7.js → renderer-MBL64AJI.js} +6 -6
- package/dist/renderer-NA3DTAWF.js +39 -0
- package/dist/renderer-OR5QHR7X.js +31 -0
- package/dist/renderer-SBVWHQVW.js +30 -0
- package/dist/{renderer-KMOGGMM7.js → renderer-TLOSBJKW.js} +13 -13
- package/dist/{renderer-LE3ZKHNS.js → renderer-UDWJRRIC.js} +11 -11
- package/dist/renderer-VHK6UAW2.js +20 -0
- package/dist/{renderer-FUJNSC5X.js → renderer-W5UG2HWT.js} +5 -5
- package/dist/renderer-WOOKJOBQ.js +25 -0
- package/dist/renderer-WYNLGZRF.js +25 -0
- package/dist/{renderer-BUEFD2IF.js → renderer-Y74Y54C3.js} +8 -8
- package/dist/renderer-ZUAXGHFC.js +28 -0
- package/dist/renderer-radial-YVUDGR7C.js +21 -0
- package/dist/{state-parser-TPA67IXM.js → state-parser-CT5HQQ7E.js} +3 -3
- package/dist/state-renderer-7O3QGNJ5.js +41 -0
- package/dist/{tag-groups-DrHT2tEc.d.ts → tag-groups-BoJg3lFV.d.ts} +23 -1
- package/dist/{themes-GWhsabnx.d.ts → themes-CXYnNA4e.d.ts} +2 -2
- package/docs/architecture-report.md +3 -3
- package/docs/language-reference.md +122 -30
- package/docs/migration-sequence-color-to-tags.md +16 -8
- package/gallery/fixtures/sketch.dgmo +1 -1
- package/package.json +7 -6
- package/dist/charts-d3-SQEVMIAM.js +0 -29
- package/dist/chunk-LP7EC4MI.js +0 -16
- package/dist/chunk-UTCPNJND.js +0 -7
- package/dist/chunk-VV6HZQ5K.js +0 -40
- package/dist/renderer-3FB56573.js +0 -22
- package/dist/renderer-4PNVGHVA.js +0 -16
- package/dist/renderer-5W3HWIUL.js +0 -24
- package/dist/renderer-CO5O5VR5.js +0 -20
- package/dist/renderer-DKW273R7.js +0 -26
- package/dist/renderer-F24V3RD3.js +0 -26
- package/dist/renderer-F6WSR7UM.js +0 -39
- package/dist/renderer-FGGDZZFQ.js +0 -31
- package/dist/renderer-GJDVPXI3.js +0 -30
- package/dist/renderer-JMJ7Q5OC.js +0 -28
- package/dist/renderer-LBNVKVO3.js +0 -39
- package/dist/renderer-MUW4G2N6.js +0 -38
- package/dist/renderer-PIEPRK6M.js +0 -23
- package/dist/renderer-PKRKLOYR.js +0 -25
- package/dist/renderer-PR3KLNST.js +0 -28
- package/dist/renderer-RUHC6D3B.js +0 -25
- package/dist/renderer-UUP6OX6F.js +0 -27
- package/dist/renderer-UYZSP7MF.js +0 -25
- package/dist/renderer-XBL6CLN2.js +0 -30
- package/dist/renderer-radial-MZP3SVTZ.js +0 -21
- package/dist/state-renderer-UIE3AQM6.js +0 -40
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
tagAttrKey,
|
|
21
21
|
validateTagGroupNames,
|
|
22
22
|
validateTagValues
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-R4YGH7DJ.js";
|
|
24
24
|
import {
|
|
25
25
|
AliasRegistry,
|
|
26
26
|
ER_REGISTRY,
|
|
@@ -559,4 +559,4 @@ export {
|
|
|
559
559
|
looksLikeERDiagram,
|
|
560
560
|
extractSymbols
|
|
561
561
|
};
|
|
562
|
-
//# sourceMappingURL=chunk-
|
|
562
|
+
//# sourceMappingURL=chunk-SFSJ6XWV.js.map
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildSwatches
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RIXWLFB4.js";
|
|
4
4
|
import {
|
|
5
5
|
layoutMap,
|
|
6
6
|
mapLegendConfig,
|
|
7
7
|
mapLegendGroups,
|
|
8
8
|
parsePathRings
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-CYLSQO4L.js";
|
|
10
10
|
import {
|
|
11
11
|
TITLE_FONT_SIZE,
|
|
12
12
|
TITLE_FONT_WEIGHT,
|
|
13
13
|
TITLE_Y
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-VSPNH7LC.js";
|
|
15
15
|
import {
|
|
16
16
|
renderIntegratedLegend
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-67I3HFSF.js";
|
|
18
18
|
import {
|
|
19
19
|
FONT_FAMILY
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-ICLB27PZ.js";
|
|
21
21
|
import {
|
|
22
22
|
measureText
|
|
23
23
|
} from "./chunk-MTGGOCND.js";
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
import {
|
|
35
35
|
mix,
|
|
36
36
|
themeBaseBg
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-YVLTNNME.js";
|
|
38
38
|
|
|
39
39
|
// src/map/renderer.ts
|
|
40
40
|
import * as d3Selection from "d3-selection";
|
|
@@ -122,7 +122,7 @@ function renderClockCards(gCards, layout, resolved, palette, isDark, now, frameW
|
|
|
122
122
|
const statusColor = (cls) => cls === "ok" ? sw.ok : cls === "soon" ? sw.soon : sw.off;
|
|
123
123
|
const line1Y = cardTop + 20;
|
|
124
124
|
const timeX = cardLeft + padX;
|
|
125
|
-
g.append("text").attr("data-dgmo-clock-digital-part", "main").attr("x", timeX).attr("y", line1Y).attr("font-family", FONT_FAMILY).attr("fill", palette.text).attr("font-size", mainFont).attr("font-weight",
|
|
125
|
+
g.append("text").attr("data-dgmo-clock-digital-part", "main").attr("x", timeX).attr("y", line1Y).attr("font-family", FONT_FAMILY).attr("fill", palette.text).attr("font-size", mainFont).attr("font-weight", "bold").attr("textLength", mainW).attr("lengthAdjust", "spacing").style("font-variant-numeric", "tabular-nums").text(ts.main);
|
|
126
126
|
const stackX = timeX + mainW + stackGap;
|
|
127
127
|
const capTop = line1Y - mainFont * 0.7;
|
|
128
128
|
g.append("text").attr("data-dgmo-clock-digital-part", "sec").attr("x", stackX).attr("y", capTop + sf * 0.72).attr("font-family", FONT_FAMILY).attr("fill", muted).attr("font-size", sf).attr("textLength", secW).attr("lengthAdjust", "spacing").style("font-variant-numeric", "tabular-nums").text(`:${ts.sec}`);
|
|
@@ -781,4 +781,4 @@ export {
|
|
|
781
781
|
renderMap,
|
|
782
782
|
renderMapForExport
|
|
783
783
|
};
|
|
784
|
-
//# sourceMappingURL=chunk-
|
|
784
|
+
//# sourceMappingURL=chunk-SNBEAO4Q.js.map
|
|
@@ -4,42 +4,43 @@ import {
|
|
|
4
4
|
buildLegend,
|
|
5
5
|
compactNumber,
|
|
6
6
|
formatPct,
|
|
7
|
+
mutedFill,
|
|
7
8
|
resolveCellColor,
|
|
8
9
|
resolveColorMode
|
|
9
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-X326N4GN.js";
|
|
10
11
|
import {
|
|
11
12
|
layoutInlineHeader
|
|
12
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-FLMXJMMY.js";
|
|
13
14
|
import {
|
|
14
15
|
TITLE_FONT_SIZE,
|
|
15
16
|
TITLE_FONT_WEIGHT,
|
|
16
17
|
TITLE_Y
|
|
17
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-VSPNH7LC.js";
|
|
18
19
|
import {
|
|
19
20
|
renderIntegratedLegend
|
|
20
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-67I3HFSF.js";
|
|
21
22
|
import {
|
|
22
23
|
getLegendExtent,
|
|
23
24
|
getMaxLegendReservedHeight
|
|
24
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-IZTU6WVR.js";
|
|
25
26
|
import {
|
|
26
27
|
FONT_FAMILY
|
|
27
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-ICLB27PZ.js";
|
|
28
29
|
import {
|
|
29
30
|
LEGEND_GROUP_GAP
|
|
30
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-MFK7LF66.js";
|
|
31
32
|
import {
|
|
32
33
|
measureText
|
|
33
34
|
} from "./chunk-MTGGOCND.js";
|
|
34
35
|
import {
|
|
35
36
|
tagAttrKey
|
|
36
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-R4YGH7DJ.js";
|
|
37
38
|
import {
|
|
38
39
|
contrastText,
|
|
39
40
|
getSeriesColors,
|
|
40
41
|
mix,
|
|
41
42
|
themeBaseBg
|
|
42
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-YVLTNNME.js";
|
|
43
44
|
|
|
44
45
|
// src/treemap/renderer.ts
|
|
45
46
|
import * as d3Selection from "d3-selection";
|
|
@@ -241,7 +242,8 @@ function renderTreemap(container, parsed, palette, isDark, exportDims, options =
|
|
|
241
242
|
rootIndexByLabel,
|
|
242
243
|
seriesColors,
|
|
243
244
|
colorOffset,
|
|
244
|
-
bg: palette.bg
|
|
245
|
+
bg: palette.bg,
|
|
246
|
+
muted: mutedFill(palette)
|
|
245
247
|
};
|
|
246
248
|
for (const cell of layout.cells) {
|
|
247
249
|
const w = Math.max(0, cell.x1 - cell.x0);
|
|
@@ -281,7 +283,7 @@ function renderTreemap(container, parsed, palette, isDark, exportDims, options =
|
|
|
281
283
|
const showVal = valStr.length > 0 && w > 110;
|
|
282
284
|
const valW = showVal ? measureText(valStr, 10.5) : 0;
|
|
283
285
|
const labelMax = w - 8 - ICON_RESERVE - (showVal ? valW + 10 : 0);
|
|
284
|
-
g.append("text").attr("class", "dgmo-treemap-header").attr("x", 6).attr("y", 13).attr("font-size", 11).attr("font-weight",
|
|
286
|
+
g.append("text").attr("class", "dgmo-treemap-header").attr("x", 6).attr("y", 13).attr("font-size", 11).attr("font-weight", "bold").attr("fill", ink).text(clipLabel(cell.label, Math.max(0, labelMax), 11));
|
|
285
287
|
if (showVal) {
|
|
286
288
|
g.append("text").attr("class", "dgmo-treemap-header-value").attr("x", w - ICON_RESERVE - 4).attr("y", 13).attr("text-anchor", "end").attr("font-size", 10.5).attr("fill", ink).attr("opacity", 0.75).text(valStr);
|
|
287
289
|
}
|
|
@@ -304,7 +306,7 @@ function renderTreemap(container, parsed, palette, isDark, exportDims, options =
|
|
|
304
306
|
const vfs = clamp(Math.round(fs * 0.42), 11, 28);
|
|
305
307
|
const valOpacity = Math.max(0.45, nameOpacity - 0.1);
|
|
306
308
|
let y = PAD + Math.round(fs * 0.78);
|
|
307
|
-
g.append("text").attr("class", "dgmo-treemap-label").attr("x", PAD).attr("y", y).attr("font-size", fs).attr("font-weight",
|
|
309
|
+
g.append("text").attr("class", "dgmo-treemap-label").attr("x", PAD).attr("y", y).attr("font-size", fs).attr("font-weight", "bold").attr("fill", ink).attr("opacity", nameOpacity).text(clipLabel(cell.label, maxW, fs));
|
|
308
310
|
const valParts = [
|
|
309
311
|
opts.noValues ? "" : compactNumber(cell.value),
|
|
310
312
|
opts.noPercent ? "" : formatPct(cell.pctOfRoot)
|
|
@@ -410,7 +412,7 @@ function drawVerticalLabel(g, label, w, h, pad, ink) {
|
|
|
410
412
|
fs = Math.max(MIN_FS, Math.floor(fs * availLen / nameW));
|
|
411
413
|
const text = clipLabel(label, availLen, fs);
|
|
412
414
|
if (!text) return;
|
|
413
|
-
g.append("text").attr("class", "dgmo-treemap-label").attr("transform", `translate(${w / 2},${h / 2}) rotate(-90)`).attr("y", Math.round(fs * 0.28)).attr("text-anchor", "middle").attr("font-size", fs).attr("font-weight",
|
|
415
|
+
g.append("text").attr("class", "dgmo-treemap-label").attr("transform", `translate(${w / 2},${h / 2}) rotate(-90)`).attr("y", Math.round(fs * 0.28)).attr("text-anchor", "middle").attr("font-size", fs).attr("font-weight", "bold").attr("fill", ink).attr("opacity", 0.95).text(text);
|
|
414
416
|
}
|
|
415
417
|
function descent(fs) {
|
|
416
418
|
return Math.ceil(fs * 0.26);
|
|
@@ -439,4 +441,4 @@ export {
|
|
|
439
441
|
renderTreemapForExport,
|
|
440
442
|
renderTreemap
|
|
441
443
|
};
|
|
442
|
-
//# sourceMappingURL=chunk-
|
|
444
|
+
//# sourceMappingURL=chunk-SXD6VY7D.js.map
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
import {
|
|
2
2
|
renderInlineText
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import {
|
|
5
|
-
CARD_RADIUS
|
|
6
|
-
} from "./chunk-FJ57274M.js";
|
|
3
|
+
} from "./chunk-FWNJDD4U.js";
|
|
7
4
|
import {
|
|
8
5
|
ScaleContext
|
|
9
6
|
} from "./chunk-24YPR5EH.js";
|
|
7
|
+
import {
|
|
8
|
+
CARD_RADIUS
|
|
9
|
+
} from "./chunk-IIEI7VK5.js";
|
|
10
10
|
import {
|
|
11
11
|
serializeSvg
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-LD2JSKU3.js";
|
|
13
13
|
import {
|
|
14
14
|
TITLE_FONT_SIZE,
|
|
15
15
|
TITLE_FONT_WEIGHT
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-VSPNH7LC.js";
|
|
17
17
|
import {
|
|
18
18
|
renderIntegratedLegend
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-67I3HFSF.js";
|
|
20
20
|
import {
|
|
21
21
|
getMaxLegendReservedHeight
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-IZTU6WVR.js";
|
|
23
23
|
import {
|
|
24
24
|
FONT_FAMILY
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-ICLB27PZ.js";
|
|
26
26
|
import {
|
|
27
27
|
LEGEND_HEIGHT,
|
|
28
28
|
measureLegendText
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-MFK7LF66.js";
|
|
30
30
|
import {
|
|
31
31
|
measureText
|
|
32
32
|
} from "./chunk-MTGGOCND.js";
|
|
33
33
|
import {
|
|
34
34
|
parseKanban
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-3GLTQZKE.js";
|
|
36
36
|
import {
|
|
37
37
|
tagAttrKey
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-R4YGH7DJ.js";
|
|
39
39
|
import {
|
|
40
40
|
fillModeFromOptions,
|
|
41
41
|
legendSuppressed
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
mix,
|
|
46
46
|
shapeFill,
|
|
47
47
|
themeBaseBg
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-YVLTNNME.js";
|
|
49
49
|
|
|
50
50
|
// src/kanban/renderer.ts
|
|
51
51
|
import * as d3Selection from "d3-selection";
|
|
@@ -661,7 +661,7 @@ function renderKanban(container, parsed, palette, isDark, options) {
|
|
|
661
661
|
const cx = colLayout.x + cardLayout.x;
|
|
662
662
|
const cy = colLayout.y + cardLayout.y;
|
|
663
663
|
cg.append("rect").attr("x", cx).attr("y", cy).attr("width", cardLayout.width).attr("height", cardLayout.height).attr("rx", sCardRadius).attr("fill", cardFill).attr("stroke", cardStroke).attr("stroke-width", sCardStrokeWidth);
|
|
664
|
-
const titleEl = cg.append("text").attr("x", cx + sCardPaddingX).attr("y", cy + sCardPaddingY + sCardTitleFontSize).attr("font-size", sCardTitleFontSize).attr("font-weight", "
|
|
664
|
+
const titleEl = cg.append("text").attr("x", cx + sCardPaddingX).attr("y", cy + sCardPaddingY + sCardTitleFontSize).attr("font-size", sCardTitleFontSize).attr("font-weight", "normal").attr("fill", onCardText);
|
|
665
665
|
renderInlineText(titleEl, card.title, palette, sCardTitleFontSize);
|
|
666
666
|
if (hasMeta) {
|
|
667
667
|
const separatorY = cy + sCardHeaderHeight;
|
|
@@ -1127,7 +1127,7 @@ function renderSwimlaneCard(parent, cardLayout, tagGroups, activeTagGroup, palet
|
|
|
1127
1127
|
const cx = cardLayout.x;
|
|
1128
1128
|
const cy = cardLayout.y;
|
|
1129
1129
|
cg.append("rect").attr("x", cx).attr("y", cy).attr("width", cardLayout.width).attr("height", cardLayout.height).attr("rx", sCardRadius).attr("fill", cardFill).attr("stroke", cardStroke).attr("stroke-width", sCardStrokeWidth);
|
|
1130
|
-
const titleEl = cg.append("text").attr("x", cx + sCardPaddingX).attr("y", cy + sCardPaddingY + sCardTitleFontSize).attr("font-size", sCardTitleFontSize).attr("font-weight", "
|
|
1130
|
+
const titleEl = cg.append("text").attr("x", cx + sCardPaddingX).attr("y", cy + sCardPaddingY + sCardTitleFontSize).attr("font-size", sCardTitleFontSize).attr("font-weight", "normal").attr("fill", onCardText);
|
|
1131
1131
|
renderInlineText(titleEl, card.title, palette, sCardTitleFontSize);
|
|
1132
1132
|
if (hasMeta) {
|
|
1133
1133
|
const separatorY = cy + sCardHeaderHeight;
|
|
@@ -1154,4 +1154,4 @@ export {
|
|
|
1154
1154
|
renderKanban,
|
|
1155
1155
|
renderKanbanForExport
|
|
1156
1156
|
};
|
|
1157
|
-
//# sourceMappingURL=chunk-
|
|
1157
|
+
//# sourceMappingURL=chunk-TLM3I4XF.js.map
|
|
@@ -1,15 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
EDGE_DASH,
|
|
3
|
+
HAIRLINE_DASH
|
|
4
|
+
} from "./chunk-IIEI7VK5.js";
|
|
1
5
|
import {
|
|
2
6
|
TITLE_FONT_SIZE,
|
|
3
7
|
TITLE_FONT_WEIGHT,
|
|
4
8
|
TITLE_Y
|
|
5
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-VSPNH7LC.js";
|
|
6
10
|
import {
|
|
7
11
|
FONT_FAMILY
|
|
8
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ICLB27PZ.js";
|
|
9
13
|
import {
|
|
10
14
|
getSeriesColors,
|
|
11
15
|
mix
|
|
12
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-YVLTNNME.js";
|
|
13
17
|
import {
|
|
14
18
|
resolveColor
|
|
15
19
|
} from "./chunk-XOGQY4EC.js";
|
|
@@ -265,7 +269,7 @@ function drawGraph(g, parsed, palette, TB, pos, placements, label, colorOf, byKe
|
|
|
265
269
|
const gop = (n) => n.ghost ? 0.32 : 1;
|
|
266
270
|
const dlink = (a, b, color, arrow) => {
|
|
267
271
|
const A = P(a.key), B = P(b.key), c = mergeCorner(a, b);
|
|
268
|
-
g.append("path").attr("d", roundedL(A.x, A.y, c.x, c.y, B.x, B.y, CORNER)).attr("fill", "none").attr("stroke", color).attr("stroke-width", 2).attr("stroke-dasharray",
|
|
272
|
+
g.append("path").attr("d", roundedL(A.x, A.y, c.x, c.y, B.x, B.y, CORNER)).attr("fill", "none").attr("stroke", color).attr("stroke-width", 2).attr("stroke-dasharray", HAIRLINE_DASH).attr("opacity", 0.8);
|
|
269
273
|
if (arrow) {
|
|
270
274
|
const dx = B.x - c.x, dy = B.y - c.y, l = Math.hypot(dx, dy) || 1;
|
|
271
275
|
const ux = dx / l, uy = dy / l, px = -uy, py = ux, s = 4;
|
|
@@ -282,12 +286,12 @@ function drawGraph(g, parsed, palette, TB, pos, placements, label, colorOf, byKe
|
|
|
282
286
|
if (n.prev != null) {
|
|
283
287
|
const a = P(n.prev);
|
|
284
288
|
const e = g.append("line").attr("x1", a.x).attr("y1", a.y).attr("x2", N.x).attr("y2", N.y).attr("stroke", c).attr("stroke-width", LINE).attr("stroke-linecap", "round").attr("data-branch", n.branch).attr("opacity", o);
|
|
285
|
-
if (n.ghost) e.attr("stroke-dasharray",
|
|
289
|
+
if (n.ghost) e.attr("stroke-dasharray", EDGE_DASH);
|
|
286
290
|
}
|
|
287
291
|
if (n.parent != null) {
|
|
288
292
|
const par = byKey(n.parent), cc = branchCorner(par, n), pp = P(par.key);
|
|
289
293
|
const e = g.append("path").attr("d", roundedL(pp.x, pp.y, cc.x, cc.y, N.x, N.y, CORNER)).attr("fill", "none").attr("stroke", c).attr("stroke-width", LINE).attr("stroke-linecap", "round").attr("data-branch", n.branch).attr("opacity", o);
|
|
290
|
-
if (n.ghost) e.attr("stroke-dasharray",
|
|
294
|
+
if (n.ghost) e.attr("stroke-dasharray", EDGE_DASH);
|
|
291
295
|
}
|
|
292
296
|
if (n.mergeFrom != null) {
|
|
293
297
|
const s = byKey(n.mergeFrom), cc = mergeCorner(s, n), sp = P(s.key);
|
|
@@ -310,9 +314,9 @@ function drawGraph(g, parsed, palette, TB, pos, placements, label, colorOf, byKe
|
|
|
310
314
|
const fp = P(first.key);
|
|
311
315
|
const col = colorOf(first);
|
|
312
316
|
if (TB) {
|
|
313
|
-
g.append("text").attr("x", fp.x).attr("y", 14).attr("text-anchor", "middle").attr("font-size", 12.5).attr("font-weight",
|
|
317
|
+
g.append("text").attr("x", fp.x).attr("y", 14).attr("text-anchor", "middle").attr("font-size", 12.5).attr("font-weight", "bold").attr("fill", col).text(b.name);
|
|
314
318
|
} else {
|
|
315
|
-
g.append("text").attr("x", fp.x - DOT - 1).attr("y", fp.y - DOT - 7).attr("text-anchor", "start").attr("font-size", 12.5).attr("font-weight",
|
|
319
|
+
g.append("text").attr("x", fp.x - DOT - 1).attr("y", fp.y - DOT - 7).attr("text-anchor", "start").attr("font-size", 12.5).attr("font-weight", "bold").attr("fill", col).attr("data-branch", b.name).text(b.name);
|
|
316
320
|
}
|
|
317
321
|
}
|
|
318
322
|
}
|
|
@@ -358,11 +362,11 @@ function drawGraph(g, parsed, palette, TB, pos, placements, label, colorOf, byKe
|
|
|
358
362
|
);
|
|
359
363
|
}
|
|
360
364
|
}
|
|
361
|
-
const pill = (cx, cy, w, text, fill, textColor, border, dash, weight =
|
|
365
|
+
const pill = (cx, cy, w, text, fill, textColor, border, dash, weight = "bold") => {
|
|
362
366
|
const r = g.append("rect").attr("x", cx - w / 2).attr("y", cy - 8.5).attr("width", w).attr("height", 17).attr("rx", 8.5).attr("fill", fill);
|
|
363
367
|
if (border) {
|
|
364
368
|
r.attr("stroke", border).attr("stroke-width", 1.3);
|
|
365
|
-
if (dash) r.attr("stroke-dasharray",
|
|
369
|
+
if (dash) r.attr("stroke-dasharray", HAIRLINE_DASH);
|
|
366
370
|
}
|
|
367
371
|
g.append("text").attr("x", cx).attr("y", cy + 4).attr("text-anchor", "middle").attr("font-size", 10.5).attr("font-weight", weight).attr("fill", textColor).text(text);
|
|
368
372
|
};
|
|
@@ -384,7 +388,7 @@ function drawGraph(g, parsed, palette, TB, pos, placements, label, colorOf, byKe
|
|
|
384
388
|
palette.bg,
|
|
385
389
|
void 0,
|
|
386
390
|
false,
|
|
387
|
-
|
|
391
|
+
"bold"
|
|
388
392
|
);
|
|
389
393
|
else if (pl.kind === "ref")
|
|
390
394
|
pill(pl.x, pl.y, pl.w, pl.label, palette.bg, c, c, pl.remote);
|
|
@@ -392,7 +396,7 @@ function drawGraph(g, parsed, palette, TB, pos, placements, label, colorOf, byKe
|
|
|
392
396
|
g.append("circle").attr("cx", pl.x).attr("cy", pl.y).attr("r", 8.5).attr("fill", c);
|
|
393
397
|
g.append("text").attr("x", pl.x).attr("y", pl.y + 4).attr("text-anchor", "middle").attr("font-size", 11).attr("fill", palette.bg).text(pl.label);
|
|
394
398
|
} else if (pl.kind === "ab") {
|
|
395
|
-
g.append("text").attr("x", pl.x).attr("y", pl.y + 4).attr("text-anchor", "start").attr("font-size", 11).attr("font-weight",
|
|
399
|
+
g.append("text").attr("x", pl.x).attr("y", pl.y + 4).attr("text-anchor", "start").attr("font-size", 11).attr("font-weight", "bold").attr("fill", c).text(pl.label);
|
|
396
400
|
} else {
|
|
397
401
|
const L = label.get(n.key);
|
|
398
402
|
const gh = n.ghost;
|
|
@@ -415,14 +419,14 @@ function drawGraph(g, parsed, palette, TB, pos, placements, label, colorOf, byKe
|
|
|
415
419
|
const t = g.append("text").attr("x", tx).attr("y", ty).attr("text-anchor", anchor).attr("font-size", 12).attr("data-branch", n.branch).attr("opacity", gh ? 0.6 : 1);
|
|
416
420
|
if (L.sha)
|
|
417
421
|
t.append("tspan").attr("font-family", "ui-monospace, monospace").attr("font-size", 11).attr("fill", palette.textMuted).text(L.sha + " ");
|
|
418
|
-
t.append("tspan").attr("fill", mfill).attr("font-weight", n.kind === "cherry" ?
|
|
422
|
+
t.append("tspan").attr("fill", mfill).attr("font-weight", n.kind === "cherry" ? "normal" : "bold").attr("font-style", n.kind === "cherry" ? "italic" : "normal").text(L.msg);
|
|
419
423
|
}
|
|
420
424
|
}
|
|
421
425
|
if (captionY && parsed.notes.length) {
|
|
422
426
|
let y = captionY + 14;
|
|
423
427
|
for (const nt of parsed.notes) {
|
|
424
428
|
const t = g.append("text").attr("x", 12).attr("y", y).attr("font-size", 11.5);
|
|
425
|
-
t.append("tspan").attr("fill", palette.text).attr("font-weight",
|
|
429
|
+
t.append("tspan").attr("fill", palette.text).attr("font-weight", "bold").text((CIRCLED[nt.num - 1] ?? `#${nt.num}`) + " ");
|
|
426
430
|
t.append("tspan").attr("fill", palette.textMuted).text(nt.text);
|
|
427
431
|
y += 16;
|
|
428
432
|
}
|
|
@@ -443,4 +447,4 @@ export {
|
|
|
443
447
|
renderVersionControl,
|
|
444
448
|
renderVersionControlForExport
|
|
445
449
|
};
|
|
446
|
-
//# sourceMappingURL=chunk-
|
|
450
|
+
//# sourceMappingURL=chunk-TO6TWNMF.js.map
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
extractExportSvg,
|
|
3
|
-
runInExportContainer
|
|
4
|
-
} from "./chunk-VV6HZQ5K.js";
|
|
5
1
|
import {
|
|
6
2
|
layoutOrg
|
|
7
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KGX5LIUG.js";
|
|
8
4
|
import {
|
|
9
5
|
renderCollapseBar,
|
|
10
6
|
renderNodeCard
|
|
11
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-4AWLEWSD.js";
|
|
8
|
+
import {
|
|
9
|
+
ScaleContext
|
|
10
|
+
} from "./chunk-24YPR5EH.js";
|
|
12
11
|
import {
|
|
13
12
|
CARD_RADIUS,
|
|
14
13
|
COLLAPSE_BAR_HEIGHT,
|
|
@@ -25,40 +24,41 @@ import {
|
|
|
25
24
|
META_LINE_HEIGHT,
|
|
26
25
|
NODE_STROKE_WIDTH,
|
|
27
26
|
SEPARATOR_GAP
|
|
28
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-IIEI7VK5.js";
|
|
29
28
|
import {
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
extractExportSvg,
|
|
30
|
+
runInExportContainer
|
|
31
|
+
} from "./chunk-QFIXL3OK.js";
|
|
32
32
|
import {
|
|
33
33
|
TITLE_FONT_SIZE,
|
|
34
34
|
TITLE_FONT_WEIGHT
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-VSPNH7LC.js";
|
|
36
36
|
import {
|
|
37
37
|
renderIntegratedLegend
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-67I3HFSF.js";
|
|
39
39
|
import {
|
|
40
40
|
getMaxLegendReservedHeight
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-IZTU6WVR.js";
|
|
42
42
|
import {
|
|
43
43
|
FONT_FAMILY
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-ICLB27PZ.js";
|
|
45
45
|
import {
|
|
46
46
|
EYE_CLOSED_PATH,
|
|
47
47
|
EYE_OPEN_PATH,
|
|
48
48
|
LEGEND_EYE_GAP,
|
|
49
49
|
LEGEND_EYE_SIZE,
|
|
50
50
|
LEGEND_HEIGHT
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-MFK7LF66.js";
|
|
52
52
|
import {
|
|
53
53
|
measureText
|
|
54
54
|
} from "./chunk-MTGGOCND.js";
|
|
55
55
|
import {
|
|
56
56
|
parseOrg
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-QAPFXLAC.js";
|
|
58
58
|
import {
|
|
59
59
|
resolveTagColor,
|
|
60
60
|
tagAttrKey
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-R4YGH7DJ.js";
|
|
62
62
|
import {
|
|
63
63
|
fillModeFromOptions
|
|
64
64
|
} from "./chunk-M5OOAP65.js";
|
|
@@ -67,7 +67,7 @@ import {
|
|
|
67
67
|
mix,
|
|
68
68
|
shapeFill,
|
|
69
69
|
themeBaseBg
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-YVLTNNME.js";
|
|
71
71
|
|
|
72
72
|
// src/org/renderer.ts
|
|
73
73
|
import * as d3Selection from "d3-selection";
|
|
@@ -493,4 +493,4 @@ export {
|
|
|
493
493
|
renderOrg,
|
|
494
494
|
renderOrgForExport
|
|
495
495
|
};
|
|
496
|
-
//# sourceMappingURL=chunk-
|
|
496
|
+
//# sourceMappingURL=chunk-U2JIFCJN.js.map
|
|
@@ -1,18 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
appendArrowheadMarkers
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-XBJJP2HN.js";
|
|
4
|
+
import {
|
|
5
|
+
ARROWHEAD_HEIGHT,
|
|
6
|
+
ARROWHEAD_WIDTH,
|
|
7
|
+
EDGE_DASH
|
|
8
|
+
} from "./chunk-IIEI7VK5.js";
|
|
4
9
|
import {
|
|
5
10
|
TITLE_FONT_SIZE,
|
|
6
11
|
TITLE_FONT_WEIGHT,
|
|
7
12
|
TITLE_Y
|
|
8
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-VSPNH7LC.js";
|
|
9
14
|
import {
|
|
10
15
|
FONT_FAMILY
|
|
11
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-ICLB27PZ.js";
|
|
12
17
|
import {
|
|
18
|
+
UNTAGGED_TAG_COLOR,
|
|
13
19
|
resolveTagColor,
|
|
14
20
|
tagAttrKey
|
|
15
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-R4YGH7DJ.js";
|
|
16
22
|
import {
|
|
17
23
|
fillModeFromOptions
|
|
18
24
|
} from "./chunk-M5OOAP65.js";
|
|
@@ -20,7 +26,7 @@ import {
|
|
|
20
26
|
contrastText,
|
|
21
27
|
mix,
|
|
22
28
|
themeBaseBg
|
|
23
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-YVLTNNME.js";
|
|
24
30
|
import {
|
|
25
31
|
CATEGORICAL_COLOR_ORDER,
|
|
26
32
|
resolveColor
|
|
@@ -36,8 +42,6 @@ var NODE_RX = 8;
|
|
|
36
42
|
var NODE_STROKE = 1.5;
|
|
37
43
|
var EDGE_STROKE = 1.6;
|
|
38
44
|
var EDGE_CORNER_R = 11;
|
|
39
|
-
var ARROW_W = 9;
|
|
40
|
-
var ARROW_H = 6.4;
|
|
41
45
|
var LANE_RADIUS = 10;
|
|
42
46
|
var LANE_INSET = 2;
|
|
43
47
|
function roundedPolyline(pts, radius) {
|
|
@@ -109,8 +113,8 @@ function renderSwimlaneForExport(container, parsed, layout, palette, isDark, opt
|
|
|
109
113
|
};
|
|
110
114
|
appendArrowheadMarkers(defs, {
|
|
111
115
|
idPrefix: "sw",
|
|
112
|
-
width:
|
|
113
|
-
height:
|
|
116
|
+
width: ARROWHEAD_WIDTH,
|
|
117
|
+
height: ARROWHEAD_HEIGHT,
|
|
114
118
|
baseFill: palette.textMuted,
|
|
115
119
|
colors: [ev.error, ev.success]
|
|
116
120
|
});
|
|
@@ -166,14 +170,14 @@ function renderSwimlaneForExport(container, parsed, layout, palette, isDark, opt
|
|
|
166
170
|
isLR ? { tl: LANE_RADIUS, bl: LANE_RADIUS } : { tl: LANE_RADIUS, tr: LANE_RADIUS }
|
|
167
171
|
)
|
|
168
172
|
).attr("fill", mix(hex, baseBg, 16)).attr("opacity", 0.6);
|
|
169
|
-
laneG.append("text").attr("x", isLR ? bx + 12 : bx + bw / 2).attr("y", isLR ? by + bh / 2 : by + band.headerSize / 2).attr("text-anchor", isLR ? "start" : "middle").attr("dominant-baseline", "middle").attr("font-size", LANE_LABEL_FONT).attr("font-weight", "
|
|
173
|
+
laneG.append("text").attr("x", isLR ? bx + 12 : bx + bw / 2).attr("y", isLR ? by + bh / 2 : by + band.headerSize / 2).attr("text-anchor", isLR ? "start" : "middle").attr("dominant-baseline", "middle").attr("font-size", LANE_LABEL_FONT).attr("font-weight", "bold").attr("fill", mix(hex, palette.text, 55)).text(band.label);
|
|
170
174
|
}
|
|
171
175
|
const phaseG = root.append("g").attr("class", "dgmo-swimlane-phases");
|
|
172
176
|
layout.phases.forEach((band, idx) => {
|
|
173
177
|
if (idx % 2 === 1) {
|
|
174
178
|
phaseG.append("rect").attr("x", band.x).attr("y", band.y).attr("width", band.width).attr("height", band.height).attr("rx", LANE_RADIUS).attr("fill", palette.text).attr("opacity", 0.05).attr("pointer-events", "none");
|
|
175
179
|
}
|
|
176
|
-
phaseG.append("text").attr("x", isLR ? band.x + band.width / 2 : band.headerSize / 2).attr("y", isLR ? band.headerSize / 2 : band.y + band.height / 2).attr("text-anchor", "middle").attr("dominant-baseline", "middle").attr("font-size", PHASE_LABEL_FONT).attr("font-weight", "
|
|
180
|
+
phaseG.append("text").attr("x", isLR ? band.x + band.width / 2 : band.headerSize / 2).attr("y", isLR ? band.headerSize / 2 : band.y + band.height / 2).attr("text-anchor", "middle").attr("dominant-baseline", "middle").attr("font-size", PHASE_LABEL_FONT).attr("font-weight", "bold").attr("letter-spacing", "0.06em").attr("fill", palette.textMuted).attr("data-line-number", String(band.lineNumber)).text(band.label);
|
|
177
181
|
});
|
|
178
182
|
const activeTag = opts.activeTagGroup ?? null;
|
|
179
183
|
const outline = fillMode === "outline";
|
|
@@ -182,7 +186,7 @@ function renderSwimlaneForExport(container, parsed, layout, palette, isDark, opt
|
|
|
182
186
|
const key = tagAttrKey(activeTag);
|
|
183
187
|
if (n.tags[key]) {
|
|
184
188
|
const c = resolveTagColor(n.tags, [...parsed.tagGroups], activeTag);
|
|
185
|
-
if (c && c !==
|
|
189
|
+
if (c && c !== UNTAGGED_TAG_COLOR)
|
|
186
190
|
return {
|
|
187
191
|
fill: fillMode === "solid" ? c : outline ? baseBg : mix(c, baseBg, 22),
|
|
188
192
|
stroke: c
|
|
@@ -233,7 +237,7 @@ function renderSwimlaneForExport(container, parsed, layout, palette, isDark, opt
|
|
|
233
237
|
marker = `sw-arrow-${ev.success.replace("#", "")}`;
|
|
234
238
|
}
|
|
235
239
|
const d = roundedPolyline(e.points, EDGE_CORNER_R);
|
|
236
|
-
edgeG.append("path").attr("class", "sw-edge sw-edge-group").attr("d", d).attr("fill", "none").attr("stroke", stroke).attr("stroke-width", EDGE_STROKE).attr("stroke-dasharray", e.back ?
|
|
240
|
+
edgeG.append("path").attr("class", "sw-edge sw-edge-group").attr("d", d).attr("fill", "none").attr("stroke", stroke).attr("stroke-width", EDGE_STROKE).attr("stroke-dasharray", e.back ? EDGE_DASH : null).attr("marker-end", `url(#${marker})`).attr("data-line-number", String(e.lineNumber));
|
|
237
241
|
if (e.label) {
|
|
238
242
|
const segLen = [];
|
|
239
243
|
let total = 0;
|
|
@@ -401,4 +405,4 @@ function drawCenteredLabel(g, label, cx, cy, fill, fontSize, tight = false, halo
|
|
|
401
405
|
export {
|
|
402
406
|
renderSwimlaneForExport
|
|
403
407
|
};
|
|
404
|
-
//# sourceMappingURL=chunk-
|
|
408
|
+
//# sourceMappingURL=chunk-U4ND3J6C.js.map
|