vvplot 0.5.0 → 0.5.1
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/vvplot.esm.js +642 -303
- package/dist/vvplot.esm.min.js +18 -18
- package/dist/vvplot.global.js +640 -301
- package/dist/vvplot.global.min.js +19 -19
- package/package.json +1 -1
package/dist/vvplot.esm.js
CHANGED
|
@@ -56,7 +56,7 @@ const isClient = typeof window !== "undefined" && typeof document !== "undefined
|
|
|
56
56
|
typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
|
|
57
57
|
const toString = Object.prototype.toString;
|
|
58
58
|
const isObject = (val) => toString.call(val) === "[object Object]";
|
|
59
|
-
const noop$
|
|
59
|
+
const noop$2 = () => {
|
|
60
60
|
};
|
|
61
61
|
function pxValue(px) {
|
|
62
62
|
return px.endsWith("rem") ? Number.parseFloat(px) * 16 : Number.parseFloat(px);
|
|
@@ -195,7 +195,7 @@ function useDevicePixelRatio(options = {}) {
|
|
|
195
195
|
} = options;
|
|
196
196
|
const pixelRatio = shallowRef(1);
|
|
197
197
|
const query = useMediaQuery(() => `(resolution: ${pixelRatio.value}dppx)`, options);
|
|
198
|
-
let stop = noop$
|
|
198
|
+
let stop = noop$2;
|
|
199
199
|
if (window2) {
|
|
200
200
|
stop = watchImmediate(query, () => pixelRatio.value = window2.devicePixelRatio);
|
|
201
201
|
}
|
|
@@ -2469,7 +2469,7 @@ const boxplot$1 = {
|
|
|
2469
2469
|
coord_scale(ds, levels) {
|
|
2470
2470
|
let xnudge = ds.xnudge ?? 0, ynudge = ds.ynudge ?? 0;
|
|
2471
2471
|
if (ds.x) {
|
|
2472
|
-
let x2 = psum$a(levels.x?.apply?.(ds.x) ?? ds.x, xnudge), xmin = psum$a(x2, ds.width?.map?.((x3) => -x3 / 2) ?? -0.5
|
|
2472
|
+
let x2 = psum$a(levels.x?.apply?.(ds.x) ?? ds.x, xnudge), xmin = psum$a(x2, ds.width?.map?.((x3) => -x3 / 2) ?? -0.5), xmax = psum$a(x2, ds.width?.map?.((x3) => +x3 / 2) ?? 0.5), lwisker = psum$a(ds.lwisker, ynudge), Q1 = psum$a(ds.Q1, ynudge), median = psum$a(ds.median, ynudge), Q3 = psum$a(ds.Q3, ynudge), uwisker = psum$a(ds.uwisker, ynudge), outliers = vecutils.apply(
|
|
2473
2473
|
($x, { y: ys, $raw }, nudge) => psum$a(ys, nudge).map(($y, i) => ({ x: $x, y: $y, $raw: $raw[i] })),
|
|
2474
2474
|
x2,
|
|
2475
2475
|
ds.outliers ?? [],
|
|
@@ -2491,7 +2491,7 @@ const boxplot$1 = {
|
|
|
2491
2491
|
$ymax
|
|
2492
2492
|
};
|
|
2493
2493
|
} else if (ds.y) {
|
|
2494
|
-
let y2 = psum$a(levels.y?.apply?.(ds.y) ?? ds.y, ynudge), ymin = psum$a(y2, ds.height?.map?.((y3) => -y3 / 2) ?? -0.5
|
|
2494
|
+
let y2 = psum$a(levels.y?.apply?.(ds.y) ?? ds.y, ynudge), ymin = psum$a(y2, ds.height?.map?.((y3) => -y3 / 2) ?? -0.5), ymax = psum$a(y2, ds.height?.map?.((y3) => +y3 / 2) ?? 0.5), lwisker = psum$a(ds.lwisker, xnudge), Q1 = psum$a(ds.Q1, xnudge), median = psum$a(ds.median, xnudge), Q3 = psum$a(ds.Q3, xnudge), uwisker = psum$a(ds.uwisker, xnudge), outliers = vecutils.apply(
|
|
2495
2495
|
($y, { x: xs, $raw }, nudge) => psum$a(xs, nudge).map(($x, i) => ({ x: $x, y: $y, $raw: $raw[i] })),
|
|
2496
2496
|
y2,
|
|
2497
2497
|
ds.outliers ?? [],
|
|
@@ -2527,13 +2527,10 @@ const boxplot$1 = {
|
|
|
2527
2527
|
const curve$1 = {
|
|
2528
2528
|
scale_attrs: ["fill", "color", "linewidth", "linetype", "alpha"],
|
|
2529
2529
|
coord_scale(ds, levels) {
|
|
2530
|
-
let xnudge = ds.xnudge?.map((v) => +v), ynudge = ds.ynudge?.map((v) => +v), points = ds.points.map((points2, i) => points2.map((p) => {
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
y: +(levels?.y?.[p.y] ?? p.y) + yn
|
|
2535
|
-
};
|
|
2536
|
-
}));
|
|
2530
|
+
let xnudge = ds.xnudge?.map((v) => +v), ynudge = ds.ynudge?.map((v) => +v), points = ds.points.map((points2, i) => points2.map((p) => ({
|
|
2531
|
+
x: +(levels?.x?.[p.x] ?? p.x) + (xnudge?.[i] ?? 0),
|
|
2532
|
+
y: +(levels?.y?.[p.y] ?? p.y) + (ynudge?.[i] ?? 0)
|
|
2533
|
+
})));
|
|
2537
2534
|
return { points };
|
|
2538
2535
|
},
|
|
2539
2536
|
get_range(ds, orientation) {
|
|
@@ -2635,13 +2632,10 @@ const point$3 = {
|
|
|
2635
2632
|
const polygon$1 = {
|
|
2636
2633
|
scale_attrs: ["fill", "color", "linewidth", "linetype", "alpha"],
|
|
2637
2634
|
coord_scale(ds, levels) {
|
|
2638
|
-
let xnudge = ds.xnudge?.map((v) => +v), ynudge = ds.ynudge?.map((v) => +v), points = ds.points.map((points2, i) => points2.map((p) => {
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
y: +(levels?.y?.[p.y] ?? p.y) + yn
|
|
2643
|
-
};
|
|
2644
|
-
}));
|
|
2635
|
+
let xnudge = ds.xnudge?.map((v) => +v), ynudge = ds.ynudge?.map((v) => +v), points = ds.points.map((points2, i) => points2.map((p) => ({
|
|
2636
|
+
x: +(levels?.x?.[p.x] ?? p.x) + (xnudge?.[i] ?? 0),
|
|
2637
|
+
y: +(levels?.y?.[p.y] ?? p.y) + (ynudge?.[i] ?? 0)
|
|
2638
|
+
})));
|
|
2645
2639
|
return { points };
|
|
2646
2640
|
},
|
|
2647
2641
|
get_range(ds, orientation) {
|
|
@@ -2669,6 +2663,28 @@ const rect$2 = {
|
|
|
2669
2663
|
return d;
|
|
2670
2664
|
}
|
|
2671
2665
|
};
|
|
2666
|
+
const shape$1 = {
|
|
2667
|
+
scale_attrs: ["fill", "color", "linewidth", "linetype", "alpha"],
|
|
2668
|
+
coord_scale(ds, levels) {
|
|
2669
|
+
let x2 = levels.x?.apply?.(ds.x) ?? ds.x, y2 = levels.y?.apply?.(ds.y) ?? ds.y, xnudge = ds.xnudge?.map((v) => +v), ynudge = ds.ynudge?.map((v) => +v), points = ds.points.map((points2, i) => points2.map((p) => ({
|
|
2670
|
+
x: +(levels?.x?.[p.x] ?? p.x) + (xnudge?.[i] ?? 0) + x2[i],
|
|
2671
|
+
y: +(levels?.y?.[p.y] ?? p.y) + (ynudge?.[i] ?? 0) + y2[i]
|
|
2672
|
+
})));
|
|
2673
|
+
return { points };
|
|
2674
|
+
},
|
|
2675
|
+
get_values(ds, orientation) {
|
|
2676
|
+
if (orientation == "x") return ds.x;
|
|
2677
|
+
if (orientation == "y") return ds.y;
|
|
2678
|
+
},
|
|
2679
|
+
get_range(ds, orientation) {
|
|
2680
|
+
if (orientation == "x") return (ds.points ?? []).flatMap((ps, i) => ps.map((p) => p.x + ds.x[i]));
|
|
2681
|
+
if (orientation == "y") return (ds.points ?? []).flatMap((ps, i) => ps.map((p) => p.y + ds.y[i]));
|
|
2682
|
+
},
|
|
2683
|
+
validate(d) {
|
|
2684
|
+
if (!Array.isArray(d.points)) return null;
|
|
2685
|
+
return d;
|
|
2686
|
+
}
|
|
2687
|
+
};
|
|
2672
2688
|
let psum$3 = vecutils.sum;
|
|
2673
2689
|
const stick$1 = {
|
|
2674
2690
|
scale_attrs: ["color", "linewidth", "linetype", "alpha"],
|
|
@@ -2759,20 +2775,22 @@ const vvgeom = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProper
|
|
|
2759
2775
|
point: point$3,
|
|
2760
2776
|
polygon: polygon$1,
|
|
2761
2777
|
rect: rect$2,
|
|
2778
|
+
shape: shape$1,
|
|
2762
2779
|
stick: stick$1,
|
|
2763
2780
|
text: text$3,
|
|
2764
2781
|
textsegment: textsegment$1,
|
|
2765
2782
|
tile: tile$1
|
|
2766
2783
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2767
|
-
const bar = Object.assign(function(data, { position = "stack", width =
|
|
2784
|
+
const bar = Object.assign(function(data, { position = "stack", width = 0.9, height = 0.9 }) {
|
|
2768
2785
|
if (data.x != null && data.y != null)
|
|
2769
2786
|
throw new Error(`"StatBar" only supports "x" or "y", not both`);
|
|
2770
|
-
let
|
|
2787
|
+
let cateAes = data.x ? "x" : "y";
|
|
2788
|
+
let values = data[cateAes];
|
|
2771
2789
|
if (values == null)
|
|
2772
2790
|
throw new Error(`Missing aesthetics for "StatBar": "x" or "y"`);
|
|
2773
2791
|
if (values.some((x2) => typeof x2 === "number"))
|
|
2774
2792
|
throw new Error(`"StatBar" requires a discrete aesthetic`);
|
|
2775
|
-
let keys = Object.keys(data).filter((k) => !
|
|
2793
|
+
let keys = Object.keys(data).filter((k) => !k.startsWith("$"));
|
|
2776
2794
|
let group = intraaction(Object.fromEntries(keys.map((k) => [k, data[k]])));
|
|
2777
2795
|
let inter = intraaction({ group: group ?? 0, value: values });
|
|
2778
2796
|
let groups = Map.groupBy(data.$raw, (_, i) => inter.categories[inter[i]]);
|
|
@@ -2784,42 +2802,54 @@ const bar = Object.assign(function(data, { position = "stack", width = 1, height
|
|
|
2784
2802
|
for (let key of keys) {
|
|
2785
2803
|
result[key] = cates.map((x2) => x2.group).map((i) => group.categories[i][key]);
|
|
2786
2804
|
}
|
|
2787
|
-
if (
|
|
2805
|
+
if (cateAes == "x") {
|
|
2788
2806
|
result.x = cates.map((v) => v.value);
|
|
2789
2807
|
result.height = $raw.map((v) => v.length);
|
|
2790
2808
|
} else {
|
|
2791
2809
|
result.y = cates.map((v) => v.value);
|
|
2792
2810
|
result.width = $raw.map((v) => v.length);
|
|
2793
2811
|
}
|
|
2794
|
-
if (position == "
|
|
2795
|
-
|
|
2812
|
+
if (position == "stack") {
|
|
2813
|
+
let cate_group = Object.groupBy(result.$group, (v, i) => group.categories[v][cateAes]);
|
|
2814
|
+
let offset = cates.map((_) => 0);
|
|
2815
|
+
for (let cate in cate_group) {
|
|
2816
|
+
let s = 0;
|
|
2817
|
+
for (let i of cate_group[cate]) {
|
|
2818
|
+
offset[i] = s;
|
|
2819
|
+
s += $raw[i].length;
|
|
2820
|
+
}
|
|
2821
|
+
}
|
|
2822
|
+
if (cateAes == "x") {
|
|
2823
|
+
result.y = result.height.map((v, i) => offset[i] + v / 2);
|
|
2824
|
+
result.width = cates.map((_) => width);
|
|
2825
|
+
} else {
|
|
2826
|
+
result.x = result.width.map((v, i) => offset[i] + v / 2);
|
|
2827
|
+
result.height = cates.map((_) => height);
|
|
2828
|
+
}
|
|
2829
|
+
} else if (position == "dodge") {
|
|
2830
|
+
let cate_group = Object.groupBy(result.$group, (v, i) => group.categories[v][cateAes]);
|
|
2831
|
+
let $group = result.$group.map((v) => cate_group[group.categories[v][cateAes]]);
|
|
2832
|
+
if (cateAes == "x") {
|
|
2796
2833
|
result.y = result.height.map((v) => v / 2);
|
|
2797
|
-
result.width =
|
|
2798
|
-
result.xnudge =
|
|
2834
|
+
result.width = $group.map((arr) => width / arr.length);
|
|
2835
|
+
result.xnudge = $group.map((arr, i) => (result.xnudge?.[i] ?? 0) + ((arr.indexOf(result.$group[i]) + 0.5) / arr.length - 0.5) * width);
|
|
2799
2836
|
} else {
|
|
2800
2837
|
result.x = result.width.map((v) => v / 2);
|
|
2801
|
-
result.height =
|
|
2802
|
-
result.ynudge =
|
|
2838
|
+
result.height = $group.map((arr) => height / arr.length);
|
|
2839
|
+
result.ynudge = $group.map((arr, i) => (result.ynudge?.[i] ?? 0) + ((arr.indexOf(result.$group[i]) + 0.5) / arr.length - 0.5) * height);
|
|
2803
2840
|
}
|
|
2804
2841
|
} else {
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
let indices = cates.map((cate, i) => [cate, i]).sort(([{ group: a }], [{ group: b }]) => a - b);
|
|
2808
|
-
for (let [cate, i] of indices) {
|
|
2809
|
-
offset[i] = tmp[cate.value];
|
|
2810
|
-
tmp[cate.value] += $raw[i].length;
|
|
2811
|
-
}
|
|
2812
|
-
if (data.x) {
|
|
2813
|
-
result.y = result.height.map((v, i) => offset[i] + v / 2);
|
|
2842
|
+
if (cateAes == "x") {
|
|
2843
|
+
result.y = result.height.map((v) => v / 2);
|
|
2814
2844
|
result.width = cates.map((_) => width);
|
|
2815
2845
|
} else {
|
|
2816
|
-
result.x = result.width.map((v
|
|
2846
|
+
result.x = result.width.map((v) => v / 2);
|
|
2817
2847
|
result.height = cates.map((_) => height);
|
|
2818
2848
|
}
|
|
2819
2849
|
}
|
|
2820
2850
|
return result;
|
|
2821
2851
|
}, { core_attrs: ["x", "y", "xnudge", "ynudge"] });
|
|
2822
|
-
const boxplot = Object.assign(function(data, {}) {
|
|
2852
|
+
const boxplot = Object.assign(function(data, { position = "dodge", width = 0.9, height = 0.9 }) {
|
|
2823
2853
|
let missingAes = ["x", "y"].filter((a) => data[a] == null);
|
|
2824
2854
|
if (missingAes.length > 0)
|
|
2825
2855
|
throw new Error(`Missing aesthetics for "StatBoxplot": "${missingAes.join('", "')}"`);
|
|
@@ -2854,11 +2884,28 @@ const boxplot = Object.assign(function(data, {}) {
|
|
|
2854
2884
|
max,
|
|
2855
2885
|
outliers
|
|
2856
2886
|
};
|
|
2887
|
+
if (position == "dodge") {
|
|
2888
|
+
let cate_group = Object.groupBy(result.$group, (v, i) => group.categories[v][cateAes]);
|
|
2889
|
+
let $group = result.$group.map((v) => cate_group[group.categories[v][cateAes]]);
|
|
2890
|
+
if (isXdiscrete) {
|
|
2891
|
+
result.width = $group.map((arr) => width / arr.length);
|
|
2892
|
+
result.xnudge = $group.map((arr, i) => (result.xnudge?.[i] ?? 0) + ((arr.indexOf(result.$group[i]) + 0.5) / arr.length - 0.5) * width);
|
|
2893
|
+
} else {
|
|
2894
|
+
result.height = $group.map((arr) => height / arr.length);
|
|
2895
|
+
result.ynudge = $group.map((arr, i) => (result.ynudge?.[i] ?? 0) + ((arr.indexOf(result.$group[i]) + 0.5) / arr.length - 0.5) * height);
|
|
2896
|
+
}
|
|
2897
|
+
} else {
|
|
2898
|
+
if (isXdiscrete) {
|
|
2899
|
+
result.width = cates.map((_) => width);
|
|
2900
|
+
} else {
|
|
2901
|
+
result.height = cates.map((_) => height);
|
|
2902
|
+
}
|
|
2903
|
+
}
|
|
2857
2904
|
for (let key of keys) {
|
|
2858
2905
|
result[key] = cates.map((x2) => x2.group).map((i) => group.categories[i][key]);
|
|
2859
2906
|
}
|
|
2860
2907
|
return result;
|
|
2861
|
-
}, { core_attrs: ["x", "y", "
|
|
2908
|
+
}, { core_attrs: ["x", "y", "xnudge", "ynudge"] });
|
|
2862
2909
|
const curve = Object.assign(function(data) {
|
|
2863
2910
|
if (data.points != null) return data;
|
|
2864
2911
|
let missingAes = ["x", "y"].filter((a) => data[a] == null);
|
|
@@ -2881,7 +2928,7 @@ const curve = Object.assign(function(data) {
|
|
|
2881
2928
|
}
|
|
2882
2929
|
return result;
|
|
2883
2930
|
}, { core_attrs: ["x", "y", "xnudge", "ynudge"] });
|
|
2884
|
-
const density = Object.assign(function(data, { n = 512, kernel = "gaussian" } = {}) {
|
|
2931
|
+
const density = Object.assign(function(data, { n = 512, kernel = "gaussian", scale = "area" } = {}) {
|
|
2885
2932
|
if (data.x != null && data.y != null)
|
|
2886
2933
|
throw new Error(`"StatDensity" only supports "x" or "y", not both`);
|
|
2887
2934
|
let values = data.x ?? data.y;
|
|
@@ -2889,9 +2936,9 @@ const density = Object.assign(function(data, { n = 512, kernel = "gaussian" } =
|
|
|
2889
2936
|
throw new Error(`Missing aesthetics for "StatDensity": "x" or "y"`);
|
|
2890
2937
|
if (values.some((x2) => typeof x2 !== "number"))
|
|
2891
2938
|
throw new Error(`"StatDensity" requires a continuous aesthetic`);
|
|
2892
|
-
kernel = density_kernels[kernel];
|
|
2939
|
+
kernel = density_kernels$1[kernel];
|
|
2893
2940
|
if (!kernel) {
|
|
2894
|
-
throw new Error(`kernel must be one of ${Object.keys(density_kernels).map((k) => `"${k}"`).join(", ")}`);
|
|
2941
|
+
throw new Error(`kernel must be one of ${Object.keys(density_kernels$1).map((k) => `"${k}"`).join(", ")}`);
|
|
2895
2942
|
}
|
|
2896
2943
|
let keys = Object.keys(data).filter((k) => !["x", "y"].includes(k) && !k.startsWith("$"));
|
|
2897
2944
|
let group = intraaction(Object.fromEntries(keys.map((k) => [k, data[k]])));
|
|
@@ -2906,13 +2953,14 @@ const density = Object.assign(function(data, { n = 512, kernel = "gaussian" } =
|
|
|
2906
2953
|
$group: cates.map((x2) => x2.group)
|
|
2907
2954
|
};
|
|
2908
2955
|
let density2 = vs.map((v) => {
|
|
2909
|
-
let bandwidth = bw.nrd0(v);
|
|
2956
|
+
let bandwidth = bw$1.nrd0(v);
|
|
2910
2957
|
let { min, max } = numutils.extent(v);
|
|
2911
2958
|
min -= 3 * bandwidth;
|
|
2912
2959
|
max += 3 * bandwidth;
|
|
2913
2960
|
let step = (max - min) / (n - 1);
|
|
2914
2961
|
let breaks = Array.from({ length: n }, (_, i) => min + i * step);
|
|
2915
|
-
|
|
2962
|
+
let ratio2 = scale === "count" ? v.length : 1;
|
|
2963
|
+
return breaks.map((t) => [t, numutils.mean(v.map((d) => kernel((t - d) / bandwidth))) / bandwidth * ratio2]);
|
|
2916
2964
|
});
|
|
2917
2965
|
for (let key of keys) {
|
|
2918
2966
|
result[key] = cates.map((x2) => group.categories[x2.group][key]);
|
|
@@ -2924,7 +2972,7 @@ const density = Object.assign(function(data, { n = 512, kernel = "gaussian" } =
|
|
|
2924
2972
|
}
|
|
2925
2973
|
return result;
|
|
2926
2974
|
}, { core_attrs: ["x", "y", "xnudge", "ynudge"] });
|
|
2927
|
-
const bw = {
|
|
2975
|
+
const bw$1 = {
|
|
2928
2976
|
nrd0: function(x2) {
|
|
2929
2977
|
x2 = x2.filter((v2) => (typeof v2 === "number" || v2 instanceof Date) && isFinite(v2));
|
|
2930
2978
|
let sd = numutils.sd(x2);
|
|
@@ -2940,7 +2988,7 @@ const bw = {
|
|
|
2940
2988
|
return 1.06 * v * x2.length ** -0.2;
|
|
2941
2989
|
}
|
|
2942
2990
|
};
|
|
2943
|
-
const density_kernels = {
|
|
2991
|
+
const density_kernels$1 = {
|
|
2944
2992
|
uniform: (x2) => Math.abs(x2) <= 1 ? 0.5 : 0,
|
|
2945
2993
|
triangular: (x2) => Math.abs(x2) <= 1 ? 1 - Math.abs(x2) : 0,
|
|
2946
2994
|
epanechnikov: (x2) => Math.abs(x2) <= 1 ? 0.75 * (1 - x2 ** 2) : 0,
|
|
@@ -3141,6 +3189,12 @@ const segment = Object.assign(function(data) {
|
|
|
3141
3189
|
throw new Error(`Missing aesthetics for "StatSegment": "${missingAes.join('", "')}"`);
|
|
3142
3190
|
return data;
|
|
3143
3191
|
}, { core_attrs: ["x", "y", "xend", "yend", "xnudge", "ynudge"] });
|
|
3192
|
+
const shape = Object.assign(function(data) {
|
|
3193
|
+
let missingAes = ["x", "y", "points"].filter((a) => data[a] == null);
|
|
3194
|
+
if (missingAes.length > 0)
|
|
3195
|
+
throw new Error(`Missing aesthetics for "StatShape": "${missingAes.join('", "')}"`);
|
|
3196
|
+
return data;
|
|
3197
|
+
}, { core_attrs: ["x", "y", "points", "xnudge", "ynudge"] });
|
|
3144
3198
|
const stick = Object.assign(function(data) {
|
|
3145
3199
|
if (data.dx == null) data.dx = Array(data.x.length).fill(0);
|
|
3146
3200
|
if (data.dy == null) data.dy = Array(data.y.length).fill(0);
|
|
@@ -3175,6 +3229,103 @@ const tile = Object.assign(function(data) {
|
|
|
3175
3229
|
throw new Error(`Missing aesthetics for "StatTile": "${missingAes.join('", "')}"`);
|
|
3176
3230
|
return data;
|
|
3177
3231
|
}, { core_attrs: ["x", "y", "width", "height", "xnudge", "ynudge"] });
|
|
3232
|
+
const violin = Object.assign(function(data, {
|
|
3233
|
+
n = 512,
|
|
3234
|
+
kernel = "gaussian",
|
|
3235
|
+
scale = "width",
|
|
3236
|
+
position = "dodge",
|
|
3237
|
+
width = 0.9,
|
|
3238
|
+
height = 0.9
|
|
3239
|
+
} = {}) {
|
|
3240
|
+
let missingAes = ["x", "y"].filter((a) => data[a] == null);
|
|
3241
|
+
if (missingAes.length > 0)
|
|
3242
|
+
throw new Error(`Missing aesthetics for "StatViolin": "${missingAes.join('", "')}"`);
|
|
3243
|
+
let isXdiscrete = data.x.some(is_categorical);
|
|
3244
|
+
let isYdiscrete = data.y.some(is_categorical);
|
|
3245
|
+
if (isXdiscrete && isYdiscrete)
|
|
3246
|
+
throw new Error(`Both "x" and "y" are discrete, "StatViolin" requires one continuous and one discrete aesthetic`);
|
|
3247
|
+
if (!isXdiscrete && !isYdiscrete)
|
|
3248
|
+
throw new Error(`Both "x" and "y" are continuous, "StatViolin" requires one continuous and one discrete aesthetic`);
|
|
3249
|
+
kernel = density_kernels[kernel];
|
|
3250
|
+
if (!kernel) {
|
|
3251
|
+
throw new Error(`kernel must be one of ${Object.keys(density_kernels).map((k) => `"${k}"`).join(", ")}`);
|
|
3252
|
+
}
|
|
3253
|
+
let [valueAes, cateAes, size] = isXdiscrete ? ["y", "x", width] : ["x", "y", height];
|
|
3254
|
+
let values = data[valueAes];
|
|
3255
|
+
let keys = Object.keys(data).filter((k) => k != valueAes && !k.startsWith("$"));
|
|
3256
|
+
let group = intraaction(Object.fromEntries(keys.map((k) => [k, data[k]])));
|
|
3257
|
+
let cut = intraaction({
|
|
3258
|
+
group: group ?? new Array(values.length).fill(0)
|
|
3259
|
+
}).map((v, _, a) => a.categories[v]);
|
|
3260
|
+
let map2 = Map.groupBy(data.$raw, (_, i) => cut[i]);
|
|
3261
|
+
let $raw = Array.from(map2.values()), cates = Array.from(map2.keys());
|
|
3262
|
+
let vs = Array.from(Map.groupBy(values, (_, i) => cut[i]).values());
|
|
3263
|
+
let result = {
|
|
3264
|
+
$raw,
|
|
3265
|
+
$group: cates.map((x2) => x2.group),
|
|
3266
|
+
[valueAes]: cates.map((v) => 0)
|
|
3267
|
+
};
|
|
3268
|
+
let density2 = vs.map((v) => {
|
|
3269
|
+
let bandwidth = bw.nrd0(v);
|
|
3270
|
+
let { min, max } = numutils.extent(v);
|
|
3271
|
+
min -= 3 * bandwidth;
|
|
3272
|
+
max += 3 * bandwidth;
|
|
3273
|
+
let step = (max - min) / (n - 1);
|
|
3274
|
+
let breaks = Array.from({ length: n }, (_, i) => min + i * step);
|
|
3275
|
+
let res = breaks.map((t) => numutils.mean(v.map((d) => kernel((t - d) / bandwidth))) / bandwidth);
|
|
3276
|
+
let ratio2 = scale == "area" ? 1 : 1 / numutils.max(res);
|
|
3277
|
+
return breaks.map((t, i) => [t, res[i] * ratio2 / 2]);
|
|
3278
|
+
});
|
|
3279
|
+
for (let key of keys) {
|
|
3280
|
+
result[key] = cates.map((x2) => group.categories[x2.group][key]);
|
|
3281
|
+
}
|
|
3282
|
+
if (position == "dodge") {
|
|
3283
|
+
let cate_group = Object.groupBy(result.$group, (v, i) => group.categories[v][cateAes]);
|
|
3284
|
+
let $group = result.$group.map((v) => cate_group[group.categories[v][cateAes]]);
|
|
3285
|
+
density2 = $group.map((arr, i) => density2[i].map(([x2, y2]) => [x2, y2 * size / arr.length]));
|
|
3286
|
+
if (isXdiscrete) {
|
|
3287
|
+
result.xnudge = $group.map((arr, i) => (result.xnudge?.[i] ?? 0) + ((arr.indexOf(result.$group[i]) + 0.5) / arr.length - 0.5) * width);
|
|
3288
|
+
} else {
|
|
3289
|
+
result.ynudge = $group.map((arr, i) => (result.ynudge?.[i] ?? 0) + ((arr.indexOf(result.$group[i]) + 0.5) / arr.length - 0.5) * height);
|
|
3290
|
+
}
|
|
3291
|
+
} else {
|
|
3292
|
+
density2 = density2.map((v) => v.map(([x2, y2]) => [x2, y2 * size]));
|
|
3293
|
+
}
|
|
3294
|
+
if (isXdiscrete) {
|
|
3295
|
+
result.points = density2.map((v) => v.map(([y2, x2]) => ({ x: x2, y: y2 })).concat(v.map(([y2, x2]) => ({ x: -x2, y: y2 })).reverse()));
|
|
3296
|
+
} else {
|
|
3297
|
+
result.points = density2.map((v) => v.map(([x2, y2]) => ({ x: x2, y: y2 })).concat(v.map(([x2, y2]) => ({ x: x2, y: -y2 })).reverse()));
|
|
3298
|
+
}
|
|
3299
|
+
return result;
|
|
3300
|
+
}, { core_attrs: ["x", "y", "xnudge", "ynudge"] });
|
|
3301
|
+
const bw = {
|
|
3302
|
+
nrd0: function(x2) {
|
|
3303
|
+
x2 = x2.filter((v2) => (typeof v2 === "number" || v2 instanceof Date) && isFinite(v2));
|
|
3304
|
+
let sd = numutils.sd(x2);
|
|
3305
|
+
let iqr = numutils.quantile(x2, 0.75) - numutils.quantile(x2, 0.25);
|
|
3306
|
+
let v = Math.min(sd, iqr / 1.34) || 1;
|
|
3307
|
+
return 0.9 * v * x2.length ** -0.2;
|
|
3308
|
+
},
|
|
3309
|
+
nrd: function(x2) {
|
|
3310
|
+
x2 = x2.filter((v2) => (typeof v2 === "number" || v2 instanceof Date) && isFinite(v2));
|
|
3311
|
+
let sd = numutils.sd(x2);
|
|
3312
|
+
let iqr = numutils.quantile(x2, 0.75) - numutils.quantile(x2, 0.25);
|
|
3313
|
+
let v = Math.min(sd, iqr / 1.34) || 1;
|
|
3314
|
+
return 1.06 * v * x2.length ** -0.2;
|
|
3315
|
+
}
|
|
3316
|
+
};
|
|
3317
|
+
const density_kernels = {
|
|
3318
|
+
uniform: (x2) => Math.abs(x2) <= 1 ? 0.5 : 0,
|
|
3319
|
+
triangular: (x2) => Math.abs(x2) <= 1 ? 1 - Math.abs(x2) : 0,
|
|
3320
|
+
epanechnikov: (x2) => Math.abs(x2) <= 1 ? 0.75 * (1 - x2 ** 2) : 0,
|
|
3321
|
+
biweight: (x2) => Math.abs(x2) <= 1 ? 15 / 16 * (1 - x2 ** 2) ** 2 : 0,
|
|
3322
|
+
triweight: (x2) => Math.abs(x2) <= 1 ? 35 / 32 * (1 - x2 ** 2) ** 3 : 0,
|
|
3323
|
+
tricube: (x2) => Math.abs(x2) <= 1 ? 70 / 81 * (1 - Math.abs(x2) ** 3) ** 3 : 0,
|
|
3324
|
+
gaussian: (x2) => Math.exp(-0.5 * x2 ** 2) / Math.sqrt(2 * Math.PI),
|
|
3325
|
+
cosine: (x2) => Math.abs(x2) <= 1 ? Math.PI / 4 * Math.cos(Math.PI / 2 * x2) : 0,
|
|
3326
|
+
logistic: (x2) => 1 / Math.cosh(x2) ** 2 / Math.PI,
|
|
3327
|
+
sigmoid: (x2) => 2 / (Math.exp(x2) + Math.exp(-x2)) ** 2 / Math.PI
|
|
3328
|
+
};
|
|
3178
3329
|
const vvstat = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3179
3330
|
__proto__: null,
|
|
3180
3331
|
bar,
|
|
@@ -3191,10 +3342,12 @@ const vvstat = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProper
|
|
|
3191
3342
|
polygon,
|
|
3192
3343
|
rect: rect$1,
|
|
3193
3344
|
segment,
|
|
3345
|
+
shape,
|
|
3194
3346
|
stick,
|
|
3195
3347
|
text: text$2,
|
|
3196
3348
|
textsegment,
|
|
3197
|
-
tile
|
|
3349
|
+
tile,
|
|
3350
|
+
violin
|
|
3198
3351
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3199
3352
|
function ascending$1(a, b) {
|
|
3200
3353
|
return a == null || b == null ? NaN : a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;
|
|
@@ -3296,7 +3449,7 @@ function tickStep(start2, stop, count) {
|
|
|
3296
3449
|
const reverse = stop < start2, inc = reverse ? tickIncrement(stop, start2, count) : tickIncrement(start2, stop, count);
|
|
3297
3450
|
return (reverse ? -1 : 1) * (inc < 0 ? 1 / -inc : inc);
|
|
3298
3451
|
}
|
|
3299
|
-
var noop = { value: () => {
|
|
3452
|
+
var noop$1 = { value: () => {
|
|
3300
3453
|
} };
|
|
3301
3454
|
function dispatch() {
|
|
3302
3455
|
for (var i = 0, n = arguments.length, _ = {}, t; i < n; ++i) {
|
|
@@ -3356,7 +3509,7 @@ function get$1(type, name) {
|
|
|
3356
3509
|
function set$1(type, name, callback) {
|
|
3357
3510
|
for (var i = 0, n = type.length; i < n; ++i) {
|
|
3358
3511
|
if (type[i].name === name) {
|
|
3359
|
-
type[i] = noop, type = type.slice(0, i).concat(type.slice(i + 1));
|
|
3512
|
+
type[i] = noop$1, type = type.slice(0, i).concat(type.slice(i + 1));
|
|
3360
3513
|
break;
|
|
3361
3514
|
}
|
|
3362
3515
|
}
|
|
@@ -5922,9 +6075,9 @@ function constant(x2) {
|
|
|
5922
6075
|
};
|
|
5923
6076
|
}
|
|
5924
6077
|
const epsilon$1 = 1e-12;
|
|
5925
|
-
function withPath(
|
|
6078
|
+
function withPath(shape2) {
|
|
5926
6079
|
let digits = 3;
|
|
5927
|
-
|
|
6080
|
+
shape2.digits = function(_) {
|
|
5928
6081
|
if (!arguments.length) return digits;
|
|
5929
6082
|
if (_ == null) {
|
|
5930
6083
|
digits = null;
|
|
@@ -5933,7 +6086,7 @@ function withPath(shape) {
|
|
|
5933
6086
|
if (!(d >= 0)) throw new RangeError(`invalid digits: ${_}`);
|
|
5934
6087
|
digits = d;
|
|
5935
6088
|
}
|
|
5936
|
-
return
|
|
6089
|
+
return shape2;
|
|
5937
6090
|
};
|
|
5938
6091
|
return () => new Path(digits);
|
|
5939
6092
|
}
|
|
@@ -6015,6 +6168,8 @@ function line(x$1, y$1) {
|
|
|
6015
6168
|
};
|
|
6016
6169
|
return line2;
|
|
6017
6170
|
}
|
|
6171
|
+
function noop() {
|
|
6172
|
+
}
|
|
6018
6173
|
function point$1(that, x2, y2) {
|
|
6019
6174
|
that._context.bezierCurveTo(
|
|
6020
6175
|
that._x1 + that._k * (that._x2 - that._x0),
|
|
@@ -6083,6 +6238,69 @@ const cardinal = (function custom(tension) {
|
|
|
6083
6238
|
};
|
|
6084
6239
|
return cardinal2;
|
|
6085
6240
|
})(0);
|
|
6241
|
+
function CardinalClosed(context, tension) {
|
|
6242
|
+
this._context = context;
|
|
6243
|
+
this._k = (1 - tension) / 6;
|
|
6244
|
+
}
|
|
6245
|
+
CardinalClosed.prototype = {
|
|
6246
|
+
areaStart: noop,
|
|
6247
|
+
areaEnd: noop,
|
|
6248
|
+
lineStart: function() {
|
|
6249
|
+
this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN;
|
|
6250
|
+
this._point = 0;
|
|
6251
|
+
},
|
|
6252
|
+
lineEnd: function() {
|
|
6253
|
+
switch (this._point) {
|
|
6254
|
+
case 1: {
|
|
6255
|
+
this._context.moveTo(this._x3, this._y3);
|
|
6256
|
+
this._context.closePath();
|
|
6257
|
+
break;
|
|
6258
|
+
}
|
|
6259
|
+
case 2: {
|
|
6260
|
+
this._context.lineTo(this._x3, this._y3);
|
|
6261
|
+
this._context.closePath();
|
|
6262
|
+
break;
|
|
6263
|
+
}
|
|
6264
|
+
case 3: {
|
|
6265
|
+
this.point(this._x3, this._y3);
|
|
6266
|
+
this.point(this._x4, this._y4);
|
|
6267
|
+
this.point(this._x5, this._y5);
|
|
6268
|
+
break;
|
|
6269
|
+
}
|
|
6270
|
+
}
|
|
6271
|
+
},
|
|
6272
|
+
point: function(x2, y2) {
|
|
6273
|
+
x2 = +x2, y2 = +y2;
|
|
6274
|
+
switch (this._point) {
|
|
6275
|
+
case 0:
|
|
6276
|
+
this._point = 1;
|
|
6277
|
+
this._x3 = x2, this._y3 = y2;
|
|
6278
|
+
break;
|
|
6279
|
+
case 1:
|
|
6280
|
+
this._point = 2;
|
|
6281
|
+
this._context.moveTo(this._x4 = x2, this._y4 = y2);
|
|
6282
|
+
break;
|
|
6283
|
+
case 2:
|
|
6284
|
+
this._point = 3;
|
|
6285
|
+
this._x5 = x2, this._y5 = y2;
|
|
6286
|
+
break;
|
|
6287
|
+
default:
|
|
6288
|
+
point$1(this, x2, y2);
|
|
6289
|
+
break;
|
|
6290
|
+
}
|
|
6291
|
+
this._x0 = this._x1, this._x1 = this._x2, this._x2 = x2;
|
|
6292
|
+
this._y0 = this._y1, this._y1 = this._y2, this._y2 = y2;
|
|
6293
|
+
}
|
|
6294
|
+
};
|
|
6295
|
+
const cardinalClosed = (function custom2(tension) {
|
|
6296
|
+
function cardinal2(context) {
|
|
6297
|
+
return new CardinalClosed(context, tension);
|
|
6298
|
+
}
|
|
6299
|
+
cardinal2.tension = function(tension2) {
|
|
6300
|
+
return custom2(+tension2);
|
|
6301
|
+
};
|
|
6302
|
+
return cardinal2;
|
|
6303
|
+
})(0);
|
|
6086
6304
|
function point(that, x2, y2) {
|
|
6087
6305
|
var x1 = that._x1, y1 = that._y1, x22 = that._x2, y22 = that._y2;
|
|
6088
6306
|
if (that._l01_a > epsilon$1) {
|
|
@@ -6151,15 +6369,105 @@ CatmullRom.prototype = {
|
|
|
6151
6369
|
this._y0 = this._y1, this._y1 = this._y2, this._y2 = y2;
|
|
6152
6370
|
}
|
|
6153
6371
|
};
|
|
6154
|
-
const catmullRom = (function
|
|
6372
|
+
const catmullRom = (function custom3(alpha2) {
|
|
6155
6373
|
function catmullRom2(context) {
|
|
6156
6374
|
return alpha2 ? new CatmullRom(context, alpha2) : new Cardinal(context, 0);
|
|
6157
6375
|
}
|
|
6158
6376
|
catmullRom2.alpha = function(alpha3) {
|
|
6159
|
-
return
|
|
6377
|
+
return custom3(+alpha3);
|
|
6378
|
+
};
|
|
6379
|
+
return catmullRom2;
|
|
6380
|
+
})(0.5);
|
|
6381
|
+
function CatmullRomClosed(context, alpha2) {
|
|
6382
|
+
this._context = context;
|
|
6383
|
+
this._alpha = alpha2;
|
|
6384
|
+
}
|
|
6385
|
+
CatmullRomClosed.prototype = {
|
|
6386
|
+
areaStart: noop,
|
|
6387
|
+
areaEnd: noop,
|
|
6388
|
+
lineStart: function() {
|
|
6389
|
+
this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN;
|
|
6390
|
+
this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0;
|
|
6391
|
+
},
|
|
6392
|
+
lineEnd: function() {
|
|
6393
|
+
switch (this._point) {
|
|
6394
|
+
case 1: {
|
|
6395
|
+
this._context.moveTo(this._x3, this._y3);
|
|
6396
|
+
this._context.closePath();
|
|
6397
|
+
break;
|
|
6398
|
+
}
|
|
6399
|
+
case 2: {
|
|
6400
|
+
this._context.lineTo(this._x3, this._y3);
|
|
6401
|
+
this._context.closePath();
|
|
6402
|
+
break;
|
|
6403
|
+
}
|
|
6404
|
+
case 3: {
|
|
6405
|
+
this.point(this._x3, this._y3);
|
|
6406
|
+
this.point(this._x4, this._y4);
|
|
6407
|
+
this.point(this._x5, this._y5);
|
|
6408
|
+
break;
|
|
6409
|
+
}
|
|
6410
|
+
}
|
|
6411
|
+
},
|
|
6412
|
+
point: function(x2, y2) {
|
|
6413
|
+
x2 = +x2, y2 = +y2;
|
|
6414
|
+
if (this._point) {
|
|
6415
|
+
var x23 = this._x2 - x2, y23 = this._y2 - y2;
|
|
6416
|
+
this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha));
|
|
6417
|
+
}
|
|
6418
|
+
switch (this._point) {
|
|
6419
|
+
case 0:
|
|
6420
|
+
this._point = 1;
|
|
6421
|
+
this._x3 = x2, this._y3 = y2;
|
|
6422
|
+
break;
|
|
6423
|
+
case 1:
|
|
6424
|
+
this._point = 2;
|
|
6425
|
+
this._context.moveTo(this._x4 = x2, this._y4 = y2);
|
|
6426
|
+
break;
|
|
6427
|
+
case 2:
|
|
6428
|
+
this._point = 3;
|
|
6429
|
+
this._x5 = x2, this._y5 = y2;
|
|
6430
|
+
break;
|
|
6431
|
+
default:
|
|
6432
|
+
point(this, x2, y2);
|
|
6433
|
+
break;
|
|
6434
|
+
}
|
|
6435
|
+
this._l01_a = this._l12_a, this._l12_a = this._l23_a;
|
|
6436
|
+
this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a;
|
|
6437
|
+
this._x0 = this._x1, this._x1 = this._x2, this._x2 = x2;
|
|
6438
|
+
this._y0 = this._y1, this._y1 = this._y2, this._y2 = y2;
|
|
6439
|
+
}
|
|
6440
|
+
};
|
|
6441
|
+
const catmullRomClosed = (function custom4(alpha2) {
|
|
6442
|
+
function catmullRom2(context) {
|
|
6443
|
+
return alpha2 ? new CatmullRomClosed(context, alpha2) : new CardinalClosed(context, 0);
|
|
6444
|
+
}
|
|
6445
|
+
catmullRom2.alpha = function(alpha3) {
|
|
6446
|
+
return custom4(+alpha3);
|
|
6160
6447
|
};
|
|
6161
6448
|
return catmullRom2;
|
|
6162
6449
|
})(0.5);
|
|
6450
|
+
function LinearClosed(context) {
|
|
6451
|
+
this._context = context;
|
|
6452
|
+
}
|
|
6453
|
+
LinearClosed.prototype = {
|
|
6454
|
+
areaStart: noop,
|
|
6455
|
+
areaEnd: noop,
|
|
6456
|
+
lineStart: function() {
|
|
6457
|
+
this._point = 0;
|
|
6458
|
+
},
|
|
6459
|
+
lineEnd: function() {
|
|
6460
|
+
if (this._point) this._context.closePath();
|
|
6461
|
+
},
|
|
6462
|
+
point: function(x2, y2) {
|
|
6463
|
+
x2 = +x2, y2 = +y2;
|
|
6464
|
+
if (this._point) this._context.lineTo(x2, y2);
|
|
6465
|
+
else this._point = 1, this._context.moveTo(x2, y2);
|
|
6466
|
+
}
|
|
6467
|
+
};
|
|
6468
|
+
function linearClosed(context) {
|
|
6469
|
+
return new LinearClosed(context);
|
|
6470
|
+
}
|
|
6163
6471
|
function Natural(context) {
|
|
6164
6472
|
this._context = context;
|
|
6165
6473
|
}
|
|
@@ -7230,7 +7538,7 @@ class GAxis {
|
|
|
7230
7538
|
}
|
|
7231
7539
|
const _hoisted_1$e = ["font-size"];
|
|
7232
7540
|
const _hoisted_2$8 = { key: 0 };
|
|
7233
|
-
const _sfc_main$
|
|
7541
|
+
const _sfc_main$17 = {
|
|
7234
7542
|
__name: "CoreText",
|
|
7235
7543
|
props: {
|
|
7236
7544
|
x: { type: Number, default: 0 },
|
|
@@ -14481,7 +14789,7 @@ XmlRenderer.prototype.tag = tag;
|
|
|
14481
14789
|
XmlRenderer.prototype.esc = escapeXml;
|
|
14482
14790
|
const _hoisted_1$d = ["text-anchor", "font-size"];
|
|
14483
14791
|
const _hoisted_2$7 = { key: 0 };
|
|
14484
|
-
const _sfc_main$
|
|
14792
|
+
const _sfc_main$16 = {
|
|
14485
14793
|
__name: "CoreMarkdown",
|
|
14486
14794
|
props: {
|
|
14487
14795
|
x: { type: Number, default: 0 },
|
|
@@ -14628,7 +14936,7 @@ const _sfc_main$14 = {
|
|
|
14628
14936
|
};
|
|
14629
14937
|
}
|
|
14630
14938
|
};
|
|
14631
|
-
const _sfc_main$
|
|
14939
|
+
const _sfc_main$15 = {
|
|
14632
14940
|
__name: "CoreAxisLabel",
|
|
14633
14941
|
props: {
|
|
14634
14942
|
type: String,
|
|
@@ -14690,7 +14998,7 @@ const _sfc_main$13 = {
|
|
|
14690
14998
|
}
|
|
14691
14999
|
};
|
|
14692
15000
|
return (_ctx, _cache) => {
|
|
14693
|
-
return __props.type == "markdown" ? (openBlock(), createBlock(_sfc_main$
|
|
15001
|
+
return __props.type == "markdown" ? (openBlock(), createBlock(_sfc_main$16, mergeProps({ key: 0 }, toHandlers(vOn)), null, 16)) : (openBlock(), createBlock(_sfc_main$17, mergeProps({ key: 1 }, toHandlers(vOn)), null, 16));
|
|
14694
15002
|
};
|
|
14695
15003
|
}
|
|
14696
15004
|
};
|
|
@@ -14707,7 +15015,7 @@ const _hoisted_5$2 = {
|
|
|
14707
15015
|
fill: "transparent"
|
|
14708
15016
|
};
|
|
14709
15017
|
const _hoisted_6$2 = ["x"];
|
|
14710
|
-
const _sfc_main$
|
|
15018
|
+
const _sfc_main$14 = {
|
|
14711
15019
|
__name: "CoreAxisH",
|
|
14712
15020
|
props: {
|
|
14713
15021
|
coord: String,
|
|
@@ -15073,7 +15381,7 @@ const _sfc_main$12 = {
|
|
|
15073
15381
|
_cache[2] || (_cache[2] = createTextVNode()),
|
|
15074
15382
|
(openBlock(true), createElementBlock(Fragment, null, renderList(tickTexts.value, (tick) => {
|
|
15075
15383
|
return openBlock(), createElementBlock("g", mergeProps({ ref_for: true }, tick.wrapper), [
|
|
15076
|
-
createVNode(_sfc_main$
|
|
15384
|
+
createVNode(_sfc_main$15, mergeProps({ ref_for: true }, tick.text, { getPosition }), null, 16)
|
|
15077
15385
|
], 16);
|
|
15078
15386
|
}), 256)),
|
|
15079
15387
|
_cache[3] || (_cache[3] = createTextVNode()),
|
|
@@ -15106,7 +15414,7 @@ const _sfc_main$12 = {
|
|
|
15106
15414
|
])) : createCommentVNode("", true),
|
|
15107
15415
|
_cache[5] || (_cache[5] = createTextVNode()),
|
|
15108
15416
|
axisTitle.value.text ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
15109
|
-
__props.theme.title_type == "markdown" ? (openBlock(), createBlock(_sfc_main$
|
|
15417
|
+
__props.theme.title_type == "markdown" ? (openBlock(), createBlock(_sfc_main$16, normalizeProps(mergeProps({ key: 0 }, axisTitle.value)), null, 16)) : (openBlock(), createBlock(_sfc_main$17, normalizeProps(mergeProps({ key: 1 }, axisTitle.value)), null, 16))
|
|
15110
15418
|
], 64)) : createCommentVNode("", true)
|
|
15111
15419
|
], 12, _hoisted_1$c);
|
|
15112
15420
|
};
|
|
@@ -15125,7 +15433,7 @@ const _hoisted_5$1 = {
|
|
|
15125
15433
|
fill: "transparent"
|
|
15126
15434
|
};
|
|
15127
15435
|
const _hoisted_6$1 = ["y"];
|
|
15128
|
-
const _sfc_main$
|
|
15436
|
+
const _sfc_main$13 = {
|
|
15129
15437
|
__name: "CoreAxisV",
|
|
15130
15438
|
props: {
|
|
15131
15439
|
coord: String,
|
|
@@ -15491,7 +15799,7 @@ const _sfc_main$11 = {
|
|
|
15491
15799
|
_cache[2] || (_cache[2] = createTextVNode()),
|
|
15492
15800
|
(openBlock(true), createElementBlock(Fragment, null, renderList(tickTexts.value, (tick) => {
|
|
15493
15801
|
return openBlock(), createElementBlock("g", mergeProps({ ref_for: true }, tick.wrapper), [
|
|
15494
|
-
createVNode(_sfc_main$
|
|
15802
|
+
createVNode(_sfc_main$15, mergeProps({ ref_for: true }, tick.text, { getPosition }), null, 16)
|
|
15495
15803
|
], 16);
|
|
15496
15804
|
}), 256)),
|
|
15497
15805
|
_cache[3] || (_cache[3] = createTextVNode()),
|
|
@@ -15524,13 +15832,13 @@ const _sfc_main$11 = {
|
|
|
15524
15832
|
])) : createCommentVNode("", true),
|
|
15525
15833
|
_cache[5] || (_cache[5] = createTextVNode()),
|
|
15526
15834
|
axisTitle.value.text ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
15527
|
-
__props.theme.title_type == "markdown" ? (openBlock(), createBlock(_sfc_main$
|
|
15835
|
+
__props.theme.title_type == "markdown" ? (openBlock(), createBlock(_sfc_main$16, normalizeProps(mergeProps({ key: 0 }, axisTitle.value)), null, 16)) : (openBlock(), createBlock(_sfc_main$17, normalizeProps(mergeProps({ key: 1 }, axisTitle.value)), null, 16))
|
|
15528
15836
|
], 64)) : createCommentVNode("", true)
|
|
15529
15837
|
], 12, _hoisted_1$b);
|
|
15530
15838
|
};
|
|
15531
15839
|
}
|
|
15532
15840
|
};
|
|
15533
|
-
const _sfc_main$
|
|
15841
|
+
const _sfc_main$12 = {
|
|
15534
15842
|
__name: "CoreAxis",
|
|
15535
15843
|
props: {
|
|
15536
15844
|
theme: { type: Object, default: () => ({}) },
|
|
@@ -15539,8 +15847,8 @@ const _sfc_main$10 = {
|
|
|
15539
15847
|
},
|
|
15540
15848
|
setup(__props) {
|
|
15541
15849
|
const axis = {
|
|
15542
|
-
h: _sfc_main$
|
|
15543
|
-
v: _sfc_main$
|
|
15850
|
+
h: _sfc_main$14,
|
|
15851
|
+
v: _sfc_main$13
|
|
15544
15852
|
};
|
|
15545
15853
|
return (_ctx, _cache) => {
|
|
15546
15854
|
return __props.position != "none" ? (openBlock(), createBlock(resolveDynamicComponent(axis[__props.orientation]), {
|
|
@@ -15551,7 +15859,7 @@ const _sfc_main$10 = {
|
|
|
15551
15859
|
};
|
|
15552
15860
|
}
|
|
15553
15861
|
};
|
|
15554
|
-
const _sfc_main
|
|
15862
|
+
const _sfc_main$11 = {
|
|
15555
15863
|
__name: "CoreGridH",
|
|
15556
15864
|
props: {
|
|
15557
15865
|
breaks: { type: Array, default: () => [] },
|
|
@@ -15623,7 +15931,7 @@ const _sfc_main$$ = {
|
|
|
15623
15931
|
};
|
|
15624
15932
|
}
|
|
15625
15933
|
};
|
|
15626
|
-
const _sfc_main$
|
|
15934
|
+
const _sfc_main$10 = {
|
|
15627
15935
|
__name: "CoreGridV",
|
|
15628
15936
|
props: {
|
|
15629
15937
|
breaks: { type: Array, default: () => [] },
|
|
@@ -15695,7 +16003,7 @@ const _sfc_main$_ = {
|
|
|
15695
16003
|
};
|
|
15696
16004
|
}
|
|
15697
16005
|
};
|
|
15698
|
-
const _sfc_main
|
|
16006
|
+
const _sfc_main$$ = {
|
|
15699
16007
|
__name: "CoreCanvasBoxplot",
|
|
15700
16008
|
props: {
|
|
15701
16009
|
extendX: { type: Number, default: 0 },
|
|
@@ -15756,7 +16064,6 @@ const _sfc_main$Z = {
|
|
|
15756
16064
|
"translate-y": translateY = 0,
|
|
15757
16065
|
$raw
|
|
15758
16066
|
} of group) {
|
|
15759
|
-
if (color2 === "transparent") continue;
|
|
15760
16067
|
const { hmin: rx1, hmax: rx2, vmin: ry1, vmax: ry2 } = __props.coord2pos(x2 == null ? { ymin, ymax, xmin: Q1, xmax: Q3 } : { xmin, xmax, ymin: Q1, ymax: Q3 });
|
|
15761
16068
|
const { h: lx1, v: ly1 } = __props.coord2pos(x2 == null ? { y: y2, x: lwisker } : { x: x2, y: lwisker });
|
|
15762
16069
|
const { h: lx2, v: ly2 } = __props.coord2pos(x2 == null ? { y: y2, x: uwisker } : { x: x2, y: uwisker });
|
|
@@ -15776,36 +16083,32 @@ const _sfc_main$Z = {
|
|
|
15776
16083
|
wiskerpath2d.lineTo(uwx2 + translateX, uwy2 + translateY);
|
|
15777
16084
|
wiskerpath2d.moveTo(lwx1 + translateX, lwy1 + translateY);
|
|
15778
16085
|
wiskerpath2d.lineTo(lwx2 + translateX, lwy2 + translateY);
|
|
15779
|
-
|
|
15780
|
-
|
|
16086
|
+
const rectpath2d = new Path2D();
|
|
16087
|
+
rectpath2d.rect(rx1 + translateX, ry1 + translateY, rx2 - rx1, ry2 - ry1);
|
|
16088
|
+
_path_data.set(rectpath2d, $raw);
|
|
16089
|
+
const medianpath2d = new Path2D();
|
|
16090
|
+
medianpath2d.moveTo(mx1 + translateX, my1 + translateY);
|
|
16091
|
+
medianpath2d.lineTo(mx2 + translateX, my2 + translateY);
|
|
16092
|
+
if (color2 != null && color2 !== "none") {
|
|
15781
16093
|
ctx.strokeStyle = color2;
|
|
16094
|
+
ctx.lineWidth = linewidth;
|
|
15782
16095
|
ctx.stroke(linepath2d);
|
|
15783
16096
|
ctx.stroke(wiskerpath2d);
|
|
15784
16097
|
}
|
|
15785
|
-
const rectpath2d = new Path2D();
|
|
15786
|
-
rectpath2d.rect(rx1 + translateX, ry1 + translateY, rx2 - rx1, ry2 - ry1);
|
|
15787
16098
|
if (fill !== "none") {
|
|
15788
16099
|
ctx.fillStyle = fill;
|
|
15789
16100
|
ctx.fill(rectpath2d);
|
|
15790
16101
|
}
|
|
15791
|
-
if (color2 != null) {
|
|
15792
|
-
ctx.strokeStyle = color2;
|
|
16102
|
+
if (color2 != null && color2 !== "none") {
|
|
15793
16103
|
ctx.stroke(rectpath2d);
|
|
15794
|
-
|
|
15795
|
-
_path_data.set(rectpath2d, $raw);
|
|
15796
|
-
const medianpath2d = new Path2D();
|
|
15797
|
-
medianpath2d.moveTo(mx1 + translateX, my1 + translateY);
|
|
15798
|
-
medianpath2d.lineTo(mx2 + translateX, my2 + translateY);
|
|
15799
|
-
ctx.lineWidth = linewidth * 2;
|
|
15800
|
-
if (color2 !== "none") {
|
|
15801
|
-
ctx.strokeStyle = color2;
|
|
16104
|
+
ctx.lineWidth = linewidth * 2;
|
|
15802
16105
|
ctx.stroke(medianpath2d);
|
|
15803
16106
|
}
|
|
15804
16107
|
for (let { x: x3, y: y3, $raw: $raw2 } of outliers) {
|
|
15805
16108
|
const { h: ox, v: oy } = __props.coord2pos({ x: x3, y: y3 });
|
|
15806
16109
|
const outlierpath2d = new Path2D();
|
|
15807
16110
|
outlierpath2d.arc(ox + translateX, oy + translateY, 2, 0, Math.PI * 2);
|
|
15808
|
-
if (
|
|
16111
|
+
if (color2 != null && color2 !== "none") {
|
|
15809
16112
|
ctx.fillStyle = color2;
|
|
15810
16113
|
ctx.fill(outlierpath2d);
|
|
15811
16114
|
}
|
|
@@ -15842,7 +16145,7 @@ const _sfc_main$Z = {
|
|
|
15842
16145
|
};
|
|
15843
16146
|
}
|
|
15844
16147
|
};
|
|
15845
|
-
const _sfc_main$
|
|
16148
|
+
const _sfc_main$_ = {
|
|
15846
16149
|
__name: "CoreCanvasCurve",
|
|
15847
16150
|
props: {
|
|
15848
16151
|
extendX: { type: Number, default: 0 },
|
|
@@ -15879,8 +16182,8 @@ const _sfc_main$Y = {
|
|
|
15879
16182
|
for (const group of __props.data) {
|
|
15880
16183
|
for (let {
|
|
15881
16184
|
points,
|
|
15882
|
-
fill
|
|
15883
|
-
color: color2
|
|
16185
|
+
fill,
|
|
16186
|
+
color: color2,
|
|
15884
16187
|
linewidth,
|
|
15885
16188
|
linetype,
|
|
15886
16189
|
alpha: alpha2,
|
|
@@ -15907,7 +16210,7 @@ const _sfc_main$Y = {
|
|
|
15907
16210
|
ctx.fillStyle = fill;
|
|
15908
16211
|
ctx.fill(path2d);
|
|
15909
16212
|
}
|
|
15910
|
-
if (color2 != null) {
|
|
16213
|
+
if (color2 != null && color2 !== "none") {
|
|
15911
16214
|
ctx.strokeStyle = color2;
|
|
15912
16215
|
ctx.stroke(path2d);
|
|
15913
16216
|
}
|
|
@@ -15939,8 +16242,11 @@ const _sfc_main$Y = {
|
|
|
15939
16242
|
});
|
|
15940
16243
|
const interpolators = {
|
|
15941
16244
|
cardinal,
|
|
16245
|
+
cardinalClosed,
|
|
15942
16246
|
catmullRom,
|
|
16247
|
+
catmullRomClosed,
|
|
15943
16248
|
linear: curveLinear,
|
|
16249
|
+
linearClosed,
|
|
15944
16250
|
natural: natural$1
|
|
15945
16251
|
};
|
|
15946
16252
|
return (_ctx, _cache) => {
|
|
@@ -15948,7 +16254,7 @@ const _sfc_main$Y = {
|
|
|
15948
16254
|
};
|
|
15949
16255
|
}
|
|
15950
16256
|
};
|
|
15951
|
-
const _sfc_main$
|
|
16257
|
+
const _sfc_main$Z = {
|
|
15952
16258
|
__name: "CoreCanvasEllipse",
|
|
15953
16259
|
props: {
|
|
15954
16260
|
extendX: { type: Number, default: 0 },
|
|
@@ -15989,8 +16295,8 @@ const _sfc_main$X = {
|
|
|
15989
16295
|
A,
|
|
15990
16296
|
B,
|
|
15991
16297
|
C,
|
|
15992
|
-
fill
|
|
15993
|
-
color: color2
|
|
16298
|
+
fill,
|
|
16299
|
+
color: color2,
|
|
15994
16300
|
linewidth,
|
|
15995
16301
|
linetype,
|
|
15996
16302
|
alpha: alpha2,
|
|
@@ -16018,7 +16324,7 @@ const _sfc_main$X = {
|
|
|
16018
16324
|
ctx.fillStyle = fill;
|
|
16019
16325
|
ctx.fill(path2d);
|
|
16020
16326
|
}
|
|
16021
|
-
if (color2 != null) {
|
|
16327
|
+
if (color2 != null && color2 !== "none") {
|
|
16022
16328
|
ctx.strokeStyle = color2;
|
|
16023
16329
|
ctx.stroke(path2d);
|
|
16024
16330
|
}
|
|
@@ -16053,7 +16359,7 @@ const _sfc_main$X = {
|
|
|
16053
16359
|
};
|
|
16054
16360
|
}
|
|
16055
16361
|
};
|
|
16056
|
-
const _sfc_main$
|
|
16362
|
+
const _sfc_main$Y = {
|
|
16057
16363
|
__name: "CoreCanvasLine",
|
|
16058
16364
|
props: {
|
|
16059
16365
|
extendX: { type: Number, default: 0 },
|
|
@@ -16093,7 +16399,7 @@ const _sfc_main$W = {
|
|
|
16093
16399
|
y: y2,
|
|
16094
16400
|
xend,
|
|
16095
16401
|
yend,
|
|
16096
|
-
color: color2,
|
|
16402
|
+
color: color2 = "black",
|
|
16097
16403
|
linewidth,
|
|
16098
16404
|
alpha: alpha2,
|
|
16099
16405
|
linetype,
|
|
@@ -16101,7 +16407,6 @@ const _sfc_main$W = {
|
|
|
16101
16407
|
"translate-y": translateY = 0,
|
|
16102
16408
|
$raw
|
|
16103
16409
|
} of group) {
|
|
16104
|
-
if (color2 === "transparent") continue;
|
|
16105
16410
|
const { h: x1, v: y1 } = __props.coord2pos({ x: x2, y: y2 });
|
|
16106
16411
|
const { h: x22, v: y22 } = __props.coord2pos({ x: xend, y: yend });
|
|
16107
16412
|
const path2d = new Path2D();
|
|
@@ -16111,7 +16416,7 @@ const _sfc_main$W = {
|
|
|
16111
16416
|
ctx.lineWidth = linewidth;
|
|
16112
16417
|
ctx.globalAlpha = alpha2;
|
|
16113
16418
|
ctx.setLineDash(parseLinetype(linetype));
|
|
16114
|
-
if (color2 !== "none") {
|
|
16419
|
+
if (color2 != null && color2 !== "none") {
|
|
16115
16420
|
ctx.strokeStyle = color2;
|
|
16116
16421
|
ctx.stroke(path2d);
|
|
16117
16422
|
}
|
|
@@ -16146,7 +16451,7 @@ const _sfc_main$W = {
|
|
|
16146
16451
|
};
|
|
16147
16452
|
}
|
|
16148
16453
|
};
|
|
16149
|
-
const _sfc_main$
|
|
16454
|
+
const _sfc_main$X = {
|
|
16150
16455
|
__name: "CoreCanvasPoint",
|
|
16151
16456
|
props: {
|
|
16152
16457
|
extendX: { type: Number, default: 0 },
|
|
@@ -16193,7 +16498,7 @@ const _sfc_main$V = {
|
|
|
16193
16498
|
x: x2,
|
|
16194
16499
|
y: y2,
|
|
16195
16500
|
size = 6,
|
|
16196
|
-
shape,
|
|
16501
|
+
shape: shape2,
|
|
16197
16502
|
color: color2,
|
|
16198
16503
|
stroke,
|
|
16199
16504
|
linewidth,
|
|
@@ -16211,14 +16516,14 @@ const _sfc_main$V = {
|
|
|
16211
16516
|
angle2 = Math.atan2(v - cy, h - cx) * 180 / Math.PI;
|
|
16212
16517
|
}
|
|
16213
16518
|
const path2d = new Path2D();
|
|
16214
|
-
if (String(
|
|
16519
|
+
if (String(shape2).startsWith("path:")) {
|
|
16215
16520
|
path2d.addPath(
|
|
16216
|
-
new Path2D(
|
|
16521
|
+
new Path2D(shape2.slice(5)),
|
|
16217
16522
|
new DOMMatrix().translateSelf(cx + translateX, cy + translateY).rotate(angle2)
|
|
16218
16523
|
);
|
|
16219
|
-
} else if (
|
|
16524
|
+
} else if (shape2 in paths) {
|
|
16220
16525
|
path2d.addPath(
|
|
16221
|
-
new Path2D(paths[
|
|
16526
|
+
new Path2D(paths[shape2](size)),
|
|
16222
16527
|
new DOMMatrix().translate(cx + translateX, cy + translateY).rotate(angle2)
|
|
16223
16528
|
);
|
|
16224
16529
|
} else {
|
|
@@ -16232,7 +16537,7 @@ const _sfc_main$V = {
|
|
|
16232
16537
|
ctx.fillStyle = color2;
|
|
16233
16538
|
ctx.fill(path2d);
|
|
16234
16539
|
}
|
|
16235
|
-
if (stroke != null) {
|
|
16540
|
+
if (stroke != null && stroke !== "none") {
|
|
16236
16541
|
ctx.strokeStyle = stroke;
|
|
16237
16542
|
ctx.setLineDash(parseLinetype(linetype));
|
|
16238
16543
|
ctx.stroke(path2d);
|
|
@@ -16268,7 +16573,7 @@ const _sfc_main$V = {
|
|
|
16268
16573
|
};
|
|
16269
16574
|
}
|
|
16270
16575
|
};
|
|
16271
|
-
const _sfc_main$
|
|
16576
|
+
const _sfc_main$W = {
|
|
16272
16577
|
__name: "CoreCanvasPolygon",
|
|
16273
16578
|
props: {
|
|
16274
16579
|
extendX: { type: Number, default: 0 },
|
|
@@ -16330,7 +16635,7 @@ const _sfc_main$U = {
|
|
|
16330
16635
|
ctx.fillStyle = fill;
|
|
16331
16636
|
ctx.fill(path2d);
|
|
16332
16637
|
}
|
|
16333
|
-
if (color2 != null) {
|
|
16638
|
+
if (color2 != null && color2 !== "none") {
|
|
16334
16639
|
ctx.strokeStyle = color2;
|
|
16335
16640
|
ctx.stroke(path2d);
|
|
16336
16641
|
}
|
|
@@ -16365,7 +16670,7 @@ const _sfc_main$U = {
|
|
|
16365
16670
|
};
|
|
16366
16671
|
}
|
|
16367
16672
|
};
|
|
16368
|
-
const _sfc_main$
|
|
16673
|
+
const _sfc_main$V = {
|
|
16369
16674
|
__name: "CoreCanvasRect",
|
|
16370
16675
|
props: {
|
|
16371
16676
|
extendX: { type: Number, default: 0 },
|
|
@@ -16425,7 +16730,7 @@ const _sfc_main$T = {
|
|
|
16425
16730
|
ctx.fillStyle = fill;
|
|
16426
16731
|
ctx.fill(path2d);
|
|
16427
16732
|
}
|
|
16428
|
-
if (color2 != null) {
|
|
16733
|
+
if (color2 !== "none" && color2 != null) {
|
|
16429
16734
|
ctx.strokeStyle = color2;
|
|
16430
16735
|
ctx.stroke(path2d);
|
|
16431
16736
|
}
|
|
@@ -16460,7 +16765,7 @@ const _sfc_main$T = {
|
|
|
16460
16765
|
};
|
|
16461
16766
|
}
|
|
16462
16767
|
};
|
|
16463
|
-
const _sfc_main$
|
|
16768
|
+
const _sfc_main$U = {
|
|
16464
16769
|
__name: "CoreCanvasText",
|
|
16465
16770
|
props: {
|
|
16466
16771
|
extendX: { type: Number, default: 0 },
|
|
@@ -16559,7 +16864,7 @@ const _sfc_main$S = {
|
|
|
16559
16864
|
ctx.fillStyle = color2;
|
|
16560
16865
|
ctx.fillText(label, 0, 0);
|
|
16561
16866
|
}
|
|
16562
|
-
if (stroke != null) {
|
|
16867
|
+
if (stroke != null && stroke !== "none") {
|
|
16563
16868
|
ctx.strokeStyle = stroke;
|
|
16564
16869
|
ctx.strokeText(label, 0, 0);
|
|
16565
16870
|
}
|
|
@@ -16595,7 +16900,7 @@ const _sfc_main$S = {
|
|
|
16595
16900
|
};
|
|
16596
16901
|
}
|
|
16597
16902
|
};
|
|
16598
|
-
const _sfc_main$
|
|
16903
|
+
const _sfc_main$T = {
|
|
16599
16904
|
__name: "CoreCanvasTextsegment",
|
|
16600
16905
|
props: {
|
|
16601
16906
|
extendX: { type: Number, default: 0 },
|
|
@@ -16696,7 +17001,7 @@ const _sfc_main$R = {
|
|
|
16696
17001
|
ctx.fillStyle = color2;
|
|
16697
17002
|
ctx.fillText(text2, 0, 0);
|
|
16698
17003
|
}
|
|
16699
|
-
if (stroke != null) {
|
|
17004
|
+
if (stroke != null && stroke !== "none") {
|
|
16700
17005
|
ctx.strokeStyle = stroke;
|
|
16701
17006
|
ctx.strokeText(text2, 0, 0);
|
|
16702
17007
|
}
|
|
@@ -16714,7 +17019,7 @@ const _sfc_main$R = {
|
|
|
16714
17019
|
ctx.fillStyle = color2;
|
|
16715
17020
|
ctx.fillText(text2, 0, 0);
|
|
16716
17021
|
}
|
|
16717
|
-
if (stroke != null) {
|
|
17022
|
+
if (stroke != null && stroke !== "none") {
|
|
16718
17023
|
ctx.strokeStyle = stroke;
|
|
16719
17024
|
ctx.strokeText(text2, 0, 0);
|
|
16720
17025
|
}
|
|
@@ -16769,19 +17074,20 @@ const _sfc_main$R = {
|
|
|
16769
17074
|
};
|
|
16770
17075
|
const canvas = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
16771
17076
|
__proto__: null,
|
|
16772
|
-
boxplot: _sfc_main
|
|
16773
|
-
curve: _sfc_main$
|
|
16774
|
-
ellipse: _sfc_main$
|
|
16775
|
-
line: _sfc_main$
|
|
16776
|
-
point: _sfc_main$
|
|
16777
|
-
polygon: _sfc_main$
|
|
16778
|
-
rect: _sfc_main$
|
|
16779
|
-
|
|
16780
|
-
|
|
16781
|
-
|
|
16782
|
-
|
|
17077
|
+
boxplot: _sfc_main$$,
|
|
17078
|
+
curve: _sfc_main$_,
|
|
17079
|
+
ellipse: _sfc_main$Z,
|
|
17080
|
+
line: _sfc_main$Y,
|
|
17081
|
+
point: _sfc_main$X,
|
|
17082
|
+
polygon: _sfc_main$W,
|
|
17083
|
+
rect: _sfc_main$V,
|
|
17084
|
+
shape: _sfc_main$_,
|
|
17085
|
+
stick: _sfc_main$Y,
|
|
17086
|
+
text: _sfc_main$U,
|
|
17087
|
+
textsegment: _sfc_main$T,
|
|
17088
|
+
tile: _sfc_main$V
|
|
16783
17089
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
16784
|
-
const _sfc_main$
|
|
17090
|
+
const _sfc_main$S = {
|
|
16785
17091
|
__name: "CoreSvgBlank",
|
|
16786
17092
|
props: {
|
|
16787
17093
|
extendX: { type: Number, default: 0 },
|
|
@@ -16801,7 +17107,7 @@ const _sfc_main$Q = {
|
|
|
16801
17107
|
}
|
|
16802
17108
|
};
|
|
16803
17109
|
const _hoisted_1$a = { key: 0 };
|
|
16804
|
-
const _sfc_main$
|
|
17110
|
+
const _sfc_main$R = {
|
|
16805
17111
|
__name: "CoreTile",
|
|
16806
17112
|
props: {
|
|
16807
17113
|
x: { type: Number, default: 0 },
|
|
@@ -16843,7 +17149,7 @@ const _sfc_main$P = {
|
|
|
16843
17149
|
};
|
|
16844
17150
|
const _hoisted_1$9 = { key: 0 };
|
|
16845
17151
|
const _hoisted_2$4 = { key: 0 };
|
|
16846
|
-
const _sfc_main$
|
|
17152
|
+
const _sfc_main$Q = {
|
|
16847
17153
|
__name: "CorePoint",
|
|
16848
17154
|
props: {
|
|
16849
17155
|
x: { type: Number, default: 0 },
|
|
@@ -16902,7 +17208,7 @@ const _sfc_main$O = {
|
|
|
16902
17208
|
}
|
|
16903
17209
|
};
|
|
16904
17210
|
const _hoisted_1$8 = { key: 0 };
|
|
16905
|
-
const _sfc_main$
|
|
17211
|
+
const _sfc_main$P = {
|
|
16906
17212
|
__name: "CoreLine",
|
|
16907
17213
|
props: {
|
|
16908
17214
|
x1: { type: Number, default: 0 },
|
|
@@ -16940,7 +17246,7 @@ const _sfc_main$N = {
|
|
|
16940
17246
|
};
|
|
16941
17247
|
}
|
|
16942
17248
|
};
|
|
16943
|
-
const _sfc_main$
|
|
17249
|
+
const _sfc_main$O = {
|
|
16944
17250
|
__name: "CoreSvgBoxplot",
|
|
16945
17251
|
props: {
|
|
16946
17252
|
extendX: { type: Number, default: 0 },
|
|
@@ -17103,18 +17409,18 @@ const _sfc_main$M = {
|
|
|
17103
17409
|
return openBlock(), createElementBlock("g", mergeProps({ ref_for: true }, { class: __props.groupClass, style: __props.groupStyle }), [
|
|
17104
17410
|
(openBlock(true), createElementBlock(Fragment, null, renderList(group, ([vbinds, von]) => {
|
|
17105
17411
|
return openBlock(), createElementBlock("g", null, [
|
|
17106
|
-
createVNode(_sfc_main$
|
|
17412
|
+
createVNode(_sfc_main$P, mergeProps({ ref_for: true }, vbinds.line), null, 16),
|
|
17107
17413
|
_cache[0] || (_cache[0] = createTextVNode()),
|
|
17108
|
-
createVNode(_sfc_main$
|
|
17414
|
+
createVNode(_sfc_main$R, mergeProps({ ref_for: true }, vbinds.rect, toHandlers(von)), null, 16),
|
|
17109
17415
|
_cache[1] || (_cache[1] = createTextVNode()),
|
|
17110
|
-
createVNode(_sfc_main$
|
|
17416
|
+
createVNode(_sfc_main$P, mergeProps({ ref_for: true }, vbinds.midline), null, 16),
|
|
17111
17417
|
_cache[2] || (_cache[2] = createTextVNode()),
|
|
17112
|
-
createVNode(_sfc_main$
|
|
17418
|
+
createVNode(_sfc_main$P, mergeProps({ ref_for: true }, vbinds.uwisker), null, 16),
|
|
17113
17419
|
_cache[3] || (_cache[3] = createTextVNode()),
|
|
17114
|
-
createVNode(_sfc_main$
|
|
17420
|
+
createVNode(_sfc_main$P, mergeProps({ ref_for: true }, vbinds.lwisker), null, 16),
|
|
17115
17421
|
_cache[4] || (_cache[4] = createTextVNode()),
|
|
17116
17422
|
(openBlock(true), createElementBlock(Fragment, null, renderList(vbinds.outliers, ([vbind, von2]) => {
|
|
17117
|
-
return openBlock(), createBlock(_sfc_main$
|
|
17423
|
+
return openBlock(), createBlock(_sfc_main$Q, mergeProps({ ref_for: true }, vbind, toHandlers(von2)), null, 16);
|
|
17118
17424
|
}), 256))
|
|
17119
17425
|
]);
|
|
17120
17426
|
}), 256))
|
|
@@ -17125,14 +17431,13 @@ const _sfc_main$M = {
|
|
|
17125
17431
|
}
|
|
17126
17432
|
};
|
|
17127
17433
|
const _hoisted_1$7 = { key: 0 };
|
|
17128
|
-
const _sfc_main$
|
|
17434
|
+
const _sfc_main$N = {
|
|
17129
17435
|
__name: "CoreCurve",
|
|
17130
17436
|
props: {
|
|
17131
17437
|
points: { type: Array, default: () => [] },
|
|
17132
17438
|
interpolate: { default: "natural" },
|
|
17133
|
-
fill:
|
|
17439
|
+
fill: String,
|
|
17134
17440
|
color: String,
|
|
17135
|
-
stroke: String,
|
|
17136
17441
|
linewidth: Number,
|
|
17137
17442
|
linetype: String,
|
|
17138
17443
|
alpha: { type: Number, default: 1 },
|
|
@@ -17157,8 +17462,11 @@ const _sfc_main$L = {
|
|
|
17157
17462
|
});
|
|
17158
17463
|
const interpolators = {
|
|
17159
17464
|
cardinal,
|
|
17465
|
+
cardinalClosed,
|
|
17160
17466
|
catmullRom,
|
|
17467
|
+
catmullRomClosed,
|
|
17161
17468
|
linear: curveLinear,
|
|
17469
|
+
linearClosed,
|
|
17162
17470
|
natural: natural$1
|
|
17163
17471
|
};
|
|
17164
17472
|
return (_ctx, _cache) => {
|
|
@@ -17168,7 +17476,7 @@ const _sfc_main$L = {
|
|
|
17168
17476
|
};
|
|
17169
17477
|
}
|
|
17170
17478
|
};
|
|
17171
|
-
const _sfc_main$
|
|
17479
|
+
const _sfc_main$M = {
|
|
17172
17480
|
__name: "CoreSvgCurve",
|
|
17173
17481
|
props: {
|
|
17174
17482
|
extendX: { type: Number, default: 0 },
|
|
@@ -17188,8 +17496,8 @@ const _sfc_main$K = {
|
|
|
17188
17496
|
let xlim_min = -__props.layout.fullWidth * __props.extendX - __props.layout.l, xlim_max = __props.layout.fullWidth * (1 + __props.extendX) - __props.layout.l, ylim_min = -__props.layout.fullHeight * __props.extendY - __props.layout.t, ylim_max = __props.layout.fullHeight * (1 + __props.extendY) - __props.layout.t;
|
|
17189
17497
|
return __props.data.map((group) => group.map(({
|
|
17190
17498
|
points,
|
|
17191
|
-
fill
|
|
17192
|
-
color: color2
|
|
17499
|
+
fill,
|
|
17500
|
+
color: color2,
|
|
17193
17501
|
linewidth,
|
|
17194
17502
|
linetype,
|
|
17195
17503
|
alpha: alpha2,
|
|
@@ -17232,7 +17540,7 @@ const _sfc_main$K = {
|
|
|
17232
17540
|
(openBlock(true), createElementBlock(Fragment, null, renderList(binds.value, (group) => {
|
|
17233
17541
|
return openBlock(), createElementBlock("g", mergeProps({ ref_for: true }, { class: __props.groupClass, style: __props.groupStyle }), [
|
|
17234
17542
|
(openBlock(true), createElementBlock(Fragment, null, renderList(group, ([vbind, von]) => {
|
|
17235
|
-
return openBlock(), createBlock(_sfc_main$
|
|
17543
|
+
return openBlock(), createBlock(_sfc_main$N, mergeProps({ ref_for: true }, vbind, toHandlers(von)), null, 16);
|
|
17236
17544
|
}), 256))
|
|
17237
17545
|
], 16);
|
|
17238
17546
|
}), 256))
|
|
@@ -17241,7 +17549,7 @@ const _sfc_main$K = {
|
|
|
17241
17549
|
}
|
|
17242
17550
|
};
|
|
17243
17551
|
const _hoisted_1$6 = { key: 0 };
|
|
17244
|
-
const _sfc_main$
|
|
17552
|
+
const _sfc_main$L = {
|
|
17245
17553
|
__name: "CoreEllipse",
|
|
17246
17554
|
props: {
|
|
17247
17555
|
cx: { type: Number, default: 0 },
|
|
@@ -17286,7 +17594,7 @@ const _sfc_main$J = {
|
|
|
17286
17594
|
};
|
|
17287
17595
|
}
|
|
17288
17596
|
};
|
|
17289
|
-
const _sfc_main$
|
|
17597
|
+
const _sfc_main$K = {
|
|
17290
17598
|
__name: "CoreSvgEllipse",
|
|
17291
17599
|
props: {
|
|
17292
17600
|
extendX: { type: Number, default: 0 },
|
|
@@ -17310,8 +17618,8 @@ const _sfc_main$I = {
|
|
|
17310
17618
|
A,
|
|
17311
17619
|
B,
|
|
17312
17620
|
C,
|
|
17313
|
-
fill
|
|
17314
|
-
color: color2
|
|
17621
|
+
fill,
|
|
17622
|
+
color: color2,
|
|
17315
17623
|
linewidth,
|
|
17316
17624
|
linetype,
|
|
17317
17625
|
alpha: alpha2,
|
|
@@ -17360,7 +17668,7 @@ const _sfc_main$I = {
|
|
|
17360
17668
|
(openBlock(true), createElementBlock(Fragment, null, renderList(binds.value, (group) => {
|
|
17361
17669
|
return openBlock(), createElementBlock("g", mergeProps({ ref_for: true }, { class: __props.groupClass, style: __props.groupStyle }), [
|
|
17362
17670
|
(openBlock(true), createElementBlock(Fragment, null, renderList(group, ([vbind, von]) => {
|
|
17363
|
-
return openBlock(), createBlock(_sfc_main$
|
|
17671
|
+
return openBlock(), createBlock(_sfc_main$L, mergeProps({ ref_for: true }, vbind, toHandlers(von)), null, 16);
|
|
17364
17672
|
}), 256))
|
|
17365
17673
|
], 16);
|
|
17366
17674
|
}), 256))
|
|
@@ -17368,7 +17676,7 @@ const _sfc_main$I = {
|
|
|
17368
17676
|
};
|
|
17369
17677
|
}
|
|
17370
17678
|
};
|
|
17371
|
-
const _sfc_main$
|
|
17679
|
+
const _sfc_main$J = {
|
|
17372
17680
|
__name: "CoreSvgLine",
|
|
17373
17681
|
props: {
|
|
17374
17682
|
extendX: { type: Number, default: 0 },
|
|
@@ -17435,7 +17743,7 @@ const _sfc_main$H = {
|
|
|
17435
17743
|
(openBlock(true), createElementBlock(Fragment, null, renderList(binds.value, (group) => {
|
|
17436
17744
|
return openBlock(), createElementBlock("g", mergeProps({ ref_for: true }, { class: __props.groupClass, style: __props.groupStyle }), [
|
|
17437
17745
|
(openBlock(true), createElementBlock(Fragment, null, renderList(group, ([vbind, von]) => {
|
|
17438
|
-
return openBlock(), createBlock(_sfc_main$
|
|
17746
|
+
return openBlock(), createBlock(_sfc_main$P, mergeProps({ ref_for: true }, vbind, toHandlers(von)), null, 16);
|
|
17439
17747
|
}), 256))
|
|
17440
17748
|
], 16);
|
|
17441
17749
|
}), 256))
|
|
@@ -17443,7 +17751,7 @@ const _sfc_main$H = {
|
|
|
17443
17751
|
};
|
|
17444
17752
|
}
|
|
17445
17753
|
};
|
|
17446
|
-
const _sfc_main$
|
|
17754
|
+
const _sfc_main$I = {
|
|
17447
17755
|
__name: "CoreSvgMarkdown",
|
|
17448
17756
|
props: {
|
|
17449
17757
|
extendX: { type: Number, default: 0 },
|
|
@@ -17534,7 +17842,7 @@ const _sfc_main$G = {
|
|
|
17534
17842
|
(openBlock(true), createElementBlock(Fragment, null, renderList(binds.value, (group) => {
|
|
17535
17843
|
return openBlock(), createElementBlock("g", mergeProps({ ref_for: true }, { class: __props.groupClass, style: __props.groupStyle }), [
|
|
17536
17844
|
(openBlock(true), createElementBlock(Fragment, null, renderList(group, ([vbind, von]) => {
|
|
17537
|
-
return openBlock(), createBlock(_sfc_main$
|
|
17845
|
+
return openBlock(), createBlock(_sfc_main$16, mergeProps({ ref_for: true }, vbind, toHandlers(von)), null, 16);
|
|
17538
17846
|
}), 256))
|
|
17539
17847
|
], 16);
|
|
17540
17848
|
}), 256))
|
|
@@ -17542,7 +17850,7 @@ const _sfc_main$G = {
|
|
|
17542
17850
|
};
|
|
17543
17851
|
}
|
|
17544
17852
|
};
|
|
17545
|
-
const _sfc_main$
|
|
17853
|
+
const _sfc_main$H = {
|
|
17546
17854
|
__name: "CoreSvgMarkdownsegment",
|
|
17547
17855
|
props: {
|
|
17548
17856
|
extendX: { type: Number, default: 0 },
|
|
@@ -17655,7 +17963,7 @@ const _sfc_main$F = {
|
|
|
17655
17963
|
(openBlock(true), createElementBlock(Fragment, null, renderList(binds.value, (group) => {
|
|
17656
17964
|
return openBlock(), createElementBlock("g", mergeProps({ ref_for: true }, { class: __props.groupClass, style: __props.groupStyle }), [
|
|
17657
17965
|
(openBlock(true), createElementBlock(Fragment, null, renderList(group, ([vbind, von]) => {
|
|
17658
|
-
return openBlock(), createBlock(_sfc_main$
|
|
17966
|
+
return openBlock(), createBlock(_sfc_main$16, mergeProps({ ref_for: true }, vbind, toHandlers(von)), null, 16);
|
|
17659
17967
|
}), 256))
|
|
17660
17968
|
], 16);
|
|
17661
17969
|
}), 256))
|
|
@@ -17663,7 +17971,7 @@ const _sfc_main$F = {
|
|
|
17663
17971
|
};
|
|
17664
17972
|
}
|
|
17665
17973
|
};
|
|
17666
|
-
const _sfc_main$
|
|
17974
|
+
const _sfc_main$G = {
|
|
17667
17975
|
__name: "CoreSvgPoint",
|
|
17668
17976
|
props: {
|
|
17669
17977
|
extendX: { type: Number, default: 0 },
|
|
@@ -17684,7 +17992,7 @@ const _sfc_main$E = {
|
|
|
17684
17992
|
return __props.data.map((group) => group.map(({
|
|
17685
17993
|
x: x2,
|
|
17686
17994
|
y: y2,
|
|
17687
|
-
shape,
|
|
17995
|
+
shape: shape2,
|
|
17688
17996
|
size = 6,
|
|
17689
17997
|
color: color2,
|
|
17690
17998
|
stroke,
|
|
@@ -17709,7 +18017,7 @@ const _sfc_main$E = {
|
|
|
17709
18017
|
let vbind = {
|
|
17710
18018
|
x: cx,
|
|
17711
18019
|
y: cy,
|
|
17712
|
-
shape,
|
|
18020
|
+
shape: shape2,
|
|
17713
18021
|
size,
|
|
17714
18022
|
color: color2,
|
|
17715
18023
|
stroke,
|
|
@@ -17734,7 +18042,7 @@ const _sfc_main$E = {
|
|
|
17734
18042
|
(openBlock(true), createElementBlock(Fragment, null, renderList(binds.value, (group) => {
|
|
17735
18043
|
return openBlock(), createElementBlock("g", mergeProps({ ref_for: true }, { class: __props.groupClass, style: __props.groupStyle }), [
|
|
17736
18044
|
(openBlock(true), createElementBlock(Fragment, null, renderList(group, ([vbind, von]) => {
|
|
17737
|
-
return openBlock(), createBlock(_sfc_main$
|
|
18045
|
+
return openBlock(), createBlock(_sfc_main$Q, mergeProps({ ref_for: true }, vbind, toHandlers(von)), null, 16);
|
|
17738
18046
|
}), 256))
|
|
17739
18047
|
], 16);
|
|
17740
18048
|
}), 256))
|
|
@@ -17743,7 +18051,7 @@ const _sfc_main$E = {
|
|
|
17743
18051
|
}
|
|
17744
18052
|
};
|
|
17745
18053
|
const _hoisted_1$5 = { key: 0 };
|
|
17746
|
-
const _sfc_main$
|
|
18054
|
+
const _sfc_main$F = {
|
|
17747
18055
|
__name: "CorePolygon",
|
|
17748
18056
|
props: {
|
|
17749
18057
|
points: { type: Array, default: () => [] },
|
|
@@ -17777,7 +18085,7 @@ const _sfc_main$D = {
|
|
|
17777
18085
|
};
|
|
17778
18086
|
}
|
|
17779
18087
|
};
|
|
17780
|
-
const _sfc_main$
|
|
18088
|
+
const _sfc_main$E = {
|
|
17781
18089
|
__name: "CoreSvgPolygon",
|
|
17782
18090
|
props: {
|
|
17783
18091
|
extendX: { type: Number, default: 0 },
|
|
@@ -17841,7 +18149,7 @@ const _sfc_main$C = {
|
|
|
17841
18149
|
(openBlock(true), createElementBlock(Fragment, null, renderList(binds.value, (group) => {
|
|
17842
18150
|
return openBlock(), createElementBlock("g", mergeProps({ ref_for: true }, { class: __props.groupClass, style: __props.groupStyle }), [
|
|
17843
18151
|
(openBlock(true), createElementBlock(Fragment, null, renderList(group, ([vbind, von]) => {
|
|
17844
|
-
return openBlock(), createBlock(_sfc_main$
|
|
18152
|
+
return openBlock(), createBlock(_sfc_main$F, mergeProps({ ref_for: true }, vbind, toHandlers(von)), null, 16);
|
|
17845
18153
|
}), 256))
|
|
17846
18154
|
], 16);
|
|
17847
18155
|
}), 256))
|
|
@@ -17849,7 +18157,7 @@ const _sfc_main$C = {
|
|
|
17849
18157
|
};
|
|
17850
18158
|
}
|
|
17851
18159
|
};
|
|
17852
|
-
const _sfc_main$
|
|
18160
|
+
const _sfc_main$D = {
|
|
17853
18161
|
__name: "CoreSvgRect",
|
|
17854
18162
|
props: {
|
|
17855
18163
|
extendX: { type: Number, default: 0 },
|
|
@@ -17872,7 +18180,7 @@ const _sfc_main$B = {
|
|
|
17872
18180
|
xmax,
|
|
17873
18181
|
ymin,
|
|
17874
18182
|
ymax,
|
|
17875
|
-
fill
|
|
18183
|
+
fill,
|
|
17876
18184
|
color: color2,
|
|
17877
18185
|
linewidth,
|
|
17878
18186
|
linetype,
|
|
@@ -17913,7 +18221,7 @@ const _sfc_main$B = {
|
|
|
17913
18221
|
(openBlock(true), createElementBlock(Fragment, null, renderList(binds.value, (group) => {
|
|
17914
18222
|
return openBlock(), createElementBlock("g", mergeProps({ ref_for: true }, { class: __props.groupClass, style: __props.groupStyle }), [
|
|
17915
18223
|
(openBlock(true), createElementBlock(Fragment, null, renderList(group, ([vbind, von]) => {
|
|
17916
|
-
return openBlock(), createBlock(_sfc_main$
|
|
18224
|
+
return openBlock(), createBlock(_sfc_main$R, mergeProps({ ref_for: true }, vbind, toHandlers(von)), null, 16);
|
|
17917
18225
|
}), 256))
|
|
17918
18226
|
], 16);
|
|
17919
18227
|
}), 256))
|
|
@@ -17921,7 +18229,7 @@ const _sfc_main$B = {
|
|
|
17921
18229
|
};
|
|
17922
18230
|
}
|
|
17923
18231
|
};
|
|
17924
|
-
const _sfc_main$
|
|
18232
|
+
const _sfc_main$C = {
|
|
17925
18233
|
__name: "CoreSvgText",
|
|
17926
18234
|
props: {
|
|
17927
18235
|
extendX: { type: Number, default: 0 },
|
|
@@ -18012,7 +18320,7 @@ const _sfc_main$A = {
|
|
|
18012
18320
|
(openBlock(true), createElementBlock(Fragment, null, renderList(binds.value, (group) => {
|
|
18013
18321
|
return openBlock(), createElementBlock("g", mergeProps({ ref_for: true }, { class: __props.groupClass, style: __props.groupStyle }), [
|
|
18014
18322
|
(openBlock(true), createElementBlock(Fragment, null, renderList(group, ([vbind, von]) => {
|
|
18015
|
-
return openBlock(), createBlock(_sfc_main$
|
|
18323
|
+
return openBlock(), createBlock(_sfc_main$17, mergeProps({ ref_for: true }, vbind, toHandlers(von)), null, 16);
|
|
18016
18324
|
}), 256))
|
|
18017
18325
|
], 16);
|
|
18018
18326
|
}), 256))
|
|
@@ -18020,7 +18328,7 @@ const _sfc_main$A = {
|
|
|
18020
18328
|
};
|
|
18021
18329
|
}
|
|
18022
18330
|
};
|
|
18023
|
-
const _sfc_main$
|
|
18331
|
+
const _sfc_main$B = {
|
|
18024
18332
|
__name: "CoreSvgTextsegment",
|
|
18025
18333
|
props: {
|
|
18026
18334
|
extendX: { type: Number, default: 0 },
|
|
@@ -18199,22 +18507,23 @@ const _sfc_main$z = {
|
|
|
18199
18507
|
};
|
|
18200
18508
|
const svg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
18201
18509
|
__proto__: null,
|
|
18202
|
-
blank: _sfc_main$
|
|
18203
|
-
boxplot: _sfc_main$
|
|
18204
|
-
curve: _sfc_main$
|
|
18205
|
-
ellipse: _sfc_main$
|
|
18206
|
-
line: _sfc_main$
|
|
18207
|
-
markdown: _sfc_main$
|
|
18208
|
-
markdownsegment: _sfc_main$
|
|
18209
|
-
point: _sfc_main$
|
|
18210
|
-
polygon: _sfc_main$
|
|
18211
|
-
rect: _sfc_main$
|
|
18212
|
-
|
|
18213
|
-
|
|
18214
|
-
|
|
18215
|
-
|
|
18510
|
+
blank: _sfc_main$S,
|
|
18511
|
+
boxplot: _sfc_main$O,
|
|
18512
|
+
curve: _sfc_main$M,
|
|
18513
|
+
ellipse: _sfc_main$K,
|
|
18514
|
+
line: _sfc_main$J,
|
|
18515
|
+
markdown: _sfc_main$I,
|
|
18516
|
+
markdownsegment: _sfc_main$H,
|
|
18517
|
+
point: _sfc_main$G,
|
|
18518
|
+
polygon: _sfc_main$E,
|
|
18519
|
+
rect: _sfc_main$D,
|
|
18520
|
+
shape: _sfc_main$M,
|
|
18521
|
+
stick: _sfc_main$J,
|
|
18522
|
+
text: _sfc_main$C,
|
|
18523
|
+
textsegment: _sfc_main$B,
|
|
18524
|
+
tile: _sfc_main$D
|
|
18216
18525
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
18217
|
-
const _sfc_main$
|
|
18526
|
+
const _sfc_main$A = {
|
|
18218
18527
|
__name: "CoreLayer",
|
|
18219
18528
|
props: {
|
|
18220
18529
|
data: Object,
|
|
@@ -18255,7 +18564,7 @@ const _sfc_main$y = {
|
|
|
18255
18564
|
};
|
|
18256
18565
|
const _hoisted_1$4 = { key: 0 };
|
|
18257
18566
|
const _hoisted_2$3 = ["onPointerdown"];
|
|
18258
|
-
const _sfc_main$
|
|
18567
|
+
const _sfc_main$z = {
|
|
18259
18568
|
__name: "CoreSelection",
|
|
18260
18569
|
props: /* @__PURE__ */ mergeModels({
|
|
18261
18570
|
coord2pos: Function,
|
|
@@ -18512,7 +18821,7 @@ const _sfc_main$x = {
|
|
|
18512
18821
|
const _hoisted_1$3 = ["height", "width"];
|
|
18513
18822
|
const _hoisted_2$2 = ["y1", "y2"];
|
|
18514
18823
|
const _hoisted_3$2 = ["y"];
|
|
18515
|
-
const _sfc_main$
|
|
18824
|
+
const _sfc_main$y = {
|
|
18516
18825
|
__name: "CoreGuideGradientbar",
|
|
18517
18826
|
props: {
|
|
18518
18827
|
scales: Array,
|
|
@@ -18552,7 +18861,7 @@ const _sfc_main$w = {
|
|
|
18552
18861
|
ref: "svg"
|
|
18553
18862
|
}, [
|
|
18554
18863
|
(openBlock(true), createElementBlock(Fragment, null, renderList(gradient_values.value, (v, i) => {
|
|
18555
|
-
return openBlock(), createBlock(_sfc_main$
|
|
18864
|
+
return openBlock(), createBlock(_sfc_main$R, mergeProps({
|
|
18556
18865
|
width: 10,
|
|
18557
18866
|
height: 3.1,
|
|
18558
18867
|
x: 10,
|
|
@@ -18584,12 +18893,12 @@ const _sfc_main$w = {
|
|
|
18584
18893
|
};
|
|
18585
18894
|
const element = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
18586
18895
|
__proto__: null,
|
|
18587
|
-
curve: _sfc_main$
|
|
18588
|
-
line: _sfc_main$
|
|
18589
|
-
point: _sfc_main$
|
|
18590
|
-
polygon: _sfc_main$
|
|
18591
|
-
text: _sfc_main$
|
|
18592
|
-
tile: _sfc_main$
|
|
18896
|
+
curve: _sfc_main$N,
|
|
18897
|
+
line: _sfc_main$P,
|
|
18898
|
+
point: _sfc_main$Q,
|
|
18899
|
+
polygon: _sfc_main$F,
|
|
18900
|
+
text: _sfc_main$17,
|
|
18901
|
+
tile: _sfc_main$R
|
|
18593
18902
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
18594
18903
|
const _hoisted_1$2 = ["height", "width"];
|
|
18595
18904
|
const _hoisted_2$1 = ["transform"];
|
|
@@ -18599,7 +18908,7 @@ const _hoisted_4$1 = {
|
|
|
18599
18908
|
y: "10",
|
|
18600
18909
|
"alignment-baseline": "central"
|
|
18601
18910
|
};
|
|
18602
|
-
const _sfc_main$
|
|
18911
|
+
const _sfc_main$x = {
|
|
18603
18912
|
__name: "CoreGuideLegendkey",
|
|
18604
18913
|
props: {
|
|
18605
18914
|
scales: Array,
|
|
@@ -18629,7 +18938,7 @@ const _sfc_main$v = {
|
|
|
18629
18938
|
const geoms = computed(() => {
|
|
18630
18939
|
let { text: text2, line: line2, point: point2, tile: tile2 } = __props.appearances;
|
|
18631
18940
|
let result = {};
|
|
18632
|
-
if (tile2 != null) result.tile = { width: 10, height: 10, fill: "
|
|
18941
|
+
if (tile2 != null) result.tile = { width: 10, height: 10, fill: "none", ...tile2 };
|
|
18633
18942
|
if (line2 != null) result.line = { x1: -5, x2: 5, color: "black", ...line2 };
|
|
18634
18943
|
if (point2 != null) result.point = { size: 6, ...point2 };
|
|
18635
18944
|
if (text2 != null) result.text = { size: 4, text: "a", ...text2 };
|
|
@@ -18666,7 +18975,7 @@ const _sfc_main$v = {
|
|
|
18666
18975
|
};
|
|
18667
18976
|
}
|
|
18668
18977
|
};
|
|
18669
|
-
const _sfc_main$
|
|
18978
|
+
const _sfc_main$w = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
18670
18979
|
__name: "CoreGuide",
|
|
18671
18980
|
props: {
|
|
18672
18981
|
scales: Array,
|
|
@@ -18674,8 +18983,8 @@ const _sfc_main$u = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
18674
18983
|
},
|
|
18675
18984
|
setup(__props) {
|
|
18676
18985
|
const guide = {
|
|
18677
|
-
legendkey: _sfc_main$
|
|
18678
|
-
gradientbar: _sfc_main$
|
|
18986
|
+
legendkey: _sfc_main$x,
|
|
18987
|
+
gradientbar: _sfc_main$y
|
|
18679
18988
|
};
|
|
18680
18989
|
const title = computed(() => {
|
|
18681
18990
|
return __props.scales.reduce((v, [s]) => v ?? s.title, null) ?? __props.scales.reduce((v, [s]) => v ?? s._title, null);
|
|
@@ -18719,7 +19028,7 @@ const _sfc_main$u = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
18719
19028
|
};
|
|
18720
19029
|
}
|
|
18721
19030
|
});
|
|
18722
|
-
const _sfc_main$
|
|
19031
|
+
const _sfc_main$v = {
|
|
18723
19032
|
__name: "CoreLegend",
|
|
18724
19033
|
props: {
|
|
18725
19034
|
theme: { type: Object, default: () => ({}) },
|
|
@@ -18753,7 +19062,7 @@ const _sfc_main$t = {
|
|
|
18753
19062
|
style: normalizeStyle({ gap: __props.theme.spacing + "px" })
|
|
18754
19063
|
}, [
|
|
18755
19064
|
(openBlock(true), createElementBlock(Fragment, null, renderList(guides.value, ([[key, type], scales]) => {
|
|
18756
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19065
|
+
return openBlock(), createBlock(_sfc_main$w, {
|
|
18757
19066
|
key,
|
|
18758
19067
|
type,
|
|
18759
19068
|
scales
|
|
@@ -18771,7 +19080,7 @@ const _hoisted_5 = ["transform", "clip-path"];
|
|
|
18771
19080
|
const _hoisted_6 = ["transform"];
|
|
18772
19081
|
const _hoisted_7 = ["clip-path"];
|
|
18773
19082
|
const _hoisted_8 = { key: 1 };
|
|
18774
|
-
const _sfc_main$
|
|
19083
|
+
const _sfc_main$u = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
18775
19084
|
__name: "CorePlot",
|
|
18776
19085
|
props: /* @__PURE__ */ mergeModels({
|
|
18777
19086
|
schema: Object,
|
|
@@ -19470,7 +19779,7 @@ const _sfc_main$s = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
19470
19779
|
transform: `translate(${unref(panel).left}, ${unref(panel).top})`,
|
|
19471
19780
|
style: { "pointer-events": "none" }
|
|
19472
19781
|
}, [
|
|
19473
|
-
createVNode(_sfc_main
|
|
19782
|
+
createVNode(_sfc_main$11, {
|
|
19474
19783
|
breaks: gridBreaks.value.h,
|
|
19475
19784
|
layout: unref(innerRect),
|
|
19476
19785
|
activeTransform: activeTransform.value,
|
|
@@ -19478,7 +19787,7 @@ const _sfc_main$s = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
19478
19787
|
transition: transition.value
|
|
19479
19788
|
}, null, 8, ["breaks", "layout", "activeTransform", "transition"]),
|
|
19480
19789
|
_cache[2] || (_cache[2] = createTextVNode()),
|
|
19481
|
-
createVNode(_sfc_main$
|
|
19790
|
+
createVNode(_sfc_main$10, {
|
|
19482
19791
|
breaks: gridBreaks.value.v,
|
|
19483
19792
|
layout: unref(innerRect),
|
|
19484
19793
|
activeTransform: activeTransform.value,
|
|
@@ -19495,7 +19804,7 @@ const _sfc_main$s = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
19495
19804
|
style: { transition: transition.value }
|
|
19496
19805
|
}), [
|
|
19497
19806
|
(openBlock(true), createElementBlock(Fragment, null, renderList(vplot.value.layers, (layer) => {
|
|
19498
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19807
|
+
return openBlock(), createBlock(_sfc_main$A, mergeProps({
|
|
19499
19808
|
ref_for: true,
|
|
19500
19809
|
ref_key: "layers",
|
|
19501
19810
|
ref: layers,
|
|
@@ -19512,7 +19821,7 @@ const _sfc_main$s = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
19512
19821
|
], 16),
|
|
19513
19822
|
_cache[3] || (_cache[3] = createTextVNode()),
|
|
19514
19823
|
(openBlock(true), createElementBlock(Fragment, null, renderList(props.selections, (sel) => {
|
|
19515
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19824
|
+
return openBlock(), createBlock(_sfc_main$z, mergeProps({
|
|
19516
19825
|
coord2pos,
|
|
19517
19826
|
pos2coord,
|
|
19518
19827
|
layout: unref(innerRect),
|
|
@@ -19523,7 +19832,7 @@ const _sfc_main$s = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
19523
19832
|
}, { ref_for: true }, sel, { flip: __props.flip }), null, 16, ["layout", "transition", "activeTransform", "flip"]);
|
|
19524
19833
|
}), 256)),
|
|
19525
19834
|
_cache[4] || (_cache[4] = createTextVNode()),
|
|
19526
|
-
createVNode(_sfc_main$
|
|
19835
|
+
createVNode(_sfc_main$z, {
|
|
19527
19836
|
coord2pos,
|
|
19528
19837
|
pos2coord,
|
|
19529
19838
|
layout: unref(innerRect),
|
|
@@ -19539,7 +19848,7 @@ const _sfc_main$s = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
19539
19848
|
transform: `translate(${unref(panel).left}, ${unref(panel).top})`
|
|
19540
19849
|
}, [
|
|
19541
19850
|
(openBlock(true), createElementBlock(Fragment, null, renderList(axes.value.filter((a) => typeof a.bind.position !== "number"), (axis) => {
|
|
19542
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19851
|
+
return openBlock(), createBlock(_sfc_main$12, mergeProps({ ref_for: true }, axis.bind, toHandlers(axis.on), {
|
|
19543
19852
|
transition: transition.value,
|
|
19544
19853
|
"onUpdate:transition": _cache[0] || (_cache[0] = ($event) => transition.value = $event),
|
|
19545
19854
|
activeTransform: activeTransform.value
|
|
@@ -19550,7 +19859,7 @@ const _sfc_main$s = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
19550
19859
|
"clip-path": props.clip ? `url(#${unref(vid)}-plot-clip)` : null
|
|
19551
19860
|
}, [
|
|
19552
19861
|
(openBlock(true), createElementBlock(Fragment, null, renderList(axes.value.filter((a) => typeof a.bind.position === "number"), (axis) => {
|
|
19553
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19862
|
+
return openBlock(), createBlock(_sfc_main$12, mergeProps({ ref_for: true }, axis.bind, toHandlers(axis.on), {
|
|
19554
19863
|
transition: transition.value,
|
|
19555
19864
|
"onUpdate:transition": _cache[1] || (_cache[1] = ($event) => transition.value = $event),
|
|
19556
19865
|
activeTransform: activeTransform.value
|
|
@@ -19566,7 +19875,7 @@ const _sfc_main$s = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
19566
19875
|
defer: "",
|
|
19567
19876
|
to: props.legendTeleport
|
|
19568
19877
|
}, [
|
|
19569
|
-
createVNode(_sfc_main$
|
|
19878
|
+
createVNode(_sfc_main$v, {
|
|
19570
19879
|
scales: vplot.value?.scales,
|
|
19571
19880
|
theme: __props.theme.legend
|
|
19572
19881
|
}, null, 8, ["scales", "theme"])
|
|
@@ -19576,14 +19885,14 @@ const _sfc_main$s = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
19576
19885
|
};
|
|
19577
19886
|
}
|
|
19578
19887
|
});
|
|
19579
|
-
const _sfc_main$
|
|
19888
|
+
const _sfc_main$t = {
|
|
19580
19889
|
$_type: "action",
|
|
19581
19890
|
$_props: {}
|
|
19582
19891
|
};
|
|
19583
|
-
const _sfc_main$
|
|
19892
|
+
const _sfc_main$s = {
|
|
19584
19893
|
$_type: "layer"
|
|
19585
19894
|
};
|
|
19586
|
-
const _sfc_main$
|
|
19895
|
+
const _sfc_main$r = {
|
|
19587
19896
|
$_props: {
|
|
19588
19897
|
geom: "tile",
|
|
19589
19898
|
stat: "bar"
|
|
@@ -19591,45 +19900,52 @@ const _sfc_main$p = {
|
|
|
19591
19900
|
$_type: "layer",
|
|
19592
19901
|
$_argnames: ["width", "height", "position"]
|
|
19593
19902
|
};
|
|
19594
|
-
const _sfc_main$
|
|
19903
|
+
const _sfc_main$q = {
|
|
19595
19904
|
$_props: {
|
|
19596
19905
|
geom: "blank",
|
|
19597
19906
|
stat: "identity"
|
|
19598
19907
|
},
|
|
19599
19908
|
$_type: "layer"
|
|
19600
19909
|
};
|
|
19601
|
-
const _sfc_main$
|
|
19910
|
+
const _sfc_main$p = {
|
|
19602
19911
|
$_props: {
|
|
19603
19912
|
geom: "boxplot",
|
|
19604
19913
|
stat: "boxplot"
|
|
19605
19914
|
},
|
|
19606
|
-
$_type: "layer"
|
|
19915
|
+
$_type: "layer",
|
|
19916
|
+
$_argnames: ["width", "height", "position"]
|
|
19607
19917
|
};
|
|
19608
|
-
const _sfc_main$
|
|
19918
|
+
const _sfc_main$o = {
|
|
19609
19919
|
$_props: {
|
|
19610
19920
|
geom: "curve",
|
|
19611
|
-
stat: "curve"
|
|
19921
|
+
stat: "curve",
|
|
19922
|
+
fill: "none",
|
|
19923
|
+
color: "black"
|
|
19612
19924
|
},
|
|
19613
19925
|
$_type: "layer",
|
|
19614
19926
|
$_attrnames: ["interpolate"]
|
|
19615
19927
|
};
|
|
19616
|
-
const _sfc_main$
|
|
19928
|
+
const _sfc_main$n = {
|
|
19617
19929
|
$_props: {
|
|
19618
19930
|
geom: "curve",
|
|
19619
|
-
stat: "density"
|
|
19931
|
+
stat: "density",
|
|
19932
|
+
fill: "none",
|
|
19933
|
+
color: "black"
|
|
19620
19934
|
},
|
|
19621
19935
|
$_type: "layer",
|
|
19622
|
-
$_argnames: ["n", "kernel"]
|
|
19936
|
+
$_argnames: ["n", "kernel", "scale"]
|
|
19623
19937
|
};
|
|
19624
|
-
const _sfc_main$
|
|
19938
|
+
const _sfc_main$m = {
|
|
19625
19939
|
$_props: {
|
|
19626
19940
|
geom: "ellipse",
|
|
19627
|
-
stat: "ellipse"
|
|
19941
|
+
stat: "ellipse",
|
|
19942
|
+
fill: "none",
|
|
19943
|
+
color: "black"
|
|
19628
19944
|
},
|
|
19629
19945
|
$_type: "layer",
|
|
19630
19946
|
$_argnames: ["CI"]
|
|
19631
19947
|
};
|
|
19632
|
-
const _sfc_main$
|
|
19948
|
+
const _sfc_main$l = {
|
|
19633
19949
|
$_props: {
|
|
19634
19950
|
geom: "rect",
|
|
19635
19951
|
stat: "histogram"
|
|
@@ -19637,7 +19953,7 @@ const _sfc_main$j = {
|
|
|
19637
19953
|
$_type: "layer",
|
|
19638
19954
|
$_argnames: ["bins", "binwidth", "breaks"]
|
|
19639
19955
|
};
|
|
19640
|
-
const _sfc_main$
|
|
19956
|
+
const _sfc_main$k = {
|
|
19641
19957
|
$_props: {
|
|
19642
19958
|
geom: "line",
|
|
19643
19959
|
stat: "line"
|
|
@@ -19645,113 +19961,132 @@ const _sfc_main$i = {
|
|
|
19645
19961
|
$_type: "layer",
|
|
19646
19962
|
$_argnames: ["orientation"]
|
|
19647
19963
|
};
|
|
19648
|
-
const _sfc_main$
|
|
19964
|
+
const _sfc_main$j = {
|
|
19649
19965
|
$_props: {
|
|
19650
19966
|
geom: "line",
|
|
19651
19967
|
stat: "linerange"
|
|
19652
19968
|
},
|
|
19653
19969
|
$_type: "layer"
|
|
19654
19970
|
};
|
|
19655
|
-
const _sfc_main$
|
|
19971
|
+
const _sfc_main$i = {
|
|
19656
19972
|
$_props: {
|
|
19657
19973
|
geom: "markdown",
|
|
19658
19974
|
stat: "text"
|
|
19659
19975
|
},
|
|
19660
19976
|
$_type: "layer"
|
|
19661
19977
|
};
|
|
19662
|
-
const _sfc_main$
|
|
19978
|
+
const _sfc_main$h = {
|
|
19663
19979
|
$_props: {
|
|
19664
19980
|
geom: "markdownsegment",
|
|
19665
19981
|
stat: "textsegment"
|
|
19666
19982
|
},
|
|
19667
19983
|
$_type: "layer"
|
|
19668
19984
|
};
|
|
19669
|
-
const _sfc_main$
|
|
19985
|
+
const _sfc_main$g = {
|
|
19670
19986
|
$_props: {
|
|
19671
19987
|
geom: "line",
|
|
19672
19988
|
stat: "path"
|
|
19673
19989
|
},
|
|
19674
19990
|
$_type: "layer"
|
|
19675
19991
|
};
|
|
19676
|
-
const _sfc_main$
|
|
19992
|
+
const _sfc_main$f = {
|
|
19677
19993
|
$_props: {
|
|
19678
19994
|
geom: "point",
|
|
19679
19995
|
stat: "point"
|
|
19680
19996
|
},
|
|
19681
19997
|
$_type: "layer"
|
|
19682
19998
|
};
|
|
19683
|
-
const _sfc_main$
|
|
19999
|
+
const _sfc_main$e = {
|
|
19684
20000
|
$_props: {
|
|
19685
20001
|
geom: "polygon",
|
|
19686
20002
|
stat: "polygon"
|
|
19687
20003
|
},
|
|
19688
20004
|
$_type: "layer"
|
|
19689
20005
|
};
|
|
19690
|
-
const _sfc_main$
|
|
20006
|
+
const _sfc_main$d = {
|
|
19691
20007
|
$_props: {
|
|
19692
20008
|
geom: "rect",
|
|
19693
20009
|
stat: "rect"
|
|
19694
20010
|
},
|
|
19695
20011
|
$_type: "layer"
|
|
19696
20012
|
};
|
|
19697
|
-
const _sfc_main$
|
|
20013
|
+
const _sfc_main$c = {
|
|
19698
20014
|
$_props: {
|
|
19699
20015
|
geom: "line",
|
|
19700
20016
|
stat: "segment"
|
|
19701
20017
|
},
|
|
19702
20018
|
$_type: "layer"
|
|
19703
20019
|
};
|
|
19704
|
-
const _sfc_main$
|
|
20020
|
+
const _sfc_main$b = {
|
|
20021
|
+
$_props: {
|
|
20022
|
+
geom: "shape",
|
|
20023
|
+
stat: "shape",
|
|
20024
|
+
interpolate: "catmullRomClosed"
|
|
20025
|
+
},
|
|
20026
|
+
$_type: "layer",
|
|
20027
|
+
$_attrnames: ["interpolate"]
|
|
20028
|
+
};
|
|
20029
|
+
const _sfc_main$a = {
|
|
19705
20030
|
$_props: {
|
|
19706
20031
|
geom: "stick",
|
|
19707
20032
|
stat: "stick"
|
|
19708
20033
|
},
|
|
19709
20034
|
$_type: "layer"
|
|
19710
20035
|
};
|
|
19711
|
-
const _sfc_main$
|
|
20036
|
+
const _sfc_main$9 = {
|
|
19712
20037
|
$_props: {
|
|
19713
20038
|
geom: "text",
|
|
19714
20039
|
stat: "text"
|
|
19715
20040
|
},
|
|
19716
20041
|
$_type: "layer"
|
|
19717
20042
|
};
|
|
19718
|
-
const _sfc_main$
|
|
20043
|
+
const _sfc_main$8 = {
|
|
19719
20044
|
$_props: {
|
|
19720
20045
|
geom: "textsegment",
|
|
19721
20046
|
stat: "textsegment"
|
|
19722
20047
|
},
|
|
19723
20048
|
$_type: "layer"
|
|
19724
20049
|
};
|
|
19725
|
-
const _sfc_main$
|
|
20050
|
+
const _sfc_main$7 = {
|
|
19726
20051
|
$_props: {
|
|
19727
20052
|
geom: "tile",
|
|
19728
20053
|
stat: "tile"
|
|
19729
20054
|
},
|
|
19730
20055
|
$_type: "layer"
|
|
19731
20056
|
};
|
|
20057
|
+
const _sfc_main$6 = {
|
|
20058
|
+
$_props: {
|
|
20059
|
+
geom: "shape",
|
|
20060
|
+
stat: "violin"
|
|
20061
|
+
},
|
|
20062
|
+
$_type: "layer",
|
|
20063
|
+
$_argnames: ["n", "kernel", "scale", "width", "height", "position"]
|
|
20064
|
+
};
|
|
19732
20065
|
const geom_components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
19733
20066
|
__proto__: null,
|
|
19734
|
-
VVGeom: _sfc_main$
|
|
19735
|
-
VVGeomBar: _sfc_main$
|
|
19736
|
-
VVGeomBlank: _sfc_main$
|
|
19737
|
-
VVGeomBoxplot: _sfc_main$
|
|
19738
|
-
VVGeomCurve: _sfc_main$
|
|
19739
|
-
VVGeomDensity: _sfc_main$
|
|
19740
|
-
VVGeomEllipse: _sfc_main$
|
|
19741
|
-
VVGeomHistogram: _sfc_main$
|
|
19742
|
-
VVGeomLine: _sfc_main$
|
|
19743
|
-
VVGeomLinerange: _sfc_main$
|
|
19744
|
-
VVGeomMarkdown: _sfc_main$
|
|
19745
|
-
VVGeomMarkdownsegment: _sfc_main$
|
|
19746
|
-
VVGeomPath: _sfc_main$
|
|
19747
|
-
VVGeomPoint: _sfc_main$
|
|
19748
|
-
VVGeomPolygon: _sfc_main$
|
|
19749
|
-
VVGeomRect: _sfc_main$
|
|
19750
|
-
VVGeomSegment: _sfc_main$
|
|
19751
|
-
|
|
19752
|
-
|
|
19753
|
-
|
|
19754
|
-
|
|
20067
|
+
VVGeom: _sfc_main$s,
|
|
20068
|
+
VVGeomBar: _sfc_main$r,
|
|
20069
|
+
VVGeomBlank: _sfc_main$q,
|
|
20070
|
+
VVGeomBoxplot: _sfc_main$p,
|
|
20071
|
+
VVGeomCurve: _sfc_main$o,
|
|
20072
|
+
VVGeomDensity: _sfc_main$n,
|
|
20073
|
+
VVGeomEllipse: _sfc_main$m,
|
|
20074
|
+
VVGeomHistogram: _sfc_main$l,
|
|
20075
|
+
VVGeomLine: _sfc_main$k,
|
|
20076
|
+
VVGeomLinerange: _sfc_main$j,
|
|
20077
|
+
VVGeomMarkdown: _sfc_main$i,
|
|
20078
|
+
VVGeomMarkdownsegment: _sfc_main$h,
|
|
20079
|
+
VVGeomPath: _sfc_main$g,
|
|
20080
|
+
VVGeomPoint: _sfc_main$f,
|
|
20081
|
+
VVGeomPolygon: _sfc_main$e,
|
|
20082
|
+
VVGeomRect: _sfc_main$d,
|
|
20083
|
+
VVGeomSegment: _sfc_main$c,
|
|
20084
|
+
VVGeomShape: _sfc_main$b,
|
|
20085
|
+
VVGeomStick: _sfc_main$a,
|
|
20086
|
+
VVGeomText: _sfc_main$9,
|
|
20087
|
+
VVGeomTextsegment: _sfc_main$8,
|
|
20088
|
+
VVGeomTile: _sfc_main$7,
|
|
20089
|
+
VVGeomViolin: _sfc_main$6
|
|
19755
20090
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
19756
20091
|
const _sfc_main$5 = {
|
|
19757
20092
|
$_type: "axis",
|
|
@@ -19821,8 +20156,8 @@ const _sfc_main$1 = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
19821
20156
|
const components = {
|
|
19822
20157
|
...geom_components,
|
|
19823
20158
|
...axis_components,
|
|
19824
|
-
VVAction: _sfc_main$
|
|
19825
|
-
VVSelection: _sfc_main$
|
|
20159
|
+
VVAction: _sfc_main$t,
|
|
20160
|
+
VVSelection: _sfc_main$t
|
|
19826
20161
|
};
|
|
19827
20162
|
const opponents = {
|
|
19828
20163
|
x: "y",
|
|
@@ -20339,7 +20674,7 @@ const _sfc_main$1 = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
20339
20674
|
class: "vvplot",
|
|
20340
20675
|
style: wrapperStyle.value
|
|
20341
20676
|
}, vBind.value.wrapper), [
|
|
20342
|
-
createVNode(_sfc_main$
|
|
20677
|
+
createVNode(_sfc_main$u, mergeProps({
|
|
20343
20678
|
ref: "plot",
|
|
20344
20679
|
paddings,
|
|
20345
20680
|
schema: schema.value,
|
|
@@ -20401,62 +20736,66 @@ const _sfc_main = {
|
|
|
20401
20736
|
};
|
|
20402
20737
|
const index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
20403
20738
|
__proto__: null,
|
|
20404
|
-
VVAction: _sfc_main$
|
|
20739
|
+
VVAction: _sfc_main$t,
|
|
20405
20740
|
VVAxis: _sfc_main$5,
|
|
20406
20741
|
VVAxisBreak: _sfc_main$2,
|
|
20407
20742
|
VVAxisX: _sfc_main$4,
|
|
20408
20743
|
VVAxisY: _sfc_main$3,
|
|
20409
|
-
VVGeom: _sfc_main$
|
|
20410
|
-
VVGeomBar: _sfc_main$
|
|
20411
|
-
VVGeomBlank: _sfc_main$
|
|
20412
|
-
VVGeomBoxplot: _sfc_main$
|
|
20413
|
-
VVGeomCurve: _sfc_main$
|
|
20414
|
-
VVGeomDensity: _sfc_main$
|
|
20415
|
-
VVGeomEllipse: _sfc_main$
|
|
20416
|
-
VVGeomHistogram: _sfc_main$
|
|
20417
|
-
VVGeomLine: _sfc_main$
|
|
20418
|
-
VVGeomLinerange: _sfc_main$
|
|
20419
|
-
VVGeomMarkdown: _sfc_main$
|
|
20420
|
-
VVGeomMarkdownsegment: _sfc_main$
|
|
20421
|
-
VVGeomPath: _sfc_main$
|
|
20422
|
-
VVGeomPoint: _sfc_main$
|
|
20423
|
-
VVGeomPolygon: _sfc_main$
|
|
20424
|
-
VVGeomRect: _sfc_main$
|
|
20425
|
-
VVGeomSegment: _sfc_main$
|
|
20426
|
-
|
|
20427
|
-
|
|
20428
|
-
|
|
20429
|
-
|
|
20744
|
+
VVGeom: _sfc_main$s,
|
|
20745
|
+
VVGeomBar: _sfc_main$r,
|
|
20746
|
+
VVGeomBlank: _sfc_main$q,
|
|
20747
|
+
VVGeomBoxplot: _sfc_main$p,
|
|
20748
|
+
VVGeomCurve: _sfc_main$o,
|
|
20749
|
+
VVGeomDensity: _sfc_main$n,
|
|
20750
|
+
VVGeomEllipse: _sfc_main$m,
|
|
20751
|
+
VVGeomHistogram: _sfc_main$l,
|
|
20752
|
+
VVGeomLine: _sfc_main$k,
|
|
20753
|
+
VVGeomLinerange: _sfc_main$j,
|
|
20754
|
+
VVGeomMarkdown: _sfc_main$i,
|
|
20755
|
+
VVGeomMarkdownsegment: _sfc_main$h,
|
|
20756
|
+
VVGeomPath: _sfc_main$g,
|
|
20757
|
+
VVGeomPoint: _sfc_main$f,
|
|
20758
|
+
VVGeomPolygon: _sfc_main$e,
|
|
20759
|
+
VVGeomRect: _sfc_main$d,
|
|
20760
|
+
VVGeomSegment: _sfc_main$c,
|
|
20761
|
+
VVGeomShape: _sfc_main$b,
|
|
20762
|
+
VVGeomStick: _sfc_main$a,
|
|
20763
|
+
VVGeomText: _sfc_main$9,
|
|
20764
|
+
VVGeomTextsegment: _sfc_main$8,
|
|
20765
|
+
VVGeomTile: _sfc_main$7,
|
|
20766
|
+
VVGeomViolin: _sfc_main$6,
|
|
20430
20767
|
VVPlot: _sfc_main$1,
|
|
20431
20768
|
VVSelection: _sfc_main
|
|
20432
20769
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
20433
20770
|
export {
|
|
20434
|
-
_sfc_main$
|
|
20771
|
+
_sfc_main$t as VVAction,
|
|
20435
20772
|
_sfc_main$5 as VVAxis,
|
|
20436
20773
|
_sfc_main$2 as VVAxisBreak,
|
|
20437
20774
|
_sfc_main$4 as VVAxisX,
|
|
20438
20775
|
_sfc_main$3 as VVAxisY,
|
|
20439
|
-
_sfc_main$
|
|
20440
|
-
_sfc_main$
|
|
20441
|
-
_sfc_main$
|
|
20442
|
-
_sfc_main$
|
|
20443
|
-
_sfc_main$
|
|
20444
|
-
_sfc_main$
|
|
20445
|
-
_sfc_main$
|
|
20446
|
-
_sfc_main$
|
|
20447
|
-
_sfc_main$
|
|
20448
|
-
_sfc_main$
|
|
20449
|
-
_sfc_main$
|
|
20450
|
-
_sfc_main$
|
|
20451
|
-
_sfc_main$
|
|
20452
|
-
_sfc_main$
|
|
20453
|
-
_sfc_main$
|
|
20454
|
-
_sfc_main$
|
|
20455
|
-
_sfc_main$
|
|
20456
|
-
_sfc_main$
|
|
20457
|
-
_sfc_main$
|
|
20458
|
-
_sfc_main$
|
|
20459
|
-
_sfc_main$
|
|
20776
|
+
_sfc_main$s as VVGeom,
|
|
20777
|
+
_sfc_main$r as VVGeomBar,
|
|
20778
|
+
_sfc_main$q as VVGeomBlank,
|
|
20779
|
+
_sfc_main$p as VVGeomBoxplot,
|
|
20780
|
+
_sfc_main$o as VVGeomCurve,
|
|
20781
|
+
_sfc_main$n as VVGeomDensity,
|
|
20782
|
+
_sfc_main$m as VVGeomEllipse,
|
|
20783
|
+
_sfc_main$l as VVGeomHistogram,
|
|
20784
|
+
_sfc_main$k as VVGeomLine,
|
|
20785
|
+
_sfc_main$j as VVGeomLinerange,
|
|
20786
|
+
_sfc_main$i as VVGeomMarkdown,
|
|
20787
|
+
_sfc_main$h as VVGeomMarkdownsegment,
|
|
20788
|
+
_sfc_main$g as VVGeomPath,
|
|
20789
|
+
_sfc_main$f as VVGeomPoint,
|
|
20790
|
+
_sfc_main$e as VVGeomPolygon,
|
|
20791
|
+
_sfc_main$d as VVGeomRect,
|
|
20792
|
+
_sfc_main$c as VVGeomSegment,
|
|
20793
|
+
_sfc_main$b as VVGeomShape,
|
|
20794
|
+
_sfc_main$a as VVGeomStick,
|
|
20795
|
+
_sfc_main$9 as VVGeomText,
|
|
20796
|
+
_sfc_main$8 as VVGeomTextsegment,
|
|
20797
|
+
_sfc_main$7 as VVGeomTile,
|
|
20798
|
+
_sfc_main$6 as VVGeomViolin,
|
|
20460
20799
|
_sfc_main$1 as VVPlot,
|
|
20461
20800
|
_sfc_main as VVSelection,
|
|
20462
20801
|
index as components,
|