@graphysdk/viz-engine 1.9.0-beta.1792400629887 → 1.9.0-beta.1792407460425
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-CSfU2hQO.js → annotations-BMtDH9us.js} +434 -436
- package/dist/annotations-PhhD1YiW.cjs +1 -0
- package/dist/{compiler-TRasSPhm.js → compiler-CISqATta.js} +178 -178
- package/dist/{compiler-B_PO2LJB.cjs → compiler-UMisa5hr.cjs} +1 -1
- package/dist/graph-config.cjs +1 -1
- package/dist/graph-config.d.ts +44 -44
- package/dist/graph-config.mjs +35 -35
- package/dist/index.cjs +4 -4
- package/dist/index.d.ts +66 -44
- package/dist/index.mjs +1198 -1201
- package/dist/{spec-builder-BDPzAa9e.cjs → spec-builder-CvfmU8I9.cjs} +1 -1
- package/dist/{spec-builder-DcsR1JF4.js → spec-builder-DSIO0JLv.js} +19 -19
- package/dist/testing.cjs +1 -1
- package/dist/testing.d.ts +44 -44
- package/dist/testing.mjs +23 -23
- package/package.json +3 -3
- package/dist/annotations-C1es4xyP.cjs +0 -1
|
@@ -6,14 +6,14 @@ var jr = [
|
|
|
6
6
|
"dots",
|
|
7
7
|
"crosshatch",
|
|
8
8
|
"lines"
|
|
9
|
-
], Hr = ["tile", "stretch"], Xe = (e) => typeof e == "object" && e !== null && "gradient" in e, qe = (e) => typeof e == "object" && e !== null && "pattern" in e, Wt = (e) => typeof e == "object" && e !== null && "image" in e, Kr = (e) => typeof e != "object" ? e : Xe(e) ? e.stops[0]?.color ?? "transparent" : qe(e) ? e.color : e.fallback,
|
|
9
|
+
], Hr = ["tile", "stretch"], Xe = (e) => typeof e == "object" && e !== null && "gradient" in e, qe = (e) => typeof e == "object" && e !== null && "pattern" in e, Wt = (e) => typeof e == "object" && e !== null && "image" in e, Kr = (e) => typeof e != "object" ? e : Xe(e) ? e.stops[0]?.color ?? "transparent" : qe(e) ? e.color : e.fallback, hi = (e) => typeof e == "string" ? e : JSON.stringify(e), ot = "#FFFFFF", De = "#1A1A1A", Xr = 4.5, qr = (e) => {
|
|
10
10
|
try {
|
|
11
11
|
const t = X(e);
|
|
12
12
|
return Ye(t, ot) > Ye(t, De) ? ot : De;
|
|
13
13
|
} catch {
|
|
14
14
|
return De;
|
|
15
15
|
}
|
|
16
|
-
},
|
|
16
|
+
}, fi = (e, t) => {
|
|
17
17
|
try {
|
|
18
18
|
const r = Jr(void 0, t);
|
|
19
19
|
return r === void 0 || Ye(r, X(e)) >= Xr ? e : qr(r);
|
|
@@ -32,7 +32,7 @@ var jr = [
|
|
|
32
32
|
} catch {
|
|
33
33
|
return;
|
|
34
34
|
}
|
|
35
|
-
},
|
|
35
|
+
}, pi = (e) => {
|
|
36
36
|
try {
|
|
37
37
|
return Vt(X(e), 1);
|
|
38
38
|
} catch {
|
|
@@ -46,7 +46,7 @@ var jr = [
|
|
|
46
46
|
} catch {
|
|
47
47
|
return e;
|
|
48
48
|
}
|
|
49
|
-
},
|
|
49
|
+
}, yi = (e) => Xe(e) ? e.stops.every((t) => ye(t.color)) : qe(e) ? e.background !== void 0 && ye(e.color) && ye(e.background) : Wt(e) ? ye(e.fallback) : ye(e), ye = (e) => {
|
|
50
50
|
try {
|
|
51
51
|
return me(X(e))[3] >= 1;
|
|
52
52
|
} catch {
|
|
@@ -65,7 +65,7 @@ var jr = [
|
|
|
65
65
|
if (i === void 0) return `${t[1]}(${o.join(", ")})`;
|
|
66
66
|
const l = i.endsWith("%") ? Number.parseFloat(i) / 100 : i;
|
|
67
67
|
return `${t[1]}a(${[...o, l].join(", ")})`;
|
|
68
|
-
}, Ue = (e) => e instanceof Date && R(e),
|
|
68
|
+
}, Ue = (e) => e instanceof Date && R(e), gi = (e) => Ue(e) || e === null, mi = (e) => typeof e == "string", S = (e) => typeof e == "number" && !Number.isNaN(e) && Number.isFinite(e), vi = (e) => S(e) || e === null, U = Math.PI * 2, bi = 8, Zr = 1e-9, ea = [
|
|
69
69
|
0,
|
|
70
70
|
Math.PI / 2,
|
|
71
71
|
Math.PI,
|
|
@@ -77,10 +77,10 @@ var jr = [
|
|
|
77
77
|
}, Yt = (e, t) => {
|
|
78
78
|
const r = Math.abs(oe(e) - oe(t));
|
|
79
79
|
return Math.min(r, U - r);
|
|
80
|
-
},
|
|
80
|
+
}, Ai = (e, t) => {
|
|
81
81
|
const r = oe(t - e);
|
|
82
82
|
return r > Math.PI ? r - U : r;
|
|
83
|
-
},
|
|
83
|
+
}, xi = (e, t, r) => e * U + t + r, aa = (e, t) => ({
|
|
84
84
|
x: t * Math.sin(e),
|
|
85
85
|
y: t * Math.cos(e)
|
|
86
86
|
}), H = (e, t) => {
|
|
@@ -111,10 +111,10 @@ var jr = [
|
|
|
111
111
|
x: t >= 1 ? r * 2 * t : r * 2,
|
|
112
112
|
y: t >= 1 ? a * 2 : a * 2 / t
|
|
113
113
|
};
|
|
114
|
-
},
|
|
114
|
+
}, Mi = (e, t) => {
|
|
115
115
|
const { x: r, y: a } = ia(e, t);
|
|
116
116
|
return sa(r, a);
|
|
117
|
-
}, Ut = "\0graphy\0_", v = (e) => `${Ut}${e}`, zt = { x: v("constantX") },
|
|
117
|
+
}, Ut = "\0graphy\0_", v = (e) => `${Ut}${e}`, zt = { x: v("constantX") }, Ti = {
|
|
118
118
|
bar: v("barSeriesLabel"),
|
|
119
119
|
line: v("lineSeriesLabel")
|
|
120
120
|
}, Gt = {
|
|
@@ -143,7 +143,7 @@ var jr = [
|
|
|
143
143
|
}, ge = {
|
|
144
144
|
y: v("ruleY"),
|
|
145
145
|
x: v("ruleX")
|
|
146
|
-
},
|
|
146
|
+
}, Ei = {
|
|
147
147
|
...zt,
|
|
148
148
|
...Gt,
|
|
149
149
|
...ze,
|
|
@@ -151,17 +151,17 @@ var jr = [
|
|
|
151
151
|
...$t,
|
|
152
152
|
...ue,
|
|
153
153
|
...ge
|
|
154
|
-
}, oa = new Set(Object.values(Gt)), la = (e) => v(`scaled_${e}`),
|
|
154
|
+
}, oa = new Set(Object.values(Gt)), la = (e) => v(`scaled_${e}`), wi = (e) => e.startsWith(Ut), ca = (e) => oa.has(e);
|
|
155
155
|
function q(e) {
|
|
156
156
|
return e[y.x];
|
|
157
157
|
}
|
|
158
158
|
function z(e) {
|
|
159
159
|
return e[y.y];
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function Si(e) {
|
|
162
162
|
return e[y.xBand] ?? e[y.x];
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function Ri(e) {
|
|
165
165
|
return e[y.yBand] ?? e[y.y];
|
|
166
166
|
}
|
|
167
167
|
function J(e) {
|
|
@@ -179,7 +179,7 @@ function $(e) {
|
|
|
179
179
|
function ua(e) {
|
|
180
180
|
return e[y.yRaw];
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function _i(e, t) {
|
|
183
183
|
return e[la(t)];
|
|
184
184
|
}
|
|
185
185
|
var da = {
|
|
@@ -247,24 +247,24 @@ var da = {
|
|
|
247
247
|
y: a
|
|
248
248
|
};
|
|
249
249
|
}
|
|
250
|
-
}, ki = (e) => jt(da, e), Ge = (e) => (Array.isArray(e) ? e : [e]).map((t) => t instanceof Date ? t.toISOString() : String(t ?? "<null>")).join("\0"),
|
|
250
|
+
}, ki = (e) => jt(da, e), Ge = (e) => (Array.isArray(e) ? e : [e]).map((t) => t instanceof Date ? t.toISOString() : String(t ?? "<null>")).join("\0"), Li = (e, t) => e === t ? !0 : Ue(e) && Ue(t) ? e.getTime() === t.getTime() : !1, fa = (e) => e === null ? "null" : e instanceof Date ? `date:${e.getTime()}` : `${typeof e}:${e}`, Ii = (e) => e.length > 0;
|
|
251
251
|
function V(e) {
|
|
252
252
|
return e != null;
|
|
253
253
|
}
|
|
254
|
-
function
|
|
254
|
+
function Ci(e) {
|
|
255
255
|
if (e === null || typeof e != "object") return !1;
|
|
256
256
|
const t = Object.getPrototypeOf(e);
|
|
257
257
|
return t === Object.prototype || t === null;
|
|
258
258
|
}
|
|
259
|
-
function
|
|
259
|
+
function Di(e, t) {
|
|
260
260
|
const { numeric: r, categorical: a, temporal: n } = e.groupVariableNamesByType(), s = [...n, ...a];
|
|
261
261
|
return s.find((i) => i !== t) ?? s[0] ?? r[0] ?? "";
|
|
262
262
|
}
|
|
263
|
-
function
|
|
263
|
+
function Pi(e, t) {
|
|
264
264
|
const { categorical: r, temporal: a } = e.groupVariableNamesByType(), n = [...r, ...a];
|
|
265
265
|
return t === "" || n.includes(t) ? n : [t, ...n];
|
|
266
266
|
}
|
|
267
|
-
function
|
|
267
|
+
function Ni(e) {
|
|
268
268
|
const t = I(e.x);
|
|
269
269
|
return t === null || t === zt.x ? "" : t;
|
|
270
270
|
}
|
|
@@ -275,7 +275,7 @@ function Re(e) {
|
|
|
275
275
|
if (!(!V(e) || typeof e == "string") && "value" in e)
|
|
276
276
|
return e.value;
|
|
277
277
|
}
|
|
278
|
-
function
|
|
278
|
+
function Oi(e, t) {
|
|
279
279
|
return [.../* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)])].every((r) => lt(e[r]) === lt(t[r]));
|
|
280
280
|
}
|
|
281
281
|
function lt(e) {
|
|
@@ -324,11 +324,11 @@ var pa = [
|
|
|
324
324
|
dashed: [1.5, 3],
|
|
325
325
|
dotted: [0, 2]
|
|
326
326
|
}
|
|
327
|
-
},
|
|
327
|
+
}, Fi = (e) => ya.includes(e);
|
|
328
328
|
function be(e) {
|
|
329
329
|
return e === "stack" || e === "fill";
|
|
330
330
|
}
|
|
331
|
-
var
|
|
331
|
+
var _e = "en-GB", Ht = class extends Error {
|
|
332
332
|
constructor(e) {
|
|
333
333
|
super(e.message, e.cause !== void 0 ? { cause: e.cause } : void 0), this.name = new.target.name, this.code = e.code, this.context = e.context, this.suggestion = e.suggestion;
|
|
334
334
|
}
|
|
@@ -343,13 +343,13 @@ var ke = "en-GB", Ht = class extends Error {
|
|
|
343
343
|
code: e.code ?? "INTERNAL_INVARIANT"
|
|
344
344
|
}), this.kind = "internal";
|
|
345
345
|
}
|
|
346
|
-
}, Kt = (e) => e.type === "lookup", ga = (e) => e.type === "text", xe = (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", ma = (e) => e.type === "decimal" || e.type === "integer" || e.type === "percentage" || e.type === "duration" || e.type === "currency",
|
|
346
|
+
}, Kt = (e) => e.type === "lookup", ga = (e) => e.type === "text", xe = (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", ma = (e) => e.type === "decimal" || e.type === "integer" || e.type === "percentage" || e.type === "duration" || e.type === "currency", Bi = (e) => e.type === "currency", Vi = (e) => e.type === "month" || e.type === "day_month" || e.type === "weekly_date_range", Xt = (e) => {
|
|
347
347
|
if (Kt(e)) return Xt(e.fallback);
|
|
348
348
|
if (xe(e)) return "temporal";
|
|
349
349
|
if (ma(e)) return "numeric";
|
|
350
350
|
if (ga(e)) return "categorical";
|
|
351
351
|
throw new L({ message: `No data type found for value format: ${e.type}` });
|
|
352
|
-
},
|
|
352
|
+
}, Wi = (e) => Kt(e) ? e.fallback : e, va = class {
|
|
353
353
|
constructor() {
|
|
354
354
|
this.currentYear = (/* @__PURE__ */ new Date()).getUTCFullYear(), this.previousDate = null, this.previousYear = null;
|
|
355
355
|
}
|
|
@@ -592,23 +592,23 @@ var ke = "en-GB", Ht = class extends Error {
|
|
|
592
592
|
dateFormat: "yyyy-MM",
|
|
593
593
|
type: "month_year"
|
|
594
594
|
}
|
|
595
|
-
], Zt = 1800, er = 2199, Ra = 3,
|
|
595
|
+
], Zt = 1800, er = 2199, Ra = 3, _a = 6, ka = 5, La = 1, Ia = 28, Ca = /\s*[–—]\s*|\s-\s/, Da = (e) => typeof e == "number" ? Number.isInteger(e) && e >= Zt && e <= er : typeof e == "string" ? Ta.test(e) : !1, tr = (e, t) => {
|
|
596
596
|
const r = Ae(e);
|
|
597
|
-
return !t && Z(r) ? Fa(r) : typeof r == "string" ? t ? R(ie(r, t, /* @__PURE__ */ new Date())) : !!rr(r) ||
|
|
597
|
+
return !t && Z(r) ? Fa(r) : typeof r == "string" ? t ? R(ie(r, t, /* @__PURE__ */ new Date())) : !!rr(r) || ke(r) && R(new Date(r)) : R(r);
|
|
598
598
|
}, Ae = (e) => {
|
|
599
599
|
if (typeof e != "string") return e;
|
|
600
600
|
let t = e;
|
|
601
601
|
for (const [r, a] of Ea) t = t.replace(r, a);
|
|
602
602
|
return t;
|
|
603
|
-
}, rr = (e, t =
|
|
603
|
+
}, rr = (e, t = _e) => {
|
|
604
604
|
const r = Ae(e);
|
|
605
|
-
return
|
|
606
|
-
},
|
|
605
|
+
return ke(r) ? { type: "datetime" } : ar(t).find((a) => !xe(a) || a.type === "month" && r.length < Ra ? !1 : a.dateFormat && R(ie(r, a.dateFormat, /* @__PURE__ */ new Date())));
|
|
606
|
+
}, ke = (e) => Ma.test(e.trim()), Pa = (e) => {
|
|
607
607
|
if (e instanceof Date) return R(e) ? e : null;
|
|
608
|
-
if (typeof e != "string" || !
|
|
608
|
+
if (typeof e != "string" || !ke(e)) return null;
|
|
609
609
|
const t = new Date(e.trim());
|
|
610
610
|
return R(t) ? t : null;
|
|
611
|
-
}, Na = (e, t =
|
|
611
|
+
}, Na = (e, t = _e) => {
|
|
612
612
|
const [r, a] = e.split(Ca);
|
|
613
613
|
if (!r || !a) return;
|
|
614
614
|
const n = Ae(r).trim(), s = Ae(a).trim();
|
|
@@ -620,7 +620,7 @@ var ke = "en-GB", Ht = class extends Error {
|
|
|
620
620
|
return Ur(new Date(d.getFullYear(), La, Ia), {
|
|
621
621
|
start: d,
|
|
622
622
|
end: h
|
|
623
|
-
}) && u ===
|
|
623
|
+
}) && u === ka ? !0 : u === _a;
|
|
624
624
|
});
|
|
625
625
|
}, ar = (e) => {
|
|
626
626
|
const t = {
|
|
@@ -755,7 +755,7 @@ var ke = "en-GB", Ht = class extends Error {
|
|
|
755
755
|
if (R(o)) return Pe(o);
|
|
756
756
|
}
|
|
757
757
|
const s = new Date(a);
|
|
758
|
-
return tr(s) ?
|
|
758
|
+
return tr(s) ? ke(a) ? s : Pe(s) : null;
|
|
759
759
|
}, hr = (e) => {
|
|
760
760
|
if (typeof e == "number") return Number.isFinite(e) ? e : null;
|
|
761
761
|
if (typeof e != "string") return null;
|
|
@@ -794,7 +794,7 @@ var ke = "en-GB", Ht = class extends Error {
|
|
|
794
794
|
"lg",
|
|
795
795
|
"xl",
|
|
796
796
|
"full"
|
|
797
|
-
],
|
|
797
|
+
], Yi = {
|
|
798
798
|
point: $a,
|
|
799
799
|
line: ja,
|
|
800
800
|
area: Ha,
|
|
@@ -842,7 +842,7 @@ var Ja = [
|
|
|
842
842
|
"topRight",
|
|
843
843
|
"bottomRight",
|
|
844
844
|
"bottomLeft"
|
|
845
|
-
],
|
|
845
|
+
], Ui = ["dimmed", "hovered"], Qa = [
|
|
846
846
|
"normal",
|
|
847
847
|
"italic",
|
|
848
848
|
"oblique"
|
|
@@ -878,9 +878,9 @@ var Ja = [
|
|
|
878
878
|
"cross",
|
|
879
879
|
"star",
|
|
880
880
|
"wye"
|
|
881
|
-
],
|
|
881
|
+
], zi = [
|
|
882
882
|
"fill",
|
|
883
|
-
"
|
|
883
|
+
"overpaint",
|
|
884
884
|
"stroke",
|
|
885
885
|
"alpha",
|
|
886
886
|
"saturation",
|
|
@@ -1101,10 +1101,10 @@ var mt = (e, t) => {
|
|
|
1101
1101
|
status: "accepted",
|
|
1102
1102
|
value: r
|
|
1103
1103
|
};
|
|
1104
|
-
},
|
|
1104
|
+
}, Gi = {
|
|
1105
1105
|
color: K,
|
|
1106
1106
|
paint: gr,
|
|
1107
|
-
|
|
1107
|
+
overpaint: cn,
|
|
1108
1108
|
unitInterval: (e) => x(e) && e >= 0 && e <= 1 ? {
|
|
1109
1109
|
status: "accepted",
|
|
1110
1110
|
value: e
|
|
@@ -1113,7 +1113,7 @@ var mt = (e, t) => {
|
|
|
1113
1113
|
status: "accepted",
|
|
1114
1114
|
value: e
|
|
1115
1115
|
} : m("a non-negative number of pixels", e),
|
|
1116
|
-
|
|
1116
|
+
geomRadius: (e) => Ga(e) || x(e) && e >= 0 ? {
|
|
1117
1117
|
status: "accepted",
|
|
1118
1118
|
value: e
|
|
1119
1119
|
} : m(`a number of pixels or one of ${pr.map((t) => `'${t}'`).join(", ")}`, e),
|
|
@@ -1167,9 +1167,9 @@ var mt = (e, t) => {
|
|
|
1167
1167
|
pointSymbol: j(nn),
|
|
1168
1168
|
boxRadius: un
|
|
1169
1169
|
};
|
|
1170
|
-
var Ie = !0,
|
|
1170
|
+
var Ie = !0, $i = (e) => {
|
|
1171
1171
|
Ie = e;
|
|
1172
|
-
},
|
|
1172
|
+
}, ji = () => Ie, Hi = () => {
|
|
1173
1173
|
let e = null;
|
|
1174
1174
|
const t = {
|
|
1175
1175
|
hits: 0,
|
|
@@ -1216,7 +1216,7 @@ var Ie = !0, Gi = (e) => {
|
|
|
1216
1216
|
out: o
|
|
1217
1217
|
}]), o;
|
|
1218
1218
|
}, { stats: t });
|
|
1219
|
-
},
|
|
1219
|
+
}, Ki = (...e) => e.reduce((t, r) => ({
|
|
1220
1220
|
hits: t.hits + r.hits,
|
|
1221
1221
|
misses: t.misses + r.misses
|
|
1222
1222
|
}), {
|
|
@@ -1239,7 +1239,7 @@ var Ie = !0, Gi = (e) => {
|
|
|
1239
1239
|
key(e) {
|
|
1240
1240
|
return this.singletonKey;
|
|
1241
1241
|
}
|
|
1242
|
-
}, Qe = (e, t) => e >= 0 && e <= 1 && t >= 0 && t <= 1,
|
|
1242
|
+
}, Qe = (e, t) => e >= 0 && e <= 1 && t >= 0 && t <= 1, Xi = /* @__PURE__ */ new Set([
|
|
1243
1243
|
"min",
|
|
1244
1244
|
"max",
|
|
1245
1245
|
"scalar"
|
|
@@ -1258,13 +1258,13 @@ function pn(e) {
|
|
|
1258
1258
|
for (const r of e) r.role === "point" ? t.add(r.axis) : (r.role === "min" || r.role === "max") && V(r.aes) && t.add(r.aes);
|
|
1259
1259
|
return [...t];
|
|
1260
1260
|
}
|
|
1261
|
-
function
|
|
1261
|
+
function qi(e) {
|
|
1262
1262
|
const t = /* @__PURE__ */ new Set();
|
|
1263
1263
|
for (const r of e)
|
|
1264
1264
|
r.role === "point" && t.add(r.axis), V(r.aes) && t.add(r.aes);
|
|
1265
1265
|
return [...t];
|
|
1266
1266
|
}
|
|
1267
|
-
function
|
|
1267
|
+
function Ji(e, t, r) {
|
|
1268
1268
|
let a = e;
|
|
1269
1269
|
for (const n of t) {
|
|
1270
1270
|
if (n.role !== "min" && n.role !== "max" || !V(n.aes)) continue;
|
|
@@ -1284,11 +1284,11 @@ var Ze = (e, t) => {
|
|
|
1284
1284
|
x: r,
|
|
1285
1285
|
y: a
|
|
1286
1286
|
};
|
|
1287
|
-
},
|
|
1287
|
+
}, Qi = ({ positionRoles: e, categorySpanAxes: t, aesthetics: r }) => [
|
|
1288
1288
|
...pn(e),
|
|
1289
1289
|
...t,
|
|
1290
1290
|
...r.filter((a) => a.required).map((a) => a.name)
|
|
1291
|
-
],
|
|
1291
|
+
], Zi = ({ categorySpanAxes: e = [] }) => e.includes("x"), eo = ["x", "y"], yn = /* @__PURE__ */ new Set([
|
|
1292
1292
|
"x",
|
|
1293
1293
|
"y",
|
|
1294
1294
|
"ySecondary"
|
|
@@ -1298,14 +1298,14 @@ var Ze = (e, t) => {
|
|
|
1298
1298
|
"alpha",
|
|
1299
1299
|
"strokeWidth",
|
|
1300
1300
|
"lineType"
|
|
1301
|
-
]), gn = (e) => yn.has(e), mn = (e) => vr.has(e),
|
|
1301
|
+
]), gn = (e) => yn.has(e), mn = (e) => vr.has(e), to = (e) => gn(e) || mn(e);
|
|
1302
1302
|
function vn(e) {
|
|
1303
1303
|
return e === "secondary" ? "ySecondary" : "y";
|
|
1304
1304
|
}
|
|
1305
|
-
function
|
|
1305
|
+
function ro(e, t) {
|
|
1306
1306
|
return e === "y" ? vn(t) : "x";
|
|
1307
1307
|
}
|
|
1308
|
-
function
|
|
1308
|
+
function ao(e) {
|
|
1309
1309
|
return e === "ySecondary" ? "y" : e;
|
|
1310
1310
|
}
|
|
1311
1311
|
var bn = (e, t) => {
|
|
@@ -1675,7 +1675,7 @@ var Rn = "value", ve = {
|
|
|
1675
1675
|
return null;
|
|
1676
1676
|
}
|
|
1677
1677
|
groupBy(...t) {
|
|
1678
|
-
return new
|
|
1678
|
+
return new _n(t, this.table, this.variableMetadata);
|
|
1679
1679
|
}
|
|
1680
1680
|
rollup(t) {
|
|
1681
1681
|
const r = $e.from(Object.fromEntries(Object.entries(t).map(([n, { variableName: s, aggregation: i }]) => [n, [xr(i, Tr(this.table, s, i), void 0, {
|
|
@@ -1731,7 +1731,7 @@ var Rn = "value", ve = {
|
|
|
1731
1731
|
valueFormat: { type: "text" }
|
|
1732
1732
|
}, h[n] = {
|
|
1733
1733
|
type: "numeric",
|
|
1734
|
-
valueFormat:
|
|
1734
|
+
valueFormat: kn(this.variableMetadata, c, a)
|
|
1735
1735
|
}, w.fromTrusted(d, h);
|
|
1736
1736
|
}
|
|
1737
1737
|
print() {
|
|
@@ -1741,7 +1741,7 @@ var Rn = "value", ve = {
|
|
|
1741
1741
|
return this.table[Symbol.iterator]();
|
|
1742
1742
|
}
|
|
1743
1743
|
filterByTimestamp(t, r, a) {
|
|
1744
|
-
const n = bt[r], s = fr(a, this.getValueFormat(t),
|
|
1744
|
+
const n = bt[r], s = fr(a, this.getValueFormat(t), _e), i = At(s ?? a), o = this.getValues(t, { type: "temporal" }), l = [];
|
|
1745
1745
|
for (let c = 0; c < o.length; c++) n(At(o[c] ?? null), i) && l.push(c);
|
|
1746
1746
|
return w.fromTrusted(this.table.take(l), this.variableMetadata);
|
|
1747
1747
|
}
|
|
@@ -1785,7 +1785,7 @@ var Rn = "value", ve = {
|
|
|
1785
1785
|
}
|
|
1786
1786
|
return s;
|
|
1787
1787
|
}
|
|
1788
|
-
},
|
|
1788
|
+
}, _n = class {
|
|
1789
1789
|
constructor(e, t, r) {
|
|
1790
1790
|
this.groupedBy = e, this.table = t, this.variableMetadata = r;
|
|
1791
1791
|
}
|
|
@@ -1825,7 +1825,7 @@ var Rn = "value", ve = {
|
|
|
1825
1825
|
return this.partitions ??= this.table.partition(this.groupedBy), this.partitions;
|
|
1826
1826
|
}
|
|
1827
1827
|
};
|
|
1828
|
-
function
|
|
1828
|
+
function kn(e, t, r) {
|
|
1829
1829
|
const a = t.map((o) => e[o]?.valueFormat ?? { type: "decimal" }), [n, ...s] = a;
|
|
1830
1830
|
if (!n) return { type: "decimal" };
|
|
1831
1831
|
for (const o of a) if (o.type === "lookup") throw new le({
|
|
@@ -1897,7 +1897,7 @@ var Er = class {
|
|
|
1897
1897
|
r[o.key] = Nn(o.key, e.rows, c, d, t);
|
|
1898
1898
|
}
|
|
1899
1899
|
return new se(r);
|
|
1900
|
-
},
|
|
1900
|
+
}, no = class extends hn {
|
|
1901
1901
|
dependencies(e) {
|
|
1902
1902
|
return [e];
|
|
1903
1903
|
}
|
|
@@ -1951,11 +1951,11 @@ var Er = class {
|
|
|
1951
1951
|
200: "#E7BDAC",
|
|
1952
1952
|
100: "#F2D8CB",
|
|
1953
1953
|
50: "#FCF4EA"
|
|
1954
|
-
},
|
|
1954
|
+
}, so = [xt[100], xt[900]], io = [
|
|
1955
1955
|
"#3D63A8",
|
|
1956
1956
|
"#e7e5e4",
|
|
1957
1957
|
"#B84737"
|
|
1958
|
-
],
|
|
1958
|
+
], oo = {
|
|
1959
1959
|
dark: {
|
|
1960
1960
|
1: [500],
|
|
1961
1961
|
2: [600, 400],
|
|
@@ -2054,17 +2054,17 @@ var Er = class {
|
|
|
2054
2054
|
200
|
|
2055
2055
|
]
|
|
2056
2056
|
}
|
|
2057
|
-
},
|
|
2057
|
+
}, lo = ["cartesian", "polar"], Vn = [
|
|
2058
2058
|
"kind",
|
|
2059
2059
|
"edge",
|
|
2060
2060
|
"axis",
|
|
2061
2061
|
"role",
|
|
2062
2062
|
"position",
|
|
2063
2063
|
"part"
|
|
2064
|
-
],
|
|
2064
|
+
], co = Bn[0], Wn = 0.4, uo = "sm", ho = 2, fo = 8, po = 12, yo = Object.freeze({
|
|
2065
2065
|
light: "#F5F1E9",
|
|
2066
2066
|
dark: "#1F1E1C"
|
|
2067
|
-
}),
|
|
2067
|
+
}), go = "#ffffff", mo = 1, vo = 24, bo = {
|
|
2068
2068
|
top: 24,
|
|
2069
2069
|
right: 24,
|
|
2070
2070
|
bottom: 24,
|
|
@@ -2110,20 +2110,23 @@ var Er = class {
|
|
|
2110
2110
|
"where",
|
|
2111
2111
|
"state",
|
|
2112
2112
|
"layer"
|
|
2113
|
-
],
|
|
2114
|
-
fill: "paint",
|
|
2115
|
-
overlay: "overlay",
|
|
2116
|
-
stroke: "color",
|
|
2117
|
-
alpha: "unitInterval",
|
|
2118
|
-
fillAlpha: "unitInterval",
|
|
2119
|
-
strokeAlpha: "unitInterval",
|
|
2113
|
+
], zn = {
|
|
2120
2114
|
saturation: "multiplier",
|
|
2121
2115
|
blur: "pixels",
|
|
2122
2116
|
brightness: "multiplier",
|
|
2123
2117
|
contrast: "multiplier",
|
|
2124
2118
|
shadow: "shadow",
|
|
2125
2119
|
blendMode: "blendMode"
|
|
2126
|
-
},
|
|
2120
|
+
}, wr = {
|
|
2121
|
+
...zn,
|
|
2122
|
+
fill: "paint",
|
|
2123
|
+
stroke: "color",
|
|
2124
|
+
alpha: "unitInterval",
|
|
2125
|
+
fillAlpha: "unitInterval",
|
|
2126
|
+
strokeAlpha: "unitInterval",
|
|
2127
|
+
cornerRadius: "geomRadius",
|
|
2128
|
+
overpaint: "overpaint"
|
|
2129
|
+
}, Gn = 0.3, $n = 10, jn = 1, Hn = 24, Kn = 8, T = {
|
|
2127
2130
|
label: {
|
|
2128
2131
|
fontSize: 11.5,
|
|
2129
2132
|
fontWeight: 500,
|
|
@@ -2245,7 +2248,7 @@ var Er = class {
|
|
|
2245
2248
|
shadow: "shadow",
|
|
2246
2249
|
alpha: "unitInterval"
|
|
2247
2250
|
}, Sr = /* @__PURE__ */ new Map();
|
|
2248
|
-
var
|
|
2251
|
+
var Ao = (e = Object.values(tt)) => {
|
|
2249
2252
|
const t = [], r = [], a = [], n = (s) => {
|
|
2250
2253
|
if (s.rest !== void 0 && t.push({
|
|
2251
2254
|
select: s.select,
|
|
@@ -2266,14 +2269,14 @@ var bo = (e = Object.values(tt)) => {
|
|
|
2266
2269
|
...r,
|
|
2267
2270
|
...a
|
|
2268
2271
|
];
|
|
2269
|
-
},
|
|
2272
|
+
}, xo = (e) => {
|
|
2270
2273
|
for (const t of e) {
|
|
2271
2274
|
Object.freeze(t.select);
|
|
2272
2275
|
for (const r of Object.values(t.declarations)) typeof r == "object" && Object.freeze(r);
|
|
2273
2276
|
Object.freeze(t.declarations), t.when !== void 0 && Object.freeze(t.when), Object.freeze(t);
|
|
2274
2277
|
}
|
|
2275
2278
|
return e;
|
|
2276
|
-
},
|
|
2279
|
+
}, Mo = (e) => Sr.get(Rr(e)), St = (e, t) => ({
|
|
2277
2280
|
x: {
|
|
2278
2281
|
select: {
|
|
2279
2282
|
target: e,
|
|
@@ -2479,9 +2482,9 @@ var bo = (e = Object.values(tt)) => {
|
|
|
2479
2482
|
rest: {
|
|
2480
2483
|
...T.label,
|
|
2481
2484
|
textColor: f("textSecondary"),
|
|
2482
|
-
offset:
|
|
2485
|
+
offset: $n,
|
|
2483
2486
|
textOutlineColor: f("graphBackground"),
|
|
2484
|
-
textOutlineWidth:
|
|
2487
|
+
textOutlineWidth: jn
|
|
2485
2488
|
},
|
|
2486
2489
|
children: {
|
|
2487
2490
|
...St("tickLabel", re),
|
|
@@ -2544,7 +2547,7 @@ var bo = (e = Object.values(tt)) => {
|
|
|
2544
2547
|
select: { target: "graph" },
|
|
2545
2548
|
vocabulary: {
|
|
2546
2549
|
fill: "paint",
|
|
2547
|
-
|
|
2550
|
+
overpaint: "overpaint",
|
|
2548
2551
|
stroke: "color",
|
|
2549
2552
|
strokeWidth: "pixels",
|
|
2550
2553
|
cornerRadius: "pixels",
|
|
@@ -2735,7 +2738,7 @@ var bo = (e = Object.values(tt)) => {
|
|
|
2735
2738
|
select: { target: "headline" },
|
|
2736
2739
|
vocabulary: ae,
|
|
2737
2740
|
rest: {
|
|
2738
|
-
gap:
|
|
2741
|
+
gap: Hn,
|
|
2739
2742
|
margin: { bottom: 4 }
|
|
2740
2743
|
}
|
|
2741
2744
|
},
|
|
@@ -2840,7 +2843,7 @@ var bo = (e = Object.values(tt)) => {
|
|
|
2840
2843
|
focusStroke: "color"
|
|
2841
2844
|
},
|
|
2842
2845
|
rest: {
|
|
2843
|
-
gap:
|
|
2846
|
+
gap: Kn,
|
|
2844
2847
|
focusStroke: f("legendFocus")
|
|
2845
2848
|
},
|
|
2846
2849
|
children: {
|
|
@@ -3139,26 +3142,26 @@ var bo = (e = Object.values(tt)) => {
|
|
|
3139
3142
|
a !== void 0 && (t += `\0${r}:${a}`);
|
|
3140
3143
|
}
|
|
3141
3144
|
return t;
|
|
3142
|
-
},
|
|
3145
|
+
}, _r = (e) => {
|
|
3143
3146
|
if (Sr.set(Rr(e.select), e), e.children !== void 0)
|
|
3144
|
-
for (const t of Object.values(e.children))
|
|
3147
|
+
for (const t of Object.values(e.children)) _r(t);
|
|
3145
3148
|
};
|
|
3146
|
-
for (const e of Object.values(tt))
|
|
3147
|
-
function
|
|
3149
|
+
for (const e of Object.values(tt)) _r(e);
|
|
3150
|
+
function To(e) {
|
|
3148
3151
|
return e;
|
|
3149
3152
|
}
|
|
3150
|
-
var
|
|
3153
|
+
var Xn = (e) => e.observation?.aesthetics ?? tt.geom.aesthetics, qn = (e) => e.observation?.sharedPaint === !1 ? { ...e.observation.vocabulary } : {
|
|
3151
3154
|
...wr,
|
|
3152
3155
|
...e.observation?.vocabulary
|
|
3153
|
-
},
|
|
3156
|
+
}, Eo = (e, t) => ({
|
|
3154
3157
|
select: {
|
|
3155
3158
|
target: "geom",
|
|
3156
3159
|
kind: e
|
|
3157
3160
|
},
|
|
3158
|
-
vocabulary:
|
|
3159
|
-
aesthetics:
|
|
3161
|
+
vocabulary: qn(t),
|
|
3162
|
+
aesthetics: Xn(t),
|
|
3160
3163
|
options: t.observation?.options ?? je,
|
|
3161
|
-
...
|
|
3164
|
+
..._t(t.observation),
|
|
3162
3165
|
children: Object.fromEntries(Object.entries(t.parts ?? {}).map(([r, a]) => [r, {
|
|
3163
3166
|
select: {
|
|
3164
3167
|
target: "geom",
|
|
@@ -3168,9 +3171,9 @@ var Kn = (e) => e.observation?.aesthetics ?? tt.geom.aesthetics, Xn = (e) => e.o
|
|
|
3168
3171
|
vocabulary: a.vocabulary,
|
|
3169
3172
|
options: a.options ?? je,
|
|
3170
3173
|
...a.aesthetics === void 0 ? {} : { aesthetics: a.aesthetics },
|
|
3171
|
-
...
|
|
3174
|
+
..._t(a)
|
|
3172
3175
|
}]))
|
|
3173
|
-
}),
|
|
3176
|
+
}), _t = (e) => ({
|
|
3174
3177
|
...e?.rest === void 0 ? {} : { rest: e.rest },
|
|
3175
3178
|
...e?.dimmed === void 0 ? {} : { dimmed: e.dimmed },
|
|
3176
3179
|
...e?.hovered === void 0 ? {} : { hovered: e.hovered }
|
|
@@ -3181,56 +3184,56 @@ var Kn = (e) => e.observation?.aesthetics ?? tt.geom.aesthetics, Xn = (e) => e.o
|
|
|
3181
3184
|
resolveParams(e) {
|
|
3182
3185
|
return $r({}, this.defaultParams, e.params);
|
|
3183
3186
|
}
|
|
3184
|
-
},
|
|
3187
|
+
}, kt = 0.5, Me = (e) => ({
|
|
3185
3188
|
x: 0,
|
|
3186
3189
|
y: 0,
|
|
3187
3190
|
width: e.width,
|
|
3188
3191
|
height: e.height
|
|
3189
3192
|
}), rt = (e) => e === "panel-end" ? "end" : e === "panel-start" ? "start" : e, Te = ({ box: e, panel: t, orientation: r, placement: a, justify: n, align: s, offset: i, alignOffset: o, labelWidth: l, labelHeight: c }) => {
|
|
3190
3193
|
const d = n === "panel-start" || n === "panel-end", h = (r.valueAxis === "x" ? e.height : e.width) === 0, u = {
|
|
3191
|
-
anchor:
|
|
3194
|
+
anchor: Qn(n, r.valueDirectionSign),
|
|
3192
3195
|
placement: d ? "inside" : a,
|
|
3193
3196
|
offset: i
|
|
3194
3197
|
}, p = {
|
|
3195
|
-
anchor:
|
|
3198
|
+
anchor: Zn(s),
|
|
3196
3199
|
placement: h ? a : "inside",
|
|
3197
3200
|
offset: h ? o ?? i : 0
|
|
3198
|
-
}, g = d ? t : e, b = r.valueAxis === "x" ? g : e,
|
|
3201
|
+
}, g = d ? t : e, b = r.valueAxis === "x" ? g : e, _ = r.valueAxis === "y" ? g : e, C = r.valueAxis === "x" ? u : p, P = r.valueAxis === "x" ? p : u, M = It(C, {
|
|
3199
3202
|
min: b.x,
|
|
3200
3203
|
max: b.x + b.width,
|
|
3201
3204
|
halfExtent: l / 2
|
|
3202
|
-
}),
|
|
3203
|
-
min:
|
|
3204
|
-
max:
|
|
3205
|
+
}), k = It(P, {
|
|
3206
|
+
min: _.y,
|
|
3207
|
+
max: _.y + _.height,
|
|
3205
3208
|
halfExtent: c / 2
|
|
3206
3209
|
});
|
|
3207
3210
|
return {
|
|
3208
3211
|
x: M,
|
|
3209
|
-
y:
|
|
3210
|
-
position:
|
|
3212
|
+
y: k,
|
|
3213
|
+
position: Jn(e, M, k, l, c)
|
|
3211
3214
|
};
|
|
3212
|
-
}, Lt = (e, t, r, a) => r - a >= e -
|
|
3215
|
+
}, Lt = (e, t, r, a) => r - a >= e - kt && r + a <= t + kt, Jn = (e, t, r, a, n) => {
|
|
3213
3216
|
if (e.width === 0 && e.height === 0) return "outside";
|
|
3214
3217
|
const s = e.width === 0 || Lt(e.x, e.x + e.width, t, a / 2), i = e.height === 0 || Lt(e.y, e.y + e.height, r, n / 2);
|
|
3215
3218
|
return s && i ? "inside" : "outside";
|
|
3216
|
-
},
|
|
3219
|
+
}, Qn = (e, t) => e === "center" ? "center" : (e === "end" || e === "panel-end") == (t === 1) ? "max" : "min", Zn = (e) => e === "center" ? "center" : e === "start" ? "min" : "max", It = ({ anchor: e, placement: t, offset: r }, { min: a, max: n, halfExtent: s }) => {
|
|
3217
3220
|
if (e === "center") return (a + n) / 2;
|
|
3218
3221
|
if (t === "inside" && a === n) return a;
|
|
3219
3222
|
const i = r + s;
|
|
3220
3223
|
return e === "min" ? t === "inside" ? a + i : a - i : t === "inside" ? n - i : n + i;
|
|
3221
|
-
},
|
|
3224
|
+
}, es = (e) => {
|
|
3222
3225
|
const t = [];
|
|
3223
3226
|
if (!e.layer.dataLabels.showDataLabels) return {
|
|
3224
3227
|
labels: t,
|
|
3225
3228
|
droppedCount: 0
|
|
3226
3229
|
};
|
|
3227
|
-
const { offset: r } = e.layer.dataLabels, a =
|
|
3230
|
+
const { offset: r } = e.layer.dataLabels, a = as(e.layer);
|
|
3228
3231
|
for (const n of e.layer.data) {
|
|
3229
3232
|
const s = q(n), i = $(n) ?? z(n);
|
|
3230
3233
|
if (s === null || i === null || !Qe(s, i)) continue;
|
|
3231
3234
|
const o = e.formatLabel(n);
|
|
3232
3235
|
if (o === "") continue;
|
|
3233
|
-
const { width: l, height: c } = e.measureDataLabel("observation", "outside", o), { box: d, orientation: h } =
|
|
3236
|
+
const { width: l, height: c } = e.measureDataLabel("observation", "outside", o), { box: d, orientation: h } = rs(i, G(n), s, e.panelRect.width, e.panelRect.height), u = Te({
|
|
3234
3237
|
box: d,
|
|
3235
3238
|
panel: Me(e.panelRect),
|
|
3236
3239
|
orientation: h,
|
|
@@ -3255,7 +3258,7 @@ var Kn = (e) => e.observation?.aesthetics ?? tt.geom.aesthetics, Xn = (e) => e.o
|
|
|
3255
3258
|
labels: t,
|
|
3256
3259
|
droppedCount: 0
|
|
3257
3260
|
};
|
|
3258
|
-
},
|
|
3261
|
+
}, ts = (e) => e.position === "fill" ? "fill" : be(e.position) ? "stack" : "none", rs = (e, t, r, a, n) => {
|
|
3259
3262
|
const s = t ?? e, i = 1 - Math.max(e, s);
|
|
3260
3263
|
return {
|
|
3261
3264
|
box: {
|
|
@@ -3269,7 +3272,7 @@ var Kn = (e) => e.observation?.aesthetics ?? tt.geom.aesthetics, Xn = (e) => e.o
|
|
|
3269
3272
|
valueDirectionSign: e >= s ? -1 : 1
|
|
3270
3273
|
}
|
|
3271
3274
|
};
|
|
3272
|
-
},
|
|
3275
|
+
}, as = (e) => {
|
|
3273
3276
|
const { position: t, justify: r, align: a } = e.dataLabels;
|
|
3274
3277
|
return t === "auto" ? {
|
|
3275
3278
|
placement: "outside",
|
|
@@ -3280,7 +3283,7 @@ var Kn = (e) => e.observation?.aesthetics ?? tt.geom.aesthetics, Xn = (e) => e.o
|
|
|
3280
3283
|
justify: br(e.data, e.mapping) ? rt(r) : r,
|
|
3281
3284
|
align: a
|
|
3282
3285
|
};
|
|
3283
|
-
},
|
|
3286
|
+
}, ns = class extends ee {
|
|
3284
3287
|
constructor(...e) {
|
|
3285
3288
|
super(...e), this.type = "area", this.styleTarget = { observation: {
|
|
3286
3289
|
vocabulary: {
|
|
@@ -3297,7 +3300,7 @@ var Kn = (e) => e.observation?.aesthetics ?? tt.geom.aesthetics, Xn = (e) => e.o
|
|
|
3297
3300
|
},
|
|
3298
3301
|
rest: {
|
|
3299
3302
|
fill: f("geom"),
|
|
3300
|
-
fillAlpha:
|
|
3303
|
+
fillAlpha: Gn,
|
|
3301
3304
|
strokeWidth: 2,
|
|
3302
3305
|
dashArray: F.line.solid
|
|
3303
3306
|
}
|
|
@@ -3345,7 +3348,7 @@ var Kn = (e) => e.observation?.aesthetics ?? tt.geom.aesthetics, Xn = (e) => e.o
|
|
|
3345
3348
|
], this.summaries = { perGroupHeadline: !0 }, this.dataLabels = {
|
|
3346
3349
|
cartesian: { offset: 8 },
|
|
3347
3350
|
flip: { offset: 8 }
|
|
3348
|
-
}, this.dataLabelCoordTypes = ["cartesian", "flip"], this.resolvePercentageValueStrategy =
|
|
3351
|
+
}, this.dataLabelCoordTypes = ["cartesian", "flip"], this.resolvePercentageValueStrategy = ts, this.isComposite = !0, this.legend = {
|
|
3349
3352
|
suppressWhenSingleItem: !0,
|
|
3350
3353
|
sidePlacement: "whenCrowded",
|
|
3351
3354
|
directLabelSupport: {
|
|
@@ -3354,7 +3357,7 @@ var Kn = (e) => e.observation?.aesthetics ?? tt.geom.aesthetics, Xn = (e) => e.o
|
|
|
3354
3357
|
identity: !0,
|
|
3355
3358
|
fill: !0
|
|
3356
3359
|
}
|
|
3357
|
-
}, this.highlightStrategy = "overlay-anchor", this.spatialKind = "filled-buckets", this.resolveAnchorPosition = et, this.getDataLabelPlacements = (t) =>
|
|
3360
|
+
}, this.highlightStrategy = "overlay-anchor", this.spatialKind = "filled-buckets", this.resolveAnchorPosition = et, this.getDataLabelPlacements = (t) => es(t);
|
|
3358
3361
|
}
|
|
3359
3362
|
resolveParams(e) {
|
|
3360
3363
|
const t = super.resolveParams(e);
|
|
@@ -3369,7 +3372,7 @@ var Kn = (e) => e.observation?.aesthetics ?? tt.geom.aesthetics, Xn = (e) => e.o
|
|
|
3369
3372
|
mapping: {}
|
|
3370
3373
|
};
|
|
3371
3374
|
}
|
|
3372
|
-
},
|
|
3375
|
+
}, ss = 0.7, wo = 0.1, is = 0.03, os = 0.05, ls = (e) => {
|
|
3373
3376
|
const t = e[$t.role];
|
|
3374
3377
|
return t ?? "solo";
|
|
3375
3378
|
}, at = (e, t, r) => {
|
|
@@ -3394,12 +3397,12 @@ var Kn = (e) => e.observation?.aesthetics ?? tt.geom.aesthetics, Xn = (e) => e.o
|
|
|
3394
3397
|
if (r === void 0) return;
|
|
3395
3398
|
const a = e.get("alpha", t) * (e.get("fillAlpha", t) ?? 1);
|
|
3396
3399
|
return Qr(Kr(r), a);
|
|
3397
|
-
}, Se = 6,
|
|
3400
|
+
}, Se = 6, cs = 0.5, us = (e) => {
|
|
3398
3401
|
const t = [];
|
|
3399
3402
|
let r = 0;
|
|
3400
3403
|
const a = be(e.layer.position), n = e.coordSystem.mainAxis === "y";
|
|
3401
3404
|
if (e.layer.dataLabels.showDataLabels) {
|
|
3402
|
-
const { entries: s, shouldRotate: i } =
|
|
3405
|
+
const { entries: s, shouldRotate: i } = hs({
|
|
3403
3406
|
layer: e.layer,
|
|
3404
3407
|
mainAxis: e.coordSystem.mainAxis,
|
|
3405
3408
|
panelRect: e.panelRect,
|
|
@@ -3408,7 +3411,7 @@ var Kn = (e) => e.observation?.aesthetics ?? tt.geom.aesthetics, Xn = (e) => e.o
|
|
|
3408
3411
|
isFlipped: n
|
|
3409
3412
|
});
|
|
3410
3413
|
for (const o of s) {
|
|
3411
|
-
const l = e.layer.dataLabels.position === "auto" ?
|
|
3414
|
+
const l = e.layer.dataLabels.position === "auto" ? ys({
|
|
3412
3415
|
mainAxis: e.coordSystem.mainAxis,
|
|
3413
3416
|
isStacked: a,
|
|
3414
3417
|
isNegativeBar: o.isNegative,
|
|
@@ -3418,7 +3421,7 @@ var Kn = (e) => e.observation?.aesthetics ?? tt.geom.aesthetics, Xn = (e) => e.o
|
|
|
3418
3421
|
panelWidth: e.panelRect.width,
|
|
3419
3422
|
panelHeight: e.panelRect.height,
|
|
3420
3423
|
offset: e.layer.dataLabels.offset
|
|
3421
|
-
}) :
|
|
3424
|
+
}) : ms(e.layer.dataLabels, e.coordSystem.mainAxis, a, o, Me(e.panelRect));
|
|
3422
3425
|
if (l === null) {
|
|
3423
3426
|
r += 1;
|
|
3424
3427
|
continue;
|
|
@@ -3438,9 +3441,9 @@ var Kn = (e) => e.observation?.aesthetics ?? tt.geom.aesthetics, Xn = (e) => e.o
|
|
|
3438
3441
|
});
|
|
3439
3442
|
}
|
|
3440
3443
|
}
|
|
3441
|
-
if (e.layer.dataLabels.showCategoryLabels) for (const s of
|
|
3444
|
+
if (e.layer.dataLabels.showCategoryLabels) for (const s of vs(e, a)) t.push(s);
|
|
3442
3445
|
if (e.layer.dataLabels.showStackTotals) {
|
|
3443
|
-
const s =
|
|
3446
|
+
const s = Ms({
|
|
3444
3447
|
layer: e.layer,
|
|
3445
3448
|
mainAxis: e.coordSystem.mainAxis,
|
|
3446
3449
|
panelRect: e.panelRect,
|
|
@@ -3453,7 +3456,7 @@ var Kn = (e) => e.observation?.aesthetics ?? tt.geom.aesthetics, Xn = (e) => e.o
|
|
|
3453
3456
|
labels: t,
|
|
3454
3457
|
droppedCount: r
|
|
3455
3458
|
};
|
|
3456
|
-
},
|
|
3459
|
+
}, ds = (e) => e.position === "fill" ? "fill" : be(e.position) ? "stack" : "absoluteGrandTotal", hs = ({ layer: e, mainAxis: t, panelRect: r, measureDataLabel: a, formatLabel: n, isFlipped: s }) => {
|
|
3457
3460
|
const i = [];
|
|
3458
3461
|
let o = !1;
|
|
3459
3462
|
const l = e.dataLabels.position === "auto", c = I(e.mapping.y);
|
|
@@ -3464,9 +3467,9 @@ var Kn = (e) => e.observation?.aesthetics ?? tt.geom.aesthetics, Xn = (e) => e.o
|
|
|
3464
3467
|
if (u === "") continue;
|
|
3465
3468
|
const p = at(a, "observation", u), g = st(h, r);
|
|
3466
3469
|
l && p.inside.width > g.width && (o = !0);
|
|
3467
|
-
const b = c === null ? null : d[c],
|
|
3470
|
+
const b = c === null ? null : d[c], _ = S(b) && b < 0;
|
|
3468
3471
|
i.push({
|
|
3469
|
-
isNegative:
|
|
3472
|
+
isNegative: _,
|
|
3470
3473
|
text: u,
|
|
3471
3474
|
boxes: p,
|
|
3472
3475
|
bounds: g,
|
|
@@ -3482,7 +3485,7 @@ var Kn = (e) => e.observation?.aesthetics ?? tt.geom.aesthetics, Xn = (e) => e.o
|
|
|
3482
3485
|
y: e.y * t.height,
|
|
3483
3486
|
width: e.width * t.width,
|
|
3484
3487
|
height: e.height * t.height
|
|
3485
|
-
}),
|
|
3488
|
+
}), kr = (e, t, r, a, n) => {
|
|
3486
3489
|
if (e === "x") {
|
|
3487
3490
|
let o = 1 - n, l = n - a;
|
|
3488
3491
|
return l < 0 && (o += l, l = -l), {
|
|
@@ -3501,22 +3504,22 @@ var Kn = (e) => e.observation?.aesthetics ?? tt.geom.aesthetics, Xn = (e) => e.o
|
|
|
3501
3504
|
};
|
|
3502
3505
|
}, Lr = (e, t) => {
|
|
3503
3506
|
const r = J(t), a = Q(t), n = G(t), s = $(t) ?? z(t);
|
|
3504
|
-
return r === null || a === null || n === null || s === null ? null :
|
|
3505
|
-
},
|
|
3507
|
+
return r === null || a === null || n === null || s === null ? null : kr(e, r, a, n, s);
|
|
3508
|
+
}, fs = (e, t) => {
|
|
3506
3509
|
const { xMin: r, xMax: a, yMin: n, yMax: s } = t.anchor;
|
|
3507
|
-
return
|
|
3508
|
-
},
|
|
3510
|
+
return kr(e, r, a, n, s);
|
|
3511
|
+
}, ps = (e, t) => e === "x" ? t ? "bottom" : "top" : t ? "left" : "right", He = (e, t, r) => r ? {
|
|
3509
3512
|
width: t,
|
|
3510
3513
|
height: e
|
|
3511
3514
|
} : {
|
|
3512
3515
|
width: e,
|
|
3513
3516
|
height: t
|
|
3514
|
-
},
|
|
3517
|
+
}, ys = (e) => e.isStacked ? bs({
|
|
3515
3518
|
bounds: e.bounds,
|
|
3516
3519
|
box: e.boxes.inside,
|
|
3517
3520
|
isRotated: e.shouldRotate
|
|
3518
|
-
}) :
|
|
3519
|
-
edge:
|
|
3521
|
+
}) : xs({
|
|
3522
|
+
edge: ps(e.mainAxis, e.isNegativeBar),
|
|
3520
3523
|
bounds: e.bounds,
|
|
3521
3524
|
boxes: e.boxes,
|
|
3522
3525
|
isRotated: e.shouldRotate,
|
|
@@ -3529,7 +3532,7 @@ var Kn = (e) => e.observation?.aesthetics ?? tt.geom.aesthetics, Xn = (e) => e.o
|
|
|
3529
3532
|
} : {
|
|
3530
3533
|
valueAxis: "x",
|
|
3531
3534
|
valueDirectionSign: t ? -1 : 1
|
|
3532
|
-
},
|
|
3535
|
+
}, gs = (e) => e === "panel-start" || e === "panel-end", ms = (e, t, r, a, n) => {
|
|
3533
3536
|
if (e.position === "auto") return null;
|
|
3534
3537
|
const s = r && e.position === "outside" ? "inside" : e.position, i = a.boxes[s], o = Te({
|
|
3535
3538
|
box: a.bounds,
|
|
@@ -3542,9 +3545,9 @@ var Kn = (e) => e.observation?.aesthetics ?? tt.geom.aesthetics, Xn = (e) => e.o
|
|
|
3542
3545
|
labelWidth: i.width,
|
|
3543
3546
|
labelHeight: i.height
|
|
3544
3547
|
});
|
|
3545
|
-
if (s === "inside" && !
|
|
3548
|
+
if (s === "inside" && !gs(e.justify)) {
|
|
3546
3549
|
const l = t === "y", c = l ? a.bounds.width : a.bounds.height;
|
|
3547
|
-
return (l ? i.width : i.height) > c +
|
|
3550
|
+
return (l ? i.width : i.height) > c + cs ? null : {
|
|
3548
3551
|
x: o.x,
|
|
3549
3552
|
y: o.y,
|
|
3550
3553
|
isRotated: !1,
|
|
@@ -3557,15 +3560,15 @@ var Kn = (e) => e.observation?.aesthetics ?? tt.geom.aesthetics, Xn = (e) => e.o
|
|
|
3557
3560
|
isRotated: !1,
|
|
3558
3561
|
position: o.position
|
|
3559
3562
|
};
|
|
3560
|
-
},
|
|
3563
|
+
}, vs = (e, t) => {
|
|
3561
3564
|
const r = [], { categoryPosition: a, categoryJustify: n, categoryAlign: s, categoryOffset: i } = e.layer.dataLabels, o = t && a === "outside" ? "inside" : a, l = e.coordSystem.mainAxis, c = Me(e.panelRect), d = I(e.layer.mapping.y);
|
|
3562
3565
|
for (const h of e.layer.data) {
|
|
3563
3566
|
const u = Lr(l, h);
|
|
3564
3567
|
if (u === null) continue;
|
|
3565
3568
|
const p = e.formatCategory(h);
|
|
3566
3569
|
if (p === null || p === "") continue;
|
|
3567
|
-
const g = at(e.measureDataLabel, "category", p), b = g[o],
|
|
3568
|
-
box:
|
|
3570
|
+
const g = at(e.measureDataLabel, "category", p), b = g[o], _ = st(u, e.panelRect), C = d === null ? null : h[d], P = S(C) && C < 0, M = Te({
|
|
3571
|
+
box: _,
|
|
3569
3572
|
panel: c,
|
|
3570
3573
|
orientation: Ir(l, P),
|
|
3571
3574
|
placement: o,
|
|
@@ -3574,21 +3577,21 @@ var Kn = (e) => e.observation?.aesthetics ?? tt.geom.aesthetics, Xn = (e) => e.o
|
|
|
3574
3577
|
offset: i,
|
|
3575
3578
|
labelWidth: b.width,
|
|
3576
3579
|
labelHeight: b.height
|
|
3577
|
-
}),
|
|
3580
|
+
}), k = g[M.position];
|
|
3578
3581
|
r.push({
|
|
3579
3582
|
layerId: e.layer.id,
|
|
3580
3583
|
x: M.x,
|
|
3581
3584
|
y: M.y,
|
|
3582
3585
|
text: p,
|
|
3583
|
-
width:
|
|
3584
|
-
height:
|
|
3586
|
+
width: k.width,
|
|
3587
|
+
height: k.height,
|
|
3585
3588
|
isRotated: !1,
|
|
3586
3589
|
role: "category",
|
|
3587
3590
|
position: M.position
|
|
3588
3591
|
});
|
|
3589
3592
|
}
|
|
3590
3593
|
return r;
|
|
3591
|
-
},
|
|
3594
|
+
}, bs = ({ bounds: e, box: t, isRotated: r }) => {
|
|
3592
3595
|
const a = He(t.width, t.height, r);
|
|
3593
3596
|
return a.width > e.width || a.height > e.height ? null : {
|
|
3594
3597
|
x: e.x + e.width / 2,
|
|
@@ -3596,7 +3599,7 @@ var Kn = (e) => e.observation?.aesthetics ?? tt.geom.aesthetics, Xn = (e) => e.o
|
|
|
3596
3599
|
isRotated: r,
|
|
3597
3600
|
position: "inside"
|
|
3598
3601
|
};
|
|
3599
|
-
},
|
|
3602
|
+
}, As = (e, t, r, a) => {
|
|
3600
3603
|
switch (e) {
|
|
3601
3604
|
case "top":
|
|
3602
3605
|
return {
|
|
@@ -3623,8 +3626,8 @@ var Kn = (e) => e.observation?.aesthetics ?? tt.geom.aesthetics, Xn = (e) => e.o
|
|
|
3623
3626
|
panelExtent: r
|
|
3624
3627
|
};
|
|
3625
3628
|
}
|
|
3626
|
-
},
|
|
3627
|
-
const o = e === "top" || e === "bottom", l = t.x + t.width / 2, c = t.y + t.height / 2, d = o ? t.height : t.width, h = o ? t.width : t.height, { edgeCoord: u, outwardSign: p, panelExtent: g } =
|
|
3629
|
+
}, xs = ({ edge: e, bounds: t, boxes: r, isRotated: a, panelWidth: n, panelHeight: s, offset: i }) => {
|
|
3630
|
+
const o = e === "top" || e === "bottom", l = t.x + t.width / 2, c = t.y + t.height / 2, d = o ? t.height : t.width, h = o ? t.width : t.height, { edgeCoord: u, outwardSign: p, panelExtent: g } = As(e, t, n, s), b = He(r.inside.width, r.inside.height, a), _ = o ? b.height : b.width, C = o ? b.width : b.height, P = _ + i < d, M = C <= h;
|
|
3628
3631
|
if (o ? P : P && M) {
|
|
3629
3632
|
if (o && !M) return null;
|
|
3630
3633
|
if (a) return {
|
|
@@ -3633,7 +3636,7 @@ var Kn = (e) => e.observation?.aesthetics ?? tt.geom.aesthetics, Xn = (e) => e.o
|
|
|
3633
3636
|
isRotated: !0,
|
|
3634
3637
|
position: "inside"
|
|
3635
3638
|
};
|
|
3636
|
-
const Ee = u - p * (
|
|
3639
|
+
const Ee = u - p * (_ / 2 + i);
|
|
3637
3640
|
return {
|
|
3638
3641
|
...o ? {
|
|
3639
3642
|
x: l,
|
|
@@ -3646,7 +3649,7 @@ var Kn = (e) => e.observation?.aesthetics ?? tt.geom.aesthetics, Xn = (e) => e.o
|
|
|
3646
3649
|
position: "inside"
|
|
3647
3650
|
};
|
|
3648
3651
|
}
|
|
3649
|
-
const
|
|
3652
|
+
const k = He(r.outside.width, r.outside.height, a), E = (o ? k.height : k.width) / 2, D = u + p * (E + i);
|
|
3650
3653
|
return D - E < 0 || D + E > g ? null : {
|
|
3651
3654
|
...o ? {
|
|
3652
3655
|
x: l,
|
|
@@ -3658,12 +3661,12 @@ var Kn = (e) => e.observation?.aesthetics ?? tt.geom.aesthetics, Xn = (e) => e.o
|
|
|
3658
3661
|
isRotated: a,
|
|
3659
3662
|
position: "outside"
|
|
3660
3663
|
};
|
|
3661
|
-
},
|
|
3664
|
+
}, Ms = ({ layer: e, mainAxis: t, panelRect: r, measureDataLabel: a, formatAbsolute: n }) => {
|
|
3662
3665
|
const s = [], i = e.summary.stackTotals;
|
|
3663
3666
|
if (i === void 0 || i.length === 0) return s;
|
|
3664
3667
|
const o = t === "y";
|
|
3665
3668
|
for (const l of i) {
|
|
3666
|
-
const c = st(
|
|
3669
|
+
const c = st(fs(t, l), r), d = n(l.total), { width: h, height: u } = a("aggregate", "outside", d), p = l.anchor.direction === "positive";
|
|
3667
3670
|
let g, b;
|
|
3668
3671
|
o ? (g = p ? c.x + c.width + Se + h / 2 : c.x - Se - h / 2, b = c.y + c.height / 2) : (g = c.x + c.width / 2, b = p ? c.y - Se - u / 2 : c.y + c.height + Se + u / 2), s.push({
|
|
3669
3672
|
layerId: e.id,
|
|
@@ -3679,19 +3682,19 @@ var Kn = (e) => e.observation?.aesthetics ?? tt.geom.aesthetics, Xn = (e) => e.o
|
|
|
3679
3682
|
}
|
|
3680
3683
|
return s;
|
|
3681
3684
|
};
|
|
3682
|
-
function
|
|
3685
|
+
function Ts(e) {
|
|
3683
3686
|
return {
|
|
3684
3687
|
startAngle: e[y.xMin],
|
|
3685
3688
|
endAngle: e[y.xMax]
|
|
3686
3689
|
};
|
|
3687
3690
|
}
|
|
3688
|
-
function
|
|
3691
|
+
function Es(e) {
|
|
3689
3692
|
return {
|
|
3690
3693
|
innerRadius: e[y.yMin],
|
|
3691
3694
|
outerRadius: e[y.yMax] ?? e[y.y]
|
|
3692
3695
|
};
|
|
3693
3696
|
}
|
|
3694
|
-
var
|
|
3697
|
+
var ws = " · ", B = 2, Ss = (e) => {
|
|
3695
3698
|
const t = [];
|
|
3696
3699
|
if (!e.layer.dataLabels.showDataLabels) return {
|
|
3697
3700
|
labels: t,
|
|
@@ -3699,16 +3702,16 @@ var Es = " · ", B = 2, ws = (e) => {
|
|
|
3699
3702
|
};
|
|
3700
3703
|
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, d = Math.min(e.panelRect.width, e.panelRect.height) / 2, h = e.styleReaders;
|
|
3701
3704
|
for (const u of e.layer.data) {
|
|
3702
|
-
const { startAngle: p, endAngle: g } =
|
|
3703
|
-
if (p === null || g === null ||
|
|
3705
|
+
const { startAngle: p, endAngle: g } = Ts(u), { innerRadius: b, outerRadius: _ } = Es(u);
|
|
3706
|
+
if (p === null || g === null || _ === null) continue;
|
|
3704
3707
|
const C = e.formatLabel(u);
|
|
3705
3708
|
if (C === "") continue;
|
|
3706
|
-
const P = i ? e.formatCategory(u) : null, M = P === null ? C : `${P}${
|
|
3709
|
+
const P = i ? e.formatCategory(u) : null, M = P === null ? C : `${P}${ws}${C}`, k = {
|
|
3707
3710
|
startAngle: p,
|
|
3708
3711
|
endAngle: g,
|
|
3709
3712
|
midAngle: (p + g) / 2,
|
|
3710
3713
|
innerRadiusPx: (b ?? 0) * d,
|
|
3711
|
-
outerRadiusPx:
|
|
3714
|
+
outerRadiusPx: _ * d
|
|
3712
3715
|
};
|
|
3713
3716
|
let E, D;
|
|
3714
3717
|
if (r === "auto") {
|
|
@@ -3716,13 +3719,13 @@ var Es = " · ", B = 2, ws = (e) => {
|
|
|
3716
3719
|
width: he.width,
|
|
3717
3720
|
height: he.height
|
|
3718
3721
|
}, Ce = Pt({
|
|
3719
|
-
wedge:
|
|
3722
|
+
wedge: k,
|
|
3720
3723
|
position: "inside",
|
|
3721
3724
|
offset: s,
|
|
3722
3725
|
labelWidth: W.width,
|
|
3723
3726
|
labelHeight: W.height
|
|
3724
|
-
}), Or = o ||
|
|
3725
|
-
wedge:
|
|
3727
|
+
}), Or = o || _s({
|
|
3728
|
+
wedge: k,
|
|
3726
3729
|
labelRadius: Ce.labelRadius,
|
|
3727
3730
|
labelAngle: Ce.labelAngle,
|
|
3728
3731
|
labelWidth: W.width,
|
|
@@ -3733,13 +3736,13 @@ var Es = " · ", B = 2, ws = (e) => {
|
|
|
3733
3736
|
width: it.width,
|
|
3734
3737
|
height: it.height
|
|
3735
3738
|
}, pe = Pt({
|
|
3736
|
-
wedge:
|
|
3739
|
+
wedge: k,
|
|
3737
3740
|
position: "outside",
|
|
3738
3741
|
offset: s,
|
|
3739
3742
|
labelWidth: fe.width,
|
|
3740
3743
|
labelHeight: fe.height
|
|
3741
3744
|
}), Fr = l + Math.sin(pe.labelAngle) * pe.labelRadius, Br = c - Math.cos(pe.labelAngle) * pe.labelRadius;
|
|
3742
|
-
|
|
3745
|
+
Ls({
|
|
3743
3746
|
x: Fr,
|
|
3744
3747
|
y: Br,
|
|
3745
3748
|
labelWidth: fe.width,
|
|
@@ -3749,8 +3752,8 @@ var Es = " · ", B = 2, ws = (e) => {
|
|
|
3749
3752
|
}
|
|
3750
3753
|
} else {
|
|
3751
3754
|
const he = at(e.measureDataLabel, "observation", M), W = he[r];
|
|
3752
|
-
E =
|
|
3753
|
-
wedge:
|
|
3755
|
+
E = Is({
|
|
3756
|
+
wedge: k,
|
|
3754
3757
|
placement: r,
|
|
3755
3758
|
justify: rt(a),
|
|
3756
3759
|
align: n,
|
|
@@ -3777,10 +3780,10 @@ var Es = " · ", B = 2, ws = (e) => {
|
|
|
3777
3780
|
labels: t,
|
|
3778
3781
|
droppedCount: 0
|
|
3779
3782
|
};
|
|
3780
|
-
},
|
|
3783
|
+
}, Rs = () => "absoluteGrandTotal", Ke = (e, t, r, a) => {
|
|
3781
3784
|
const n = Math.abs(e === "radial" ? Math.sin(t) : Math.cos(t)), s = Math.abs(e === "radial" ? Math.cos(t) : Math.sin(t));
|
|
3782
3785
|
return n * (r / 2) + s * (a / 2);
|
|
3783
|
-
},
|
|
3786
|
+
}, _s = ({ wedge: e, labelRadius: t, labelAngle: r, labelWidth: a, labelHeight: n }) => {
|
|
3784
3787
|
if (t <= 0) return !1;
|
|
3785
3788
|
const s = Math.sin(r) * t, i = -Math.cos(r) * t, o = {
|
|
3786
3789
|
left: s - a / 2,
|
|
@@ -3824,7 +3827,7 @@ var Es = " · ", B = 2, ws = (e) => {
|
|
|
3824
3827
|
n = Math.max(n, Math.min(c, d)), s = Math.min(s, Math.max(c, d));
|
|
3825
3828
|
}
|
|
3826
3829
|
return n <= s;
|
|
3827
|
-
},
|
|
3830
|
+
}, Ls = ({ x: e, y: t, labelWidth: r, labelHeight: a, panelRect: n }) => e - r / 2 >= 0 && e + r / 2 <= n.width && t - a / 2 >= 0 && t + a / 2 <= n.height, Pt = ({ wedge: e, position: t, offset: r, labelWidth: a, labelHeight: n }) => t === "inside" ? {
|
|
3828
3831
|
labelRadius: (e.innerRadiusPx + e.outerRadiusPx) / 2,
|
|
3829
3832
|
labelAngle: e.midAngle,
|
|
3830
3833
|
position: "inside"
|
|
@@ -3832,7 +3835,7 @@ var Es = " · ", B = 2, ws = (e) => {
|
|
|
3832
3835
|
labelRadius: e.outerRadiusPx + r + Ke("radial", e.midAngle, a, n),
|
|
3833
3836
|
labelAngle: e.midAngle,
|
|
3834
3837
|
position: "outside"
|
|
3835
|
-
},
|
|
3838
|
+
}, Is = ({ wedge: e, placement: t, justify: r, align: a, offset: n, labelWidth: s, labelHeight: i }) => {
|
|
3836
3839
|
const o = a === "start" ? e.startAngle : a === "end" ? e.endAngle : e.midAngle, l = n + Ke("radial", o, s, i);
|
|
3837
3840
|
let c;
|
|
3838
3841
|
if (r === "center") c = (e.innerRadiusPx + e.outerRadiusPx) / 2;
|
|
@@ -3852,13 +3855,10 @@ var Es = " · ", B = 2, ws = (e) => {
|
|
|
3852
3855
|
labelAngle: d,
|
|
3853
3856
|
position: ks(e, c, d) ? "inside" : "outside"
|
|
3854
3857
|
};
|
|
3855
|
-
},
|
|
3858
|
+
}, Cs = class extends ee {
|
|
3856
3859
|
constructor(...e) {
|
|
3857
3860
|
super(...e), this.type = "bar", this.styleTarget = { observation: {
|
|
3858
|
-
vocabulary: {
|
|
3859
|
-
cornerRadius: "barRadius",
|
|
3860
|
-
strokeWidth: "pixels"
|
|
3861
|
-
},
|
|
3861
|
+
vocabulary: { strokeWidth: "pixels" },
|
|
3862
3862
|
aesthetics: {
|
|
3863
3863
|
fill: "color",
|
|
3864
3864
|
alpha: "alpha",
|
|
@@ -3928,10 +3928,10 @@ var Es = " · ", B = 2, ws = (e) => {
|
|
|
3928
3928
|
const h = ha(t, r);
|
|
3929
3929
|
return h === null ? null : jt(h, s);
|
|
3930
3930
|
}
|
|
3931
|
-
if (r.type === "polar") return
|
|
3931
|
+
if (r.type === "polar") return Ds(t);
|
|
3932
3932
|
const i = be(a), o = {
|
|
3933
|
-
isSolo: !i ||
|
|
3934
|
-
isNegative: i &&
|
|
3933
|
+
isSolo: !i || ls(t) === "solo",
|
|
3934
|
+
isNegative: i && Ps(t),
|
|
3935
3935
|
purpose: n
|
|
3936
3936
|
};
|
|
3937
3937
|
if (r.mainAxis === "x") {
|
|
@@ -3954,7 +3954,7 @@ var Es = " · ", B = 2, ws = (e) => {
|
|
|
3954
3954
|
x: d,
|
|
3955
3955
|
y: (l + c) / 2
|
|
3956
3956
|
};
|
|
3957
|
-
}, this.getDataLabelPlacements = (t) => t.coordSystem.type === "polar" ?
|
|
3957
|
+
}, this.getDataLabelPlacements = (t) => t.coordSystem.type === "polar" ? Ss(t) : us(t), this.resolvePercentageValueStrategy = (t, r) => r === "polar" ? Rs() : ds(t);
|
|
3958
3958
|
}
|
|
3959
3959
|
resolveParams(e) {
|
|
3960
3960
|
const { width: t, ...r } = super.resolveParams(e), a = this.resolveWidthParam(t, e.diagnostics);
|
|
@@ -3989,10 +3989,10 @@ var Es = " · ", B = 2, ws = (e) => {
|
|
|
3989
3989
|
suggestion: "Set params.width to a fraction of the category band in (0, 1]."
|
|
3990
3990
|
}), a;
|
|
3991
3991
|
}
|
|
3992
|
-
}, Nt = ({ width: e }, t) => e !== void 0 ? e : t === "polar" ? 1 :
|
|
3992
|
+
}, Nt = ({ width: e }, t) => e !== void 0 ? e : t === "polar" ? 1 : ss, Ds = (e) => {
|
|
3993
3993
|
const t = J(e), r = Q(e), a = G(e), n = $(e);
|
|
3994
3994
|
return t === null || r === null || a === null || n === null ? null : H((t + r) / 2, (a + n) / 2);
|
|
3995
|
-
},
|
|
3995
|
+
}, Ps = (e) => {
|
|
3996
3996
|
const t = ua(e);
|
|
3997
3997
|
return S(t) && t < 0;
|
|
3998
3998
|
}, Ot = (e) => {
|
|
@@ -4001,13 +4001,13 @@ var Es = " · ", B = 2, ws = (e) => {
|
|
|
4001
4001
|
if (a.purpose === "value" || a.isSolo) return n;
|
|
4002
4002
|
const s = a.isNegative ? r : t;
|
|
4003
4003
|
return s === null ? null : (s + n) / 2;
|
|
4004
|
-
},
|
|
4004
|
+
}, Ns = (e) => {
|
|
4005
4005
|
const t = [];
|
|
4006
4006
|
if (!e.layer.dataLabels.showDataLabels) return {
|
|
4007
4007
|
labels: t,
|
|
4008
4008
|
droppedCount: 0
|
|
4009
4009
|
};
|
|
4010
|
-
const { offset: r } = e.layer.dataLabels, a =
|
|
4010
|
+
const { offset: r } = e.layer.dataLabels, a = Os(e.layer);
|
|
4011
4011
|
for (const n of e.layer.data) {
|
|
4012
4012
|
const s = q(n), i = z(n);
|
|
4013
4013
|
if (s === null || i === null || !Qe(s, i)) continue;
|
|
@@ -4046,7 +4046,7 @@ var Es = " · ", B = 2, ws = (e) => {
|
|
|
4046
4046
|
labels: t,
|
|
4047
4047
|
droppedCount: 0
|
|
4048
4048
|
};
|
|
4049
|
-
},
|
|
4049
|
+
}, Os = (e) => {
|
|
4050
4050
|
const { position: t, justify: r, align: a } = e.dataLabels;
|
|
4051
4051
|
return t === "auto" ? {
|
|
4052
4052
|
placement: "outside",
|
|
@@ -4057,7 +4057,7 @@ var Es = " · ", B = 2, ws = (e) => {
|
|
|
4057
4057
|
justify: br(e.data, e.mapping) ? rt(r) : r,
|
|
4058
4058
|
align: a
|
|
4059
4059
|
};
|
|
4060
|
-
},
|
|
4060
|
+
}, Fs = class extends ee {
|
|
4061
4061
|
constructor(...e) {
|
|
4062
4062
|
super(...e), this.type = "line", this.styleTarget = { observation: {
|
|
4063
4063
|
vocabulary: {
|
|
@@ -4121,7 +4121,7 @@ var Es = " · ", B = 2, ws = (e) => {
|
|
|
4121
4121
|
identity: !0,
|
|
4122
4122
|
fill: !0
|
|
4123
4123
|
}
|
|
4124
|
-
}, this.highlightStrategy = "overlay-anchor", this.spatialKind = "buckets", this.resolveAnchorPosition = et, this.getDataLabelPlacements = (t) =>
|
|
4124
|
+
}, this.highlightStrategy = "overlay-anchor", this.spatialKind = "buckets", this.resolveAnchorPosition = et, this.getDataLabelPlacements = (t) => Ns(t);
|
|
4125
4125
|
}
|
|
4126
4126
|
compile(e) {
|
|
4127
4127
|
return {
|
|
@@ -4129,13 +4129,13 @@ var Es = " · ", B = 2, ws = (e) => {
|
|
|
4129
4129
|
mapping: {}
|
|
4130
4130
|
};
|
|
4131
4131
|
}
|
|
4132
|
-
},
|
|
4132
|
+
}, Bs = (e) => {
|
|
4133
4133
|
const t = [];
|
|
4134
4134
|
if (!e.layer.dataLabels.showDataLabels) return {
|
|
4135
4135
|
labels: t,
|
|
4136
4136
|
droppedCount: 0
|
|
4137
4137
|
};
|
|
4138
|
-
const { offset: r } = e.layer.dataLabels, a =
|
|
4138
|
+
const { offset: r } = e.layer.dataLabels, a = Vs(e.layer), n = a.justify === "panel-start" || a.justify === "panel-end", s = e.styleReaders;
|
|
4139
4139
|
for (const i of e.layer.data) {
|
|
4140
4140
|
const o = q(i), l = z(i);
|
|
4141
4141
|
if (o === null || l === null || !Qe(o, l)) continue;
|
|
@@ -4175,7 +4175,7 @@ var Es = " · ", B = 2, ws = (e) => {
|
|
|
4175
4175
|
labels: t,
|
|
4176
4176
|
droppedCount: 0
|
|
4177
4177
|
};
|
|
4178
|
-
},
|
|
4178
|
+
}, Vs = (e) => {
|
|
4179
4179
|
const { position: t, justify: r, align: a } = e.dataLabels;
|
|
4180
4180
|
return t === "auto" ? {
|
|
4181
4181
|
placement: "outside",
|
|
@@ -4186,7 +4186,7 @@ var Es = " · ", B = 2, ws = (e) => {
|
|
|
4186
4186
|
justify: r,
|
|
4187
4187
|
align: a
|
|
4188
4188
|
};
|
|
4189
|
-
},
|
|
4189
|
+
}, Ws = class extends ee {
|
|
4190
4190
|
constructor(...e) {
|
|
4191
4191
|
super(...e), this.type = "point", this.styleTarget = { observation: {
|
|
4192
4192
|
vocabulary: {
|
|
@@ -4238,7 +4238,7 @@ var Es = " · ", B = 2, ws = (e) => {
|
|
|
4238
4238
|
if (r !== "label") return null;
|
|
4239
4239
|
const a = I(t.size);
|
|
4240
4240
|
return a !== null ? { variable: a } : null;
|
|
4241
|
-
}, this.getDataLabelPlacements = (t) =>
|
|
4241
|
+
}, this.getDataLabelPlacements = (t) => Bs(t);
|
|
4242
4242
|
}
|
|
4243
4243
|
compile({ data: e }) {
|
|
4244
4244
|
return {
|
|
@@ -4246,7 +4246,7 @@ var Es = " · ", B = 2, ws = (e) => {
|
|
|
4246
4246
|
mapping: {}
|
|
4247
4247
|
};
|
|
4248
4248
|
}
|
|
4249
|
-
},
|
|
4249
|
+
}, Ys = class extends ee {
|
|
4250
4250
|
constructor(...e) {
|
|
4251
4251
|
super(...e), this.type = "rule", this.styleTarget = {
|
|
4252
4252
|
observation: {
|
|
@@ -4349,22 +4349,22 @@ var Es = " · ", B = 2, ws = (e) => {
|
|
|
4349
4349
|
sourceFormat: t.getValueFormat(a)
|
|
4350
4350
|
} : null;
|
|
4351
4351
|
};
|
|
4352
|
-
function
|
|
4352
|
+
function Us(e) {
|
|
4353
4353
|
return e[ue.color];
|
|
4354
4354
|
}
|
|
4355
|
-
function
|
|
4355
|
+
function So(e) {
|
|
4356
4356
|
return e[ue.alpha];
|
|
4357
4357
|
}
|
|
4358
|
-
function
|
|
4358
|
+
function Ro(e) {
|
|
4359
4359
|
return e[ue.size];
|
|
4360
4360
|
}
|
|
4361
|
-
function
|
|
4361
|
+
function _o(e) {
|
|
4362
4362
|
return e[ue.strokeWidth];
|
|
4363
4363
|
}
|
|
4364
4364
|
function ko(e) {
|
|
4365
4365
|
return e[ue.lineType];
|
|
4366
4366
|
}
|
|
4367
|
-
var
|
|
4367
|
+
var zs = (e) => {
|
|
4368
4368
|
const t = J(e), r = Q(e), a = G(e), n = $(e);
|
|
4369
4369
|
if (t === null || r === null || a === null || n === null) return null;
|
|
4370
4370
|
const s = Math.min(t, r), i = Math.abs(r - t), o = Math.max(a, n), l = Math.abs(n - a);
|
|
@@ -4374,17 +4374,17 @@ var Us = (e) => {
|
|
|
4374
4374
|
width: i,
|
|
4375
4375
|
height: l
|
|
4376
4376
|
};
|
|
4377
|
-
},
|
|
4378
|
-
const t =
|
|
4377
|
+
}, Gs = (e) => {
|
|
4378
|
+
const t = zs(e);
|
|
4379
4379
|
if (!t) return null;
|
|
4380
|
-
const r = t.width *
|
|
4380
|
+
const r = t.width * is, a = t.height * os;
|
|
4381
4381
|
return {
|
|
4382
4382
|
x: t.x + r,
|
|
4383
4383
|
y: t.y + a,
|
|
4384
4384
|
width: t.width - r * 2,
|
|
4385
4385
|
height: t.height - a * 2
|
|
4386
4386
|
};
|
|
4387
|
-
},
|
|
4387
|
+
}, $s = (e) => !!Us(e), js = (e) => $s(e) ? Gs(e) : null, Bt = 4, Hs = (e) => {
|
|
4388
4388
|
const t = [];
|
|
4389
4389
|
if (!e.layer.dataLabels.showDataLabels) return {
|
|
4390
4390
|
labels: t,
|
|
@@ -4392,7 +4392,7 @@ var Us = (e) => {
|
|
|
4392
4392
|
};
|
|
4393
4393
|
const r = e.styleReaders;
|
|
4394
4394
|
for (const a of e.layer.data) {
|
|
4395
|
-
const n =
|
|
4395
|
+
const n = js(a);
|
|
4396
4396
|
if (n === null) continue;
|
|
4397
4397
|
const s = e.formatLabel(a);
|
|
4398
4398
|
if (s === "") continue;
|
|
@@ -4414,16 +4414,13 @@ var Us = (e) => {
|
|
|
4414
4414
|
labels: t,
|
|
4415
4415
|
droppedCount: 0
|
|
4416
4416
|
};
|
|
4417
|
-
},
|
|
4417
|
+
}, Ks = (e) => {
|
|
4418
4418
|
const t = I(e.color);
|
|
4419
4419
|
return t !== null ? { variable: t } : null;
|
|
4420
|
-
},
|
|
4420
|
+
}, Xs = class extends ee {
|
|
4421
4421
|
constructor(...e) {
|
|
4422
4422
|
super(...e), this.type = "tile", this.styleTarget = { observation: {
|
|
4423
|
-
vocabulary: {
|
|
4424
|
-
cornerRadius: "pixels",
|
|
4425
|
-
strokeWidth: "pixels"
|
|
4426
|
-
},
|
|
4423
|
+
vocabulary: { strokeWidth: "pixels" },
|
|
4427
4424
|
aesthetics: {
|
|
4428
4425
|
fill: "color",
|
|
4429
4426
|
alpha: "alpha",
|
|
@@ -4482,13 +4479,13 @@ var Us = (e) => {
|
|
|
4482
4479
|
}, this.grid = { cartesian: {
|
|
4483
4480
|
hideGridX: !0,
|
|
4484
4481
|
hideGridY: !0
|
|
4485
|
-
} }, this.legend = { suppressWhenSingleItem: !1 }, this.dataLabels = { cartesian: { showDataLabels: !0 } }, this.dataLabelCoordTypes = ["cartesian"], this.highlightStrategy = "observation-rerender", this.spatialKind = "cells", this.identityKey = "x-y", this.tooltip = [{ aes: "color" }], this.resolveValueSource =
|
|
4482
|
+
} }, this.legend = { suppressWhenSingleItem: !1 }, this.dataLabels = { cartesian: { showDataLabels: !0 } }, this.dataLabelCoordTypes = ["cartesian"], this.highlightStrategy = "observation-rerender", this.spatialKind = "cells", this.identityKey = "x-y", this.tooltip = [{ aes: "color" }], this.resolveValueSource = Ks, this.resolveAnchorPosition = (t) => {
|
|
4486
4483
|
const r = J(t), a = Q(t), n = G(t), s = $(t);
|
|
4487
4484
|
return r === null || a === null || n === null || s === null ? null : {
|
|
4488
4485
|
x: (r + a) / 2,
|
|
4489
4486
|
y: (n + s) / 2
|
|
4490
4487
|
};
|
|
4491
|
-
}, this.getDataLabelPlacements = (t) =>
|
|
4488
|
+
}, this.getDataLabelPlacements = (t) => Hs(t);
|
|
4492
4489
|
}
|
|
4493
4490
|
compile({ data: e }) {
|
|
4494
4491
|
return {
|
|
@@ -4496,26 +4493,26 @@ var Us = (e) => {
|
|
|
4496
4493
|
mapping: {}
|
|
4497
4494
|
};
|
|
4498
4495
|
}
|
|
4499
|
-
},
|
|
4500
|
-
new
|
|
4501
|
-
new Vs(),
|
|
4502
|
-
new Os(),
|
|
4503
|
-
new as(),
|
|
4496
|
+
}, qs = [
|
|
4497
|
+
new Cs(),
|
|
4504
4498
|
new Ws(),
|
|
4505
|
-
new
|
|
4506
|
-
|
|
4499
|
+
new Fs(),
|
|
4500
|
+
new ns(),
|
|
4501
|
+
new Ys(),
|
|
4502
|
+
new Xs()
|
|
4503
|
+
], Lo = class extends Er {
|
|
4507
4504
|
constructor() {
|
|
4508
4505
|
super("geom");
|
|
4509
|
-
for (const e of
|
|
4506
|
+
for (const e of qs) this.register(e.type, e);
|
|
4510
4507
|
}
|
|
4511
|
-
},
|
|
4508
|
+
}, Js = class {
|
|
4512
4509
|
resolveComputedVariables(e, t) {
|
|
4513
4510
|
return this.computedVariables;
|
|
4514
4511
|
}
|
|
4515
4512
|
compute(e) {
|
|
4516
4513
|
return this.computeStat(e);
|
|
4517
4514
|
}
|
|
4518
|
-
},
|
|
4515
|
+
}, Qs = class {
|
|
4519
4516
|
constructor() {
|
|
4520
4517
|
this.transformType = "aggregate";
|
|
4521
4518
|
}
|
|
@@ -4527,16 +4524,16 @@ var Us = (e) => {
|
|
|
4527
4524
|
};
|
|
4528
4525
|
return e.groupBy(...r.groupby).rollup(a);
|
|
4529
4526
|
}
|
|
4530
|
-
},
|
|
4527
|
+
}, Zs = {
|
|
4531
4528
|
numeric: { type: "decimal" },
|
|
4532
4529
|
categorical: { type: "text" },
|
|
4533
4530
|
temporal: { type: "datetime" }
|
|
4534
|
-
},
|
|
4531
|
+
}, ei = class {
|
|
4535
4532
|
constructor() {
|
|
4536
4533
|
this.transformType = "constant";
|
|
4537
4534
|
}
|
|
4538
4535
|
apply(e, t) {
|
|
4539
|
-
const { options: r } = t, a = fr(r.value,
|
|
4536
|
+
const { options: r } = t, a = fr(r.value, Zs[r.type], _e);
|
|
4540
4537
|
if (r.value !== null && a === null) throw new le({
|
|
4541
4538
|
code: "INCOMPATIBLE_TYPE",
|
|
4542
4539
|
message: `Constant '${r.variableName}' cannot be read as ${r.type}`,
|
|
@@ -4551,7 +4548,7 @@ var Us = (e) => {
|
|
|
4551
4548
|
const { options: t } = e;
|
|
4552
4549
|
return [t.variableName];
|
|
4553
4550
|
}
|
|
4554
|
-
},
|
|
4551
|
+
}, ti = class {
|
|
4555
4552
|
constructor() {
|
|
4556
4553
|
this.transformType = "filter";
|
|
4557
4554
|
}
|
|
@@ -4559,7 +4556,7 @@ var Us = (e) => {
|
|
|
4559
4556
|
const { options: r } = t;
|
|
4560
4557
|
return e.filter(r.variableName, r.operator, r.value);
|
|
4561
4558
|
}
|
|
4562
|
-
},
|
|
4559
|
+
}, ri = class {
|
|
4563
4560
|
constructor() {
|
|
4564
4561
|
this.transformType = "reshape";
|
|
4565
4562
|
}
|
|
@@ -4576,7 +4573,7 @@ var Us = (e) => {
|
|
|
4576
4573
|
const { options: t } = e;
|
|
4577
4574
|
return [t.keyName ?? "key"];
|
|
4578
4575
|
}
|
|
4579
|
-
},
|
|
4576
|
+
}, ai = class {
|
|
4580
4577
|
constructor() {
|
|
4581
4578
|
this.transformType = "sort";
|
|
4582
4579
|
}
|
|
@@ -4584,26 +4581,26 @@ var Us = (e) => {
|
|
|
4584
4581
|
const { options: r } = t;
|
|
4585
4582
|
return e.orderBy(r.variableName, r.direction ?? "asc");
|
|
4586
4583
|
}
|
|
4587
|
-
},
|
|
4588
|
-
new
|
|
4589
|
-
new Zs(),
|
|
4584
|
+
}, ni = [
|
|
4585
|
+
new Qs(),
|
|
4590
4586
|
new ei(),
|
|
4591
4587
|
new ti(),
|
|
4592
|
-
new ri()
|
|
4593
|
-
|
|
4588
|
+
new ri(),
|
|
4589
|
+
new ai()
|
|
4590
|
+
], Io = class extends Er {
|
|
4594
4591
|
constructor() {
|
|
4595
4592
|
super("transform");
|
|
4596
|
-
for (const e of
|
|
4593
|
+
for (const e of ni) this.register(e.transformType, e);
|
|
4597
4594
|
}
|
|
4598
4595
|
};
|
|
4599
|
-
function
|
|
4596
|
+
function si(e) {
|
|
4600
4597
|
if ("definition" in e) return e.definition;
|
|
4601
4598
|
if (Cr(e) || Dr(e) || Pr(e)) return e;
|
|
4602
4599
|
}
|
|
4603
|
-
function
|
|
4600
|
+
function Co(e) {
|
|
4604
4601
|
const t = [], r = [], a = [];
|
|
4605
4602
|
for (const n of e) {
|
|
4606
|
-
const s =
|
|
4603
|
+
const s = si(n);
|
|
4607
4604
|
s && (Cr(s) ? (t.push(s), s.defaultStat !== null && r.push(s.defaultStat)) : Dr(s) ? r.push(s) : Pr(s) && a.push(s));
|
|
4608
4605
|
}
|
|
4609
4606
|
return {
|
|
@@ -4614,13 +4611,13 @@ function Io(e) {
|
|
|
4614
4611
|
...We("geom", t, (n) => n.type),
|
|
4615
4612
|
...We("stat", r, (n) => n.type),
|
|
4616
4613
|
...We("transform", a, (n) => n.transformType),
|
|
4617
|
-
...si(t),
|
|
4618
4614
|
...ii(t),
|
|
4619
|
-
...oi(t)
|
|
4615
|
+
...oi(t),
|
|
4616
|
+
...li(t)
|
|
4620
4617
|
]
|
|
4621
4618
|
};
|
|
4622
4619
|
}
|
|
4623
|
-
function
|
|
4620
|
+
function ii(e) {
|
|
4624
4621
|
const t = [];
|
|
4625
4622
|
for (const r of e)
|
|
4626
4623
|
r.spatialKind === "render-hit-test" && (r.identityKey !== "x-group" && r.identityKey !== "x-y" || t.push({
|
|
@@ -4634,7 +4631,7 @@ function si(e) {
|
|
|
4634
4631
|
}));
|
|
4635
4632
|
return t;
|
|
4636
4633
|
}
|
|
4637
|
-
function
|
|
4634
|
+
function oi(e) {
|
|
4638
4635
|
const t = [];
|
|
4639
4636
|
for (const r of e)
|
|
4640
4637
|
r.spatialKind !== "cells" || !r.supportedCoordTypes.includes("polar") || t.push({
|
|
@@ -4648,7 +4645,7 @@ function ii(e) {
|
|
|
4648
4645
|
});
|
|
4649
4646
|
return t;
|
|
4650
4647
|
}
|
|
4651
|
-
function
|
|
4648
|
+
function li(e) {
|
|
4652
4649
|
return e.filter((t) => t.categorySpanAxes.some((r) => r !== "x")).map((t) => ({
|
|
4653
4650
|
code: "UNSUPPORTED_CATEGORY_SPAN_AXIS",
|
|
4654
4651
|
message: `The geom '${t.type}' spans categories on 'y', which is not supported yet; 'y' is read as a position.`,
|
|
@@ -4678,13 +4675,13 @@ function We(e, t, r) {
|
|
|
4678
4675
|
});
|
|
4679
4676
|
return n;
|
|
4680
4677
|
}
|
|
4681
|
-
var Cr = (e) => e instanceof ee, Dr = (e) => e instanceof
|
|
4678
|
+
var Cr = (e) => e instanceof ee, Dr = (e) => e instanceof Js, Pr = (e) => "transformType" in e && typeof e.apply == "function", Do = [
|
|
4682
4679
|
"rgb",
|
|
4683
4680
|
"lab",
|
|
4684
4681
|
"hcl",
|
|
4685
4682
|
"hsl"
|
|
4686
4683
|
];
|
|
4687
|
-
function
|
|
4684
|
+
function Po(e, t = {}) {
|
|
4688
4685
|
const r = t;
|
|
4689
4686
|
return {
|
|
4690
4687
|
type: "scale",
|
|
@@ -4702,7 +4699,7 @@ function Do(e, t = {}) {
|
|
|
4702
4699
|
symmetric: r.symmetric
|
|
4703
4700
|
};
|
|
4704
4701
|
}
|
|
4705
|
-
function
|
|
4702
|
+
function No(e, t = {}) {
|
|
4706
4703
|
return {
|
|
4707
4704
|
type: "scale",
|
|
4708
4705
|
scaledAesthetic: e,
|
|
@@ -4714,7 +4711,7 @@ function Po(e, t = {}) {
|
|
|
4714
4711
|
clamp: t.clamp
|
|
4715
4712
|
};
|
|
4716
4713
|
}
|
|
4717
|
-
function
|
|
4714
|
+
function Oo(e, t = {}) {
|
|
4718
4715
|
return {
|
|
4719
4716
|
type: "scale",
|
|
4720
4717
|
scaledAesthetic: e,
|
|
@@ -4725,14 +4722,14 @@ function No(e, t = {}) {
|
|
|
4725
4722
|
reverse: t.reverse
|
|
4726
4723
|
};
|
|
4727
4724
|
}
|
|
4728
|
-
function
|
|
4725
|
+
function Fo(e, t = {}) {
|
|
4729
4726
|
return {
|
|
4730
4727
|
type: "scale",
|
|
4731
4728
|
scaledAesthetic: e,
|
|
4732
4729
|
scaleType: "identity"
|
|
4733
4730
|
};
|
|
4734
4731
|
}
|
|
4735
|
-
function
|
|
4732
|
+
function Bo(e, t) {
|
|
4736
4733
|
return {
|
|
4737
4734
|
type: "scale",
|
|
4738
4735
|
scaledAesthetic: e,
|
|
@@ -4740,24 +4737,24 @@ function Fo(e, t) {
|
|
|
4740
4737
|
options: t
|
|
4741
4738
|
};
|
|
4742
4739
|
}
|
|
4743
|
-
var
|
|
4740
|
+
var Vo = { labelCrossPosition: 0.5 }, Wo = {
|
|
4744
4741
|
kind: "rectangle",
|
|
4745
4742
|
zOrder: "foreground"
|
|
4746
|
-
},
|
|
4743
|
+
}, Yo = {
|
|
4747
4744
|
zOrder: "foreground",
|
|
4748
4745
|
fit: "contain"
|
|
4749
|
-
},
|
|
4746
|
+
}, Uo = {
|
|
4750
4747
|
x: 8,
|
|
4751
4748
|
y: 8,
|
|
4752
4749
|
unit: "px"
|
|
4753
|
-
},
|
|
4750
|
+
}, zo = { align: "center" }, Go = {
|
|
4754
4751
|
startArrowheadStyle: "none",
|
|
4755
4752
|
endArrowheadStyle: "line-arrow"
|
|
4756
|
-
},
|
|
4753
|
+
}, $o = {
|
|
4757
4754
|
thin: 2,
|
|
4758
4755
|
medium: 4,
|
|
4759
4756
|
thick: 8
|
|
4760
|
-
},
|
|
4757
|
+
}, jo = 0.5, Ho = {
|
|
4761
4758
|
strokeWidth: 2,
|
|
4762
4759
|
shadow: {
|
|
4763
4760
|
offsetX: 0,
|
|
@@ -4765,7 +4762,7 @@ var Bo = { labelCrossPosition: 0.5 }, Vo = {
|
|
|
4765
4762
|
blur: 1.15,
|
|
4766
4763
|
color: "rgba(0, 0, 0, 0.16)"
|
|
4767
4764
|
}
|
|
4768
|
-
},
|
|
4765
|
+
}, Ko = {
|
|
4769
4766
|
small: {
|
|
4770
4767
|
arrow: { strokeWidth: 2 },
|
|
4771
4768
|
label: {
|
|
@@ -4796,7 +4793,7 @@ var Bo = { labelCrossPosition: 0.5 }, Vo = {
|
|
|
4796
4793
|
strokeWidth: 2
|
|
4797
4794
|
}
|
|
4798
4795
|
}
|
|
4799
|
-
},
|
|
4796
|
+
}, Xo = {
|
|
4800
4797
|
differenceArrow: "differenceArrows",
|
|
4801
4798
|
shape: "shapes",
|
|
4802
4799
|
arrow: "arrows",
|
|
@@ -4805,7 +4802,7 @@ var Bo = { labelCrossPosition: 0.5 }, Vo = {
|
|
|
4805
4802
|
sticker: "stickers",
|
|
4806
4803
|
pinnedNumber: "pinnedNumbers",
|
|
4807
4804
|
comment: "comments"
|
|
4808
|
-
},
|
|
4805
|
+
}, qo = {
|
|
4809
4806
|
differenceArrow(e) {
|
|
4810
4807
|
return {
|
|
4811
4808
|
type: "annotation",
|
|
@@ -4864,206 +4861,207 @@ var Bo = { labelCrossPosition: 0.5 }, Vo = {
|
|
|
4864
4861
|
}
|
|
4865
4862
|
};
|
|
4866
4863
|
export {
|
|
4867
|
-
|
|
4868
|
-
|
|
4869
|
-
|
|
4870
|
-
|
|
4871
|
-
|
|
4872
|
-
|
|
4873
|
-
|
|
4874
|
-
|
|
4875
|
-
|
|
4876
|
-
|
|
4877
|
-
|
|
4878
|
-
|
|
4879
|
-
|
|
4880
|
-
|
|
4881
|
-
|
|
4882
|
-
|
|
4883
|
-
|
|
4884
|
-
|
|
4885
|
-
|
|
4886
|
-
|
|
4887
|
-
|
|
4888
|
-
|
|
4889
|
-
|
|
4890
|
-
|
|
4891
|
-
|
|
4892
|
-
|
|
4864
|
+
vo as $,
|
|
4865
|
+
G as $n,
|
|
4866
|
+
Za as $t,
|
|
4867
|
+
Us as A,
|
|
4868
|
+
Oi as An,
|
|
4869
|
+
fi as Ar,
|
|
4870
|
+
ro as At,
|
|
4871
|
+
ss as B,
|
|
4872
|
+
Ge as Bn,
|
|
4873
|
+
hi as Br,
|
|
4874
|
+
Hi as Bt,
|
|
4875
|
+
qs as C,
|
|
4876
|
+
Ht as Cn,
|
|
4877
|
+
Yt as Cr,
|
|
4878
|
+
eo as Ct,
|
|
4879
|
+
zs as D,
|
|
4880
|
+
pa as Dn,
|
|
4881
|
+
Ue as Dr,
|
|
4882
|
+
gn as Dt,
|
|
4883
|
+
js as E,
|
|
4884
|
+
ya as En,
|
|
4885
|
+
S as Er,
|
|
4886
|
+
ao as Et,
|
|
4887
|
+
Ts as F,
|
|
4888
|
+
I as Fn,
|
|
4889
|
+
Hr as Fr,
|
|
4893
4890
|
qi as Ft,
|
|
4894
|
-
|
|
4895
|
-
|
|
4896
|
-
|
|
4891
|
+
To as G,
|
|
4892
|
+
_i as Gn,
|
|
4893
|
+
Gi as Gt,
|
|
4897
4894
|
Te as H,
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
|
|
4902
|
-
|
|
4903
|
-
|
|
4895
|
+
jt as Hn,
|
|
4896
|
+
$i as Ht,
|
|
4897
|
+
Es as I,
|
|
4898
|
+
V as In,
|
|
4899
|
+
jr as Ir,
|
|
4900
|
+
Ji as It,
|
|
4904
4901
|
Wn as J,
|
|
4905
|
-
|
|
4906
|
-
|
|
4907
|
-
|
|
4908
|
-
|
|
4909
|
-
|
|
4902
|
+
Q as Jn,
|
|
4903
|
+
rn as Jt,
|
|
4904
|
+
qn as K,
|
|
4905
|
+
q as Kn,
|
|
4906
|
+
Qa as Kt,
|
|
4910
4907
|
nt as L,
|
|
4911
4908
|
Ii as Ln,
|
|
4912
|
-
|
|
4913
|
-
|
|
4914
|
-
|
|
4915
|
-
|
|
4916
|
-
|
|
4909
|
+
Xe as Lr,
|
|
4910
|
+
Qe as Lt,
|
|
4911
|
+
Ro as M,
|
|
4912
|
+
Re as Mn,
|
|
4913
|
+
qr as Mr,
|
|
4917
4914
|
Qi as Mt,
|
|
4918
|
-
|
|
4915
|
+
_o as N,
|
|
4919
4916
|
Pi as Nn,
|
|
4920
|
-
|
|
4921
|
-
|
|
4922
|
-
|
|
4923
|
-
|
|
4924
|
-
|
|
4925
|
-
|
|
4917
|
+
pi as Nr,
|
|
4918
|
+
Zi as Nt,
|
|
4919
|
+
$s as O,
|
|
4920
|
+
Fi as On,
|
|
4921
|
+
gi as Or,
|
|
4922
|
+
to as Ot,
|
|
4926
4923
|
Nt as P,
|
|
4927
|
-
|
|
4928
|
-
|
|
4924
|
+
Ni as Pn,
|
|
4925
|
+
Qr as Pr,
|
|
4929
4926
|
Xi as Pt,
|
|
4930
|
-
|
|
4931
|
-
|
|
4932
|
-
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
|
|
4940
|
-
|
|
4941
|
-
|
|
4942
|
-
|
|
4943
|
-
|
|
4944
|
-
|
|
4927
|
+
bo as Q,
|
|
4928
|
+
$ as Qn,
|
|
4929
|
+
en as Qt,
|
|
4930
|
+
ls as R,
|
|
4931
|
+
Ci as Rn,
|
|
4932
|
+
Wt as Rr,
|
|
4933
|
+
hn as Rt,
|
|
4934
|
+
Js as S,
|
|
4935
|
+
le as Sn,
|
|
4936
|
+
sa as Sr,
|
|
4937
|
+
br as St,
|
|
4938
|
+
Gs as T,
|
|
4939
|
+
F as Tn,
|
|
4940
|
+
mi as Tr,
|
|
4941
|
+
vr as Tt,
|
|
4945
4942
|
ee as U,
|
|
4946
|
-
|
|
4947
|
-
|
|
4943
|
+
ki as Un,
|
|
4944
|
+
Ki as Ut,
|
|
4948
4945
|
Me as V,
|
|
4949
|
-
|
|
4950
|
-
|
|
4951
|
-
|
|
4952
|
-
|
|
4953
|
-
|
|
4954
|
-
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
4968
|
-
|
|
4969
|
-
|
|
4970
|
-
|
|
4971
|
-
|
|
4972
|
-
|
|
4973
|
-
|
|
4974
|
-
|
|
4975
|
-
|
|
4976
|
-
|
|
4977
|
-
|
|
4978
|
-
|
|
4979
|
-
|
|
4980
|
-
|
|
4981
|
-
|
|
4982
|
-
|
|
4983
|
-
|
|
4984
|
-
|
|
4985
|
-
|
|
4986
|
-
|
|
4987
|
-
|
|
4988
|
-
|
|
4989
|
-
|
|
4990
|
-
|
|
4991
|
-
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
|
|
4946
|
+
fa as Vn,
|
|
4947
|
+
Kr as Vr,
|
|
4948
|
+
ji as Vt,
|
|
4949
|
+
Eo as W,
|
|
4950
|
+
ha as Wn,
|
|
4951
|
+
an as Wt,
|
|
4952
|
+
yo as X,
|
|
4953
|
+
z as Xn,
|
|
4954
|
+
zi as Xt,
|
|
4955
|
+
co as Y,
|
|
4956
|
+
J as Yn,
|
|
4957
|
+
nn as Yt,
|
|
4958
|
+
mo as Z,
|
|
4959
|
+
Ri as Zn,
|
|
4960
|
+
Ui as Zt,
|
|
4961
|
+
Do as _,
|
|
4962
|
+
Kt as _n,
|
|
4963
|
+
Ai as _r,
|
|
4964
|
+
Dn as _t,
|
|
4965
|
+
$o as a,
|
|
4966
|
+
pr as an,
|
|
4967
|
+
$t as ar,
|
|
4968
|
+
lo as at,
|
|
4969
|
+
si as b,
|
|
4970
|
+
Wi as bn,
|
|
4971
|
+
aa as br,
|
|
4972
|
+
se as bt,
|
|
4973
|
+
Yo as c,
|
|
4974
|
+
Ga as cn,
|
|
4975
|
+
wi as cr,
|
|
4976
|
+
Mo as ct,
|
|
4977
|
+
zo as d,
|
|
4978
|
+
Pa as dn,
|
|
4979
|
+
bi as dr,
|
|
4980
|
+
xt as dt,
|
|
4981
|
+
Le as en,
|
|
4982
|
+
ua as er,
|
|
4983
|
+
po as et,
|
|
4984
|
+
jo as f,
|
|
4985
|
+
ba as fn,
|
|
4986
|
+
U as fr,
|
|
4987
|
+
oo as ft,
|
|
4988
|
+
No as g,
|
|
4989
|
+
Vi as gn,
|
|
4990
|
+
ta as gr,
|
|
4991
|
+
no as gt,
|
|
4992
|
+
Oo as h,
|
|
4995
4993
|
Bi as hn,
|
|
4996
|
-
|
|
4997
|
-
|
|
4998
|
-
|
|
4999
|
-
|
|
5000
|
-
|
|
5001
|
-
|
|
4994
|
+
ra as hr,
|
|
4995
|
+
so as ht,
|
|
4996
|
+
Ho as i,
|
|
4997
|
+
f as in,
|
|
4998
|
+
y as ir,
|
|
4999
|
+
zn as it,
|
|
5002
5000
|
ko as j,
|
|
5003
|
-
|
|
5004
|
-
|
|
5005
|
-
|
|
5006
|
-
|
|
5007
|
-
|
|
5008
|
-
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
|
|
5012
|
-
|
|
5013
|
-
|
|
5014
|
-
|
|
5015
|
-
|
|
5016
|
-
|
|
5017
|
-
|
|
5018
|
-
|
|
5019
|
-
|
|
5020
|
-
|
|
5021
|
-
|
|
5022
|
-
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
|
|
5029
|
-
|
|
5030
|
-
|
|
5031
|
-
|
|
5032
|
-
|
|
5033
|
-
|
|
5034
|
-
|
|
5035
|
-
|
|
5036
|
-
|
|
5037
|
-
|
|
5038
|
-
|
|
5039
|
-
|
|
5040
|
-
|
|
5041
|
-
|
|
5042
|
-
|
|
5043
|
-
|
|
5044
|
-
|
|
5045
|
-
|
|
5046
|
-
|
|
5047
|
-
|
|
5048
|
-
|
|
5049
|
-
|
|
5050
|
-
|
|
5051
|
-
|
|
5052
|
-
|
|
5053
|
-
|
|
5054
|
-
|
|
5055
|
-
|
|
5056
|
-
|
|
5057
|
-
|
|
5058
|
-
|
|
5059
|
-
|
|
5060
|
-
|
|
5061
|
-
|
|
5062
|
-
|
|
5063
|
-
|
|
5064
|
-
|
|
5065
|
-
|
|
5066
|
-
|
|
5067
|
-
|
|
5068
|
-
|
|
5001
|
+
Di as jn,
|
|
5002
|
+
yi as jr,
|
|
5003
|
+
vn as jt,
|
|
5004
|
+
So as k,
|
|
5005
|
+
be as kn,
|
|
5006
|
+
Jr as kr,
|
|
5007
|
+
mn as kt,
|
|
5008
|
+
Uo as l,
|
|
5009
|
+
ne as ln,
|
|
5010
|
+
v as lr,
|
|
5011
|
+
xo as lt,
|
|
5012
|
+
Fo as m,
|
|
5013
|
+
ga as mn,
|
|
5014
|
+
Mi as mr,
|
|
5015
|
+
io as mt,
|
|
5016
|
+
qo as n,
|
|
5017
|
+
ln as nn,
|
|
5018
|
+
ze as nr,
|
|
5019
|
+
fo as nt,
|
|
5020
|
+
Vo as o,
|
|
5021
|
+
de as on,
|
|
5022
|
+
Gt as or,
|
|
5023
|
+
Vn as ot,
|
|
5024
|
+
Bo as p,
|
|
5025
|
+
va as pn,
|
|
5026
|
+
ia as pr,
|
|
5027
|
+
Bn as pt,
|
|
5028
|
+
uo as q,
|
|
5029
|
+
Si as qn,
|
|
5030
|
+
tn as qt,
|
|
5031
|
+
Go as r,
|
|
5032
|
+
mt as rn,
|
|
5033
|
+
Ti as rr,
|
|
5034
|
+
ho as rt,
|
|
5035
|
+
Ko as s,
|
|
5036
|
+
Yi as sn,
|
|
5037
|
+
ue as sr,
|
|
5038
|
+
tt as st,
|
|
5039
|
+
Xo as t,
|
|
5040
|
+
yr as tn,
|
|
5041
|
+
zt as tr,
|
|
5042
|
+
go as tt,
|
|
5043
|
+
Wo as u,
|
|
5044
|
+
fr as un,
|
|
5045
|
+
la as ur,
|
|
5046
|
+
Ao as ut,
|
|
5047
|
+
Po as v,
|
|
5048
|
+
ma as vn,
|
|
5049
|
+
oe as vr,
|
|
5050
|
+
Er as vt,
|
|
5051
|
+
Lo as w,
|
|
5052
|
+
_e as wn,
|
|
5053
|
+
vi as wr,
|
|
5054
|
+
yn as wt,
|
|
5055
|
+
Io as x,
|
|
5056
|
+
L as xn,
|
|
5057
|
+
xi as xr,
|
|
5058
|
+
bn as xt,
|
|
5059
|
+
Co as y,
|
|
5060
|
+
xe as yn,
|
|
5061
|
+
na as yr,
|
|
5062
|
+
Rn as yt,
|
|
5063
|
+
wo as z,
|
|
5064
|
+
Li as zn,
|
|
5065
|
+
qe as zr,
|
|
5066
|
+
dn as zt
|
|
5069
5067
|
};
|