@graphysdk/viz-engine 1.9.0-beta.1790855561349 → 1.9.0-beta.1790864848006
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/{annotations-Clq-TujA.js → annotations-BAIxYVN1.js} +272 -262
- package/dist/annotations-DEVP3S1V.cjs +1 -0
- package/dist/compiler-BF1QoWfF.cjs +1 -0
- package/dist/{compiler-Bo0a7uoP.js → compiler-C-mWGVFy.js} +1149 -1139
- package/dist/graph-config.cjs +1 -1
- package/dist/graph-config.d.ts +8 -8
- package/dist/graph-config.mjs +2 -2
- package/dist/index.cjs +4 -4
- package/dist/index.d.ts +27 -7
- package/dist/index.mjs +2549 -2546
- package/dist/{spec-builder-C-hG1VlX.js → spec-builder-COtL2O9R.js} +1 -1
- package/dist/{spec-builder-Dss7aT3B.cjs → spec-builder-DX1vSpAK.cjs} +1 -1
- package/dist/testing.cjs +1 -1
- package/dist/testing.d.ts +8 -8
- package/dist/testing.mjs +4 -4
- package/package.json +1 -1
- package/dist/annotations-Dkuj9Ewz.cjs +0 -1
- package/dist/compiler-6UJA9TYz.cjs +0 -1
|
@@ -110,9 +110,11 @@ var ut = "#FFFFFF", Be = "#1A1A1A", Jr = 4.5, Qr = (e) => {
|
|
|
110
110
|
count: b("count"),
|
|
111
111
|
mean: b("mean"),
|
|
112
112
|
sum: b("sum")
|
|
113
|
-
}, Ke = { group: b("group") },
|
|
113
|
+
}, Ke = { group: b("group") }, y = {
|
|
114
114
|
x: b("x"),
|
|
115
115
|
y: b("y"),
|
|
116
|
+
xBand: b("xBand"),
|
|
117
|
+
yBand: b("yBand"),
|
|
116
118
|
xMin: b("xMin"),
|
|
117
119
|
xMax: b("xMax"),
|
|
118
120
|
yMin: b("yMin"),
|
|
@@ -131,33 +133,39 @@ var ut = "#FFFFFF", Be = "#1A1A1A", Jr = 4.5, Qr = (e) => {
|
|
|
131
133
|
...Ht,
|
|
132
134
|
...Kt,
|
|
133
135
|
...Ke,
|
|
134
|
-
...
|
|
136
|
+
...y,
|
|
135
137
|
...Xt,
|
|
136
138
|
...fe,
|
|
137
139
|
...be
|
|
138
140
|
}, ca = new Set(Object.values(Kt)), ua = (e) => b(`scaled_${e}`), Fi = (e) => e.startsWith(jt), da = (e) => ca.has(e);
|
|
139
141
|
function Q(e) {
|
|
140
|
-
return e[
|
|
142
|
+
return e[y.x];
|
|
141
143
|
}
|
|
142
144
|
function j(e) {
|
|
143
|
-
return e[
|
|
145
|
+
return e[y.y];
|
|
146
|
+
}
|
|
147
|
+
function Pi(e) {
|
|
148
|
+
return e[y.xBand] ?? e[y.x];
|
|
149
|
+
}
|
|
150
|
+
function Ni(e) {
|
|
151
|
+
return e[y.yBand] ?? e[y.y];
|
|
144
152
|
}
|
|
145
153
|
function Z(e) {
|
|
146
|
-
return e[
|
|
154
|
+
return e[y.xMin];
|
|
147
155
|
}
|
|
148
156
|
function ee(e) {
|
|
149
|
-
return e[
|
|
157
|
+
return e[y.xMax];
|
|
150
158
|
}
|
|
151
159
|
function H(e) {
|
|
152
|
-
return e[
|
|
160
|
+
return e[y.yMin];
|
|
153
161
|
}
|
|
154
162
|
function K(e) {
|
|
155
|
-
return e[
|
|
163
|
+
return e[y.yMax];
|
|
156
164
|
}
|
|
157
165
|
function ha(e) {
|
|
158
|
-
return e[
|
|
166
|
+
return e[y.yRaw];
|
|
159
167
|
}
|
|
160
|
-
function
|
|
168
|
+
function Oi(e, t) {
|
|
161
169
|
return e[ua(t)];
|
|
162
170
|
}
|
|
163
171
|
var fa = {
|
|
@@ -225,24 +233,24 @@ var fa = {
|
|
|
225
233
|
y: a
|
|
226
234
|
};
|
|
227
235
|
}
|
|
228
|
-
},
|
|
236
|
+
}, Bi = (e) => qt(fa, e), Xe = (e) => (Array.isArray(e) ? e : [e]).map((t) => t instanceof Date ? t.toISOString() : String(t ?? "<null>")).join("\0"), Vi = (e, t) => e === t ? !0 : He(e) && He(t) ? e.getTime() === t.getTime() : !1, ya = (e) => e === null ? "null" : e instanceof Date ? `date:${e.getTime()}` : `${typeof e}:${e}`, Wi = (e) => e.length > 0;
|
|
229
237
|
function Y(e) {
|
|
230
238
|
return e != null;
|
|
231
239
|
}
|
|
232
|
-
function
|
|
240
|
+
function Ui(e) {
|
|
233
241
|
if (e === null || typeof e != "object") return !1;
|
|
234
242
|
const t = Object.getPrototypeOf(e);
|
|
235
243
|
return t === Object.prototype || t === null;
|
|
236
244
|
}
|
|
237
|
-
function
|
|
245
|
+
function Yi(e) {
|
|
238
246
|
const { numeric: t, categorical: r, temporal: a } = e.groupVariableNamesByType();
|
|
239
247
|
return a[0] ?? r[0] ?? t[0] ?? "";
|
|
240
248
|
}
|
|
241
|
-
function
|
|
249
|
+
function zi(e, t) {
|
|
242
250
|
const { categorical: r, temporal: a } = e.groupVariableNamesByType(), n = [...r, ...a];
|
|
243
251
|
return t === "" || n.includes(t) ? n : [t, ...n];
|
|
244
252
|
}
|
|
245
|
-
function
|
|
253
|
+
function Gi(e) {
|
|
246
254
|
const t = D(e.x);
|
|
247
255
|
return t === null || t === Ht.x ? "" : t;
|
|
248
256
|
}
|
|
@@ -253,7 +261,7 @@ function De(e) {
|
|
|
253
261
|
if (!(!Y(e) || typeof e == "string") && "value" in e)
|
|
254
262
|
return e.value;
|
|
255
263
|
}
|
|
256
|
-
function
|
|
264
|
+
function $i(e, t) {
|
|
257
265
|
return [.../* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)])].every((r) => dt(e[r]) === dt(t[r]));
|
|
258
266
|
}
|
|
259
267
|
function dt(e) {
|
|
@@ -302,7 +310,7 @@ var ga = [
|
|
|
302
310
|
dashed: [1.5, 3],
|
|
303
311
|
dotted: [0, 2]
|
|
304
312
|
}
|
|
305
|
-
},
|
|
313
|
+
}, ji = (e) => ma.includes(e);
|
|
306
314
|
function Ae(e) {
|
|
307
315
|
return e === "stack" || e === "fill";
|
|
308
316
|
}
|
|
@@ -321,13 +329,13 @@ var Ie = "en-GB", Jt = class extends Error {
|
|
|
321
329
|
code: e.code ?? "INTERNAL_INVARIANT"
|
|
322
330
|
}), this.kind = "internal";
|
|
323
331
|
}
|
|
324
|
-
}, Qt = (e) => e.type === "lookup", ba = (e) => e.type === "text", Ee = (e) => e.type === "date" || e.type === "datetime" || e.type === "year" || e.type === "month_year" || e.type === "month" || e.type === "day_month" || e.type === "weekly_date_range" || e.type === "weekly_date_range_with_year" || e.type === "quarter" || e.type === "time", va = (e) => e.type === "decimal" || e.type === "integer" || e.type === "percentage" || e.type === "duration" || e.type === "currency",
|
|
332
|
+
}, Qt = (e) => e.type === "lookup", ba = (e) => e.type === "text", Ee = (e) => e.type === "date" || e.type === "datetime" || e.type === "year" || e.type === "month_year" || e.type === "month" || e.type === "day_month" || e.type === "weekly_date_range" || e.type === "weekly_date_range_with_year" || e.type === "quarter" || e.type === "time", va = (e) => e.type === "decimal" || e.type === "integer" || e.type === "percentage" || e.type === "duration" || e.type === "currency", Hi = (e) => e.type === "currency", Ki = (e) => e.type === "month" || e.type === "day_month" || e.type === "weekly_date_range", Zt = (e) => {
|
|
325
333
|
if (Qt(e)) return Zt(e.fallback);
|
|
326
334
|
if (Ee(e)) return "temporal";
|
|
327
335
|
if (va(e)) return "numeric";
|
|
328
336
|
if (ba(e)) return "categorical";
|
|
329
337
|
throw new R({ message: `No data type found for value format: ${e.type}` });
|
|
330
|
-
},
|
|
338
|
+
}, Xi = (e) => Qt(e) ? e.fallback : e, Aa = class {
|
|
331
339
|
constructor() {
|
|
332
340
|
this.currentYear = (/* @__PURE__ */ new Date()).getUTCFullYear(), this.previousDate = null, this.previousYear = null;
|
|
333
341
|
}
|
|
@@ -765,9 +773,9 @@ var Ie = "en-GB", Jt = class extends Error {
|
|
|
765
773
|
const a = pr(e, t, r);
|
|
766
774
|
return a !== null || !Ee(t) ? a : Na(e);
|
|
767
775
|
}, ie = process.env.NODE_ENV !== "production";
|
|
768
|
-
var Pe = !0,
|
|
776
|
+
var Pe = !0, qi = (e) => {
|
|
769
777
|
Pe = e;
|
|
770
|
-
},
|
|
778
|
+
}, Ji = () => Pe, Qi = () => {
|
|
771
779
|
let e = null;
|
|
772
780
|
const t = {
|
|
773
781
|
hits: 0,
|
|
@@ -814,7 +822,7 @@ var Pe = !0, Ki = (e) => {
|
|
|
814
822
|
out: o
|
|
815
823
|
}]), o;
|
|
816
824
|
}, { stats: t });
|
|
817
|
-
},
|
|
825
|
+
}, Zi = (...e) => e.reduce((t, r) => ({
|
|
818
826
|
hits: t.hits + r.hits,
|
|
819
827
|
misses: t.misses + r.misses
|
|
820
828
|
}), {
|
|
@@ -837,7 +845,7 @@ var Pe = !0, Ki = (e) => {
|
|
|
837
845
|
key(e) {
|
|
838
846
|
return this.singletonKey;
|
|
839
847
|
}
|
|
840
|
-
}, tt = (e, t) => e >= 0 && e <= 1 && t >= 0 && t <= 1,
|
|
848
|
+
}, tt = (e, t) => e >= 0 && e <= 1 && t >= 0 && t <= 1, eo = ["x", "y"], Ka = /* @__PURE__ */ new Set([
|
|
841
849
|
"x",
|
|
842
850
|
"y",
|
|
843
851
|
"ySecondary"
|
|
@@ -847,14 +855,14 @@ var Pe = !0, Ki = (e) => {
|
|
|
847
855
|
"alpha",
|
|
848
856
|
"strokeWidth",
|
|
849
857
|
"lineType"
|
|
850
|
-
]), Xa = (e) => Ka.has(e), qa = (e) => vr.has(e),
|
|
858
|
+
]), Xa = (e) => Ka.has(e), qa = (e) => vr.has(e), to = (e) => Xa(e) || qa(e);
|
|
851
859
|
function Ja(e) {
|
|
852
860
|
return e === "secondary" ? "ySecondary" : "y";
|
|
853
861
|
}
|
|
854
|
-
function
|
|
862
|
+
function ro(e, t) {
|
|
855
863
|
return e === "y" ? Ja(t) : "x";
|
|
856
864
|
}
|
|
857
|
-
function
|
|
865
|
+
function ao(e) {
|
|
858
866
|
return e === "ySecondary" ? "y" : e;
|
|
859
867
|
}
|
|
860
868
|
var Qa = /* @__PURE__ */ new Set([
|
|
@@ -1020,7 +1028,7 @@ var an = (e) => e == null || typeof e == "number" && Number.isNaN(e), nn = (e) =
|
|
|
1020
1028
|
})), o = t.map((d) => this.values(d) ?? []), l = new Array(s), c = new Array(s);
|
|
1021
1029
|
let u = 0;
|
|
1022
1030
|
for (let d = 0; d < this.rowCount; d++) for (let p = 0; p < t.length; p++, u++) {
|
|
1023
|
-
for (const
|
|
1031
|
+
for (const g of i) g.repeated[u] = g.source[d] ?? null;
|
|
1024
1032
|
l[u] = t[p] ?? "", c[u] = o[p]?.[d] ?? null;
|
|
1025
1033
|
}
|
|
1026
1034
|
const h = /* @__PURE__ */ new Map();
|
|
@@ -1232,11 +1240,11 @@ var sn = "value", ve = {
|
|
|
1232
1240
|
if (c.length === 0) {
|
|
1233
1241
|
const d = {};
|
|
1234
1242
|
for (const p of l) {
|
|
1235
|
-
const
|
|
1236
|
-
|
|
1237
|
-
type:
|
|
1243
|
+
const g = this.variableMetadata[p];
|
|
1244
|
+
g && (d[p] = {
|
|
1245
|
+
type: g.type,
|
|
1238
1246
|
values: [],
|
|
1239
|
-
valueFormat:
|
|
1247
|
+
valueFormat: g.valueFormat
|
|
1240
1248
|
});
|
|
1241
1249
|
}
|
|
1242
1250
|
return d[a] = {
|
|
@@ -1426,7 +1434,7 @@ var Tr = class {
|
|
|
1426
1434
|
r[o.key] = pn(o.key, e.rows, c, u, t);
|
|
1427
1435
|
}
|
|
1428
1436
|
return new oe(r);
|
|
1429
|
-
},
|
|
1437
|
+
}, no = class extends Ha {
|
|
1430
1438
|
dependencies(e) {
|
|
1431
1439
|
return [e];
|
|
1432
1440
|
}
|
|
@@ -1460,18 +1468,18 @@ var Tr = class {
|
|
|
1460
1468
|
for (const a of e)
|
|
1461
1469
|
if (fr(a) || r.push(a), r.length === t) return r;
|
|
1462
1470
|
return r;
|
|
1463
|
-
},
|
|
1471
|
+
}, so = /* @__PURE__ */ new Set([
|
|
1464
1472
|
"min",
|
|
1465
1473
|
"max",
|
|
1466
1474
|
"scalar"
|
|
1467
1475
|
]), mn = {
|
|
1468
1476
|
x: {
|
|
1469
|
-
min:
|
|
1470
|
-
max:
|
|
1477
|
+
min: y.xMin,
|
|
1478
|
+
max: y.xMax
|
|
1471
1479
|
},
|
|
1472
1480
|
y: {
|
|
1473
|
-
min:
|
|
1474
|
-
max:
|
|
1481
|
+
min: y.yMin,
|
|
1482
|
+
max: y.yMax
|
|
1475
1483
|
}
|
|
1476
1484
|
};
|
|
1477
1485
|
function bn(e) {
|
|
@@ -1479,13 +1487,13 @@ function bn(e) {
|
|
|
1479
1487
|
for (const r of e) r.role === "point" ? t.add(r.axis) : (r.role === "min" || r.role === "max") && Y(r.aes) && t.add(r.aes);
|
|
1480
1488
|
return [...t];
|
|
1481
1489
|
}
|
|
1482
|
-
function
|
|
1490
|
+
function io(e) {
|
|
1483
1491
|
const t = /* @__PURE__ */ new Set();
|
|
1484
1492
|
for (const r of e)
|
|
1485
1493
|
r.role === "point" && t.add(r.axis), Y(r.aes) && t.add(r.aes);
|
|
1486
1494
|
return [...t];
|
|
1487
1495
|
}
|
|
1488
|
-
function
|
|
1496
|
+
function oo(e, t, r) {
|
|
1489
1497
|
let a = e;
|
|
1490
1498
|
for (const n of t) {
|
|
1491
1499
|
if (n.role !== "min" && n.role !== "max" || !Y(n.aes)) continue;
|
|
@@ -1521,7 +1529,7 @@ var vn = (e, t) => {
|
|
|
1521
1529
|
"lg",
|
|
1522
1530
|
"xl",
|
|
1523
1531
|
"full"
|
|
1524
|
-
],
|
|
1532
|
+
], lo = {
|
|
1525
1533
|
point: xn,
|
|
1526
1534
|
line: Mn,
|
|
1527
1535
|
area: En,
|
|
@@ -1566,12 +1574,12 @@ var kn = [
|
|
|
1566
1574
|
"diagonal",
|
|
1567
1575
|
"dots",
|
|
1568
1576
|
"crosshatch"
|
|
1569
|
-
], _n = ["tile", "stretch"], kr = (e) => typeof e == "object" && e !== null && "gradient" in e, _r = (e) => typeof e == "object" && e !== null && "pattern" in e, Ln = (e) => typeof e == "object" && e !== null && "image" in e, Rn = (e) => typeof e != "object" ? e : kr(e) ? e.stops[0]?.color ?? "transparent" : _r(e) ? e.color : e.fallback,
|
|
1577
|
+
], _n = ["tile", "stretch"], kr = (e) => typeof e == "object" && e !== null && "gradient" in e, _r = (e) => typeof e == "object" && e !== null && "pattern" in e, Ln = (e) => typeof e == "object" && e !== null && "image" in e, Rn = (e) => typeof e != "object" ? e : kr(e) ? e.stops[0]?.color ?? "transparent" : _r(e) ? e.color : e.fallback, co = (e) => typeof e == "string" ? e : JSON.stringify(e), Cn = [
|
|
1570
1578
|
"topLeft",
|
|
1571
1579
|
"topRight",
|
|
1572
1580
|
"bottomRight",
|
|
1573
1581
|
"bottomLeft"
|
|
1574
|
-
],
|
|
1582
|
+
], uo = ["dimmed", "hovered"], Dn = [
|
|
1575
1583
|
"normal",
|
|
1576
1584
|
"italic",
|
|
1577
1585
|
"oblique"
|
|
@@ -1607,7 +1615,7 @@ var kn = [
|
|
|
1607
1615
|
"cross",
|
|
1608
1616
|
"star",
|
|
1609
1617
|
"wye"
|
|
1610
|
-
],
|
|
1618
|
+
], ho = [
|
|
1611
1619
|
"fill",
|
|
1612
1620
|
"stroke",
|
|
1613
1621
|
"alpha",
|
|
@@ -1665,7 +1673,7 @@ var Mt = (e, t) => {
|
|
|
1665
1673
|
}
|
|
1666
1674
|
const r = Object.entries(e).map(([a, n]) => [a, Mt(n, t)]);
|
|
1667
1675
|
return r.every(([a, n]) => n === e[a]) ? e : Object.fromEntries(r);
|
|
1668
|
-
}, x = (e) => typeof e == "number" && Number.isFinite(e),
|
|
1676
|
+
}, x = (e) => typeof e == "number" && Number.isFinite(e), m = (e, t) => ({
|
|
1669
1677
|
status: "rejected",
|
|
1670
1678
|
expected: e,
|
|
1671
1679
|
actual: t
|
|
@@ -1674,13 +1682,13 @@ var Mt = (e, t) => {
|
|
|
1674
1682
|
return (r) => e.includes(r) ? {
|
|
1675
1683
|
status: "accepted",
|
|
1676
1684
|
value: r
|
|
1677
|
-
} :
|
|
1685
|
+
} : m(t, r);
|
|
1678
1686
|
}, J = (e, t) => {
|
|
1679
1687
|
if (typeof e == "string")
|
|
1680
1688
|
return e.trim().length > 0 ? {
|
|
1681
1689
|
status: "accepted",
|
|
1682
1690
|
value: e
|
|
1683
|
-
} :
|
|
1691
|
+
} : m("a non-empty color string", e);
|
|
1684
1692
|
if (Lr(e)) {
|
|
1685
1693
|
const r = t[e.token];
|
|
1686
1694
|
return r === void 0 ? {
|
|
@@ -1700,17 +1708,17 @@ var Mt = (e, t) => {
|
|
|
1700
1708
|
light: e.light,
|
|
1701
1709
|
dark: e.dark
|
|
1702
1710
|
}
|
|
1703
|
-
} :
|
|
1711
|
+
} : m(Vn, e);
|
|
1704
1712
|
}, Yn = (e, t) => {
|
|
1705
1713
|
if (typeof e != "object" || e === null || Ne(e) || Lr(e)) return J(e, t);
|
|
1706
1714
|
const r = e;
|
|
1707
1715
|
if (kr(r)) {
|
|
1708
1716
|
const a = r.gradient;
|
|
1709
|
-
if (a !== "linear" && a !== "radial") return
|
|
1710
|
-
if (!Array.isArray(r.stops) || r.stops.length < 2) return
|
|
1717
|
+
if (a !== "linear" && a !== "radial") return m(ke, e);
|
|
1718
|
+
if (!Array.isArray(r.stops) || r.stops.length < 2) return m("a gradient with at least two stops", e);
|
|
1711
1719
|
const n = [];
|
|
1712
1720
|
for (const s of r.stops) {
|
|
1713
|
-
if (!x(s.offset) || s.offset < 0 || s.offset > 1) return
|
|
1721
|
+
if (!x(s.offset) || s.offset < 0 || s.offset > 1) return m("a gradient stop offset in [0, 1]", e);
|
|
1714
1722
|
const i = J(s.color, t);
|
|
1715
1723
|
if (i.status !== "accepted") return i;
|
|
1716
1724
|
n.push({
|
|
@@ -1724,7 +1732,7 @@ var Mt = (e, t) => {
|
|
|
1724
1732
|
gradient: "radial",
|
|
1725
1733
|
stops: n
|
|
1726
1734
|
}
|
|
1727
|
-
} : r.angle !== void 0 && !x(r.angle) ?
|
|
1735
|
+
} : r.angle !== void 0 && !x(r.angle) ? m("a gradient angle in degrees", e) : {
|
|
1728
1736
|
status: "accepted",
|
|
1729
1737
|
value: {
|
|
1730
1738
|
gradient: "linear",
|
|
@@ -1734,7 +1742,7 @@ var Mt = (e, t) => {
|
|
|
1734
1742
|
};
|
|
1735
1743
|
}
|
|
1736
1744
|
if (_r(r)) {
|
|
1737
|
-
if (!kn.includes(r.pattern)) return
|
|
1745
|
+
if (!kn.includes(r.pattern)) return m(ke, e);
|
|
1738
1746
|
const a = J(r.color, t);
|
|
1739
1747
|
if (a.status !== "accepted") return a;
|
|
1740
1748
|
const n = {
|
|
@@ -1747,7 +1755,7 @@ var Mt = (e, t) => {
|
|
|
1747
1755
|
n.background = s.value;
|
|
1748
1756
|
}
|
|
1749
1757
|
if (r.size !== void 0) {
|
|
1750
|
-
if (!x(r.size) || r.size <= 0) return
|
|
1758
|
+
if (!x(r.size) || r.size <= 0) return m("a pattern size in pixels", e);
|
|
1751
1759
|
n.size = r.size;
|
|
1752
1760
|
}
|
|
1753
1761
|
return {
|
|
@@ -1756,10 +1764,10 @@ var Mt = (e, t) => {
|
|
|
1756
1764
|
};
|
|
1757
1765
|
}
|
|
1758
1766
|
if (Ln(r)) {
|
|
1759
|
-
if (typeof r.image != "string" || !r.image.startsWith("data:image/")) return
|
|
1760
|
-
if (r.fit !== void 0 && !_n.includes(r.fit)) return
|
|
1761
|
-
if (r.alpha !== void 0 && (!x(r.alpha) || r.alpha < 0 || r.alpha > 1)) return
|
|
1762
|
-
if (r.size !== void 0 && (!x(r.size) || r.size <= 0)) return
|
|
1767
|
+
if (typeof r.image != "string" || !r.image.startsWith("data:image/")) return m("an image as a data:image URI", e);
|
|
1768
|
+
if (r.fit !== void 0 && !_n.includes(r.fit)) return m(ke, e);
|
|
1769
|
+
if (r.alpha !== void 0 && (!x(r.alpha) || r.alpha < 0 || r.alpha > 1)) return m("an image alpha in [0, 1]", e);
|
|
1770
|
+
if (r.size !== void 0 && (!x(r.size) || r.size <= 0)) return m("an image size in pixels", e);
|
|
1763
1771
|
const a = J(r.fallback, t);
|
|
1764
1772
|
return a.status !== "accepted" ? a : {
|
|
1765
1773
|
status: "accepted",
|
|
@@ -1772,7 +1780,7 @@ var Mt = (e, t) => {
|
|
|
1772
1780
|
}
|
|
1773
1781
|
};
|
|
1774
1782
|
}
|
|
1775
|
-
return
|
|
1783
|
+
return m(ke, e);
|
|
1776
1784
|
}, Et = (e) => {
|
|
1777
1785
|
if (x(e) && e >= 0) return {
|
|
1778
1786
|
status: "accepted",
|
|
@@ -1783,12 +1791,12 @@ var Mt = (e, t) => {
|
|
|
1783
1791
|
left: e
|
|
1784
1792
|
}
|
|
1785
1793
|
};
|
|
1786
|
-
if (typeof e != "object" || e === null) return
|
|
1794
|
+
if (typeof e != "object" || e === null) return m(At, e);
|
|
1787
1795
|
const t = e, r = {};
|
|
1788
1796
|
for (const a of Wn) {
|
|
1789
1797
|
const n = t[a];
|
|
1790
1798
|
if (n !== void 0) {
|
|
1791
|
-
if (!x(n) || n < 0) return
|
|
1799
|
+
if (!x(n) || n < 0) return m(At, e);
|
|
1792
1800
|
r[a] = n;
|
|
1793
1801
|
}
|
|
1794
1802
|
}
|
|
@@ -1801,56 +1809,56 @@ var Mt = (e, t) => {
|
|
|
1801
1809
|
status: "accepted",
|
|
1802
1810
|
value: e
|
|
1803
1811
|
};
|
|
1804
|
-
if (typeof e != "object" || e === null) return
|
|
1812
|
+
if (typeof e != "object" || e === null) return m(xt, e);
|
|
1805
1813
|
const t = e, r = {};
|
|
1806
1814
|
for (const a of Cn) {
|
|
1807
1815
|
const n = t[a];
|
|
1808
|
-
if (!x(n) || n < 0) return
|
|
1816
|
+
if (!x(n) || n < 0) return m(xt, e);
|
|
1809
1817
|
r[a] = n;
|
|
1810
1818
|
}
|
|
1811
1819
|
return {
|
|
1812
1820
|
status: "accepted",
|
|
1813
1821
|
value: r
|
|
1814
1822
|
};
|
|
1815
|
-
},
|
|
1823
|
+
}, fo = {
|
|
1816
1824
|
color: J,
|
|
1817
1825
|
paint: Yn,
|
|
1818
1826
|
unitInterval: (e) => x(e) && e >= 0 && e <= 1 ? {
|
|
1819
1827
|
status: "accepted",
|
|
1820
1828
|
value: e
|
|
1821
|
-
} :
|
|
1829
|
+
} : m("a number in [0, 1]", e),
|
|
1822
1830
|
pixels: (e) => x(e) && e >= 0 ? {
|
|
1823
1831
|
status: "accepted",
|
|
1824
1832
|
value: e
|
|
1825
|
-
} :
|
|
1833
|
+
} : m("a non-negative number of pixels", e),
|
|
1826
1834
|
barRadius: (e) => An(e) || x(e) && e >= 0 ? {
|
|
1827
1835
|
status: "accepted",
|
|
1828
1836
|
value: e
|
|
1829
|
-
} :
|
|
1837
|
+
} : m(`a number of pixels or one of ${Sr.map((t) => `'${t}'`).join(", ")}`, e),
|
|
1830
1838
|
dashArray: (e) => Array.isArray(e) && e.every((t) => x(t) && t >= 0) ? {
|
|
1831
1839
|
status: "accepted",
|
|
1832
1840
|
value: [...e]
|
|
1833
|
-
} :
|
|
1841
|
+
} : m("an array of non-negative dash and gap lengths, in stroke widths", e),
|
|
1834
1842
|
fontFamily: (e) => typeof e == "string" && e.trim().length > 0 ? {
|
|
1835
1843
|
status: "accepted",
|
|
1836
1844
|
value: e
|
|
1837
|
-
} :
|
|
1845
|
+
} : m("a non-empty CSS font-family list", e),
|
|
1838
1846
|
fontWeight: (e) => x(e) && e >= mt && e <= bt ? {
|
|
1839
1847
|
status: "accepted",
|
|
1840
1848
|
value: e
|
|
1841
|
-
} :
|
|
1849
|
+
} : m(`a number in [${mt}, ${bt}]`, e),
|
|
1842
1850
|
multiplier: (e) => x(e) && e >= 0 ? {
|
|
1843
1851
|
status: "accepted",
|
|
1844
1852
|
value: e
|
|
1845
|
-
} :
|
|
1853
|
+
} : m("a non-negative multiple, 1 being unchanged", e),
|
|
1846
1854
|
shadow: (e, t) => {
|
|
1847
1855
|
if (e === "none") return {
|
|
1848
1856
|
status: "accepted",
|
|
1849
1857
|
value: e
|
|
1850
1858
|
};
|
|
1851
|
-
if (typeof e != "object" || e === null) return
|
|
1859
|
+
if (typeof e != "object" || e === null) return m(vt, e);
|
|
1852
1860
|
const r = e;
|
|
1853
|
-
if (!x(r.offsetX) || !x(r.offsetY) || !x(r.blur) || r.blur < 0) return
|
|
1861
|
+
if (!x(r.offsetX) || !x(r.offsetY) || !x(r.blur) || r.blur < 0) return m(vt, e);
|
|
1854
1862
|
const a = J(r.color, t);
|
|
1855
1863
|
return a.status !== "accepted" ? a : {
|
|
1856
1864
|
status: "accepted",
|
|
@@ -1868,7 +1876,7 @@ var Mt = (e, t) => {
|
|
|
1868
1876
|
signedPixels: (e) => x(e) ? {
|
|
1869
1877
|
status: "accepted",
|
|
1870
1878
|
value: e
|
|
1871
|
-
} :
|
|
1879
|
+
} : m("a number of pixels, negative allowed", e),
|
|
1872
1880
|
fontStyle: X(Dn),
|
|
1873
1881
|
textTransform: X(In),
|
|
1874
1882
|
textDecoration: X(Fn),
|
|
@@ -1883,10 +1891,10 @@ var Mt = (e, t) => {
|
|
|
1883
1891
|
"role",
|
|
1884
1892
|
"position",
|
|
1885
1893
|
"part"
|
|
1886
|
-
],
|
|
1894
|
+
], po = "#B84737", $n = 0.4, yo = "sm", go = 2, mo = 8, bo = 12, vo = Object.freeze({
|
|
1887
1895
|
light: "#F5F1E9",
|
|
1888
1896
|
dark: "#1F1E1C"
|
|
1889
|
-
}),
|
|
1897
|
+
}), Ao = "#ffffff", xo = 1, Mo = 24, Eo = {
|
|
1890
1898
|
top: 24,
|
|
1891
1899
|
right: 24,
|
|
1892
1900
|
bottom: 24,
|
|
@@ -2062,7 +2070,7 @@ var Mt = (e, t) => {
|
|
|
2062
2070
|
shadow: "shadow",
|
|
2063
2071
|
alpha: "unitInterval"
|
|
2064
2072
|
}, Cr = /* @__PURE__ */ new Map();
|
|
2065
|
-
var
|
|
2073
|
+
var To = (e = Object.values(rt)) => {
|
|
2066
2074
|
const t = [], r = [], a = [], n = (s) => {
|
|
2067
2075
|
if (s.rest !== void 0 && t.push({
|
|
2068
2076
|
select: s.select,
|
|
@@ -2083,14 +2091,14 @@ var Mo = (e = Object.values(rt)) => {
|
|
|
2083
2091
|
...r,
|
|
2084
2092
|
...a
|
|
2085
2093
|
];
|
|
2086
|
-
},
|
|
2094
|
+
}, wo = (e) => {
|
|
2087
2095
|
for (const t of e) {
|
|
2088
2096
|
Object.freeze(t.select);
|
|
2089
2097
|
for (const r of Object.values(t.declarations)) typeof r == "object" && Object.freeze(r);
|
|
2090
2098
|
Object.freeze(t.declarations), t.when !== void 0 && Object.freeze(t.when), Object.freeze(t);
|
|
2091
2099
|
}
|
|
2092
2100
|
return e;
|
|
2093
|
-
},
|
|
2101
|
+
}, So = (e) => Cr.get(Dr(e)), _t = (e, t) => ({
|
|
2094
2102
|
x: {
|
|
2095
2103
|
select: {
|
|
2096
2104
|
target: e,
|
|
@@ -2946,14 +2954,14 @@ var at = (e, t) => {
|
|
|
2946
2954
|
x: r,
|
|
2947
2955
|
y: a
|
|
2948
2956
|
};
|
|
2949
|
-
},
|
|
2950
|
-
function
|
|
2957
|
+
}, ko = ({ positionRoles: e, aesthetics: t }) => [...bn(e), ...t.filter((r) => r.required).map((r) => r.name)];
|
|
2958
|
+
function _o(e) {
|
|
2951
2959
|
return e;
|
|
2952
2960
|
}
|
|
2953
2961
|
var Zn = (e) => e.observation?.aesthetics ?? rt.geom.aesthetics, es = (e) => e.observation?.sharedPaint === !1 ? { ...e.observation.vocabulary } : {
|
|
2954
2962
|
...Rr,
|
|
2955
2963
|
...e.observation?.vocabulary
|
|
2956
|
-
},
|
|
2964
|
+
}, Lo = (e, t) => ({
|
|
2957
2965
|
select: {
|
|
2958
2966
|
target: "geom",
|
|
2959
2967
|
kind: e
|
|
@@ -2998,7 +3006,7 @@ var Zn = (e) => e.observation?.aesthetics ?? rt.geom.aesthetics, es = (e) => e.o
|
|
|
2998
3006
|
anchor: as(s),
|
|
2999
3007
|
placement: h ? a : "inside",
|
|
3000
3008
|
offset: h ? o ?? i : 0
|
|
3001
|
-
},
|
|
3009
|
+
}, g = u ? t : e, v = r.valueAxis === "x" ? g : e, _ = r.valueAxis === "y" ? g : e, F = r.valueAxis === "x" ? d : p, O = r.valueAxis === "x" ? p : d, M = It(F, {
|
|
3002
3010
|
min: v.x,
|
|
3003
3011
|
max: v.x + v.width,
|
|
3004
3012
|
halfExtent: l / 2
|
|
@@ -3167,12 +3175,12 @@ var Zn = (e) => e.observation?.aesthetics ?? rt.geom.aesthetics, es = (e) => e.o
|
|
|
3167
3175
|
} : t;
|
|
3168
3176
|
}
|
|
3169
3177
|
compile({ data: e, mapping: t }) {
|
|
3170
|
-
return e = at(e, t), e.hasVariable(
|
|
3178
|
+
return e = at(e, t), e.hasVariable(y.yMin) || (e = e.addConstantVariable(y.yMin, "numeric", 0)), {
|
|
3171
3179
|
data: e,
|
|
3172
3180
|
mapping: {}
|
|
3173
3181
|
};
|
|
3174
3182
|
}
|
|
3175
|
-
}, cs = 0.7,
|
|
3183
|
+
}, cs = 0.7, Ro = 0.1, us = 0.03, ds = 0.05, hs = (e) => {
|
|
3176
3184
|
const t = e[Xt.role];
|
|
3177
3185
|
return t ?? "solo";
|
|
3178
3186
|
}, it = (e, t, r) => {
|
|
@@ -3266,14 +3274,14 @@ var Zn = (e) => e.observation?.aesthetics ?? rt.geom.aesthetics, es = (e) => e.o
|
|
|
3266
3274
|
if (h === null) continue;
|
|
3267
3275
|
const d = n(u);
|
|
3268
3276
|
if (d === "") continue;
|
|
3269
|
-
const p = it(a, "observation", d),
|
|
3270
|
-
l && p.inside.width >
|
|
3277
|
+
const p = it(a, "observation", d), g = lt(h, r);
|
|
3278
|
+
l && p.inside.width > g.width && (o = !0);
|
|
3271
3279
|
const v = c === null ? null : u[c], _ = S(v) && v < 0;
|
|
3272
3280
|
i.push({
|
|
3273
3281
|
isNegative: _,
|
|
3274
3282
|
text: d,
|
|
3275
3283
|
boxes: p,
|
|
3276
|
-
bounds:
|
|
3284
|
+
bounds: g,
|
|
3277
3285
|
observation: u
|
|
3278
3286
|
});
|
|
3279
3287
|
}
|
|
@@ -3368,7 +3376,7 @@ var Zn = (e) => e.observation?.aesthetics ?? rt.geom.aesthetics, es = (e) => e.o
|
|
|
3368
3376
|
if (d === null) continue;
|
|
3369
3377
|
const p = e.formatCategory(h);
|
|
3370
3378
|
if (p === null || p === "") continue;
|
|
3371
|
-
const
|
|
3379
|
+
const g = it(e.measureDataLabel, "category", p), v = g[o], _ = lt(d, e.panelRect), F = u === null ? null : h[u], O = S(F) && F < 0, M = we({
|
|
3372
3380
|
box: _,
|
|
3373
3381
|
panel: c,
|
|
3374
3382
|
orientation: Nr(l, O),
|
|
@@ -3378,7 +3386,7 @@ var Zn = (e) => e.observation?.aesthetics ?? rt.geom.aesthetics, es = (e) => e.o
|
|
|
3378
3386
|
offset: i,
|
|
3379
3387
|
labelWidth: v.width,
|
|
3380
3388
|
labelHeight: v.height
|
|
3381
|
-
}), L =
|
|
3389
|
+
}), L = g[M.position];
|
|
3382
3390
|
r.push({
|
|
3383
3391
|
layerId: e.layer.id,
|
|
3384
3392
|
x: M.x,
|
|
@@ -3428,7 +3436,7 @@ var Zn = (e) => e.observation?.aesthetics ?? rt.geom.aesthetics, es = (e) => e.o
|
|
|
3428
3436
|
};
|
|
3429
3437
|
}
|
|
3430
3438
|
}, ws = ({ edge: e, bounds: t, boxes: r, isRotated: a, panelWidth: n, panelHeight: s, offset: i }) => {
|
|
3431
|
-
const o = e === "top" || e === "bottom", l = t.x + t.width / 2, c = t.y + t.height / 2, u = o ? t.height : t.width, h = o ? t.width : t.height, { edgeCoord: d, outwardSign: p, panelExtent:
|
|
3439
|
+
const o = e === "top" || e === "bottom", l = t.x + t.width / 2, c = t.y + t.height / 2, u = o ? t.height : t.width, h = o ? t.width : t.height, { edgeCoord: d, outwardSign: p, panelExtent: g } = Ts(e, t, n, s), v = Qe(r.inside.width, r.inside.height, a), _ = o ? v.height : v.width, F = o ? v.width : v.height, O = _ + i < u, M = F <= h;
|
|
3432
3440
|
if (o ? O : O && M) {
|
|
3433
3441
|
if (o && !M) return null;
|
|
3434
3442
|
if (a) return {
|
|
@@ -3451,7 +3459,7 @@ var Zn = (e) => e.observation?.aesthetics ?? rt.geom.aesthetics, es = (e) => e.o
|
|
|
3451
3459
|
};
|
|
3452
3460
|
}
|
|
3453
3461
|
const L = Qe(r.outside.width, r.outside.height, a), T = (o ? L.height : L.width) / 2, P = d + p * (T + i);
|
|
3454
|
-
return P - T < 0 || P + T >
|
|
3462
|
+
return P - T < 0 || P + T > g ? null : {
|
|
3455
3463
|
...o ? {
|
|
3456
3464
|
x: l,
|
|
3457
3465
|
y: P
|
|
@@ -3468,10 +3476,10 @@ var Zn = (e) => e.observation?.aesthetics ?? rt.geom.aesthetics, es = (e) => e.o
|
|
|
3468
3476
|
const o = t === "y";
|
|
3469
3477
|
for (const l of i) {
|
|
3470
3478
|
const c = lt(ms(t, l), r), u = n(l.total), { width: h, height: d } = a("aggregate", "outside", u), p = l.anchor.direction === "positive";
|
|
3471
|
-
let
|
|
3472
|
-
o ? (
|
|
3479
|
+
let g, v;
|
|
3480
|
+
o ? (g = p ? c.x + c.width + _e + h / 2 : c.x - _e - h / 2, v = c.y + c.height / 2) : (g = c.x + c.width / 2, v = p ? c.y - _e - d / 2 : c.y + c.height + _e + d / 2), s.push({
|
|
3473
3481
|
layerId: e.id,
|
|
3474
|
-
x:
|
|
3482
|
+
x: g,
|
|
3475
3483
|
y: v,
|
|
3476
3484
|
text: u,
|
|
3477
3485
|
width: h,
|
|
@@ -3485,14 +3493,14 @@ var Zn = (e) => e.observation?.aesthetics ?? rt.geom.aesthetics, es = (e) => e.o
|
|
|
3485
3493
|
};
|
|
3486
3494
|
function ks(e) {
|
|
3487
3495
|
return {
|
|
3488
|
-
startAngle: e[
|
|
3489
|
-
endAngle: e[
|
|
3496
|
+
startAngle: e[y.xMin],
|
|
3497
|
+
endAngle: e[y.xMax]
|
|
3490
3498
|
};
|
|
3491
3499
|
}
|
|
3492
3500
|
function _s(e) {
|
|
3493
3501
|
return {
|
|
3494
|
-
innerRadius: e[
|
|
3495
|
-
outerRadius: e[
|
|
3502
|
+
innerRadius: e[y.yMin],
|
|
3503
|
+
outerRadius: e[y.yMax] ?? e[y.y]
|
|
3496
3504
|
};
|
|
3497
3505
|
}
|
|
3498
3506
|
var Ls = " · ", U = 2, Rs = (e) => {
|
|
@@ -3503,14 +3511,14 @@ var Ls = " · ", U = 2, Rs = (e) => {
|
|
|
3503
3511
|
};
|
|
3504
3512
|
const { position: r, justify: a, align: n, offset: s, showCategoryLabels: i } = e.layer.dataLabels, o = e.coordSystem.bandAxis === "y", l = e.panelRect.width / 2, c = e.panelRect.height / 2, u = Math.min(e.panelRect.width, e.panelRect.height) / 2, h = e.styleReaders;
|
|
3505
3513
|
for (const d of e.layer.data) {
|
|
3506
|
-
const { startAngle: p, endAngle:
|
|
3507
|
-
if (p === null ||
|
|
3514
|
+
const { startAngle: p, endAngle: g } = ks(d), { innerRadius: v, outerRadius: _ } = _s(d);
|
|
3515
|
+
if (p === null || g === null || _ === null) continue;
|
|
3508
3516
|
const F = e.formatLabel(d);
|
|
3509
3517
|
if (F === "") continue;
|
|
3510
3518
|
const O = i ? e.formatCategory(d) : null, M = O === null ? F : `${O}${Ls}${F}`, L = {
|
|
3511
3519
|
startAngle: p,
|
|
3512
|
-
endAngle:
|
|
3513
|
-
midAngle: (p +
|
|
3520
|
+
endAngle: g,
|
|
3521
|
+
midAngle: (p + g) / 2,
|
|
3514
3522
|
innerRadiusPx: (v ?? 0) * u,
|
|
3515
3523
|
outerRadiusPx: _ * u
|
|
3516
3524
|
};
|
|
@@ -3600,8 +3608,8 @@ var Ls = " · ", U = 2, Rs = (e) => {
|
|
|
3600
3608
|
if (c < e.innerRadiusPx - U || u > e.outerRadiusPx + U) return !1;
|
|
3601
3609
|
const h = Math.abs(e.endAngle - e.startAngle) / 2;
|
|
3602
3610
|
return h >= Math.PI ? !0 : l.every(([d, p]) => {
|
|
3603
|
-
const
|
|
3604
|
-
return
|
|
3611
|
+
const g = Math.hypot(d, p);
|
|
3612
|
+
return g <= U ? !0 : $t(Math.atan2(d, -p), e.midAngle) <= h + U / g;
|
|
3605
3613
|
}) ? h <= Math.PI / 2 ? !0 : c <= U ? !1 : !Pt(e.startAngle, o) && !Pt(e.endAngle, o) : !1;
|
|
3606
3614
|
}, Is = (e, t, r) => {
|
|
3607
3615
|
if (t <= 0 || t < e.innerRadiusPx - U || t > e.outerRadiusPx + U) return !1;
|
|
@@ -3769,9 +3777,9 @@ var Ls = " · ", U = 2, Rs = (e) => {
|
|
|
3769
3777
|
}
|
|
3770
3778
|
compile({ data: e, mapping: t, params: r, coordType: a }) {
|
|
3771
3779
|
const n = Ot(r, a);
|
|
3772
|
-
e = at(e, t), e.hasVariable(
|
|
3780
|
+
e = at(e, t), e.hasVariable(y.yMin) || (e = e.addConstantVariable(y.yMin, "numeric", 0));
|
|
3773
3781
|
const s = n / 2;
|
|
3774
|
-
return e = e.addConstantVariable(
|
|
3782
|
+
return e = e.addConstantVariable(y.xMin, "numeric", -s).addConstantVariable(y.xMax, "numeric", s), {
|
|
3775
3783
|
data: e,
|
|
3776
3784
|
mapping: {}
|
|
3777
3785
|
};
|
|
@@ -4156,16 +4164,16 @@ var Ls = " · ", U = 2, Rs = (e) => {
|
|
|
4156
4164
|
function js(e) {
|
|
4157
4165
|
return e[fe.color];
|
|
4158
4166
|
}
|
|
4159
|
-
function
|
|
4167
|
+
function Co(e) {
|
|
4160
4168
|
return e[fe.alpha];
|
|
4161
4169
|
}
|
|
4162
|
-
function
|
|
4170
|
+
function Do(e) {
|
|
4163
4171
|
return e[fe.size];
|
|
4164
4172
|
}
|
|
4165
|
-
function
|
|
4173
|
+
function Io(e) {
|
|
4166
4174
|
return e[fe.strokeWidth];
|
|
4167
4175
|
}
|
|
4168
|
-
function
|
|
4176
|
+
function Fo(e) {
|
|
4169
4177
|
return e[fe.lineType];
|
|
4170
4178
|
}
|
|
4171
4179
|
var Hs = (e) => {
|
|
@@ -4296,7 +4304,7 @@ var Hs = (e) => {
|
|
|
4296
4304
|
}
|
|
4297
4305
|
compile({ data: e }) {
|
|
4298
4306
|
return {
|
|
4299
|
-
data: e.addConstantVariable(
|
|
4307
|
+
data: e.addConstantVariable(y.xMin, "numeric", -0.5).addConstantVariable(y.xMax, "numeric", 0.5).addConstantVariable(y.yMin, "numeric", -0.5).addConstantVariable(y.yMax, "numeric", 0.5),
|
|
4300
4308
|
mapping: {}
|
|
4301
4309
|
};
|
|
4302
4310
|
}
|
|
@@ -4307,7 +4315,7 @@ var Hs = (e) => {
|
|
|
4307
4315
|
new ls(),
|
|
4308
4316
|
new $s(),
|
|
4309
4317
|
new Zs()
|
|
4310
|
-
],
|
|
4318
|
+
], Po = class extends Tr {
|
|
4311
4319
|
constructor() {
|
|
4312
4320
|
super("geom");
|
|
4313
4321
|
for (const e of ei) this.register(e.type, e);
|
|
@@ -4391,7 +4399,7 @@ var Hs = (e) => {
|
|
|
4391
4399
|
new si(),
|
|
4392
4400
|
new ii(),
|
|
4393
4401
|
new oi()
|
|
4394
|
-
],
|
|
4402
|
+
], No = class extends Tr {
|
|
4395
4403
|
constructor() {
|
|
4396
4404
|
super("transform");
|
|
4397
4405
|
for (const e of li) this.register(e.transformType, e);
|
|
@@ -4401,7 +4409,7 @@ function ci(e) {
|
|
|
4401
4409
|
if ("definition" in e) return e.definition;
|
|
4402
4410
|
if (Or(e) || Br(e) || Vr(e)) return e;
|
|
4403
4411
|
}
|
|
4404
|
-
function
|
|
4412
|
+
function Oo(e) {
|
|
4405
4413
|
const t = [], r = [], a = [];
|
|
4406
4414
|
for (const n of e) {
|
|
4407
4415
|
const s = ci(n);
|
|
@@ -4467,7 +4475,7 @@ function $e(e, t, r) {
|
|
|
4467
4475
|
});
|
|
4468
4476
|
return n;
|
|
4469
4477
|
}
|
|
4470
|
-
var Or = (e) => e instanceof re, Br = (e) => e instanceof ti, Vr = (e) => "transformType" in e && typeof e.apply == "function",
|
|
4478
|
+
var Or = (e) => e instanceof re, Br = (e) => e instanceof ti, Vr = (e) => "transformType" in e && typeof e.apply == "function", Bo = [
|
|
4471
4479
|
"brick",
|
|
4472
4480
|
"gray",
|
|
4473
4481
|
"red",
|
|
@@ -4478,7 +4486,7 @@ var Or = (e) => e instanceof re, Br = (e) => e instanceof ti, Vr = (e) => "trans
|
|
|
4478
4486
|
"blue",
|
|
4479
4487
|
"purple",
|
|
4480
4488
|
"pink"
|
|
4481
|
-
],
|
|
4489
|
+
], Vo = [
|
|
4482
4490
|
"cyan",
|
|
4483
4491
|
"pink",
|
|
4484
4492
|
"purple",
|
|
@@ -4639,7 +4647,7 @@ var Or = (e) => e instanceof re, Br = (e) => e instanceof ti, Vr = (e) => "trans
|
|
|
4639
4647
|
pink200: "#FED0F3",
|
|
4640
4648
|
pink100: "#FFE8F9",
|
|
4641
4649
|
pink50: "#FFF4FC"
|
|
4642
|
-
},
|
|
4650
|
+
}, Wo = [Me.brick100, Me.brick900], gi = [
|
|
4643
4651
|
Me.gray200,
|
|
4644
4652
|
I.green,
|
|
4645
4653
|
I.red,
|
|
@@ -4776,7 +4784,7 @@ var Or = (e) => e instanceof re, Br = (e) => e instanceof ti, Vr = (e) => "trans
|
|
|
4776
4784
|
Re.positive,
|
|
4777
4785
|
Re.negative,
|
|
4778
4786
|
Re.total
|
|
4779
|
-
],
|
|
4787
|
+
], Uo = {
|
|
4780
4788
|
transform: "linear",
|
|
4781
4789
|
reverse: !1,
|
|
4782
4790
|
nice: !0,
|
|
@@ -4787,16 +4795,16 @@ var Or = (e) => e instanceof re, Br = (e) => e instanceof ti, Vr = (e) => "trans
|
|
|
4787
4795
|
interpolate: "lab",
|
|
4788
4796
|
domainMid: null,
|
|
4789
4797
|
symmetric: !1
|
|
4790
|
-
},
|
|
4798
|
+
}, Yo = {
|
|
4791
4799
|
size: [4, 20],
|
|
4792
4800
|
alpha: [0.1, 1],
|
|
4793
4801
|
strokeWidth: [1, 4]
|
|
4794
|
-
},
|
|
4802
|
+
}, zo = {
|
|
4795
4803
|
domainMin: null,
|
|
4796
4804
|
domainMax: null,
|
|
4797
4805
|
nice: !1,
|
|
4798
4806
|
reverse: !1
|
|
4799
|
-
},
|
|
4807
|
+
}, Go = {
|
|
4800
4808
|
range: null,
|
|
4801
4809
|
domain: null,
|
|
4802
4810
|
padding: 0.1,
|
|
@@ -4809,7 +4817,7 @@ function vi(e) {
|
|
|
4809
4817
|
const t = Le.indexOf(C[e]);
|
|
4810
4818
|
return t <= 0 ? Le : [...Le.slice(t), ...Le.slice(0, t)];
|
|
4811
4819
|
}
|
|
4812
|
-
function
|
|
4820
|
+
function $o(e, t = {}) {
|
|
4813
4821
|
switch (e.type) {
|
|
4814
4822
|
case "default":
|
|
4815
4823
|
return t.hasTouchingGeoms ? zt(fi, t.colorScheme ?? "light", t.groupCount) : hi;
|
|
@@ -4825,7 +4833,7 @@ function zo(e, t = {}) {
|
|
|
4825
4833
|
return e.colors;
|
|
4826
4834
|
}
|
|
4827
4835
|
}
|
|
4828
|
-
function
|
|
4836
|
+
function jo(e, t) {
|
|
4829
4837
|
if (!t) return e;
|
|
4830
4838
|
const r = [...e];
|
|
4831
4839
|
for (const [a, n] of Object.entries(t)) {
|
|
@@ -4836,7 +4844,7 @@ function Go(e, t) {
|
|
|
4836
4844
|
}
|
|
4837
4845
|
return r;
|
|
4838
4846
|
}
|
|
4839
|
-
function
|
|
4847
|
+
function Ho(e, t, r, a) {
|
|
4840
4848
|
if (!t) return;
|
|
4841
4849
|
const n = r?.type === "custom" ? a[r.id] : void 0, s = {};
|
|
4842
4850
|
for (const [i, o] of Object.entries(t)) {
|
|
@@ -4862,7 +4870,7 @@ function $o(e, t, r, a) {
|
|
|
4862
4870
|
}
|
|
4863
4871
|
return Object.keys(s).length > 0 ? s : void 0;
|
|
4864
4872
|
}
|
|
4865
|
-
function
|
|
4873
|
+
function Ko(e, t, r) {
|
|
4866
4874
|
if (!t) return Yt.palette;
|
|
4867
4875
|
if (t.type === "custom") {
|
|
4868
4876
|
const a = r[t.id];
|
|
@@ -4885,7 +4893,7 @@ function jo(e, t, r) {
|
|
|
4885
4893
|
}
|
|
4886
4894
|
return t;
|
|
4887
4895
|
}
|
|
4888
|
-
function
|
|
4896
|
+
function Xo(e, t = {}) {
|
|
4889
4897
|
const r = t;
|
|
4890
4898
|
return {
|
|
4891
4899
|
type: "scale",
|
|
@@ -4904,7 +4912,7 @@ function Ho(e, t = {}) {
|
|
|
4904
4912
|
symmetric: r.symmetric
|
|
4905
4913
|
};
|
|
4906
4914
|
}
|
|
4907
|
-
function
|
|
4915
|
+
function qo(e, t = {}) {
|
|
4908
4916
|
return {
|
|
4909
4917
|
type: "scale",
|
|
4910
4918
|
scaledAesthetic: e,
|
|
@@ -4916,7 +4924,7 @@ function Ko(e, t = {}) {
|
|
|
4916
4924
|
clamp: t.clamp
|
|
4917
4925
|
};
|
|
4918
4926
|
}
|
|
4919
|
-
function
|
|
4927
|
+
function Jo(e, t = {}) {
|
|
4920
4928
|
return {
|
|
4921
4929
|
type: "scale",
|
|
4922
4930
|
scaledAesthetic: e,
|
|
@@ -4927,14 +4935,14 @@ function Xo(e, t = {}) {
|
|
|
4927
4935
|
reverse: t.reverse
|
|
4928
4936
|
};
|
|
4929
4937
|
}
|
|
4930
|
-
function
|
|
4938
|
+
function Qo(e, t = {}) {
|
|
4931
4939
|
return {
|
|
4932
4940
|
type: "scale",
|
|
4933
4941
|
scaledAesthetic: e,
|
|
4934
4942
|
scaleType: "identity"
|
|
4935
4943
|
};
|
|
4936
4944
|
}
|
|
4937
|
-
function
|
|
4945
|
+
function Zo(e, t) {
|
|
4938
4946
|
return {
|
|
4939
4947
|
type: "scale",
|
|
4940
4948
|
scaledAesthetic: e,
|
|
@@ -4942,7 +4950,7 @@ function Jo(e, t) {
|
|
|
4942
4950
|
options: t
|
|
4943
4951
|
};
|
|
4944
4952
|
}
|
|
4945
|
-
function
|
|
4953
|
+
function el(e, t = {}) {
|
|
4946
4954
|
return {
|
|
4947
4955
|
type: "scale",
|
|
4948
4956
|
scaledAesthetic: e,
|
|
@@ -4951,24 +4959,24 @@ function Qo(e, t = {}) {
|
|
|
4951
4959
|
overrides: t.overrides
|
|
4952
4960
|
};
|
|
4953
4961
|
}
|
|
4954
|
-
var
|
|
4962
|
+
var tl = { labelCrossPosition: 0.5 }, rl = {
|
|
4955
4963
|
kind: "rectangle",
|
|
4956
4964
|
zOrder: "foreground"
|
|
4957
|
-
},
|
|
4965
|
+
}, al = {
|
|
4958
4966
|
zOrder: "foreground",
|
|
4959
4967
|
fit: "contain"
|
|
4960
|
-
},
|
|
4968
|
+
}, nl = {
|
|
4961
4969
|
x: 8,
|
|
4962
4970
|
y: 8,
|
|
4963
4971
|
unit: "px"
|
|
4964
|
-
},
|
|
4972
|
+
}, sl = { align: "center" }, il = {
|
|
4965
4973
|
startArrowheadStyle: "none",
|
|
4966
4974
|
endArrowheadStyle: "line-arrow"
|
|
4967
|
-
},
|
|
4975
|
+
}, ol = {
|
|
4968
4976
|
thin: 2,
|
|
4969
4977
|
medium: 4,
|
|
4970
4978
|
thick: 8
|
|
4971
|
-
},
|
|
4979
|
+
}, ll = 0.5, cl = {
|
|
4972
4980
|
strokeWidth: 2,
|
|
4973
4981
|
shadow: {
|
|
4974
4982
|
offsetX: 0,
|
|
@@ -4976,7 +4984,7 @@ var Zo = { labelCrossPosition: 0.5 }, el = {
|
|
|
4976
4984
|
blur: 1.15,
|
|
4977
4985
|
color: "rgba(0, 0, 0, 0.16)"
|
|
4978
4986
|
}
|
|
4979
|
-
},
|
|
4987
|
+
}, ul = {
|
|
4980
4988
|
small: {
|
|
4981
4989
|
arrow: { strokeWidth: 2 },
|
|
4982
4990
|
label: {
|
|
@@ -5007,7 +5015,7 @@ var Zo = { labelCrossPosition: 0.5 }, el = {
|
|
|
5007
5015
|
strokeWidth: 2
|
|
5008
5016
|
}
|
|
5009
5017
|
}
|
|
5010
|
-
},
|
|
5018
|
+
}, dl = {
|
|
5011
5019
|
differenceArrow: "differenceArrows",
|
|
5012
5020
|
shape: "shapes",
|
|
5013
5021
|
arrow: "arrows",
|
|
@@ -5016,7 +5024,7 @@ var Zo = { labelCrossPosition: 0.5 }, el = {
|
|
|
5016
5024
|
sticker: "stickers",
|
|
5017
5025
|
pinnedNumber: "pinnedNumbers",
|
|
5018
5026
|
comment: "comments"
|
|
5019
|
-
},
|
|
5027
|
+
}, hl = {
|
|
5020
5028
|
differenceArrow(e) {
|
|
5021
5029
|
return {
|
|
5022
5030
|
type: "annotation",
|
|
@@ -5077,206 +5085,208 @@ var Zo = { labelCrossPosition: 0.5 }, el = {
|
|
|
5077
5085
|
export {
|
|
5078
5086
|
Te as $,
|
|
5079
5087
|
qt as $n,
|
|
5080
|
-
|
|
5081
|
-
|
|
5088
|
+
no as $t,
|
|
5089
|
+
Bo as A,
|
|
5082
5090
|
Ee as An,
|
|
5083
|
-
|
|
5091
|
+
ia as Ar,
|
|
5084
5092
|
Fn as At,
|
|
5085
5093
|
Hs as B,
|
|
5086
5094
|
Ae as Bn,
|
|
5087
|
-
|
|
5095
|
+
Zr as Br,
|
|
5088
5096
|
Ln as Bt,
|
|
5089
|
-
|
|
5097
|
+
Uo as C,
|
|
5090
5098
|
xa as Cn,
|
|
5091
|
-
|
|
5092
|
-
|
|
5099
|
+
$ as Cr,
|
|
5100
|
+
fo as Ct,
|
|
5093
5101
|
hi as D,
|
|
5094
|
-
|
|
5095
|
-
|
|
5102
|
+
Ki as Dn,
|
|
5103
|
+
aa as Dr,
|
|
5096
5104
|
Bn as Dt,
|
|
5097
|
-
|
|
5098
|
-
|
|
5099
|
-
|
|
5105
|
+
Yo as E,
|
|
5106
|
+
Hi as En,
|
|
5107
|
+
na as Er,
|
|
5100
5108
|
Nn as Et,
|
|
5101
5109
|
ti as F,
|
|
5102
5110
|
Ie as Fn,
|
|
5103
|
-
|
|
5111
|
+
ki as Fr,
|
|
5104
5112
|
Mt as Ft,
|
|
5105
|
-
|
|
5106
|
-
|
|
5113
|
+
Do as G,
|
|
5114
|
+
Gi as Gn,
|
|
5107
5115
|
pe as Gt,
|
|
5108
|
-
|
|
5109
|
-
|
|
5110
|
-
|
|
5111
|
-
|
|
5116
|
+
Co as H,
|
|
5117
|
+
Yi as Hn,
|
|
5118
|
+
Qr as Hr,
|
|
5119
|
+
co as Ht,
|
|
5112
5120
|
ei as I,
|
|
5113
5121
|
W as In,
|
|
5114
|
-
|
|
5122
|
+
Si as Ir,
|
|
5115
5123
|
f as It,
|
|
5116
5124
|
ks as J,
|
|
5117
|
-
|
|
5125
|
+
Wi as Jn,
|
|
5118
5126
|
vn as Jt,
|
|
5119
|
-
|
|
5127
|
+
Io as K,
|
|
5120
5128
|
D as Kn,
|
|
5121
|
-
|
|
5122
|
-
|
|
5129
|
+
lo as Kt,
|
|
5130
|
+
Po as L,
|
|
5123
5131
|
ma as Ln,
|
|
5124
|
-
|
|
5132
|
+
S as Lr,
|
|
5125
5133
|
_n as Lt,
|
|
5126
|
-
|
|
5134
|
+
Oo as M,
|
|
5127
5135
|
R as Mn,
|
|
5128
|
-
|
|
5136
|
+
Ri as Mr,
|
|
5129
5137
|
Ne as Mt,
|
|
5130
5138
|
ci as N,
|
|
5131
5139
|
de as Nn,
|
|
5132
|
-
|
|
5140
|
+
oa as Nr,
|
|
5133
5141
|
Lr as Nt,
|
|
5134
5142
|
fi as O,
|
|
5135
5143
|
Qt as On,
|
|
5136
|
-
|
|
5137
|
-
|
|
5138
|
-
|
|
5144
|
+
Li as Or,
|
|
5145
|
+
ho as Ot,
|
|
5146
|
+
No as P,
|
|
5139
5147
|
Jt as Pn,
|
|
5140
|
-
|
|
5148
|
+
$t as Pr,
|
|
5141
5149
|
Un as Pt,
|
|
5142
5150
|
cs as Q,
|
|
5143
5151
|
ya as Qn,
|
|
5144
|
-
|
|
5152
|
+
oo as Qt,
|
|
5145
5153
|
Ks as R,
|
|
5146
5154
|
ga as Rn,
|
|
5147
|
-
|
|
5155
|
+
He as Rr,
|
|
5148
5156
|
kn as Rt,
|
|
5149
|
-
|
|
5157
|
+
$o as S,
|
|
5150
5158
|
Na as Sn,
|
|
5151
|
-
|
|
5159
|
+
_i as Sr,
|
|
5152
5160
|
On as St,
|
|
5153
|
-
|
|
5161
|
+
Go as T,
|
|
5154
5162
|
ba as Tn,
|
|
5155
|
-
|
|
5163
|
+
Ci as Tr,
|
|
5156
5164
|
Pn as Tt,
|
|
5157
5165
|
js as U,
|
|
5158
5166
|
De as Un,
|
|
5167
|
+
Ti as Ur,
|
|
5159
5168
|
Rn as Ut,
|
|
5160
5169
|
Xs as V,
|
|
5161
|
-
|
|
5162
|
-
|
|
5170
|
+
$i as Vn,
|
|
5171
|
+
Ei as Vr,
|
|
5163
5172
|
_r as Vt,
|
|
5164
|
-
|
|
5165
|
-
|
|
5173
|
+
Fo as W,
|
|
5174
|
+
zi as Wn,
|
|
5175
|
+
ea as Wr,
|
|
5166
5176
|
Sr as Wt,
|
|
5167
5177
|
hs as X,
|
|
5168
|
-
|
|
5169
|
-
|
|
5178
|
+
Vi as Xn,
|
|
5179
|
+
so as Xt,
|
|
5170
5180
|
_s as Y,
|
|
5171
|
-
|
|
5181
|
+
Ui as Yn,
|
|
5172
5182
|
wr as Yt,
|
|
5173
|
-
|
|
5183
|
+
Ro as Z,
|
|
5174
5184
|
Xe as Zn,
|
|
5175
|
-
|
|
5176
|
-
|
|
5177
|
-
|
|
5178
|
-
|
|
5185
|
+
io as Zt,
|
|
5186
|
+
qo as _,
|
|
5187
|
+
Ji as _n,
|
|
5188
|
+
Kt as _r,
|
|
5179
5189
|
Gn as _t,
|
|
5180
|
-
|
|
5190
|
+
ol as a,
|
|
5181
5191
|
Ka as an,
|
|
5182
|
-
|
|
5183
|
-
|
|
5184
|
-
|
|
5192
|
+
ee as ar,
|
|
5193
|
+
ko as at,
|
|
5194
|
+
Ko as b,
|
|
5185
5195
|
ie as bn,
|
|
5186
|
-
|
|
5187
|
-
|
|
5188
|
-
|
|
5196
|
+
b as br,
|
|
5197
|
+
wo as bt,
|
|
5198
|
+
al as c,
|
|
5189
5199
|
Xa as cn,
|
|
5190
|
-
|
|
5191
|
-
|
|
5192
|
-
|
|
5193
|
-
|
|
5194
|
-
|
|
5195
|
-
|
|
5200
|
+
Ni as cr,
|
|
5201
|
+
po as ct,
|
|
5202
|
+
sl as d,
|
|
5203
|
+
ro as dn,
|
|
5204
|
+
ha as dr,
|
|
5205
|
+
Eo as dt,
|
|
5196
5206
|
hn as en,
|
|
5197
|
-
|
|
5207
|
+
Bi as er,
|
|
5198
5208
|
we as et,
|
|
5199
|
-
|
|
5209
|
+
ll as f,
|
|
5200
5210
|
Ja as fn,
|
|
5201
|
-
|
|
5202
|
-
|
|
5203
|
-
|
|
5204
|
-
|
|
5205
|
-
|
|
5206
|
-
|
|
5207
|
-
|
|
5211
|
+
Ht as fr,
|
|
5212
|
+
Mo as ft,
|
|
5213
|
+
Jo as g,
|
|
5214
|
+
Qi as gn,
|
|
5215
|
+
Xt as gr,
|
|
5216
|
+
go as gt,
|
|
5217
|
+
Qo as h,
|
|
5208
5218
|
ja as hn,
|
|
5209
|
-
|
|
5210
|
-
|
|
5211
|
-
|
|
5212
|
-
|
|
5213
|
-
|
|
5219
|
+
y as hr,
|
|
5220
|
+
mo as ht,
|
|
5221
|
+
cl as i,
|
|
5222
|
+
eo as in,
|
|
5223
|
+
Pi as ir,
|
|
5214
5224
|
es as it,
|
|
5215
|
-
|
|
5216
|
-
|
|
5217
|
-
|
|
5225
|
+
Vo as j,
|
|
5226
|
+
Xi as jn,
|
|
5227
|
+
sa as jr,
|
|
5218
5228
|
In as jt,
|
|
5219
|
-
|
|
5229
|
+
Wo as k,
|
|
5220
5230
|
va as kn,
|
|
5221
|
-
|
|
5222
|
-
|
|
5223
|
-
|
|
5224
|
-
|
|
5225
|
-
|
|
5226
|
-
|
|
5227
|
-
|
|
5231
|
+
ue as kr,
|
|
5232
|
+
uo as kt,
|
|
5233
|
+
nl as l,
|
|
5234
|
+
to as ln,
|
|
5235
|
+
K as lr,
|
|
5236
|
+
vo as lt,
|
|
5237
|
+
Zo as m,
|
|
5228
5238
|
Ha as mn,
|
|
5229
|
-
|
|
5230
|
-
|
|
5231
|
-
|
|
5239
|
+
Di as mr,
|
|
5240
|
+
Ao as mt,
|
|
5241
|
+
hl as n,
|
|
5232
5242
|
sn as nn,
|
|
5233
|
-
|
|
5234
|
-
|
|
5235
|
-
|
|
5243
|
+
Oi as nr,
|
|
5244
|
+
Lo as nt,
|
|
5245
|
+
tl as o,
|
|
5236
5246
|
vr as on,
|
|
5237
|
-
|
|
5238
|
-
|
|
5239
|
-
|
|
5247
|
+
Z as or,
|
|
5248
|
+
yo as ot,
|
|
5249
|
+
el as p,
|
|
5240
5250
|
tt as pn,
|
|
5241
|
-
|
|
5242
|
-
|
|
5251
|
+
Ke as pr,
|
|
5252
|
+
bo as pt,
|
|
5243
5253
|
Ot as q,
|
|
5244
5254
|
Y as qn,
|
|
5245
5255
|
An as qt,
|
|
5246
|
-
|
|
5256
|
+
il as r,
|
|
5247
5257
|
oe as rn,
|
|
5248
5258
|
Q as rr,
|
|
5249
|
-
|
|
5250
|
-
|
|
5251
|
-
|
|
5252
|
-
|
|
5259
|
+
_o as rt,
|
|
5260
|
+
ul as s,
|
|
5261
|
+
ao as sn,
|
|
5262
|
+
j as sr,
|
|
5253
5263
|
$n as st,
|
|
5254
|
-
|
|
5264
|
+
dl as t,
|
|
5255
5265
|
Tr as tn,
|
|
5256
5266
|
pa as tr,
|
|
5257
5267
|
re as tt,
|
|
5258
|
-
|
|
5268
|
+
rl as u,
|
|
5259
5269
|
qa as un,
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5264
|
-
|
|
5270
|
+
H as ur,
|
|
5271
|
+
xo as ut,
|
|
5272
|
+
Xo as v,
|
|
5273
|
+
qi as vn,
|
|
5274
|
+
fe as vr,
|
|
5265
5275
|
rt as vt,
|
|
5266
|
-
|
|
5276
|
+
zo as w,
|
|
5267
5277
|
Aa as wn,
|
|
5268
|
-
|
|
5278
|
+
la as wr,
|
|
5269
5279
|
Dn as wt,
|
|
5270
|
-
|
|
5280
|
+
Ho as x,
|
|
5271
5281
|
mr as xn,
|
|
5272
|
-
|
|
5273
|
-
|
|
5274
|
-
|
|
5275
|
-
|
|
5276
|
-
|
|
5277
|
-
|
|
5282
|
+
ua as xr,
|
|
5283
|
+
To as xt,
|
|
5284
|
+
jo as y,
|
|
5285
|
+
Zi as yn,
|
|
5286
|
+
Fi as yr,
|
|
5287
|
+
So as yt,
|
|
5278
5288
|
qs as z,
|
|
5279
|
-
|
|
5280
|
-
|
|
5289
|
+
ji as zn,
|
|
5290
|
+
wi as zr,
|
|
5281
5291
|
kr as zt
|
|
5282
5292
|
};
|