@diagrammo/dgmo 0.76.0 → 0.77.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/dist/advanced.d.ts +142 -12
- package/dist/advanced.js +104 -59
- package/dist/block.d.ts +2 -2
- package/dist/block.js +8 -8
- package/dist/{chart-meta-lP8Rl19E.d.ts → chart-meta-Cf_jkApJ.d.ts} +2 -2
- package/dist/chart-meta.d.ts +3 -3
- package/dist/{charts-d3-SQEVMIAM.js → charts-d3-HMEMHSSW.js} +5 -5
- package/dist/{chunk-E3BJVEMZ.js → chunk-2MTM4E6M.js} +2 -2
- package/dist/{chunk-UBW53CNS.js → chunk-3E4YB6TY.js} +2 -2
- package/dist/{chunk-IFC3JXCT.js → chunk-3O7ZYVJV.js} +2 -2
- package/dist/{chunk-Q6BAFS7I.js → chunk-43AJKH2U.js} +3 -3
- package/dist/chunk-53SEVJQM.js +9 -0
- package/dist/{chunk-UTTRJ6KN.js → chunk-5ZD4DDG7.js} +4 -4
- package/dist/{chunk-AFR6GWXD.js → chunk-6BVAW7KI.js} +4 -4
- package/dist/{chunk-CLQJAGWL.js → chunk-6IN4F4RH.js} +4 -4
- package/dist/{chunk-76IBFEYW.js → chunk-6ZZKEYBS.js} +4 -4
- package/dist/{chunk-OBYZU23V.js → chunk-7CXW6EGX.js} +2 -2
- package/dist/{chunk-HOIAQ3P2.js → chunk-B52RL5VV.js} +2 -2
- package/dist/{chunk-GFXFRKUG.js → chunk-BH3BQICT.js} +4 -4
- package/dist/{chunk-3LJNQ6LR.js → chunk-CF3I5SOG.js} +5 -5
- package/dist/{chunk-C576CU77.js → chunk-CHOK7NCJ.js} +5 -5
- package/dist/{chunk-U74EGVOA.js → chunk-CIWFL2LM.js} +4 -4
- package/dist/{chunk-OUJG73YJ.js → chunk-CYMYZYLI.js} +5 -5
- package/dist/{chunk-BCB24FG7.js → chunk-D3B6YEZK.js} +3 -3
- package/dist/{chunk-XHROEQ23.js → chunk-DSXWJAOA.js} +4 -4
- package/dist/{chunk-CQKD6GOC.js → chunk-EUVUOPRC.js} +4 -4
- package/dist/{chunk-7G4XMHDB.js → chunk-FF7LRT5L.js} +4 -4
- package/dist/{chunk-BZQCAZZZ.js → chunk-FR5EVD2X.js} +4 -4
- package/dist/{chunk-U7AO6FRL.js → chunk-H7BYMIVK.js} +312 -118
- package/dist/{chunk-4CRLM3IT.js → chunk-HDLRRY3N.js} +44 -44
- package/dist/{chunk-JLJ7SP4X.js → chunk-J76YDS4V.js} +2 -2
- package/dist/{chunk-7EZ5AKBK.js → chunk-LYJ53DBK.js} +8 -6
- package/dist/{chunk-JQ575OAK.js → chunk-MZEGUDTA.js} +2 -2
- package/dist/{chunk-IHUOYDLN.js → chunk-N5NQIZ56.js} +5 -5
- package/dist/{chunk-32MOGTKT.js → chunk-OO2L2LWV.js} +4 -4
- package/dist/{chunk-PAW4RMH3.js → chunk-OZOHREFQ.js} +2 -2
- package/dist/{chunk-EGXJWRO6.js → chunk-QBM5BURJ.js} +4 -4
- package/dist/{chunk-YVDBBWEP.js → chunk-QXMHBIQG.js} +4 -4
- package/dist/{chunk-UWYZIGCB.js → chunk-RGW26UAR.js} +2 -2
- package/dist/{chunk-QI4Q5ZZH.js → chunk-RV5A3EGI.js} +4 -4
- package/dist/{chunk-HGFKDSKZ.js → chunk-SI3PYDL4.js} +4 -4
- package/dist/{chunk-CAPR5DET.js → chunk-SSEAULA5.js} +2 -2
- package/dist/{chunk-AYM472K3.js → chunk-SWUQJ5VR.js} +3 -3
- package/dist/{chunk-HFCKU73Y.js → chunk-TI4YUUW6.js} +3 -3
- package/dist/{chunk-3EGIU5WY.js → chunk-TKIPK5P6.js} +3 -3
- package/dist/{chunk-QT5UMFPE.js → chunk-U4DS2ODO.js} +3 -3
- package/dist/{chunk-TF76LCZS.js → chunk-UBDVAHGK.js} +4 -4
- package/dist/{chunk-JL7BDLC6.js → chunk-UH5YTZN7.js} +4 -4
- package/dist/{chunk-GEURKGZS.js → chunk-V4NHFY22.js} +4 -4
- package/dist/{chunk-4SXHMFFP.js → chunk-VRPV6QXR.js} +23 -12
- package/dist/{chunk-FMZEU7MF.js → chunk-WHWUVDYK.js} +2 -2
- package/dist/{chunk-U5B3TUEW.js → chunk-XCFIAGT7.js} +2 -2
- package/dist/{chunk-COCMMQXW.js → chunk-XFXJXLK7.js} +2 -2
- package/dist/{chunk-YDA46XHI.js → chunk-XPBJVSRY.js} +2 -2
- package/dist/{chunk-VV6HZQ5K.js → chunk-YM5RMLFO.js} +2 -2
- package/dist/{d3--y67plmW.d.ts → d3-BiaJtaSw.d.ts} +1 -1
- package/dist/{dgmo-router-CY5j16Pl.d.ts → dgmo-router-BwXHZ_P3.d.ts} +1 -1
- package/dist/{dimensions-7NYBSZRJ.js → dimensions-OFF4GRFL.js} +4 -4
- package/dist/{flowchart-renderer-QYGQ64BM.js → flowchart-renderer-BBJUPORB.js} +3 -3
- package/dist/index.d.ts +7 -7
- package/dist/index.js +8 -8
- package/dist/{layout-LAS67TK3.js → layout-Y2V3LYV7.js} +2 -2
- package/dist/{renderer-FUJNSC5X.js → renderer-2ANDPQWC.js} +3 -3
- package/dist/{renderer-UYZSP7MF.js → renderer-2LDT4TUX.js} +5 -5
- package/dist/{renderer-4EWGZLJ6.js → renderer-2NYQDW37.js} +3 -3
- package/dist/{renderer-LBNVKVO3.js → renderer-2RIIIO34.js} +5 -5
- package/dist/{renderer-PKRKLOYR.js → renderer-3HFU3DTO.js} +5 -5
- package/dist/{renderer-UUP6OX6F.js → renderer-4BF6ILP6.js} +5 -5
- package/dist/{renderer-MUW4G2N6.js → renderer-5E2AH5TO.js} +7 -7
- package/dist/{renderer-DKW273R7.js → renderer-62SLWRYF.js} +6 -5
- package/dist/{renderer-E6NHTVN6.js → renderer-ANJUDBOS.js} +5 -5
- package/dist/{renderer-OTHBTGBN.js → renderer-CVWQD442.js} +3 -3
- package/dist/{renderer-GJDVPXI3.js → renderer-D6GJ6EVK.js} +6 -6
- package/dist/{renderer-KMOGGMM7.js → renderer-DNFV2IQI.js} +5 -5
- package/dist/{renderer-IH45QV6Z.js → renderer-EDVCGIQO.js} +4 -4
- package/dist/{renderer-LE3ZKHNS.js → renderer-EFQSMHID.js} +6 -6
- package/dist/{renderer-EP4GRCDX.js → renderer-FTX67CYZ.js} +3 -3
- package/dist/{renderer-GF6S5ZX6.js → renderer-G2DPKJAN.js} +5 -5
- package/dist/{renderer-QAMOXOZ2.js → renderer-GHBF5PRH.js} +3 -3
- package/dist/{renderer-5W3HWIUL.js → renderer-GZLRX764.js} +5 -5
- package/dist/{renderer-CO5O5VR5.js → renderer-H2HYLFN3.js} +3 -3
- package/dist/{renderer-JMJ7Q5OC.js → renderer-IR5655M7.js} +5 -5
- package/dist/{renderer-4PNVGHVA.js → renderer-L237AOOZ.js} +3 -3
- package/dist/{renderer-F6WSR7UM.js → renderer-LSJWYGOL.js} +6 -6
- package/dist/{renderer-PR3KLNST.js → renderer-LWXDMZOV.js} +5 -5
- package/dist/{renderer-3FB56573.js → renderer-MYSVPERC.js} +5 -5
- package/dist/{renderer-FGGDZZFQ.js → renderer-OL5QSZPC.js} +6 -6
- package/dist/{renderer-XBL6CLN2.js → renderer-P26HH3NA.js} +5 -5
- package/dist/{renderer-D7N7PPB7.js → renderer-R5HIRN2M.js} +3 -3
- package/dist/{renderer-BUEFD2IF.js → renderer-RNFECJ5D.js} +5 -5
- package/dist/{renderer-F24V3RD3.js → renderer-RPZVNCTF.js} +5 -5
- package/dist/{renderer-PIEPRK6M.js → renderer-SDNWZDUY.js} +5 -5
- package/dist/{renderer-RUHC6D3B.js → renderer-UKHH4UWV.js} +5 -5
- package/dist/{renderer-CGOPX4HW.js → renderer-VF7X66SL.js} +5 -5
- package/dist/{renderer-ZAJ5353N.js → renderer-Y3Y7PEUS.js} +3 -3
- package/dist/{renderer-radial-MZP3SVTZ.js → renderer-radial-QNGCGKZP.js} +5 -5
- package/dist/{state-renderer-UIE3AQM6.js → state-renderer-ELWDRXD6.js} +5 -5
- package/dist/{tag-groups-DrHT2tEc.d.ts → tag-groups-BAtkq0b_.d.ts} +39 -1
- package/dist/{themes-GWhsabnx.d.ts → themes-DpsyRSO7.d.ts} +2 -2
- package/gallery/fixtures/sketch.dgmo +1 -1
- package/package.json +4 -3
- package/dist/chunk-UTCPNJND.js +0 -7
|
@@ -24,10 +24,10 @@ import {
|
|
|
24
24
|
} from "./chunk-DEW62ON3.js";
|
|
25
25
|
import {
|
|
26
26
|
renderIntegratedLegend
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-U4DS2ODO.js";
|
|
28
28
|
import {
|
|
29
29
|
FONT_FAMILY
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-53SEVJQM.js";
|
|
31
31
|
import {
|
|
32
32
|
LEGEND_HEIGHT
|
|
33
33
|
} from "./chunk-YT5ICQ4R.js";
|
|
@@ -1039,4 +1039,4 @@ export {
|
|
|
1039
1039
|
renderC4Deployment,
|
|
1040
1040
|
renderC4DeploymentForExport
|
|
1041
1041
|
};
|
|
1042
|
-
//# sourceMappingURL=chunk-
|
|
1042
|
+
//# sourceMappingURL=chunk-SWUQJ5VR.js.map
|
|
@@ -24,10 +24,10 @@ import {
|
|
|
24
24
|
} from "./chunk-RU2HHHYA.js";
|
|
25
25
|
import {
|
|
26
26
|
renderIntegratedLegend
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-U4DS2ODO.js";
|
|
28
28
|
import {
|
|
29
29
|
FONT_FAMILY
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-53SEVJQM.js";
|
|
31
31
|
import {
|
|
32
32
|
measureText,
|
|
33
33
|
truncateText,
|
|
@@ -877,4 +877,4 @@ export {
|
|
|
877
877
|
renderJourneyMap,
|
|
878
878
|
renderJourneyMapForExport
|
|
879
879
|
};
|
|
880
|
-
//# sourceMappingURL=chunk-
|
|
880
|
+
//# sourceMappingURL=chunk-TI4YUUW6.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MONO_FAMILY
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-OZOHREFQ.js";
|
|
4
4
|
import {
|
|
5
5
|
FONT_FAMILY
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-53SEVJQM.js";
|
|
7
7
|
import {
|
|
8
8
|
truncateText
|
|
9
9
|
} from "./chunk-MTGGOCND.js";
|
|
@@ -62,4 +62,4 @@ function escapeXml(s) {
|
|
|
62
62
|
export {
|
|
63
63
|
renderLiveLinkCard
|
|
64
64
|
};
|
|
65
|
-
//# sourceMappingURL=chunk-
|
|
65
|
+
//# sourceMappingURL=chunk-TKIPK5P6.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
computeLegendLayout
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VRPV6QXR.js";
|
|
4
4
|
import {
|
|
5
5
|
FONT_FAMILY
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-53SEVJQM.js";
|
|
7
7
|
import {
|
|
8
8
|
CONTROLS_ICON_PATH,
|
|
9
9
|
LEGEND_DOT_R,
|
|
@@ -294,4 +294,4 @@ export {
|
|
|
294
294
|
renderLegendD3,
|
|
295
295
|
renderIntegratedLegend
|
|
296
296
|
};
|
|
297
|
-
//# sourceMappingURL=chunk-
|
|
297
|
+
//# sourceMappingURL=chunk-U4DS2ODO.js.map
|
|
@@ -36,14 +36,14 @@ import {
|
|
|
36
36
|
} from "./chunk-DEW62ON3.js";
|
|
37
37
|
import {
|
|
38
38
|
renderIntegratedLegend
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-U4DS2ODO.js";
|
|
40
40
|
import {
|
|
41
41
|
getLegendExtent,
|
|
42
42
|
getMaxLegendReservedHeight
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-VRPV6QXR.js";
|
|
44
44
|
import {
|
|
45
45
|
FONT_FAMILY
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-53SEVJQM.js";
|
|
47
47
|
import {
|
|
48
48
|
measureText
|
|
49
49
|
} from "./chunk-MTGGOCND.js";
|
|
@@ -465,4 +465,4 @@ export {
|
|
|
465
465
|
renderState,
|
|
466
466
|
renderStateForExport
|
|
467
467
|
};
|
|
468
|
-
//# sourceMappingURL=chunk-
|
|
468
|
+
//# sourceMappingURL=chunk-UBDVAHGK.js.map
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
initD3Chart,
|
|
12
12
|
renderChartTitle,
|
|
13
13
|
resolveExportPalette
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-3E4YB6TY.js";
|
|
15
15
|
import {
|
|
16
16
|
layoutInlineHeader
|
|
17
17
|
} from "./chunk-MG3DE3VO.js";
|
|
@@ -23,10 +23,10 @@ import {
|
|
|
23
23
|
} from "./chunk-DEW62ON3.js";
|
|
24
24
|
import {
|
|
25
25
|
computeLegendLayout
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-VRPV6QXR.js";
|
|
27
27
|
import {
|
|
28
28
|
FONT_FAMILY
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-53SEVJQM.js";
|
|
30
30
|
import {
|
|
31
31
|
LEGEND_DOT_R,
|
|
32
32
|
LEGEND_ENTRY_FONT_SIZE,
|
|
@@ -2151,4 +2151,4 @@ export {
|
|
|
2151
2151
|
supportsD3DataChart,
|
|
2152
2152
|
renderDataChartD3
|
|
2153
2153
|
};
|
|
2154
|
-
//# sourceMappingURL=chunk-
|
|
2154
|
+
//# sourceMappingURL=chunk-UH5YTZN7.js.map
|
|
@@ -16,13 +16,13 @@ import {
|
|
|
16
16
|
} from "./chunk-DEW62ON3.js";
|
|
17
17
|
import {
|
|
18
18
|
renderIntegratedLegend
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-U4DS2ODO.js";
|
|
20
20
|
import {
|
|
21
21
|
getMaxLegendReservedHeight
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-VRPV6QXR.js";
|
|
23
23
|
import {
|
|
24
24
|
FONT_FAMILY
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-53SEVJQM.js";
|
|
26
26
|
import {
|
|
27
27
|
LEGEND_HEIGHT,
|
|
28
28
|
measureLegendText
|
|
@@ -1154,4 +1154,4 @@ export {
|
|
|
1154
1154
|
renderKanban,
|
|
1155
1155
|
renderKanbanForExport
|
|
1156
1156
|
};
|
|
1157
|
-
//# sourceMappingURL=chunk-
|
|
1157
|
+
//# sourceMappingURL=chunk-V4NHFY22.js.map
|
|
@@ -108,9 +108,10 @@ function entriesWidth(entries) {
|
|
|
108
108
|
}
|
|
109
109
|
return w;
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function legendEntryWidth(value) {
|
|
112
112
|
return LEGEND_DOT_R * 2 + LEGEND_ENTRY_DOT_GAP + measureLegendText(value, LEGEND_ENTRY_FONT_SIZE) + LEGEND_ENTRY_TRAIL;
|
|
113
113
|
}
|
|
114
|
+
var entryWidth = legendEntryWidth;
|
|
114
115
|
function controlWidth(control) {
|
|
115
116
|
let w = CONTROL_PILL_PAD;
|
|
116
117
|
if (control.label) {
|
|
@@ -125,12 +126,12 @@ function controlWidth(control) {
|
|
|
125
126
|
}
|
|
126
127
|
return w;
|
|
127
128
|
}
|
|
128
|
-
function capsuleWidth(name, entries, containerWidth, addonWidth = 0) {
|
|
129
|
+
function capsuleWidth(name, entries, containerWidth, addonWidth = 0, trailWidth = 0) {
|
|
129
130
|
const pw = pillWidth(name);
|
|
130
131
|
const maxCapsuleW = containerWidth;
|
|
131
132
|
const baseW = LEGEND_CAPSULE_PAD * 2 + pw + 4 + addonWidth;
|
|
132
133
|
const ew = entriesWidth(entries);
|
|
133
|
-
const singleRowW = baseW + ew;
|
|
134
|
+
const singleRowW = baseW + ew + trailWidth;
|
|
134
135
|
if (singleRowW <= maxCapsuleW + 0.5) {
|
|
135
136
|
return {
|
|
136
137
|
width: singleRowW,
|
|
@@ -139,7 +140,7 @@ function capsuleWidth(name, entries, containerWidth, addonWidth = 0) {
|
|
|
139
140
|
visibleEntries: entries.length
|
|
140
141
|
};
|
|
141
142
|
}
|
|
142
|
-
const rowWidth = maxCapsuleW - LEGEND_CAPSULE_PAD;
|
|
143
|
+
const rowWidth = maxCapsuleW - LEGEND_CAPSULE_PAD - trailWidth;
|
|
143
144
|
let row = 1;
|
|
144
145
|
let rowX = LEGEND_CAPSULE_PAD + pw + 4 + addonWidth;
|
|
145
146
|
let visible = 0;
|
|
@@ -321,7 +322,8 @@ function computeLegendLayout(config, state, containerWidth) {
|
|
|
321
322
|
activeCapsule = buildCapsuleLayout(
|
|
322
323
|
g,
|
|
323
324
|
groupAvailW,
|
|
324
|
-
config.capsulePillAddonWidth ?? 0
|
|
325
|
+
config.capsulePillAddonWidth ?? 0,
|
|
326
|
+
config.capsuleTrailingAddonWidth ?? 0
|
|
325
327
|
);
|
|
326
328
|
} else if (!activeGroupName || config.showInactivePills) {
|
|
327
329
|
const pw = pillWidth(g.name);
|
|
@@ -360,14 +362,15 @@ function computeLegendLayout(config, state, containerWidth) {
|
|
|
360
362
|
}
|
|
361
363
|
};
|
|
362
364
|
}
|
|
363
|
-
function buildCapsuleLayout(group, containerWidth, addonWidth = 0) {
|
|
365
|
+
function buildCapsuleLayout(group, containerWidth, addonWidth = 0, trailWidth = 0) {
|
|
364
366
|
if (group.gradient) return buildGradientCapsuleLayout(group, group.gradient);
|
|
365
367
|
const pw = pillWidth(group.name);
|
|
366
368
|
const info = capsuleWidth(
|
|
367
369
|
group.name,
|
|
368
370
|
group.entries,
|
|
369
371
|
containerWidth,
|
|
370
|
-
addonWidth
|
|
372
|
+
addonWidth,
|
|
373
|
+
trailWidth
|
|
371
374
|
);
|
|
372
375
|
const pill = {
|
|
373
376
|
groupName: group.name,
|
|
@@ -381,7 +384,7 @@ function buildCapsuleLayout(group, containerWidth, addonWidth = 0) {
|
|
|
381
384
|
const ex = LEGEND_CAPSULE_PAD + pw + 4 + addonWidth;
|
|
382
385
|
let ey = 0;
|
|
383
386
|
let rowX = ex;
|
|
384
|
-
const maxRowW = containerWidth - LEGEND_CAPSULE_PAD;
|
|
387
|
+
const maxRowW = containerWidth - LEGEND_CAPSULE_PAD - trailWidth;
|
|
385
388
|
let currentRow = 0;
|
|
386
389
|
for (let i = 0; i < info.visibleEntries; i++) {
|
|
387
390
|
const entry = group.entries[i];
|
|
@@ -433,7 +436,12 @@ function buildCapsuleLayout(group, containerWidth, addonWidth = 0) {
|
|
|
433
436
|
pill,
|
|
434
437
|
entries,
|
|
435
438
|
...info.moreCount > 0 && { moreCount: info.moreCount },
|
|
436
|
-
...addonWidth > 0 && { addonX: LEGEND_CAPSULE_PAD + pw + 4 }
|
|
439
|
+
...addonWidth > 0 && { addonX: LEGEND_CAPSULE_PAD + pw + 4 },
|
|
440
|
+
// After the last entry, on whatever row that entry ended on — `rowX` and
|
|
441
|
+
// `ey` are exactly the cursor the loop left behind.
|
|
442
|
+
...trailWidth > 0 && {
|
|
443
|
+
trailingAddon: { x: rowX, y: ey, width: trailWidth }
|
|
444
|
+
}
|
|
437
445
|
};
|
|
438
446
|
}
|
|
439
447
|
function layoutRows(activeCapsule, pills, controls, groupAvailW, containerWidth, totalControlsW, alignLeft = false, controlsGroup) {
|
|
@@ -528,10 +536,11 @@ function getMaxLegendReservedHeight(config, containerWidth) {
|
|
|
528
536
|
const groups = config.groups;
|
|
529
537
|
if (groups.length === 0) return LEGEND_HEIGHT;
|
|
530
538
|
const addon = config.capsulePillAddonWidth ?? 0;
|
|
539
|
+
const trail = config.capsuleTrailingAddonWidth ?? 0;
|
|
531
540
|
let max = LEGEND_HEIGHT;
|
|
532
541
|
for (const g of groups) {
|
|
533
542
|
if (g.entries.length === 0) continue;
|
|
534
|
-
const info = capsuleWidth(g.name, g.entries, containerWidth, addon);
|
|
543
|
+
const info = capsuleWidth(g.name, g.entries, containerWidth, addon, trail);
|
|
535
544
|
const h = info.entryRows * LEGEND_HEIGHT;
|
|
536
545
|
if (h > max) max = h;
|
|
537
546
|
}
|
|
@@ -551,7 +560,8 @@ function getLegendExtent(config, state, containerWidth) {
|
|
|
551
560
|
const c = layout.activeCapsule;
|
|
552
561
|
track(c.x, c.y, c.width, c.height);
|
|
553
562
|
}
|
|
554
|
-
for (const pill of layout.pills)
|
|
563
|
+
for (const pill of layout.pills)
|
|
564
|
+
track(pill.x, pill.y, pill.width, pill.height);
|
|
555
565
|
return {
|
|
556
566
|
width: right - (left === Infinity ? 0 : left),
|
|
557
567
|
height: bottom || LEGEND_HEIGHT
|
|
@@ -560,10 +570,11 @@ function getLegendExtent(config, state, containerWidth) {
|
|
|
560
570
|
|
|
561
571
|
export {
|
|
562
572
|
compactNumber,
|
|
573
|
+
legendEntryWidth,
|
|
563
574
|
controlsGroupCapsuleWidth,
|
|
564
575
|
computeLegendLayout,
|
|
565
576
|
getLegendReservedHeight,
|
|
566
577
|
getMaxLegendReservedHeight,
|
|
567
578
|
getLegendExtent
|
|
568
579
|
};
|
|
569
|
-
//# sourceMappingURL=chunk-
|
|
580
|
+
//# sourceMappingURL=chunk-VRPV6QXR.js.map
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
import {
|
|
17
17
|
compactNumber,
|
|
18
18
|
computeLegendLayout
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-VRPV6QXR.js";
|
|
20
20
|
import {
|
|
21
21
|
measureLegendText
|
|
22
22
|
} from "./chunk-YT5ICQ4R.js";
|
|
@@ -3406,4 +3406,4 @@ export {
|
|
|
3406
3406
|
albersSkewFallback,
|
|
3407
3407
|
layoutMap
|
|
3408
3408
|
};
|
|
3409
|
-
//# sourceMappingURL=chunk-
|
|
3409
|
+
//# sourceMappingURL=chunk-WHWUVDYK.js.map
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-DEW62ON3.js";
|
|
10
10
|
import {
|
|
11
11
|
FONT_FAMILY
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-53SEVJQM.js";
|
|
13
13
|
import {
|
|
14
14
|
measureText
|
|
15
15
|
} from "./chunk-MTGGOCND.js";
|
|
@@ -374,4 +374,4 @@ export {
|
|
|
374
374
|
renderGoal,
|
|
375
375
|
renderGoalForExport
|
|
376
376
|
};
|
|
377
|
-
//# sourceMappingURL=chunk-
|
|
377
|
+
//# sourceMappingURL=chunk-XCFIAGT7.js.map
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from "./chunk-DEW62ON3.js";
|
|
12
12
|
import {
|
|
13
13
|
FONT_FAMILY
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-53SEVJQM.js";
|
|
15
15
|
import {
|
|
16
16
|
measureText,
|
|
17
17
|
truncateText,
|
|
@@ -859,4 +859,4 @@ export {
|
|
|
859
859
|
renderRaci,
|
|
860
860
|
renderRaciForExport
|
|
861
861
|
};
|
|
862
|
-
//# sourceMappingURL=chunk-
|
|
862
|
+
//# sourceMappingURL=chunk-XFXJXLK7.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-MS5574I7.js";
|
|
4
4
|
import {
|
|
5
5
|
FONT_FAMILY
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-53SEVJQM.js";
|
|
7
7
|
import {
|
|
8
8
|
fixedParts,
|
|
9
9
|
fixedTimeCells,
|
|
@@ -558,4 +558,4 @@ export {
|
|
|
558
558
|
renderClock,
|
|
559
559
|
renderClockForExport
|
|
560
560
|
};
|
|
561
|
-
//# sourceMappingURL=chunk-
|
|
561
|
+
//# sourceMappingURL=chunk-XPBJVSRY.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-RU2HHHYA.js";
|
|
4
4
|
import {
|
|
5
5
|
FONT_FAMILY
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-53SEVJQM.js";
|
|
7
7
|
|
|
8
8
|
// src/utils/export-container.ts
|
|
9
9
|
function runInExportContainer(width, height, fn) {
|
|
@@ -37,4 +37,4 @@ export {
|
|
|
37
37
|
runInExportContainer,
|
|
38
38
|
extractExportSvg
|
|
39
39
|
};
|
|
40
|
-
//# sourceMappingURL=chunk-
|
|
40
|
+
//# sourceMappingURL=chunk-YM5RMLFO.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as TagGroup, D as DgmoError, a as PaletteColors, C as CompactViewState } from './tag-groups-
|
|
1
|
+
import { T as TagGroup, D as DgmoError, a as PaletteColors, C as CompactViewState } from './tag-groups-BAtkq0b_.js';
|
|
2
2
|
|
|
3
3
|
/** A POI / route-stop position: gazetteer name (+ optional ISO scope) or coords. */
|
|
4
4
|
type PoiPos = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PaletteConfig, D as DgmoError } from './tag-groups-
|
|
1
|
+
import { P as PaletteConfig, D as DgmoError } from './tag-groups-BAtkq0b_.js';
|
|
2
2
|
|
|
3
3
|
/** Validate that a hex string is well-formed (#RGB or #RRGGBB). */
|
|
4
4
|
declare function isValidHex(value: string): boolean;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
mapContentAspect,
|
|
3
3
|
mapExportDimensions
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-J76YDS4V.js";
|
|
5
|
+
import "./chunk-WHWUVDYK.js";
|
|
6
6
|
import "./chunk-4QV26TEG.js";
|
|
7
7
|
import "./chunk-L65WI4HO.js";
|
|
8
8
|
import "./chunk-DEW62ON3.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-VRPV6QXR.js";
|
|
10
10
|
import "./chunk-YT5ICQ4R.js";
|
|
11
11
|
import "./chunk-MTGGOCND.js";
|
|
12
12
|
import "./chunk-76LHNLGX.js";
|
|
@@ -19,4 +19,4 @@ export {
|
|
|
19
19
|
mapContentAspect,
|
|
20
20
|
mapExportDimensions
|
|
21
21
|
};
|
|
22
|
-
//# sourceMappingURL=dimensions-
|
|
22
|
+
//# sourceMappingURL=dimensions-OFF4GRFL.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
renderFlowchart,
|
|
3
3
|
renderFlowchartForExport
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-7CXW6EGX.js";
|
|
5
5
|
import "./chunk-7IATMZSA.js";
|
|
6
6
|
import "./chunk-N6MZSBOL.js";
|
|
7
7
|
import "./chunk-LP7EC4MI.js";
|
|
@@ -15,7 +15,7 @@ import "./chunk-FJ57274M.js";
|
|
|
15
15
|
import "./chunk-24YPR5EH.js";
|
|
16
16
|
import "./chunk-RU2HHHYA.js";
|
|
17
17
|
import "./chunk-DEW62ON3.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-53SEVJQM.js";
|
|
19
19
|
import "./chunk-MTGGOCND.js";
|
|
20
20
|
import "./chunk-NWNSXHA5.js";
|
|
21
21
|
import "./chunk-7TF3QOOD.js";
|
|
@@ -33,4 +33,4 @@ export {
|
|
|
33
33
|
renderFlowchart,
|
|
34
34
|
renderFlowchartForExport
|
|
35
35
|
};
|
|
36
|
-
//# sourceMappingURL=flowchart-renderer-
|
|
36
|
+
//# sourceMappingURL=flowchart-renderer-BBJUPORB.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { b as DiagnosticSpec, P as PaletteConfig, C as CompactViewState, D as DgmoError } from './tag-groups-
|
|
2
|
-
export { c as DgmoSeverity, d as DiagnosticParams, E as EmitOptions, a as PaletteColors, e as emit, f as formatDgmoError } from './tag-groups-
|
|
3
|
-
export { C as ChartTypeId, a as ChartTypeMeta, c as chartTypes, g as getPalette, r as resolvePaletteOrFallback, p as validate } from './dgmo-router-
|
|
4
|
-
import { T as Theme } from './themes-
|
|
5
|
-
export { M as MapCompletionOptions, a as MapLocationMatch, b as MapPlaceCompletion, c as MapRegionCompletion, d as completeMapPlaces, e as completeMapRegions, p as palettes, s as searchMapLocations, t as themes } from './themes-
|
|
6
|
-
import { M as MapDataSource } from './d3
|
|
7
|
-
export { G as Gazetteer, a as GazetteerEntry, b as MapData, R as RegionName, c as RegionNames } from './d3
|
|
1
|
+
import { b as DiagnosticSpec, P as PaletteConfig, C as CompactViewState, D as DgmoError } from './tag-groups-BAtkq0b_.js';
|
|
2
|
+
export { c as DgmoSeverity, d as DiagnosticParams, E as EmitOptions, a as PaletteColors, e as emit, f as formatDgmoError } from './tag-groups-BAtkq0b_.js';
|
|
3
|
+
export { C as ChartTypeId, a as ChartTypeMeta, c as chartTypes, g as getPalette, r as resolvePaletteOrFallback, p as validate } from './dgmo-router-BwXHZ_P3.js';
|
|
4
|
+
import { T as Theme } from './themes-DpsyRSO7.js';
|
|
5
|
+
export { M as MapCompletionOptions, a as MapLocationMatch, b as MapPlaceCompletion, c as MapRegionCompletion, d as completeMapPlaces, e as completeMapRegions, p as palettes, s as searchMapLocations, t as themes } from './themes-DpsyRSO7.js';
|
|
6
|
+
import { M as MapDataSource } from './d3-BiaJtaSw.js';
|
|
7
|
+
export { G as Gazetteer, a as GazetteerEntry, b as MapData, R as RegionName, c as RegionNames } from './d3-BiaJtaSw.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Make an SVG produced by `@diagrammo/dgmo`'s static `render()` suitable for
|
package/dist/index.js
CHANGED
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
} from "./chunk-SQAG3UXH.js";
|
|
12
12
|
import {
|
|
13
13
|
render
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-HDLRRY3N.js";
|
|
15
15
|
import {
|
|
16
16
|
renderErrorCard
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-OZOHREFQ.js";
|
|
18
18
|
import {
|
|
19
19
|
MAP_DIAGNOSTICS
|
|
20
20
|
} from "./chunk-EOYPX6SF.js";
|
|
@@ -22,18 +22,18 @@ import {
|
|
|
22
22
|
D3_DATA_CHART_TYPES,
|
|
23
23
|
renderDataChartD3,
|
|
24
24
|
supportsD3DataChart
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-UH5YTZN7.js";
|
|
26
26
|
import "./chunk-L65WI4HO.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-QXMHBIQG.js";
|
|
28
28
|
import "./chunk-YRYKTYMQ.js";
|
|
29
29
|
import "./chunk-24YPR5EH.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-3E4YB6TY.js";
|
|
31
31
|
import "./chunk-MG3DE3VO.js";
|
|
32
32
|
import "./chunk-RU2HHHYA.js";
|
|
33
33
|
import "./chunk-DEW62ON3.js";
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-U4DS2ODO.js";
|
|
35
|
+
import "./chunk-VRPV6QXR.js";
|
|
36
|
+
import "./chunk-53SEVJQM.js";
|
|
37
37
|
import "./chunk-YT5ICQ4R.js";
|
|
38
38
|
import "./chunk-MTGGOCND.js";
|
|
39
39
|
import {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SKETCH_AUTO_LAYOUT_DEFAULTS,
|
|
3
3
|
layoutSketch
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FR5EVD2X.js";
|
|
5
5
|
import "./chunk-EGY3TS62.js";
|
|
6
6
|
import "./chunk-5SI6T5A5.js";
|
|
7
7
|
import "./chunk-5WRI5ZAA.js";
|
|
@@ -9,4 +9,4 @@ export {
|
|
|
9
9
|
SKETCH_AUTO_LAYOUT_DEFAULTS,
|
|
10
10
|
layoutSketch
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=layout-
|
|
12
|
+
//# sourceMappingURL=layout-Y2V3LYV7.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
renderWireframe
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MZEGUDTA.js";
|
|
4
4
|
import "./chunk-24YPR5EH.js";
|
|
5
5
|
import "./chunk-DEW62ON3.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-53SEVJQM.js";
|
|
7
7
|
import "./chunk-MTGGOCND.js";
|
|
8
8
|
import "./chunk-M5OOAP65.js";
|
|
9
9
|
import "./chunk-GLREDNBA.js";
|
|
@@ -13,4 +13,4 @@ import "./chunk-5WRI5ZAA.js";
|
|
|
13
13
|
export {
|
|
14
14
|
renderWireframe
|
|
15
15
|
};
|
|
16
|
-
//# sourceMappingURL=renderer-
|
|
16
|
+
//# sourceMappingURL=renderer-2ANDPQWC.js.map
|
|
@@ -2,12 +2,12 @@ import {
|
|
|
2
2
|
authoredCollapsedIds,
|
|
3
3
|
renderBlock,
|
|
4
4
|
renderBlockForExport
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-5ZD4DDG7.js";
|
|
6
6
|
import "./chunk-MG3DE3VO.js";
|
|
7
7
|
import "./chunk-DEW62ON3.js";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-U4DS2ODO.js";
|
|
9
|
+
import "./chunk-VRPV6QXR.js";
|
|
10
|
+
import "./chunk-53SEVJQM.js";
|
|
11
11
|
import "./chunk-YT5ICQ4R.js";
|
|
12
12
|
import "./chunk-MTGGOCND.js";
|
|
13
13
|
import "./chunk-XSVWUOUZ.js";
|
|
@@ -22,4 +22,4 @@ export {
|
|
|
22
22
|
renderBlock,
|
|
23
23
|
renderBlockForExport
|
|
24
24
|
};
|
|
25
|
-
//# sourceMappingURL=renderer-
|
|
25
|
+
//# sourceMappingURL=renderer-2LDT4TUX.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
renderPyramid,
|
|
3
3
|
renderPyramidForExport
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-RGW26UAR.js";
|
|
5
5
|
import "./chunk-NCT22MOD.js";
|
|
6
6
|
import "./chunk-WGC42WJU.js";
|
|
7
7
|
import "./chunk-24YPR5EH.js";
|
|
8
8
|
import "./chunk-DEW62ON3.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-53SEVJQM.js";
|
|
10
10
|
import "./chunk-MTGGOCND.js";
|
|
11
11
|
import "./chunk-M5OOAP65.js";
|
|
12
12
|
import "./chunk-GLREDNBA.js";
|
|
@@ -17,4 +17,4 @@ export {
|
|
|
17
17
|
renderPyramid,
|
|
18
18
|
renderPyramidForExport
|
|
19
19
|
};
|
|
20
|
-
//# sourceMappingURL=renderer-
|
|
20
|
+
//# sourceMappingURL=renderer-2NYQDW37.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
renderERDiagram,
|
|
3
3
|
renderERDiagramForExport
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-RV5A3EGI.js";
|
|
5
5
|
import "./chunk-5VMUVJO4.js";
|
|
6
6
|
import "./chunk-Q74GP3GK.js";
|
|
7
7
|
import "./chunk-OWVDD5EC.js";
|
|
@@ -15,9 +15,9 @@ import "./chunk-24YPR5EH.js";
|
|
|
15
15
|
import "./chunk-MG3DE3VO.js";
|
|
16
16
|
import "./chunk-RU2HHHYA.js";
|
|
17
17
|
import "./chunk-DEW62ON3.js";
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-U4DS2ODO.js";
|
|
19
|
+
import "./chunk-VRPV6QXR.js";
|
|
20
|
+
import "./chunk-53SEVJQM.js";
|
|
21
21
|
import "./chunk-YT5ICQ4R.js";
|
|
22
22
|
import "./chunk-MTGGOCND.js";
|
|
23
23
|
import "./chunk-ICVIJLBA.js";
|
|
@@ -36,4 +36,4 @@ export {
|
|
|
36
36
|
renderERDiagram,
|
|
37
37
|
renderERDiagramForExport
|
|
38
38
|
};
|
|
39
|
-
//# sourceMappingURL=renderer-
|
|
39
|
+
//# sourceMappingURL=renderer-2RIIIO34.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
renderFamily,
|
|
3
3
|
renderFamilyForExport
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-6ZZKEYBS.js";
|
|
5
5
|
import "./chunk-IVKC4GID.js";
|
|
6
6
|
import "./chunk-FJ57274M.js";
|
|
7
7
|
import "./chunk-MG3DE3VO.js";
|
|
8
8
|
import "./chunk-DEW62ON3.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-U4DS2ODO.js";
|
|
10
|
+
import "./chunk-VRPV6QXR.js";
|
|
11
|
+
import "./chunk-53SEVJQM.js";
|
|
12
12
|
import "./chunk-YT5ICQ4R.js";
|
|
13
13
|
import "./chunk-MTGGOCND.js";
|
|
14
14
|
import "./chunk-2CW5ZTNH.js";
|
|
@@ -22,4 +22,4 @@ export {
|
|
|
22
22
|
renderFamily,
|
|
23
23
|
renderFamilyForExport
|
|
24
24
|
};
|
|
25
|
-
//# sourceMappingURL=renderer-
|
|
25
|
+
//# sourceMappingURL=renderer-3HFU3DTO.js.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
renderKanban,
|
|
3
3
|
renderKanbanForExport
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-V4NHFY22.js";
|
|
5
5
|
import "./chunk-WGC42WJU.js";
|
|
6
6
|
import "./chunk-FJ57274M.js";
|
|
7
7
|
import "./chunk-24YPR5EH.js";
|
|
8
8
|
import "./chunk-RU2HHHYA.js";
|
|
9
9
|
import "./chunk-DEW62ON3.js";
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-U4DS2ODO.js";
|
|
11
|
+
import "./chunk-VRPV6QXR.js";
|
|
12
|
+
import "./chunk-53SEVJQM.js";
|
|
13
13
|
import "./chunk-YT5ICQ4R.js";
|
|
14
14
|
import "./chunk-MTGGOCND.js";
|
|
15
15
|
import "./chunk-3SP6G4LN.js";
|
|
@@ -24,4 +24,4 @@ export {
|
|
|
24
24
|
renderKanban,
|
|
25
25
|
renderKanbanForExport
|
|
26
26
|
};
|
|
27
|
-
//# sourceMappingURL=renderer-
|
|
27
|
+
//# sourceMappingURL=renderer-4BF6ILP6.js.map
|