vvplot 0.5.2 → 0.5.3
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 +406 -283
- package/dist/vvplot.esm.min.js +18 -18
- package/dist/vvplot.global.js +406 -283
- package/dist/vvplot.global.min.js +18 -18
- package/package.json +2 -1
package/dist/vvplot.esm.js
CHANGED
|
@@ -1957,6 +1957,16 @@ const numutils = {
|
|
|
1957
1957
|
if (infinity_rm) arr = arr.filter((x2) => isFinite(x2));
|
|
1958
1958
|
return Array.from(arr).reduce((a, b) => a > b ? a : b, -Infinity);
|
|
1959
1959
|
},
|
|
1960
|
+
sum(arr, { na_rm = true, infinity_rm = true } = {}) {
|
|
1961
|
+
if (na_rm) arr = arr.filter(is_continuous);
|
|
1962
|
+
if (infinity_rm) arr = arr.filter((x2) => isFinite(x2));
|
|
1963
|
+
return Array.from(arr).reduce((a, b) => a + b, 0);
|
|
1964
|
+
},
|
|
1965
|
+
diff(arr, { na_rm = true, infinity_rm = true } = {}) {
|
|
1966
|
+
if (na_rm) arr = arr.filter(is_continuous);
|
|
1967
|
+
if (infinity_rm) arr = arr.filter((x2) => isFinite(x2));
|
|
1968
|
+
return Array.from(arr).slice(1).map((v, i) => v - arr[i]);
|
|
1969
|
+
},
|
|
1960
1970
|
mean(arr, { na_rm = true, infinity_rm = true } = {}) {
|
|
1961
1971
|
if (na_rm) arr = arr.filter(is_continuous);
|
|
1962
1972
|
if (infinity_rm) arr = arr.filter((x2) => isFinite(x2));
|
|
@@ -1988,6 +1998,14 @@ const numutils = {
|
|
|
1988
1998
|
}
|
|
1989
1999
|
};
|
|
1990
2000
|
const vecutils = {
|
|
2001
|
+
coalesce(value, defaultValue) {
|
|
2002
|
+
if (Array.isArray(defaultValue)) {
|
|
2003
|
+
if (!Array.isArray(value) || value.length != defaultValue.length) throw new Error("Value and defaultValue must be arrays of the same length");
|
|
2004
|
+
return value.map((v, i) => v == null ? defaultValue[i] : v);
|
|
2005
|
+
}
|
|
2006
|
+
if (Array.isArray(value)) return value.map((v) => v ?? defaultValue);
|
|
2007
|
+
return value ?? defaultValue;
|
|
2008
|
+
},
|
|
1991
2009
|
/* vectorized summation of numbers */
|
|
1992
2010
|
sum(...values) {
|
|
1993
2011
|
if (values.some((x2) => x2 == null)) return null;
|
|
@@ -1997,12 +2015,10 @@ const vecutils = {
|
|
|
1997
2015
|
values = values.filter((x2) => Array.isArray(x2));
|
|
1998
2016
|
if (values.length == 0)
|
|
1999
2017
|
return [nums];
|
|
2000
|
-
if (values.some((v) => v.length == 0))
|
|
2001
|
-
return [];
|
|
2002
2018
|
let length = values[0].length;
|
|
2003
2019
|
if (values.some((v) => v.length != length))
|
|
2004
2020
|
throw new Error("Arrays must have the same length");
|
|
2005
|
-
return Array.from({ length }, (_, i) => values.reduce((s, a) => +(a[i] ?? 0) + s, nums));
|
|
2021
|
+
return Array.from({ length }, (_, i) => values.reduce((s, a) => +(a[i] ?? void 0) + s, nums));
|
|
2006
2022
|
},
|
|
2007
2023
|
/* vectorized opposite of numbers */
|
|
2008
2024
|
opposite(value) {
|
|
@@ -2256,7 +2272,7 @@ const theme_base = {
|
|
|
2256
2272
|
},
|
|
2257
2273
|
axis_v: {
|
|
2258
2274
|
title_offset: 30,
|
|
2259
|
-
title_angle: 90
|
|
2275
|
+
title_angle: -90
|
|
2260
2276
|
},
|
|
2261
2277
|
axis_left: {
|
|
2262
2278
|
tick_position: "left",
|
|
@@ -2342,7 +2358,8 @@ const theme_classic = {
|
|
|
2342
2358
|
line_color: "black",
|
|
2343
2359
|
tick_color: "black",
|
|
2344
2360
|
label_color: "black",
|
|
2345
|
-
title_color: "black"
|
|
2361
|
+
title_color: "black",
|
|
2362
|
+
grid_color: null
|
|
2346
2363
|
}
|
|
2347
2364
|
};
|
|
2348
2365
|
const theme_void = {
|
|
@@ -2463,11 +2480,11 @@ const blank$1 = {
|
|
|
2463
2480
|
return null;
|
|
2464
2481
|
}
|
|
2465
2482
|
};
|
|
2466
|
-
let psum$a = vecutils
|
|
2483
|
+
let { sum: psum$a, coalesce: coalesce$a } = vecutils;
|
|
2467
2484
|
const boxplot$1 = {
|
|
2468
2485
|
scale_attrs: ["fill", "color", "linewidth", "linetype", "alpha"],
|
|
2469
2486
|
coord_scale(ds, levels) {
|
|
2470
|
-
let xnudge = ds.xnudge
|
|
2487
|
+
let xnudge = coalesce$a(ds.xnudge, 0), ynudge = coalesce$a(ds.ynudge, 0);
|
|
2471
2488
|
if (ds.x) {
|
|
2472
2489
|
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
2490
|
($x, { y: ys, $raw }, nudge) => psum$a(ys, nudge).map(($y, i) => ({ x: $x, y: $y, $raw: $raw[i] })),
|
|
@@ -2542,12 +2559,12 @@ const curve$1 = {
|
|
|
2542
2559
|
return d;
|
|
2543
2560
|
}
|
|
2544
2561
|
};
|
|
2545
|
-
let psum$9 = vecutils
|
|
2562
|
+
let { sum: psum$9, coalesce: coalesce$9 } = vecutils;
|
|
2546
2563
|
const ellipse$1 = {
|
|
2547
2564
|
scale_attrs: ["fill", "color", "linewidth", "linetype", "alpha"],
|
|
2548
2565
|
coord_scale(ds, levels) {
|
|
2549
2566
|
let { A, B, C } = ds;
|
|
2550
|
-
let xnudge = ds.xnudge
|
|
2567
|
+
let xnudge = coalesce$9(ds.xnudge, 0), ynudge = coalesce$9(ds.ynudge, 0), cx = psum$9(levels.x?.apply?.(ds.cx) ?? ds.cx, xnudge), cy = psum$9(levels.y?.apply?.(ds.cy) ?? ds.cy, ynudge);
|
|
2551
2568
|
return { cx, cy, A, B, C };
|
|
2552
2569
|
},
|
|
2553
2570
|
get_range(ds, orientation) {
|
|
@@ -2565,11 +2582,11 @@ const ellipse$1 = {
|
|
|
2565
2582
|
return d;
|
|
2566
2583
|
}
|
|
2567
2584
|
};
|
|
2568
|
-
let psum$8 = vecutils
|
|
2585
|
+
let { sum: psum$8, coalesce: coalesce$8 } = vecutils;
|
|
2569
2586
|
const line$2 = {
|
|
2570
2587
|
scale_attrs: ["color", "linewidth", "linetype", "alpha"],
|
|
2571
2588
|
coord_scale(ds, levels) {
|
|
2572
|
-
let xnudge = ds.xnudge
|
|
2589
|
+
let xnudge = coalesce$8(ds.xnudge, 0), ynudge = coalesce$8(ds.ynudge, 0), x2 = psum$8(levels.x?.apply?.(ds.x) ?? ds.x, xnudge), y2 = psum$8(levels.y?.apply?.(ds.y) ?? ds.y, ynudge), xend = psum$8(levels.x?.apply?.(ds.xend) ?? ds.xend, xnudge), yend = psum$8(levels.y?.apply?.(ds.yend) ?? ds.yend, ynudge);
|
|
2573
2590
|
return { x: x2, y: y2, xend, yend };
|
|
2574
2591
|
},
|
|
2575
2592
|
get_range(ds, orientation) {
|
|
@@ -2581,11 +2598,11 @@ const line$2 = {
|
|
|
2581
2598
|
return d;
|
|
2582
2599
|
}
|
|
2583
2600
|
};
|
|
2584
|
-
let psum$7 = vecutils
|
|
2601
|
+
let { sum: psum$7, coalesce: coalesce$7 } = vecutils;
|
|
2585
2602
|
const markdown = {
|
|
2586
2603
|
scale_attrs: ["size", "color", "stroke", "linewidth", "linetype", "alpha"],
|
|
2587
2604
|
coord_scale(ds, levels) {
|
|
2588
|
-
let xnudge = ds.xnudge
|
|
2605
|
+
let xnudge = coalesce$7(ds.xnudge, 0), ynudge = coalesce$7(ds.ynudge, 0), x2 = psum$7(levels.x?.apply?.(ds.x) ?? ds.x, xnudge), y2 = psum$7(levels.y?.apply?.(ds.y) ?? ds.y, ynudge);
|
|
2589
2606
|
return { x: x2, y: y2 };
|
|
2590
2607
|
},
|
|
2591
2608
|
get_range(ds, orientation) {
|
|
@@ -2597,11 +2614,11 @@ const markdown = {
|
|
|
2597
2614
|
return d;
|
|
2598
2615
|
}
|
|
2599
2616
|
};
|
|
2600
|
-
let psum$6 = vecutils
|
|
2617
|
+
let { sum: psum$6, coalesce: coalesce$6 } = vecutils;
|
|
2601
2618
|
const markdownsegment = {
|
|
2602
2619
|
scale_attrs: ["size", "color", "stroke", "linewidth", "linetype", "alpha"],
|
|
2603
2620
|
coord_scale(ds, levels) {
|
|
2604
|
-
let xnudge = ds.xnudge
|
|
2621
|
+
let xnudge = coalesce$6(ds.xnudge, 0), ynudge = coalesce$6(ds.ynudge, 0), x2 = psum$6(levels.x?.apply?.(ds.x) ?? ds.x, xnudge), y2 = psum$6(levels.y?.apply?.(ds.y) ?? ds.y, ynudge), xend = psum$6(levels.x?.apply?.(ds.xend) ?? ds.xend, xnudge), yend = psum$6(levels.y?.apply?.(ds.yend) ?? ds.yend, ynudge);
|
|
2605
2622
|
return { x: x2, y: y2, xend, yend };
|
|
2606
2623
|
},
|
|
2607
2624
|
get_range(ds, orientation) {
|
|
@@ -2613,11 +2630,11 @@ const markdownsegment = {
|
|
|
2613
2630
|
return d;
|
|
2614
2631
|
}
|
|
2615
2632
|
};
|
|
2616
|
-
let psum$5 = vecutils
|
|
2633
|
+
let { sum: psum$5, coalesce: coalesce$5 } = vecutils;
|
|
2617
2634
|
const point$3 = {
|
|
2618
2635
|
scale_attrs: ["shape", "size", "color", "stroke", "linewidth", "linetype", "alpha"],
|
|
2619
2636
|
coord_scale(ds, levels) {
|
|
2620
|
-
let xnudge = ds.xnudge
|
|
2637
|
+
let xnudge = coalesce$5(ds.xnudge, 0), ynudge = coalesce$5(ds.ynudge, 0), x2 = psum$5(levels.x?.apply?.(ds.x) ?? ds.x, xnudge), y2 = psum$5(levels.y?.apply?.(ds.y) ?? ds.y, ynudge);
|
|
2621
2638
|
return { x: x2, y: y2 };
|
|
2622
2639
|
},
|
|
2623
2640
|
get_range(ds, orientation) {
|
|
@@ -2647,11 +2664,11 @@ const polygon$1 = {
|
|
|
2647
2664
|
return d;
|
|
2648
2665
|
}
|
|
2649
2666
|
};
|
|
2650
|
-
let psum$4 = vecutils
|
|
2667
|
+
let { sum: psum$4, coalesce: coalesce$4 } = vecutils;
|
|
2651
2668
|
const rect$2 = {
|
|
2652
2669
|
scale_attrs: ["fill", "color", "linewidth", "linetype", "alpha"],
|
|
2653
2670
|
coord_scale(ds, levels) {
|
|
2654
|
-
let xnudge = ds.xnudge
|
|
2671
|
+
let xnudge = coalesce$4(ds.xnudge, 0), ynudge = coalesce$4(ds.ynudge, 0), xmin = psum$4(levels.x?.apply?.(ds.xmin) ?? ds.xmin, xnudge), xmax = psum$4(levels.x?.apply?.(ds.xmax) ?? ds.xmax, xnudge), ymin = psum$4(levels.y?.apply?.(ds.ymin) ?? ds.ymin, ynudge), ymax = psum$4(levels.y?.apply?.(ds.ymax) ?? ds.ymax, ynudge);
|
|
2655
2672
|
return { xmin, xmax, ymin, ymax };
|
|
2656
2673
|
},
|
|
2657
2674
|
get_range(ds, orientation) {
|
|
@@ -2685,11 +2702,11 @@ const shape$1 = {
|
|
|
2685
2702
|
return d;
|
|
2686
2703
|
}
|
|
2687
2704
|
};
|
|
2688
|
-
let psum$3 = vecutils
|
|
2705
|
+
let { sum: psum$3, coalesce: coalesce$3 } = vecutils;
|
|
2689
2706
|
const stick$1 = {
|
|
2690
2707
|
scale_attrs: ["color", "linewidth", "linetype", "alpha"],
|
|
2691
2708
|
coord_scale(ds, levels) {
|
|
2692
|
-
let xnudge = ds.xnudge
|
|
2709
|
+
let xnudge = coalesce$3(ds.xnudge, 0), ynudge = coalesce$3(ds.ynudge, 0), x2 = psum$3(levels.x?.apply?.(ds.x) ?? ds.x, xnudge), y2 = psum$3(levels.y?.apply?.(ds.y) ?? ds.y, ynudge), xend = psum$3(x2, ds.dx), yend = psum$3(y2, ds.dy);
|
|
2693
2710
|
return { x: x2, y: y2, xend, yend };
|
|
2694
2711
|
},
|
|
2695
2712
|
get_values(ds, orientation) {
|
|
@@ -2705,11 +2722,11 @@ const stick$1 = {
|
|
|
2705
2722
|
return d;
|
|
2706
2723
|
}
|
|
2707
2724
|
};
|
|
2708
|
-
let psum$2 = vecutils
|
|
2725
|
+
let { sum: psum$2, coalesce: coalesce$2 } = vecutils;
|
|
2709
2726
|
const text$3 = {
|
|
2710
2727
|
scale_attrs: ["size", "color", "stroke", "linewidth", "linetype", "alpha"],
|
|
2711
2728
|
coord_scale(ds, levels) {
|
|
2712
|
-
let xnudge = ds.xnudge
|
|
2729
|
+
let xnudge = coalesce$2(ds.xnudge, 0), ynudge = coalesce$2(ds.ynudge, 0), x2 = psum$2(levels.x?.apply?.(ds.x) ?? ds.x, xnudge), y2 = psum$2(levels.y?.apply?.(ds.y) ?? ds.y, ynudge);
|
|
2713
2730
|
return { x: x2, y: y2 };
|
|
2714
2731
|
},
|
|
2715
2732
|
get_range(ds, orientation) {
|
|
@@ -2721,11 +2738,11 @@ const text$3 = {
|
|
|
2721
2738
|
return d;
|
|
2722
2739
|
}
|
|
2723
2740
|
};
|
|
2724
|
-
let psum$1 = vecutils
|
|
2741
|
+
let { sum: psum$1, coalesce: coalesce$1 } = vecutils;
|
|
2725
2742
|
const textsegment$1 = {
|
|
2726
2743
|
scale_attrs: ["size", "color", "stroke", "linewidth", "linetype", "alpha"],
|
|
2727
2744
|
coord_scale(ds, levels) {
|
|
2728
|
-
let xnudge = ds.xnudge
|
|
2745
|
+
let xnudge = coalesce$1(ds.xnudge, 0), ynudge = coalesce$1(ds.ynudge, 0), x2 = psum$1(levels.x?.apply?.(ds.x) ?? ds.x, xnudge), y2 = psum$1(levels.y?.apply?.(ds.y) ?? ds.y, ynudge), xend = psum$1(levels.x?.apply?.(ds.xend) ?? ds.xend, xnudge), yend = psum$1(levels.y?.apply?.(ds.yend) ?? ds.yend, ynudge);
|
|
2729
2746
|
return { x: x2, y: y2, xend, yend };
|
|
2730
2747
|
},
|
|
2731
2748
|
get_range(ds, orientation) {
|
|
@@ -2737,11 +2754,11 @@ const textsegment$1 = {
|
|
|
2737
2754
|
return d;
|
|
2738
2755
|
}
|
|
2739
2756
|
};
|
|
2740
|
-
let psum = vecutils
|
|
2757
|
+
let { sum: psum, coalesce } = vecutils;
|
|
2741
2758
|
const tile$1 = {
|
|
2742
2759
|
scale_attrs: ["fill", "color", "linewidth", "linetype", "alpha"],
|
|
2743
2760
|
coord_scale(ds, levels) {
|
|
2744
|
-
let xnudge = ds.xnudge
|
|
2761
|
+
let xnudge = coalesce(ds.xnudge, 0), ynudge = coalesce(ds.ynudge, 0), x2 = levels.x?.apply?.(ds.x) ?? ds.x, y2 = levels.y?.apply?.(ds.y) ?? ds.y, xmin = psum(x2, ds.width?.map?.((x3) => -x3 / 2) ?? -0.5, xnudge), xmax = psum(x2, ds.width?.map?.((x3) => +x3 / 2) ?? 0.5, xnudge), ymin = psum(y2, ds.height?.map?.((x3) => -x3 / 2) ?? -0.5, ynudge), ymax = psum(y2, ds.height?.map?.((x3) => +x3 / 2) ?? 0.5, ynudge);
|
|
2745
2762
|
return { xmin, xmax, ymin, ymax };
|
|
2746
2763
|
},
|
|
2747
2764
|
get_values(ds, orientation) {
|
|
@@ -2794,20 +2811,21 @@ const bar = Object.assign(function(data, { position = "stack", width = 0.9, heig
|
|
|
2794
2811
|
let group = intraaction(Object.fromEntries(keys.map((k) => [k, data[k]])));
|
|
2795
2812
|
let inter = intraaction({ group: group ?? 0, value: values });
|
|
2796
2813
|
let groups = Map.groupBy(data.$raw, (_, i) => inter.categories[inter[i]]);
|
|
2797
|
-
let $raw = Array.from(groups.values()), cates = Array.from(groups.keys());
|
|
2814
|
+
let $raw = Array.from(groups.values()), cates = Array.from(groups.keys()), val = $raw.map((v) => v.length);
|
|
2798
2815
|
let result = {
|
|
2799
2816
|
$raw,
|
|
2800
|
-
$group: cates.map((x2) => x2.group)
|
|
2817
|
+
$group: cates.map((x2) => x2.group),
|
|
2818
|
+
[cateAes]: cates.map((v) => v.value)
|
|
2801
2819
|
};
|
|
2802
2820
|
for (let key of keys) {
|
|
2803
2821
|
result[key] = cates.map((x2) => x2.group).map((i) => group.categories[i][key]);
|
|
2804
2822
|
}
|
|
2805
2823
|
if (cateAes == "x") {
|
|
2806
|
-
|
|
2807
|
-
result.height =
|
|
2824
|
+
width ??= 0.9;
|
|
2825
|
+
result.height = val;
|
|
2808
2826
|
} else {
|
|
2809
|
-
|
|
2810
|
-
result.width =
|
|
2827
|
+
height ??= 0.9;
|
|
2828
|
+
result.width = val;
|
|
2811
2829
|
}
|
|
2812
2830
|
if (position == "stack") {
|
|
2813
2831
|
let cate_group = Object.groupBy(result.$group, (v, i) => group.categories[v][cateAes]);
|
|
@@ -2816,7 +2834,7 @@ const bar = Object.assign(function(data, { position = "stack", width = 0.9, heig
|
|
|
2816
2834
|
let s = 0;
|
|
2817
2835
|
for (let i of cate_group[cate]) {
|
|
2818
2836
|
offset[i] = s;
|
|
2819
|
-
s +=
|
|
2837
|
+
s += val[i];
|
|
2820
2838
|
}
|
|
2821
2839
|
}
|
|
2822
2840
|
if (cateAes == "x") {
|
|
@@ -2906,6 +2924,85 @@ const boxplot = Object.assign(function(data, { position = "dodge", width = 0.9,
|
|
|
2906
2924
|
}
|
|
2907
2925
|
return result;
|
|
2908
2926
|
}, { core_attrs: ["x", "y", "xnudge", "ynudge"] });
|
|
2927
|
+
const col = Object.assign(function(data, { position = "stack", width, height, orientation = "x" }) {
|
|
2928
|
+
let missingAes = ["x", "y"].filter((a) => data[a] == null);
|
|
2929
|
+
if (missingAes.length > 0)
|
|
2930
|
+
throw new Error(`Missing aesthetics for "StatCol": "${missingAes.join('", "')}"`);
|
|
2931
|
+
let isXdiscrete = data.x.some(is_categorical);
|
|
2932
|
+
let isYdiscrete = data.y.some(is_categorical);
|
|
2933
|
+
if (isXdiscrete && isYdiscrete)
|
|
2934
|
+
throw new Error(`Both "x" and "y" are discrete, "StatCol" requires at most one discrete aesthetic`);
|
|
2935
|
+
let cateAes = isXdiscrete == isYdiscrete ? orientation != "y" ? "x" : "y" : isXdiscrete ? "x" : "y";
|
|
2936
|
+
let valueAes = cateAes == "x" ? "y" : "x";
|
|
2937
|
+
let keys = Object.keys(data).filter((k) => k != valueAes && !k.startsWith("$"));
|
|
2938
|
+
let group = intraaction(Object.fromEntries(keys.map((k) => [k, data[k]])));
|
|
2939
|
+
let inter = intraaction({ group: group ?? 0, cate: data[cateAes] });
|
|
2940
|
+
let groupIdx = Map.groupBy(inter.map((_, i) => i), (_, i) => inter.categories[inter[i]]);
|
|
2941
|
+
let groups = Map.groupBy(data.$raw, (_, i) => inter.categories[inter[i]]);
|
|
2942
|
+
let cates = Array.from(groups.keys()), $raw = Array.from(groupIdx.values()).map((arr) => arr.map((idx) => data.$raw[idx])), val = Array.from(groupIdx.values()).map((arr) => numutils.sum(arr.map((idx) => data[valueAes][idx])));
|
|
2943
|
+
let result = {
|
|
2944
|
+
$raw,
|
|
2945
|
+
$group: cates.map((x2) => x2.group),
|
|
2946
|
+
[cateAes]: cates.map((v) => v.value)
|
|
2947
|
+
};
|
|
2948
|
+
for (let key of keys) {
|
|
2949
|
+
result[key] = cates.map((x2) => x2.group).map((i) => group.categories[i][key]);
|
|
2950
|
+
}
|
|
2951
|
+
if (cateAes == "x") {
|
|
2952
|
+
if (isXdiscrete) {
|
|
2953
|
+
width ??= 0.9;
|
|
2954
|
+
} else {
|
|
2955
|
+
width ??= numutils.min(numutils.diff(Array.from(new Set(data[cateAes])).sort((a, b) => a - b))) * 0.9;
|
|
2956
|
+
}
|
|
2957
|
+
result.height = val;
|
|
2958
|
+
} else {
|
|
2959
|
+
if (isYdiscrete) {
|
|
2960
|
+
height ??= 0.9;
|
|
2961
|
+
} else {
|
|
2962
|
+
height ??= numutils.min(numutils.diff(Array.from(new Set(data[cateAes])).sort((a, b) => a - b))) * 0.9;
|
|
2963
|
+
}
|
|
2964
|
+
result.width = val;
|
|
2965
|
+
}
|
|
2966
|
+
if (position == "stack") {
|
|
2967
|
+
let cate_group = Object.groupBy(result.$group, (v, i) => group.categories[v][cateAes]);
|
|
2968
|
+
let offset = cates.map((_) => 0);
|
|
2969
|
+
for (let cate in cate_group) {
|
|
2970
|
+
let s = 0;
|
|
2971
|
+
for (let i of cate_group[cate]) {
|
|
2972
|
+
offset[i] = s;
|
|
2973
|
+
s += val[i];
|
|
2974
|
+
}
|
|
2975
|
+
}
|
|
2976
|
+
if (cateAes == "x") {
|
|
2977
|
+
result.y = result.height.map((v, i) => offset[i] + v / 2);
|
|
2978
|
+
result.width = cates.map((_) => width);
|
|
2979
|
+
} else {
|
|
2980
|
+
result.x = result.width.map((v, i) => offset[i] + v / 2);
|
|
2981
|
+
result.height = cates.map((_) => height);
|
|
2982
|
+
}
|
|
2983
|
+
} else if (position == "dodge") {
|
|
2984
|
+
let cate_group = Object.groupBy(result.$group, (v, i) => group.categories[v][cateAes]);
|
|
2985
|
+
let $group = result.$group.map((v) => cate_group[group.categories[v][cateAes]]);
|
|
2986
|
+
if (cateAes == "x") {
|
|
2987
|
+
result.y = result.height.map((v) => v / 2);
|
|
2988
|
+
result.width = $group.map((arr) => width / arr.length);
|
|
2989
|
+
result.xnudge = $group.map((arr, i) => (result.xnudge?.[i] ?? 0) + ((arr.indexOf(result.$group[i]) + 0.5) / arr.length - 0.5) * width);
|
|
2990
|
+
} else {
|
|
2991
|
+
result.x = result.width.map((v) => v / 2);
|
|
2992
|
+
result.height = $group.map((arr) => height / arr.length);
|
|
2993
|
+
result.ynudge = $group.map((arr, i) => (result.ynudge?.[i] ?? 0) + ((arr.indexOf(result.$group[i]) + 0.5) / arr.length - 0.5) * height);
|
|
2994
|
+
}
|
|
2995
|
+
} else {
|
|
2996
|
+
if (cateAes == "x") {
|
|
2997
|
+
result.y = result.height.map((v) => v / 2);
|
|
2998
|
+
result.width = cates.map((_) => width);
|
|
2999
|
+
} else {
|
|
3000
|
+
result.x = result.width.map((v) => v / 2);
|
|
3001
|
+
result.height = cates.map((_) => height);
|
|
3002
|
+
}
|
|
3003
|
+
}
|
|
3004
|
+
return result;
|
|
3005
|
+
}, { core_attrs: ["x", "y", "xnudge", "ynudge"] });
|
|
2909
3006
|
const curve = Object.assign(function(data) {
|
|
2910
3007
|
if (data.points != null) return data;
|
|
2911
3008
|
let missingAes = ["x", "y"].filter((a) => data[a] == null);
|
|
@@ -3330,6 +3427,7 @@ const vvstat = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProper
|
|
|
3330
3427
|
__proto__: null,
|
|
3331
3428
|
bar,
|
|
3332
3429
|
boxplot,
|
|
3430
|
+
col,
|
|
3333
3431
|
curve,
|
|
3334
3432
|
density,
|
|
3335
3433
|
ellipse,
|
|
@@ -7536,9 +7634,9 @@ class GAxis {
|
|
|
7536
7634
|
return breaks;
|
|
7537
7635
|
}
|
|
7538
7636
|
}
|
|
7539
|
-
const _hoisted_1$
|
|
7637
|
+
const _hoisted_1$q = ["font-size"];
|
|
7540
7638
|
const _hoisted_2$8 = { key: 0 };
|
|
7541
|
-
const _sfc_main$
|
|
7639
|
+
const _sfc_main$18 = {
|
|
7542
7640
|
__name: "CoreText",
|
|
7543
7641
|
props: {
|
|
7544
7642
|
x: { type: Number, default: 0 },
|
|
@@ -7566,8 +7664,9 @@ const _sfc_main$17 = {
|
|
|
7566
7664
|
setup(__props) {
|
|
7567
7665
|
const ele = useTemplateRef("ele");
|
|
7568
7666
|
const textBox = reactive({ width: 0, height: 0 });
|
|
7667
|
+
const visible = inject("vvplot-visible", true);
|
|
7569
7668
|
watch(
|
|
7570
|
-
[ele, () => __props.fontSize, () => __props.size, () => __props.text, () => __props.textLength, () => __props.fontFamily],
|
|
7669
|
+
[ele, visible, () => __props.fontSize, () => __props.size, () => __props.text, () => __props.textLength, () => __props.fontFamily],
|
|
7571
7670
|
async ([e]) => {
|
|
7572
7671
|
if (!e) return;
|
|
7573
7672
|
await nextTick();
|
|
@@ -7625,7 +7724,7 @@ const _sfc_main$17 = {
|
|
|
7625
7724
|
__props.title ? (openBlock(), createElementBlock("title", _hoisted_2$8, toDisplayString(__props.title), 1)) : createCommentVNode("", true),
|
|
7626
7725
|
createTextVNode(" " + toDisplayString(__props.text?.replace(/ /g, " ")), 1)
|
|
7627
7726
|
])
|
|
7628
|
-
], 16, _hoisted_1$
|
|
7727
|
+
], 16, _hoisted_1$q);
|
|
7629
7728
|
};
|
|
7630
7729
|
}
|
|
7631
7730
|
};
|
|
@@ -14787,9 +14886,9 @@ XmlRenderer.prototype.out = out;
|
|
|
14787
14886
|
XmlRenderer.prototype.cr = cr;
|
|
14788
14887
|
XmlRenderer.prototype.tag = tag;
|
|
14789
14888
|
XmlRenderer.prototype.esc = escapeXml;
|
|
14790
|
-
const _hoisted_1$
|
|
14889
|
+
const _hoisted_1$p = ["text-anchor", "font-size"];
|
|
14791
14890
|
const _hoisted_2$7 = { key: 0 };
|
|
14792
|
-
const _sfc_main$
|
|
14891
|
+
const _sfc_main$17 = {
|
|
14793
14892
|
__name: "CoreMarkdown",
|
|
14794
14893
|
props: {
|
|
14795
14894
|
x: { type: Number, default: 0 },
|
|
@@ -14818,8 +14917,9 @@ const _sfc_main$16 = {
|
|
|
14818
14917
|
const parser = new Parser();
|
|
14819
14918
|
const ele = useTemplateRef("ele");
|
|
14820
14919
|
const textBox = reactive({ width: 0, height: 0 });
|
|
14920
|
+
const visible = inject("vvplot-visible", true);
|
|
14821
14921
|
watch(
|
|
14822
|
-
[ele, () => __props.fontSize, () => __props.size, () => __props.text, () => __props.textLength, () => __props.fontFamily],
|
|
14922
|
+
[ele, visible, () => __props.fontSize, () => __props.size, () => __props.text, () => __props.textLength, () => __props.fontFamily],
|
|
14823
14923
|
async ([e]) => {
|
|
14824
14924
|
if (!e) return;
|
|
14825
14925
|
await nextTick();
|
|
@@ -14932,11 +15032,11 @@ const _sfc_main$16 = {
|
|
|
14932
15032
|
(openBlock(true), createElementBlock(Fragment, null, renderList(textFragments.value, (span) => {
|
|
14933
15033
|
return openBlock(), createElementBlock("tspan", mergeProps({ ref_for: true }, span.vbind), toDisplayString(span.text), 17);
|
|
14934
15034
|
}), 256))
|
|
14935
|
-
], 16, _hoisted_1$
|
|
15035
|
+
], 16, _hoisted_1$p);
|
|
14936
15036
|
};
|
|
14937
15037
|
}
|
|
14938
15038
|
};
|
|
14939
|
-
const _sfc_main$
|
|
15039
|
+
const _sfc_main$16 = {
|
|
14940
15040
|
__name: "CoreAxisLabel",
|
|
14941
15041
|
props: {
|
|
14942
15042
|
type: String,
|
|
@@ -14998,11 +15098,11 @@ const _sfc_main$15 = {
|
|
|
14998
15098
|
}
|
|
14999
15099
|
};
|
|
15000
15100
|
return (_ctx, _cache) => {
|
|
15001
|
-
return __props.type == "markdown" ? (openBlock(), createBlock(_sfc_main$
|
|
15101
|
+
return __props.type == "markdown" ? (openBlock(), createBlock(_sfc_main$17, mergeProps({ key: 0 }, toHandlers(vOn)), null, 16)) : (openBlock(), createBlock(_sfc_main$18, mergeProps({ key: 1 }, toHandlers(vOn)), null, 16));
|
|
15002
15102
|
};
|
|
15003
15103
|
}
|
|
15004
15104
|
};
|
|
15005
|
-
const _hoisted_1$
|
|
15105
|
+
const _hoisted_1$o = ["transform"];
|
|
15006
15106
|
const _hoisted_2$6 = ["x2"];
|
|
15007
15107
|
const _hoisted_3$4 = {
|
|
15008
15108
|
class: "vvplot-interactive",
|
|
@@ -15015,7 +15115,7 @@ const _hoisted_5$2 = {
|
|
|
15015
15115
|
fill: "transparent"
|
|
15016
15116
|
};
|
|
15017
15117
|
const _hoisted_6$2 = ["x"];
|
|
15018
|
-
const _sfc_main$
|
|
15118
|
+
const _sfc_main$15 = {
|
|
15019
15119
|
__name: "CoreAxisH",
|
|
15020
15120
|
props: {
|
|
15021
15121
|
coord: String,
|
|
@@ -15204,16 +15304,15 @@ const _sfc_main$14 = {
|
|
|
15204
15304
|
let { xmin, xmax, ymin, ymax } = __props.pos2coord({ hmin: hmin0 + dh, hmax: hmax0 + dh });
|
|
15205
15305
|
Object.assign(rangePreview, { xmin, xmax, ymin, ymax });
|
|
15206
15306
|
};
|
|
15207
|
-
e.target.
|
|
15307
|
+
e.target.addEventListener("pointerup", function(ev) {
|
|
15208
15308
|
e.target.onpointermove = null;
|
|
15209
|
-
e.target.onpointerup = null;
|
|
15210
15309
|
e.target.style.cursor = null;
|
|
15211
15310
|
if (!pointerMoved) return;
|
|
15212
15311
|
moveTimer = setTimeout(() => {
|
|
15213
15312
|
applyTransform(act, ev);
|
|
15214
15313
|
movementX = 0;
|
|
15215
15314
|
}, 300);
|
|
15216
|
-
};
|
|
15315
|
+
}, { once: true });
|
|
15217
15316
|
}
|
|
15218
15317
|
function axisRescaleLeftPointerdown(e) {
|
|
15219
15318
|
let act = __props.action.find((a) => a.action == "rescale");
|
|
@@ -15239,11 +15338,10 @@ const _sfc_main$14 = {
|
|
|
15239
15338
|
});
|
|
15240
15339
|
Object.assign(rangePreview, { xmin, xmax, ymin, ymax });
|
|
15241
15340
|
};
|
|
15242
|
-
e.target.
|
|
15341
|
+
e.target.addEventListener("pointerup", function(ev) {
|
|
15243
15342
|
e.target.onpointermove = null;
|
|
15244
|
-
e.target.onpointerup = null;
|
|
15245
15343
|
applyTransform(act, ev);
|
|
15246
|
-
};
|
|
15344
|
+
}, { once: true });
|
|
15247
15345
|
}
|
|
15248
15346
|
function axisRescaleRightPointerdown(e) {
|
|
15249
15347
|
let act = __props.action.find((a) => a.action == "rescale");
|
|
@@ -15269,11 +15367,10 @@ const _sfc_main$14 = {
|
|
|
15269
15367
|
});
|
|
15270
15368
|
Object.assign(rangePreview, { xmin, xmax, ymin, ymax });
|
|
15271
15369
|
};
|
|
15272
|
-
e.target.
|
|
15370
|
+
e.target.addEventListener("pointerup", function(ev) {
|
|
15273
15371
|
e.target.onpointermove = null;
|
|
15274
|
-
e.target.onpointerup = null;
|
|
15275
15372
|
applyTransform(act, ev);
|
|
15276
|
-
};
|
|
15373
|
+
}, { once: true });
|
|
15277
15374
|
}
|
|
15278
15375
|
let wheelDelta = 0, wheelTimer;
|
|
15279
15376
|
function axisWheel(e) {
|
|
@@ -15381,7 +15478,7 @@ const _sfc_main$14 = {
|
|
|
15381
15478
|
_cache[2] || (_cache[2] = createTextVNode()),
|
|
15382
15479
|
(openBlock(true), createElementBlock(Fragment, null, renderList(tickTexts.value, (tick) => {
|
|
15383
15480
|
return openBlock(), createElementBlock("g", mergeProps({ ref_for: true }, tick.wrapper), [
|
|
15384
|
-
createVNode(_sfc_main$
|
|
15481
|
+
createVNode(_sfc_main$16, mergeProps({ ref_for: true }, tick.text, { getPosition }), null, 16)
|
|
15385
15482
|
], 16);
|
|
15386
15483
|
}), 256)),
|
|
15387
15484
|
_cache[3] || (_cache[3] = createTextVNode()),
|
|
@@ -15414,13 +15511,13 @@ const _sfc_main$14 = {
|
|
|
15414
15511
|
])) : createCommentVNode("", true),
|
|
15415
15512
|
_cache[5] || (_cache[5] = createTextVNode()),
|
|
15416
15513
|
axisTitle.value.text ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
15417
|
-
__props.theme.title_type == "markdown" ? (openBlock(), createBlock(_sfc_main$
|
|
15514
|
+
__props.theme.title_type == "markdown" ? (openBlock(), createBlock(_sfc_main$17, normalizeProps(mergeProps({ key: 0 }, axisTitle.value)), null, 16)) : (openBlock(), createBlock(_sfc_main$18, normalizeProps(mergeProps({ key: 1 }, axisTitle.value)), null, 16))
|
|
15418
15515
|
], 64)) : createCommentVNode("", true)
|
|
15419
|
-
], 12, _hoisted_1$
|
|
15516
|
+
], 12, _hoisted_1$o);
|
|
15420
15517
|
};
|
|
15421
15518
|
}
|
|
15422
15519
|
};
|
|
15423
|
-
const _hoisted_1$
|
|
15520
|
+
const _hoisted_1$n = ["transform"];
|
|
15424
15521
|
const _hoisted_2$5 = ["y2"];
|
|
15425
15522
|
const _hoisted_3$3 = {
|
|
15426
15523
|
class: "vvplot-interactive",
|
|
@@ -15433,7 +15530,7 @@ const _hoisted_5$1 = {
|
|
|
15433
15530
|
fill: "transparent"
|
|
15434
15531
|
};
|
|
15435
15532
|
const _hoisted_6$1 = ["y"];
|
|
15436
|
-
const _sfc_main$
|
|
15533
|
+
const _sfc_main$14 = {
|
|
15437
15534
|
__name: "CoreAxisV",
|
|
15438
15535
|
props: {
|
|
15439
15536
|
coord: String,
|
|
@@ -15622,16 +15719,15 @@ const _sfc_main$13 = {
|
|
|
15622
15719
|
let { xmin, xmax, ymin, ymax } = __props.pos2coord({ vmin: vmin0 + dv, vmax: vmax0 + dv });
|
|
15623
15720
|
Object.assign(rangePreview, { xmin, xmax, ymin, ymax });
|
|
15624
15721
|
};
|
|
15625
|
-
e.target.
|
|
15722
|
+
e.target.addEventListener("pointerup", function(ev) {
|
|
15626
15723
|
e.target.onpointermove = null;
|
|
15627
|
-
e.target.onpointerup = null;
|
|
15628
15724
|
e.target.style.cursor = null;
|
|
15629
15725
|
if (!pointerMoved) return;
|
|
15630
15726
|
moveTimer = setTimeout(() => {
|
|
15631
15727
|
applyTransform(act, ev);
|
|
15632
15728
|
movementY = 0;
|
|
15633
15729
|
}, 300);
|
|
15634
|
-
};
|
|
15730
|
+
}, { once: true });
|
|
15635
15731
|
}
|
|
15636
15732
|
function axisRescaleTopPointerdown(e) {
|
|
15637
15733
|
let act = __props.action.find((a) => a.action == "rescale");
|
|
@@ -15657,11 +15753,10 @@ const _sfc_main$13 = {
|
|
|
15657
15753
|
});
|
|
15658
15754
|
Object.assign(rangePreview, { xmin, xmax, ymin, ymax });
|
|
15659
15755
|
};
|
|
15660
|
-
e.target.
|
|
15756
|
+
e.target.addEventListener("pointerup", function(ev) {
|
|
15661
15757
|
e.target.onpointermove = null;
|
|
15662
|
-
e.target.onpointerup = null;
|
|
15663
15758
|
applyTransform(act, ev);
|
|
15664
|
-
};
|
|
15759
|
+
}, { once: true });
|
|
15665
15760
|
}
|
|
15666
15761
|
function axisRescaleBottomPointerdown(e) {
|
|
15667
15762
|
let act = __props.action.find((a) => a.action == "rescale");
|
|
@@ -15687,11 +15782,10 @@ const _sfc_main$13 = {
|
|
|
15687
15782
|
});
|
|
15688
15783
|
Object.assign(rangePreview, { xmin, xmax, ymin, ymax });
|
|
15689
15784
|
};
|
|
15690
|
-
e.target.
|
|
15785
|
+
e.target.addEventListener("pointerup", function(ev) {
|
|
15691
15786
|
e.target.onpointermove = null;
|
|
15692
|
-
e.target.onpointerup = null;
|
|
15693
15787
|
applyTransform(act, ev);
|
|
15694
|
-
};
|
|
15788
|
+
}, { once: true });
|
|
15695
15789
|
}
|
|
15696
15790
|
let wheelDelta = 0, wheelTimer;
|
|
15697
15791
|
function axisWheel(e) {
|
|
@@ -15799,7 +15893,7 @@ const _sfc_main$13 = {
|
|
|
15799
15893
|
_cache[2] || (_cache[2] = createTextVNode()),
|
|
15800
15894
|
(openBlock(true), createElementBlock(Fragment, null, renderList(tickTexts.value, (tick) => {
|
|
15801
15895
|
return openBlock(), createElementBlock("g", mergeProps({ ref_for: true }, tick.wrapper), [
|
|
15802
|
-
createVNode(_sfc_main$
|
|
15896
|
+
createVNode(_sfc_main$16, mergeProps({ ref_for: true }, tick.text, { getPosition }), null, 16)
|
|
15803
15897
|
], 16);
|
|
15804
15898
|
}), 256)),
|
|
15805
15899
|
_cache[3] || (_cache[3] = createTextVNode()),
|
|
@@ -15832,13 +15926,13 @@ const _sfc_main$13 = {
|
|
|
15832
15926
|
])) : createCommentVNode("", true),
|
|
15833
15927
|
_cache[5] || (_cache[5] = createTextVNode()),
|
|
15834
15928
|
axisTitle.value.text ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
15835
|
-
__props.theme.title_type == "markdown" ? (openBlock(), createBlock(_sfc_main$
|
|
15929
|
+
__props.theme.title_type == "markdown" ? (openBlock(), createBlock(_sfc_main$17, normalizeProps(mergeProps({ key: 0 }, axisTitle.value)), null, 16)) : (openBlock(), createBlock(_sfc_main$18, normalizeProps(mergeProps({ key: 1 }, axisTitle.value)), null, 16))
|
|
15836
15930
|
], 64)) : createCommentVNode("", true)
|
|
15837
|
-
], 12, _hoisted_1$
|
|
15931
|
+
], 12, _hoisted_1$n);
|
|
15838
15932
|
};
|
|
15839
15933
|
}
|
|
15840
15934
|
};
|
|
15841
|
-
const _sfc_main$
|
|
15935
|
+
const _sfc_main$13 = {
|
|
15842
15936
|
__name: "CoreAxis",
|
|
15843
15937
|
props: {
|
|
15844
15938
|
theme: { type: Object, default: () => ({}) },
|
|
@@ -15847,8 +15941,8 @@ const _sfc_main$12 = {
|
|
|
15847
15941
|
},
|
|
15848
15942
|
setup(__props) {
|
|
15849
15943
|
const axis = {
|
|
15850
|
-
h: _sfc_main$
|
|
15851
|
-
v: _sfc_main$
|
|
15944
|
+
h: _sfc_main$15,
|
|
15945
|
+
v: _sfc_main$14
|
|
15852
15946
|
};
|
|
15853
15947
|
return (_ctx, _cache) => {
|
|
15854
15948
|
return __props.position != "none" ? (openBlock(), createBlock(resolveDynamicComponent(axis[__props.orientation]), {
|
|
@@ -15859,7 +15953,7 @@ const _sfc_main$12 = {
|
|
|
15859
15953
|
};
|
|
15860
15954
|
}
|
|
15861
15955
|
};
|
|
15862
|
-
const _sfc_main$
|
|
15956
|
+
const _sfc_main$12 = {
|
|
15863
15957
|
__name: "CoreGridH",
|
|
15864
15958
|
props: {
|
|
15865
15959
|
breaks: { type: Array, default: () => [] },
|
|
@@ -15931,7 +16025,7 @@ const _sfc_main$11 = {
|
|
|
15931
16025
|
};
|
|
15932
16026
|
}
|
|
15933
16027
|
};
|
|
15934
|
-
const _sfc_main$
|
|
16028
|
+
const _sfc_main$11 = {
|
|
15935
16029
|
__name: "CoreGridV",
|
|
15936
16030
|
props: {
|
|
15937
16031
|
breaks: { type: Array, default: () => [] },
|
|
@@ -16003,7 +16097,7 @@ const _sfc_main$10 = {
|
|
|
16003
16097
|
};
|
|
16004
16098
|
}
|
|
16005
16099
|
};
|
|
16006
|
-
const _sfc_main
|
|
16100
|
+
const _sfc_main$10 = {
|
|
16007
16101
|
__name: "CoreCanvasBoxplot",
|
|
16008
16102
|
props: {
|
|
16009
16103
|
extendX: { type: Number, default: 0 },
|
|
@@ -16139,11 +16233,11 @@ const _sfc_main$$ = {
|
|
|
16139
16233
|
dispatchEvent: (event) => layerCanvas.value?.dispatchEvent?.(event)
|
|
16140
16234
|
});
|
|
16141
16235
|
return (_ctx, _cache) => {
|
|
16142
|
-
return openBlock(), createElementBlock("foreignObject", mergeProps(vBind.value, { ref: "container" }), null, 16);
|
|
16236
|
+
return openBlock(), createElementBlock("foreignObject", mergeProps({ class: "vvplot-layer" }, vBind.value, { ref: "container" }), null, 16);
|
|
16143
16237
|
};
|
|
16144
16238
|
}
|
|
16145
16239
|
};
|
|
16146
|
-
const _sfc_main
|
|
16240
|
+
const _sfc_main$$ = {
|
|
16147
16241
|
__name: "CoreCanvasCurve",
|
|
16148
16242
|
props: {
|
|
16149
16243
|
extendX: { type: Number, default: 0 },
|
|
@@ -16246,11 +16340,11 @@ const _sfc_main$_ = {
|
|
|
16246
16340
|
natural: natural$1
|
|
16247
16341
|
};
|
|
16248
16342
|
return (_ctx, _cache) => {
|
|
16249
|
-
return openBlock(), createElementBlock("foreignObject", mergeProps(vBind.value, { ref: "container" }), null, 16);
|
|
16343
|
+
return openBlock(), createElementBlock("foreignObject", mergeProps({ class: "vvplot-layer" }, vBind.value, { ref: "container" }), null, 16);
|
|
16250
16344
|
};
|
|
16251
16345
|
}
|
|
16252
16346
|
};
|
|
16253
|
-
const _sfc_main$
|
|
16347
|
+
const _sfc_main$_ = {
|
|
16254
16348
|
__name: "CoreCanvasEllipse",
|
|
16255
16349
|
props: {
|
|
16256
16350
|
extendX: { type: Number, default: 0 },
|
|
@@ -16349,11 +16443,11 @@ const _sfc_main$Z = {
|
|
|
16349
16443
|
dispatchEvent: (event) => layerCanvas.value?.dispatchEvent?.(event)
|
|
16350
16444
|
});
|
|
16351
16445
|
return (_ctx, _cache) => {
|
|
16352
|
-
return openBlock(), createElementBlock("foreignObject", mergeProps(vBind.value, { ref: "container" }), null, 16);
|
|
16446
|
+
return openBlock(), createElementBlock("foreignObject", mergeProps({ class: "vvplot-layer" }, vBind.value, { ref: "container" }), null, 16);
|
|
16353
16447
|
};
|
|
16354
16448
|
}
|
|
16355
16449
|
};
|
|
16356
|
-
const _sfc_main$
|
|
16450
|
+
const _sfc_main$Z = {
|
|
16357
16451
|
__name: "CoreCanvasLine",
|
|
16358
16452
|
props: {
|
|
16359
16453
|
extendX: { type: Number, default: 0 },
|
|
@@ -16439,11 +16533,11 @@ const _sfc_main$Y = {
|
|
|
16439
16533
|
dispatchEvent: (event) => layerCanvas.value?.dispatchEvent?.(event)
|
|
16440
16534
|
});
|
|
16441
16535
|
return (_ctx, _cache) => {
|
|
16442
|
-
return openBlock(), createElementBlock("foreignObject", mergeProps(vBind.value, { ref: "container" }), null, 16);
|
|
16536
|
+
return openBlock(), createElementBlock("foreignObject", mergeProps({ class: "vvplot-layer" }, vBind.value, { ref: "container" }), null, 16);
|
|
16443
16537
|
};
|
|
16444
16538
|
}
|
|
16445
16539
|
};
|
|
16446
|
-
const _sfc_main$
|
|
16540
|
+
const _sfc_main$Y = {
|
|
16447
16541
|
__name: "CoreCanvasPoint",
|
|
16448
16542
|
props: {
|
|
16449
16543
|
extendX: { type: Number, default: 0 },
|
|
@@ -16559,11 +16653,11 @@ const _sfc_main$X = {
|
|
|
16559
16653
|
dispatchEvent: (event) => layerCanvas.value?.dispatchEvent?.(event)
|
|
16560
16654
|
});
|
|
16561
16655
|
return (_ctx, _cache) => {
|
|
16562
|
-
return openBlock(), createElementBlock("foreignObject", mergeProps(vBind.value, { ref: "container" }), null, 16);
|
|
16656
|
+
return openBlock(), createElementBlock("foreignObject", mergeProps({ class: "vvplot-layer" }, vBind.value, { ref: "container" }), null, 16);
|
|
16563
16657
|
};
|
|
16564
16658
|
}
|
|
16565
16659
|
};
|
|
16566
|
-
const _sfc_main$
|
|
16660
|
+
const _sfc_main$X = {
|
|
16567
16661
|
__name: "CoreCanvasPolygon",
|
|
16568
16662
|
props: {
|
|
16569
16663
|
extendX: { type: Number, default: 0 },
|
|
@@ -16654,11 +16748,11 @@ const _sfc_main$W = {
|
|
|
16654
16748
|
dispatchEvent: (event) => layerCanvas.value?.dispatchEvent?.(event)
|
|
16655
16749
|
});
|
|
16656
16750
|
return (_ctx, _cache) => {
|
|
16657
|
-
return openBlock(), createElementBlock("foreignObject", mergeProps(vBind.value, { ref: "container" }), null, 16);
|
|
16751
|
+
return openBlock(), createElementBlock("foreignObject", mergeProps({ class: "vvplot-layer" }, vBind.value, { ref: "container" }), null, 16);
|
|
16658
16752
|
};
|
|
16659
16753
|
}
|
|
16660
16754
|
};
|
|
16661
|
-
const _sfc_main$
|
|
16755
|
+
const _sfc_main$W = {
|
|
16662
16756
|
__name: "CoreCanvasRect",
|
|
16663
16757
|
props: {
|
|
16664
16758
|
extendX: { type: Number, default: 0 },
|
|
@@ -16747,11 +16841,11 @@ const _sfc_main$V = {
|
|
|
16747
16841
|
dispatchEvent: (event) => layerCanvas.value?.dispatchEvent?.(event)
|
|
16748
16842
|
});
|
|
16749
16843
|
return (_ctx, _cache) => {
|
|
16750
|
-
return openBlock(), createElementBlock("foreignObject", mergeProps(vBind.value, { ref: "container" }), null, 16);
|
|
16844
|
+
return openBlock(), createElementBlock("foreignObject", mergeProps({ class: "vvplot-layer" }, vBind.value, { ref: "container" }), null, 16);
|
|
16751
16845
|
};
|
|
16752
16846
|
}
|
|
16753
16847
|
};
|
|
16754
|
-
const _sfc_main$
|
|
16848
|
+
const _sfc_main$V = {
|
|
16755
16849
|
__name: "CoreCanvasText",
|
|
16756
16850
|
props: {
|
|
16757
16851
|
extendX: { type: Number, default: 0 },
|
|
@@ -16880,11 +16974,11 @@ const _sfc_main$U = {
|
|
|
16880
16974
|
dispatchEvent: (event) => layerCanvas.value?.dispatchEvent?.(event)
|
|
16881
16975
|
});
|
|
16882
16976
|
return (_ctx, _cache) => {
|
|
16883
|
-
return openBlock(), createElementBlock("foreignObject", mergeProps(vBind.value, { ref: "container" }), null, 16);
|
|
16977
|
+
return openBlock(), createElementBlock("foreignObject", mergeProps({ class: "vvplot-layer" }, vBind.value, { ref: "container" }), null, 16);
|
|
16884
16978
|
};
|
|
16885
16979
|
}
|
|
16886
16980
|
};
|
|
16887
|
-
const _sfc_main$
|
|
16981
|
+
const _sfc_main$U = {
|
|
16888
16982
|
__name: "CoreCanvasTextsegment",
|
|
16889
16983
|
props: {
|
|
16890
16984
|
extendX: { type: Number, default: 0 },
|
|
@@ -17050,26 +17144,27 @@ const _sfc_main$T = {
|
|
|
17050
17144
|
return result;
|
|
17051
17145
|
}
|
|
17052
17146
|
return (_ctx, _cache) => {
|
|
17053
|
-
return openBlock(), createElementBlock("foreignObject", mergeProps(vBind.value, { ref: "container" }), null, 16);
|
|
17147
|
+
return openBlock(), createElementBlock("foreignObject", mergeProps({ class: "vvplot-layer" }, vBind.value, { ref: "container" }), null, 16);
|
|
17054
17148
|
};
|
|
17055
17149
|
}
|
|
17056
17150
|
};
|
|
17057
17151
|
const canvas = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
17058
17152
|
__proto__: null,
|
|
17059
|
-
boxplot: _sfc_main
|
|
17060
|
-
curve: _sfc_main
|
|
17061
|
-
ellipse: _sfc_main$
|
|
17062
|
-
line: _sfc_main$
|
|
17063
|
-
point: _sfc_main$
|
|
17064
|
-
polygon: _sfc_main$
|
|
17065
|
-
rect: _sfc_main$
|
|
17066
|
-
shape: _sfc_main
|
|
17067
|
-
stick: _sfc_main$
|
|
17068
|
-
text: _sfc_main$
|
|
17069
|
-
textsegment: _sfc_main$
|
|
17070
|
-
tile: _sfc_main$
|
|
17153
|
+
boxplot: _sfc_main$10,
|
|
17154
|
+
curve: _sfc_main$$,
|
|
17155
|
+
ellipse: _sfc_main$_,
|
|
17156
|
+
line: _sfc_main$Z,
|
|
17157
|
+
point: _sfc_main$Y,
|
|
17158
|
+
polygon: _sfc_main$X,
|
|
17159
|
+
rect: _sfc_main$W,
|
|
17160
|
+
shape: _sfc_main$$,
|
|
17161
|
+
stick: _sfc_main$Z,
|
|
17162
|
+
text: _sfc_main$V,
|
|
17163
|
+
textsegment: _sfc_main$U,
|
|
17164
|
+
tile: _sfc_main$W
|
|
17071
17165
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
17072
|
-
const
|
|
17166
|
+
const _hoisted_1$m = { class: "vvplot-layer" };
|
|
17167
|
+
const _sfc_main$T = {
|
|
17073
17168
|
__name: "CoreSvgBlank",
|
|
17074
17169
|
props: {
|
|
17075
17170
|
extendX: { type: Number, default: 0 },
|
|
@@ -17084,12 +17179,12 @@ const _sfc_main$S = {
|
|
|
17084
17179
|
emits: ["click", "contextmenu", "pointerover", "pointerout", "pointerenter", "pointerleave", "pointermove", "pointerdown", "pointerup"],
|
|
17085
17180
|
setup(__props, { emit: __emit }) {
|
|
17086
17181
|
return (_ctx, _cache) => {
|
|
17087
|
-
return openBlock(), createElementBlock("g");
|
|
17182
|
+
return openBlock(), createElementBlock("g", _hoisted_1$m);
|
|
17088
17183
|
};
|
|
17089
17184
|
}
|
|
17090
17185
|
};
|
|
17091
|
-
const _hoisted_1$
|
|
17092
|
-
const _sfc_main$
|
|
17186
|
+
const _hoisted_1$l = { key: 0 };
|
|
17187
|
+
const _sfc_main$S = {
|
|
17093
17188
|
__name: "CoreTile",
|
|
17094
17189
|
props: {
|
|
17095
17190
|
x: { type: Number, default: 0 },
|
|
@@ -17124,14 +17219,14 @@ const _sfc_main$R = {
|
|
|
17124
17219
|
});
|
|
17125
17220
|
return (_ctx, _cache) => {
|
|
17126
17221
|
return openBlock(), createElementBlock("rect", normalizeProps(guardReactiveProps(binds.value)), [
|
|
17127
|
-
__props.title ? (openBlock(), createElementBlock("title", _hoisted_1$
|
|
17222
|
+
__props.title ? (openBlock(), createElementBlock("title", _hoisted_1$l, toDisplayString(__props.title), 1)) : createCommentVNode("", true)
|
|
17128
17223
|
], 16);
|
|
17129
17224
|
};
|
|
17130
17225
|
}
|
|
17131
17226
|
};
|
|
17132
|
-
const _hoisted_1$
|
|
17227
|
+
const _hoisted_1$k = { key: 0 };
|
|
17133
17228
|
const _hoisted_2$4 = { key: 0 };
|
|
17134
|
-
const _sfc_main$
|
|
17229
|
+
const _sfc_main$R = {
|
|
17135
17230
|
__name: "CorePoint",
|
|
17136
17231
|
props: {
|
|
17137
17232
|
x: { type: Number, default: 0 },
|
|
@@ -17182,15 +17277,15 @@ const _sfc_main$Q = {
|
|
|
17182
17277
|
});
|
|
17183
17278
|
return (_ctx, _cache) => {
|
|
17184
17279
|
return binds.value.d ? (openBlock(), createElementBlock("path", normalizeProps(mergeProps({ key: 0 }, binds.value)), [
|
|
17185
|
-
__props.title ? (openBlock(), createElementBlock("title", _hoisted_1$
|
|
17280
|
+
__props.title ? (openBlock(), createElementBlock("title", _hoisted_1$k, toDisplayString(__props.title), 1)) : createCommentVNode("", true)
|
|
17186
17281
|
], 16)) : (openBlock(), createElementBlock("circle", normalizeProps(mergeProps({ key: 1 }, binds.value)), [
|
|
17187
17282
|
__props.title ? (openBlock(), createElementBlock("title", _hoisted_2$4, toDisplayString(__props.title), 1)) : createCommentVNode("", true)
|
|
17188
17283
|
], 16));
|
|
17189
17284
|
};
|
|
17190
17285
|
}
|
|
17191
17286
|
};
|
|
17192
|
-
const _hoisted_1$
|
|
17193
|
-
const _sfc_main$
|
|
17287
|
+
const _hoisted_1$j = { key: 0 };
|
|
17288
|
+
const _sfc_main$Q = {
|
|
17194
17289
|
__name: "CoreLine",
|
|
17195
17290
|
props: {
|
|
17196
17291
|
x1: { type: Number, default: 0 },
|
|
@@ -17223,12 +17318,13 @@ const _sfc_main$P = {
|
|
|
17223
17318
|
});
|
|
17224
17319
|
return (_ctx, _cache) => {
|
|
17225
17320
|
return openBlock(), createElementBlock("line", normalizeProps(guardReactiveProps(binds.value)), [
|
|
17226
|
-
__props.title ? (openBlock(), createElementBlock("title", _hoisted_1$
|
|
17321
|
+
__props.title ? (openBlock(), createElementBlock("title", _hoisted_1$j, toDisplayString(__props.title), 1)) : createCommentVNode("", true)
|
|
17227
17322
|
], 16);
|
|
17228
17323
|
};
|
|
17229
17324
|
}
|
|
17230
17325
|
};
|
|
17231
|
-
const
|
|
17326
|
+
const _hoisted_1$i = { class: "vvplot-layer" };
|
|
17327
|
+
const _sfc_main$P = {
|
|
17232
17328
|
__name: "CoreSvgBoxplot",
|
|
17233
17329
|
props: {
|
|
17234
17330
|
extendX: { type: Number, default: 0 },
|
|
@@ -17386,23 +17482,23 @@ const _sfc_main$O = {
|
|
|
17386
17482
|
}).filter((x2) => x2 != null));
|
|
17387
17483
|
});
|
|
17388
17484
|
return (_ctx, _cache) => {
|
|
17389
|
-
return openBlock(), createElementBlock("g",
|
|
17485
|
+
return openBlock(), createElementBlock("g", _hoisted_1$i, [
|
|
17390
17486
|
(openBlock(true), createElementBlock(Fragment, null, renderList(binds.value, (group) => {
|
|
17391
|
-
return openBlock(), createElementBlock("g", mergeProps({ ref_for: true }, { class: __props.groupClass, style: __props.groupStyle }), [
|
|
17487
|
+
return openBlock(), createElementBlock("g", mergeProps({ class: "vvplot-group" }, { ref_for: true }, { class: __props.groupClass, style: __props.groupStyle }), [
|
|
17392
17488
|
(openBlock(true), createElementBlock(Fragment, null, renderList(group, ([vbinds, von]) => {
|
|
17393
17489
|
return openBlock(), createElementBlock("g", null, [
|
|
17394
|
-
createVNode(_sfc_main$
|
|
17490
|
+
createVNode(_sfc_main$Q, mergeProps({ ref_for: true }, vbinds.line), null, 16),
|
|
17395
17491
|
_cache[0] || (_cache[0] = createTextVNode()),
|
|
17396
|
-
createVNode(_sfc_main$
|
|
17492
|
+
createVNode(_sfc_main$S, mergeProps({ ref_for: true }, vbinds.rect, toHandlers(von)), null, 16),
|
|
17397
17493
|
_cache[1] || (_cache[1] = createTextVNode()),
|
|
17398
|
-
createVNode(_sfc_main$
|
|
17494
|
+
createVNode(_sfc_main$Q, mergeProps({ ref_for: true }, vbinds.midline), null, 16),
|
|
17399
17495
|
_cache[2] || (_cache[2] = createTextVNode()),
|
|
17400
|
-
createVNode(_sfc_main$
|
|
17496
|
+
createVNode(_sfc_main$Q, mergeProps({ ref_for: true }, vbinds.uwisker), null, 16),
|
|
17401
17497
|
_cache[3] || (_cache[3] = createTextVNode()),
|
|
17402
|
-
createVNode(_sfc_main$
|
|
17498
|
+
createVNode(_sfc_main$Q, mergeProps({ ref_for: true }, vbinds.lwisker), null, 16),
|
|
17403
17499
|
_cache[4] || (_cache[4] = createTextVNode()),
|
|
17404
17500
|
(openBlock(true), createElementBlock(Fragment, null, renderList(vbinds.outliers, ([vbind, von2]) => {
|
|
17405
|
-
return openBlock(), createBlock(_sfc_main$
|
|
17501
|
+
return openBlock(), createBlock(_sfc_main$R, mergeProps({ ref_for: true }, vbind, toHandlers(von2)), null, 16);
|
|
17406
17502
|
}), 256))
|
|
17407
17503
|
]);
|
|
17408
17504
|
}), 256))
|
|
@@ -17412,8 +17508,8 @@ const _sfc_main$O = {
|
|
|
17412
17508
|
};
|
|
17413
17509
|
}
|
|
17414
17510
|
};
|
|
17415
|
-
const _hoisted_1$
|
|
17416
|
-
const _sfc_main$
|
|
17511
|
+
const _hoisted_1$h = { key: 0 };
|
|
17512
|
+
const _sfc_main$O = {
|
|
17417
17513
|
__name: "CoreCurve",
|
|
17418
17514
|
props: {
|
|
17419
17515
|
points: { type: Array, default: () => [] },
|
|
@@ -17453,12 +17549,13 @@ const _sfc_main$N = {
|
|
|
17453
17549
|
};
|
|
17454
17550
|
return (_ctx, _cache) => {
|
|
17455
17551
|
return openBlock(), createElementBlock("path", normalizeProps(guardReactiveProps(binds.value)), [
|
|
17456
|
-
__props.title ? (openBlock(), createElementBlock("title", _hoisted_1$
|
|
17552
|
+
__props.title ? (openBlock(), createElementBlock("title", _hoisted_1$h, toDisplayString(__props.title), 1)) : createCommentVNode("", true)
|
|
17457
17553
|
], 16);
|
|
17458
17554
|
};
|
|
17459
17555
|
}
|
|
17460
17556
|
};
|
|
17461
|
-
const
|
|
17557
|
+
const _hoisted_1$g = { class: "vvplot-layer vvplot-layer-curve" };
|
|
17558
|
+
const _sfc_main$N = {
|
|
17462
17559
|
__name: "CoreSvgCurve",
|
|
17463
17560
|
props: {
|
|
17464
17561
|
extendX: { type: Number, default: 0 },
|
|
@@ -17518,11 +17615,11 @@ const _sfc_main$M = {
|
|
|
17518
17615
|
}).filter((x2) => x2 != null));
|
|
17519
17616
|
});
|
|
17520
17617
|
return (_ctx, _cache) => {
|
|
17521
|
-
return openBlock(), createElementBlock("g",
|
|
17618
|
+
return openBlock(), createElementBlock("g", _hoisted_1$g, [
|
|
17522
17619
|
(openBlock(true), createElementBlock(Fragment, null, renderList(binds.value, (group) => {
|
|
17523
|
-
return openBlock(), createElementBlock("g", mergeProps({ ref_for: true }, { class: __props.groupClass, style: __props.groupStyle }), [
|
|
17620
|
+
return openBlock(), createElementBlock("g", mergeProps({ class: "vvplot-group" }, { ref_for: true }, { class: __props.groupClass, style: __props.groupStyle }), [
|
|
17524
17621
|
(openBlock(true), createElementBlock(Fragment, null, renderList(group, ([vbind, von]) => {
|
|
17525
|
-
return openBlock(), createBlock(_sfc_main$
|
|
17622
|
+
return openBlock(), createBlock(_sfc_main$O, mergeProps({ ref_for: true }, vbind, toHandlers(von)), null, 16);
|
|
17526
17623
|
}), 256))
|
|
17527
17624
|
], 16);
|
|
17528
17625
|
}), 256))
|
|
@@ -17530,8 +17627,8 @@ const _sfc_main$M = {
|
|
|
17530
17627
|
};
|
|
17531
17628
|
}
|
|
17532
17629
|
};
|
|
17533
|
-
const _hoisted_1$
|
|
17534
|
-
const _sfc_main$
|
|
17630
|
+
const _hoisted_1$f = { key: 0 };
|
|
17631
|
+
const _sfc_main$M = {
|
|
17535
17632
|
__name: "CoreEllipse",
|
|
17536
17633
|
props: {
|
|
17537
17634
|
cx: { type: Number, default: 0 },
|
|
@@ -17571,12 +17668,13 @@ const _sfc_main$L = {
|
|
|
17571
17668
|
});
|
|
17572
17669
|
return (_ctx, _cache) => {
|
|
17573
17670
|
return openBlock(), createElementBlock("ellipse", normalizeProps(guardReactiveProps(binds.value)), [
|
|
17574
|
-
__props.title ? (openBlock(), createElementBlock("title", _hoisted_1$
|
|
17671
|
+
__props.title ? (openBlock(), createElementBlock("title", _hoisted_1$f, toDisplayString(__props.title), 1)) : createCommentVNode("", true)
|
|
17575
17672
|
], 16);
|
|
17576
17673
|
};
|
|
17577
17674
|
}
|
|
17578
17675
|
};
|
|
17579
|
-
const
|
|
17676
|
+
const _hoisted_1$e = { class: "vvplot-layer vvplot-layer-ellipse" };
|
|
17677
|
+
const _sfc_main$L = {
|
|
17580
17678
|
__name: "CoreSvgEllipse",
|
|
17581
17679
|
props: {
|
|
17582
17680
|
extendX: { type: Number, default: 0 },
|
|
@@ -17646,11 +17744,11 @@ const _sfc_main$K = {
|
|
|
17646
17744
|
}).filter((x2) => x2 != null));
|
|
17647
17745
|
});
|
|
17648
17746
|
return (_ctx, _cache) => {
|
|
17649
|
-
return openBlock(), createElementBlock("g",
|
|
17747
|
+
return openBlock(), createElementBlock("g", _hoisted_1$e, [
|
|
17650
17748
|
(openBlock(true), createElementBlock(Fragment, null, renderList(binds.value, (group) => {
|
|
17651
|
-
return openBlock(), createElementBlock("g", mergeProps({ ref_for: true }, { class: __props.groupClass, style: __props.groupStyle }), [
|
|
17749
|
+
return openBlock(), createElementBlock("g", mergeProps({ class: "vvplot-group" }, { ref_for: true }, { class: __props.groupClass, style: __props.groupStyle }), [
|
|
17652
17750
|
(openBlock(true), createElementBlock(Fragment, null, renderList(group, ([vbind, von]) => {
|
|
17653
|
-
return openBlock(), createBlock(_sfc_main$
|
|
17751
|
+
return openBlock(), createBlock(_sfc_main$M, mergeProps({ ref_for: true }, vbind, toHandlers(von)), null, 16);
|
|
17654
17752
|
}), 256))
|
|
17655
17753
|
], 16);
|
|
17656
17754
|
}), 256))
|
|
@@ -17658,7 +17756,8 @@ const _sfc_main$K = {
|
|
|
17658
17756
|
};
|
|
17659
17757
|
}
|
|
17660
17758
|
};
|
|
17661
|
-
const
|
|
17759
|
+
const _hoisted_1$d = { class: "vvplot-layer vvplot-layer-line" };
|
|
17760
|
+
const _sfc_main$K = {
|
|
17662
17761
|
__name: "CoreSvgLine",
|
|
17663
17762
|
props: {
|
|
17664
17763
|
extendX: { type: Number, default: 0 },
|
|
@@ -17721,11 +17820,11 @@ const _sfc_main$J = {
|
|
|
17721
17820
|
}).filter((x2) => x2 != null));
|
|
17722
17821
|
});
|
|
17723
17822
|
return (_ctx, _cache) => {
|
|
17724
|
-
return openBlock(), createElementBlock("g",
|
|
17823
|
+
return openBlock(), createElementBlock("g", _hoisted_1$d, [
|
|
17725
17824
|
(openBlock(true), createElementBlock(Fragment, null, renderList(binds.value, (group) => {
|
|
17726
|
-
return openBlock(), createElementBlock("g", mergeProps({ ref_for: true }, { class: __props.groupClass, style: __props.groupStyle }), [
|
|
17825
|
+
return openBlock(), createElementBlock("g", mergeProps({ class: "vvplot-group" }, { ref_for: true }, { class: __props.groupClass, style: __props.groupStyle }), [
|
|
17727
17826
|
(openBlock(true), createElementBlock(Fragment, null, renderList(group, ([vbind, von]) => {
|
|
17728
|
-
return openBlock(), createBlock(_sfc_main$
|
|
17827
|
+
return openBlock(), createBlock(_sfc_main$Q, mergeProps({ ref_for: true }, vbind, toHandlers(von)), null, 16);
|
|
17729
17828
|
}), 256))
|
|
17730
17829
|
], 16);
|
|
17731
17830
|
}), 256))
|
|
@@ -17733,7 +17832,8 @@ const _sfc_main$J = {
|
|
|
17733
17832
|
};
|
|
17734
17833
|
}
|
|
17735
17834
|
};
|
|
17736
|
-
const
|
|
17835
|
+
const _hoisted_1$c = { class: "vvplot-layer" };
|
|
17836
|
+
const _sfc_main$J = {
|
|
17737
17837
|
__name: "CoreSvgMarkdown",
|
|
17738
17838
|
props: {
|
|
17739
17839
|
extendX: { type: Number, default: 0 },
|
|
@@ -17820,11 +17920,11 @@ const _sfc_main$I = {
|
|
|
17820
17920
|
}).filter((x2) => x2 != null));
|
|
17821
17921
|
});
|
|
17822
17922
|
return (_ctx, _cache) => {
|
|
17823
|
-
return openBlock(), createElementBlock("g",
|
|
17923
|
+
return openBlock(), createElementBlock("g", _hoisted_1$c, [
|
|
17824
17924
|
(openBlock(true), createElementBlock(Fragment, null, renderList(binds.value, (group) => {
|
|
17825
|
-
return openBlock(), createElementBlock("g", mergeProps({ ref_for: true }, { class: __props.groupClass, style: __props.groupStyle }), [
|
|
17925
|
+
return openBlock(), createElementBlock("g", mergeProps({ class: "vvplot-group" }, { ref_for: true }, { class: __props.groupClass, style: __props.groupStyle }), [
|
|
17826
17926
|
(openBlock(true), createElementBlock(Fragment, null, renderList(group, ([vbind, von]) => {
|
|
17827
|
-
return openBlock(), createBlock(_sfc_main$
|
|
17927
|
+
return openBlock(), createBlock(_sfc_main$17, mergeProps({ ref_for: true }, vbind, toHandlers(von)), null, 16);
|
|
17828
17928
|
}), 256))
|
|
17829
17929
|
], 16);
|
|
17830
17930
|
}), 256))
|
|
@@ -17832,7 +17932,8 @@ const _sfc_main$I = {
|
|
|
17832
17932
|
};
|
|
17833
17933
|
}
|
|
17834
17934
|
};
|
|
17835
|
-
const
|
|
17935
|
+
const _hoisted_1$b = { class: "vvplot-layer" };
|
|
17936
|
+
const _sfc_main$I = {
|
|
17836
17937
|
__name: "CoreSvgMarkdownsegment",
|
|
17837
17938
|
props: {
|
|
17838
17939
|
extendX: { type: Number, default: 0 },
|
|
@@ -17941,11 +18042,11 @@ const _sfc_main$H = {
|
|
|
17941
18042
|
}).filter((x2) => x2 != null));
|
|
17942
18043
|
});
|
|
17943
18044
|
return (_ctx, _cache) => {
|
|
17944
|
-
return openBlock(), createElementBlock("g",
|
|
18045
|
+
return openBlock(), createElementBlock("g", _hoisted_1$b, [
|
|
17945
18046
|
(openBlock(true), createElementBlock(Fragment, null, renderList(binds.value, (group) => {
|
|
17946
|
-
return openBlock(), createElementBlock("g", mergeProps({ ref_for: true }, { class: __props.groupClass, style: __props.groupStyle }), [
|
|
18047
|
+
return openBlock(), createElementBlock("g", mergeProps({ class: "vvplot-group" }, { ref_for: true }, { class: __props.groupClass, style: __props.groupStyle }), [
|
|
17947
18048
|
(openBlock(true), createElementBlock(Fragment, null, renderList(group, ([vbind, von]) => {
|
|
17948
|
-
return openBlock(), createBlock(_sfc_main$
|
|
18049
|
+
return openBlock(), createBlock(_sfc_main$17, mergeProps({ ref_for: true }, vbind, toHandlers(von)), null, 16);
|
|
17949
18050
|
}), 256))
|
|
17950
18051
|
], 16);
|
|
17951
18052
|
}), 256))
|
|
@@ -17953,7 +18054,8 @@ const _sfc_main$H = {
|
|
|
17953
18054
|
};
|
|
17954
18055
|
}
|
|
17955
18056
|
};
|
|
17956
|
-
const
|
|
18057
|
+
const _hoisted_1$a = { class: "vvplot-layer" };
|
|
18058
|
+
const _sfc_main$H = {
|
|
17957
18059
|
__name: "CoreSvgPoint",
|
|
17958
18060
|
props: {
|
|
17959
18061
|
extendX: { type: Number, default: 0 },
|
|
@@ -18020,11 +18122,11 @@ const _sfc_main$G = {
|
|
|
18020
18122
|
}).filter((x2) => x2 != null));
|
|
18021
18123
|
});
|
|
18022
18124
|
return (_ctx, _cache) => {
|
|
18023
|
-
return openBlock(), createElementBlock("g",
|
|
18125
|
+
return openBlock(), createElementBlock("g", _hoisted_1$a, [
|
|
18024
18126
|
(openBlock(true), createElementBlock(Fragment, null, renderList(binds.value, (group) => {
|
|
18025
|
-
return openBlock(), createElementBlock("g", mergeProps({ ref_for: true }, { class: __props.groupClass, style: __props.groupStyle }), [
|
|
18127
|
+
return openBlock(), createElementBlock("g", mergeProps({ class: "vvplot-group" }, { ref_for: true }, { class: __props.groupClass, style: __props.groupStyle }), [
|
|
18026
18128
|
(openBlock(true), createElementBlock(Fragment, null, renderList(group, ([vbind, von]) => {
|
|
18027
|
-
return openBlock(), createBlock(_sfc_main$
|
|
18129
|
+
return openBlock(), createBlock(_sfc_main$R, mergeProps({ ref_for: true }, vbind, toHandlers(von)), null, 16);
|
|
18028
18130
|
}), 256))
|
|
18029
18131
|
], 16);
|
|
18030
18132
|
}), 256))
|
|
@@ -18032,8 +18134,8 @@ const _sfc_main$G = {
|
|
|
18032
18134
|
};
|
|
18033
18135
|
}
|
|
18034
18136
|
};
|
|
18035
|
-
const _hoisted_1$
|
|
18036
|
-
const _sfc_main$
|
|
18137
|
+
const _hoisted_1$9 = { key: 0 };
|
|
18138
|
+
const _sfc_main$G = {
|
|
18037
18139
|
__name: "CorePolygon",
|
|
18038
18140
|
props: {
|
|
18039
18141
|
points: { type: Array, default: () => [] },
|
|
@@ -18062,12 +18164,13 @@ const _sfc_main$F = {
|
|
|
18062
18164
|
});
|
|
18063
18165
|
return (_ctx, _cache) => {
|
|
18064
18166
|
return openBlock(), createElementBlock("polygon", normalizeProps(guardReactiveProps(binds.value)), [
|
|
18065
|
-
__props.title ? (openBlock(), createElementBlock("title", _hoisted_1$
|
|
18167
|
+
__props.title ? (openBlock(), createElementBlock("title", _hoisted_1$9, toDisplayString(__props.title), 1)) : createCommentVNode("", true)
|
|
18066
18168
|
], 16);
|
|
18067
18169
|
};
|
|
18068
18170
|
}
|
|
18069
18171
|
};
|
|
18070
|
-
const
|
|
18172
|
+
const _hoisted_1$8 = { class: "vvplot-layer" };
|
|
18173
|
+
const _sfc_main$F = {
|
|
18071
18174
|
__name: "CoreSvgPolygon",
|
|
18072
18175
|
props: {
|
|
18073
18176
|
extendX: { type: Number, default: 0 },
|
|
@@ -18127,11 +18230,11 @@ const _sfc_main$E = {
|
|
|
18127
18230
|
}).filter((x2) => x2 != null));
|
|
18128
18231
|
});
|
|
18129
18232
|
return (_ctx, _cache) => {
|
|
18130
|
-
return openBlock(), createElementBlock("g",
|
|
18233
|
+
return openBlock(), createElementBlock("g", _hoisted_1$8, [
|
|
18131
18234
|
(openBlock(true), createElementBlock(Fragment, null, renderList(binds.value, (group) => {
|
|
18132
|
-
return openBlock(), createElementBlock("g", mergeProps({ ref_for: true }, { class: __props.groupClass, style: __props.groupStyle }), [
|
|
18235
|
+
return openBlock(), createElementBlock("g", mergeProps({ class: "vvplot-group" }, { ref_for: true }, { class: __props.groupClass, style: __props.groupStyle }), [
|
|
18133
18236
|
(openBlock(true), createElementBlock(Fragment, null, renderList(group, ([vbind, von]) => {
|
|
18134
|
-
return openBlock(), createBlock(_sfc_main$
|
|
18237
|
+
return openBlock(), createBlock(_sfc_main$G, mergeProps({ ref_for: true }, vbind, toHandlers(von)), null, 16);
|
|
18135
18238
|
}), 256))
|
|
18136
18239
|
], 16);
|
|
18137
18240
|
}), 256))
|
|
@@ -18139,7 +18242,8 @@ const _sfc_main$E = {
|
|
|
18139
18242
|
};
|
|
18140
18243
|
}
|
|
18141
18244
|
};
|
|
18142
|
-
const
|
|
18245
|
+
const _hoisted_1$7 = { class: "vvplot-layer" };
|
|
18246
|
+
const _sfc_main$E = {
|
|
18143
18247
|
__name: "CoreSvgRect",
|
|
18144
18248
|
props: {
|
|
18145
18249
|
extendX: { type: Number, default: 0 },
|
|
@@ -18199,11 +18303,11 @@ const _sfc_main$D = {
|
|
|
18199
18303
|
}).filter((x2) => x2 != null));
|
|
18200
18304
|
});
|
|
18201
18305
|
return (_ctx, _cache) => {
|
|
18202
|
-
return openBlock(), createElementBlock("g",
|
|
18306
|
+
return openBlock(), createElementBlock("g", _hoisted_1$7, [
|
|
18203
18307
|
(openBlock(true), createElementBlock(Fragment, null, renderList(binds.value, (group) => {
|
|
18204
|
-
return openBlock(), createElementBlock("g", mergeProps({ ref_for: true }, { class: __props.groupClass, style: __props.groupStyle }), [
|
|
18308
|
+
return openBlock(), createElementBlock("g", mergeProps({ class: "vvplot-group" }, { ref_for: true }, { class: __props.groupClass, style: __props.groupStyle }), [
|
|
18205
18309
|
(openBlock(true), createElementBlock(Fragment, null, renderList(group, ([vbind, von]) => {
|
|
18206
|
-
return openBlock(), createBlock(_sfc_main$
|
|
18310
|
+
return openBlock(), createBlock(_sfc_main$S, mergeProps({ ref_for: true }, vbind, toHandlers(von)), null, 16);
|
|
18207
18311
|
}), 256))
|
|
18208
18312
|
], 16);
|
|
18209
18313
|
}), 256))
|
|
@@ -18211,7 +18315,8 @@ const _sfc_main$D = {
|
|
|
18211
18315
|
};
|
|
18212
18316
|
}
|
|
18213
18317
|
};
|
|
18214
|
-
const
|
|
18318
|
+
const _hoisted_1$6 = { class: "vvplot-layer" };
|
|
18319
|
+
const _sfc_main$D = {
|
|
18215
18320
|
__name: "CoreSvgText",
|
|
18216
18321
|
props: {
|
|
18217
18322
|
extendX: { type: Number, default: 0 },
|
|
@@ -18298,11 +18403,11 @@ const _sfc_main$C = {
|
|
|
18298
18403
|
}).filter((x2) => x2 != null));
|
|
18299
18404
|
});
|
|
18300
18405
|
return (_ctx, _cache) => {
|
|
18301
|
-
return openBlock(), createElementBlock("g",
|
|
18406
|
+
return openBlock(), createElementBlock("g", _hoisted_1$6, [
|
|
18302
18407
|
(openBlock(true), createElementBlock(Fragment, null, renderList(binds.value, (group) => {
|
|
18303
|
-
return openBlock(), createElementBlock("g", mergeProps({ ref_for: true }, { class: __props.groupClass, style: __props.groupStyle }), [
|
|
18408
|
+
return openBlock(), createElementBlock("g", mergeProps({ class: "vvplot-group" }, { ref_for: true }, { class: __props.groupClass, style: __props.groupStyle }), [
|
|
18304
18409
|
(openBlock(true), createElementBlock(Fragment, null, renderList(group, ([vbind, von]) => {
|
|
18305
|
-
return openBlock(), createBlock(_sfc_main$
|
|
18410
|
+
return openBlock(), createBlock(_sfc_main$18, mergeProps({ ref_for: true }, vbind, toHandlers(von)), null, 16);
|
|
18306
18411
|
}), 256))
|
|
18307
18412
|
], 16);
|
|
18308
18413
|
}), 256))
|
|
@@ -18310,7 +18415,8 @@ const _sfc_main$C = {
|
|
|
18310
18415
|
};
|
|
18311
18416
|
}
|
|
18312
18417
|
};
|
|
18313
|
-
const
|
|
18418
|
+
const _hoisted_1$5 = { class: "vvplot-layer" };
|
|
18419
|
+
const _sfc_main$C = {
|
|
18314
18420
|
__name: "CoreSvgTextsegment",
|
|
18315
18421
|
props: {
|
|
18316
18422
|
extendX: { type: Number, default: 0 },
|
|
@@ -18462,9 +18568,9 @@ const _sfc_main$B = {
|
|
|
18462
18568
|
return result;
|
|
18463
18569
|
}
|
|
18464
18570
|
return (_ctx, _cache) => {
|
|
18465
|
-
return openBlock(), createElementBlock("g",
|
|
18571
|
+
return openBlock(), createElementBlock("g", _hoisted_1$5, [
|
|
18466
18572
|
(openBlock(true), createElementBlock(Fragment, null, renderList(binds.value, (group) => {
|
|
18467
|
-
return openBlock(), createElementBlock("g", mergeProps({ ref_for: true }, { class: __props.groupClass, style: __props.groupStyle }), [
|
|
18573
|
+
return openBlock(), createElementBlock("g", mergeProps({ class: "vvplot-group" }, { ref_for: true }, { class: __props.groupClass, style: __props.groupStyle }), [
|
|
18468
18574
|
(openBlock(true), createElementBlock(Fragment, null, renderList(group, ([vbind, von, content, title]) => {
|
|
18469
18575
|
return openBlock(), createElementBlock("text", mergeProps({ ref_for: true }, vbind, toHandlers(von, true)), [
|
|
18470
18576
|
createElementVNode("title", null, toDisplayString(title), 1),
|
|
@@ -18489,23 +18595,23 @@ const _sfc_main$B = {
|
|
|
18489
18595
|
};
|
|
18490
18596
|
const svg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
18491
18597
|
__proto__: null,
|
|
18492
|
-
blank: _sfc_main$
|
|
18493
|
-
boxplot: _sfc_main$
|
|
18494
|
-
curve: _sfc_main$
|
|
18495
|
-
ellipse: _sfc_main$
|
|
18496
|
-
line: _sfc_main$
|
|
18497
|
-
markdown: _sfc_main$
|
|
18498
|
-
markdownsegment: _sfc_main$
|
|
18499
|
-
point: _sfc_main$
|
|
18500
|
-
polygon: _sfc_main$
|
|
18501
|
-
rect: _sfc_main$
|
|
18502
|
-
shape: _sfc_main$
|
|
18503
|
-
stick: _sfc_main$
|
|
18504
|
-
text: _sfc_main$
|
|
18505
|
-
textsegment: _sfc_main$
|
|
18506
|
-
tile: _sfc_main$
|
|
18598
|
+
blank: _sfc_main$T,
|
|
18599
|
+
boxplot: _sfc_main$P,
|
|
18600
|
+
curve: _sfc_main$N,
|
|
18601
|
+
ellipse: _sfc_main$L,
|
|
18602
|
+
line: _sfc_main$K,
|
|
18603
|
+
markdown: _sfc_main$J,
|
|
18604
|
+
markdownsegment: _sfc_main$I,
|
|
18605
|
+
point: _sfc_main$H,
|
|
18606
|
+
polygon: _sfc_main$F,
|
|
18607
|
+
rect: _sfc_main$E,
|
|
18608
|
+
shape: _sfc_main$N,
|
|
18609
|
+
stick: _sfc_main$K,
|
|
18610
|
+
text: _sfc_main$D,
|
|
18611
|
+
textsegment: _sfc_main$C,
|
|
18612
|
+
tile: _sfc_main$E
|
|
18507
18613
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
18508
|
-
const _sfc_main$
|
|
18614
|
+
const _sfc_main$B = {
|
|
18509
18615
|
__name: "CoreLayer",
|
|
18510
18616
|
props: {
|
|
18511
18617
|
data: Object,
|
|
@@ -18546,7 +18652,7 @@ const _sfc_main$A = {
|
|
|
18546
18652
|
};
|
|
18547
18653
|
const _hoisted_1$4 = { key: 0 };
|
|
18548
18654
|
const _hoisted_2$3 = ["onPointerdown"];
|
|
18549
|
-
const _sfc_main$
|
|
18655
|
+
const _sfc_main$A = {
|
|
18550
18656
|
__name: "CoreSelection",
|
|
18551
18657
|
props: /* @__PURE__ */ mergeModels({
|
|
18552
18658
|
coord2pos: Function,
|
|
@@ -18635,9 +18741,6 @@ const _sfc_main$z = {
|
|
|
18635
18741
|
transform2.push(`scale(${sclH}, ${sclV})`);
|
|
18636
18742
|
return transform2.join(" ") || null;
|
|
18637
18743
|
});
|
|
18638
|
-
const translating = computed(
|
|
18639
|
-
() => __props.activeTransform.translateH != 0 || __props.activeTransform.translateV != 0 || __props.activeTransform.scaleH != 1 || __props.activeTransform.scaleV != 1
|
|
18640
|
-
);
|
|
18641
18744
|
const rectBind = computed(() => {
|
|
18642
18745
|
if (!position.value) return null;
|
|
18643
18746
|
let { hmin, hmax, vmin, vmax, pos } = position.value;
|
|
@@ -18662,7 +18765,7 @@ const _sfc_main$z = {
|
|
|
18662
18765
|
};
|
|
18663
18766
|
});
|
|
18664
18767
|
const interactiveBind = computed(() => {
|
|
18665
|
-
if (!position.value
|
|
18768
|
+
if (!position.value) return null;
|
|
18666
18769
|
let size = 10;
|
|
18667
18770
|
let { hmin, hmax, vmin, vmax, pos } = position.value;
|
|
18668
18771
|
let width = Math.max(0, hmax - hmin), height = Math.max(0, vmax - vmin);
|
|
@@ -18677,7 +18780,7 @@ const _sfc_main$z = {
|
|
|
18677
18780
|
};
|
|
18678
18781
|
if (config.resize) {
|
|
18679
18782
|
if (pos.hmin != null)
|
|
18680
|
-
binds.l = { x: hmin - size / 2, y: vmin, width: size, height, style: "cursor:ew-resize;"
|
|
18783
|
+
binds.l = { x: hmin - size / 2, y: vmin, width: size, height, style: "cursor:ew-resize;" };
|
|
18681
18784
|
if (pos.hmax != null)
|
|
18682
18785
|
binds.r = { x: hmax - size / 2, y: vmin, width: size, height, style: "cursor:ew-resize;" };
|
|
18683
18786
|
if (pos.vmin != null)
|
|
@@ -18757,8 +18860,7 @@ const _sfc_main$z = {
|
|
|
18757
18860
|
if (ymin > ymax) [ymin, ymax] = [ymax, ymin];
|
|
18758
18861
|
emit("selecting", { xmin, xmax, ymin, ymax }, __props.theme);
|
|
18759
18862
|
};
|
|
18760
|
-
e.target.
|
|
18761
|
-
ev.currentTarget.onpointerup = null;
|
|
18863
|
+
e.target.addEventListener("pointerup", function(ev) {
|
|
18762
18864
|
ev.currentTarget.onpointermove = null;
|
|
18763
18865
|
if (config.buttons & 1) {
|
|
18764
18866
|
ev.currentTarget.onclick = (event2) => {
|
|
@@ -18784,7 +18886,7 @@ const _sfc_main$z = {
|
|
|
18784
18886
|
model.value = dropNull(res);
|
|
18785
18887
|
emit("selectend");
|
|
18786
18888
|
emit("select", dropNull(res), event);
|
|
18787
|
-
};
|
|
18889
|
+
}, { once: true });
|
|
18788
18890
|
}
|
|
18789
18891
|
return (_ctx, _cache) => {
|
|
18790
18892
|
return rectBind.value ? (openBlock(), createElementBlock("g", _hoisted_1$4, [
|
|
@@ -18803,7 +18905,7 @@ const _sfc_main$z = {
|
|
|
18803
18905
|
const _hoisted_1$3 = ["height", "width"];
|
|
18804
18906
|
const _hoisted_2$2 = ["y1", "y2"];
|
|
18805
18907
|
const _hoisted_3$2 = ["y"];
|
|
18806
|
-
const _sfc_main$
|
|
18908
|
+
const _sfc_main$z = {
|
|
18807
18909
|
__name: "CoreGuideGradientbar",
|
|
18808
18910
|
props: {
|
|
18809
18911
|
scales: Array,
|
|
@@ -18843,7 +18945,7 @@ const _sfc_main$y = {
|
|
|
18843
18945
|
ref: "svg"
|
|
18844
18946
|
}, [
|
|
18845
18947
|
(openBlock(true), createElementBlock(Fragment, null, renderList(gradient_values.value, (v, i) => {
|
|
18846
|
-
return openBlock(), createBlock(_sfc_main$
|
|
18948
|
+
return openBlock(), createBlock(_sfc_main$S, mergeProps({
|
|
18847
18949
|
width: 10,
|
|
18848
18950
|
height: 3.1,
|
|
18849
18951
|
x: 10,
|
|
@@ -18875,12 +18977,12 @@ const _sfc_main$y = {
|
|
|
18875
18977
|
};
|
|
18876
18978
|
const element = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
18877
18979
|
__proto__: null,
|
|
18878
|
-
curve: _sfc_main$
|
|
18879
|
-
line: _sfc_main$
|
|
18880
|
-
point: _sfc_main$
|
|
18881
|
-
polygon: _sfc_main$
|
|
18882
|
-
text: _sfc_main$
|
|
18883
|
-
tile: _sfc_main$
|
|
18980
|
+
curve: _sfc_main$O,
|
|
18981
|
+
line: _sfc_main$Q,
|
|
18982
|
+
point: _sfc_main$R,
|
|
18983
|
+
polygon: _sfc_main$G,
|
|
18984
|
+
text: _sfc_main$18,
|
|
18985
|
+
tile: _sfc_main$S
|
|
18884
18986
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
18885
18987
|
const _hoisted_1$2 = ["height", "width"];
|
|
18886
18988
|
const _hoisted_2$1 = ["transform"];
|
|
@@ -18890,7 +18992,7 @@ const _hoisted_4$1 = {
|
|
|
18890
18992
|
y: "10",
|
|
18891
18993
|
"alignment-baseline": "central"
|
|
18892
18994
|
};
|
|
18893
|
-
const _sfc_main$
|
|
18995
|
+
const _sfc_main$y = {
|
|
18894
18996
|
__name: "CoreGuideLegendkey",
|
|
18895
18997
|
props: {
|
|
18896
18998
|
scales: Array,
|
|
@@ -18957,7 +19059,7 @@ const _sfc_main$x = {
|
|
|
18957
19059
|
};
|
|
18958
19060
|
}
|
|
18959
19061
|
};
|
|
18960
|
-
const _sfc_main$
|
|
19062
|
+
const _sfc_main$x = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
18961
19063
|
__name: "CoreGuide",
|
|
18962
19064
|
props: {
|
|
18963
19065
|
scales: Array,
|
|
@@ -18965,8 +19067,8 @@ const _sfc_main$w = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
18965
19067
|
},
|
|
18966
19068
|
setup(__props) {
|
|
18967
19069
|
const guide = {
|
|
18968
|
-
legendkey: _sfc_main$
|
|
18969
|
-
gradientbar: _sfc_main$
|
|
19070
|
+
legendkey: _sfc_main$y,
|
|
19071
|
+
gradientbar: _sfc_main$z
|
|
18970
19072
|
};
|
|
18971
19073
|
const title = computed(() => {
|
|
18972
19074
|
return __props.scales.reduce((v, [s]) => v ?? s.title, null) ?? __props.scales.reduce((v, [s]) => v ?? s._title, null);
|
|
@@ -19010,7 +19112,7 @@ const _sfc_main$w = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
19010
19112
|
};
|
|
19011
19113
|
}
|
|
19012
19114
|
});
|
|
19013
|
-
const _sfc_main$
|
|
19115
|
+
const _sfc_main$w = {
|
|
19014
19116
|
__name: "CoreLegend",
|
|
19015
19117
|
props: {
|
|
19016
19118
|
theme: { type: Object, default: () => ({}) },
|
|
@@ -19044,7 +19146,7 @@ const _sfc_main$v = {
|
|
|
19044
19146
|
style: normalizeStyle({ gap: __props.theme.spacing + "px" })
|
|
19045
19147
|
}, [
|
|
19046
19148
|
(openBlock(true), createElementBlock(Fragment, null, renderList(guides.value, ([[key, type], scales]) => {
|
|
19047
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19149
|
+
return openBlock(), createBlock(_sfc_main$x, {
|
|
19048
19150
|
key,
|
|
19049
19151
|
type,
|
|
19050
19152
|
scales
|
|
@@ -19058,11 +19160,11 @@ const _hoisted_1$1 = ["id"];
|
|
|
19058
19160
|
const _hoisted_2 = ["width", "height"];
|
|
19059
19161
|
const _hoisted_3 = ["transform", "width", "height", "fill"];
|
|
19060
19162
|
const _hoisted_4 = ["transform"];
|
|
19061
|
-
const _hoisted_5 = ["transform"
|
|
19062
|
-
const _hoisted_6 = ["
|
|
19063
|
-
const _hoisted_7 = ["clip-path"];
|
|
19163
|
+
const _hoisted_5 = ["transform"];
|
|
19164
|
+
const _hoisted_6 = ["clip-path"];
|
|
19165
|
+
const _hoisted_7 = ["transform", "clip-path"];
|
|
19064
19166
|
const _hoisted_8 = { key: 1 };
|
|
19065
|
-
const _sfc_main$
|
|
19167
|
+
const _sfc_main$v = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
19066
19168
|
__name: "CorePlot",
|
|
19067
19169
|
props: /* @__PURE__ */ mergeModels({
|
|
19068
19170
|
schema: Object,
|
|
@@ -19106,6 +19208,7 @@ const _sfc_main$u = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
19106
19208
|
"pointermove",
|
|
19107
19209
|
"wheel",
|
|
19108
19210
|
"select",
|
|
19211
|
+
"selecting",
|
|
19109
19212
|
"move",
|
|
19110
19213
|
"zoom",
|
|
19111
19214
|
"rescale",
|
|
@@ -19413,11 +19516,13 @@ const _sfc_main$u = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
19413
19516
|
res.ymin = ystart > yend ? yend : ystart;
|
|
19414
19517
|
res.ymax = ystart > yend ? ystart : yend;
|
|
19415
19518
|
}
|
|
19519
|
+
if (!emitEvent(sel["onSelecting"], dropNull(res), sel.theme)) {
|
|
19520
|
+
emit("selecting", dropNull(res), sel.theme);
|
|
19521
|
+
}
|
|
19416
19522
|
selectionPreview.value = res;
|
|
19417
19523
|
selectionPreviewTheme.value = sel.theme;
|
|
19418
19524
|
};
|
|
19419
|
-
e.target.
|
|
19420
|
-
ev.currentTarget.onpointerup = null;
|
|
19525
|
+
e.target.addEventListener("pointerup", function(ev) {
|
|
19421
19526
|
ev.currentTarget.onpointermove = null;
|
|
19422
19527
|
svg2.style.userSelect = null;
|
|
19423
19528
|
selectionPreview.value = {};
|
|
@@ -19465,7 +19570,7 @@ const _sfc_main$u = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
19465
19570
|
emit("select", dropNull(res), event);
|
|
19466
19571
|
}
|
|
19467
19572
|
}
|
|
19468
|
-
};
|
|
19573
|
+
}, { once: true });
|
|
19469
19574
|
return;
|
|
19470
19575
|
}
|
|
19471
19576
|
let act = props.action.find((a) => a.action == "move" && ["buttons", "ctrlKey", "shiftKey", "altKey", "metaKey"].every((k) => a[k] == e[k]));
|
|
@@ -19495,15 +19600,14 @@ const _sfc_main$u = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
19495
19600
|
let { xmin, xmax, ymin, ymax } = pos2coord({ hmin: h1, hmax: h2, vmin: v1, vmax: v2 });
|
|
19496
19601
|
Object.assign(rangePreview, { xmin, xmax, ymin, ymax });
|
|
19497
19602
|
};
|
|
19498
|
-
e.target.
|
|
19499
|
-
ev.currentTarget.onpointerup = null;
|
|
19603
|
+
e.target.addEventListener("pointerup", function(ev) {
|
|
19500
19604
|
ev.currentTarget.onpointermove = null;
|
|
19501
19605
|
svg2.style.userSelect = null;
|
|
19502
19606
|
moveTimer = setTimeout(() => {
|
|
19503
19607
|
applyTransform(act, ev);
|
|
19504
19608
|
movementX = movementY = 0;
|
|
19505
19609
|
}, 300);
|
|
19506
|
-
};
|
|
19610
|
+
}, { once: true });
|
|
19507
19611
|
return;
|
|
19508
19612
|
}
|
|
19509
19613
|
}
|
|
@@ -19761,7 +19865,7 @@ const _sfc_main$u = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
19761
19865
|
transform: `translate(${unref(panel).left}, ${unref(panel).top})`,
|
|
19762
19866
|
style: { "pointer-events": "none" }
|
|
19763
19867
|
}, [
|
|
19764
|
-
createVNode(_sfc_main$
|
|
19868
|
+
createVNode(_sfc_main$12, {
|
|
19765
19869
|
breaks: gridBreaks.value.h,
|
|
19766
19870
|
layout: unref(innerRect),
|
|
19767
19871
|
activeTransform: activeTransform.value,
|
|
@@ -19769,7 +19873,7 @@ const _sfc_main$u = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
19769
19873
|
transition: transition.value
|
|
19770
19874
|
}, null, 8, ["breaks", "layout", "activeTransform", "transition"]),
|
|
19771
19875
|
_cache[2] || (_cache[2] = createTextVNode()),
|
|
19772
|
-
createVNode(_sfc_main$
|
|
19876
|
+
createVNode(_sfc_main$11, {
|
|
19773
19877
|
breaks: gridBreaks.value.v,
|
|
19774
19878
|
layout: unref(innerRect),
|
|
19775
19879
|
activeTransform: activeTransform.value,
|
|
@@ -19778,6 +19882,30 @@ const _sfc_main$u = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
19778
19882
|
}, null, 8, ["breaks", "layout", "activeTransform", "transition"])
|
|
19779
19883
|
], 8, _hoisted_4),
|
|
19780
19884
|
_cache[8] || (_cache[8] = createTextVNode()),
|
|
19885
|
+
createElementVNode("g", {
|
|
19886
|
+
transform: `translate(${unref(panel).left}, ${unref(panel).top})`
|
|
19887
|
+
}, [
|
|
19888
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(axes.value.filter((a) => typeof a.bind.position !== "number"), (axis) => {
|
|
19889
|
+
return openBlock(), createBlock(_sfc_main$13, mergeProps({ ref_for: true }, axis.bind, toHandlers(axis.on), {
|
|
19890
|
+
transition: transition.value,
|
|
19891
|
+
"onUpdate:transition": _cache[0] || (_cache[0] = ($event) => transition.value = $event),
|
|
19892
|
+
activeTransform: activeTransform.value
|
|
19893
|
+
}), null, 16, ["transition", "activeTransform"]);
|
|
19894
|
+
}), 256)),
|
|
19895
|
+
_cache[3] || (_cache[3] = createTextVNode()),
|
|
19896
|
+
createElementVNode("g", {
|
|
19897
|
+
"clip-path": props.clip ? `url(#${unref(vid)}-plot-clip)` : null
|
|
19898
|
+
}, [
|
|
19899
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(axes.value.filter((a) => typeof a.bind.position === "number"), (axis) => {
|
|
19900
|
+
return openBlock(), createBlock(_sfc_main$13, mergeProps({ ref_for: true }, axis.bind, toHandlers(axis.on), {
|
|
19901
|
+
transition: transition.value,
|
|
19902
|
+
"onUpdate:transition": _cache[1] || (_cache[1] = ($event) => transition.value = $event),
|
|
19903
|
+
activeTransform: activeTransform.value
|
|
19904
|
+
}), null, 16, ["transition", "activeTransform"]);
|
|
19905
|
+
}), 256))
|
|
19906
|
+
], 8, _hoisted_6)
|
|
19907
|
+
], 8, _hoisted_5),
|
|
19908
|
+
_cache[9] || (_cache[9] = createTextVNode()),
|
|
19781
19909
|
createElementVNode("g", {
|
|
19782
19910
|
transform: `translate(${unref(panel).left}, ${unref(panel).top})`,
|
|
19783
19911
|
"clip-path": props.clip ? `url(#${unref(vid)}-plot-clip)` : null
|
|
@@ -19786,7 +19914,7 @@ const _sfc_main$u = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
19786
19914
|
style: { transition: transition.value }
|
|
19787
19915
|
}), [
|
|
19788
19916
|
(openBlock(true), createElementBlock(Fragment, null, renderList(vplot.value.layers, (layer) => {
|
|
19789
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19917
|
+
return openBlock(), createBlock(_sfc_main$B, mergeProps({
|
|
19790
19918
|
ref_for: true,
|
|
19791
19919
|
ref_key: "layers",
|
|
19792
19920
|
ref: layers,
|
|
@@ -19801,9 +19929,9 @@ const _sfc_main$u = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
19801
19929
|
}), null, 16, ["data", "layout", "geom", "default-render", "default-dpi"]);
|
|
19802
19930
|
}), 256))
|
|
19803
19931
|
], 16),
|
|
19804
|
-
_cache[
|
|
19932
|
+
_cache[4] || (_cache[4] = createTextVNode()),
|
|
19805
19933
|
(openBlock(true), createElementBlock(Fragment, null, renderList(props.selections, (sel) => {
|
|
19806
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19934
|
+
return openBlock(), createBlock(_sfc_main$A, mergeProps({
|
|
19807
19935
|
coord2pos,
|
|
19808
19936
|
pos2coord,
|
|
19809
19937
|
layout: unref(innerRect),
|
|
@@ -19813,8 +19941,8 @@ const _sfc_main$u = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
19813
19941
|
activeTransform: activeTransform.value
|
|
19814
19942
|
}, { ref_for: true }, sel, { flip: __props.flip }), null, 16, ["layout", "transition", "activeTransform", "flip"]);
|
|
19815
19943
|
}), 256)),
|
|
19816
|
-
_cache[
|
|
19817
|
-
createVNode(_sfc_main$
|
|
19944
|
+
_cache[5] || (_cache[5] = createTextVNode()),
|
|
19945
|
+
createVNode(_sfc_main$A, {
|
|
19818
19946
|
coord2pos,
|
|
19819
19947
|
pos2coord,
|
|
19820
19948
|
layout: unref(innerRect),
|
|
@@ -19824,31 +19952,7 @@ const _sfc_main$u = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
19824
19952
|
theme: _selectionPreviewTheme.value,
|
|
19825
19953
|
flip: __props.flip
|
|
19826
19954
|
}, null, 8, ["layout", "modelValue", "transition", "activeTransform", "theme", "flip"])
|
|
19827
|
-
], 8,
|
|
19828
|
-
_cache[9] || (_cache[9] = createTextVNode()),
|
|
19829
|
-
createElementVNode("g", {
|
|
19830
|
-
transform: `translate(${unref(panel).left}, ${unref(panel).top})`
|
|
19831
|
-
}, [
|
|
19832
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(axes.value.filter((a) => typeof a.bind.position !== "number"), (axis) => {
|
|
19833
|
-
return openBlock(), createBlock(_sfc_main$12, mergeProps({ ref_for: true }, axis.bind, toHandlers(axis.on), {
|
|
19834
|
-
transition: transition.value,
|
|
19835
|
-
"onUpdate:transition": _cache[0] || (_cache[0] = ($event) => transition.value = $event),
|
|
19836
|
-
activeTransform: activeTransform.value
|
|
19837
|
-
}), null, 16, ["transition", "activeTransform"]);
|
|
19838
|
-
}), 256)),
|
|
19839
|
-
_cache[5] || (_cache[5] = createTextVNode()),
|
|
19840
|
-
createElementVNode("g", {
|
|
19841
|
-
"clip-path": props.clip ? `url(#${unref(vid)}-plot-clip)` : null
|
|
19842
|
-
}, [
|
|
19843
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(axes.value.filter((a) => typeof a.bind.position === "number"), (axis) => {
|
|
19844
|
-
return openBlock(), createBlock(_sfc_main$12, mergeProps({ ref_for: true }, axis.bind, toHandlers(axis.on), {
|
|
19845
|
-
transition: transition.value,
|
|
19846
|
-
"onUpdate:transition": _cache[1] || (_cache[1] = ($event) => transition.value = $event),
|
|
19847
|
-
activeTransform: activeTransform.value
|
|
19848
|
-
}), null, 16, ["transition", "activeTransform"]);
|
|
19849
|
-
}), 256))
|
|
19850
|
-
], 8, _hoisted_7)
|
|
19851
|
-
], 8, _hoisted_6),
|
|
19955
|
+
], 8, _hoisted_7),
|
|
19852
19956
|
_cache[10] || (_cache[10] = createTextVNode()),
|
|
19853
19957
|
renderSlot(_ctx.$slots, "default"),
|
|
19854
19958
|
_cache[11] || (_cache[11] = createTextVNode()),
|
|
@@ -19857,7 +19961,7 @@ const _sfc_main$u = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
19857
19961
|
defer: "",
|
|
19858
19962
|
to: props.legendTeleport
|
|
19859
19963
|
}, [
|
|
19860
|
-
createVNode(_sfc_main$
|
|
19964
|
+
createVNode(_sfc_main$w, {
|
|
19861
19965
|
scales: vplot.value?.scales,
|
|
19862
19966
|
theme: __props.theme.legend
|
|
19863
19967
|
}, null, 8, ["scales", "theme"])
|
|
@@ -19867,14 +19971,14 @@ const _sfc_main$u = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
19867
19971
|
};
|
|
19868
19972
|
}
|
|
19869
19973
|
});
|
|
19870
|
-
const _sfc_main$
|
|
19974
|
+
const _sfc_main$u = {
|
|
19871
19975
|
$_type: "action",
|
|
19872
19976
|
$_props: {}
|
|
19873
19977
|
};
|
|
19874
|
-
const _sfc_main$
|
|
19978
|
+
const _sfc_main$t = {
|
|
19875
19979
|
$_type: "layer"
|
|
19876
19980
|
};
|
|
19877
|
-
const _sfc_main$
|
|
19981
|
+
const _sfc_main$s = {
|
|
19878
19982
|
$_props: {
|
|
19879
19983
|
geom: "tile",
|
|
19880
19984
|
stat: "bar"
|
|
@@ -19882,14 +19986,14 @@ const _sfc_main$r = {
|
|
|
19882
19986
|
$_type: "layer",
|
|
19883
19987
|
$_argnames: ["width", "height", "position"]
|
|
19884
19988
|
};
|
|
19885
|
-
const _sfc_main$
|
|
19989
|
+
const _sfc_main$r = {
|
|
19886
19990
|
$_props: {
|
|
19887
19991
|
geom: "blank",
|
|
19888
19992
|
stat: "identity"
|
|
19889
19993
|
},
|
|
19890
19994
|
$_type: "layer"
|
|
19891
19995
|
};
|
|
19892
|
-
const _sfc_main$
|
|
19996
|
+
const _sfc_main$q = {
|
|
19893
19997
|
$_props: {
|
|
19894
19998
|
geom: "boxplot",
|
|
19895
19999
|
stat: "boxplot"
|
|
@@ -19897,6 +20001,14 @@ const _sfc_main$p = {
|
|
|
19897
20001
|
$_type: "layer",
|
|
19898
20002
|
$_argnames: ["width", "height", "position"]
|
|
19899
20003
|
};
|
|
20004
|
+
const _sfc_main$p = {
|
|
20005
|
+
$_props: {
|
|
20006
|
+
geom: "tile",
|
|
20007
|
+
stat: "col"
|
|
20008
|
+
},
|
|
20009
|
+
$_type: "layer",
|
|
20010
|
+
$_argnames: ["width", "height", "position", "orientation"]
|
|
20011
|
+
};
|
|
19900
20012
|
const _sfc_main$o = {
|
|
19901
20013
|
$_props: {
|
|
19902
20014
|
geom: "curve",
|
|
@@ -20046,10 +20158,11 @@ const _sfc_main$6 = {
|
|
|
20046
20158
|
};
|
|
20047
20159
|
const geom_components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
20048
20160
|
__proto__: null,
|
|
20049
|
-
VVGeom: _sfc_main$
|
|
20050
|
-
VVGeomBar: _sfc_main$
|
|
20051
|
-
VVGeomBlank: _sfc_main$
|
|
20052
|
-
VVGeomBoxplot: _sfc_main$
|
|
20161
|
+
VVGeom: _sfc_main$t,
|
|
20162
|
+
VVGeomBar: _sfc_main$s,
|
|
20163
|
+
VVGeomBlank: _sfc_main$r,
|
|
20164
|
+
VVGeomBoxplot: _sfc_main$q,
|
|
20165
|
+
VVGeomCol: _sfc_main$p,
|
|
20053
20166
|
VVGeomCurve: _sfc_main$o,
|
|
20054
20167
|
VVGeomDensity: _sfc_main$n,
|
|
20055
20168
|
VVGeomEllipse: _sfc_main$m,
|
|
@@ -20138,8 +20251,8 @@ const _sfc_main$1 = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
20138
20251
|
const components = {
|
|
20139
20252
|
...geom_components,
|
|
20140
20253
|
...axis_components,
|
|
20141
|
-
VVAction: _sfc_main$
|
|
20142
|
-
VVSelection: _sfc_main$
|
|
20254
|
+
VVAction: _sfc_main$u,
|
|
20255
|
+
VVSelection: _sfc_main$u
|
|
20143
20256
|
};
|
|
20144
20257
|
const opponents = {
|
|
20145
20258
|
x: "y",
|
|
@@ -20196,8 +20309,12 @@ const _sfc_main$1 = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
20196
20309
|
}
|
|
20197
20310
|
}).filter((x2) => x2 != null);
|
|
20198
20311
|
let res = Object.groupBy(comps, (c) => c.type.$_type ?? "dom");
|
|
20199
|
-
for (let type in
|
|
20200
|
-
|
|
20312
|
+
for (let type in vnodes) {
|
|
20313
|
+
if (res[type] == null) {
|
|
20314
|
+
delete vnodes[type][key];
|
|
20315
|
+
} else {
|
|
20316
|
+
vnodes[type][key] = res[type];
|
|
20317
|
+
}
|
|
20201
20318
|
}
|
|
20202
20319
|
}, { immediate: true });
|
|
20203
20320
|
}
|
|
@@ -20604,6 +20721,8 @@ const _sfc_main$1 = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
20604
20721
|
const plotRef = useTemplateRef("plot");
|
|
20605
20722
|
const width = useModel(__props, "width");
|
|
20606
20723
|
const height = useModel(__props, "height");
|
|
20724
|
+
const visible = ref(null);
|
|
20725
|
+
provide("vvplot-visible", visible);
|
|
20607
20726
|
onMounted(() => {
|
|
20608
20727
|
watch(width, (v) => {
|
|
20609
20728
|
wrapperRef.value.style.width = str_c(v, "px") ?? null;
|
|
@@ -20613,8 +20732,10 @@ const _sfc_main$1 = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
20613
20732
|
}, { immediate: true });
|
|
20614
20733
|
});
|
|
20615
20734
|
let oldSize = { width: 0, height: 0 };
|
|
20616
|
-
useResizeObserver(plotRef, (
|
|
20617
|
-
|
|
20735
|
+
useResizeObserver(plotRef, ([entry]) => {
|
|
20736
|
+
visible.value = entry.target.getClientRects().length > 0;
|
|
20737
|
+
if (!visible.value) return;
|
|
20738
|
+
let { width: w, height: h } = entry.contentRect;
|
|
20618
20739
|
if (width.value - w < 0.5 && height.value - h < 0.5) return;
|
|
20619
20740
|
if (wrapperRef.value.style.width) width.value = w;
|
|
20620
20741
|
if (wrapperRef.value.style.height) height.value = h;
|
|
@@ -20657,7 +20778,7 @@ const _sfc_main$1 = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
20657
20778
|
class: "vvplot",
|
|
20658
20779
|
style: wrapperStyle.value
|
|
20659
20780
|
}, vBind.value.wrapper), [
|
|
20660
|
-
createVNode(_sfc_main$
|
|
20781
|
+
createVNode(_sfc_main$v, mergeProps({
|
|
20661
20782
|
ref: "plot",
|
|
20662
20783
|
paddings,
|
|
20663
20784
|
schema: schema.value,
|
|
@@ -20719,15 +20840,16 @@ const _sfc_main = {
|
|
|
20719
20840
|
};
|
|
20720
20841
|
const index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
20721
20842
|
__proto__: null,
|
|
20722
|
-
VVAction: _sfc_main$
|
|
20843
|
+
VVAction: _sfc_main$u,
|
|
20723
20844
|
VVAxis: _sfc_main$5,
|
|
20724
20845
|
VVAxisBreak: _sfc_main$2,
|
|
20725
20846
|
VVAxisX: _sfc_main$4,
|
|
20726
20847
|
VVAxisY: _sfc_main$3,
|
|
20727
|
-
VVGeom: _sfc_main$
|
|
20728
|
-
VVGeomBar: _sfc_main$
|
|
20729
|
-
VVGeomBlank: _sfc_main$
|
|
20730
|
-
VVGeomBoxplot: _sfc_main$
|
|
20848
|
+
VVGeom: _sfc_main$t,
|
|
20849
|
+
VVGeomBar: _sfc_main$s,
|
|
20850
|
+
VVGeomBlank: _sfc_main$r,
|
|
20851
|
+
VVGeomBoxplot: _sfc_main$q,
|
|
20852
|
+
VVGeomCol: _sfc_main$p,
|
|
20731
20853
|
VVGeomCurve: _sfc_main$o,
|
|
20732
20854
|
VVGeomDensity: _sfc_main$n,
|
|
20733
20855
|
VVGeomEllipse: _sfc_main$m,
|
|
@@ -20751,15 +20873,16 @@ const index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
|
|
|
20751
20873
|
VVSelection: _sfc_main
|
|
20752
20874
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
20753
20875
|
export {
|
|
20754
|
-
_sfc_main$
|
|
20876
|
+
_sfc_main$u as VVAction,
|
|
20755
20877
|
_sfc_main$5 as VVAxis,
|
|
20756
20878
|
_sfc_main$2 as VVAxisBreak,
|
|
20757
20879
|
_sfc_main$4 as VVAxisX,
|
|
20758
20880
|
_sfc_main$3 as VVAxisY,
|
|
20759
|
-
_sfc_main$
|
|
20760
|
-
_sfc_main$
|
|
20761
|
-
_sfc_main$
|
|
20762
|
-
_sfc_main$
|
|
20881
|
+
_sfc_main$t as VVGeom,
|
|
20882
|
+
_sfc_main$s as VVGeomBar,
|
|
20883
|
+
_sfc_main$r as VVGeomBlank,
|
|
20884
|
+
_sfc_main$q as VVGeomBoxplot,
|
|
20885
|
+
_sfc_main$p as VVGeomCol,
|
|
20763
20886
|
_sfc_main$o as VVGeomCurve,
|
|
20764
20887
|
_sfc_main$n as VVGeomDensity,
|
|
20765
20888
|
_sfc_main$m as VVGeomEllipse,
|