vvplot 0.4.5 → 0.5.0

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.
@@ -243,8 +243,16 @@ var VVPlot = (function(exports, vue) {
243
243
  stop
244
244
  };
245
245
  }
246
+ // @__NO_SIDE_EFFECTS__
247
+ function makeMap(str) {
248
+ const map2 = /* @__PURE__ */ Object.create(null);
249
+ for (const key of str.split(",")) map2[key] = 1;
250
+ return (val) => val in map2;
251
+ }
246
252
  const NO = () => false;
247
253
  const extend$1 = Object.assign;
254
+ const SVG_TAGS = "svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view";
255
+ const isSVGTag = /* @__PURE__ */ makeMap(SVG_TAGS);
248
256
  const TELEPORT = /* @__PURE__ */ Symbol(``);
249
257
  const SUSPENSE = /* @__PURE__ */ Symbol(``);
250
258
  const KEEP_ALIVE = /* @__PURE__ */ Symbol(``);
@@ -1408,7 +1416,7 @@ var VVPlot = (function(exports, vue) {
1408
1416
  }
1409
1417
  },
1410
1418
  oncdata(start2, end) {
1411
- if (stack[0].ns !== 0) {
1419
+ if ((stack[0] ? stack[0].ns : currentOptions.ns) !== 0) {
1412
1420
  onText(getSlice(start2, end), start2, end);
1413
1421
  } else {
1414
1422
  emitError(1, start2 - 9);
@@ -1797,6 +1805,20 @@ var VVPlot = (function(exports, vue) {
1797
1805
  new RegExp(
1798
1806
  "\\b" + "arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b") + "\\b"
1799
1807
  );
1808
+ function expandFragment(componentList) {
1809
+ if (componentList == null) return [];
1810
+ return componentList.flatMap((layer) => {
1811
+ if (layer.type == vue.Fragment) {
1812
+ return expandFragment(layer.children);
1813
+ } else if (layer.type == "template") {
1814
+ return expandFragment(layer.children).map((c) => {
1815
+ c.props = { ...c.props, ...layer.props };
1816
+ return c;
1817
+ });
1818
+ }
1819
+ return layer;
1820
+ });
1821
+ }
1800
1822
  class AsisString extends String {
1801
1823
  static #cache = /* @__PURE__ */ new Map();
1802
1824
  constructor(str) {
@@ -1981,7 +2003,7 @@ var VVPlot = (function(exports, vue) {
1981
2003
  let length = values[0].length;
1982
2004
  if (values.some((v) => v.length != length))
1983
2005
  throw new Error("Arrays must have the same length");
1984
- return Array.from({ length }, (_, i) => values.reduce((s, a) => +a[i] + s, nums));
2006
+ return Array.from({ length }, (_, i) => values.reduce((s, a) => +(a[i] ?? 0) + s, nums));
1985
2007
  },
1986
2008
  /* vectorized opposite of numbers */
1987
2009
  opposite(value) {
@@ -2024,8 +2046,7 @@ var VVPlot = (function(exports, vue) {
2024
2046
  if (arr.length == 0) return null;
2025
2047
  return arr.reduce((a, c) => {
2026
2048
  for (let k in c) {
2027
- if (c[k] === null) delete a[k];
2028
- if (c[k] != void 0) a[k] = c[k];
2049
+ if (c[k] !== void 0) a[k] = c[k];
2029
2050
  }
2030
2051
  return a;
2031
2052
  }, {});
@@ -2035,11 +2056,12 @@ var VVPlot = (function(exports, vue) {
2035
2056
  if (args.some((x2) => x2 === null)) return null;
2036
2057
  return args.join("");
2037
2058
  }
2038
- function unique(arr, mapper = null) {
2059
+ function unique(arr, key = null, priority = null) {
2039
2060
  let map2 = /* @__PURE__ */ new Map();
2040
2061
  for (let i in arr) {
2041
- let key = mapper ? mapper(arr[i]) : arr[i];
2042
- if (!map2.has(key)) map2.set(key, arr[i]);
2062
+ let k = key ? key(arr[i]) : arr[i];
2063
+ if (!map2.has(k)) map2.set(k, arr[i]);
2064
+ else if (priority) map2.set(k, priority(map2.get(k), arr[i]));
2043
2065
  }
2044
2066
  return Array.from(map2.values());
2045
2067
  }
@@ -2208,7 +2230,7 @@ var VVPlot = (function(exports, vue) {
2208
2230
  img.setAttribute("height", foreignElement.getAttribute("height"));
2209
2231
  foreignClone.parentNode.replaceChild(img, foreignClone);
2210
2232
  }
2211
- for (let node of svgClone.querySelectorAll(".vvplot-interactive")) node.remove();
2233
+ for (let node of svgClone.querySelectorAll(".vvplot-interactive,foreignObject")) node.remove();
2212
2234
  removeComments(svgClone);
2213
2235
  svgClone.setAttribute("xmlns", "http://www.w3.org/2000/svg");
2214
2236
  svgClone.setAttribute("xmlns:xlink", "http://www.w3.org/1999/xlink");
@@ -2226,7 +2248,9 @@ var VVPlot = (function(exports, vue) {
2226
2248
  tick_width: 1,
2227
2249
  tick_length: 5,
2228
2250
  label_size: 12,
2229
- title_size: 18
2251
+ title_size: 18,
2252
+ grid_width: 1,
2253
+ grid_width_major: 2
2230
2254
  },
2231
2255
  axis_h: {
2232
2256
  title_offset: 20
@@ -2251,10 +2275,6 @@ var VVPlot = (function(exports, vue) {
2251
2275
  tick_position: "bottom",
2252
2276
  title_position: "bottom"
2253
2277
  },
2254
- grid: {
2255
- line_width: 1,
2256
- line_width_major: 2
2257
- },
2258
2278
  plot: {
2259
2279
  margin: 20,
2260
2280
  padding_h: 50,
@@ -2272,10 +2292,8 @@ var VVPlot = (function(exports, vue) {
2272
2292
  line_color: "black",
2273
2293
  tick_color: "black",
2274
2294
  label_color: "black",
2275
- title_color: "black"
2276
- },
2277
- grid: {
2278
- line_color: "#eeeeee"
2295
+ title_color: "black",
2296
+ grid_color: "#eeeeee"
2279
2297
  }
2280
2298
  };
2281
2299
  const theme_light = {
@@ -2283,20 +2301,16 @@ var VVPlot = (function(exports, vue) {
2283
2301
  line_color: "gray",
2284
2302
  tick_color: "gray",
2285
2303
  label_color: "gray",
2286
- title_color: "gray"
2287
- },
2288
- grid: {
2289
- line_color: "#eeeeee"
2304
+ title_color: "gray",
2305
+ grid_color: "#eeeeee"
2290
2306
  }
2291
2307
  };
2292
2308
  const theme_gray = {
2293
2309
  axis: {
2294
2310
  tick_color: "black",
2295
2311
  label_color: "black",
2296
- title_color: "black"
2297
- },
2298
- grid: {
2299
- line_color: "white"
2312
+ title_color: "black",
2313
+ grid_color: "white"
2300
2314
  },
2301
2315
  plot: {
2302
2316
  background: "#eeeeee"
@@ -2306,10 +2320,8 @@ var VVPlot = (function(exports, vue) {
2306
2320
  axis: {
2307
2321
  tick_color: "#333333",
2308
2322
  label_color: "#555555",
2309
- title_color: "black"
2310
- },
2311
- grid: {
2312
- line_color: "#666666"
2323
+ title_color: "black",
2324
+ grid_color: "#666666"
2313
2325
  },
2314
2326
  plot: {
2315
2327
  background: "#888888"
@@ -2320,12 +2332,10 @@ var VVPlot = (function(exports, vue) {
2320
2332
  line_color: "black",
2321
2333
  tick_color: "black",
2322
2334
  label_color: "black",
2323
- title_color: "black"
2324
- },
2325
- grid: {
2326
- line_color: "black",
2327
- line_width_major: 1,
2328
- line_width_minor: 0.5
2335
+ title_color: "black",
2336
+ grid_color: "black",
2337
+ grid_width: 0.5,
2338
+ grid_width_major: 1
2329
2339
  }
2330
2340
  };
2331
2341
  const theme_classic = {
@@ -2334,12 +2344,10 @@ var VVPlot = (function(exports, vue) {
2334
2344
  tick_color: "black",
2335
2345
  label_color: "black",
2336
2346
  title_color: "black"
2337
- },
2338
- grid: null
2347
+ }
2339
2348
  };
2340
2349
  const theme_void = {
2341
- axis: null,
2342
- grid: null
2350
+ axis: null
2343
2351
  };
2344
2352
  function themeMerge(...themes) {
2345
2353
  return themes.reduce((acc, t) => {
@@ -2359,10 +2367,6 @@ var VVPlot = (function(exports, vue) {
2359
2367
  axis_v,
2360
2368
  axis_x,
2361
2369
  axis_y,
2362
- grid_h,
2363
- grid_v,
2364
- grid_x,
2365
- grid_y,
2366
2370
  plot: {
2367
2371
  margin_x,
2368
2372
  margin_y,
@@ -2379,8 +2383,6 @@ var VVPlot = (function(exports, vue) {
2379
2383
  if (flip) {
2380
2384
  axis_h = obj_merge(axis_h, axis_y);
2381
2385
  axis_v = obj_merge(axis_v, axis_x);
2382
- grid_h = obj_merge(grid_h, grid_x);
2383
- grid_v = obj_merge(grid_v, grid_y);
2384
2386
  plot.margin_h = margin_y === void 0 ? margin_h : margin_y;
2385
2387
  plot.margin_v = margin_x === void 0 ? margin_v : margin_x;
2386
2388
  plot.padding_h = padding_y === void 0 ? padding_h : padding_y;
@@ -2388,8 +2390,6 @@ var VVPlot = (function(exports, vue) {
2388
2390
  } else {
2389
2391
  axis_h = obj_merge(axis_h, axis_x);
2390
2392
  axis_v = obj_merge(axis_v, axis_y);
2391
- grid_h = obj_merge(grid_h, grid_y);
2392
- grid_v = obj_merge(grid_v, grid_x);
2393
2393
  plot.margin_h = margin_x === void 0 ? margin_h : margin_x;
2394
2394
  plot.margin_v = margin_y === void 0 ? margin_v : margin_y;
2395
2395
  plot.padding_h = padding_x === void 0 ? padding_h : padding_x;
@@ -2398,21 +2398,11 @@ var VVPlot = (function(exports, vue) {
2398
2398
  return {
2399
2399
  axis_h,
2400
2400
  axis_v,
2401
- grid_h,
2402
- grid_v,
2403
2401
  plot,
2404
2402
  ...rest
2405
2403
  };
2406
2404
  }
2407
2405
  function themeBuild(theme2) {
2408
- function _grid_build(grid_theme) {
2409
- return {
2410
- line_color_major: ["line_color", "line_color_major"].map((k) => grid_theme?.[k]).findLast((x2) => x2 !== void 0),
2411
- line_color_minor: ["line_color", "line_color_minor"].map((k) => grid_theme?.[k]).findLast((x2) => x2 !== void 0),
2412
- line_width_major: ["line_width", "line_width_major"].map((k) => grid_theme?.[k]).findLast((x2) => x2 !== void 0),
2413
- line_width_minor: ["line_width", "line_width_minor"].map((k) => grid_theme?.[k]).findLast((x2) => x2 !== void 0)
2414
- };
2415
- }
2416
2406
  return {
2417
2407
  axis: {
2418
2408
  h: obj_merge(...["axis", "axis_h"].map((k) => theme2?.[k])),
@@ -2430,10 +2420,6 @@ var VVPlot = (function(exports, vue) {
2430
2420
  ...["axis", "axis_h", "axis_bottom"].map((k) => theme2?.[k])
2431
2421
  )
2432
2422
  },
2433
- grid: {
2434
- h: _grid_build(obj_merge(...["grid", "grid_h"].map((k) => theme2?.[k]))),
2435
- v: _grid_build(obj_merge(...["grid", "grid_v"].map((k) => theme2?.[k])))
2436
- },
2437
2423
  plot: {
2438
2424
  margin: {
2439
2425
  left: ["margin", "margin_h", "margin_left"].map((k) => theme2?.plot?.[k]).findLast((x2) => x2 !== void 0) ?? 0,
@@ -2779,7 +2765,7 @@ var VVPlot = (function(exports, vue) {
2779
2765
  textsegment: textsegment$1,
2780
2766
  tile: tile$1
2781
2767
  }, Symbol.toStringTag, { value: "Module" }));
2782
- const bar = Object.assign(function(data) {
2768
+ const bar = Object.assign(function(data, { position = "stack", width = 1, height = 1 }) {
2783
2769
  if (data.x != null && data.y != null)
2784
2770
  throw new Error(`"StatBar" only supports "x" or "y", not both`);
2785
2771
  let values = data.x ?? data.y;
@@ -2794,18 +2780,45 @@ var VVPlot = (function(exports, vue) {
2794
2780
  let $raw = Array.from(groups.values()), cates = Array.from(groups.keys());
2795
2781
  let result = {
2796
2782
  $raw,
2797
- count: $raw.map((x2) => x2.length),
2798
- $group: cates.map((x2) => x2.group),
2799
- value: cates.map((x2) => x2.value)
2783
+ $group: cates.map((x2) => x2.group)
2800
2784
  };
2801
2785
  for (let key of keys) {
2802
2786
  result[key] = cates.map((x2) => x2.group).map((i) => group.categories[i][key]);
2803
2787
  }
2804
2788
  if (data.x) {
2805
- return (({ value, count, ...etc }) => ({ x: value, y: count.map((x2) => x2 / 2), height: count, ...etc }))(result);
2789
+ result.x = cates.map((v) => v.value);
2790
+ result.height = $raw.map((v) => v.length);
2806
2791
  } else {
2807
- return (({ value, count, ...etc }) => ({ y: value, x: count.map((x2) => x2 / 2), width: count, ...etc }))(result);
2792
+ result.y = cates.map((v) => v.value);
2793
+ result.width = $raw.map((v) => v.length);
2794
+ }
2795
+ if (position == "dodge") {
2796
+ if (data.x) {
2797
+ 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);
2800
+ } else {
2801
+ 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);
2804
+ }
2805
+ } 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);
2815
+ result.width = cates.map((_) => width);
2816
+ } else {
2817
+ result.x = result.width.map((v, i) => offset[i] + v / 2);
2818
+ result.height = cates.map((_) => height);
2819
+ }
2808
2820
  }
2821
+ return result;
2809
2822
  }, { core_attrs: ["x", "y", "xnudge", "ynudge"] });
2810
2823
  const boxplot = Object.assign(function(data, {}) {
2811
2824
  let missingAes = ["x", "y"].filter((a) => data[a] == null);
@@ -7186,42 +7199,39 @@ var VVPlot = (function(exports, vue) {
7186
7199
  this.titles = titles ?? vvlabel.asis();
7187
7200
  this.minorBreaks = minorBreaks ?? breaks ?? scale.minorBreaks ?? scale.breaks;
7188
7201
  }
7189
- getBindings({ range: range2, expandMult } = {}) {
7202
+ getBreaks({ range: range2, expandMult, breakSlot } = {}) {
7190
7203
  let majorBreaks = this.breaks, minorBreaks = this.minorBreaks, labels = this.labels, titles = this.titles;
7191
7204
  let min = range2?.min ?? this?.range?.min, max = range2?.max ?? this?.range?.max, interval2 = max - min || 0;
7192
7205
  min = min == null ? min : plus$1(min, -(expandMult?.min ?? 0) * interval2);
7193
7206
  max = max == null ? max : plus$1(max, +(expandMult?.max ?? 0) * interval2);
7194
- function normalizeBreaks(val) {
7195
- if (val.position != null) return val;
7196
- return { position: val };
7197
- }
7198
7207
  if (typeof majorBreaks == "function") majorBreaks = majorBreaks({ min, max });
7199
- majorBreaks = Array.isArray(majorBreaks) ? majorBreaks.map(normalizeBreaks) : [];
7200
- let breaks = majorBreaks.map((x2) => x2.position);
7201
- if (typeof minorBreaks == "function") minorBreaks = minorBreaks({ min, max, minor: true });
7202
- minorBreaks = Array.isArray(minorBreaks) ? minorBreaks.map(normalizeBreaks) : [];
7203
- if (typeof labels === "function") labels = breaks.map(labels);
7208
+ if (!Array.isArray(majorBreaks)) majorBreaks = [];
7209
+ if (typeof labels === "function") labels = majorBreaks.map(labels);
7204
7210
  if (!Array.isArray(labels)) {
7205
7211
  labels = [];
7206
- } else if (labels.length != breaks.length) {
7212
+ } else if (labels.length != majorBreaks.length) {
7207
7213
  throw new Error("Length of labels must be the same as breaks");
7208
7214
  }
7209
- if (typeof titles === "function") titles = breaks.map(titles);
7215
+ if (typeof titles === "function") titles = majorBreaks.map(titles);
7210
7216
  if (!Array.isArray(titles)) {
7211
7217
  titles = [];
7212
- } else if (titles.length != breaks.length) {
7218
+ } else if (titles.length != majorBreaks.length) {
7213
7219
  throw new Error("Length of titles must be the same as breaks");
7214
7220
  }
7215
- return {
7216
- majorBreaks,
7217
- minorBreaks,
7218
- ticks: breaks.map((position, i) => ({ position, label: labels[i], title: titles[i] }))
7219
- };
7221
+ if (typeof minorBreaks == "function") minorBreaks = minorBreaks({ min, max, minor: true });
7222
+ if (!Array.isArray(minorBreaks)) minorBreaks = [];
7223
+ majorBreaks = majorBreaks.map((value, i) => ({ type: "major", value, label: labels[i], title: titles[i] }));
7224
+ minorBreaks = minorBreaks.map((x2) => ({ type: "minor", value: x2 }));
7225
+ let breaks = majorBreaks.concat(minorBreaks);
7226
+ if (breakSlot instanceof Function) {
7227
+ breaks = expandFragment(breakSlot({ breaks, majorBreaks, minorBreaks, min, max })).filter((c) => c.type.$_type == "axis-break").map((c) => ({ ...c.type.$_props, ...c.props }));
7228
+ }
7229
+ return breaks;
7220
7230
  }
7221
7231
  }
7222
7232
  const _hoisted_1$e = ["font-size"];
7223
7233
  const _hoisted_2$8 = { key: 0 };
7224
- const _sfc_main$13 = {
7234
+ const _sfc_main$15 = {
7225
7235
  __name: "CoreText",
7226
7236
  props: {
7227
7237
  x: { type: Number, default: 0 },
@@ -7306,7 +7316,7 @@ var VVPlot = (function(exports, vue) {
7306
7316
  }), [
7307
7317
  vue.renderSlot(_ctx.$slots, "default", {}, () => [
7308
7318
  __props.title ? (vue.openBlock(), vue.createElementBlock("title", _hoisted_2$8, vue.toDisplayString(__props.title), 1)) : vue.createCommentVNode("", true),
7309
- vue.createTextVNode(" " + vue.toDisplayString(__props.text.replace(/ /g, " ")), 1)
7319
+ vue.createTextVNode(" " + vue.toDisplayString(__props.text?.replace(/ /g, " ")), 1)
7310
7320
  ])
7311
7321
  ], 16, _hoisted_1$e);
7312
7322
  };
@@ -7747,16 +7757,16 @@ var VVPlot = (function(exports, vue) {
7747
7757
  function requireDecode() {
7748
7758
  if (hasRequiredDecode) return decode;
7749
7759
  hasRequiredDecode = 1;
7750
- (function(exports$1) {
7760
+ (function(exports2) {
7751
7761
  var __importDefault = decode && decode.__importDefault || function(mod) {
7752
7762
  return mod && mod.__esModule ? mod : { "default": mod };
7753
7763
  };
7754
- Object.defineProperty(exports$1, "__esModule", { value: true });
7755
- exports$1.decodeXML = exports$1.decodeHTMLStrict = exports$1.decodeHTML = exports$1.determineBranch = exports$1.JUMP_OFFSET_BASE = exports$1.BinTrieFlags = exports$1.xmlDecodeTree = exports$1.htmlDecodeTree = void 0;
7764
+ Object.defineProperty(exports2, "__esModule", { value: true });
7765
+ exports2.decodeXML = exports2.decodeHTMLStrict = exports2.decodeHTML = exports2.determineBranch = exports2.JUMP_OFFSET_BASE = exports2.BinTrieFlags = exports2.xmlDecodeTree = exports2.htmlDecodeTree = void 0;
7756
7766
  var decode_data_html_1 = __importDefault(/* @__PURE__ */ requireDecodeDataHtml());
7757
- exports$1.htmlDecodeTree = decode_data_html_1.default;
7767
+ exports2.htmlDecodeTree = decode_data_html_1.default;
7758
7768
  var decode_data_xml_1 = __importDefault(/* @__PURE__ */ requireDecodeDataXml());
7759
- exports$1.xmlDecodeTree = decode_data_xml_1.default;
7769
+ exports2.xmlDecodeTree = decode_data_xml_1.default;
7760
7770
  var decode_codepoint_1 = __importDefault(/* @__PURE__ */ requireDecode_codepoint());
7761
7771
  var BinTrieFlags;
7762
7772
  (function(BinTrieFlags2) {
@@ -7764,8 +7774,8 @@ var VVPlot = (function(exports, vue) {
7764
7774
  BinTrieFlags2[BinTrieFlags2["BRANCH_LENGTH"] = 32512] = "BRANCH_LENGTH";
7765
7775
  BinTrieFlags2[BinTrieFlags2["MULTI_BYTE"] = 128] = "MULTI_BYTE";
7766
7776
  BinTrieFlags2[BinTrieFlags2["JUMP_TABLE"] = 127] = "JUMP_TABLE";
7767
- })(BinTrieFlags = exports$1.BinTrieFlags || (exports$1.BinTrieFlags = {}));
7768
- exports$1.JUMP_OFFSET_BASE = 48 - 1;
7777
+ })(BinTrieFlags = exports2.BinTrieFlags || (exports2.BinTrieFlags = {}));
7778
+ exports2.JUMP_OFFSET_BASE = 48 - 1;
7769
7779
  function getDecoder(decodeTree) {
7770
7780
  return function decodeHTMLBinary(str, strict) {
7771
7781
  var ret = "";
@@ -7838,7 +7848,7 @@ var VVPlot = (function(exports, vue) {
7838
7848
  }
7839
7849
  var jumpOffset = current & BinTrieFlags.JUMP_TABLE;
7840
7850
  if (jumpOffset) {
7841
- var value = char - exports$1.JUMP_OFFSET_BASE - jumpOffset;
7851
+ var value = char - exports2.JUMP_OFFSET_BASE - jumpOffset;
7842
7852
  return value < 0 || value > branchCount ? -1 : decodeTree[nodeIdx + value] - 1;
7843
7853
  }
7844
7854
  var lo = nodeIdx;
@@ -7856,21 +7866,21 @@ var VVPlot = (function(exports, vue) {
7856
7866
  }
7857
7867
  return -1;
7858
7868
  }
7859
- exports$1.determineBranch = determineBranch;
7869
+ exports2.determineBranch = determineBranch;
7860
7870
  var htmlDecoder = getDecoder(decode_data_html_1.default);
7861
7871
  var xmlDecoder = getDecoder(decode_data_xml_1.default);
7862
7872
  function decodeHTML(str) {
7863
7873
  return htmlDecoder(str, false);
7864
7874
  }
7865
- exports$1.decodeHTML = decodeHTML;
7875
+ exports2.decodeHTML = decodeHTML;
7866
7876
  function decodeHTMLStrict(str) {
7867
7877
  return htmlDecoder(str, true);
7868
7878
  }
7869
- exports$1.decodeHTMLStrict = decodeHTMLStrict;
7879
+ exports2.decodeHTMLStrict = decodeHTMLStrict;
7870
7880
  function decodeXML(str) {
7871
7881
  return xmlDecoder(str, true);
7872
7882
  }
7873
- exports$1.decodeXML = decodeXML;
7883
+ exports2.decodeXML = decodeXML;
7874
7884
  })(decode);
7875
7885
  return decode;
7876
7886
  }
@@ -12142,17 +12152,17 @@ var VVPlot = (function(exports, vue) {
12142
12152
  function requireEncodeTrie() {
12143
12153
  if (hasRequiredEncodeTrie) return encodeTrie;
12144
12154
  hasRequiredEncodeTrie = 1;
12145
- (function(exports$1) {
12155
+ (function(exports2) {
12146
12156
  var __importDefault = encodeTrie && encodeTrie.__importDefault || function(mod) {
12147
12157
  return mod && mod.__esModule ? mod : { "default": mod };
12148
12158
  };
12149
- Object.defineProperty(exports$1, "__esModule", { value: true });
12150
- exports$1.getTrie = exports$1.encodeHTMLTrieRe = exports$1.getCodePoint = void 0;
12159
+ Object.defineProperty(exports2, "__esModule", { value: true });
12160
+ exports2.getTrie = exports2.encodeHTMLTrieRe = exports2.getCodePoint = void 0;
12151
12161
  var entities_json_1 = __importDefault(require$$2);
12152
12162
  function isHighSurrugate(c) {
12153
12163
  return (c & 64512) === 55296;
12154
12164
  }
12155
- exports$1.getCodePoint = // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
12165
+ exports2.getCodePoint = // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
12156
12166
  String.prototype.codePointAt != null ? function(str, index2) {
12157
12167
  return str.codePointAt(index2);
12158
12168
  } : (
@@ -12184,13 +12194,13 @@ var VVPlot = (function(exports, vue) {
12184
12194
  ret += str.substring(lastIdx, i) + next2.value;
12185
12195
  lastIdx = i + 1;
12186
12196
  } else {
12187
- ret += str.substring(lastIdx, i) + "&#x" + exports$1.getCodePoint(str, i).toString(16) + ";";
12197
+ ret += str.substring(lastIdx, i) + "&#x" + exports2.getCodePoint(str, i).toString(16) + ";";
12188
12198
  lastIdx = regExp.lastIndex += Number(isHighSurrugate(char));
12189
12199
  }
12190
12200
  }
12191
12201
  return ret + str.substr(lastIdx);
12192
12202
  }
12193
- exports$1.encodeHTMLTrieRe = encodeHTMLTrieRe;
12203
+ exports2.encodeHTMLTrieRe = encodeHTMLTrieRe;
12194
12204
  function getTrie(map2) {
12195
12205
  var _a, _b, _c, _d;
12196
12206
  var trie2 = /* @__PURE__ */ new Map();
@@ -12210,7 +12220,7 @@ var VVPlot = (function(exports, vue) {
12210
12220
  }
12211
12221
  return trie2;
12212
12222
  }
12213
- exports$1.getTrie = getTrie;
12223
+ exports2.getTrie = getTrie;
12214
12224
  })(encodeTrie);
12215
12225
  return encodeTrie;
12216
12226
  }
@@ -12305,27 +12315,27 @@ var VVPlot = (function(exports, vue) {
12305
12315
  function requireLib() {
12306
12316
  if (hasRequiredLib) return lib;
12307
12317
  hasRequiredLib = 1;
12308
- (function(exports$1) {
12309
- Object.defineProperty(exports$1, "__esModule", { value: true });
12310
- exports$1.decodeXMLStrict = exports$1.decodeHTML5Strict = exports$1.decodeHTML4Strict = exports$1.decodeHTML5 = exports$1.decodeHTML4 = exports$1.decodeHTMLStrict = exports$1.decodeHTML = exports$1.decodeXML = exports$1.encodeHTML5 = exports$1.encodeHTML4 = exports$1.escapeUTF8 = exports$1.escape = exports$1.encodeNonAsciiHTML = exports$1.encodeHTML = exports$1.encodeXML = exports$1.encode = exports$1.decodeStrict = exports$1.decode = exports$1.EncodingMode = exports$1.DecodingMode = exports$1.EntityLevel = void 0;
12318
+ (function(exports2) {
12319
+ Object.defineProperty(exports2, "__esModule", { value: true });
12320
+ exports2.decodeXMLStrict = exports2.decodeHTML5Strict = exports2.decodeHTML4Strict = exports2.decodeHTML5 = exports2.decodeHTML4 = exports2.decodeHTMLStrict = exports2.decodeHTML = exports2.decodeXML = exports2.encodeHTML5 = exports2.encodeHTML4 = exports2.escapeUTF8 = exports2.escape = exports2.encodeNonAsciiHTML = exports2.encodeHTML = exports2.encodeXML = exports2.encode = exports2.decodeStrict = exports2.decode = exports2.EncodingMode = exports2.DecodingMode = exports2.EntityLevel = void 0;
12311
12321
  var decode_1 = /* @__PURE__ */ requireDecode();
12312
12322
  var encode_12 = /* @__PURE__ */ requireEncode();
12313
12323
  var EntityLevel;
12314
12324
  (function(EntityLevel2) {
12315
12325
  EntityLevel2[EntityLevel2["XML"] = 0] = "XML";
12316
12326
  EntityLevel2[EntityLevel2["HTML"] = 1] = "HTML";
12317
- })(EntityLevel = exports$1.EntityLevel || (exports$1.EntityLevel = {}));
12327
+ })(EntityLevel = exports2.EntityLevel || (exports2.EntityLevel = {}));
12318
12328
  var DecodingMode;
12319
12329
  (function(DecodingMode2) {
12320
12330
  DecodingMode2[DecodingMode2["Legacy"] = 0] = "Legacy";
12321
12331
  DecodingMode2[DecodingMode2["Strict"] = 1] = "Strict";
12322
- })(DecodingMode = exports$1.DecodingMode || (exports$1.DecodingMode = {}));
12332
+ })(DecodingMode = exports2.DecodingMode || (exports2.DecodingMode = {}));
12323
12333
  var EncodingMode;
12324
12334
  (function(EncodingMode2) {
12325
12335
  EncodingMode2[EncodingMode2["UTF8"] = 0] = "UTF8";
12326
12336
  EncodingMode2[EncodingMode2["ASCII"] = 1] = "ASCII";
12327
12337
  EncodingMode2[EncodingMode2["Extensive"] = 2] = "Extensive";
12328
- })(EncodingMode = exports$1.EncodingMode || (exports$1.EncodingMode = {}));
12338
+ })(EncodingMode = exports2.EncodingMode || (exports2.EncodingMode = {}));
12329
12339
  function decode2(data, options) {
12330
12340
  if (options === void 0) {
12331
12341
  options = EntityLevel.XML;
@@ -12339,7 +12349,7 @@ var VVPlot = (function(exports, vue) {
12339
12349
  }
12340
12350
  return decode_1.decodeXML(data);
12341
12351
  }
12342
- exports$1.decode = decode2;
12352
+ exports2.decode = decode2;
12343
12353
  function decodeStrict(data, options) {
12344
12354
  if (options === void 0) {
12345
12355
  options = EntityLevel.XML;
@@ -12353,7 +12363,7 @@ var VVPlot = (function(exports, vue) {
12353
12363
  }
12354
12364
  return decode_1.decodeXML(data);
12355
12365
  }
12356
- exports$1.decodeStrict = decodeStrict;
12366
+ exports2.decodeStrict = decodeStrict;
12357
12367
  function encode2(data, options) {
12358
12368
  if (options === void 0) {
12359
12369
  options = EntityLevel.XML;
@@ -12369,52 +12379,52 @@ var VVPlot = (function(exports, vue) {
12369
12379
  }
12370
12380
  return encode_12.encodeXML(data);
12371
12381
  }
12372
- exports$1.encode = encode2;
12382
+ exports2.encode = encode2;
12373
12383
  var encode_2 = /* @__PURE__ */ requireEncode();
12374
- Object.defineProperty(exports$1, "encodeXML", { enumerable: true, get: function() {
12384
+ Object.defineProperty(exports2, "encodeXML", { enumerable: true, get: function() {
12375
12385
  return encode_2.encodeXML;
12376
12386
  } });
12377
- Object.defineProperty(exports$1, "encodeHTML", { enumerable: true, get: function() {
12387
+ Object.defineProperty(exports2, "encodeHTML", { enumerable: true, get: function() {
12378
12388
  return encode_2.encodeHTML;
12379
12389
  } });
12380
- Object.defineProperty(exports$1, "encodeNonAsciiHTML", { enumerable: true, get: function() {
12390
+ Object.defineProperty(exports2, "encodeNonAsciiHTML", { enumerable: true, get: function() {
12381
12391
  return encode_2.encodeNonAsciiHTML;
12382
12392
  } });
12383
- Object.defineProperty(exports$1, "escape", { enumerable: true, get: function() {
12393
+ Object.defineProperty(exports2, "escape", { enumerable: true, get: function() {
12384
12394
  return encode_2.escape;
12385
12395
  } });
12386
- Object.defineProperty(exports$1, "escapeUTF8", { enumerable: true, get: function() {
12396
+ Object.defineProperty(exports2, "escapeUTF8", { enumerable: true, get: function() {
12387
12397
  return encode_2.escapeUTF8;
12388
12398
  } });
12389
- Object.defineProperty(exports$1, "encodeHTML4", { enumerable: true, get: function() {
12399
+ Object.defineProperty(exports2, "encodeHTML4", { enumerable: true, get: function() {
12390
12400
  return encode_2.encodeHTML;
12391
12401
  } });
12392
- Object.defineProperty(exports$1, "encodeHTML5", { enumerable: true, get: function() {
12402
+ Object.defineProperty(exports2, "encodeHTML5", { enumerable: true, get: function() {
12393
12403
  return encode_2.encodeHTML;
12394
12404
  } });
12395
12405
  var decode_2 = /* @__PURE__ */ requireDecode();
12396
- Object.defineProperty(exports$1, "decodeXML", { enumerable: true, get: function() {
12406
+ Object.defineProperty(exports2, "decodeXML", { enumerable: true, get: function() {
12397
12407
  return decode_2.decodeXML;
12398
12408
  } });
12399
- Object.defineProperty(exports$1, "decodeHTML", { enumerable: true, get: function() {
12409
+ Object.defineProperty(exports2, "decodeHTML", { enumerable: true, get: function() {
12400
12410
  return decode_2.decodeHTML;
12401
12411
  } });
12402
- Object.defineProperty(exports$1, "decodeHTMLStrict", { enumerable: true, get: function() {
12412
+ Object.defineProperty(exports2, "decodeHTMLStrict", { enumerable: true, get: function() {
12403
12413
  return decode_2.decodeHTMLStrict;
12404
12414
  } });
12405
- Object.defineProperty(exports$1, "decodeHTML4", { enumerable: true, get: function() {
12415
+ Object.defineProperty(exports2, "decodeHTML4", { enumerable: true, get: function() {
12406
12416
  return decode_2.decodeHTML;
12407
12417
  } });
12408
- Object.defineProperty(exports$1, "decodeHTML5", { enumerable: true, get: function() {
12418
+ Object.defineProperty(exports2, "decodeHTML5", { enumerable: true, get: function() {
12409
12419
  return decode_2.decodeHTML;
12410
12420
  } });
12411
- Object.defineProperty(exports$1, "decodeHTML4Strict", { enumerable: true, get: function() {
12421
+ Object.defineProperty(exports2, "decodeHTML4Strict", { enumerable: true, get: function() {
12412
12422
  return decode_2.decodeHTMLStrict;
12413
12423
  } });
12414
- Object.defineProperty(exports$1, "decodeHTML5Strict", { enumerable: true, get: function() {
12424
+ Object.defineProperty(exports2, "decodeHTML5Strict", { enumerable: true, get: function() {
12415
12425
  return decode_2.decodeHTMLStrict;
12416
12426
  } });
12417
- Object.defineProperty(exports$1, "decodeXMLStrict", { enumerable: true, get: function() {
12427
+ Object.defineProperty(exports2, "decodeXMLStrict", { enumerable: true, get: function() {
12418
12428
  return decode_2.decodeXML;
12419
12429
  } });
12420
12430
  })(lib);
@@ -14472,7 +14482,7 @@ var VVPlot = (function(exports, vue) {
14472
14482
  XmlRenderer.prototype.esc = escapeXml;
14473
14483
  const _hoisted_1$d = ["text-anchor", "font-size"];
14474
14484
  const _hoisted_2$7 = { key: 0 };
14475
- const _sfc_main$12 = {
14485
+ const _sfc_main$14 = {
14476
14486
  __name: "CoreMarkdown",
14477
14487
  props: {
14478
14488
  x: { type: Number, default: 0 },
@@ -14619,6 +14629,72 @@ var VVPlot = (function(exports, vue) {
14619
14629
  };
14620
14630
  }
14621
14631
  };
14632
+ const _sfc_main$13 = {
14633
+ __name: "CoreAxisLabel",
14634
+ props: {
14635
+ type: String,
14636
+ value: null,
14637
+ getPosition: Function
14638
+ },
14639
+ emits: [
14640
+ "click",
14641
+ "dblclick",
14642
+ "contextmenu",
14643
+ "pointerdown",
14644
+ "pointerup",
14645
+ "pointerover",
14646
+ "pointerout",
14647
+ "pointerenter",
14648
+ "pointerleave",
14649
+ "pointermove",
14650
+ "wheel",
14651
+ "singleclick"
14652
+ ],
14653
+ setup(__props, { emit: __emit }) {
14654
+ const emit = __emit;
14655
+ const vOn = {
14656
+ pointerdown(e) {
14657
+ emit("pointerdown", e, __props.getPosition(e), __props.value);
14658
+ },
14659
+ pointerup(e) {
14660
+ emit("pointerup", e, __props.getPosition(e), __props.value);
14661
+ },
14662
+ pointerover(e) {
14663
+ emit("pointerover", e, __props.getPosition(e), __props.value);
14664
+ },
14665
+ pointerout(e) {
14666
+ emit("pointerout", e, __props.getPosition(e), __props.value);
14667
+ },
14668
+ pointerenter(e) {
14669
+ emit("pointerenter", e, __props.getPosition(e), __props.value);
14670
+ },
14671
+ pointerleave(e) {
14672
+ emit("pointerleave", e, __props.getPosition(e), __props.value);
14673
+ },
14674
+ dblclick(e) {
14675
+ emit("dblclick", e, __props.getPosition(e), __props.value);
14676
+ },
14677
+ click(e) {
14678
+ emit("click", e, __props.getPosition(e), __props.value);
14679
+ },
14680
+ singleclick(e) {
14681
+ emit("singleclick", e, __props.getPosition(e), __props.value);
14682
+ },
14683
+ contextmenu(e) {
14684
+ emit("contextmenu", e, __props.getPosition(e), __props.value);
14685
+ },
14686
+ pointermove(e) {
14687
+ emit("pointermove", e, __props.getPosition(e), __props.value);
14688
+ },
14689
+ wheel(e) {
14690
+ emit("wheel", e, __props.getPosition(e), __props.value);
14691
+ }
14692
+ };
14693
+ 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));
14695
+ };
14696
+ }
14697
+ };
14622
14698
  const _hoisted_1$c = ["transform"];
14623
14699
  const _hoisted_2$6 = ["x2"];
14624
14700
  const _hoisted_3$4 = {
@@ -14627,12 +14703,12 @@ var VVPlot = (function(exports, vue) {
14627
14703
  };
14628
14704
  const _hoisted_4$3 = ["width", "cursor"];
14629
14705
  const _hoisted_5$2 = {
14630
- key: 0,
14706
+ key: 1,
14631
14707
  class: "vvplot-interactive",
14632
14708
  fill: "transparent"
14633
14709
  };
14634
14710
  const _hoisted_6$2 = ["x"];
14635
- const _sfc_main$11 = {
14711
+ const _sfc_main$12 = {
14636
14712
  __name: "CoreAxisH",
14637
14713
  props: {
14638
14714
  coord: String,
@@ -14713,20 +14789,20 @@ var VVPlot = (function(exports, vue) {
14713
14789
  const tickLines = vue.computed(() => {
14714
14790
  let result = [];
14715
14791
  for (let tick of __props.ticks) {
14716
- if (typeof tick == "number") tick = { position: tick };
14717
- let pos = __props.coord2pos({ h: tick.position }).h;
14792
+ let { value, theme: $theme } = tick;
14793
+ let pos = __props.coord2pos({ h: value }).h;
14718
14794
  let tsl = pos * (__props.activeTransform.scaleH - 1) + __props.activeTransform.translateH;
14719
- let position = pos + __props.layout.l;
14720
- if (position + tsl < 0 || position + tsl > width.value) continue;
14721
- let offset = (__props.theme.tick_position == "top" ? -1 : 1) * (tick.length ?? __props.theme.tick_length);
14795
+ pos += __props.layout.l;
14796
+ if (pos + tsl < 0 || pos + tsl > width.value) continue;
14797
+ let offset = ($theme.tick_position == "top" ? -1 : 1) * $theme.tick_length;
14722
14798
  result.push({
14723
- key: "line-" + tick.position,
14799
+ key: "line-" + value,
14724
14800
  y1: 0,
14725
14801
  y2: offset,
14726
- x1: position,
14727
- x2: position,
14728
- "stroke": tick.color ?? __props.theme.tick_color,
14729
- "stroke-width": tick.width ?? __props.theme.tick_width,
14802
+ x1: pos,
14803
+ x2: pos,
14804
+ "stroke": $theme.tick_color,
14805
+ "stroke-width": $theme.tick_width,
14730
14806
  transform: tsl ? `translate(${tsl},0)` : null,
14731
14807
  style: { transition: __props.transition }
14732
14808
  });
@@ -14734,43 +14810,45 @@ var VVPlot = (function(exports, vue) {
14734
14810
  return result.filter((t) => t.stroke != null).sort((a, b) => a.x1 - b.x1);
14735
14811
  });
14736
14812
  const tickTexts = vue.computed(() => {
14737
- let isTop = (__props.theme.label_position ?? __props.theme.tick_position) == "top";
14738
14813
  let result = [];
14739
14814
  for (let tick of __props.ticks) {
14740
- if (typeof tick == "number") tick = { position: tick, label: tick };
14741
- let pos = __props.coord2pos({ h: tick.position }).h;
14815
+ let { type, value, label, title, theme: $theme, ...etc } = tick;
14816
+ let isTop = ($theme.label_position ?? $theme.tick_position) == "top";
14817
+ let pos = __props.coord2pos({ h: value }).h;
14742
14818
  let tsl = pos * (__props.activeTransform.scaleH - 1) + __props.activeTransform.translateH;
14743
- let position = pos + __props.layout.l;
14744
- if (position + tsl < 0 || position + tsl > width.value) continue;
14745
- let offset = (isTop ? -1 : 1) * (__props.theme.label_offset ?? tick.length ?? __props.theme.tick_length);
14819
+ pos += __props.layout.l;
14820
+ if (pos + tsl < 0 || pos + tsl > width.value) continue;
14821
+ let offset = (isTop ? -1 : 1) * ($theme.label_offset ?? $theme.tick_length);
14746
14822
  let anchorX, anchorY, dockX, dockY;
14747
- if (__props.theme.label_anchor_x != null || __props.theme.label_anchor_y != null) {
14748
- anchorX = __props.theme.label_anchor_x ?? 0.5;
14749
- anchorY = __props.theme.label_anchor_y ?? (isTop ? 0 : 1);
14823
+ if ($theme.label_anchor_x != null || $theme.label_anchor_y != null) {
14824
+ anchorX = $theme.label_anchor_x ?? 0.5;
14825
+ anchorY = $theme.label_anchor_y ?? (isTop ? 0 : 1);
14750
14826
  } else {
14751
- dockX = __props.theme.label_dock_x ?? 0.5;
14752
- dockY = __props.theme.label_dock_y ?? (isTop ? 0 : 1);
14827
+ dockX = $theme.label_dock_x ?? 0.5;
14828
+ dockY = $theme.label_dock_y ?? (isTop ? 0 : 1);
14753
14829
  }
14754
14830
  result.push({
14755
14831
  wrapper: {
14756
- key: "text-" + tick.position,
14832
+ key: "text-" + value,
14757
14833
  transform: tsl ? `translate(${tsl},0)` : null,
14758
14834
  style: { transition: __props.transition }
14759
14835
  },
14760
14836
  text: {
14761
- x: position,
14837
+ x: pos,
14762
14838
  y: offset,
14763
- angle: __props.theme.label_angle,
14839
+ angle: $theme.label_angle,
14764
14840
  anchorX,
14765
14841
  anchorY,
14766
14842
  dockX,
14767
14843
  dockY,
14768
- text: tick.label,
14769
- title: tick.title ?? tick.label,
14770
- fontSize: tick.size ?? __props.theme.label_size,
14771
- fill: tick.color ?? __props.theme.label_color,
14844
+ type: $theme.label_type,
14845
+ text: label,
14846
+ title: title ?? label,
14847
+ fontSize: $theme.label_size,
14848
+ fill: $theme.label_color,
14772
14849
  "font-family": "sans-serif",
14773
- ...__props.theme.label_style
14850
+ value,
14851
+ ...etc
14774
14852
  }
14775
14853
  });
14776
14854
  }
@@ -14801,13 +14879,6 @@ var VVPlot = (function(exports, vue) {
14801
14879
  }
14802
14880
  }
14803
14881
  e.target.addEventListener("pointermove", detectMove, { passive: true });
14804
- e.target.addEventListener("pointerup", function(ev) {
14805
- e.target.removeEventListener("pointermove", detectMove);
14806
- if (!pointerMoved) {
14807
- let position2 = getPosition(ev);
14808
- emit("singleclick", new PointerEvent("singleclick", ev), position2);
14809
- }
14810
- }, { once: true });
14811
14882
  let act = __props.action.find((a) => a.action == "move");
14812
14883
  if (!act) return;
14813
14884
  e.preventDefault();
@@ -14966,12 +15037,15 @@ var VVPlot = (function(exports, vue) {
14966
15037
  pointerleave(e) {
14967
15038
  emit("pointerleave", e, getPosition(e));
14968
15039
  },
14969
- dblclick(e) {
14970
- emit("dblclick", e, getPosition(e));
14971
- },
14972
15040
  click(e) {
14973
15041
  emit("click", e, getPosition(e));
14974
15042
  },
15043
+ singleclick(e) {
15044
+ emit("singleclick", e, getPosition(e));
15045
+ },
15046
+ dblclick(e) {
15047
+ emit("dblclick", e, getPosition(e));
15048
+ },
14975
15049
  contextmenu(e) {
14976
15050
  emit("contextmenu", e, getPosition(e));
14977
15051
  },
@@ -14985,13 +15059,14 @@ var VVPlot = (function(exports, vue) {
14985
15059
  transform: transform.value,
14986
15060
  style: vue.normalizeStyle({ transition: __props.transition })
14987
15061
  }, [
14988
- vue.createElementVNode("line", vue.mergeProps({
15062
+ axisLine.value.stroke != null ? (vue.openBlock(), vue.createElementBlock("line", vue.mergeProps({
15063
+ key: 0,
14989
15064
  ref: "i",
14990
15065
  x1: 0,
14991
15066
  x2: width.value,
14992
15067
  y1: 0,
14993
15068
  y2: 0
14994
- }, axisLine.value), null, 16, _hoisted_2$6),
15069
+ }, axisLine.value), null, 16, _hoisted_2$6)) : vue.createCommentVNode("", true),
14995
15070
  _cache[1] || (_cache[1] = vue.createTextVNode()),
14996
15071
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(tickLines.value, (tick) => {
14997
15072
  return vue.openBlock(), vue.createElementBlock("line", vue.mergeProps({ ref_for: true }, tick), null, 16);
@@ -14999,13 +15074,7 @@ var VVPlot = (function(exports, vue) {
14999
15074
  _cache[2] || (_cache[2] = vue.createTextVNode()),
15000
15075
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(tickTexts.value, (tick) => {
15001
15076
  return vue.openBlock(), vue.createElementBlock("g", vue.mergeProps({ ref_for: true }, tick.wrapper), [
15002
- __props.theme.label_type == "markdown" ? (vue.openBlock(), vue.createBlock(_sfc_main$12, vue.mergeProps({
15003
- key: 0,
15004
- ref_for: true
15005
- }, tick.text), null, 16)) : (vue.openBlock(), vue.createBlock(_sfc_main$13, vue.mergeProps({
15006
- key: 1,
15007
- ref_for: true
15008
- }, tick.text), null, 16))
15077
+ vue.createVNode(_sfc_main$13, vue.mergeProps({ ref_for: true }, tick.text, { getPosition }), null, 16)
15009
15078
  ], 16);
15010
15079
  }), 256)),
15011
15080
  _cache[3] || (_cache[3] = vue.createTextVNode()),
@@ -15037,8 +15106,8 @@ var VVPlot = (function(exports, vue) {
15037
15106
  }, vue.toHandlers(axisVOn, true), { onPointerdown: axisRescaleRightPointerdown }), null, 16, _hoisted_6$2)
15038
15107
  ])) : vue.createCommentVNode("", true),
15039
15108
  _cache[5] || (_cache[5] = vue.createTextVNode()),
15040
- axisTitle.value.text ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
15041
- __props.theme.title_type == "markdown" ? (vue.openBlock(), vue.createBlock(_sfc_main$12, vue.normalizeProps(vue.mergeProps({ key: 0 }, axisTitle.value)), null, 16)) : (vue.openBlock(), vue.createBlock(_sfc_main$13, vue.normalizeProps(vue.mergeProps({ key: 1 }, axisTitle.value)), null, 16))
15109
+ 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))
15042
15111
  ], 64)) : vue.createCommentVNode("", true)
15043
15112
  ], 12, _hoisted_1$c);
15044
15113
  };
@@ -15052,12 +15121,12 @@ var VVPlot = (function(exports, vue) {
15052
15121
  };
15053
15122
  const _hoisted_4$2 = ["height", "cursor"];
15054
15123
  const _hoisted_5$1 = {
15055
- key: 0,
15124
+ key: 1,
15056
15125
  class: "vvplot-interactive",
15057
15126
  fill: "transparent"
15058
15127
  };
15059
15128
  const _hoisted_6$1 = ["y"];
15060
- const _sfc_main$10 = {
15129
+ const _sfc_main$11 = {
15061
15130
  __name: "CoreAxisV",
15062
15131
  props: {
15063
15132
  coord: String,
@@ -15138,20 +15207,20 @@ var VVPlot = (function(exports, vue) {
15138
15207
  const tickLines = vue.computed(() => {
15139
15208
  let result = [];
15140
15209
  for (let tick of __props.ticks) {
15141
- if (typeof tick == "number") tick = { position: tick };
15142
- let pos = __props.coord2pos({ v: tick.position }).v;
15210
+ let { value, theme: $theme } = tick;
15211
+ let pos = __props.coord2pos({ v: value }).v;
15143
15212
  let tsl = pos * (__props.activeTransform.scaleV - 1) + __props.activeTransform.translateV;
15144
- let position = pos + __props.layout.t;
15145
- if (position + tsl < 0 || position + tsl > height.value) continue;
15146
- let offset = (__props.theme.tick_position == "right" ? 1 : -1) * (tick.length ?? __props.theme.tick_length);
15213
+ pos += __props.layout.t;
15214
+ if (pos + tsl < 0 || pos + tsl > height.value) continue;
15215
+ let offset = ($theme.tick_position == "right" ? 1 : -1) * $theme.tick_length;
15147
15216
  result.push({
15148
- key: "line-" + tick.position,
15149
- y1: position,
15150
- y2: position,
15217
+ key: "line-" + tick.value,
15218
+ y1: pos,
15219
+ y2: pos,
15151
15220
  x1: 0,
15152
15221
  x2: offset,
15153
- "stroke": tick.color ?? __props.theme.tick_color,
15154
- "stroke-width": tick.width ?? __props.theme.tick_width,
15222
+ "stroke": tick.color ?? $theme.tick_color,
15223
+ "stroke-width": tick.width ?? $theme.tick_width,
15155
15224
  transform: tsl ? `translate(0,${tsl})` : null,
15156
15225
  style: { transition: __props.transition }
15157
15226
  });
@@ -15159,43 +15228,45 @@ var VVPlot = (function(exports, vue) {
15159
15228
  return result.filter((t) => t.stroke != null).sort((a, b) => a.y1 - b.y1);
15160
15229
  });
15161
15230
  const tickTexts = vue.computed(() => {
15162
- let isRight = (__props.theme.label_position ?? __props.theme.tick_position) == "right";
15163
15231
  let result = [];
15164
15232
  for (let tick of __props.ticks) {
15165
- if (typeof tick == "number") tick = { position: tick };
15166
- let pos = __props.coord2pos({ v: tick.position }).v;
15233
+ let { type, value, label, title, theme: $theme, ...etc } = tick;
15234
+ let isRight = ($theme.label_position ?? $theme.tick_position) == "right";
15235
+ let pos = __props.coord2pos({ v: value }).v;
15167
15236
  let tsl = pos * (__props.activeTransform.scaleV - 1) + __props.activeTransform.translateV;
15168
- let position = pos + __props.layout.t;
15169
- if (position + tsl < 0 || position + tsl > height.value) continue;
15170
- let offset = (isRight ? 1 : -1) * ((__props.theme.label_offset ?? tick.length ?? __props.theme.tick_length) + 3);
15237
+ pos += __props.layout.t;
15238
+ if (pos + tsl < 0 || pos + tsl > height.value) continue;
15239
+ let offset = (isRight ? 1 : -1) * (($theme.label_offset ?? $theme.tick_length) + 3);
15171
15240
  let anchorX, anchorY, dockX, dockY;
15172
- if (__props.theme.label_anchor_x != null || __props.theme.label_anchor_y != null) {
15173
- anchorX = __props.theme.label_anchor_x ?? (isRight ? 0 : 1);
15174
- anchorY = __props.theme.label_anchor_y ?? 0.5;
15241
+ if ($theme.label_anchor_x != null || $theme.label_anchor_y != null) {
15242
+ anchorX = $theme.label_anchor_x ?? (isRight ? 0 : 1);
15243
+ anchorY = $theme.label_anchor_y ?? 0.5;
15175
15244
  } else {
15176
- dockX = __props.theme.label_dock_x ?? (isRight ? 0 : 1);
15177
- dockY = __props.theme.label_dock_y ?? 0.5;
15245
+ dockX = $theme.label_dock_x ?? (isRight ? 0 : 1);
15246
+ dockY = $theme.label_dock_y ?? 0.5;
15178
15247
  }
15179
15248
  result.push({
15180
15249
  wrapper: {
15181
- key: "text-" + tick.position,
15250
+ key: "text-" + value,
15182
15251
  transform: tsl ? `translate(0,${tsl})` : null,
15183
15252
  style: { transition: __props.transition }
15184
15253
  },
15185
15254
  text: {
15186
- y: position,
15255
+ y: pos,
15187
15256
  x: offset,
15188
- angle: __props.theme.label_angle,
15257
+ angle: $theme.label_angle,
15189
15258
  anchorX,
15190
15259
  anchorY,
15191
15260
  dockX,
15192
15261
  dockY,
15193
- text: tick.label,
15194
- title: tick.title ?? tick.label,
15195
- fontSize: tick.size ?? __props.theme.label_size,
15196
- fill: tick.color ?? __props.theme.label_color,
15262
+ type: $theme.label_type,
15263
+ text: label,
15264
+ title: title ?? label,
15265
+ fontSize: $theme.label_size,
15266
+ fill: $theme.label_color,
15197
15267
  "font-family": "sans-serif",
15198
- ...__props.theme.label_style
15268
+ value,
15269
+ ...etc
15199
15270
  }
15200
15271
  });
15201
15272
  }
@@ -15226,13 +15297,6 @@ var VVPlot = (function(exports, vue) {
15226
15297
  }
15227
15298
  }
15228
15299
  e.target.addEventListener("pointermove", detectMove, { passive: true });
15229
- e.target.addEventListener("pointerup", function(ev) {
15230
- e.target.removeEventListener("pointermove", detectMove);
15231
- if (!pointerMoved) {
15232
- let position2 = getPosition(ev);
15233
- emit("singleclick", new PointerEvent("singleclick", ev), position2);
15234
- }
15235
- }, { once: true });
15236
15300
  let act = __props.action.find((a) => a.action == "move");
15237
15301
  if (!act) return;
15238
15302
  e.preventDefault();
@@ -15391,12 +15455,15 @@ var VVPlot = (function(exports, vue) {
15391
15455
  pointerleave(e) {
15392
15456
  emit("pointerleave", e, getPosition(e));
15393
15457
  },
15394
- dblclick(e) {
15395
- emit("dblclick", e, getPosition(e));
15396
- },
15397
15458
  click(e) {
15398
15459
  emit("click", e, getPosition(e));
15399
15460
  },
15461
+ singleclick(e) {
15462
+ emit("singleclick", e, getPosition(e));
15463
+ },
15464
+ dblclick(e) {
15465
+ emit("dblclick", e, getPosition(e));
15466
+ },
15400
15467
  contextmenu(e) {
15401
15468
  emit("contextmenu", e, getPosition(e));
15402
15469
  },
@@ -15410,13 +15477,14 @@ var VVPlot = (function(exports, vue) {
15410
15477
  transform: transform.value,
15411
15478
  style: vue.normalizeStyle({ transition: __props.transition })
15412
15479
  }, [
15413
- vue.createElementVNode("line", vue.mergeProps({
15480
+ axisLine.value.stroke != null ? (vue.openBlock(), vue.createElementBlock("line", vue.mergeProps({
15481
+ key: 0,
15414
15482
  ref: "i",
15415
15483
  x1: 0,
15416
15484
  x2: 0,
15417
15485
  y1: 0,
15418
15486
  y2: height.value
15419
- }, axisLine.value), null, 16, _hoisted_2$5),
15487
+ }, axisLine.value), null, 16, _hoisted_2$5)) : vue.createCommentVNode("", true),
15420
15488
  _cache[1] || (_cache[1] = vue.createTextVNode()),
15421
15489
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(tickLines.value, (tick) => {
15422
15490
  return vue.openBlock(), vue.createElementBlock("line", vue.mergeProps({ ref_for: true }, tick), null, 16);
@@ -15424,13 +15492,7 @@ var VVPlot = (function(exports, vue) {
15424
15492
  _cache[2] || (_cache[2] = vue.createTextVNode()),
15425
15493
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(tickTexts.value, (tick) => {
15426
15494
  return vue.openBlock(), vue.createElementBlock("g", vue.mergeProps({ ref_for: true }, tick.wrapper), [
15427
- __props.theme.label_type == "markdown" ? (vue.openBlock(), vue.createBlock(_sfc_main$12, vue.mergeProps({
15428
- key: 0,
15429
- ref_for: true
15430
- }, tick.text), null, 16)) : (vue.openBlock(), vue.createBlock(_sfc_main$13, vue.mergeProps({
15431
- key: 1,
15432
- ref_for: true
15433
- }, tick.text), null, 16))
15495
+ vue.createVNode(_sfc_main$13, vue.mergeProps({ ref_for: true }, tick.text, { getPosition }), null, 16)
15434
15496
  ], 16);
15435
15497
  }), 256)),
15436
15498
  _cache[3] || (_cache[3] = vue.createTextVNode()),
@@ -15462,14 +15524,14 @@ var VVPlot = (function(exports, vue) {
15462
15524
  }, vue.toHandlers(axisVOn, true), { onPointerdown: axisRescaleBottomPointerdown }), null, 16, _hoisted_6$1)
15463
15525
  ])) : vue.createCommentVNode("", true),
15464
15526
  _cache[5] || (_cache[5] = vue.createTextVNode()),
15465
- axisTitle.value.text ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
15466
- __props.theme.title_type == "markdown" ? (vue.openBlock(), vue.createBlock(_sfc_main$12, vue.normalizeProps(vue.mergeProps({ key: 0 }, axisTitle.value)), null, 16)) : (vue.openBlock(), vue.createBlock(_sfc_main$13, vue.normalizeProps(vue.mergeProps({ key: 1 }, axisTitle.value)), null, 16))
15527
+ 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))
15467
15529
  ], 64)) : vue.createCommentVNode("", true)
15468
15530
  ], 12, _hoisted_1$b);
15469
15531
  };
15470
15532
  }
15471
15533
  };
15472
- const _sfc_main$$ = {
15534
+ const _sfc_main$10 = {
15473
15535
  __name: "CoreAxis",
15474
15536
  props: {
15475
15537
  theme: { type: Object, default: () => ({}) },
@@ -15478,8 +15540,8 @@ var VVPlot = (function(exports, vue) {
15478
15540
  },
15479
15541
  setup(__props) {
15480
15542
  const axis = {
15481
- h: _sfc_main$11,
15482
- v: _sfc_main$10
15543
+ h: _sfc_main$12,
15544
+ v: _sfc_main$11
15483
15545
  };
15484
15546
  return (_ctx, _cache) => {
15485
15547
  return __props.position != "none" ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(axis[__props.orientation]), {
@@ -15490,15 +15552,13 @@ var VVPlot = (function(exports, vue) {
15490
15552
  };
15491
15553
  }
15492
15554
  };
15493
- const _sfc_main$_ = {
15555
+ const _sfc_main$$ = {
15494
15556
  __name: "CoreGridH",
15495
15557
  props: {
15496
- majorBreaks: { type: Array, default: () => [] },
15497
- minorBreaks: { type: Array, default: () => [] },
15558
+ breaks: { type: Array, default: () => [] },
15498
15559
  coord2pos: Function,
15499
15560
  pos2coord: Function,
15500
15561
  layout: Object,
15501
- theme: { type: Object, default: () => ({}) },
15502
15562
  action: { type: Object, default: () => ({}) },
15503
15563
  activeTransform: Object,
15504
15564
  transition: String
@@ -15508,20 +15568,21 @@ var VVPlot = (function(exports, vue) {
15508
15568
  const height = vue.computed(() => __props.layout.height + __props.layout.t + __props.layout.b);
15509
15569
  const majorLines = vue.computed(() => {
15510
15570
  let result = [];
15511
- for (let line2 of __props.majorBreaks) {
15512
- let pos = __props.coord2pos({ v: line2.position }).v;
15571
+ for (let b of __props.breaks) {
15572
+ if (b.type != "major") continue;
15573
+ let pos = __props.coord2pos({ v: b.value }).v;
15513
15574
  if (isNaN(pos)) continue;
15514
15575
  let tsl = pos * (__props.activeTransform.scaleV - 1) + __props.activeTransform.translateV;
15515
- let position = pos + __props.layout.t;
15516
- if (position + tsl < 0 || position + tsl > height.value) continue;
15576
+ pos += __props.layout.t;
15577
+ if (pos + tsl < 0 || pos + tsl > height.value) continue;
15517
15578
  result.push({
15518
- key: "major-" + line2.position,
15579
+ key: "major-" + b.value,
15519
15580
  x1: 0,
15520
15581
  x2: width.value,
15521
- y1: position,
15522
- y2: position,
15523
- "stroke": line2.color ?? __props.theme.line_color_major,
15524
- "stroke-width": line2.width ?? __props.theme.line_width_major ?? 0,
15582
+ y1: pos,
15583
+ y2: pos,
15584
+ "stroke": b.theme.grid_color_major,
15585
+ "stroke-width": b.theme.grid_width_major ?? 0,
15525
15586
  transform: tsl ? `translate(0,${tsl})` : null,
15526
15587
  style: { transition: __props.transition }
15527
15588
  });
@@ -15530,21 +15591,21 @@ var VVPlot = (function(exports, vue) {
15530
15591
  });
15531
15592
  const minorLines = vue.computed(() => {
15532
15593
  let result = [];
15533
- for (let line2 of __props.minorBreaks) {
15534
- if (__props.majorBreaks.some((ml) => ml.position == line2.position)) continue;
15535
- let pos = __props.coord2pos({ v: line2.position }).v;
15594
+ for (let b of __props.breaks) {
15595
+ if (b.type != "minor") continue;
15596
+ let pos = __props.coord2pos({ v: b.value }).v;
15536
15597
  if (isNaN(pos)) continue;
15537
15598
  let tsl = pos * (__props.activeTransform.scaleV - 1) + __props.activeTransform.translateV;
15538
- let position = pos + __props.layout.t;
15539
- if (position + tsl < 0 || position + tsl > height.value) continue;
15599
+ pos += __props.layout.t;
15600
+ if (pos + tsl < 0 || pos + tsl > height.value) continue;
15540
15601
  result.push({
15541
- key: "minor-" + line2.position,
15602
+ key: "minor-" + b.value,
15542
15603
  x1: 0,
15543
15604
  x2: width.value,
15544
- y1: position,
15545
- y2: position,
15546
- "stroke": line2.color ?? __props.theme.line_color_minor,
15547
- "stroke-width": line2.width ?? __props.theme.line_width_minor ?? 0,
15605
+ y1: pos,
15606
+ y2: pos,
15607
+ "stroke": b.theme.grid_color_minor,
15608
+ "stroke-width": b.theme.grid_width_minor ?? 0,
15548
15609
  transform: tsl ? `translate(0,${tsl})` : null,
15549
15610
  style: { transition: __props.transition }
15550
15611
  });
@@ -15563,15 +15624,13 @@ var VVPlot = (function(exports, vue) {
15563
15624
  };
15564
15625
  }
15565
15626
  };
15566
- const _sfc_main$Z = {
15627
+ const _sfc_main$_ = {
15567
15628
  __name: "CoreGridV",
15568
15629
  props: {
15569
- majorBreaks: { type: Array, default: () => [] },
15570
- minorBreaks: { type: Array, default: () => [] },
15630
+ breaks: { type: Array, default: () => [] },
15571
15631
  coord2pos: Function,
15572
15632
  pos2coord: Function,
15573
15633
  layout: Object,
15574
- theme: { type: Object, default: () => ({}) },
15575
15634
  action: { type: Object, default: () => ({}) },
15576
15635
  activeTransform: Object,
15577
15636
  transition: String
@@ -15581,20 +15640,21 @@ var VVPlot = (function(exports, vue) {
15581
15640
  const height = vue.computed(() => __props.layout.height + __props.layout.t + __props.layout.b);
15582
15641
  const majorLines = vue.computed(() => {
15583
15642
  let result = [];
15584
- for (let line2 of __props.majorBreaks) {
15585
- let pos = __props.coord2pos({ h: line2.position }).h;
15643
+ for (let b of __props.breaks) {
15644
+ if (b.type != "major") continue;
15645
+ let pos = __props.coord2pos({ h: b.value }).h;
15586
15646
  if (isNaN(pos)) continue;
15587
15647
  let tsl = pos * (__props.activeTransform.scaleH - 1) + __props.activeTransform.translateH;
15588
- let position = pos + __props.layout.l;
15589
- if (position + tsl < 0 || position + tsl > width.value) continue;
15648
+ pos += __props.layout.l;
15649
+ if (pos + tsl < 0 || pos + tsl > width.value) continue;
15590
15650
  result.push({
15591
- key: "major-" + line2.position,
15651
+ key: "major-" + b.value,
15592
15652
  y1: 0,
15593
15653
  y2: height.value,
15594
- x1: position,
15595
- x2: position,
15596
- "stroke": line2.color ?? __props.theme.line_color_major,
15597
- "stroke-width": line2.width ?? __props.theme.line_width_major ?? 0,
15654
+ x1: pos,
15655
+ x2: pos,
15656
+ "stroke": b.theme.grid_color_major,
15657
+ "stroke-width": b.theme.grid_width_major ?? 0,
15598
15658
  transform: tsl ? `translate(${tsl},0)` : null,
15599
15659
  style: { transition: __props.transition }
15600
15660
  });
@@ -15603,21 +15663,21 @@ var VVPlot = (function(exports, vue) {
15603
15663
  });
15604
15664
  const minorLines = vue.computed(() => {
15605
15665
  let result = [];
15606
- for (let line2 of __props.minorBreaks) {
15607
- if (__props.majorBreaks.some((ml) => ml.position == line2.position)) continue;
15608
- let pos = __props.coord2pos({ h: line2.position }).h;
15666
+ for (let b of __props.breaks) {
15667
+ if (b.type != "minor") continue;
15668
+ let pos = __props.coord2pos({ h: b.value }).h;
15609
15669
  if (isNaN(pos)) continue;
15610
15670
  let tsl = pos * (__props.activeTransform.scaleH - 1) + __props.activeTransform.translateH;
15611
- let position = pos + __props.layout.l;
15612
- if (position + tsl < 0 || position + tsl > width.value) continue;
15671
+ pos += __props.layout.l;
15672
+ if (pos + tsl < 0 || pos + tsl > width.value) continue;
15613
15673
  result.push({
15614
- key: "minor-" + line2.position,
15674
+ key: "minor-" + b.value,
15615
15675
  y1: 0,
15616
15676
  y2: height.value,
15617
- x1: position,
15618
- x2: position,
15619
- "stroke": line2.color ?? __props.theme.line_color_minor,
15620
- "stroke-width": line2.width ?? __props.theme.line_width_minor ?? 0,
15677
+ x1: pos,
15678
+ x2: pos,
15679
+ "stroke": b.theme.grid_color_minor,
15680
+ "stroke-width": b.theme.grid_width_minor ?? 0,
15621
15681
  transform: tsl ? `translate(${tsl},0)` : null,
15622
15682
  style: { transition: __props.transition }
15623
15683
  });
@@ -15636,7 +15696,7 @@ var VVPlot = (function(exports, vue) {
15636
15696
  };
15637
15697
  }
15638
15698
  };
15639
- const _sfc_main$Y = {
15699
+ const _sfc_main$Z = {
15640
15700
  __name: "CoreCanvasBoxplot",
15641
15701
  props: {
15642
15702
  extendX: { type: Number, default: 0 },
@@ -15783,7 +15843,7 @@ var VVPlot = (function(exports, vue) {
15783
15843
  };
15784
15844
  }
15785
15845
  };
15786
- const _sfc_main$X = {
15846
+ const _sfc_main$Y = {
15787
15847
  __name: "CoreCanvasCurve",
15788
15848
  props: {
15789
15849
  extendX: { type: Number, default: 0 },
@@ -15889,7 +15949,7 @@ var VVPlot = (function(exports, vue) {
15889
15949
  };
15890
15950
  }
15891
15951
  };
15892
- const _sfc_main$W = {
15952
+ const _sfc_main$X = {
15893
15953
  __name: "CoreCanvasEllipse",
15894
15954
  props: {
15895
15955
  extendX: { type: Number, default: 0 },
@@ -15994,7 +16054,7 @@ var VVPlot = (function(exports, vue) {
15994
16054
  };
15995
16055
  }
15996
16056
  };
15997
- const _sfc_main$V = {
16057
+ const _sfc_main$W = {
15998
16058
  __name: "CoreCanvasLine",
15999
16059
  props: {
16000
16060
  extendX: { type: Number, default: 0 },
@@ -16087,7 +16147,7 @@ var VVPlot = (function(exports, vue) {
16087
16147
  };
16088
16148
  }
16089
16149
  };
16090
- const _sfc_main$U = {
16150
+ const _sfc_main$V = {
16091
16151
  __name: "CoreCanvasPoint",
16092
16152
  props: {
16093
16153
  extendX: { type: Number, default: 0 },
@@ -16107,7 +16167,8 @@ var VVPlot = (function(exports, vue) {
16107
16167
  diamond: (s) => `M0-${s * 0.707}L${s * 0.707},0L0,${s * 0.707}L-${s * 0.707},0Z`,
16108
16168
  square: (s) => `M-${s / 2}-${s / 2}H${s / 2}V${s / 2}H-${s / 2}Z`,
16109
16169
  plus: (s) => `M-${s / 10}-${s / 2}V-${s / 10}H-${s / 2}V${s / 10}H-${s / 10}V${s / 2}H${s / 10}V${s / 10}H${s / 2}V-${s / 10}H${s / 10}V-${s / 2}H-${s / 10}Z`,
16110
- corss: (s) => `M-${s * 0.283}-${s * 0.424}L-${s * 0.424}-${s * 0.283}L-${s * 0.141},0L-${s * 0.424},${s * 0.283}L-${s * 0.283},${s * 0.424}L0,${s * 0.141}L${s * 0.283},${s * 0.424}L${s * 0.424},${s * 0.283}L${s * 0.141},0L${s * 0.424},-${s * 0.283}L${s * 0.283},-${s * 0.424}L0,-${s * 0.141}Z`
16170
+ cross: (s) => `M-${s * 0.283}-${s * 0.424}L-${s * 0.424}-${s * 0.283}L-${s * 0.141},0L-${s * 0.424},${s * 0.283}L-${s * 0.283},${s * 0.424}L0,${s * 0.141}L${s * 0.283},${s * 0.424}L${s * 0.424},${s * 0.283}L${s * 0.141},0L${s * 0.424},-${s * 0.283}L${s * 0.283},-${s * 0.424}L0,-${s * 0.141}Z`,
16171
+ arrowhead: (s) => `M0,0L${s},${-s * 0.38}V${s * 0.38}Z`
16111
16172
  };
16112
16173
  const vBind = vue.computed(() => ({
16113
16174
  width: __props.layout.fullWidth * (1 + __props.extendX * 2),
@@ -16141,19 +16202,25 @@ var VVPlot = (function(exports, vue) {
16141
16202
  alpha: alpha2,
16142
16203
  "translate-x": translateX = 0,
16143
16204
  "translate-y": translateY = 0,
16205
+ angle: angle2 = 0,
16144
16206
  $raw
16145
16207
  } of group) {
16146
16208
  const { h: cx, v: cy } = __props.coord2pos({ x: x2, y: y2 });
16209
+ if (typeof angle2 == "object") {
16210
+ let { dx = 0, dy = 0 } = angle2;
16211
+ let { h, v } = __props.coord2pos({ x: x2 + dx, y: y2 + dy });
16212
+ angle2 = Math.atan2(v - cy, h - cx) * 180 / Math.PI;
16213
+ }
16147
16214
  const path2d = new Path2D();
16148
16215
  if (String(shape).startsWith("path:")) {
16149
16216
  path2d.addPath(
16150
16217
  new Path2D(shape.slice(5)),
16151
- new DOMMatrix().translateSelf(cx + translateX, cy + translateY)
16218
+ new DOMMatrix().translateSelf(cx + translateX, cy + translateY).rotate(angle2)
16152
16219
  );
16153
16220
  } else if (shape in paths) {
16154
16221
  path2d.addPath(
16155
16222
  new Path2D(paths[shape](size)),
16156
- new DOMMatrix().translate(cx + translateX, cy + translateY)
16223
+ new DOMMatrix().translate(cx + translateX, cy + translateY).rotate(angle2)
16157
16224
  );
16158
16225
  } else {
16159
16226
  path2d.arc(cx + translateX, cy + translateY, size / 2, 0, Math.PI * 2);
@@ -16202,7 +16269,7 @@ var VVPlot = (function(exports, vue) {
16202
16269
  };
16203
16270
  }
16204
16271
  };
16205
- const _sfc_main$T = {
16272
+ const _sfc_main$U = {
16206
16273
  __name: "CoreCanvasPolygon",
16207
16274
  props: {
16208
16275
  extendX: { type: Number, default: 0 },
@@ -16299,7 +16366,7 @@ var VVPlot = (function(exports, vue) {
16299
16366
  };
16300
16367
  }
16301
16368
  };
16302
- const _sfc_main$S = {
16369
+ const _sfc_main$T = {
16303
16370
  __name: "CoreCanvasRect",
16304
16371
  props: {
16305
16372
  extendX: { type: Number, default: 0 },
@@ -16394,7 +16461,7 @@ var VVPlot = (function(exports, vue) {
16394
16461
  };
16395
16462
  }
16396
16463
  };
16397
- const _sfc_main$R = {
16464
+ const _sfc_main$S = {
16398
16465
  __name: "CoreCanvasText",
16399
16466
  props: {
16400
16467
  extendX: { type: Number, default: 0 },
@@ -16468,6 +16535,11 @@ var VVPlot = (function(exports, vue) {
16468
16535
  } else if (textLength != null) {
16469
16536
  width = textLength;
16470
16537
  }
16538
+ if (typeof angle2 == "object") {
16539
+ let { dx = 0, dy = 0 } = angle2;
16540
+ let { h, v } = __props.coord2pos({ x: x2 + dx, y: y2 + dy });
16541
+ angle2 = Math.atan2(v - ty, h - tx) * 180 / Math.PI;
16542
+ }
16471
16543
  if (dockX != null || dockY != null) {
16472
16544
  let alnX = { left: 0, center: 0.5, right: 1 }[dockX] ?? +(dockX ?? 0.5), alnY = { bottom: 0, center: 0.5, top: 1 }[dockY] ?? +(dockY ?? 0.5);
16473
16545
  if (isNaN(alnX)) alnX = 0.5;
@@ -16524,7 +16596,7 @@ var VVPlot = (function(exports, vue) {
16524
16596
  };
16525
16597
  }
16526
16598
  };
16527
- const _sfc_main$Q = {
16599
+ const _sfc_main$R = {
16528
16600
  __name: "CoreCanvasTextsegment",
16529
16601
  props: {
16530
16602
  extendX: { type: Number, default: 0 },
@@ -16698,19 +16770,19 @@ var VVPlot = (function(exports, vue) {
16698
16770
  };
16699
16771
  const canvas = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
16700
16772
  __proto__: null,
16701
- boxplot: _sfc_main$Y,
16702
- curve: _sfc_main$X,
16703
- ellipse: _sfc_main$W,
16704
- line: _sfc_main$V,
16705
- point: _sfc_main$U,
16706
- polygon: _sfc_main$T,
16707
- rect: _sfc_main$S,
16708
- stick: _sfc_main$V,
16709
- text: _sfc_main$R,
16710
- textsegment: _sfc_main$Q,
16711
- tile: _sfc_main$S
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
16712
16784
  }, Symbol.toStringTag, { value: "Module" }));
16713
- const _sfc_main$P = {
16785
+ const _sfc_main$Q = {
16714
16786
  __name: "CoreSvgBlank",
16715
16787
  props: {
16716
16788
  extendX: { type: Number, default: 0 },
@@ -16730,7 +16802,7 @@ var VVPlot = (function(exports, vue) {
16730
16802
  }
16731
16803
  };
16732
16804
  const _hoisted_1$a = { key: 0 };
16733
- const _sfc_main$O = {
16805
+ const _sfc_main$P = {
16734
16806
  __name: "CoreTile",
16735
16807
  props: {
16736
16808
  x: { type: Number, default: 0 },
@@ -16772,7 +16844,7 @@ var VVPlot = (function(exports, vue) {
16772
16844
  };
16773
16845
  const _hoisted_1$9 = { key: 0 };
16774
16846
  const _hoisted_2$4 = { key: 0 };
16775
- const _sfc_main$N = {
16847
+ const _sfc_main$O = {
16776
16848
  __name: "CorePoint",
16777
16849
  props: {
16778
16850
  x: { type: Number, default: 0 },
@@ -16781,7 +16853,7 @@ var VVPlot = (function(exports, vue) {
16781
16853
  size: { type: Number, default: 6 },
16782
16854
  color: String,
16783
16855
  stroke: String,
16784
- linewidth: Number,
16856
+ linewidth: { type: Number, default: 1 },
16785
16857
  linetype: String,
16786
16858
  alpha: { type: Number, default: 1 },
16787
16859
  title: String,
@@ -16796,7 +16868,8 @@ var VVPlot = (function(exports, vue) {
16796
16868
  triangle: "M0-0.667L0.577,0.333L-0.577,0.333Z",
16797
16869
  diamond: "M0-0.707L0.707,0L0,0.707L-0.707,0Z",
16798
16870
  plus: "M-0.1-0.5V-0.1H-0.5V0.1H-0.1V0.5H0.1V0.1H0.5V-0.1H0.1V-0.5H-0.1Z",
16799
- cross: "M-0.283-0.424L-0.424-0.283L-0.141,0L-0.424,0.283L-0.283,0.424L0,0.141L0.283,0.424L0.424,0.283L0.141,0L0.424,-0.283L0.283,-0.424L0,-0.141Z"
16871
+ cross: "M-0.283-0.424L-0.424-0.283L-0.141,0L-0.424,0.283L-0.283,0.424L0,0.141L0.283,0.424L0.424,0.283L0.141,0L0.424,-0.283L0.283,-0.424L0,-0.141Z",
16872
+ arrowhead: "M0,0L1,0.38V-0.38Z"
16800
16873
  };
16801
16874
  const binds = vue.computed(() => {
16802
16875
  let d = __props.shape?.startsWith?.("path:") ? __props.shape?.slice?.(5) : paths[__props.shape];
@@ -16805,7 +16878,6 @@ var VVPlot = (function(exports, vue) {
16805
16878
  fill: __props.color || null,
16806
16879
  "fill-opacity": __props.alpha == 1 ? null : __props.alpha,
16807
16880
  stroke: __props.stroke || null,
16808
- "stroke-width": __props.linewidth,
16809
16881
  "stroke-opacity": __props.alpha == 1 ? null : __props.alpha,
16810
16882
  "stroke-dasharray": parseLinetype(__props.linetype).join(" ") || null
16811
16883
  };
@@ -16814,10 +16886,10 @@ var VVPlot = (function(exports, vue) {
16814
16886
  if (tslX !== 0 || tslY !== 0) transform.push(`translate(${tslX},${tslY})`);
16815
16887
  if (__props.size != 1) transform.push(`scale(${__props.size})`);
16816
16888
  if (__props.angle) transform.push(`rotate(${__props.angle})`);
16817
- Object.assign(result, { d, transform: transform.join(" ") || null });
16889
+ Object.assign(result, { d, transform: transform.join(" ") || null, "stroke-width": __props.linewidth / __props.size });
16818
16890
  } else {
16819
16891
  let transform = __props.translateX || __props.translateY ? `translate(${__props.translateX}, ${__props.translateY})` : null;
16820
- Object.assign(result, { cx: __props.x, cy: __props.y, r: __props.size / 2, transform });
16892
+ Object.assign(result, { cx: __props.x, cy: __props.y, r: __props.size / 2, transform, "stroke-width": __props.linewidth });
16821
16893
  }
16822
16894
  return result;
16823
16895
  });
@@ -16831,7 +16903,7 @@ var VVPlot = (function(exports, vue) {
16831
16903
  }
16832
16904
  };
16833
16905
  const _hoisted_1$8 = { key: 0 };
16834
- const _sfc_main$M = {
16906
+ const _sfc_main$N = {
16835
16907
  __name: "CoreLine",
16836
16908
  props: {
16837
16909
  x1: { type: Number, default: 0 },
@@ -16869,7 +16941,7 @@ var VVPlot = (function(exports, vue) {
16869
16941
  };
16870
16942
  }
16871
16943
  };
16872
- const _sfc_main$L = {
16944
+ const _sfc_main$M = {
16873
16945
  __name: "CoreSvgBoxplot",
16874
16946
  props: {
16875
16947
  extendX: { type: Number, default: 0 },
@@ -17032,18 +17104,18 @@ var VVPlot = (function(exports, vue) {
17032
17104
  return vue.openBlock(), vue.createElementBlock("g", vue.mergeProps({ ref_for: true }, { class: __props.groupClass, style: __props.groupStyle }), [
17033
17105
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(group, ([vbinds, von]) => {
17034
17106
  return vue.openBlock(), vue.createElementBlock("g", null, [
17035
- vue.createVNode(_sfc_main$M, vue.mergeProps({ ref_for: true }, vbinds.line), null, 16),
17107
+ vue.createVNode(_sfc_main$N, vue.mergeProps({ ref_for: true }, vbinds.line), null, 16),
17036
17108
  _cache[0] || (_cache[0] = vue.createTextVNode()),
17037
- vue.createVNode(_sfc_main$O, vue.mergeProps({ ref_for: true }, vbinds.rect, vue.toHandlers(von)), null, 16),
17109
+ vue.createVNode(_sfc_main$P, vue.mergeProps({ ref_for: true }, vbinds.rect, vue.toHandlers(von)), null, 16),
17038
17110
  _cache[1] || (_cache[1] = vue.createTextVNode()),
17039
- vue.createVNode(_sfc_main$M, vue.mergeProps({ ref_for: true }, vbinds.midline), null, 16),
17111
+ vue.createVNode(_sfc_main$N, vue.mergeProps({ ref_for: true }, vbinds.midline), null, 16),
17040
17112
  _cache[2] || (_cache[2] = vue.createTextVNode()),
17041
- vue.createVNode(_sfc_main$M, vue.mergeProps({ ref_for: true }, vbinds.uwisker), null, 16),
17113
+ vue.createVNode(_sfc_main$N, vue.mergeProps({ ref_for: true }, vbinds.uwisker), null, 16),
17042
17114
  _cache[3] || (_cache[3] = vue.createTextVNode()),
17043
- vue.createVNode(_sfc_main$M, vue.mergeProps({ ref_for: true }, vbinds.lwisker), null, 16),
17115
+ vue.createVNode(_sfc_main$N, vue.mergeProps({ ref_for: true }, vbinds.lwisker), null, 16),
17044
17116
  _cache[4] || (_cache[4] = vue.createTextVNode()),
17045
17117
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vbinds.outliers, ([vbind, von2]) => {
17046
- return vue.openBlock(), vue.createBlock(_sfc_main$N, vue.mergeProps({ ref_for: true }, vbind, vue.toHandlers(von2)), null, 16);
17118
+ return vue.openBlock(), vue.createBlock(_sfc_main$O, vue.mergeProps({ ref_for: true }, vbind, vue.toHandlers(von2)), null, 16);
17047
17119
  }), 256))
17048
17120
  ]);
17049
17121
  }), 256))
@@ -17054,7 +17126,7 @@ var VVPlot = (function(exports, vue) {
17054
17126
  }
17055
17127
  };
17056
17128
  const _hoisted_1$7 = { key: 0 };
17057
- const _sfc_main$K = {
17129
+ const _sfc_main$L = {
17058
17130
  __name: "CoreCurve",
17059
17131
  props: {
17060
17132
  points: { type: Array, default: () => [] },
@@ -17097,7 +17169,7 @@ var VVPlot = (function(exports, vue) {
17097
17169
  };
17098
17170
  }
17099
17171
  };
17100
- const _sfc_main$J = {
17172
+ const _sfc_main$K = {
17101
17173
  __name: "CoreSvgCurve",
17102
17174
  props: {
17103
17175
  extendX: { type: Number, default: 0 },
@@ -17125,6 +17197,8 @@ var VVPlot = (function(exports, vue) {
17125
17197
  title,
17126
17198
  "translate-x": translateX = 0,
17127
17199
  "translate-y": translateY = 0,
17200
+ "marker-start": markerStart,
17201
+ "marker-end": markerEnd,
17128
17202
  class: className,
17129
17203
  style,
17130
17204
  $raw,
@@ -17142,6 +17216,8 @@ var VVPlot = (function(exports, vue) {
17142
17216
  title,
17143
17217
  translateX,
17144
17218
  translateY,
17219
+ "marker-start": markerStart,
17220
+ "marker-end": markerEnd,
17145
17221
  class: className,
17146
17222
  style,
17147
17223
  interpolate: interpolate2
@@ -17157,7 +17233,7 @@ var VVPlot = (function(exports, vue) {
17157
17233
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(binds.value, (group) => {
17158
17234
  return vue.openBlock(), vue.createElementBlock("g", vue.mergeProps({ ref_for: true }, { class: __props.groupClass, style: __props.groupStyle }), [
17159
17235
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(group, ([vbind, von]) => {
17160
- return vue.openBlock(), vue.createBlock(_sfc_main$K, vue.mergeProps({ ref_for: true }, vbind, vue.toHandlers(von)), null, 16);
17236
+ return vue.openBlock(), vue.createBlock(_sfc_main$L, vue.mergeProps({ ref_for: true }, vbind, vue.toHandlers(von)), null, 16);
17161
17237
  }), 256))
17162
17238
  ], 16);
17163
17239
  }), 256))
@@ -17166,7 +17242,7 @@ var VVPlot = (function(exports, vue) {
17166
17242
  }
17167
17243
  };
17168
17244
  const _hoisted_1$6 = { key: 0 };
17169
- const _sfc_main$I = {
17245
+ const _sfc_main$J = {
17170
17246
  __name: "CoreEllipse",
17171
17247
  props: {
17172
17248
  cx: { type: Number, default: 0 },
@@ -17211,7 +17287,7 @@ var VVPlot = (function(exports, vue) {
17211
17287
  };
17212
17288
  }
17213
17289
  };
17214
- const _sfc_main$H = {
17290
+ const _sfc_main$I = {
17215
17291
  __name: "CoreSvgEllipse",
17216
17292
  props: {
17217
17293
  extendX: { type: Number, default: 0 },
@@ -17285,7 +17361,7 @@ var VVPlot = (function(exports, vue) {
17285
17361
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(binds.value, (group) => {
17286
17362
  return vue.openBlock(), vue.createElementBlock("g", vue.mergeProps({ ref_for: true }, { class: __props.groupClass, style: __props.groupStyle }), [
17287
17363
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(group, ([vbind, von]) => {
17288
- return vue.openBlock(), vue.createBlock(_sfc_main$I, vue.mergeProps({ ref_for: true }, vbind, vue.toHandlers(von)), null, 16);
17364
+ return vue.openBlock(), vue.createBlock(_sfc_main$J, vue.mergeProps({ ref_for: true }, vbind, vue.toHandlers(von)), null, 16);
17289
17365
  }), 256))
17290
17366
  ], 16);
17291
17367
  }), 256))
@@ -17293,7 +17369,7 @@ var VVPlot = (function(exports, vue) {
17293
17369
  };
17294
17370
  }
17295
17371
  };
17296
- const _sfc_main$G = {
17372
+ const _sfc_main$H = {
17297
17373
  __name: "CoreSvgLine",
17298
17374
  props: {
17299
17375
  extendX: { type: Number, default: 0 },
@@ -17323,6 +17399,8 @@ var VVPlot = (function(exports, vue) {
17323
17399
  title,
17324
17400
  "translate-x": translateX = 0,
17325
17401
  "translate-y": translateY = 0,
17402
+ "marker-start": markerStart,
17403
+ "marker-end": markerEnd,
17326
17404
  class: className,
17327
17405
  style,
17328
17406
  $raw
@@ -17342,6 +17420,8 @@ var VVPlot = (function(exports, vue) {
17342
17420
  title,
17343
17421
  translateX,
17344
17422
  translateY,
17423
+ "marker-start": markerStart,
17424
+ "marker-end": markerEnd,
17345
17425
  class: className,
17346
17426
  style
17347
17427
  };
@@ -17356,7 +17436,7 @@ var VVPlot = (function(exports, vue) {
17356
17436
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(binds.value, (group) => {
17357
17437
  return vue.openBlock(), vue.createElementBlock("g", vue.mergeProps({ ref_for: true }, { class: __props.groupClass, style: __props.groupStyle }), [
17358
17438
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(group, ([vbind, von]) => {
17359
- return vue.openBlock(), vue.createBlock(_sfc_main$M, vue.mergeProps({ ref_for: true }, vbind, vue.toHandlers(von)), null, 16);
17439
+ return vue.openBlock(), vue.createBlock(_sfc_main$N, vue.mergeProps({ ref_for: true }, vbind, vue.toHandlers(von)), null, 16);
17360
17440
  }), 256))
17361
17441
  ], 16);
17362
17442
  }), 256))
@@ -17364,7 +17444,7 @@ var VVPlot = (function(exports, vue) {
17364
17444
  };
17365
17445
  }
17366
17446
  };
17367
- const _sfc_main$F = {
17447
+ const _sfc_main$G = {
17368
17448
  __name: "CoreSvgMarkdown",
17369
17449
  props: {
17370
17450
  extendX: { type: Number, default: 0 },
@@ -17415,6 +17495,11 @@ var VVPlot = (function(exports, vue) {
17415
17495
  let { h: h1, v: v1 } = __props.coord2pos({ x: x2 + lx / 2, y: y2 + ly / 2 }), { h: h2, v: v2 } = __props.coord2pos({ x: x2 - lx / 2, y: y2 - ly / 2 });
17416
17496
  textLength = Math.hypot(h1 - h2 || 0, v1 - v2 || 0);
17417
17497
  }
17498
+ if (typeof angle2 == "object") {
17499
+ let { dx = 0, dy = 0 } = angle2;
17500
+ let { h, v } = __props.coord2pos({ x: x2 + dx, y: y2 + dy });
17501
+ angle2 = Math.atan2(v - ty, h - tx) * 180 / Math.PI;
17502
+ }
17418
17503
  let vbind = {
17419
17504
  x: tx,
17420
17505
  y: ty,
@@ -17450,7 +17535,7 @@ var VVPlot = (function(exports, vue) {
17450
17535
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(binds.value, (group) => {
17451
17536
  return vue.openBlock(), vue.createElementBlock("g", vue.mergeProps({ ref_for: true }, { class: __props.groupClass, style: __props.groupStyle }), [
17452
17537
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(group, ([vbind, von]) => {
17453
- return vue.openBlock(), vue.createBlock(_sfc_main$12, vue.mergeProps({ ref_for: true }, vbind, vue.toHandlers(von)), null, 16);
17538
+ return vue.openBlock(), vue.createBlock(_sfc_main$14, vue.mergeProps({ ref_for: true }, vbind, vue.toHandlers(von)), null, 16);
17454
17539
  }), 256))
17455
17540
  ], 16);
17456
17541
  }), 256))
@@ -17458,7 +17543,7 @@ var VVPlot = (function(exports, vue) {
17458
17543
  };
17459
17544
  }
17460
17545
  };
17461
- const _sfc_main$E = {
17546
+ const _sfc_main$F = {
17462
17547
  __name: "CoreSvgMarkdownsegment",
17463
17548
  props: {
17464
17549
  extendX: { type: Number, default: 0 },
@@ -17571,7 +17656,7 @@ var VVPlot = (function(exports, vue) {
17571
17656
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(binds.value, (group) => {
17572
17657
  return vue.openBlock(), vue.createElementBlock("g", vue.mergeProps({ ref_for: true }, { class: __props.groupClass, style: __props.groupStyle }), [
17573
17658
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(group, ([vbind, von]) => {
17574
- return vue.openBlock(), vue.createBlock(_sfc_main$12, vue.mergeProps({ ref_for: true }, vbind, vue.toHandlers(von)), null, 16);
17659
+ return vue.openBlock(), vue.createBlock(_sfc_main$14, vue.mergeProps({ ref_for: true }, vbind, vue.toHandlers(von)), null, 16);
17575
17660
  }), 256))
17576
17661
  ], 16);
17577
17662
  }), 256))
@@ -17579,7 +17664,7 @@ var VVPlot = (function(exports, vue) {
17579
17664
  };
17580
17665
  }
17581
17666
  };
17582
- const _sfc_main$D = {
17667
+ const _sfc_main$E = {
17583
17668
  __name: "CoreSvgPoint",
17584
17669
  props: {
17585
17670
  extendX: { type: Number, default: 0 },
@@ -17617,6 +17702,11 @@ var VVPlot = (function(exports, vue) {
17617
17702
  }) => {
17618
17703
  const { h: cx, v: cy } = __props.coord2pos({ x: x2, y: y2 });
17619
17704
  if (cx < xlim_min || cx > xlim_max || cy < ylim_min || cy > ylim_max) return null;
17705
+ if (typeof angle2 == "object") {
17706
+ let { dx = 0, dy = 0 } = angle2;
17707
+ let { h, v } = __props.coord2pos({ x: x2 + dx, y: y2 + dy });
17708
+ angle2 = Math.atan2(v - cy, h - cx) * 180 / Math.PI;
17709
+ }
17620
17710
  let vbind = {
17621
17711
  x: cx,
17622
17712
  y: cy,
@@ -17645,7 +17735,7 @@ var VVPlot = (function(exports, vue) {
17645
17735
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(binds.value, (group) => {
17646
17736
  return vue.openBlock(), vue.createElementBlock("g", vue.mergeProps({ ref_for: true }, { class: __props.groupClass, style: __props.groupStyle }), [
17647
17737
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(group, ([vbind, von]) => {
17648
- return vue.openBlock(), vue.createBlock(_sfc_main$N, vue.mergeProps({ ref_for: true }, vbind, vue.toHandlers(von)), null, 16);
17738
+ return vue.openBlock(), vue.createBlock(_sfc_main$O, vue.mergeProps({ ref_for: true }, vbind, vue.toHandlers(von)), null, 16);
17649
17739
  }), 256))
17650
17740
  ], 16);
17651
17741
  }), 256))
@@ -17654,7 +17744,7 @@ var VVPlot = (function(exports, vue) {
17654
17744
  }
17655
17745
  };
17656
17746
  const _hoisted_1$5 = { key: 0 };
17657
- const _sfc_main$C = {
17747
+ const _sfc_main$D = {
17658
17748
  __name: "CorePolygon",
17659
17749
  props: {
17660
17750
  points: { type: Array, default: () => [] },
@@ -17688,7 +17778,7 @@ var VVPlot = (function(exports, vue) {
17688
17778
  };
17689
17779
  }
17690
17780
  };
17691
- const _sfc_main$B = {
17781
+ const _sfc_main$C = {
17692
17782
  __name: "CoreSvgPolygon",
17693
17783
  props: {
17694
17784
  extendX: { type: Number, default: 0 },
@@ -17716,6 +17806,9 @@ var VVPlot = (function(exports, vue) {
17716
17806
  title,
17717
17807
  "translate-x": translateX = 0,
17718
17808
  "translate-y": translateY = 0,
17809
+ "marker-start": markerStart,
17810
+ "marker-mid": markerMid,
17811
+ "marker-end": markerEnd,
17719
17812
  class: className,
17720
17813
  style,
17721
17814
  $raw
@@ -17732,6 +17825,9 @@ var VVPlot = (function(exports, vue) {
17732
17825
  title,
17733
17826
  translateX,
17734
17827
  translateY,
17828
+ "marker-start": markerStart,
17829
+ "marker-mid": markerMid,
17830
+ "marker-end": markerEnd,
17735
17831
  class: className,
17736
17832
  style
17737
17833
  };
@@ -17746,7 +17842,7 @@ var VVPlot = (function(exports, vue) {
17746
17842
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(binds.value, (group) => {
17747
17843
  return vue.openBlock(), vue.createElementBlock("g", vue.mergeProps({ ref_for: true }, { class: __props.groupClass, style: __props.groupStyle }), [
17748
17844
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(group, ([vbind, von]) => {
17749
- return vue.openBlock(), vue.createBlock(_sfc_main$C, vue.mergeProps({ ref_for: true }, vbind, vue.toHandlers(von)), null, 16);
17845
+ return vue.openBlock(), vue.createBlock(_sfc_main$D, vue.mergeProps({ ref_for: true }, vbind, vue.toHandlers(von)), null, 16);
17750
17846
  }), 256))
17751
17847
  ], 16);
17752
17848
  }), 256))
@@ -17754,7 +17850,7 @@ var VVPlot = (function(exports, vue) {
17754
17850
  };
17755
17851
  }
17756
17852
  };
17757
- const _sfc_main$A = {
17853
+ const _sfc_main$B = {
17758
17854
  __name: "CoreSvgRect",
17759
17855
  props: {
17760
17856
  extendX: { type: Number, default: 0 },
@@ -17818,7 +17914,7 @@ var VVPlot = (function(exports, vue) {
17818
17914
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(binds.value, (group) => {
17819
17915
  return vue.openBlock(), vue.createElementBlock("g", vue.mergeProps({ ref_for: true }, { class: __props.groupClass, style: __props.groupStyle }), [
17820
17916
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(group, ([vbind, von]) => {
17821
- return vue.openBlock(), vue.createBlock(_sfc_main$O, vue.mergeProps({ ref_for: true }, vbind, vue.toHandlers(von)), null, 16);
17917
+ return vue.openBlock(), vue.createBlock(_sfc_main$P, vue.mergeProps({ ref_for: true }, vbind, vue.toHandlers(von)), null, 16);
17822
17918
  }), 256))
17823
17919
  ], 16);
17824
17920
  }), 256))
@@ -17826,7 +17922,7 @@ var VVPlot = (function(exports, vue) {
17826
17922
  };
17827
17923
  }
17828
17924
  };
17829
- const _sfc_main$z = {
17925
+ const _sfc_main$A = {
17830
17926
  __name: "CoreSvgText",
17831
17927
  props: {
17832
17928
  extendX: { type: Number, default: 0 },
@@ -17877,6 +17973,11 @@ var VVPlot = (function(exports, vue) {
17877
17973
  let { h: h1, v: v1 } = __props.coord2pos({ x: x2 + lx / 2, y: y2 + ly / 2 }), { h: h2, v: v2 } = __props.coord2pos({ x: x2 - lx / 2, y: y2 - ly / 2 });
17878
17974
  textLength = Math.hypot(h1 - h2 || 0, v1 - v2 || 0);
17879
17975
  }
17976
+ if (typeof angle2 == "object") {
17977
+ let { dx = 0, dy = 0 } = angle2;
17978
+ let { h, v } = __props.coord2pos({ x: x2 + dx, y: y2 + dy });
17979
+ angle2 = Math.atan2(v - ty, h - tx) * 180 / Math.PI;
17980
+ }
17880
17981
  let vbind = {
17881
17982
  x: tx,
17882
17983
  y: ty,
@@ -17912,7 +18013,7 @@ var VVPlot = (function(exports, vue) {
17912
18013
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(binds.value, (group) => {
17913
18014
  return vue.openBlock(), vue.createElementBlock("g", vue.mergeProps({ ref_for: true }, { class: __props.groupClass, style: __props.groupStyle }), [
17914
18015
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(group, ([vbind, von]) => {
17915
- return vue.openBlock(), vue.createBlock(_sfc_main$13, vue.mergeProps({ ref_for: true }, vbind, vue.toHandlers(von)), null, 16);
18016
+ return vue.openBlock(), vue.createBlock(_sfc_main$15, vue.mergeProps({ ref_for: true }, vbind, vue.toHandlers(von)), null, 16);
17916
18017
  }), 256))
17917
18018
  ], 16);
17918
18019
  }), 256))
@@ -17920,7 +18021,7 @@ var VVPlot = (function(exports, vue) {
17920
18021
  };
17921
18022
  }
17922
18023
  };
17923
- const _sfc_main$y = {
18024
+ const _sfc_main$z = {
17924
18025
  __name: "CoreSvgTextsegment",
17925
18026
  props: {
17926
18027
  extendX: { type: Number, default: 0 },
@@ -18099,22 +18200,22 @@ var VVPlot = (function(exports, vue) {
18099
18200
  };
18100
18201
  const svg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
18101
18202
  __proto__: null,
18102
- blank: _sfc_main$P,
18103
- boxplot: _sfc_main$L,
18104
- curve: _sfc_main$J,
18105
- ellipse: _sfc_main$H,
18106
- line: _sfc_main$G,
18107
- markdown: _sfc_main$F,
18108
- markdownsegment: _sfc_main$E,
18109
- point: _sfc_main$D,
18110
- polygon: _sfc_main$B,
18111
- rect: _sfc_main$A,
18112
- stick: _sfc_main$G,
18113
- text: _sfc_main$z,
18114
- textsegment: _sfc_main$y,
18115
- tile: _sfc_main$A
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
18116
18217
  }, Symbol.toStringTag, { value: "Module" }));
18117
- const _sfc_main$x = {
18218
+ const _sfc_main$y = {
18118
18219
  __name: "CoreLayer",
18119
18220
  props: {
18120
18221
  data: Object,
@@ -18155,7 +18256,7 @@ var VVPlot = (function(exports, vue) {
18155
18256
  };
18156
18257
  const _hoisted_1$4 = { key: 0 };
18157
18258
  const _hoisted_2$3 = ["onPointerdown"];
18158
- const _sfc_main$w = {
18259
+ const _sfc_main$x = {
18159
18260
  __name: "CoreSelection",
18160
18261
  props: /* @__PURE__ */ vue.mergeModels({
18161
18262
  coord2pos: Function,
@@ -18255,7 +18356,7 @@ var VVPlot = (function(exports, vue) {
18255
18356
  if (pos.hmax == null) hmax += linewidth / 2;
18256
18357
  if (pos.vmin == null) vmin -= linewidth / 2;
18257
18358
  if (pos.vmax == null) vmax += linewidth / 2;
18258
- let width = hmax - hmin, height = vmax - vmin;
18359
+ let width = Math.max(0, hmax - hmin), height = Math.max(0, vmax - vmin);
18259
18360
  return {
18260
18361
  x: hmin,
18261
18362
  y: vmin,
@@ -18274,7 +18375,7 @@ var VVPlot = (function(exports, vue) {
18274
18375
  if (!position.value || translating.value) return null;
18275
18376
  let size = 10;
18276
18377
  let { hmin, hmax, vmin, vmax, pos } = position.value;
18277
- let width = hmax - hmin, height = vmax - vmin;
18378
+ let width = Math.max(0, hmax - hmin), height = Math.max(0, vmax - vmin);
18278
18379
  let binds = {};
18279
18380
  if (config.move) binds.tblr = {
18280
18381
  x: hmin,
@@ -18412,7 +18513,7 @@ var VVPlot = (function(exports, vue) {
18412
18513
  const _hoisted_1$3 = ["height", "width"];
18413
18514
  const _hoisted_2$2 = ["y1", "y2"];
18414
18515
  const _hoisted_3$2 = ["y"];
18415
- const _sfc_main$v = {
18516
+ const _sfc_main$w = {
18416
18517
  __name: "CoreGuideGradientbar",
18417
18518
  props: {
18418
18519
  scales: Array,
@@ -18452,7 +18553,7 @@ var VVPlot = (function(exports, vue) {
18452
18553
  ref: "svg"
18453
18554
  }, [
18454
18555
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(gradient_values.value, (v, i) => {
18455
- return vue.openBlock(), vue.createBlock(_sfc_main$O, vue.mergeProps({
18556
+ return vue.openBlock(), vue.createBlock(_sfc_main$P, vue.mergeProps({
18456
18557
  width: 10,
18457
18558
  height: 3.1,
18458
18559
  x: 10,
@@ -18484,12 +18585,12 @@ var VVPlot = (function(exports, vue) {
18484
18585
  };
18485
18586
  const element = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
18486
18587
  __proto__: null,
18487
- curve: _sfc_main$K,
18488
- line: _sfc_main$M,
18489
- point: _sfc_main$N,
18490
- polygon: _sfc_main$C,
18491
- text: _sfc_main$13,
18492
- tile: _sfc_main$O
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
18493
18594
  }, Symbol.toStringTag, { value: "Module" }));
18494
18595
  const _hoisted_1$2 = ["height", "width"];
18495
18596
  const _hoisted_2$1 = ["transform"];
@@ -18499,7 +18600,7 @@ var VVPlot = (function(exports, vue) {
18499
18600
  y: "10",
18500
18601
  "alignment-baseline": "central"
18501
18602
  };
18502
- const _sfc_main$u = {
18603
+ const _sfc_main$v = {
18503
18604
  __name: "CoreGuideLegendkey",
18504
18605
  props: {
18505
18606
  scales: Array,
@@ -18566,7 +18667,7 @@ var VVPlot = (function(exports, vue) {
18566
18667
  };
18567
18668
  }
18568
18669
  };
18569
- const _sfc_main$t = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
18670
+ const _sfc_main$u = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
18570
18671
  __name: "CoreGuide",
18571
18672
  props: {
18572
18673
  scales: Array,
@@ -18574,8 +18675,8 @@ var VVPlot = (function(exports, vue) {
18574
18675
  },
18575
18676
  setup(__props) {
18576
18677
  const guide = {
18577
- legendkey: _sfc_main$u,
18578
- gradientbar: _sfc_main$v
18678
+ legendkey: _sfc_main$v,
18679
+ gradientbar: _sfc_main$w
18579
18680
  };
18580
18681
  const title = vue.computed(() => {
18581
18682
  return __props.scales.reduce((v, [s]) => v ?? s.title, null) ?? __props.scales.reduce((v, [s]) => v ?? s._title, null);
@@ -18619,7 +18720,7 @@ var VVPlot = (function(exports, vue) {
18619
18720
  };
18620
18721
  }
18621
18722
  });
18622
- const _sfc_main$s = {
18723
+ const _sfc_main$t = {
18623
18724
  __name: "CoreLegend",
18624
18725
  props: {
18625
18726
  theme: { type: Object, default: () => ({}) },
@@ -18653,7 +18754,7 @@ var VVPlot = (function(exports, vue) {
18653
18754
  style: vue.normalizeStyle({ gap: __props.theme.spacing + "px" })
18654
18755
  }, [
18655
18756
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(guides.value, ([[key, type], scales]) => {
18656
- return vue.openBlock(), vue.createBlock(_sfc_main$t, {
18757
+ return vue.openBlock(), vue.createBlock(_sfc_main$u, {
18657
18758
  key,
18658
18759
  type,
18659
18760
  scales
@@ -18671,7 +18772,7 @@ var VVPlot = (function(exports, vue) {
18671
18772
  const _hoisted_6 = ["transform"];
18672
18773
  const _hoisted_7 = ["clip-path"];
18673
18774
  const _hoisted_8 = { key: 1 };
18674
- const _sfc_main$r = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
18775
+ const _sfc_main$s = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
18675
18776
  __name: "CorePlot",
18676
18777
  props: /* @__PURE__ */ vue.mergeModels({
18677
18778
  schema: Object,
@@ -19284,37 +19385,39 @@ var VVPlot = (function(exports, vue) {
19284
19385
  etc
19285
19386
  }));
19286
19387
  });
19388
+ function grid_theme_normalize(theme2) {
19389
+ let {
19390
+ grid_color,
19391
+ grid_color_major = grid_color,
19392
+ grid_color_minor = grid_color,
19393
+ grid_width,
19394
+ grid_width_major = grid_width,
19395
+ grid_width_minor = grid_width,
19396
+ ...result
19397
+ } = theme2;
19398
+ if (grid_color_major) result.grid_color_major = grid_color_major;
19399
+ if (grid_color_minor) result.grid_color_minor = grid_color_minor;
19400
+ if (grid_width_major) result.grid_width_major = grid_width_major;
19401
+ if (grid_width_minor) result.grid_width_minor = grid_width_minor;
19402
+ return result;
19403
+ }
19287
19404
  const vaxes = vue.computed(() => gaxes.value.map(({ coord, axis, etc }) => {
19288
- let { majorBreaks, minorBreaks, ticks: ticks2 } = axis.getBindings({
19289
- range: axisRange[coord],
19290
- expandMult: __props.expandMult[coord]
19291
- });
19292
- let { showGrid, orientation, ...bind } = etc;
19293
- return {
19294
- majorBreaks,
19295
- minorBreaks,
19296
- ticks: ticks2,
19297
- showGrid,
19298
- coord,
19299
- orientation,
19300
- bind
19301
- };
19405
+ let { showGrid, breakSlot, orientation, ...bind } = etc;
19406
+ let gtheme = grid_theme_normalize(__props.theme.axis[orientation] ?? {}), atheme = grid_theme_normalize(bind.theme);
19407
+ let breaks = axis.getBreaks({ range: axisRange[coord], expandMult: __props.expandMult[coord], breakSlot });
19408
+ for (let b of breaks)
19409
+ b.theme = Object.assign({}, gtheme, atheme, grid_theme_normalize(b.theme ?? {}));
19410
+ return { breaks, showGrid, coord, orientation, bind };
19302
19411
  }));
19303
19412
  const gridBreaks = vue.computed(() => {
19304
19413
  let hAxes = vaxes.value.filter((a) => a.showGrid && a.orientation == "v"), vAxes = vaxes.value.filter((a) => a.showGrid && a.orientation == "h");
19305
19414
  return {
19306
- h: {
19307
- majorBreaks: unique(hAxes.flatMap((a) => a.majorBreaks), (x2) => x2.position),
19308
- minorBreaks: unique(hAxes.flatMap((a) => a.minorBreaks), (x2) => x2.position)
19309
- },
19310
- v: {
19311
- majorBreaks: unique(vAxes.flatMap((a) => a.majorBreaks), (x2) => x2.position),
19312
- minorBreaks: unique(vAxes.flatMap((a) => a.minorBreaks), (x2) => x2.position)
19313
- }
19415
+ h: unique(hAxes.flatMap((a) => a.breaks), (x2) => x2.value, (a, b) => [a, b].find((x2) => x2.type == "major") ?? a),
19416
+ v: unique(vAxes.flatMap((a) => a.breaks), (x2) => x2.value, (a, b) => [a, b].find((x2) => x2.type == "major") ?? a)
19314
19417
  };
19315
19418
  });
19316
19419
  const axes = vue.computed(() => {
19317
- return vaxes.value.map(({ orientation, coord, bind, ticks: ticks2 }) => {
19420
+ return vaxes.value.map(({ orientation, coord, bind, breaks }) => {
19318
19421
  let {
19319
19422
  onMove: move = (...args) => emit("move", ...args),
19320
19423
  onZoom: zoom = (...args) => emit("zoom", ...args),
@@ -19327,7 +19430,7 @@ var VVPlot = (function(exports, vue) {
19327
19430
  bind: {
19328
19431
  coord,
19329
19432
  orientation,
19330
- ticks: ticks2,
19433
+ ticks: breaks.filter((x2) => x2.type == "major"),
19331
19434
  layout: innerRect,
19332
19435
  coord2pos,
19333
19436
  pos2coord,
@@ -19368,21 +19471,21 @@ var VVPlot = (function(exports, vue) {
19368
19471
  transform: `translate(${vue.unref(panel).left}, ${vue.unref(panel).top})`,
19369
19472
  style: { "pointer-events": "none" }
19370
19473
  }, [
19371
- __props.theme.grid.h ? (vue.openBlock(), vue.createBlock(_sfc_main$_, vue.mergeProps({ key: 0 }, gridBreaks.value.h, {
19474
+ vue.createVNode(_sfc_main$$, {
19475
+ breaks: gridBreaks.value.h,
19372
19476
  layout: vue.unref(innerRect),
19373
- theme: __props.theme.grid.h,
19374
19477
  activeTransform: activeTransform.value,
19375
19478
  coord2pos,
19376
19479
  transition: transition.value
19377
- }), null, 16, ["layout", "theme", "activeTransform", "transition"])) : vue.createCommentVNode("", true),
19480
+ }, null, 8, ["breaks", "layout", "activeTransform", "transition"]),
19378
19481
  _cache[2] || (_cache[2] = vue.createTextVNode()),
19379
- __props.theme.grid.v ? (vue.openBlock(), vue.createBlock(_sfc_main$Z, vue.mergeProps({ key: 1 }, gridBreaks.value.v, {
19482
+ vue.createVNode(_sfc_main$_, {
19483
+ breaks: gridBreaks.value.v,
19380
19484
  layout: vue.unref(innerRect),
19381
- theme: __props.theme.grid.v,
19382
19485
  activeTransform: activeTransform.value,
19383
19486
  coord2pos,
19384
19487
  transition: transition.value
19385
- }), null, 16, ["layout", "theme", "activeTransform", "transition"])) : vue.createCommentVNode("", true)
19488
+ }, null, 8, ["breaks", "layout", "activeTransform", "transition"])
19386
19489
  ], 8, _hoisted_4),
19387
19490
  _cache[8] || (_cache[8] = vue.createTextVNode()),
19388
19491
  vue.createElementVNode("g", {
@@ -19393,7 +19496,7 @@ var VVPlot = (function(exports, vue) {
19393
19496
  style: { transition: transition.value }
19394
19497
  }), [
19395
19498
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vplot.value.layers, (layer) => {
19396
- return vue.openBlock(), vue.createBlock(_sfc_main$x, vue.mergeProps({
19499
+ return vue.openBlock(), vue.createBlock(_sfc_main$y, vue.mergeProps({
19397
19500
  ref_for: true,
19398
19501
  ref_key: "layers",
19399
19502
  ref: layers,
@@ -19410,7 +19513,7 @@ var VVPlot = (function(exports, vue) {
19410
19513
  ], 16),
19411
19514
  _cache[3] || (_cache[3] = vue.createTextVNode()),
19412
19515
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(props.selections, (sel) => {
19413
- return vue.openBlock(), vue.createBlock(_sfc_main$w, vue.mergeProps({
19516
+ return vue.openBlock(), vue.createBlock(_sfc_main$x, vue.mergeProps({
19414
19517
  coord2pos,
19415
19518
  pos2coord,
19416
19519
  layout: vue.unref(innerRect),
@@ -19421,7 +19524,7 @@ var VVPlot = (function(exports, vue) {
19421
19524
  }, { ref_for: true }, sel, { flip: __props.flip }), null, 16, ["layout", "transition", "activeTransform", "flip"]);
19422
19525
  }), 256)),
19423
19526
  _cache[4] || (_cache[4] = vue.createTextVNode()),
19424
- vue.createVNode(_sfc_main$w, {
19527
+ vue.createVNode(_sfc_main$x, {
19425
19528
  coord2pos,
19426
19529
  pos2coord,
19427
19530
  layout: vue.unref(innerRect),
@@ -19437,7 +19540,7 @@ var VVPlot = (function(exports, vue) {
19437
19540
  transform: `translate(${vue.unref(panel).left}, ${vue.unref(panel).top})`
19438
19541
  }, [
19439
19542
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(axes.value.filter((a) => typeof a.bind.position !== "number"), (axis) => {
19440
- return vue.openBlock(), vue.createBlock(_sfc_main$$, vue.mergeProps({ ref_for: true }, axis.bind, vue.toHandlers(axis.on), {
19543
+ return vue.openBlock(), vue.createBlock(_sfc_main$10, vue.mergeProps({ ref_for: true }, axis.bind, vue.toHandlers(axis.on), {
19441
19544
  transition: transition.value,
19442
19545
  "onUpdate:transition": _cache[0] || (_cache[0] = ($event) => transition.value = $event),
19443
19546
  activeTransform: activeTransform.value
@@ -19448,7 +19551,7 @@ var VVPlot = (function(exports, vue) {
19448
19551
  "clip-path": props.clip ? `url(#${vue.unref(vid)}-plot-clip)` : null
19449
19552
  }, [
19450
19553
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(axes.value.filter((a) => typeof a.bind.position === "number"), (axis) => {
19451
- return vue.openBlock(), vue.createBlock(_sfc_main$$, vue.mergeProps({ ref_for: true }, axis.bind, vue.toHandlers(axis.on), {
19554
+ return vue.openBlock(), vue.createBlock(_sfc_main$10, vue.mergeProps({ ref_for: true }, axis.bind, vue.toHandlers(axis.on), {
19452
19555
  transition: transition.value,
19453
19556
  "onUpdate:transition": _cache[1] || (_cache[1] = ($event) => transition.value = $event),
19454
19557
  activeTransform: activeTransform.value
@@ -19457,12 +19560,14 @@ var VVPlot = (function(exports, vue) {
19457
19560
  ], 8, _hoisted_7)
19458
19561
  ], 8, _hoisted_6),
19459
19562
  _cache[10] || (_cache[10] = vue.createTextVNode()),
19563
+ vue.renderSlot(_ctx.$slots, "default"),
19564
+ _cache[11] || (_cache[11] = vue.createTextVNode()),
19460
19565
  props.legendTeleport ? (vue.openBlock(), vue.createElementBlock("foreignObject", _hoisted_8, [
19461
19566
  (vue.openBlock(), vue.createBlock(vue.Teleport, {
19462
19567
  defer: "",
19463
19568
  to: props.legendTeleport
19464
19569
  }, [
19465
- vue.createVNode(_sfc_main$s, {
19570
+ vue.createVNode(_sfc_main$t, {
19466
19571
  scales: vplot.value?.scales,
19467
19572
  theme: __props.theme.legend
19468
19573
  }, null, 8, ["scales", "theme"])
@@ -19472,35 +19577,36 @@ var VVPlot = (function(exports, vue) {
19472
19577
  };
19473
19578
  }
19474
19579
  });
19475
- const _sfc_main$q = {
19580
+ const _sfc_main$r = {
19476
19581
  $_type: "action",
19477
19582
  $_props: {}
19478
19583
  };
19479
- const _sfc_main$p = {
19584
+ const _sfc_main$q = {
19480
19585
  $_type: "layer"
19481
19586
  };
19482
- const _sfc_main$o = {
19587
+ const _sfc_main$p = {
19483
19588
  $_props: {
19484
19589
  geom: "tile",
19485
19590
  stat: "bar"
19486
19591
  },
19487
- $_type: "layer"
19592
+ $_type: "layer",
19593
+ $_argnames: ["width", "height", "position"]
19488
19594
  };
19489
- const _sfc_main$n = {
19595
+ const _sfc_main$o = {
19490
19596
  $_props: {
19491
19597
  geom: "blank",
19492
19598
  stat: "identity"
19493
19599
  },
19494
19600
  $_type: "layer"
19495
19601
  };
19496
- const _sfc_main$m = {
19602
+ const _sfc_main$n = {
19497
19603
  $_props: {
19498
19604
  geom: "boxplot",
19499
19605
  stat: "boxplot"
19500
19606
  },
19501
19607
  $_type: "layer"
19502
19608
  };
19503
- const _sfc_main$l = {
19609
+ const _sfc_main$m = {
19504
19610
  $_props: {
19505
19611
  geom: "curve",
19506
19612
  stat: "curve"
@@ -19508,7 +19614,7 @@ var VVPlot = (function(exports, vue) {
19508
19614
  $_type: "layer",
19509
19615
  $_attrnames: ["interpolate"]
19510
19616
  };
19511
- const _sfc_main$k = {
19617
+ const _sfc_main$l = {
19512
19618
  $_props: {
19513
19619
  geom: "curve",
19514
19620
  stat: "density"
@@ -19516,7 +19622,7 @@ var VVPlot = (function(exports, vue) {
19516
19622
  $_type: "layer",
19517
19623
  $_argnames: ["n", "kernel"]
19518
19624
  };
19519
- const _sfc_main$j = {
19625
+ const _sfc_main$k = {
19520
19626
  $_props: {
19521
19627
  geom: "ellipse",
19522
19628
  stat: "ellipse"
@@ -19524,7 +19630,7 @@ var VVPlot = (function(exports, vue) {
19524
19630
  $_type: "layer",
19525
19631
  $_argnames: ["CI"]
19526
19632
  };
19527
- const _sfc_main$i = {
19633
+ const _sfc_main$j = {
19528
19634
  $_props: {
19529
19635
  geom: "rect",
19530
19636
  stat: "histogram"
@@ -19532,7 +19638,7 @@ var VVPlot = (function(exports, vue) {
19532
19638
  $_type: "layer",
19533
19639
  $_argnames: ["bins", "binwidth", "breaks"]
19534
19640
  };
19535
- const _sfc_main$h = {
19641
+ const _sfc_main$i = {
19536
19642
  $_props: {
19537
19643
  geom: "line",
19538
19644
  stat: "line"
@@ -19540,84 +19646,84 @@ var VVPlot = (function(exports, vue) {
19540
19646
  $_type: "layer",
19541
19647
  $_argnames: ["orientation"]
19542
19648
  };
19543
- const _sfc_main$g = {
19649
+ const _sfc_main$h = {
19544
19650
  $_props: {
19545
19651
  geom: "line",
19546
19652
  stat: "linerange"
19547
19653
  },
19548
19654
  $_type: "layer"
19549
19655
  };
19550
- const _sfc_main$f = {
19656
+ const _sfc_main$g = {
19551
19657
  $_props: {
19552
19658
  geom: "markdown",
19553
19659
  stat: "text"
19554
19660
  },
19555
19661
  $_type: "layer"
19556
19662
  };
19557
- const _sfc_main$e = {
19663
+ const _sfc_main$f = {
19558
19664
  $_props: {
19559
19665
  geom: "markdownsegment",
19560
19666
  stat: "textsegment"
19561
19667
  },
19562
19668
  $_type: "layer"
19563
19669
  };
19564
- const _sfc_main$d = {
19670
+ const _sfc_main$e = {
19565
19671
  $_props: {
19566
19672
  geom: "line",
19567
19673
  stat: "path"
19568
19674
  },
19569
19675
  $_type: "layer"
19570
19676
  };
19571
- const _sfc_main$c = {
19677
+ const _sfc_main$d = {
19572
19678
  $_props: {
19573
19679
  geom: "point",
19574
19680
  stat: "point"
19575
19681
  },
19576
19682
  $_type: "layer"
19577
19683
  };
19578
- const _sfc_main$b = {
19684
+ const _sfc_main$c = {
19579
19685
  $_props: {
19580
19686
  geom: "polygon",
19581
19687
  stat: "polygon"
19582
19688
  },
19583
19689
  $_type: "layer"
19584
19690
  };
19585
- const _sfc_main$a = {
19691
+ const _sfc_main$b = {
19586
19692
  $_props: {
19587
19693
  geom: "rect",
19588
19694
  stat: "rect"
19589
19695
  },
19590
19696
  $_type: "layer"
19591
19697
  };
19592
- const _sfc_main$9 = {
19698
+ const _sfc_main$a = {
19593
19699
  $_props: {
19594
19700
  geom: "line",
19595
19701
  stat: "segment"
19596
19702
  },
19597
19703
  $_type: "layer"
19598
19704
  };
19599
- const _sfc_main$8 = {
19705
+ const _sfc_main$9 = {
19600
19706
  $_props: {
19601
19707
  geom: "stick",
19602
19708
  stat: "stick"
19603
19709
  },
19604
19710
  $_type: "layer"
19605
19711
  };
19606
- const _sfc_main$7 = {
19712
+ const _sfc_main$8 = {
19607
19713
  $_props: {
19608
19714
  geom: "text",
19609
19715
  stat: "text"
19610
19716
  },
19611
19717
  $_type: "layer"
19612
19718
  };
19613
- const _sfc_main$6 = {
19719
+ const _sfc_main$7 = {
19614
19720
  $_props: {
19615
19721
  geom: "textsegment",
19616
19722
  stat: "textsegment"
19617
19723
  },
19618
19724
  $_type: "layer"
19619
19725
  };
19620
- const _sfc_main$5 = {
19726
+ const _sfc_main$6 = {
19621
19727
  $_props: {
19622
19728
  geom: "tile",
19623
19729
  stat: "tile"
@@ -19626,45 +19732,50 @@ var VVPlot = (function(exports, vue) {
19626
19732
  };
19627
19733
  const geom_components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
19628
19734
  __proto__: null,
19629
- VVGeom: _sfc_main$p,
19630
- VVGeomBar: _sfc_main$o,
19631
- VVGeomBlank: _sfc_main$n,
19632
- VVGeomBoxplot: _sfc_main$m,
19633
- VVGeomCurve: _sfc_main$l,
19634
- VVGeomDensity: _sfc_main$k,
19635
- VVGeomEllipse: _sfc_main$j,
19636
- VVGeomHistogram: _sfc_main$i,
19637
- VVGeomLine: _sfc_main$h,
19638
- VVGeomLinerange: _sfc_main$g,
19639
- VVGeomMarkdown: _sfc_main$f,
19640
- VVGeomMarkdownsegment: _sfc_main$e,
19641
- VVGeomPath: _sfc_main$d,
19642
- VVGeomPoint: _sfc_main$c,
19643
- VVGeomPolygon: _sfc_main$b,
19644
- VVGeomRect: _sfc_main$a,
19645
- VVGeomSegment: _sfc_main$9,
19646
- VVGeomStick: _sfc_main$8,
19647
- VVGeomText: _sfc_main$7,
19648
- VVGeomTextsegment: _sfc_main$6,
19649
- VVGeomTile: _sfc_main$5
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
19650
19756
  }, Symbol.toStringTag, { value: "Module" }));
19651
- const _sfc_main$4 = {
19757
+ const _sfc_main$5 = {
19652
19758
  $_type: "axis",
19653
19759
  $_props: {}
19654
19760
  };
19655
- const _sfc_main$3 = {
19761
+ const _sfc_main$4 = {
19656
19762
  $_type: "axis",
19657
19763
  $_props: { coord: "x" }
19658
19764
  };
19659
- const _sfc_main$2 = {
19765
+ const _sfc_main$3 = {
19660
19766
  $_type: "axis",
19661
19767
  $_props: { coord: "y" }
19662
19768
  };
19769
+ const _sfc_main$2 = {
19770
+ $_type: "axis-break",
19771
+ $_props: { type: "major" }
19772
+ };
19663
19773
  const axis_components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
19664
19774
  __proto__: null,
19665
- VVAxis: _sfc_main$4,
19666
- VVAxisX: _sfc_main$3,
19667
- VVAxisY: _sfc_main$2
19775
+ VVAxis: _sfc_main$5,
19776
+ VVAxisBreak: _sfc_main$2,
19777
+ VVAxisX: _sfc_main$4,
19778
+ VVAxisY: _sfc_main$3
19668
19779
  }, Symbol.toStringTag, { value: "Module" }));
19669
19780
  const _hoisted_1 = {
19670
19781
  key: 0,
@@ -19711,8 +19822,8 @@ var VVPlot = (function(exports, vue) {
19711
19822
  const components = {
19712
19823
  ...geom_components,
19713
19824
  ...axis_components,
19714
- VVAction: _sfc_main$q,
19715
- VVSelection: _sfc_main$q
19825
+ VVAction: _sfc_main$r,
19826
+ VVSelection: _sfc_main$r
19716
19827
  };
19717
19828
  const opponents = {
19718
19829
  x: "y",
@@ -19732,20 +19843,6 @@ var VVPlot = (function(exports, vue) {
19732
19843
  const selectionPreview = vue.useModel(__props, "selectionPreview");
19733
19844
  const selectionPreviewTheme = vue.useModel(__props, "selectionPreviewTheme");
19734
19845
  const transition = vue.useModel(__props, "transition");
19735
- function expandFragment(componentList) {
19736
- if (componentList == null) return [];
19737
- return componentList.flatMap((layer) => {
19738
- if (layer.type == vue.Fragment) {
19739
- return expandFragment(layer.children);
19740
- } else if (layer.type == "template") {
19741
- return expandFragment(layer.children).map((c) => {
19742
- c.props = { ...c.props, ...layer.props };
19743
- return c;
19744
- });
19745
- }
19746
- return layer;
19747
- });
19748
- }
19749
19846
  function resolveComponent(ast2) {
19750
19847
  let result = {
19751
19848
  props: Object.fromEntries(ast2.props.map((p) => {
@@ -19793,6 +19890,8 @@ var VVPlot = (function(exports, vue) {
19793
19890
  const vaction = vue.computed(() => Object.values(vnodes.action).flat());
19794
19891
  const vselection = vue.computed(() => Object.values(vnodes.selection).flat());
19795
19892
  const vdom = vue.computed(() => Object.keys(vnodes.dom).flatMap((k) => k == "panel" ? [] : vnodes.dom[k]));
19893
+ const vdom_svg = vue.computed(() => vdom.value.filter((v) => isSVGTag(v.type)));
19894
+ const vdom_etc = vue.computed(() => vdom.value.filter((v) => !isSVGTag(v.type)));
19796
19895
  const vBind = vue.computed(() => {
19797
19896
  let plot = {};
19798
19897
  let wrapper = {};
@@ -20013,7 +20112,7 @@ var VVPlot = (function(exports, vue) {
20013
20112
  const buttonsMap = { left: 1, right: 2, middle: 4, X1: 8, X2: 16 };
20014
20113
  const axes = vue.computed(() => {
20015
20114
  let ori = __props.flip ? { x: "v", y: "h" } : { x: "h", y: "v" };
20016
- let allAxes = vaxis.value.map((c) => ({ ...c.type.$_props, ...c.props, $_children: c.children })).concat(__props.axes ?? []);
20115
+ let allAxes = vaxis.value.map((c) => ({ ...c.type.$_props, ...c.props, $_children: c.children ?? {} })).concat(__props.axes ?? []);
20017
20116
  if (allAxes.every((ax) => ax?.coord != "x")) allAxes.push({ coord: "x" });
20018
20117
  if (allAxes.every((ax) => ax?.coord != "y")) allAxes.push({ coord: "y" });
20019
20118
  return allAxes.map(({
@@ -20040,7 +20139,7 @@ var VVPlot = (function(exports, vue) {
20040
20139
  max,
20041
20140
  "onUpdate:min": oum,
20042
20141
  "onUpdate:max": ouM,
20043
- $_children,
20142
+ $_children = {},
20044
20143
  ...etc
20045
20144
  }) => {
20046
20145
  let orientation = ori[coord];
@@ -20052,7 +20151,8 @@ var VVPlot = (function(exports, vue) {
20052
20151
  position = { h: "top", v: "right" }[orientation];
20053
20152
  if (reverse[opponents[coord]]) position = opponents[position];
20054
20153
  }
20055
- let action2 = Object.values($_children ?? {}).filter((s) => typeof s == "function").flatMap((s) => expandFragment(s())).map((c) => ({ ...c.type.$_props, ...c.props })).concat($$action ?? []).flatMap((props) => {
20154
+ let breakSlot = $_children.breaks;
20155
+ let action2 = Object.keys($_children).filter((k) => typeof $_children[k] == "function" && k != "breaks").flatMap((k) => expandFragment($_children[k]())).map((c) => ({ ...c.type.$_props, ...c.props })).concat($$action ?? []).flatMap((props) => {
20056
20156
  let res = [];
20057
20157
  for (let a of ["move", "nudge", "zoom", "rescale"]) {
20058
20158
  let act = props[a];
@@ -20082,6 +20182,7 @@ var VVPlot = (function(exports, vue) {
20082
20182
  labels,
20083
20183
  titles,
20084
20184
  minorBreaks,
20185
+ breakSlot,
20085
20186
  showGrid: _isPropTruthy(showGrid) ?? position !== "none",
20086
20187
  extend: extend2 ?? primaryAxisConfig.extend[coord],
20087
20188
  theme: Object.assign({}, ...[theme2.value?.axis?.[position] ?? theme2.value?.axis?.[orientation]].concat($$theme)),
@@ -20239,7 +20340,7 @@ var VVPlot = (function(exports, vue) {
20239
20340
  class: "vvplot",
20240
20341
  style: wrapperStyle.value
20241
20342
  }, vBind.value.wrapper), [
20242
- vue.createVNode(_sfc_main$r, vue.mergeProps({
20343
+ vue.createVNode(_sfc_main$s, vue.mergeProps({
20243
20344
  ref: "plot",
20244
20345
  paddings,
20245
20346
  schema: schema.value,
@@ -20268,7 +20369,14 @@ var VVPlot = (function(exports, vue) {
20268
20369
  dpi: __props.dpi ?? 96 * vue.unref(pixelRatio),
20269
20370
  legendTeleport: __props.legendTeleport,
20270
20371
  onSelect: _cache[3] || (_cache[3] = (d, e) => emit("select", d, e))
20271
- }), null, 16, ["paddings", "schema", "layers", "min-range", "expand-add", "expand-mult", "reverse", "flip", "coord-levels", "levels", "scales", "axes", "theme", "selections", "transition", "selection-preview", "selection-preview-theme", "action", "clip", "render", "dpi", "legendTeleport"]),
20372
+ }), {
20373
+ default: vue.withCtx(() => [
20374
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vdom_svg.value, (c) => {
20375
+ return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(c));
20376
+ }), 256))
20377
+ ]),
20378
+ _: 1
20379
+ }, 16, ["paddings", "schema", "layers", "min-range", "expand-add", "expand-mult", "reverse", "flip", "coord-levels", "levels", "scales", "axes", "theme", "selections", "transition", "selection-preview", "selection-preview-theme", "action", "clip", "render", "dpi", "legendTeleport"]),
20272
20380
  _cache[4] || (_cache[4] = vue.createTextVNode()),
20273
20381
  vue.createElementVNode("div", {
20274
20382
  class: "vvplot-panel-container",
@@ -20281,7 +20389,7 @@ var VVPlot = (function(exports, vue) {
20281
20389
  ])) : vue.createCommentVNode("", true)
20282
20390
  ], 4),
20283
20391
  _cache[5] || (_cache[5] = vue.createTextVNode()),
20284
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vdom.value, (c) => {
20392
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vdom_etc.value, (c) => {
20285
20393
  return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(c));
20286
20394
  }), 256))
20287
20395
  ], 16);
@@ -20294,67 +20402,71 @@ var VVPlot = (function(exports, vue) {
20294
20402
  };
20295
20403
  const index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20296
20404
  __proto__: null,
20297
- VVAction: _sfc_main$q,
20298
- VVAxis: _sfc_main$4,
20299
- VVAxisX: _sfc_main$3,
20300
- VVAxisY: _sfc_main$2,
20301
- VVGeom: _sfc_main$p,
20302
- VVGeomBar: _sfc_main$o,
20303
- VVGeomBlank: _sfc_main$n,
20304
- VVGeomBoxplot: _sfc_main$m,
20305
- VVGeomCurve: _sfc_main$l,
20306
- VVGeomDensity: _sfc_main$k,
20307
- VVGeomEllipse: _sfc_main$j,
20308
- VVGeomHistogram: _sfc_main$i,
20309
- VVGeomLine: _sfc_main$h,
20310
- VVGeomLinerange: _sfc_main$g,
20311
- VVGeomMarkdown: _sfc_main$f,
20312
- VVGeomMarkdownsegment: _sfc_main$e,
20313
- VVGeomPath: _sfc_main$d,
20314
- VVGeomPoint: _sfc_main$c,
20315
- VVGeomPolygon: _sfc_main$b,
20316
- VVGeomRect: _sfc_main$a,
20317
- VVGeomSegment: _sfc_main$9,
20318
- VVGeomStick: _sfc_main$8,
20319
- VVGeomText: _sfc_main$7,
20320
- VVGeomTextsegment: _sfc_main$6,
20321
- VVGeomTile: _sfc_main$5,
20405
+ VVAction: _sfc_main$r,
20406
+ VVAxis: _sfc_main$5,
20407
+ VVAxisBreak: _sfc_main$2,
20408
+ VVAxisX: _sfc_main$4,
20409
+ 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,
20322
20431
  VVPlot: _sfc_main$1,
20323
20432
  VVSelection: _sfc_main
20324
20433
  }, Symbol.toStringTag, { value: "Module" }));
20325
- exports.VVAction = _sfc_main$q;
20326
- exports.VVAxis = _sfc_main$4;
20327
- exports.VVAxisX = _sfc_main$3;
20328
- exports.VVAxisY = _sfc_main$2;
20329
- exports.VVGeom = _sfc_main$p;
20330
- exports.VVGeomBar = _sfc_main$o;
20331
- exports.VVGeomBlank = _sfc_main$n;
20332
- exports.VVGeomBoxplot = _sfc_main$m;
20333
- exports.VVGeomCurve = _sfc_main$l;
20334
- exports.VVGeomDensity = _sfc_main$k;
20335
- exports.VVGeomEllipse = _sfc_main$j;
20336
- exports.VVGeomHistogram = _sfc_main$i;
20337
- exports.VVGeomLine = _sfc_main$h;
20338
- exports.VVGeomLinerange = _sfc_main$g;
20339
- exports.VVGeomMarkdown = _sfc_main$f;
20340
- exports.VVGeomMarkdownsegment = _sfc_main$e;
20341
- exports.VVGeomPath = _sfc_main$d;
20342
- exports.VVGeomPoint = _sfc_main$c;
20343
- exports.VVGeomPolygon = _sfc_main$b;
20344
- exports.VVGeomRect = _sfc_main$a;
20345
- exports.VVGeomSegment = _sfc_main$9;
20346
- exports.VVGeomStick = _sfc_main$8;
20347
- exports.VVGeomText = _sfc_main$7;
20348
- exports.VVGeomTextsegment = _sfc_main$6;
20349
- exports.VVGeomTile = _sfc_main$5;
20434
+ exports.VVAction = _sfc_main$r;
20435
+ exports.VVAxis = _sfc_main$5;
20436
+ exports.VVAxisBreak = _sfc_main$2;
20437
+ exports.VVAxisX = _sfc_main$4;
20438
+ 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;
20350
20460
  exports.VVPlot = _sfc_main$1;
20351
20461
  exports.VVSelection = _sfc_main;
20352
20462
  exports.components = index;
20353
20463
  exports.number_cut = number_cut;
20354
20464
  exports.oob = oob;
20355
20465
  exports.vvbreak = vvbreak;
20466
+ exports.vvgeom = vvgeom;
20356
20467
  exports.vvlabel = vvlabel;
20357
20468
  exports.vvscale = vvscale;
20469
+ exports.vvstat = vvstat;
20358
20470
  exports.vvtheme = theme;
20359
20471
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
20360
20472
  return exports;