@diagrammo/dgmo 0.77.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 +19 -12
- package/dist/advanced.js +124 -120
- package/dist/block.css +1 -1
- package/dist/block.d.ts +2 -2
- package/dist/block.js +45 -41
- package/dist/{chart-meta-Cf_jkApJ.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-BH3BQICT.js → chunk-32VR65TL.js} +63 -36
- package/dist/{chunk-N5NQIZ56.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-3E4YB6TY.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-SWUQJ5VR.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-U4DS2ODO.js → chunk-67I3HFSF.js} +9 -9
- package/dist/{chunk-WQXD3IIN.js → chunk-6B3M6LW6.js} +10 -8
- package/dist/{chunk-TKIPK5P6.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-RV5A3EGI.js → chunk-BB2ORSTF.js} +19 -18
- package/dist/{chunk-SI3PYDL4.js → chunk-BJB4YDJP.js} +21 -21
- package/dist/{chunk-FR5EVD2X.js → chunk-BPM52K3Z.js} +38 -31
- package/dist/{chunk-TI4YUUW6.js → chunk-BSREARWG.js} +29 -28
- package/dist/{chunk-F4V67JXG.js → chunk-CTERZC4K.js} +2 -2
- package/dist/{chunk-WHWUVDYK.js → chunk-CYLSQO4L.js} +6 -6
- package/dist/{chunk-J76YDS4V.js → chunk-DCPD5SHV.js} +3 -3
- package/dist/{chunk-H7BYMIVK.js → chunk-ENDB5YSV.js} +67 -27
- 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-LYJ53DBK.js → chunk-GJH7ZEPH.js} +41 -36
- package/dist/{chunk-2MTM4E6M.js → chunk-GQEXY7XL.js} +68 -65
- package/dist/{chunk-XFXJXLK7.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-HDLRRY3N.js → chunk-IE47TYZT.js} +177 -118
- package/dist/{chunk-FJ57274M.js → chunk-IIEI7VK5.js} +15 -1
- package/dist/{chunk-XPBJVSRY.js → chunk-IMO46ROR.js} +38 -32
- package/dist/{chunk-VRPV6QXR.js → chunk-IZTU6WVR.js} +2 -2
- package/dist/{chunk-CIWFL2LM.js → chunk-JOD2CK2M.js} +16 -14
- package/dist/{chunk-XCFIAGT7.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-5ZD4DDG7.js → chunk-L26M3X7K.js} +16 -13
- package/dist/{chunk-RU2HHHYA.js → chunk-LD2JSKU3.js} +12 -2
- package/dist/{chunk-OO2L2LWV.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-6IN4F4RH.js → chunk-M3LZCDB6.js} +40 -42
- package/dist/{chunk-YT5ICQ4R.js → chunk-MFK7LF66.js} +2 -2
- package/dist/{chunk-UH5YTZN7.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-B52RL5VV.js → chunk-P54AX5XN.js} +9 -9
- package/dist/{chunk-MZEGUDTA.js → chunk-P64NBPSK.js} +14 -14
- package/dist/{chunk-FF7LRT5L.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-OZOHREFQ.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-D3B6YEZK.js → chunk-RUNI4OXP.js} +18 -14
- package/dist/{chunk-ICVIJLBA.js → chunk-SFSJ6XWV.js} +2 -2
- package/dist/{chunk-QBM5BURJ.js → chunk-SNBEAO4Q.js} +8 -8
- package/dist/{chunk-DSXWJAOA.js → chunk-SXD6VY7D.js} +16 -14
- package/dist/{chunk-V4NHFY22.js → chunk-TLM3I4XF.js} +16 -16
- package/dist/{chunk-3O7ZYVJV.js → chunk-TO6TWNMF.js} +19 -15
- package/dist/{chunk-CYMYZYLI.js → chunk-U2JIFCJN.js} +18 -18
- package/dist/{chunk-SSEAULA5.js → chunk-U4ND3J6C.js} +18 -14
- package/dist/{chunk-QXMHBIQG.js → chunk-UCF6TKWV.js} +51 -48
- package/dist/{chunk-RGW26UAR.js → chunk-UDYJVX6Y.js} +9 -9
- package/dist/{chunk-7CXW6EGX.js → chunk-UQY2VLUK.js} +25 -23
- package/dist/{chunk-EUVUOPRC.js → chunk-VAA7QSZ7.js} +53 -32
- package/dist/{chunk-43AJKH2U.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-CHOK7NCJ.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-UBDVAHGK.js → chunk-XDPJMLOH.js} +30 -27
- package/dist/{chunk-CF3I5SOG.js → chunk-YKDZ3ZRI.js} +27 -25
- package/dist/{chunk-GLREDNBA.js → chunk-YVLTNNME.js} +12 -2
- package/dist/{chunk-6ZZKEYBS.js → chunk-ZGOBAMQ2.js} +15 -13
- package/dist/{chunk-6BVAW7KI.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-BiaJtaSw.d.ts → d3-CQT5bwpb.d.ts} +1 -1
- package/dist/{dgmo-router-BwXHZ_P3.d.ts → dgmo-router-C9CsswPZ.d.ts} +1 -1
- package/dist/{dgmo-router-A3LIHT6H.js → dgmo-router-XZNCLYTV.js} +30 -29
- package/dist/{dimensions-OFF4GRFL.js → dimensions-SIZMZ4DC.js} +8 -8
- package/dist/{flowchart-renderer-BBJUPORB.js → flowchart-renderer-FDJ4QQXE.js} +15 -14
- package/dist/index.d.ts +7 -7
- package/dist/index.js +58 -43
- package/dist/{layout-Y2V3LYV7.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-2NYQDW37.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-Y3Y7PEUS.js → renderer-FA4BTAOL.js} +7 -7
- package/dist/{renderer-G2DPKJAN.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-GHBF5PRH.js → renderer-JC7MK7SD.js} +6 -5
- package/dist/{renderer-VF7X66SL.js → renderer-JHQC5RGJ.js} +14 -14
- package/dist/renderer-JRITSZY3.js +28 -0
- package/dist/{renderer-ANJUDBOS.js → renderer-KD5X4RIS.js} +14 -13
- package/dist/{renderer-CVWQD442.js → renderer-KWNNWCGD.js} +6 -5
- package/dist/{renderer-FTX67CYZ.js → renderer-LGMIAG6N.js} +7 -6
- package/dist/{renderer-EDVCGIQO.js → renderer-LQN3FXAP.js} +33 -32
- package/dist/renderer-LRL4SU43.js +29 -0
- package/dist/{renderer-R5HIRN2M.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-DNFV2IQI.js → renderer-TLOSBJKW.js} +13 -13
- package/dist/{renderer-EFQSMHID.js → renderer-UDWJRRIC.js} +11 -11
- package/dist/renderer-VHK6UAW2.js +20 -0
- package/dist/{renderer-2ANDPQWC.js → renderer-W5UG2HWT.js} +5 -5
- package/dist/renderer-WOOKJOBQ.js +25 -0
- package/dist/renderer-WYNLGZRF.js +25 -0
- package/dist/{renderer-RNFECJ5D.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-BAtkq0b_.d.ts → tag-groups-BoJg3lFV.d.ts} +0 -16
- package/dist/{themes-DpsyRSO7.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/package.json +4 -4
- package/dist/charts-d3-HMEMHSSW.js +0 -29
- package/dist/chunk-53SEVJQM.js +0 -9
- package/dist/chunk-LP7EC4MI.js +0 -16
- package/dist/chunk-YM5RMLFO.js +0 -40
- package/dist/renderer-2LDT4TUX.js +0 -25
- package/dist/renderer-2RIIIO34.js +0 -39
- package/dist/renderer-3HFU3DTO.js +0 -25
- package/dist/renderer-4BF6ILP6.js +0 -27
- package/dist/renderer-5E2AH5TO.js +0 -38
- package/dist/renderer-62SLWRYF.js +0 -27
- package/dist/renderer-D6GJ6EVK.js +0 -30
- package/dist/renderer-GZLRX764.js +0 -24
- package/dist/renderer-H2HYLFN3.js +0 -20
- package/dist/renderer-IR5655M7.js +0 -28
- package/dist/renderer-L237AOOZ.js +0 -16
- package/dist/renderer-LSJWYGOL.js +0 -39
- package/dist/renderer-LWXDMZOV.js +0 -28
- package/dist/renderer-MYSVPERC.js +0 -22
- package/dist/renderer-OL5QSZPC.js +0 -31
- package/dist/renderer-P26HH3NA.js +0 -30
- package/dist/renderer-RPZVNCTF.js +0 -26
- package/dist/renderer-SDNWZDUY.js +0 -23
- package/dist/renderer-UKHH4UWV.js +0 -25
- package/dist/renderer-radial-QNGCGKZP.js +0 -21
- package/dist/state-renderer-ELWDRXD6.js +0 -40
|
@@ -1,60 +1,65 @@
|
|
|
1
1
|
import {
|
|
2
2
|
edgeSplinePath,
|
|
3
|
-
fitDiagramToCanvas,
|
|
4
3
|
selfLoopArcPath
|
|
5
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-26EVL454.js";
|
|
6
5
|
import {
|
|
7
6
|
layoutGraph
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import {
|
|
10
|
-
appendArrowheadMarkers
|
|
11
|
-
} from "./chunk-LP7EC4MI.js";
|
|
7
|
+
} from "./chunk-AN7T6VP7.js";
|
|
12
8
|
import {
|
|
13
9
|
NOTE_BADGE_RADIUS,
|
|
14
10
|
noteConnectorPoints,
|
|
15
11
|
renderNoteBadge,
|
|
16
12
|
renderNoteBox,
|
|
17
13
|
renderNoteConnector
|
|
18
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-KO6DGOOB.js";
|
|
19
15
|
import {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
16
|
+
appendArrowheadMarkers
|
|
17
|
+
} from "./chunk-XBJJP2HN.js";
|
|
18
|
+
import {
|
|
19
|
+
fitDiagramToCanvas
|
|
20
|
+
} from "./chunk-EPDBWATV.js";
|
|
23
21
|
import {
|
|
24
22
|
ScaleContext
|
|
25
23
|
} from "./chunk-24YPR5EH.js";
|
|
24
|
+
import {
|
|
25
|
+
ARROWHEAD_HEIGHT,
|
|
26
|
+
ARROWHEAD_WIDTH,
|
|
27
|
+
EDGE_LABEL_KNOCKOUT_OPACITY,
|
|
28
|
+
EDGE_STROKE_WIDTH,
|
|
29
|
+
NODE_STROKE_WIDTH
|
|
30
|
+
} from "./chunk-IIEI7VK5.js";
|
|
26
31
|
import {
|
|
27
32
|
layoutInlineHeader
|
|
28
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-FLMXJMMY.js";
|
|
29
34
|
import {
|
|
30
35
|
serializeSvg
|
|
31
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-LD2JSKU3.js";
|
|
32
37
|
import {
|
|
33
38
|
TITLE_FONT_SIZE,
|
|
34
39
|
TITLE_FONT_WEIGHT,
|
|
35
40
|
TITLE_Y
|
|
36
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-VSPNH7LC.js";
|
|
37
42
|
import {
|
|
38
43
|
renderIntegratedLegend
|
|
39
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-67I3HFSF.js";
|
|
40
45
|
import {
|
|
41
46
|
getLegendExtent,
|
|
42
47
|
getMaxLegendReservedHeight
|
|
43
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-IZTU6WVR.js";
|
|
44
49
|
import {
|
|
45
50
|
FONT_FAMILY
|
|
46
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-ICLB27PZ.js";
|
|
47
52
|
import {
|
|
48
53
|
measureText
|
|
49
54
|
} from "./chunk-MTGGOCND.js";
|
|
50
55
|
import {
|
|
51
56
|
parseState
|
|
52
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-6Z2NUJSX.js";
|
|
53
58
|
import {
|
|
54
59
|
resolveActiveTagGroup,
|
|
55
60
|
resolveTagColor,
|
|
56
61
|
tagAttrKey
|
|
57
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-R4YGH7DJ.js";
|
|
58
63
|
import {
|
|
59
64
|
fillModeFromOptions,
|
|
60
65
|
legendInlineRequested,
|
|
@@ -65,7 +70,7 @@ import {
|
|
|
65
70
|
mix,
|
|
66
71
|
shapeFill,
|
|
67
72
|
themeBaseBg
|
|
68
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-YVLTNNME.js";
|
|
69
74
|
|
|
70
75
|
// src/graph/state-renderer.ts
|
|
71
76
|
import * as d3Selection from "d3-selection";
|
|
@@ -74,8 +79,6 @@ var MAX_SCALE = 3;
|
|
|
74
79
|
var NODE_FONT_SIZE = 13;
|
|
75
80
|
var EDGE_LABEL_FONT_SIZE = 11;
|
|
76
81
|
var GROUP_LABEL_FONT_SIZE = 11;
|
|
77
|
-
var ARROWHEAD_W = 10;
|
|
78
|
-
var ARROWHEAD_H = 7;
|
|
79
82
|
var PSEUDOSTATE_RADIUS = 10;
|
|
80
83
|
var STATE_CORNER_RADIUS = 10;
|
|
81
84
|
var GROUP_EXTRA_PADDING = 12;
|
|
@@ -103,8 +106,8 @@ function renderState(container, graph, layout, palette, isDark, onClickItem, exp
|
|
|
103
106
|
const sGroupLabelFontSize = ctx.text(GROUP_LABEL_FONT_SIZE);
|
|
104
107
|
const sEdgeStrokeWidth = ctx.structural(EDGE_STROKE_WIDTH);
|
|
105
108
|
const sNodeStrokeWidth = ctx.structural(NODE_STROKE_WIDTH);
|
|
106
|
-
const sArrowheadW = ctx.structural(
|
|
107
|
-
const sArrowheadH = ctx.structural(
|
|
109
|
+
const sArrowheadW = ctx.structural(ARROWHEAD_WIDTH);
|
|
110
|
+
const sArrowheadH = ctx.structural(ARROWHEAD_HEIGHT);
|
|
108
111
|
const sPseudostateRadius = ctx.structural(PSEUDOSTATE_RADIUS);
|
|
109
112
|
const sStateCornerRadius = ctx.structural(STATE_CORNER_RADIUS);
|
|
110
113
|
const sGroupExtraPadding = ctx.aesthetic(GROUP_EXTRA_PADDING);
|
|
@@ -155,7 +158,7 @@ function renderState(container, graph, layout, palette, isDark, onClickItem, exp
|
|
|
155
158
|
});
|
|
156
159
|
const diagramW = layout.width;
|
|
157
160
|
const diagramH = layout.height;
|
|
158
|
-
const { scale, offsetX, offsetY, canvasHeight } = fitDiagramToCanvas({
|
|
161
|
+
const { scale, offsetX, offsetY, canvasHeight, canvasWidth } = fitDiagramToCanvas({
|
|
159
162
|
width,
|
|
160
163
|
height,
|
|
161
164
|
diagramW,
|
|
@@ -166,7 +169,7 @@ function renderState(container, graph, layout, palette, isDark, onClickItem, exp
|
|
|
166
169
|
maxScale: MAX_SCALE,
|
|
167
170
|
exportMode: !!exportDims
|
|
168
171
|
});
|
|
169
|
-
const svg = d3Selection.select(container).append("svg").attr("width",
|
|
172
|
+
const svg = d3Selection.select(container).append("svg").attr("width", canvasWidth).attr("height", canvasHeight).attr("viewBox", `0 0 ${canvasWidth} ${canvasHeight}`).attr("preserveAspectRatio", "xMidYMin meet").style("font-family", FONT_FAMILY);
|
|
170
173
|
if (ctx.isBelowFloor) {
|
|
171
174
|
svg.attr("width", "100%");
|
|
172
175
|
}
|
|
@@ -306,7 +309,7 @@ function renderState(container, graph, layout, palette, isDark, onClickItem, exp
|
|
|
306
309
|
}
|
|
307
310
|
const lp = labelPosMap.get(ei);
|
|
308
311
|
if (edge.label && lp) {
|
|
309
|
-
edgeG.append("rect").attr("x", lp.x - lp.w / 2).attr("y", lp.y - lp.h / 2 - 1).attr("width", lp.w).attr("height", lp.h).attr("rx", 3).attr("fill", palette.bg).attr("opacity",
|
|
312
|
+
edgeG.append("rect").attr("x", lp.x - lp.w / 2).attr("y", lp.y - lp.h / 2 - 1).attr("width", lp.w).attr("height", lp.h).attr("rx", 3).attr("fill", palette.bg).attr("opacity", EDGE_LABEL_KNOCKOUT_OPACITY).attr("class", "st-edge-label-bg");
|
|
310
313
|
edgeG.append("text").attr("x", lp.x).attr("y", lp.y + 4).attr("text-anchor", "middle").attr("fill", edgeColor).attr("font-size", sEdgeLabelFontSize).attr("class", "st-edge-label").text(edge.label);
|
|
311
314
|
}
|
|
312
315
|
}
|
|
@@ -465,4 +468,4 @@ export {
|
|
|
465
468
|
renderState,
|
|
466
469
|
renderStateForExport
|
|
467
470
|
};
|
|
468
|
-
//# sourceMappingURL=chunk-
|
|
471
|
+
//# sourceMappingURL=chunk-XDPJMLOH.js.map
|
|
@@ -1,39 +1,40 @@
|
|
|
1
1
|
import {
|
|
2
2
|
wrapDescriptionLines
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WMIKC5XO.js";
|
|
4
4
|
import {
|
|
5
5
|
renderNodeCard
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4AWLEWSD.js";
|
|
7
7
|
import {
|
|
8
8
|
renderInlineText
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-FWNJDD4U.js";
|
|
10
|
+
import {
|
|
11
|
+
formatDateLabel
|
|
12
|
+
} from "./chunk-UCF6TKWV.js";
|
|
10
13
|
import {
|
|
11
14
|
CARD_RADIUS,
|
|
15
|
+
HAIRLINE_DASH,
|
|
12
16
|
HEADER_HEIGHT,
|
|
13
17
|
LABEL_FONT_SIZE,
|
|
14
18
|
NODE_STROKE_WIDTH,
|
|
15
19
|
SEPARATOR_GAP
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import {
|
|
18
|
-
formatDateLabel
|
|
19
|
-
} from "./chunk-QXMHBIQG.js";
|
|
20
|
+
} from "./chunk-IIEI7VK5.js";
|
|
20
21
|
import {
|
|
21
22
|
layoutInlineHeader
|
|
22
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-FLMXJMMY.js";
|
|
23
24
|
import {
|
|
24
25
|
TITLE_FONT_SIZE,
|
|
25
26
|
TITLE_FONT_WEIGHT,
|
|
26
27
|
TITLE_Y
|
|
27
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-VSPNH7LC.js";
|
|
28
29
|
import {
|
|
29
30
|
renderIntegratedLegend
|
|
30
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-67I3HFSF.js";
|
|
31
32
|
import {
|
|
32
33
|
getLegendExtent
|
|
33
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-IZTU6WVR.js";
|
|
34
35
|
import {
|
|
35
36
|
FONT_FAMILY
|
|
36
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-ICLB27PZ.js";
|
|
37
38
|
import {
|
|
38
39
|
CHAR_WIDTH_RATIO,
|
|
39
40
|
wrapTextToWidth
|
|
@@ -42,16 +43,17 @@ import {
|
|
|
42
43
|
parseTimelineDate
|
|
43
44
|
} from "./chunk-UCZBRGJN.js";
|
|
44
45
|
import {
|
|
46
|
+
UNTAGGED_TAG_COLOR,
|
|
45
47
|
resolveActiveTagGroup,
|
|
46
48
|
resolveTagColor
|
|
47
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-R4YGH7DJ.js";
|
|
48
50
|
import {
|
|
49
51
|
contrastText,
|
|
50
52
|
getSeriesColors,
|
|
51
53
|
mix,
|
|
52
54
|
shapeFill,
|
|
53
55
|
themeBaseBg
|
|
54
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-YVLTNNME.js";
|
|
55
57
|
import {
|
|
56
58
|
resolveColor
|
|
57
59
|
} from "./chunk-XOGQY4EC.js";
|
|
@@ -73,7 +75,7 @@ var TITLE_MAX_W = (CARD_W - CARD_PAD * 2) * 0.93;
|
|
|
73
75
|
var DOT_R = 5.5;
|
|
74
76
|
var MIN_SPACING = 96;
|
|
75
77
|
var LANE_GAP = 16;
|
|
76
|
-
var NEUTRAL_TAG =
|
|
78
|
+
var NEUTRAL_TAG = UNTAGGED_TAG_COLOR;
|
|
77
79
|
var CARD_INSET = 18;
|
|
78
80
|
var FAN_GAP = 6;
|
|
79
81
|
var DATE_SUBTITLE_H = 15;
|
|
@@ -534,7 +536,7 @@ function renderEventLine(container, parsed, palette, isDark, onClickItem, export
|
|
|
534
536
|
const solidRight = hasTrailingFuture ? realRightX : spineRight;
|
|
535
537
|
svg.append("line").attr("x1", spineLeft).attr("y1", spineY).attr("x2", solidRight).attr("y2", spineY).attr("stroke", palette.text).attr("stroke-width", 2.5).attr("stroke-linecap", "round");
|
|
536
538
|
if (hasTrailingFuture) {
|
|
537
|
-
svg.append("line").attr("x1", solidRight).attr("y1", spineY).attr("x2", spineRight).attr("y2", spineY).attr("stroke", palette.text).attr("stroke-width", 2.5).attr("stroke-linecap", "round").attr("stroke-opacity", 0.45).attr("stroke-dasharray",
|
|
539
|
+
svg.append("line").attr("x1", solidRight).attr("y1", spineY).attr("x2", spineRight).attr("y2", spineY).attr("stroke", palette.text).attr("stroke-width", 2.5).attr("stroke-linecap", "round").attr("stroke-opacity", 0.45).attr("stroke-dasharray", HAIRLINE_DASH);
|
|
538
540
|
}
|
|
539
541
|
const geo = placed.map((p) => {
|
|
540
542
|
const near = p.side === "above" ? spineY - laneNear(p) : spineY + laneNear(p);
|
|
@@ -602,7 +604,7 @@ function renderEventLine(container, parsed, palette, isDark, onClickItem, export
|
|
|
602
604
|
const titleMid = headBandTop + p.headerH / 2;
|
|
603
605
|
const titleTop = titleMid - (p.titleLines.length - 1) * TITLE_LINE_H / 2;
|
|
604
606
|
for (let ti = 0; ti < p.titleLines.length; ti++) {
|
|
605
|
-
cardG.append("text").attr("x", CARD_PAD).attr("y", titleTop + ti * TITLE_LINE_H).attr("dominant-baseline", "central").attr("fill", shelfText).attr("font-family", FONT_FAMILY).attr("font-size", LABEL_FONT_SIZE).attr("font-weight",
|
|
607
|
+
cardG.append("text").attr("x", CARD_PAD).attr("y", titleTop + ti * TITLE_LINE_H).attr("dominant-baseline", "central").attr("fill", shelfText).attr("font-family", FONT_FAMILY).attr("font-size", LABEL_FONT_SIZE).attr("font-weight", "bold").text(p.titleLines[ti]);
|
|
606
608
|
}
|
|
607
609
|
if (dateStr) {
|
|
608
610
|
cardG.append("text").attr("x", CARD_PAD).attr(
|
|
@@ -611,7 +613,7 @@ function renderEventLine(container, parsed, palette, isDark, onClickItem, export
|
|
|
611
613
|
).attr(
|
|
612
614
|
"fill",
|
|
613
615
|
parsed.options.fillMode ? mix(shelfText, p.color, 25) : mix(palette.text, palette.bg, 55)
|
|
614
|
-
).attr("font-family", FONT_FAMILY).attr("font-size", DATE_SUBTITLE_FONT).attr("font-weight",
|
|
616
|
+
).attr("font-family", FONT_FAMILY).attr("font-size", DATE_SUBTITLE_FONT).attr("font-weight", "bold").text(dateStr);
|
|
615
617
|
}
|
|
616
618
|
if (p.lines.length > 0) {
|
|
617
619
|
const startBaseline = titleNearTop ? p.headerH + SEPARATOR_GAP + dateH + DESC_FONT : CARD_PAD + DESC_FONT;
|
|
@@ -640,7 +642,7 @@ function renderEventLine(container, parsed, palette, isDark, onClickItem, export
|
|
|
640
642
|
headerHeight: p.headerH
|
|
641
643
|
});
|
|
642
644
|
if (dateStr) {
|
|
643
|
-
cardG.append("text").attr("x", CARD_W / 2).attr("y", p.headerH + DATE_SUBTITLE_FONT + 1).attr("text-anchor", "middle").attr("fill", mix(p.titleColor, p.cardFill, 60)).attr("font-family", FONT_FAMILY).attr("font-size", DATE_SUBTITLE_FONT).attr("font-weight",
|
|
645
|
+
cardG.append("text").attr("x", CARD_W / 2).attr("y", p.headerH + DATE_SUBTITLE_FONT + 1).attr("text-anchor", "middle").attr("fill", mix(p.titleColor, p.cardFill, 60)).attr("font-family", FONT_FAMILY).attr("font-size", DATE_SUBTITLE_FONT).attr("font-weight", "bold").text(dateStr);
|
|
644
646
|
}
|
|
645
647
|
if (p.lines.length > 0) {
|
|
646
648
|
cardG.append("line").attr("x1", 0).attr("y1", p.headerH + dateH).attr("x2", CARD_W).attr("y2", p.headerH + dateH).attr("stroke", p.titleColor).attr("stroke-opacity", 0.3).attr("stroke-width", 1);
|
|
@@ -737,7 +739,7 @@ function renderEventLine(container, parsed, palette, isDark, onClickItem, export
|
|
|
737
739
|
"d",
|
|
738
740
|
`M${x02},${y + ERA_BRACKET_CAP * cap} L${x02},${y} L${x12},${y} L${x12},${y + ERA_BRACKET_CAP * cap}`
|
|
739
741
|
).attr("fill", "none").attr("stroke", col).attr("stroke-width", 1.5).attr("stroke-linecap", "round").attr("stroke-linejoin", "round").attr("stroke-opacity", op);
|
|
740
|
-
eg.append("text").attr("x", (r.firstX + r.lastX) / 2).attr("y", eraSide === "above" ? y - 6 : y + ERA_LABEL_FONT + 4).attr("text-anchor", "middle").attr("font-family", FONT_FAMILY).attr("font-size", ERA_LABEL_FONT).attr("font-weight",
|
|
742
|
+
eg.append("text").attr("x", (r.firstX + r.lastX) / 2).attr("y", eraSide === "above" ? y - 6 : y + ERA_LABEL_FONT + 4).attr("text-anchor", "middle").attr("font-family", FONT_FAMILY).attr("font-size", ERA_LABEL_FONT).attr("font-weight", "bold").attr("fill", col).attr("fill-opacity", neutral ? 0.85 : 1).text(r.era.name);
|
|
741
743
|
if (onClickItem) {
|
|
742
744
|
const ln = r.era.lineNumber;
|
|
743
745
|
eg.style("cursor", "pointer").on("click", () => onClickItem(ln));
|
|
@@ -829,13 +831,13 @@ function renderEventLine(container, parsed, palette, isDark, onClickItem, export
|
|
|
829
831
|
grad.append("stop").attr("offset", "0%").attr("stop-color", nowColor).attr("stop-opacity", 0);
|
|
830
832
|
grad.append("stop").attr("offset", "50%").attr("stop-color", nowColor).attr("stop-opacity", 0.9);
|
|
831
833
|
grad.append("stop").attr("offset", "100%").attr("stop-color", nowColor).attr("stop-opacity", 0);
|
|
832
|
-
nowG.append("line").attr("x1", nowX).attr("y1", ruleTop).attr("x2", nowX).attr("y2", ruleBot).attr("stroke", `url(#${gradId})`).attr("stroke-width", 1.6).attr("stroke-dasharray",
|
|
834
|
+
nowG.append("line").attr("x1", nowX).attr("y1", ruleTop).attr("x2", nowX).attr("y2", ruleBot).attr("stroke", `url(#${gradId})`).attr("stroke-width", 1.6).attr("stroke-dasharray", HAIRLINE_DASH).attr("stroke-linecap", "round");
|
|
833
835
|
nowG.append("path").attr("d", `M${nowX} ${spineY - 5} l5 5 l-5 5 l-5 -5 z`).attr("fill", nowColor);
|
|
834
836
|
nowG.append("line").attr("x1", nowX).attr("y1", stemFrom).attr("x2", nowX).attr("y2", stemTo).attr("stroke", nowColor).attr("stroke-width", 1.6);
|
|
835
837
|
nowG.append("rect").attr("x", pillCX - pillW / 2).attr("y", slot.y0).attr("width", pillW).attr("height", pillH).attr("rx", pillH / 2).attr("fill", pillFill).attr("stroke", pillStroke).attr("stroke-width", pillStrokeW);
|
|
836
|
-
nowG.append("text").attr("x", pillCX).attr("y", slot.y0 + pillH / 2).attr("text-anchor", "middle").attr("dominant-baseline", "central").attr("font-family", FONT_FAMILY).attr("font-size", 10.5).attr("font-weight",
|
|
838
|
+
nowG.append("text").attr("x", pillCX).attr("y", slot.y0 + pillH / 2).attr("text-anchor", "middle").attr("dominant-baseline", "central").attr("font-family", FONT_FAMILY).attr("font-size", 10.5).attr("font-weight", "bold").attr("fill", pillText).text(label);
|
|
837
839
|
if (!exportMode) {
|
|
838
|
-
const hoverRule = nowG.append("line").attr("class", "evt-now-rule-full").attr("x1", nowX).attr("y1", Math.max(topUsed, 2)).attr("x2", nowX).attr("y2", totalH - 2).attr("stroke", nowColor).attr("stroke-width", 1.4).attr("stroke-dasharray",
|
|
840
|
+
const hoverRule = nowG.append("line").attr("class", "evt-now-rule-full").attr("x1", nowX).attr("y1", Math.max(topUsed, 2)).attr("x2", nowX).attr("y2", totalH - 2).attr("stroke", nowColor).attr("stroke-width", 1.4).attr("stroke-dasharray", HAIRLINE_DASH).attr("stroke-linecap", "round").attr("opacity", 0).style("transition", "opacity 120ms ease").style("pointer-events", "none");
|
|
839
841
|
hoverRule.lower();
|
|
840
842
|
const nowNode = nowG.node();
|
|
841
843
|
if (nowNode) {
|
|
@@ -1142,7 +1144,7 @@ function renderBody(cardG, lines, bodyColor, palette, startBaseline = CARD_BODY_
|
|
|
1142
1144
|
lineColor = bulletColors[bulletIdx] ?? bodyColor;
|
|
1143
1145
|
lineMeta = bulletMeta[bulletIdx] ?? null;
|
|
1144
1146
|
bulletIdx++;
|
|
1145
|
-
const marker = cardG.append("text").attr("x", CARD_PAD).attr("y", y).attr("text-anchor", "start").attr("fill", lineColor).attr("font-family", FONT_FAMILY).attr("font-size", DESC_FONT).attr("font-weight",
|
|
1147
|
+
const marker = cardG.append("text").attr("x", CARD_PAD).attr("y", y).attr("text-anchor", "start").attr("fill", lineColor).attr("font-family", FONT_FAMILY).attr("font-size", DESC_FONT).attr("font-weight", "bold").text("\u2022");
|
|
1146
1148
|
tagBullet(marker);
|
|
1147
1149
|
} else if (!isBullet) {
|
|
1148
1150
|
lineColor = bodyColor;
|
|
@@ -1161,4 +1163,4 @@ export {
|
|
|
1161
1163
|
focusEventLine,
|
|
1162
1164
|
renderEventLineForExport
|
|
1163
1165
|
};
|
|
1164
|
-
//# sourceMappingURL=chunk-
|
|
1166
|
+
//# sourceMappingURL=chunk-YKDZ3ZRI.js.map
|
|
@@ -247,6 +247,15 @@ function politicalTints(palette, count, isDark) {
|
|
|
247
247
|
}
|
|
248
248
|
return out.slice(0, count);
|
|
249
249
|
}
|
|
250
|
+
function getEraColors(palette) {
|
|
251
|
+
return [
|
|
252
|
+
palette.colors.blue,
|
|
253
|
+
palette.colors.green,
|
|
254
|
+
palette.colors.yellow,
|
|
255
|
+
palette.colors.orange,
|
|
256
|
+
palette.colors.purple
|
|
257
|
+
];
|
|
258
|
+
}
|
|
250
259
|
|
|
251
260
|
export {
|
|
252
261
|
hexToHSL,
|
|
@@ -264,6 +273,7 @@ export {
|
|
|
264
273
|
shapeFill,
|
|
265
274
|
getSeriesColors,
|
|
266
275
|
getSegmentColors,
|
|
267
|
-
politicalTints
|
|
276
|
+
politicalTints,
|
|
277
|
+
getEraColors
|
|
268
278
|
};
|
|
269
|
-
//# sourceMappingURL=chunk-
|
|
279
|
+
//# sourceMappingURL=chunk-YVLTNNME.js.map
|
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-IVKC4GID.js";
|
|
5
5
|
import {
|
|
6
6
|
CARD_RADIUS,
|
|
7
|
+
EDGE_DASH,
|
|
7
8
|
EDGE_STROKE_WIDTH,
|
|
8
9
|
HEADER_HEIGHT,
|
|
9
10
|
LABEL_FONT_SIZE,
|
|
@@ -11,28 +12,28 @@ import {
|
|
|
11
12
|
META_LINE_HEIGHT,
|
|
12
13
|
NODE_STROKE_WIDTH,
|
|
13
14
|
SEPARATOR_GAP
|
|
14
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-IIEI7VK5.js";
|
|
15
16
|
import {
|
|
16
17
|
layoutInlineHeader
|
|
17
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-FLMXJMMY.js";
|
|
18
19
|
import {
|
|
19
20
|
TITLE_FONT_SIZE,
|
|
20
21
|
TITLE_FONT_WEIGHT,
|
|
21
22
|
TITLE_Y
|
|
22
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-VSPNH7LC.js";
|
|
23
24
|
import {
|
|
24
25
|
renderIntegratedLegend
|
|
25
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-67I3HFSF.js";
|
|
26
27
|
import {
|
|
27
28
|
getLegendExtent,
|
|
28
29
|
getMaxLegendReservedHeight
|
|
29
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-IZTU6WVR.js";
|
|
30
31
|
import {
|
|
31
32
|
FONT_FAMILY
|
|
32
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-ICLB27PZ.js";
|
|
33
34
|
import {
|
|
34
35
|
LEGEND_GROUP_GAP
|
|
35
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-MFK7LF66.js";
|
|
36
37
|
import {
|
|
37
38
|
measureText
|
|
38
39
|
} from "./chunk-MTGGOCND.js";
|
|
@@ -40,9 +41,10 @@ import {
|
|
|
40
41
|
EMPHASIS_DIM_OPACITY
|
|
41
42
|
} from "./chunk-2CW5ZTNH.js";
|
|
42
43
|
import {
|
|
44
|
+
UNTAGGED_TAG_COLOR,
|
|
43
45
|
resolveTagColor,
|
|
44
46
|
tagAttrKey
|
|
45
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-R4YGH7DJ.js";
|
|
46
48
|
import {
|
|
47
49
|
fillModeFromOptions,
|
|
48
50
|
legendInlineRequested,
|
|
@@ -53,7 +55,7 @@ import {
|
|
|
53
55
|
mix,
|
|
54
56
|
shapeFill,
|
|
55
57
|
themeBaseBg
|
|
56
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-YVLTNNME.js";
|
|
57
59
|
import {
|
|
58
60
|
resolveColor
|
|
59
61
|
} from "./chunk-XOGQY4EC.js";
|
|
@@ -93,7 +95,7 @@ function baseColor(node, parsed, palette, activeTagGroup) {
|
|
|
93
95
|
[...parsed.tagGroups],
|
|
94
96
|
activeTagGroup
|
|
95
97
|
);
|
|
96
|
-
if (c && c !==
|
|
98
|
+
if (c && c !== UNTAGGED_TAG_COLOR) return c;
|
|
97
99
|
}
|
|
98
100
|
return palette.primary;
|
|
99
101
|
}
|
|
@@ -205,7 +207,7 @@ function renderFamilyForExport(container, parsed, layout, palette, isDark, opts
|
|
|
205
207
|
const edgeG = root.append("g").attr("class", "family-edges");
|
|
206
208
|
const pathD = (pts) => pts.map((p, i) => `${i ? "L" : "M"}${p.x} ${p.y}`).join(" ");
|
|
207
209
|
const line = (pts, dashed, dimmed) => {
|
|
208
|
-
edgeG.append("path").attr("d", pathD(pts)).attr("fill", "none").attr("stroke", palette.textMuted).attr("stroke-width", EDGE_STROKE_WIDTH).attr("stroke-dasharray", dashed ?
|
|
210
|
+
edgeG.append("path").attr("d", pathD(pts)).attr("fill", "none").attr("stroke", palette.textMuted).attr("stroke-width", EDGE_STROKE_WIDTH).attr("stroke-dasharray", dashed ? EDGE_DASH : null).attr("stroke-opacity", dimmed ? DIM_OPACITY : null);
|
|
209
211
|
};
|
|
210
212
|
const byUnion = /* @__PURE__ */ new Map();
|
|
211
213
|
for (const e of layout.edges) {
|
|
@@ -234,7 +236,7 @@ function renderFamilyForExport(container, parsed, layout, palette, isDark, opts
|
|
|
234
236
|
for (const bar of layout.bars) {
|
|
235
237
|
const bg = barG.append("g");
|
|
236
238
|
if (bar.dimmed) bg.attr("opacity", DIM_OPACITY);
|
|
237
|
-
bg.append("line").attr("x1", bar.x1).attr("y1", bar.y).attr("x2", bar.x2).attr("y2", bar.y).attr("stroke", palette.textMuted).attr("stroke-width", EDGE_STROKE_WIDTH).attr("stroke-dasharray", bar.divorced ?
|
|
239
|
+
bg.append("line").attr("x1", bar.x1).attr("y1", bar.y).attr("x2", bar.x2).attr("y2", bar.y).attr("stroke", palette.textMuted).attr("stroke-width", EDGE_STROKE_WIDTH).attr("stroke-dasharray", bar.divorced ? EDGE_DASH : null).attr("class", "family-marriage-bar").attr("data-line-number", String(bar.lineNumber));
|
|
238
240
|
bg.append("circle").attr("cx", bar.midX).attr("cy", bar.y).attr("r", BAR_DOT_R).attr("fill", palette.textMuted);
|
|
239
241
|
if (bar.year) {
|
|
240
242
|
bg.append("text").attr("x", bar.labelX).attr("y", bar.y - BAR_DOT_R - 3).attr("text-anchor", "middle").attr("font-size", META_FONT_SIZE).attr("fill", palette.textMuted).attr("stroke", baseBg).attr("stroke-width", 3).attr("stroke-linejoin", "round").attr("paint-order", "stroke").text(`m. ${bar.year}`);
|
|
@@ -317,4 +319,4 @@ export {
|
|
|
317
319
|
renderFamilyForExport,
|
|
318
320
|
renderFamily
|
|
319
321
|
};
|
|
320
|
-
//# sourceMappingURL=chunk-
|
|
322
|
+
//# sourceMappingURL=chunk-ZGOBAMQ2.js.map
|