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