@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
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
META_FONT_SIZE,
|
|
8
8
|
META_LINE_HEIGHT,
|
|
9
9
|
SEPARATOR_GAP
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-IIEI7VK5.js";
|
|
11
11
|
import {
|
|
12
12
|
measureText
|
|
13
13
|
} from "./chunk-MTGGOCND.js";
|
|
@@ -489,4 +489,4 @@ export {
|
|
|
489
489
|
focusFamily,
|
|
490
490
|
layoutFamily
|
|
491
491
|
};
|
|
492
|
-
//# sourceMappingURL=chunk-
|
|
492
|
+
//# sourceMappingURL=chunk-EOB7XVYR.js.map
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// src/utils/fit-canvas.ts
|
|
2
|
+
var MIN_CANVAS_WIDTH = 480;
|
|
3
|
+
function fitDiagramToCanvas(p) {
|
|
4
|
+
const scaleX = (p.width - p.padding * 2) / p.diagramW;
|
|
5
|
+
let scale;
|
|
6
|
+
let canvasHeight;
|
|
7
|
+
let canvasWidth;
|
|
8
|
+
if (p.exportMode) {
|
|
9
|
+
scale = Math.min(p.maxScale, scaleX, 1);
|
|
10
|
+
canvasHeight = p.titleHeight + p.diagramH * scale + p.padding * 2;
|
|
11
|
+
canvasWidth = Math.round(
|
|
12
|
+
Math.min(
|
|
13
|
+
p.width,
|
|
14
|
+
Math.max(MIN_CANVAS_WIDTH, p.diagramW * scale + p.padding * 2)
|
|
15
|
+
)
|
|
16
|
+
);
|
|
17
|
+
} else {
|
|
18
|
+
const availH = p.height - p.titleHeight;
|
|
19
|
+
const scaleY = (availH - p.padding * 2) / p.diagramH;
|
|
20
|
+
scale = Math.min(p.maxScale, scaleX, scaleY);
|
|
21
|
+
canvasHeight = p.height;
|
|
22
|
+
canvasWidth = p.width;
|
|
23
|
+
}
|
|
24
|
+
const scaledW = p.diagramW * scale;
|
|
25
|
+
return {
|
|
26
|
+
scale,
|
|
27
|
+
offsetX: (canvasWidth - scaledW) / 2,
|
|
28
|
+
offsetY: p.titleHeight + p.padding,
|
|
29
|
+
canvasHeight,
|
|
30
|
+
canvasWidth
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export {
|
|
35
|
+
MIN_CANVAS_WIDTH,
|
|
36
|
+
fitDiagramToCanvas
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=chunk-EPDBWATV.js.map
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
stripDefaultModifier,
|
|
18
18
|
tagAttrKey,
|
|
19
19
|
validateTagGroupNames
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-R4YGH7DJ.js";
|
|
21
21
|
import {
|
|
22
22
|
AliasRegistry,
|
|
23
23
|
GANTT_BOOLEAN_SET,
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
} from "./chunk-M5OOAP65.js";
|
|
36
36
|
import {
|
|
37
37
|
getSeriesColors
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-YVLTNNME.js";
|
|
39
39
|
import {
|
|
40
40
|
formatDgmoError,
|
|
41
41
|
makeDgmoError
|
|
@@ -1381,4 +1381,4 @@ export {
|
|
|
1381
1381
|
GANTT_KNOWN_OPTIONS,
|
|
1382
1382
|
GANTT_KNOWN_BOOLEANS
|
|
1383
1383
|
};
|
|
1384
|
-
//# sourceMappingURL=chunk-
|
|
1384
|
+
//# sourceMappingURL=chunk-FJADQOFQ.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TITLE_FONT_SIZE,
|
|
3
3
|
TITLE_Y
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-VSPNH7LC.js";
|
|
5
5
|
import {
|
|
6
6
|
LEGEND_HEIGHT
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-MFK7LF66.js";
|
|
8
8
|
import {
|
|
9
9
|
measureText
|
|
10
10
|
} from "./chunk-MTGGOCND.js";
|
|
@@ -83,4 +83,4 @@ export {
|
|
|
83
83
|
INLINE_HEADER_PAD,
|
|
84
84
|
layoutInlineHeader
|
|
85
85
|
};
|
|
86
|
-
//# sourceMappingURL=chunk-
|
|
86
|
+
//# sourceMappingURL=chunk-FLMXJMMY.js.map
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
MONO_FAMILY
|
|
3
|
+
} from "./chunk-ICLB27PZ.js";
|
|
4
|
+
|
|
1
5
|
// src/utils/safe-href.ts
|
|
2
6
|
var ALLOWED_SCHEMES = ["http", "https", "mailto"];
|
|
3
7
|
var SCHEME_RE = /^([a-z][a-z0-9+.-]*):/i;
|
|
@@ -76,7 +80,7 @@ function renderInlineText(textEl, text, palette, fontSize) {
|
|
|
76
80
|
if (span.bold) tspan.attr("font-weight", "bold");
|
|
77
81
|
if (span.italic) tspan.attr("font-style", "italic");
|
|
78
82
|
if (span.code) {
|
|
79
|
-
tspan.attr("font-family",
|
|
83
|
+
tspan.attr("font-family", MONO_FAMILY);
|
|
80
84
|
if (fontSize) tspan.attr("font-size", fontSize - 1);
|
|
81
85
|
}
|
|
82
86
|
}
|
|
@@ -90,4 +94,4 @@ export {
|
|
|
90
94
|
stripInlineMarkdown,
|
|
91
95
|
renderInlineText
|
|
92
96
|
};
|
|
93
|
-
//# sourceMappingURL=chunk-
|
|
97
|
+
//# sourceMappingURL=chunk-FWNJDD4U.js.map
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
matchTagBlockHeading,
|
|
12
12
|
stripDefaultModifier,
|
|
13
13
|
tagAttrKey
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-R4YGH7DJ.js";
|
|
15
15
|
import {
|
|
16
16
|
FAMILY_PERSON_REGISTRY,
|
|
17
17
|
FAMILY_UNION_REGISTRY,
|
|
@@ -571,4 +571,4 @@ export {
|
|
|
571
571
|
FAMILY_DIAGNOSTICS,
|
|
572
572
|
parseFamily
|
|
573
573
|
};
|
|
574
|
-
//# sourceMappingURL=chunk-
|
|
574
|
+
//# sourceMappingURL=chunk-GINNZHVN.js.map
|
|
@@ -4,40 +4,48 @@ import {
|
|
|
4
4
|
renderNoteBadge,
|
|
5
5
|
renderNoteBox,
|
|
6
6
|
renderNoteConnector
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KO6DGOOB.js";
|
|
8
|
+
import {
|
|
9
|
+
appendArrowheadMarkers,
|
|
10
|
+
appendReverseArrowheadMarkers
|
|
11
|
+
} from "./chunk-XBJJP2HN.js";
|
|
8
12
|
import {
|
|
9
13
|
wrapDescriptionLines
|
|
10
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-WMIKC5XO.js";
|
|
11
15
|
import {
|
|
12
16
|
renderInlineText,
|
|
13
17
|
stripInlineMarkdown
|
|
14
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-FWNJDD4U.js";
|
|
15
19
|
import {
|
|
20
|
+
ScaleContext
|
|
21
|
+
} from "./chunk-24YPR5EH.js";
|
|
22
|
+
import {
|
|
23
|
+
ARROWHEAD_HEIGHT,
|
|
24
|
+
ARROWHEAD_WIDTH,
|
|
25
|
+
CARD_RADIUS,
|
|
26
|
+
CONTAINER_RADIUS,
|
|
16
27
|
EDGE_LABEL_KNOCKOUT_OPACITY,
|
|
17
28
|
EDGE_STROKE_WIDTH,
|
|
18
29
|
NODE_STROKE_WIDTH
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import {
|
|
21
|
-
ScaleContext
|
|
22
|
-
} from "./chunk-24YPR5EH.js";
|
|
30
|
+
} from "./chunk-IIEI7VK5.js";
|
|
23
31
|
import {
|
|
24
32
|
layoutInlineHeader
|
|
25
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-FLMXJMMY.js";
|
|
26
34
|
import {
|
|
27
35
|
TITLE_FONT_SIZE,
|
|
28
36
|
TITLE_FONT_WEIGHT,
|
|
29
37
|
TITLE_Y
|
|
30
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-VSPNH7LC.js";
|
|
31
39
|
import {
|
|
32
40
|
renderIntegratedLegend
|
|
33
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-67I3HFSF.js";
|
|
34
42
|
import {
|
|
35
43
|
getLegendExtent,
|
|
36
44
|
getMaxLegendReservedHeight
|
|
37
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-IZTU6WVR.js";
|
|
38
46
|
import {
|
|
39
47
|
FONT_FAMILY
|
|
40
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-ICLB27PZ.js";
|
|
41
49
|
import {
|
|
42
50
|
CHAR_WIDTH_RATIO,
|
|
43
51
|
measureText,
|
|
@@ -45,7 +53,7 @@ import {
|
|
|
45
53
|
} from "./chunk-MTGGOCND.js";
|
|
46
54
|
import {
|
|
47
55
|
resolveTagColor
|
|
48
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-R4YGH7DJ.js";
|
|
49
57
|
import {
|
|
50
58
|
fillModeFromOptions,
|
|
51
59
|
legendInlineRequested,
|
|
@@ -58,7 +66,7 @@ import {
|
|
|
58
66
|
shapeFill,
|
|
59
67
|
themeBaseBg,
|
|
60
68
|
valueRampColor
|
|
61
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-YVLTNNME.js";
|
|
62
70
|
import {
|
|
63
71
|
resolveColor
|
|
64
72
|
} from "./chunk-XOGQY4EC.js";
|
|
@@ -70,15 +78,13 @@ var DIAGRAM_PADDING = 20;
|
|
|
70
78
|
var NODE_FONT_SIZE = 11;
|
|
71
79
|
var MIN_NODE_FONT_SIZE = 9;
|
|
72
80
|
var EDGE_LABEL_FONT_SIZE = 11;
|
|
73
|
-
var NODE_RX =
|
|
81
|
+
var NODE_RX = CARD_RADIUS;
|
|
74
82
|
var COLLAPSE_BAR_HEIGHT = 4;
|
|
75
|
-
var ARROWHEAD_W = 5;
|
|
76
|
-
var ARROWHEAD_H = 4;
|
|
77
83
|
var DESC_FONT_SIZE = 10;
|
|
78
84
|
var DESC_LINE_HEIGHT = 1.4;
|
|
79
85
|
var MAX_DESC_LINES = 6;
|
|
80
86
|
var NODE_TEXT_PADDING = 12;
|
|
81
|
-
var GROUP_RX =
|
|
87
|
+
var GROUP_RX = CONTAINER_RADIUS;
|
|
82
88
|
var GROUP_LABEL_FONT_SIZE = 14;
|
|
83
89
|
var GROUP_LABEL_ZONE = 32;
|
|
84
90
|
var RAMP_FLOOR = 15;
|
|
@@ -226,20 +232,21 @@ function edgeColor(edge, tagGroups, activeGroupName, palette) {
|
|
|
226
232
|
return palette.textMuted;
|
|
227
233
|
}
|
|
228
234
|
function ensureArrowMarkers(defs, colors) {
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
235
|
+
const fresh = [...colors].filter(
|
|
236
|
+
(color) => defs.select(`#bl-arrow-${color.replace("#", "")}`).empty()
|
|
237
|
+
);
|
|
238
|
+
if (fresh.length === 0) return;
|
|
239
|
+
const opts = {
|
|
240
|
+
idPrefix: "bl",
|
|
241
|
+
width: ARROWHEAD_WIDTH,
|
|
242
|
+
height: ARROWHEAD_HEIGHT,
|
|
243
|
+
// Every marker here is per-colour; the base id is never referenced, so it
|
|
244
|
+
// takes the first colour rather than introducing a palette dependency.
|
|
245
|
+
baseFill: fresh[0],
|
|
246
|
+
colors: fresh
|
|
247
|
+
};
|
|
248
|
+
appendArrowheadMarkers(defs, opts);
|
|
249
|
+
appendReverseArrowheadMarkers(defs, opts);
|
|
243
250
|
}
|
|
244
251
|
function renderBoxesAndLines(container, parsed, layout, palette, isDark, options) {
|
|
245
252
|
const {
|
|
@@ -444,7 +451,7 @@ function renderBoxesAndLines(container, parsed, layout, palette, isDark, options
|
|
|
444
451
|
const lineH = fitted.fontSize * 1.3;
|
|
445
452
|
const totalH = fitted.lines.length * lineH;
|
|
446
453
|
for (let li = 0; li < fitted.lines.length; li++) {
|
|
447
|
-
groupG.append("text").attr("class", "bl-group-label").attr("x", group.x).attr("y", group.y - totalH / 2 + lineH / 2 + li * lineH).attr("text-anchor", "middle").attr("dominant-baseline", "central").attr("font-family", FONT_FAMILY).attr("font-size", fitted.fontSize).attr("font-weight", "
|
|
454
|
+
groupG.append("text").attr("class", "bl-group-label").attr("x", group.x).attr("y", group.y - totalH / 2 + lineH / 2 + li * lineH).attr("text-anchor", "middle").attr("dominant-baseline", "central").attr("font-family", FONT_FAMILY).attr("font-size", fitted.fontSize).attr("font-weight", "bold").attr("fill", palette.text).text(fitted.lines[li]);
|
|
448
455
|
}
|
|
449
456
|
if (group.childCount !== void 0 && group.childCount > 0) {
|
|
450
457
|
const chipFont = Math.max(9, sMinNodeFontSize - 2);
|
|
@@ -456,11 +463,11 @@ function renderBoxesAndLines(container, parsed, layout, palette, isDark, options
|
|
|
456
463
|
const chipCx = gx + group.width - chipW / 2 - 6;
|
|
457
464
|
const chipCy = gy + chipH / 2 + 6;
|
|
458
465
|
groupG.append("rect").attr("class", "bl-collapse-count").attr("x", chipCx - chipW / 2).attr("y", chipCy - chipH / 2).attr("width", chipW).attr("height", chipH).attr("rx", chipH / 2).attr("ry", chipH / 2).attr("fill", palette.textMuted).attr("fill-opacity", 0.18);
|
|
459
|
-
groupG.append("text").attr("class", "bl-collapse-count").attr("x", chipCx).attr("y", chipCy).attr("text-anchor", "middle").attr("dominant-baseline", "central").attr("font-family", FONT_FAMILY).attr("font-size", chipFont).attr("font-weight", "
|
|
466
|
+
groupG.append("text").attr("class", "bl-collapse-count").attr("x", chipCx).attr("y", chipCy).attr("text-anchor", "middle").attr("dominant-baseline", "central").attr("font-family", FONT_FAMILY).attr("font-size", chipFont).attr("font-weight", "bold").attr("fill", palette.text).text(String(group.childCount));
|
|
460
467
|
}
|
|
461
468
|
} else {
|
|
462
469
|
groupG.append("rect").attr("x", gx).attr("y", gy).attr("width", group.width).attr("height", groupHeight).attr("rx", GROUP_RX).attr("ry", GROUP_RX).attr("fill", mix(palette.surface, palette.bg, 40)).attr("stroke", palette.textMuted).attr("stroke-width", 1).attr("stroke-opacity", 0.35);
|
|
463
|
-
groupG.append("text").attr("class", "bl-group-label").attr("x", gx + group.width / 2).attr("y", gy + 18).attr("text-anchor", "middle").attr("font-family", FONT_FAMILY).attr("font-size", sGroupLabelFontSize).attr("font-weight", "
|
|
470
|
+
groupG.append("text").attr("class", "bl-group-label").attr("x", gx + group.width / 2).attr("y", gy + 18).attr("text-anchor", "middle").attr("font-family", FONT_FAMILY).attr("font-size", sGroupLabelFontSize).attr("font-weight", "bold").attr("fill", palette.text).text(group.label);
|
|
464
471
|
}
|
|
465
472
|
}
|
|
466
473
|
for (let i = 0; i < layout.edges.length; i++) {
|
|
@@ -648,7 +655,7 @@ function renderBoxesAndLines(container, parsed, layout, palette, isDark, options
|
|
|
648
655
|
}
|
|
649
656
|
if (parsed.showValues !== false && node.value !== void 0) {
|
|
650
657
|
const valueLabel = parsed.boxMetric ? `${parsed.boxMetric}: ${node.value}` : String(node.value);
|
|
651
|
-
nodeG.append("text").attr("class", "bl-node-value").attr("x", 0).attr("y", descStartY + visibleLines.length * descLineH).attr("text-anchor", "middle").attr("dominant-baseline", "central").attr("font-size", VALUE_FONT_SIZE).attr("font-weight", "
|
|
658
|
+
nodeG.append("text").attr("class", "bl-node-value").attr("x", 0).attr("y", descStartY + visibleLines.length * descLineH).attr("text-anchor", "middle").attr("dominant-baseline", "central").attr("font-size", VALUE_FONT_SIZE).attr("font-weight", "bold").attr("fill", colors.text).text(valueLabel);
|
|
652
659
|
}
|
|
653
660
|
} else if (parsed.showValues !== false && node.value !== void 0) {
|
|
654
661
|
const valueLabel = parsed.boxMetric ? `${parsed.boxMetric}: ${node.value}` : String(node.value);
|
|
@@ -675,7 +682,7 @@ function renderBoxesAndLines(container, parsed, layout, palette, isDark, options
|
|
|
675
682
|
const lineH = fitted.fontSize * 1.3;
|
|
676
683
|
const totalH = fitted.lines.length * lineH;
|
|
677
684
|
for (let li = 0; li < fitted.lines.length; li++) {
|
|
678
|
-
nodeG.append("text").attr("x", 0).attr("y", -totalH / 2 + lineH / 2 + li * lineH).attr("text-anchor", "middle").attr("dominant-baseline", "central").attr("font-size", fitted.fontSize).attr("font-weight", "
|
|
685
|
+
nodeG.append("text").attr("x", 0).attr("y", -totalH / 2 + lineH / 2 + li * lineH).attr("text-anchor", "middle").attr("dominant-baseline", "central").attr("font-size", fitted.fontSize).attr("font-weight", "bold").attr("fill", colors.text).text(fitted.lines[li]);
|
|
679
686
|
}
|
|
680
687
|
}
|
|
681
688
|
if (ln.note) {
|
|
@@ -838,4 +845,4 @@ export {
|
|
|
838
845
|
renderBoxesAndLines,
|
|
839
846
|
renderBoxesAndLinesForExport
|
|
840
847
|
};
|
|
841
|
-
//# sourceMappingURL=chunk-
|
|
848
|
+
//# sourceMappingURL=chunk-GJH7ZEPH.js.map
|