vvplot 0.4.5 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/vvplot.esm.js +1077 -626
- package/dist/vvplot.esm.min.js +18 -18
- package/dist/vvplot.global.js +1076 -625
- package/dist/vvplot.global.min.js +19 -19
- package/package.json +1 -1
package/dist/vvplot.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed, isRef, reactive, unref, getCurrentScope, onScopeDispose, watch, getCurrentInstance, hasInjectionContext, inject, toValue, shallowRef, readonly, watchEffect, onMounted, useTemplateRef, nextTick, openBlock, createElementBlock, mergeProps, renderSlot, toDisplayString, createCommentVNode, createTextVNode,
|
|
1
|
+
import { computed, isRef, reactive, unref, getCurrentScope, onScopeDispose, watch, getCurrentInstance, hasInjectionContext, inject, toValue, shallowRef, readonly, watchEffect, onMounted, Fragment, useTemplateRef, nextTick, openBlock, createElementBlock, mergeProps, renderSlot, toDisplayString, createCommentVNode, createTextVNode, renderList, createBlock, toHandlers, normalizeStyle, createVNode, createElementVNode, normalizeProps, resolveDynamicComponent, guardReactiveProps, useModel, createPropsRestProxy, mergeModels, ref, useId, Teleport, useSlots, useAttrs, provide, withCtx } from "vue";
|
|
2
2
|
function tryOnScopeDispose(fn) {
|
|
3
3
|
if (getCurrentScope()) {
|
|
4
4
|
onScopeDispose(fn);
|
|
@@ -56,7 +56,7 @@ const isClient = typeof window !== "undefined" && typeof document !== "undefined
|
|
|
56
56
|
typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
|
|
57
57
|
const toString = Object.prototype.toString;
|
|
58
58
|
const isObject = (val) => toString.call(val) === "[object Object]";
|
|
59
|
-
const noop$
|
|
59
|
+
const noop$2 = () => {
|
|
60
60
|
};
|
|
61
61
|
function pxValue(px) {
|
|
62
62
|
return px.endsWith("rem") ? Number.parseFloat(px) * 16 : Number.parseFloat(px);
|
|
@@ -195,7 +195,7 @@ function useDevicePixelRatio(options = {}) {
|
|
|
195
195
|
} = options;
|
|
196
196
|
const pixelRatio = shallowRef(1);
|
|
197
197
|
const query = useMediaQuery(() => `(resolution: ${pixelRatio.value}dppx)`, options);
|
|
198
|
-
let stop = noop$
|
|
198
|
+
let stop = noop$2;
|
|
199
199
|
if (window2) {
|
|
200
200
|
stop = watchImmediate(query, () => pixelRatio.value = window2.devicePixelRatio);
|
|
201
201
|
}
|
|
@@ -242,8 +242,16 @@ function useResizeObserver(target2, callback, options = {}) {
|
|
|
242
242
|
stop
|
|
243
243
|
};
|
|
244
244
|
}
|
|
245
|
+
// @__NO_SIDE_EFFECTS__
|
|
246
|
+
function makeMap(str) {
|
|
247
|
+
const map2 = /* @__PURE__ */ Object.create(null);
|
|
248
|
+
for (const key of str.split(",")) map2[key] = 1;
|
|
249
|
+
return (val) => val in map2;
|
|
250
|
+
}
|
|
245
251
|
const NO = () => false;
|
|
246
252
|
const extend$1 = Object.assign;
|
|
253
|
+
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";
|
|
254
|
+
const isSVGTag = /* @__PURE__ */ makeMap(SVG_TAGS);
|
|
247
255
|
const TELEPORT = /* @__PURE__ */ Symbol(``);
|
|
248
256
|
const SUSPENSE = /* @__PURE__ */ Symbol(``);
|
|
249
257
|
const KEEP_ALIVE = /* @__PURE__ */ Symbol(``);
|
|
@@ -1407,7 +1415,7 @@ const tokenizer = new Tokenizer(stack, {
|
|
|
1407
1415
|
}
|
|
1408
1416
|
},
|
|
1409
1417
|
oncdata(start2, end) {
|
|
1410
|
-
if (stack[0].ns !== 0) {
|
|
1418
|
+
if ((stack[0] ? stack[0].ns : currentOptions.ns) !== 0) {
|
|
1411
1419
|
onText(getSlice(start2, end), start2, end);
|
|
1412
1420
|
} else {
|
|
1413
1421
|
emitError(1, start2 - 9);
|
|
@@ -1796,6 +1804,20 @@ function baseParse(input, options) {
|
|
|
1796
1804
|
new RegExp(
|
|
1797
1805
|
"\\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"
|
|
1798
1806
|
);
|
|
1807
|
+
function expandFragment(componentList) {
|
|
1808
|
+
if (componentList == null) return [];
|
|
1809
|
+
return componentList.flatMap((layer) => {
|
|
1810
|
+
if (layer.type == Fragment) {
|
|
1811
|
+
return expandFragment(layer.children);
|
|
1812
|
+
} else if (layer.type == "template") {
|
|
1813
|
+
return expandFragment(layer.children).map((c) => {
|
|
1814
|
+
c.props = { ...c.props, ...layer.props };
|
|
1815
|
+
return c;
|
|
1816
|
+
});
|
|
1817
|
+
}
|
|
1818
|
+
return layer;
|
|
1819
|
+
});
|
|
1820
|
+
}
|
|
1799
1821
|
class AsisString extends String {
|
|
1800
1822
|
static #cache = /* @__PURE__ */ new Map();
|
|
1801
1823
|
constructor(str) {
|
|
@@ -1980,7 +2002,7 @@ const vecutils = {
|
|
|
1980
2002
|
let length = values[0].length;
|
|
1981
2003
|
if (values.some((v) => v.length != length))
|
|
1982
2004
|
throw new Error("Arrays must have the same length");
|
|
1983
|
-
return Array.from({ length }, (_, i) => values.reduce((s, a) => +a[i] + s, nums));
|
|
2005
|
+
return Array.from({ length }, (_, i) => values.reduce((s, a) => +(a[i] ?? 0) + s, nums));
|
|
1984
2006
|
},
|
|
1985
2007
|
/* vectorized opposite of numbers */
|
|
1986
2008
|
opposite(value) {
|
|
@@ -2023,8 +2045,7 @@ function obj_merge(...arr) {
|
|
|
2023
2045
|
if (arr.length == 0) return null;
|
|
2024
2046
|
return arr.reduce((a, c) => {
|
|
2025
2047
|
for (let k in c) {
|
|
2026
|
-
if (c[k]
|
|
2027
|
-
if (c[k] != void 0) a[k] = c[k];
|
|
2048
|
+
if (c[k] !== void 0) a[k] = c[k];
|
|
2028
2049
|
}
|
|
2029
2050
|
return a;
|
|
2030
2051
|
}, {});
|
|
@@ -2034,11 +2055,12 @@ function str_c(...args) {
|
|
|
2034
2055
|
if (args.some((x2) => x2 === null)) return null;
|
|
2035
2056
|
return args.join("");
|
|
2036
2057
|
}
|
|
2037
|
-
function unique(arr,
|
|
2058
|
+
function unique(arr, key = null, priority = null) {
|
|
2038
2059
|
let map2 = /* @__PURE__ */ new Map();
|
|
2039
2060
|
for (let i in arr) {
|
|
2040
|
-
let
|
|
2041
|
-
if (!map2.has(
|
|
2061
|
+
let k = key ? key(arr[i]) : arr[i];
|
|
2062
|
+
if (!map2.has(k)) map2.set(k, arr[i]);
|
|
2063
|
+
else if (priority) map2.set(k, priority(map2.get(k), arr[i]));
|
|
2042
2064
|
}
|
|
2043
2065
|
return Array.from(map2.values());
|
|
2044
2066
|
}
|
|
@@ -2207,7 +2229,7 @@ function serializeSVG(svgElement, { unit: unit2 = "mm" } = {}) {
|
|
|
2207
2229
|
img.setAttribute("height", foreignElement.getAttribute("height"));
|
|
2208
2230
|
foreignClone.parentNode.replaceChild(img, foreignClone);
|
|
2209
2231
|
}
|
|
2210
|
-
for (let node of svgClone.querySelectorAll(".vvplot-interactive")) node.remove();
|
|
2232
|
+
for (let node of svgClone.querySelectorAll(".vvplot-interactive,foreignObject")) node.remove();
|
|
2211
2233
|
removeComments(svgClone);
|
|
2212
2234
|
svgClone.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
|
2213
2235
|
svgClone.setAttribute("xmlns:xlink", "http://www.w3.org/1999/xlink");
|
|
@@ -2225,7 +2247,9 @@ const theme_base = {
|
|
|
2225
2247
|
tick_width: 1,
|
|
2226
2248
|
tick_length: 5,
|
|
2227
2249
|
label_size: 12,
|
|
2228
|
-
title_size: 18
|
|
2250
|
+
title_size: 18,
|
|
2251
|
+
grid_width: 1,
|
|
2252
|
+
grid_width_major: 2
|
|
2229
2253
|
},
|
|
2230
2254
|
axis_h: {
|
|
2231
2255
|
title_offset: 20
|
|
@@ -2250,10 +2274,6 @@ const theme_base = {
|
|
|
2250
2274
|
tick_position: "bottom",
|
|
2251
2275
|
title_position: "bottom"
|
|
2252
2276
|
},
|
|
2253
|
-
grid: {
|
|
2254
|
-
line_width: 1,
|
|
2255
|
-
line_width_major: 2
|
|
2256
|
-
},
|
|
2257
2277
|
plot: {
|
|
2258
2278
|
margin: 20,
|
|
2259
2279
|
padding_h: 50,
|
|
@@ -2271,10 +2291,8 @@ const theme_default = {
|
|
|
2271
2291
|
line_color: "black",
|
|
2272
2292
|
tick_color: "black",
|
|
2273
2293
|
label_color: "black",
|
|
2274
|
-
title_color: "black"
|
|
2275
|
-
|
|
2276
|
-
grid: {
|
|
2277
|
-
line_color: "#eeeeee"
|
|
2294
|
+
title_color: "black",
|
|
2295
|
+
grid_color: "#eeeeee"
|
|
2278
2296
|
}
|
|
2279
2297
|
};
|
|
2280
2298
|
const theme_light = {
|
|
@@ -2282,20 +2300,16 @@ const theme_light = {
|
|
|
2282
2300
|
line_color: "gray",
|
|
2283
2301
|
tick_color: "gray",
|
|
2284
2302
|
label_color: "gray",
|
|
2285
|
-
title_color: "gray"
|
|
2286
|
-
|
|
2287
|
-
grid: {
|
|
2288
|
-
line_color: "#eeeeee"
|
|
2303
|
+
title_color: "gray",
|
|
2304
|
+
grid_color: "#eeeeee"
|
|
2289
2305
|
}
|
|
2290
2306
|
};
|
|
2291
2307
|
const theme_gray = {
|
|
2292
2308
|
axis: {
|
|
2293
2309
|
tick_color: "black",
|
|
2294
2310
|
label_color: "black",
|
|
2295
|
-
title_color: "black"
|
|
2296
|
-
|
|
2297
|
-
grid: {
|
|
2298
|
-
line_color: "white"
|
|
2311
|
+
title_color: "black",
|
|
2312
|
+
grid_color: "white"
|
|
2299
2313
|
},
|
|
2300
2314
|
plot: {
|
|
2301
2315
|
background: "#eeeeee"
|
|
@@ -2305,10 +2319,8 @@ const theme_dark = {
|
|
|
2305
2319
|
axis: {
|
|
2306
2320
|
tick_color: "#333333",
|
|
2307
2321
|
label_color: "#555555",
|
|
2308
|
-
title_color: "black"
|
|
2309
|
-
|
|
2310
|
-
grid: {
|
|
2311
|
-
line_color: "#666666"
|
|
2322
|
+
title_color: "black",
|
|
2323
|
+
grid_color: "#666666"
|
|
2312
2324
|
},
|
|
2313
2325
|
plot: {
|
|
2314
2326
|
background: "#888888"
|
|
@@ -2319,12 +2331,10 @@ const theme_linedraw = {
|
|
|
2319
2331
|
line_color: "black",
|
|
2320
2332
|
tick_color: "black",
|
|
2321
2333
|
label_color: "black",
|
|
2322
|
-
title_color: "black"
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
line_width_major: 1,
|
|
2327
|
-
line_width_minor: 0.5
|
|
2334
|
+
title_color: "black",
|
|
2335
|
+
grid_color: "black",
|
|
2336
|
+
grid_width: 0.5,
|
|
2337
|
+
grid_width_major: 1
|
|
2328
2338
|
}
|
|
2329
2339
|
};
|
|
2330
2340
|
const theme_classic = {
|
|
@@ -2333,12 +2343,10 @@ const theme_classic = {
|
|
|
2333
2343
|
tick_color: "black",
|
|
2334
2344
|
label_color: "black",
|
|
2335
2345
|
title_color: "black"
|
|
2336
|
-
}
|
|
2337
|
-
grid: null
|
|
2346
|
+
}
|
|
2338
2347
|
};
|
|
2339
2348
|
const theme_void = {
|
|
2340
|
-
axis: null
|
|
2341
|
-
grid: null
|
|
2349
|
+
axis: null
|
|
2342
2350
|
};
|
|
2343
2351
|
function themeMerge(...themes) {
|
|
2344
2352
|
return themes.reduce((acc, t) => {
|
|
@@ -2358,10 +2366,6 @@ function themePreprocess(theme2, flip = false) {
|
|
|
2358
2366
|
axis_v,
|
|
2359
2367
|
axis_x,
|
|
2360
2368
|
axis_y,
|
|
2361
|
-
grid_h,
|
|
2362
|
-
grid_v,
|
|
2363
|
-
grid_x,
|
|
2364
|
-
grid_y,
|
|
2365
2369
|
plot: {
|
|
2366
2370
|
margin_x,
|
|
2367
2371
|
margin_y,
|
|
@@ -2378,8 +2382,6 @@ function themePreprocess(theme2, flip = false) {
|
|
|
2378
2382
|
if (flip) {
|
|
2379
2383
|
axis_h = obj_merge(axis_h, axis_y);
|
|
2380
2384
|
axis_v = obj_merge(axis_v, axis_x);
|
|
2381
|
-
grid_h = obj_merge(grid_h, grid_x);
|
|
2382
|
-
grid_v = obj_merge(grid_v, grid_y);
|
|
2383
2385
|
plot.margin_h = margin_y === void 0 ? margin_h : margin_y;
|
|
2384
2386
|
plot.margin_v = margin_x === void 0 ? margin_v : margin_x;
|
|
2385
2387
|
plot.padding_h = padding_y === void 0 ? padding_h : padding_y;
|
|
@@ -2387,8 +2389,6 @@ function themePreprocess(theme2, flip = false) {
|
|
|
2387
2389
|
} else {
|
|
2388
2390
|
axis_h = obj_merge(axis_h, axis_x);
|
|
2389
2391
|
axis_v = obj_merge(axis_v, axis_y);
|
|
2390
|
-
grid_h = obj_merge(grid_h, grid_y);
|
|
2391
|
-
grid_v = obj_merge(grid_v, grid_x);
|
|
2392
2392
|
plot.margin_h = margin_x === void 0 ? margin_h : margin_x;
|
|
2393
2393
|
plot.margin_v = margin_y === void 0 ? margin_v : margin_y;
|
|
2394
2394
|
plot.padding_h = padding_x === void 0 ? padding_h : padding_x;
|
|
@@ -2397,21 +2397,11 @@ function themePreprocess(theme2, flip = false) {
|
|
|
2397
2397
|
return {
|
|
2398
2398
|
axis_h,
|
|
2399
2399
|
axis_v,
|
|
2400
|
-
grid_h,
|
|
2401
|
-
grid_v,
|
|
2402
2400
|
plot,
|
|
2403
2401
|
...rest
|
|
2404
2402
|
};
|
|
2405
2403
|
}
|
|
2406
2404
|
function themeBuild(theme2) {
|
|
2407
|
-
function _grid_build(grid_theme) {
|
|
2408
|
-
return {
|
|
2409
|
-
line_color_major: ["line_color", "line_color_major"].map((k) => grid_theme?.[k]).findLast((x2) => x2 !== void 0),
|
|
2410
|
-
line_color_minor: ["line_color", "line_color_minor"].map((k) => grid_theme?.[k]).findLast((x2) => x2 !== void 0),
|
|
2411
|
-
line_width_major: ["line_width", "line_width_major"].map((k) => grid_theme?.[k]).findLast((x2) => x2 !== void 0),
|
|
2412
|
-
line_width_minor: ["line_width", "line_width_minor"].map((k) => grid_theme?.[k]).findLast((x2) => x2 !== void 0)
|
|
2413
|
-
};
|
|
2414
|
-
}
|
|
2415
2405
|
return {
|
|
2416
2406
|
axis: {
|
|
2417
2407
|
h: obj_merge(...["axis", "axis_h"].map((k) => theme2?.[k])),
|
|
@@ -2429,10 +2419,6 @@ function themeBuild(theme2) {
|
|
|
2429
2419
|
...["axis", "axis_h", "axis_bottom"].map((k) => theme2?.[k])
|
|
2430
2420
|
)
|
|
2431
2421
|
},
|
|
2432
|
-
grid: {
|
|
2433
|
-
h: _grid_build(obj_merge(...["grid", "grid_h"].map((k) => theme2?.[k]))),
|
|
2434
|
-
v: _grid_build(obj_merge(...["grid", "grid_v"].map((k) => theme2?.[k])))
|
|
2435
|
-
},
|
|
2436
2422
|
plot: {
|
|
2437
2423
|
margin: {
|
|
2438
2424
|
left: ["margin", "margin_h", "margin_left"].map((k) => theme2?.plot?.[k]).findLast((x2) => x2 !== void 0) ?? 0,
|
|
@@ -2483,7 +2469,7 @@ const boxplot$1 = {
|
|
|
2483
2469
|
coord_scale(ds, levels) {
|
|
2484
2470
|
let xnudge = ds.xnudge ?? 0, ynudge = ds.ynudge ?? 0;
|
|
2485
2471
|
if (ds.x) {
|
|
2486
|
-
let x2 = psum$a(levels.x?.apply?.(ds.x) ?? ds.x, xnudge), xmin = psum$a(x2, ds.width?.map?.((x3) => -x3 / 2) ?? -0.5
|
|
2472
|
+
let x2 = psum$a(levels.x?.apply?.(ds.x) ?? ds.x, xnudge), xmin = psum$a(x2, ds.width?.map?.((x3) => -x3 / 2) ?? -0.5), xmax = psum$a(x2, ds.width?.map?.((x3) => +x3 / 2) ?? 0.5), lwisker = psum$a(ds.lwisker, ynudge), Q1 = psum$a(ds.Q1, ynudge), median = psum$a(ds.median, ynudge), Q3 = psum$a(ds.Q3, ynudge), uwisker = psum$a(ds.uwisker, ynudge), outliers = vecutils.apply(
|
|
2487
2473
|
($x, { y: ys, $raw }, nudge) => psum$a(ys, nudge).map(($y, i) => ({ x: $x, y: $y, $raw: $raw[i] })),
|
|
2488
2474
|
x2,
|
|
2489
2475
|
ds.outliers ?? [],
|
|
@@ -2505,7 +2491,7 @@ const boxplot$1 = {
|
|
|
2505
2491
|
$ymax
|
|
2506
2492
|
};
|
|
2507
2493
|
} else if (ds.y) {
|
|
2508
|
-
let y2 = psum$a(levels.y?.apply?.(ds.y) ?? ds.y, ynudge), ymin = psum$a(y2, ds.height?.map?.((y3) => -y3 / 2) ?? -0.5
|
|
2494
|
+
let y2 = psum$a(levels.y?.apply?.(ds.y) ?? ds.y, ynudge), ymin = psum$a(y2, ds.height?.map?.((y3) => -y3 / 2) ?? -0.5), ymax = psum$a(y2, ds.height?.map?.((y3) => +y3 / 2) ?? 0.5), lwisker = psum$a(ds.lwisker, xnudge), Q1 = psum$a(ds.Q1, xnudge), median = psum$a(ds.median, xnudge), Q3 = psum$a(ds.Q3, xnudge), uwisker = psum$a(ds.uwisker, xnudge), outliers = vecutils.apply(
|
|
2509
2495
|
($y, { x: xs, $raw }, nudge) => psum$a(xs, nudge).map(($x, i) => ({ x: $x, y: $y, $raw: $raw[i] })),
|
|
2510
2496
|
y2,
|
|
2511
2497
|
ds.outliers ?? [],
|
|
@@ -2541,13 +2527,10 @@ const boxplot$1 = {
|
|
|
2541
2527
|
const curve$1 = {
|
|
2542
2528
|
scale_attrs: ["fill", "color", "linewidth", "linetype", "alpha"],
|
|
2543
2529
|
coord_scale(ds, levels) {
|
|
2544
|
-
let xnudge = ds.xnudge?.map((v) => +v), ynudge = ds.ynudge?.map((v) => +v), points = ds.points.map((points2, i) => points2.map((p) => {
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
y: +(levels?.y?.[p.y] ?? p.y) + yn
|
|
2549
|
-
};
|
|
2550
|
-
}));
|
|
2530
|
+
let xnudge = ds.xnudge?.map((v) => +v), ynudge = ds.ynudge?.map((v) => +v), points = ds.points.map((points2, i) => points2.map((p) => ({
|
|
2531
|
+
x: +(levels?.x?.[p.x] ?? p.x) + (xnudge?.[i] ?? 0),
|
|
2532
|
+
y: +(levels?.y?.[p.y] ?? p.y) + (ynudge?.[i] ?? 0)
|
|
2533
|
+
})));
|
|
2551
2534
|
return { points };
|
|
2552
2535
|
},
|
|
2553
2536
|
get_range(ds, orientation) {
|
|
@@ -2649,13 +2632,10 @@ const point$3 = {
|
|
|
2649
2632
|
const polygon$1 = {
|
|
2650
2633
|
scale_attrs: ["fill", "color", "linewidth", "linetype", "alpha"],
|
|
2651
2634
|
coord_scale(ds, levels) {
|
|
2652
|
-
let xnudge = ds.xnudge?.map((v) => +v), ynudge = ds.ynudge?.map((v) => +v), points = ds.points.map((points2, i) => points2.map((p) => {
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
y: +(levels?.y?.[p.y] ?? p.y) + yn
|
|
2657
|
-
};
|
|
2658
|
-
}));
|
|
2635
|
+
let xnudge = ds.xnudge?.map((v) => +v), ynudge = ds.ynudge?.map((v) => +v), points = ds.points.map((points2, i) => points2.map((p) => ({
|
|
2636
|
+
x: +(levels?.x?.[p.x] ?? p.x) + (xnudge?.[i] ?? 0),
|
|
2637
|
+
y: +(levels?.y?.[p.y] ?? p.y) + (ynudge?.[i] ?? 0)
|
|
2638
|
+
})));
|
|
2659
2639
|
return { points };
|
|
2660
2640
|
},
|
|
2661
2641
|
get_range(ds, orientation) {
|
|
@@ -2683,6 +2663,28 @@ const rect$2 = {
|
|
|
2683
2663
|
return d;
|
|
2684
2664
|
}
|
|
2685
2665
|
};
|
|
2666
|
+
const shape$1 = {
|
|
2667
|
+
scale_attrs: ["fill", "color", "linewidth", "linetype", "alpha"],
|
|
2668
|
+
coord_scale(ds, levels) {
|
|
2669
|
+
let x2 = levels.x?.apply?.(ds.x) ?? ds.x, y2 = levels.y?.apply?.(ds.y) ?? ds.y, xnudge = ds.xnudge?.map((v) => +v), ynudge = ds.ynudge?.map((v) => +v), points = ds.points.map((points2, i) => points2.map((p) => ({
|
|
2670
|
+
x: +(levels?.x?.[p.x] ?? p.x) + (xnudge?.[i] ?? 0) + x2[i],
|
|
2671
|
+
y: +(levels?.y?.[p.y] ?? p.y) + (ynudge?.[i] ?? 0) + y2[i]
|
|
2672
|
+
})));
|
|
2673
|
+
return { points };
|
|
2674
|
+
},
|
|
2675
|
+
get_values(ds, orientation) {
|
|
2676
|
+
if (orientation == "x") return ds.x;
|
|
2677
|
+
if (orientation == "y") return ds.y;
|
|
2678
|
+
},
|
|
2679
|
+
get_range(ds, orientation) {
|
|
2680
|
+
if (orientation == "x") return (ds.points ?? []).flatMap((ps, i) => ps.map((p) => p.x + ds.x[i]));
|
|
2681
|
+
if (orientation == "y") return (ds.points ?? []).flatMap((ps, i) => ps.map((p) => p.y + ds.y[i]));
|
|
2682
|
+
},
|
|
2683
|
+
validate(d) {
|
|
2684
|
+
if (!Array.isArray(d.points)) return null;
|
|
2685
|
+
return d;
|
|
2686
|
+
}
|
|
2687
|
+
};
|
|
2686
2688
|
let psum$3 = vecutils.sum;
|
|
2687
2689
|
const stick$1 = {
|
|
2688
2690
|
scale_attrs: ["color", "linewidth", "linetype", "alpha"],
|
|
@@ -2773,40 +2775,81 @@ const vvgeom = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProper
|
|
|
2773
2775
|
point: point$3,
|
|
2774
2776
|
polygon: polygon$1,
|
|
2775
2777
|
rect: rect$2,
|
|
2778
|
+
shape: shape$1,
|
|
2776
2779
|
stick: stick$1,
|
|
2777
2780
|
text: text$3,
|
|
2778
2781
|
textsegment: textsegment$1,
|
|
2779
2782
|
tile: tile$1
|
|
2780
2783
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2781
|
-
const bar = Object.assign(function(data) {
|
|
2784
|
+
const bar = Object.assign(function(data, { position = "stack", width = 0.9, height = 0.9 }) {
|
|
2782
2785
|
if (data.x != null && data.y != null)
|
|
2783
2786
|
throw new Error(`"StatBar" only supports "x" or "y", not both`);
|
|
2784
|
-
let
|
|
2787
|
+
let cateAes = data.x ? "x" : "y";
|
|
2788
|
+
let values = data[cateAes];
|
|
2785
2789
|
if (values == null)
|
|
2786
2790
|
throw new Error(`Missing aesthetics for "StatBar": "x" or "y"`);
|
|
2787
2791
|
if (values.some((x2) => typeof x2 === "number"))
|
|
2788
2792
|
throw new Error(`"StatBar" requires a discrete aesthetic`);
|
|
2789
|
-
let keys = Object.keys(data).filter((k) => !
|
|
2793
|
+
let keys = Object.keys(data).filter((k) => !k.startsWith("$"));
|
|
2790
2794
|
let group = intraaction(Object.fromEntries(keys.map((k) => [k, data[k]])));
|
|
2791
2795
|
let inter = intraaction({ group: group ?? 0, value: values });
|
|
2792
2796
|
let groups = Map.groupBy(data.$raw, (_, i) => inter.categories[inter[i]]);
|
|
2793
2797
|
let $raw = Array.from(groups.values()), cates = Array.from(groups.keys());
|
|
2794
2798
|
let result = {
|
|
2795
2799
|
$raw,
|
|
2796
|
-
|
|
2797
|
-
$group: cates.map((x2) => x2.group),
|
|
2798
|
-
value: cates.map((x2) => x2.value)
|
|
2800
|
+
$group: cates.map((x2) => x2.group)
|
|
2799
2801
|
};
|
|
2800
2802
|
for (let key of keys) {
|
|
2801
2803
|
result[key] = cates.map((x2) => x2.group).map((i) => group.categories[i][key]);
|
|
2802
2804
|
}
|
|
2803
|
-
if (
|
|
2804
|
-
|
|
2805
|
+
if (cateAes == "x") {
|
|
2806
|
+
result.x = cates.map((v) => v.value);
|
|
2807
|
+
result.height = $raw.map((v) => v.length);
|
|
2808
|
+
} else {
|
|
2809
|
+
result.y = cates.map((v) => v.value);
|
|
2810
|
+
result.width = $raw.map((v) => v.length);
|
|
2811
|
+
}
|
|
2812
|
+
if (position == "stack") {
|
|
2813
|
+
let cate_group = Object.groupBy(result.$group, (v, i) => group.categories[v][cateAes]);
|
|
2814
|
+
let offset = cates.map((_) => 0);
|
|
2815
|
+
for (let cate in cate_group) {
|
|
2816
|
+
let s = 0;
|
|
2817
|
+
for (let i of cate_group[cate]) {
|
|
2818
|
+
offset[i] = s;
|
|
2819
|
+
s += $raw[i].length;
|
|
2820
|
+
}
|
|
2821
|
+
}
|
|
2822
|
+
if (cateAes == "x") {
|
|
2823
|
+
result.y = result.height.map((v, i) => offset[i] + v / 2);
|
|
2824
|
+
result.width = cates.map((_) => width);
|
|
2825
|
+
} else {
|
|
2826
|
+
result.x = result.width.map((v, i) => offset[i] + v / 2);
|
|
2827
|
+
result.height = cates.map((_) => height);
|
|
2828
|
+
}
|
|
2829
|
+
} else if (position == "dodge") {
|
|
2830
|
+
let cate_group = Object.groupBy(result.$group, (v, i) => group.categories[v][cateAes]);
|
|
2831
|
+
let $group = result.$group.map((v) => cate_group[group.categories[v][cateAes]]);
|
|
2832
|
+
if (cateAes == "x") {
|
|
2833
|
+
result.y = result.height.map((v) => v / 2);
|
|
2834
|
+
result.width = $group.map((arr) => width / arr.length);
|
|
2835
|
+
result.xnudge = $group.map((arr, i) => (result.xnudge?.[i] ?? 0) + ((arr.indexOf(result.$group[i]) + 0.5) / arr.length - 0.5) * width);
|
|
2836
|
+
} else {
|
|
2837
|
+
result.x = result.width.map((v) => v / 2);
|
|
2838
|
+
result.height = $group.map((arr) => height / arr.length);
|
|
2839
|
+
result.ynudge = $group.map((arr, i) => (result.ynudge?.[i] ?? 0) + ((arr.indexOf(result.$group[i]) + 0.5) / arr.length - 0.5) * height);
|
|
2840
|
+
}
|
|
2805
2841
|
} else {
|
|
2806
|
-
|
|
2842
|
+
if (cateAes == "x") {
|
|
2843
|
+
result.y = result.height.map((v) => v / 2);
|
|
2844
|
+
result.width = cates.map((_) => width);
|
|
2845
|
+
} else {
|
|
2846
|
+
result.x = result.width.map((v) => v / 2);
|
|
2847
|
+
result.height = cates.map((_) => height);
|
|
2848
|
+
}
|
|
2807
2849
|
}
|
|
2850
|
+
return result;
|
|
2808
2851
|
}, { core_attrs: ["x", "y", "xnudge", "ynudge"] });
|
|
2809
|
-
const boxplot = Object.assign(function(data, {}) {
|
|
2852
|
+
const boxplot = Object.assign(function(data, { position = "dodge", width = 0.9, height = 0.9 }) {
|
|
2810
2853
|
let missingAes = ["x", "y"].filter((a) => data[a] == null);
|
|
2811
2854
|
if (missingAes.length > 0)
|
|
2812
2855
|
throw new Error(`Missing aesthetics for "StatBoxplot": "${missingAes.join('", "')}"`);
|
|
@@ -2841,11 +2884,28 @@ const boxplot = Object.assign(function(data, {}) {
|
|
|
2841
2884
|
max,
|
|
2842
2885
|
outliers
|
|
2843
2886
|
};
|
|
2887
|
+
if (position == "dodge") {
|
|
2888
|
+
let cate_group = Object.groupBy(result.$group, (v, i) => group.categories[v][cateAes]);
|
|
2889
|
+
let $group = result.$group.map((v) => cate_group[group.categories[v][cateAes]]);
|
|
2890
|
+
if (isXdiscrete) {
|
|
2891
|
+
result.width = $group.map((arr) => width / arr.length);
|
|
2892
|
+
result.xnudge = $group.map((arr, i) => (result.xnudge?.[i] ?? 0) + ((arr.indexOf(result.$group[i]) + 0.5) / arr.length - 0.5) * width);
|
|
2893
|
+
} else {
|
|
2894
|
+
result.height = $group.map((arr) => height / arr.length);
|
|
2895
|
+
result.ynudge = $group.map((arr, i) => (result.ynudge?.[i] ?? 0) + ((arr.indexOf(result.$group[i]) + 0.5) / arr.length - 0.5) * height);
|
|
2896
|
+
}
|
|
2897
|
+
} else {
|
|
2898
|
+
if (isXdiscrete) {
|
|
2899
|
+
result.width = cates.map((_) => width);
|
|
2900
|
+
} else {
|
|
2901
|
+
result.height = cates.map((_) => height);
|
|
2902
|
+
}
|
|
2903
|
+
}
|
|
2844
2904
|
for (let key of keys) {
|
|
2845
2905
|
result[key] = cates.map((x2) => x2.group).map((i) => group.categories[i][key]);
|
|
2846
2906
|
}
|
|
2847
2907
|
return result;
|
|
2848
|
-
}, { core_attrs: ["x", "y", "
|
|
2908
|
+
}, { core_attrs: ["x", "y", "xnudge", "ynudge"] });
|
|
2849
2909
|
const curve = Object.assign(function(data) {
|
|
2850
2910
|
if (data.points != null) return data;
|
|
2851
2911
|
let missingAes = ["x", "y"].filter((a) => data[a] == null);
|
|
@@ -2868,7 +2928,7 @@ const curve = Object.assign(function(data) {
|
|
|
2868
2928
|
}
|
|
2869
2929
|
return result;
|
|
2870
2930
|
}, { core_attrs: ["x", "y", "xnudge", "ynudge"] });
|
|
2871
|
-
const density = Object.assign(function(data, { n = 512, kernel = "gaussian" } = {}) {
|
|
2931
|
+
const density = Object.assign(function(data, { n = 512, kernel = "gaussian", scale = "area" } = {}) {
|
|
2872
2932
|
if (data.x != null && data.y != null)
|
|
2873
2933
|
throw new Error(`"StatDensity" only supports "x" or "y", not both`);
|
|
2874
2934
|
let values = data.x ?? data.y;
|
|
@@ -2876,9 +2936,9 @@ const density = Object.assign(function(data, { n = 512, kernel = "gaussian" } =
|
|
|
2876
2936
|
throw new Error(`Missing aesthetics for "StatDensity": "x" or "y"`);
|
|
2877
2937
|
if (values.some((x2) => typeof x2 !== "number"))
|
|
2878
2938
|
throw new Error(`"StatDensity" requires a continuous aesthetic`);
|
|
2879
|
-
kernel = density_kernels[kernel];
|
|
2939
|
+
kernel = density_kernels$1[kernel];
|
|
2880
2940
|
if (!kernel) {
|
|
2881
|
-
throw new Error(`kernel must be one of ${Object.keys(density_kernels).map((k) => `"${k}"`).join(", ")}`);
|
|
2941
|
+
throw new Error(`kernel must be one of ${Object.keys(density_kernels$1).map((k) => `"${k}"`).join(", ")}`);
|
|
2882
2942
|
}
|
|
2883
2943
|
let keys = Object.keys(data).filter((k) => !["x", "y"].includes(k) && !k.startsWith("$"));
|
|
2884
2944
|
let group = intraaction(Object.fromEntries(keys.map((k) => [k, data[k]])));
|
|
@@ -2893,13 +2953,14 @@ const density = Object.assign(function(data, { n = 512, kernel = "gaussian" } =
|
|
|
2893
2953
|
$group: cates.map((x2) => x2.group)
|
|
2894
2954
|
};
|
|
2895
2955
|
let density2 = vs.map((v) => {
|
|
2896
|
-
let bandwidth = bw.nrd0(v);
|
|
2956
|
+
let bandwidth = bw$1.nrd0(v);
|
|
2897
2957
|
let { min, max } = numutils.extent(v);
|
|
2898
2958
|
min -= 3 * bandwidth;
|
|
2899
2959
|
max += 3 * bandwidth;
|
|
2900
2960
|
let step = (max - min) / (n - 1);
|
|
2901
2961
|
let breaks = Array.from({ length: n }, (_, i) => min + i * step);
|
|
2902
|
-
|
|
2962
|
+
let ratio2 = scale === "count" ? v.length : 1;
|
|
2963
|
+
return breaks.map((t) => [t, numutils.mean(v.map((d) => kernel((t - d) / bandwidth))) / bandwidth * ratio2]);
|
|
2903
2964
|
});
|
|
2904
2965
|
for (let key of keys) {
|
|
2905
2966
|
result[key] = cates.map((x2) => group.categories[x2.group][key]);
|
|
@@ -2911,7 +2972,7 @@ const density = Object.assign(function(data, { n = 512, kernel = "gaussian" } =
|
|
|
2911
2972
|
}
|
|
2912
2973
|
return result;
|
|
2913
2974
|
}, { core_attrs: ["x", "y", "xnudge", "ynudge"] });
|
|
2914
|
-
const bw = {
|
|
2975
|
+
const bw$1 = {
|
|
2915
2976
|
nrd0: function(x2) {
|
|
2916
2977
|
x2 = x2.filter((v2) => (typeof v2 === "number" || v2 instanceof Date) && isFinite(v2));
|
|
2917
2978
|
let sd = numutils.sd(x2);
|
|
@@ -2927,7 +2988,7 @@ const bw = {
|
|
|
2927
2988
|
return 1.06 * v * x2.length ** -0.2;
|
|
2928
2989
|
}
|
|
2929
2990
|
};
|
|
2930
|
-
const density_kernels = {
|
|
2991
|
+
const density_kernels$1 = {
|
|
2931
2992
|
uniform: (x2) => Math.abs(x2) <= 1 ? 0.5 : 0,
|
|
2932
2993
|
triangular: (x2) => Math.abs(x2) <= 1 ? 1 - Math.abs(x2) : 0,
|
|
2933
2994
|
epanechnikov: (x2) => Math.abs(x2) <= 1 ? 0.75 * (1 - x2 ** 2) : 0,
|
|
@@ -3128,6 +3189,12 @@ const segment = Object.assign(function(data) {
|
|
|
3128
3189
|
throw new Error(`Missing aesthetics for "StatSegment": "${missingAes.join('", "')}"`);
|
|
3129
3190
|
return data;
|
|
3130
3191
|
}, { core_attrs: ["x", "y", "xend", "yend", "xnudge", "ynudge"] });
|
|
3192
|
+
const shape = Object.assign(function(data) {
|
|
3193
|
+
let missingAes = ["x", "y", "points"].filter((a) => data[a] == null);
|
|
3194
|
+
if (missingAes.length > 0)
|
|
3195
|
+
throw new Error(`Missing aesthetics for "StatShape": "${missingAes.join('", "')}"`);
|
|
3196
|
+
return data;
|
|
3197
|
+
}, { core_attrs: ["x", "y", "points", "xnudge", "ynudge"] });
|
|
3131
3198
|
const stick = Object.assign(function(data) {
|
|
3132
3199
|
if (data.dx == null) data.dx = Array(data.x.length).fill(0);
|
|
3133
3200
|
if (data.dy == null) data.dy = Array(data.y.length).fill(0);
|
|
@@ -3162,6 +3229,103 @@ const tile = Object.assign(function(data) {
|
|
|
3162
3229
|
throw new Error(`Missing aesthetics for "StatTile": "${missingAes.join('", "')}"`);
|
|
3163
3230
|
return data;
|
|
3164
3231
|
}, { core_attrs: ["x", "y", "width", "height", "xnudge", "ynudge"] });
|
|
3232
|
+
const violin = Object.assign(function(data, {
|
|
3233
|
+
n = 512,
|
|
3234
|
+
kernel = "gaussian",
|
|
3235
|
+
scale = "width",
|
|
3236
|
+
position = "dodge",
|
|
3237
|
+
width = 0.9,
|
|
3238
|
+
height = 0.9
|
|
3239
|
+
} = {}) {
|
|
3240
|
+
let missingAes = ["x", "y"].filter((a) => data[a] == null);
|
|
3241
|
+
if (missingAes.length > 0)
|
|
3242
|
+
throw new Error(`Missing aesthetics for "StatViolin": "${missingAes.join('", "')}"`);
|
|
3243
|
+
let isXdiscrete = data.x.some(is_categorical);
|
|
3244
|
+
let isYdiscrete = data.y.some(is_categorical);
|
|
3245
|
+
if (isXdiscrete && isYdiscrete)
|
|
3246
|
+
throw new Error(`Both "x" and "y" are discrete, "StatViolin" requires one continuous and one discrete aesthetic`);
|
|
3247
|
+
if (!isXdiscrete && !isYdiscrete)
|
|
3248
|
+
throw new Error(`Both "x" and "y" are continuous, "StatViolin" requires one continuous and one discrete aesthetic`);
|
|
3249
|
+
kernel = density_kernels[kernel];
|
|
3250
|
+
if (!kernel) {
|
|
3251
|
+
throw new Error(`kernel must be one of ${Object.keys(density_kernels).map((k) => `"${k}"`).join(", ")}`);
|
|
3252
|
+
}
|
|
3253
|
+
let [valueAes, cateAes, size] = isXdiscrete ? ["y", "x", width] : ["x", "y", height];
|
|
3254
|
+
let values = data[valueAes];
|
|
3255
|
+
let keys = Object.keys(data).filter((k) => k != valueAes && !k.startsWith("$"));
|
|
3256
|
+
let group = intraaction(Object.fromEntries(keys.map((k) => [k, data[k]])));
|
|
3257
|
+
let cut = intraaction({
|
|
3258
|
+
group: group ?? new Array(values.length).fill(0)
|
|
3259
|
+
}).map((v, _, a) => a.categories[v]);
|
|
3260
|
+
let map2 = Map.groupBy(data.$raw, (_, i) => cut[i]);
|
|
3261
|
+
let $raw = Array.from(map2.values()), cates = Array.from(map2.keys());
|
|
3262
|
+
let vs = Array.from(Map.groupBy(values, (_, i) => cut[i]).values());
|
|
3263
|
+
let result = {
|
|
3264
|
+
$raw,
|
|
3265
|
+
$group: cates.map((x2) => x2.group),
|
|
3266
|
+
[valueAes]: cates.map((v) => 0)
|
|
3267
|
+
};
|
|
3268
|
+
let density2 = vs.map((v) => {
|
|
3269
|
+
let bandwidth = bw.nrd0(v);
|
|
3270
|
+
let { min, max } = numutils.extent(v);
|
|
3271
|
+
min -= 3 * bandwidth;
|
|
3272
|
+
max += 3 * bandwidth;
|
|
3273
|
+
let step = (max - min) / (n - 1);
|
|
3274
|
+
let breaks = Array.from({ length: n }, (_, i) => min + i * step);
|
|
3275
|
+
let res = breaks.map((t) => numutils.mean(v.map((d) => kernel((t - d) / bandwidth))) / bandwidth);
|
|
3276
|
+
let ratio2 = scale == "area" ? 1 : 1 / numutils.max(res);
|
|
3277
|
+
return breaks.map((t, i) => [t, res[i] * ratio2 / 2]);
|
|
3278
|
+
});
|
|
3279
|
+
for (let key of keys) {
|
|
3280
|
+
result[key] = cates.map((x2) => group.categories[x2.group][key]);
|
|
3281
|
+
}
|
|
3282
|
+
if (position == "dodge") {
|
|
3283
|
+
let cate_group = Object.groupBy(result.$group, (v, i) => group.categories[v][cateAes]);
|
|
3284
|
+
let $group = result.$group.map((v) => cate_group[group.categories[v][cateAes]]);
|
|
3285
|
+
density2 = $group.map((arr, i) => density2[i].map(([x2, y2]) => [x2, y2 * size / arr.length]));
|
|
3286
|
+
if (isXdiscrete) {
|
|
3287
|
+
result.xnudge = $group.map((arr, i) => (result.xnudge?.[i] ?? 0) + ((arr.indexOf(result.$group[i]) + 0.5) / arr.length - 0.5) * width);
|
|
3288
|
+
} else {
|
|
3289
|
+
result.ynudge = $group.map((arr, i) => (result.ynudge?.[i] ?? 0) + ((arr.indexOf(result.$group[i]) + 0.5) / arr.length - 0.5) * height);
|
|
3290
|
+
}
|
|
3291
|
+
} else {
|
|
3292
|
+
density2 = density2.map((v) => v.map(([x2, y2]) => [x2, y2 * size]));
|
|
3293
|
+
}
|
|
3294
|
+
if (isXdiscrete) {
|
|
3295
|
+
result.points = density2.map((v) => v.map(([y2, x2]) => ({ x: x2, y: y2 })).concat(v.map(([y2, x2]) => ({ x: -x2, y: y2 })).reverse()));
|
|
3296
|
+
} else {
|
|
3297
|
+
result.points = density2.map((v) => v.map(([x2, y2]) => ({ x: x2, y: y2 })).concat(v.map(([x2, y2]) => ({ x: x2, y: -y2 })).reverse()));
|
|
3298
|
+
}
|
|
3299
|
+
return result;
|
|
3300
|
+
}, { core_attrs: ["x", "y", "xnudge", "ynudge"] });
|
|
3301
|
+
const bw = {
|
|
3302
|
+
nrd0: function(x2) {
|
|
3303
|
+
x2 = x2.filter((v2) => (typeof v2 === "number" || v2 instanceof Date) && isFinite(v2));
|
|
3304
|
+
let sd = numutils.sd(x2);
|
|
3305
|
+
let iqr = numutils.quantile(x2, 0.75) - numutils.quantile(x2, 0.25);
|
|
3306
|
+
let v = Math.min(sd, iqr / 1.34) || 1;
|
|
3307
|
+
return 0.9 * v * x2.length ** -0.2;
|
|
3308
|
+
},
|
|
3309
|
+
nrd: function(x2) {
|
|
3310
|
+
x2 = x2.filter((v2) => (typeof v2 === "number" || v2 instanceof Date) && isFinite(v2));
|
|
3311
|
+
let sd = numutils.sd(x2);
|
|
3312
|
+
let iqr = numutils.quantile(x2, 0.75) - numutils.quantile(x2, 0.25);
|
|
3313
|
+
let v = Math.min(sd, iqr / 1.34) || 1;
|
|
3314
|
+
return 1.06 * v * x2.length ** -0.2;
|
|
3315
|
+
}
|
|
3316
|
+
};
|
|
3317
|
+
const density_kernels = {
|
|
3318
|
+
uniform: (x2) => Math.abs(x2) <= 1 ? 0.5 : 0,
|
|
3319
|
+
triangular: (x2) => Math.abs(x2) <= 1 ? 1 - Math.abs(x2) : 0,
|
|
3320
|
+
epanechnikov: (x2) => Math.abs(x2) <= 1 ? 0.75 * (1 - x2 ** 2) : 0,
|
|
3321
|
+
biweight: (x2) => Math.abs(x2) <= 1 ? 15 / 16 * (1 - x2 ** 2) ** 2 : 0,
|
|
3322
|
+
triweight: (x2) => Math.abs(x2) <= 1 ? 35 / 32 * (1 - x2 ** 2) ** 3 : 0,
|
|
3323
|
+
tricube: (x2) => Math.abs(x2) <= 1 ? 70 / 81 * (1 - Math.abs(x2) ** 3) ** 3 : 0,
|
|
3324
|
+
gaussian: (x2) => Math.exp(-0.5 * x2 ** 2) / Math.sqrt(2 * Math.PI),
|
|
3325
|
+
cosine: (x2) => Math.abs(x2) <= 1 ? Math.PI / 4 * Math.cos(Math.PI / 2 * x2) : 0,
|
|
3326
|
+
logistic: (x2) => 1 / Math.cosh(x2) ** 2 / Math.PI,
|
|
3327
|
+
sigmoid: (x2) => 2 / (Math.exp(x2) + Math.exp(-x2)) ** 2 / Math.PI
|
|
3328
|
+
};
|
|
3165
3329
|
const vvstat = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3166
3330
|
__proto__: null,
|
|
3167
3331
|
bar,
|
|
@@ -3178,10 +3342,12 @@ const vvstat = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProper
|
|
|
3178
3342
|
polygon,
|
|
3179
3343
|
rect: rect$1,
|
|
3180
3344
|
segment,
|
|
3345
|
+
shape,
|
|
3181
3346
|
stick,
|
|
3182
3347
|
text: text$2,
|
|
3183
3348
|
textsegment,
|
|
3184
|
-
tile
|
|
3349
|
+
tile,
|
|
3350
|
+
violin
|
|
3185
3351
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3186
3352
|
function ascending$1(a, b) {
|
|
3187
3353
|
return a == null || b == null ? NaN : a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;
|
|
@@ -3283,7 +3449,7 @@ function tickStep(start2, stop, count) {
|
|
|
3283
3449
|
const reverse = stop < start2, inc = reverse ? tickIncrement(stop, start2, count) : tickIncrement(start2, stop, count);
|
|
3284
3450
|
return (reverse ? -1 : 1) * (inc < 0 ? 1 / -inc : inc);
|
|
3285
3451
|
}
|
|
3286
|
-
var noop = { value: () => {
|
|
3452
|
+
var noop$1 = { value: () => {
|
|
3287
3453
|
} };
|
|
3288
3454
|
function dispatch() {
|
|
3289
3455
|
for (var i = 0, n = arguments.length, _ = {}, t; i < n; ++i) {
|
|
@@ -3343,7 +3509,7 @@ function get$1(type, name) {
|
|
|
3343
3509
|
function set$1(type, name, callback) {
|
|
3344
3510
|
for (var i = 0, n = type.length; i < n; ++i) {
|
|
3345
3511
|
if (type[i].name === name) {
|
|
3346
|
-
type[i] = noop, type = type.slice(0, i).concat(type.slice(i + 1));
|
|
3512
|
+
type[i] = noop$1, type = type.slice(0, i).concat(type.slice(i + 1));
|
|
3347
3513
|
break;
|
|
3348
3514
|
}
|
|
3349
3515
|
}
|
|
@@ -5909,9 +6075,9 @@ function constant(x2) {
|
|
|
5909
6075
|
};
|
|
5910
6076
|
}
|
|
5911
6077
|
const epsilon$1 = 1e-12;
|
|
5912
|
-
function withPath(
|
|
6078
|
+
function withPath(shape2) {
|
|
5913
6079
|
let digits = 3;
|
|
5914
|
-
|
|
6080
|
+
shape2.digits = function(_) {
|
|
5915
6081
|
if (!arguments.length) return digits;
|
|
5916
6082
|
if (_ == null) {
|
|
5917
6083
|
digits = null;
|
|
@@ -5920,7 +6086,7 @@ function withPath(shape) {
|
|
|
5920
6086
|
if (!(d >= 0)) throw new RangeError(`invalid digits: ${_}`);
|
|
5921
6087
|
digits = d;
|
|
5922
6088
|
}
|
|
5923
|
-
return
|
|
6089
|
+
return shape2;
|
|
5924
6090
|
};
|
|
5925
6091
|
return () => new Path(digits);
|
|
5926
6092
|
}
|
|
@@ -6002,6 +6168,8 @@ function line(x$1, y$1) {
|
|
|
6002
6168
|
};
|
|
6003
6169
|
return line2;
|
|
6004
6170
|
}
|
|
6171
|
+
function noop() {
|
|
6172
|
+
}
|
|
6005
6173
|
function point$1(that, x2, y2) {
|
|
6006
6174
|
that._context.bezierCurveTo(
|
|
6007
6175
|
that._x1 + that._k * (that._x2 - that._x0),
|
|
@@ -6070,6 +6238,69 @@ const cardinal = (function custom(tension) {
|
|
|
6070
6238
|
};
|
|
6071
6239
|
return cardinal2;
|
|
6072
6240
|
})(0);
|
|
6241
|
+
function CardinalClosed(context, tension) {
|
|
6242
|
+
this._context = context;
|
|
6243
|
+
this._k = (1 - tension) / 6;
|
|
6244
|
+
}
|
|
6245
|
+
CardinalClosed.prototype = {
|
|
6246
|
+
areaStart: noop,
|
|
6247
|
+
areaEnd: noop,
|
|
6248
|
+
lineStart: function() {
|
|
6249
|
+
this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN;
|
|
6250
|
+
this._point = 0;
|
|
6251
|
+
},
|
|
6252
|
+
lineEnd: function() {
|
|
6253
|
+
switch (this._point) {
|
|
6254
|
+
case 1: {
|
|
6255
|
+
this._context.moveTo(this._x3, this._y3);
|
|
6256
|
+
this._context.closePath();
|
|
6257
|
+
break;
|
|
6258
|
+
}
|
|
6259
|
+
case 2: {
|
|
6260
|
+
this._context.lineTo(this._x3, this._y3);
|
|
6261
|
+
this._context.closePath();
|
|
6262
|
+
break;
|
|
6263
|
+
}
|
|
6264
|
+
case 3: {
|
|
6265
|
+
this.point(this._x3, this._y3);
|
|
6266
|
+
this.point(this._x4, this._y4);
|
|
6267
|
+
this.point(this._x5, this._y5);
|
|
6268
|
+
break;
|
|
6269
|
+
}
|
|
6270
|
+
}
|
|
6271
|
+
},
|
|
6272
|
+
point: function(x2, y2) {
|
|
6273
|
+
x2 = +x2, y2 = +y2;
|
|
6274
|
+
switch (this._point) {
|
|
6275
|
+
case 0:
|
|
6276
|
+
this._point = 1;
|
|
6277
|
+
this._x3 = x2, this._y3 = y2;
|
|
6278
|
+
break;
|
|
6279
|
+
case 1:
|
|
6280
|
+
this._point = 2;
|
|
6281
|
+
this._context.moveTo(this._x4 = x2, this._y4 = y2);
|
|
6282
|
+
break;
|
|
6283
|
+
case 2:
|
|
6284
|
+
this._point = 3;
|
|
6285
|
+
this._x5 = x2, this._y5 = y2;
|
|
6286
|
+
break;
|
|
6287
|
+
default:
|
|
6288
|
+
point$1(this, x2, y2);
|
|
6289
|
+
break;
|
|
6290
|
+
}
|
|
6291
|
+
this._x0 = this._x1, this._x1 = this._x2, this._x2 = x2;
|
|
6292
|
+
this._y0 = this._y1, this._y1 = this._y2, this._y2 = y2;
|
|
6293
|
+
}
|
|
6294
|
+
};
|
|
6295
|
+
const cardinalClosed = (function custom2(tension) {
|
|
6296
|
+
function cardinal2(context) {
|
|
6297
|
+
return new CardinalClosed(context, tension);
|
|
6298
|
+
}
|
|
6299
|
+
cardinal2.tension = function(tension2) {
|
|
6300
|
+
return custom2(+tension2);
|
|
6301
|
+
};
|
|
6302
|
+
return cardinal2;
|
|
6303
|
+
})(0);
|
|
6073
6304
|
function point(that, x2, y2) {
|
|
6074
6305
|
var x1 = that._x1, y1 = that._y1, x22 = that._x2, y22 = that._y2;
|
|
6075
6306
|
if (that._l01_a > epsilon$1) {
|
|
@@ -6138,15 +6369,105 @@ CatmullRom.prototype = {
|
|
|
6138
6369
|
this._y0 = this._y1, this._y1 = this._y2, this._y2 = y2;
|
|
6139
6370
|
}
|
|
6140
6371
|
};
|
|
6141
|
-
const catmullRom = (function
|
|
6372
|
+
const catmullRom = (function custom3(alpha2) {
|
|
6142
6373
|
function catmullRom2(context) {
|
|
6143
6374
|
return alpha2 ? new CatmullRom(context, alpha2) : new Cardinal(context, 0);
|
|
6144
6375
|
}
|
|
6145
6376
|
catmullRom2.alpha = function(alpha3) {
|
|
6146
|
-
return
|
|
6377
|
+
return custom3(+alpha3);
|
|
6378
|
+
};
|
|
6379
|
+
return catmullRom2;
|
|
6380
|
+
})(0.5);
|
|
6381
|
+
function CatmullRomClosed(context, alpha2) {
|
|
6382
|
+
this._context = context;
|
|
6383
|
+
this._alpha = alpha2;
|
|
6384
|
+
}
|
|
6385
|
+
CatmullRomClosed.prototype = {
|
|
6386
|
+
areaStart: noop,
|
|
6387
|
+
areaEnd: noop,
|
|
6388
|
+
lineStart: function() {
|
|
6389
|
+
this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN;
|
|
6390
|
+
this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0;
|
|
6391
|
+
},
|
|
6392
|
+
lineEnd: function() {
|
|
6393
|
+
switch (this._point) {
|
|
6394
|
+
case 1: {
|
|
6395
|
+
this._context.moveTo(this._x3, this._y3);
|
|
6396
|
+
this._context.closePath();
|
|
6397
|
+
break;
|
|
6398
|
+
}
|
|
6399
|
+
case 2: {
|
|
6400
|
+
this._context.lineTo(this._x3, this._y3);
|
|
6401
|
+
this._context.closePath();
|
|
6402
|
+
break;
|
|
6403
|
+
}
|
|
6404
|
+
case 3: {
|
|
6405
|
+
this.point(this._x3, this._y3);
|
|
6406
|
+
this.point(this._x4, this._y4);
|
|
6407
|
+
this.point(this._x5, this._y5);
|
|
6408
|
+
break;
|
|
6409
|
+
}
|
|
6410
|
+
}
|
|
6411
|
+
},
|
|
6412
|
+
point: function(x2, y2) {
|
|
6413
|
+
x2 = +x2, y2 = +y2;
|
|
6414
|
+
if (this._point) {
|
|
6415
|
+
var x23 = this._x2 - x2, y23 = this._y2 - y2;
|
|
6416
|
+
this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha));
|
|
6417
|
+
}
|
|
6418
|
+
switch (this._point) {
|
|
6419
|
+
case 0:
|
|
6420
|
+
this._point = 1;
|
|
6421
|
+
this._x3 = x2, this._y3 = y2;
|
|
6422
|
+
break;
|
|
6423
|
+
case 1:
|
|
6424
|
+
this._point = 2;
|
|
6425
|
+
this._context.moveTo(this._x4 = x2, this._y4 = y2);
|
|
6426
|
+
break;
|
|
6427
|
+
case 2:
|
|
6428
|
+
this._point = 3;
|
|
6429
|
+
this._x5 = x2, this._y5 = y2;
|
|
6430
|
+
break;
|
|
6431
|
+
default:
|
|
6432
|
+
point(this, x2, y2);
|
|
6433
|
+
break;
|
|
6434
|
+
}
|
|
6435
|
+
this._l01_a = this._l12_a, this._l12_a = this._l23_a;
|
|
6436
|
+
this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a;
|
|
6437
|
+
this._x0 = this._x1, this._x1 = this._x2, this._x2 = x2;
|
|
6438
|
+
this._y0 = this._y1, this._y1 = this._y2, this._y2 = y2;
|
|
6439
|
+
}
|
|
6440
|
+
};
|
|
6441
|
+
const catmullRomClosed = (function custom4(alpha2) {
|
|
6442
|
+
function catmullRom2(context) {
|
|
6443
|
+
return alpha2 ? new CatmullRomClosed(context, alpha2) : new CardinalClosed(context, 0);
|
|
6444
|
+
}
|
|
6445
|
+
catmullRom2.alpha = function(alpha3) {
|
|
6446
|
+
return custom4(+alpha3);
|
|
6147
6447
|
};
|
|
6148
6448
|
return catmullRom2;
|
|
6149
6449
|
})(0.5);
|
|
6450
|
+
function LinearClosed(context) {
|
|
6451
|
+
this._context = context;
|
|
6452
|
+
}
|
|
6453
|
+
LinearClosed.prototype = {
|
|
6454
|
+
areaStart: noop,
|
|
6455
|
+
areaEnd: noop,
|
|
6456
|
+
lineStart: function() {
|
|
6457
|
+
this._point = 0;
|
|
6458
|
+
},
|
|
6459
|
+
lineEnd: function() {
|
|
6460
|
+
if (this._point) this._context.closePath();
|
|
6461
|
+
},
|
|
6462
|
+
point: function(x2, y2) {
|
|
6463
|
+
x2 = +x2, y2 = +y2;
|
|
6464
|
+
if (this._point) this._context.lineTo(x2, y2);
|
|
6465
|
+
else this._point = 1, this._context.moveTo(x2, y2);
|
|
6466
|
+
}
|
|
6467
|
+
};
|
|
6468
|
+
function linearClosed(context) {
|
|
6469
|
+
return new LinearClosed(context);
|
|
6470
|
+
}
|
|
6150
6471
|
function Natural(context) {
|
|
6151
6472
|
this._context = context;
|
|
6152
6473
|
}
|
|
@@ -7185,42 +7506,39 @@ class GAxis {
|
|
|
7185
7506
|
this.titles = titles ?? vvlabel.asis();
|
|
7186
7507
|
this.minorBreaks = minorBreaks ?? breaks ?? scale.minorBreaks ?? scale.breaks;
|
|
7187
7508
|
}
|
|
7188
|
-
|
|
7509
|
+
getBreaks({ range: range2, expandMult, breakSlot } = {}) {
|
|
7189
7510
|
let majorBreaks = this.breaks, minorBreaks = this.minorBreaks, labels = this.labels, titles = this.titles;
|
|
7190
7511
|
let min = range2?.min ?? this?.range?.min, max = range2?.max ?? this?.range?.max, interval2 = max - min || 0;
|
|
7191
7512
|
min = min == null ? min : plus$1(min, -(expandMult?.min ?? 0) * interval2);
|
|
7192
7513
|
max = max == null ? max : plus$1(max, +(expandMult?.max ?? 0) * interval2);
|
|
7193
|
-
function normalizeBreaks(val) {
|
|
7194
|
-
if (val.position != null) return val;
|
|
7195
|
-
return { position: val };
|
|
7196
|
-
}
|
|
7197
7514
|
if (typeof majorBreaks == "function") majorBreaks = majorBreaks({ min, max });
|
|
7198
|
-
|
|
7199
|
-
|
|
7200
|
-
if (typeof minorBreaks == "function") minorBreaks = minorBreaks({ min, max, minor: true });
|
|
7201
|
-
minorBreaks = Array.isArray(minorBreaks) ? minorBreaks.map(normalizeBreaks) : [];
|
|
7202
|
-
if (typeof labels === "function") labels = breaks.map(labels);
|
|
7515
|
+
if (!Array.isArray(majorBreaks)) majorBreaks = [];
|
|
7516
|
+
if (typeof labels === "function") labels = majorBreaks.map(labels);
|
|
7203
7517
|
if (!Array.isArray(labels)) {
|
|
7204
7518
|
labels = [];
|
|
7205
|
-
} else if (labels.length !=
|
|
7519
|
+
} else if (labels.length != majorBreaks.length) {
|
|
7206
7520
|
throw new Error("Length of labels must be the same as breaks");
|
|
7207
7521
|
}
|
|
7208
|
-
if (typeof titles === "function") titles =
|
|
7522
|
+
if (typeof titles === "function") titles = majorBreaks.map(titles);
|
|
7209
7523
|
if (!Array.isArray(titles)) {
|
|
7210
7524
|
titles = [];
|
|
7211
|
-
} else if (titles.length !=
|
|
7525
|
+
} else if (titles.length != majorBreaks.length) {
|
|
7212
7526
|
throw new Error("Length of titles must be the same as breaks");
|
|
7213
7527
|
}
|
|
7214
|
-
|
|
7215
|
-
|
|
7216
|
-
|
|
7217
|
-
|
|
7218
|
-
|
|
7528
|
+
if (typeof minorBreaks == "function") minorBreaks = minorBreaks({ min, max, minor: true });
|
|
7529
|
+
if (!Array.isArray(minorBreaks)) minorBreaks = [];
|
|
7530
|
+
majorBreaks = majorBreaks.map((value, i) => ({ type: "major", value, label: labels[i], title: titles[i] }));
|
|
7531
|
+
minorBreaks = minorBreaks.map((x2) => ({ type: "minor", value: x2 }));
|
|
7532
|
+
let breaks = majorBreaks.concat(minorBreaks);
|
|
7533
|
+
if (breakSlot instanceof Function) {
|
|
7534
|
+
breaks = expandFragment(breakSlot({ breaks, majorBreaks, minorBreaks, min, max })).filter((c) => c.type.$_type == "axis-break").map((c) => ({ ...c.type.$_props, ...c.props }));
|
|
7535
|
+
}
|
|
7536
|
+
return breaks;
|
|
7219
7537
|
}
|
|
7220
7538
|
}
|
|
7221
7539
|
const _hoisted_1$e = ["font-size"];
|
|
7222
7540
|
const _hoisted_2$8 = { key: 0 };
|
|
7223
|
-
const _sfc_main$
|
|
7541
|
+
const _sfc_main$17 = {
|
|
7224
7542
|
__name: "CoreText",
|
|
7225
7543
|
props: {
|
|
7226
7544
|
x: { type: Number, default: 0 },
|
|
@@ -7305,7 +7623,7 @@ const _sfc_main$13 = {
|
|
|
7305
7623
|
}), [
|
|
7306
7624
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
7307
7625
|
__props.title ? (openBlock(), createElementBlock("title", _hoisted_2$8, toDisplayString(__props.title), 1)) : createCommentVNode("", true),
|
|
7308
|
-
createTextVNode(" " + toDisplayString(__props.text
|
|
7626
|
+
createTextVNode(" " + toDisplayString(__props.text?.replace(/ /g, " ")), 1)
|
|
7309
7627
|
])
|
|
7310
7628
|
], 16, _hoisted_1$e);
|
|
7311
7629
|
};
|
|
@@ -7746,16 +8064,16 @@ var hasRequiredDecode;
|
|
|
7746
8064
|
function requireDecode() {
|
|
7747
8065
|
if (hasRequiredDecode) return decode;
|
|
7748
8066
|
hasRequiredDecode = 1;
|
|
7749
|
-
(function(exports
|
|
8067
|
+
(function(exports) {
|
|
7750
8068
|
var __importDefault = decode && decode.__importDefault || function(mod) {
|
|
7751
8069
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
7752
8070
|
};
|
|
7753
|
-
Object.defineProperty(exports
|
|
7754
|
-
exports
|
|
8071
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8072
|
+
exports.decodeXML = exports.decodeHTMLStrict = exports.decodeHTML = exports.determineBranch = exports.JUMP_OFFSET_BASE = exports.BinTrieFlags = exports.xmlDecodeTree = exports.htmlDecodeTree = void 0;
|
|
7755
8073
|
var decode_data_html_1 = __importDefault(/* @__PURE__ */ requireDecodeDataHtml());
|
|
7756
|
-
exports
|
|
8074
|
+
exports.htmlDecodeTree = decode_data_html_1.default;
|
|
7757
8075
|
var decode_data_xml_1 = __importDefault(/* @__PURE__ */ requireDecodeDataXml());
|
|
7758
|
-
exports
|
|
8076
|
+
exports.xmlDecodeTree = decode_data_xml_1.default;
|
|
7759
8077
|
var decode_codepoint_1 = __importDefault(/* @__PURE__ */ requireDecode_codepoint());
|
|
7760
8078
|
var BinTrieFlags;
|
|
7761
8079
|
(function(BinTrieFlags2) {
|
|
@@ -7763,8 +8081,8 @@ function requireDecode() {
|
|
|
7763
8081
|
BinTrieFlags2[BinTrieFlags2["BRANCH_LENGTH"] = 32512] = "BRANCH_LENGTH";
|
|
7764
8082
|
BinTrieFlags2[BinTrieFlags2["MULTI_BYTE"] = 128] = "MULTI_BYTE";
|
|
7765
8083
|
BinTrieFlags2[BinTrieFlags2["JUMP_TABLE"] = 127] = "JUMP_TABLE";
|
|
7766
|
-
})(BinTrieFlags = exports
|
|
7767
|
-
exports
|
|
8084
|
+
})(BinTrieFlags = exports.BinTrieFlags || (exports.BinTrieFlags = {}));
|
|
8085
|
+
exports.JUMP_OFFSET_BASE = 48 - 1;
|
|
7768
8086
|
function getDecoder(decodeTree) {
|
|
7769
8087
|
return function decodeHTMLBinary(str, strict) {
|
|
7770
8088
|
var ret = "";
|
|
@@ -7837,7 +8155,7 @@ function requireDecode() {
|
|
|
7837
8155
|
}
|
|
7838
8156
|
var jumpOffset = current & BinTrieFlags.JUMP_TABLE;
|
|
7839
8157
|
if (jumpOffset) {
|
|
7840
|
-
var value = char - exports
|
|
8158
|
+
var value = char - exports.JUMP_OFFSET_BASE - jumpOffset;
|
|
7841
8159
|
return value < 0 || value > branchCount ? -1 : decodeTree[nodeIdx + value] - 1;
|
|
7842
8160
|
}
|
|
7843
8161
|
var lo = nodeIdx;
|
|
@@ -7855,21 +8173,21 @@ function requireDecode() {
|
|
|
7855
8173
|
}
|
|
7856
8174
|
return -1;
|
|
7857
8175
|
}
|
|
7858
|
-
exports
|
|
8176
|
+
exports.determineBranch = determineBranch;
|
|
7859
8177
|
var htmlDecoder = getDecoder(decode_data_html_1.default);
|
|
7860
8178
|
var xmlDecoder = getDecoder(decode_data_xml_1.default);
|
|
7861
8179
|
function decodeHTML(str) {
|
|
7862
8180
|
return htmlDecoder(str, false);
|
|
7863
8181
|
}
|
|
7864
|
-
exports
|
|
8182
|
+
exports.decodeHTML = decodeHTML;
|
|
7865
8183
|
function decodeHTMLStrict(str) {
|
|
7866
8184
|
return htmlDecoder(str, true);
|
|
7867
8185
|
}
|
|
7868
|
-
exports
|
|
8186
|
+
exports.decodeHTMLStrict = decodeHTMLStrict;
|
|
7869
8187
|
function decodeXML(str) {
|
|
7870
8188
|
return xmlDecoder(str, true);
|
|
7871
8189
|
}
|
|
7872
|
-
exports
|
|
8190
|
+
exports.decodeXML = decodeXML;
|
|
7873
8191
|
})(decode);
|
|
7874
8192
|
return decode;
|
|
7875
8193
|
}
|
|
@@ -12141,17 +12459,17 @@ var hasRequiredEncodeTrie;
|
|
|
12141
12459
|
function requireEncodeTrie() {
|
|
12142
12460
|
if (hasRequiredEncodeTrie) return encodeTrie;
|
|
12143
12461
|
hasRequiredEncodeTrie = 1;
|
|
12144
|
-
(function(exports
|
|
12462
|
+
(function(exports) {
|
|
12145
12463
|
var __importDefault = encodeTrie && encodeTrie.__importDefault || function(mod) {
|
|
12146
12464
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
12147
12465
|
};
|
|
12148
|
-
Object.defineProperty(exports
|
|
12149
|
-
exports
|
|
12466
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12467
|
+
exports.getTrie = exports.encodeHTMLTrieRe = exports.getCodePoint = void 0;
|
|
12150
12468
|
var entities_json_1 = __importDefault(require$$2);
|
|
12151
12469
|
function isHighSurrugate(c) {
|
|
12152
12470
|
return (c & 64512) === 55296;
|
|
12153
12471
|
}
|
|
12154
|
-
exports
|
|
12472
|
+
exports.getCodePoint = // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
12155
12473
|
String.prototype.codePointAt != null ? function(str, index2) {
|
|
12156
12474
|
return str.codePointAt(index2);
|
|
12157
12475
|
} : (
|
|
@@ -12183,13 +12501,13 @@ function requireEncodeTrie() {
|
|
|
12183
12501
|
ret += str.substring(lastIdx, i) + next2.value;
|
|
12184
12502
|
lastIdx = i + 1;
|
|
12185
12503
|
} else {
|
|
12186
|
-
ret += str.substring(lastIdx, i) + "&#x" + exports
|
|
12504
|
+
ret += str.substring(lastIdx, i) + "&#x" + exports.getCodePoint(str, i).toString(16) + ";";
|
|
12187
12505
|
lastIdx = regExp.lastIndex += Number(isHighSurrugate(char));
|
|
12188
12506
|
}
|
|
12189
12507
|
}
|
|
12190
12508
|
return ret + str.substr(lastIdx);
|
|
12191
12509
|
}
|
|
12192
|
-
exports
|
|
12510
|
+
exports.encodeHTMLTrieRe = encodeHTMLTrieRe;
|
|
12193
12511
|
function getTrie(map2) {
|
|
12194
12512
|
var _a, _b, _c, _d;
|
|
12195
12513
|
var trie2 = /* @__PURE__ */ new Map();
|
|
@@ -12209,7 +12527,7 @@ function requireEncodeTrie() {
|
|
|
12209
12527
|
}
|
|
12210
12528
|
return trie2;
|
|
12211
12529
|
}
|
|
12212
|
-
exports
|
|
12530
|
+
exports.getTrie = getTrie;
|
|
12213
12531
|
})(encodeTrie);
|
|
12214
12532
|
return encodeTrie;
|
|
12215
12533
|
}
|
|
@@ -12304,27 +12622,27 @@ var hasRequiredLib;
|
|
|
12304
12622
|
function requireLib() {
|
|
12305
12623
|
if (hasRequiredLib) return lib;
|
|
12306
12624
|
hasRequiredLib = 1;
|
|
12307
|
-
(function(exports
|
|
12308
|
-
Object.defineProperty(exports
|
|
12309
|
-
exports
|
|
12625
|
+
(function(exports) {
|
|
12626
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12627
|
+
exports.decodeXMLStrict = exports.decodeHTML5Strict = exports.decodeHTML4Strict = exports.decodeHTML5 = exports.decodeHTML4 = exports.decodeHTMLStrict = exports.decodeHTML = exports.decodeXML = exports.encodeHTML5 = exports.encodeHTML4 = exports.escapeUTF8 = exports.escape = exports.encodeNonAsciiHTML = exports.encodeHTML = exports.encodeXML = exports.encode = exports.decodeStrict = exports.decode = exports.EncodingMode = exports.DecodingMode = exports.EntityLevel = void 0;
|
|
12310
12628
|
var decode_1 = /* @__PURE__ */ requireDecode();
|
|
12311
12629
|
var encode_12 = /* @__PURE__ */ requireEncode();
|
|
12312
12630
|
var EntityLevel;
|
|
12313
12631
|
(function(EntityLevel2) {
|
|
12314
12632
|
EntityLevel2[EntityLevel2["XML"] = 0] = "XML";
|
|
12315
12633
|
EntityLevel2[EntityLevel2["HTML"] = 1] = "HTML";
|
|
12316
|
-
})(EntityLevel = exports
|
|
12634
|
+
})(EntityLevel = exports.EntityLevel || (exports.EntityLevel = {}));
|
|
12317
12635
|
var DecodingMode;
|
|
12318
12636
|
(function(DecodingMode2) {
|
|
12319
12637
|
DecodingMode2[DecodingMode2["Legacy"] = 0] = "Legacy";
|
|
12320
12638
|
DecodingMode2[DecodingMode2["Strict"] = 1] = "Strict";
|
|
12321
|
-
})(DecodingMode = exports
|
|
12639
|
+
})(DecodingMode = exports.DecodingMode || (exports.DecodingMode = {}));
|
|
12322
12640
|
var EncodingMode;
|
|
12323
12641
|
(function(EncodingMode2) {
|
|
12324
12642
|
EncodingMode2[EncodingMode2["UTF8"] = 0] = "UTF8";
|
|
12325
12643
|
EncodingMode2[EncodingMode2["ASCII"] = 1] = "ASCII";
|
|
12326
12644
|
EncodingMode2[EncodingMode2["Extensive"] = 2] = "Extensive";
|
|
12327
|
-
})(EncodingMode = exports
|
|
12645
|
+
})(EncodingMode = exports.EncodingMode || (exports.EncodingMode = {}));
|
|
12328
12646
|
function decode2(data, options) {
|
|
12329
12647
|
if (options === void 0) {
|
|
12330
12648
|
options = EntityLevel.XML;
|
|
@@ -12338,7 +12656,7 @@ function requireLib() {
|
|
|
12338
12656
|
}
|
|
12339
12657
|
return decode_1.decodeXML(data);
|
|
12340
12658
|
}
|
|
12341
|
-
exports
|
|
12659
|
+
exports.decode = decode2;
|
|
12342
12660
|
function decodeStrict(data, options) {
|
|
12343
12661
|
if (options === void 0) {
|
|
12344
12662
|
options = EntityLevel.XML;
|
|
@@ -12352,7 +12670,7 @@ function requireLib() {
|
|
|
12352
12670
|
}
|
|
12353
12671
|
return decode_1.decodeXML(data);
|
|
12354
12672
|
}
|
|
12355
|
-
exports
|
|
12673
|
+
exports.decodeStrict = decodeStrict;
|
|
12356
12674
|
function encode2(data, options) {
|
|
12357
12675
|
if (options === void 0) {
|
|
12358
12676
|
options = EntityLevel.XML;
|
|
@@ -12368,52 +12686,52 @@ function requireLib() {
|
|
|
12368
12686
|
}
|
|
12369
12687
|
return encode_12.encodeXML(data);
|
|
12370
12688
|
}
|
|
12371
|
-
exports
|
|
12689
|
+
exports.encode = encode2;
|
|
12372
12690
|
var encode_2 = /* @__PURE__ */ requireEncode();
|
|
12373
|
-
Object.defineProperty(exports
|
|
12691
|
+
Object.defineProperty(exports, "encodeXML", { enumerable: true, get: function() {
|
|
12374
12692
|
return encode_2.encodeXML;
|
|
12375
12693
|
} });
|
|
12376
|
-
Object.defineProperty(exports
|
|
12694
|
+
Object.defineProperty(exports, "encodeHTML", { enumerable: true, get: function() {
|
|
12377
12695
|
return encode_2.encodeHTML;
|
|
12378
12696
|
} });
|
|
12379
|
-
Object.defineProperty(exports
|
|
12697
|
+
Object.defineProperty(exports, "encodeNonAsciiHTML", { enumerable: true, get: function() {
|
|
12380
12698
|
return encode_2.encodeNonAsciiHTML;
|
|
12381
12699
|
} });
|
|
12382
|
-
Object.defineProperty(exports
|
|
12700
|
+
Object.defineProperty(exports, "escape", { enumerable: true, get: function() {
|
|
12383
12701
|
return encode_2.escape;
|
|
12384
12702
|
} });
|
|
12385
|
-
Object.defineProperty(exports
|
|
12703
|
+
Object.defineProperty(exports, "escapeUTF8", { enumerable: true, get: function() {
|
|
12386
12704
|
return encode_2.escapeUTF8;
|
|
12387
12705
|
} });
|
|
12388
|
-
Object.defineProperty(exports
|
|
12706
|
+
Object.defineProperty(exports, "encodeHTML4", { enumerable: true, get: function() {
|
|
12389
12707
|
return encode_2.encodeHTML;
|
|
12390
12708
|
} });
|
|
12391
|
-
Object.defineProperty(exports
|
|
12709
|
+
Object.defineProperty(exports, "encodeHTML5", { enumerable: true, get: function() {
|
|
12392
12710
|
return encode_2.encodeHTML;
|
|
12393
12711
|
} });
|
|
12394
12712
|
var decode_2 = /* @__PURE__ */ requireDecode();
|
|
12395
|
-
Object.defineProperty(exports
|
|
12713
|
+
Object.defineProperty(exports, "decodeXML", { enumerable: true, get: function() {
|
|
12396
12714
|
return decode_2.decodeXML;
|
|
12397
12715
|
} });
|
|
12398
|
-
Object.defineProperty(exports
|
|
12716
|
+
Object.defineProperty(exports, "decodeHTML", { enumerable: true, get: function() {
|
|
12399
12717
|
return decode_2.decodeHTML;
|
|
12400
12718
|
} });
|
|
12401
|
-
Object.defineProperty(exports
|
|
12719
|
+
Object.defineProperty(exports, "decodeHTMLStrict", { enumerable: true, get: function() {
|
|
12402
12720
|
return decode_2.decodeHTMLStrict;
|
|
12403
12721
|
} });
|
|
12404
|
-
Object.defineProperty(exports
|
|
12722
|
+
Object.defineProperty(exports, "decodeHTML4", { enumerable: true, get: function() {
|
|
12405
12723
|
return decode_2.decodeHTML;
|
|
12406
12724
|
} });
|
|
12407
|
-
Object.defineProperty(exports
|
|
12725
|
+
Object.defineProperty(exports, "decodeHTML5", { enumerable: true, get: function() {
|
|
12408
12726
|
return decode_2.decodeHTML;
|
|
12409
12727
|
} });
|
|
12410
|
-
Object.defineProperty(exports
|
|
12728
|
+
Object.defineProperty(exports, "decodeHTML4Strict", { enumerable: true, get: function() {
|
|
12411
12729
|
return decode_2.decodeHTMLStrict;
|
|
12412
12730
|
} });
|
|
12413
|
-
Object.defineProperty(exports
|
|
12731
|
+
Object.defineProperty(exports, "decodeHTML5Strict", { enumerable: true, get: function() {
|
|
12414
12732
|
return decode_2.decodeHTMLStrict;
|
|
12415
12733
|
} });
|
|
12416
|
-
Object.defineProperty(exports
|
|
12734
|
+
Object.defineProperty(exports, "decodeXMLStrict", { enumerable: true, get: function() {
|
|
12417
12735
|
return decode_2.decodeXML;
|
|
12418
12736
|
} });
|
|
12419
12737
|
})(lib);
|
|
@@ -14471,7 +14789,7 @@ XmlRenderer.prototype.tag = tag;
|
|
|
14471
14789
|
XmlRenderer.prototype.esc = escapeXml;
|
|
14472
14790
|
const _hoisted_1$d = ["text-anchor", "font-size"];
|
|
14473
14791
|
const _hoisted_2$7 = { key: 0 };
|
|
14474
|
-
const _sfc_main$
|
|
14792
|
+
const _sfc_main$16 = {
|
|
14475
14793
|
__name: "CoreMarkdown",
|
|
14476
14794
|
props: {
|
|
14477
14795
|
x: { type: Number, default: 0 },
|
|
@@ -14618,6 +14936,72 @@ const _sfc_main$12 = {
|
|
|
14618
14936
|
};
|
|
14619
14937
|
}
|
|
14620
14938
|
};
|
|
14939
|
+
const _sfc_main$15 = {
|
|
14940
|
+
__name: "CoreAxisLabel",
|
|
14941
|
+
props: {
|
|
14942
|
+
type: String,
|
|
14943
|
+
value: null,
|
|
14944
|
+
getPosition: Function
|
|
14945
|
+
},
|
|
14946
|
+
emits: [
|
|
14947
|
+
"click",
|
|
14948
|
+
"dblclick",
|
|
14949
|
+
"contextmenu",
|
|
14950
|
+
"pointerdown",
|
|
14951
|
+
"pointerup",
|
|
14952
|
+
"pointerover",
|
|
14953
|
+
"pointerout",
|
|
14954
|
+
"pointerenter",
|
|
14955
|
+
"pointerleave",
|
|
14956
|
+
"pointermove",
|
|
14957
|
+
"wheel",
|
|
14958
|
+
"singleclick"
|
|
14959
|
+
],
|
|
14960
|
+
setup(__props, { emit: __emit }) {
|
|
14961
|
+
const emit = __emit;
|
|
14962
|
+
const vOn = {
|
|
14963
|
+
pointerdown(e) {
|
|
14964
|
+
emit("pointerdown", e, __props.getPosition(e), __props.value);
|
|
14965
|
+
},
|
|
14966
|
+
pointerup(e) {
|
|
14967
|
+
emit("pointerup", e, __props.getPosition(e), __props.value);
|
|
14968
|
+
},
|
|
14969
|
+
pointerover(e) {
|
|
14970
|
+
emit("pointerover", e, __props.getPosition(e), __props.value);
|
|
14971
|
+
},
|
|
14972
|
+
pointerout(e) {
|
|
14973
|
+
emit("pointerout", e, __props.getPosition(e), __props.value);
|
|
14974
|
+
},
|
|
14975
|
+
pointerenter(e) {
|
|
14976
|
+
emit("pointerenter", e, __props.getPosition(e), __props.value);
|
|
14977
|
+
},
|
|
14978
|
+
pointerleave(e) {
|
|
14979
|
+
emit("pointerleave", e, __props.getPosition(e), __props.value);
|
|
14980
|
+
},
|
|
14981
|
+
dblclick(e) {
|
|
14982
|
+
emit("dblclick", e, __props.getPosition(e), __props.value);
|
|
14983
|
+
},
|
|
14984
|
+
click(e) {
|
|
14985
|
+
emit("click", e, __props.getPosition(e), __props.value);
|
|
14986
|
+
},
|
|
14987
|
+
singleclick(e) {
|
|
14988
|
+
emit("singleclick", e, __props.getPosition(e), __props.value);
|
|
14989
|
+
},
|
|
14990
|
+
contextmenu(e) {
|
|
14991
|
+
emit("contextmenu", e, __props.getPosition(e), __props.value);
|
|
14992
|
+
},
|
|
14993
|
+
pointermove(e) {
|
|
14994
|
+
emit("pointermove", e, __props.getPosition(e), __props.value);
|
|
14995
|
+
},
|
|
14996
|
+
wheel(e) {
|
|
14997
|
+
emit("wheel", e, __props.getPosition(e), __props.value);
|
|
14998
|
+
}
|
|
14999
|
+
};
|
|
15000
|
+
return (_ctx, _cache) => {
|
|
15001
|
+
return __props.type == "markdown" ? (openBlock(), createBlock(_sfc_main$16, mergeProps({ key: 0 }, toHandlers(vOn)), null, 16)) : (openBlock(), createBlock(_sfc_main$17, mergeProps({ key: 1 }, toHandlers(vOn)), null, 16));
|
|
15002
|
+
};
|
|
15003
|
+
}
|
|
15004
|
+
};
|
|
14621
15005
|
const _hoisted_1$c = ["transform"];
|
|
14622
15006
|
const _hoisted_2$6 = ["x2"];
|
|
14623
15007
|
const _hoisted_3$4 = {
|
|
@@ -14626,12 +15010,12 @@ const _hoisted_3$4 = {
|
|
|
14626
15010
|
};
|
|
14627
15011
|
const _hoisted_4$3 = ["width", "cursor"];
|
|
14628
15012
|
const _hoisted_5$2 = {
|
|
14629
|
-
key:
|
|
15013
|
+
key: 1,
|
|
14630
15014
|
class: "vvplot-interactive",
|
|
14631
15015
|
fill: "transparent"
|
|
14632
15016
|
};
|
|
14633
15017
|
const _hoisted_6$2 = ["x"];
|
|
14634
|
-
const _sfc_main$
|
|
15018
|
+
const _sfc_main$14 = {
|
|
14635
15019
|
__name: "CoreAxisH",
|
|
14636
15020
|
props: {
|
|
14637
15021
|
coord: String,
|
|
@@ -14712,20 +15096,20 @@ const _sfc_main$11 = {
|
|
|
14712
15096
|
const tickLines = computed(() => {
|
|
14713
15097
|
let result = [];
|
|
14714
15098
|
for (let tick of __props.ticks) {
|
|
14715
|
-
|
|
14716
|
-
let pos = __props.coord2pos({ h:
|
|
15099
|
+
let { value, theme: $theme } = tick;
|
|
15100
|
+
let pos = __props.coord2pos({ h: value }).h;
|
|
14717
15101
|
let tsl = pos * (__props.activeTransform.scaleH - 1) + __props.activeTransform.translateH;
|
|
14718
|
-
|
|
14719
|
-
if (
|
|
14720
|
-
let offset = (
|
|
15102
|
+
pos += __props.layout.l;
|
|
15103
|
+
if (pos + tsl < 0 || pos + tsl > width.value) continue;
|
|
15104
|
+
let offset = ($theme.tick_position == "top" ? -1 : 1) * $theme.tick_length;
|
|
14721
15105
|
result.push({
|
|
14722
|
-
key: "line-" +
|
|
15106
|
+
key: "line-" + value,
|
|
14723
15107
|
y1: 0,
|
|
14724
15108
|
y2: offset,
|
|
14725
|
-
x1:
|
|
14726
|
-
x2:
|
|
14727
|
-
"stroke":
|
|
14728
|
-
"stroke-width":
|
|
15109
|
+
x1: pos,
|
|
15110
|
+
x2: pos,
|
|
15111
|
+
"stroke": $theme.tick_color,
|
|
15112
|
+
"stroke-width": $theme.tick_width,
|
|
14729
15113
|
transform: tsl ? `translate(${tsl},0)` : null,
|
|
14730
15114
|
style: { transition: __props.transition }
|
|
14731
15115
|
});
|
|
@@ -14733,43 +15117,45 @@ const _sfc_main$11 = {
|
|
|
14733
15117
|
return result.filter((t) => t.stroke != null).sort((a, b) => a.x1 - b.x1);
|
|
14734
15118
|
});
|
|
14735
15119
|
const tickTexts = computed(() => {
|
|
14736
|
-
let isTop = (__props.theme.label_position ?? __props.theme.tick_position) == "top";
|
|
14737
15120
|
let result = [];
|
|
14738
15121
|
for (let tick of __props.ticks) {
|
|
14739
|
-
|
|
14740
|
-
let
|
|
15122
|
+
let { type, value, label, title, theme: $theme, ...etc } = tick;
|
|
15123
|
+
let isTop = ($theme.label_position ?? $theme.tick_position) == "top";
|
|
15124
|
+
let pos = __props.coord2pos({ h: value }).h;
|
|
14741
15125
|
let tsl = pos * (__props.activeTransform.scaleH - 1) + __props.activeTransform.translateH;
|
|
14742
|
-
|
|
14743
|
-
if (
|
|
14744
|
-
let offset = (isTop ? -1 : 1) * (
|
|
15126
|
+
pos += __props.layout.l;
|
|
15127
|
+
if (pos + tsl < 0 || pos + tsl > width.value) continue;
|
|
15128
|
+
let offset = (isTop ? -1 : 1) * ($theme.label_offset ?? $theme.tick_length);
|
|
14745
15129
|
let anchorX, anchorY, dockX, dockY;
|
|
14746
|
-
if (
|
|
14747
|
-
anchorX =
|
|
14748
|
-
anchorY =
|
|
15130
|
+
if ($theme.label_anchor_x != null || $theme.label_anchor_y != null) {
|
|
15131
|
+
anchorX = $theme.label_anchor_x ?? 0.5;
|
|
15132
|
+
anchorY = $theme.label_anchor_y ?? (isTop ? 0 : 1);
|
|
14749
15133
|
} else {
|
|
14750
|
-
dockX =
|
|
14751
|
-
dockY =
|
|
15134
|
+
dockX = $theme.label_dock_x ?? 0.5;
|
|
15135
|
+
dockY = $theme.label_dock_y ?? (isTop ? 0 : 1);
|
|
14752
15136
|
}
|
|
14753
15137
|
result.push({
|
|
14754
15138
|
wrapper: {
|
|
14755
|
-
key: "text-" +
|
|
15139
|
+
key: "text-" + value,
|
|
14756
15140
|
transform: tsl ? `translate(${tsl},0)` : null,
|
|
14757
15141
|
style: { transition: __props.transition }
|
|
14758
15142
|
},
|
|
14759
15143
|
text: {
|
|
14760
|
-
x:
|
|
15144
|
+
x: pos,
|
|
14761
15145
|
y: offset,
|
|
14762
|
-
angle:
|
|
15146
|
+
angle: $theme.label_angle,
|
|
14763
15147
|
anchorX,
|
|
14764
15148
|
anchorY,
|
|
14765
15149
|
dockX,
|
|
14766
15150
|
dockY,
|
|
14767
|
-
|
|
14768
|
-
|
|
14769
|
-
|
|
14770
|
-
|
|
15151
|
+
type: $theme.label_type,
|
|
15152
|
+
text: label,
|
|
15153
|
+
title: title ?? label,
|
|
15154
|
+
fontSize: $theme.label_size,
|
|
15155
|
+
fill: $theme.label_color,
|
|
14771
15156
|
"font-family": "sans-serif",
|
|
14772
|
-
|
|
15157
|
+
value,
|
|
15158
|
+
...etc
|
|
14773
15159
|
}
|
|
14774
15160
|
});
|
|
14775
15161
|
}
|
|
@@ -14800,13 +15186,6 @@ const _sfc_main$11 = {
|
|
|
14800
15186
|
}
|
|
14801
15187
|
}
|
|
14802
15188
|
e.target.addEventListener("pointermove", detectMove, { passive: true });
|
|
14803
|
-
e.target.addEventListener("pointerup", function(ev) {
|
|
14804
|
-
e.target.removeEventListener("pointermove", detectMove);
|
|
14805
|
-
if (!pointerMoved) {
|
|
14806
|
-
let position2 = getPosition(ev);
|
|
14807
|
-
emit("singleclick", new PointerEvent("singleclick", ev), position2);
|
|
14808
|
-
}
|
|
14809
|
-
}, { once: true });
|
|
14810
15189
|
let act = __props.action.find((a) => a.action == "move");
|
|
14811
15190
|
if (!act) return;
|
|
14812
15191
|
e.preventDefault();
|
|
@@ -14965,12 +15344,15 @@ const _sfc_main$11 = {
|
|
|
14965
15344
|
pointerleave(e) {
|
|
14966
15345
|
emit("pointerleave", e, getPosition(e));
|
|
14967
15346
|
},
|
|
14968
|
-
dblclick(e) {
|
|
14969
|
-
emit("dblclick", e, getPosition(e));
|
|
14970
|
-
},
|
|
14971
15347
|
click(e) {
|
|
14972
15348
|
emit("click", e, getPosition(e));
|
|
14973
15349
|
},
|
|
15350
|
+
singleclick(e) {
|
|
15351
|
+
emit("singleclick", e, getPosition(e));
|
|
15352
|
+
},
|
|
15353
|
+
dblclick(e) {
|
|
15354
|
+
emit("dblclick", e, getPosition(e));
|
|
15355
|
+
},
|
|
14974
15356
|
contextmenu(e) {
|
|
14975
15357
|
emit("contextmenu", e, getPosition(e));
|
|
14976
15358
|
},
|
|
@@ -14984,13 +15366,14 @@ const _sfc_main$11 = {
|
|
|
14984
15366
|
transform: transform.value,
|
|
14985
15367
|
style: normalizeStyle({ transition: __props.transition })
|
|
14986
15368
|
}, [
|
|
14987
|
-
|
|
15369
|
+
axisLine.value.stroke != null ? (openBlock(), createElementBlock("line", mergeProps({
|
|
15370
|
+
key: 0,
|
|
14988
15371
|
ref: "i",
|
|
14989
15372
|
x1: 0,
|
|
14990
15373
|
x2: width.value,
|
|
14991
15374
|
y1: 0,
|
|
14992
15375
|
y2: 0
|
|
14993
|
-
}, axisLine.value), null, 16, _hoisted_2$6),
|
|
15376
|
+
}, axisLine.value), null, 16, _hoisted_2$6)) : createCommentVNode("", true),
|
|
14994
15377
|
_cache[1] || (_cache[1] = createTextVNode()),
|
|
14995
15378
|
(openBlock(true), createElementBlock(Fragment, null, renderList(tickLines.value, (tick) => {
|
|
14996
15379
|
return openBlock(), createElementBlock("line", mergeProps({ ref_for: true }, tick), null, 16);
|
|
@@ -14998,13 +15381,7 @@ const _sfc_main$11 = {
|
|
|
14998
15381
|
_cache[2] || (_cache[2] = createTextVNode()),
|
|
14999
15382
|
(openBlock(true), createElementBlock(Fragment, null, renderList(tickTexts.value, (tick) => {
|
|
15000
15383
|
return openBlock(), createElementBlock("g", mergeProps({ ref_for: true }, tick.wrapper), [
|
|
15001
|
-
|
|
15002
|
-
key: 0,
|
|
15003
|
-
ref_for: true
|
|
15004
|
-
}, tick.text), null, 16)) : (openBlock(), createBlock(_sfc_main$13, mergeProps({
|
|
15005
|
-
key: 1,
|
|
15006
|
-
ref_for: true
|
|
15007
|
-
}, tick.text), null, 16))
|
|
15384
|
+
createVNode(_sfc_main$15, mergeProps({ ref_for: true }, tick.text, { getPosition }), null, 16)
|
|
15008
15385
|
], 16);
|
|
15009
15386
|
}), 256)),
|
|
15010
15387
|
_cache[3] || (_cache[3] = createTextVNode()),
|
|
@@ -15036,8 +15413,8 @@ const _sfc_main$11 = {
|
|
|
15036
15413
|
}, toHandlers(axisVOn, true), { onPointerdown: axisRescaleRightPointerdown }), null, 16, _hoisted_6$2)
|
|
15037
15414
|
])) : createCommentVNode("", true),
|
|
15038
15415
|
_cache[5] || (_cache[5] = createTextVNode()),
|
|
15039
|
-
axisTitle.value.text ? (openBlock(), createElementBlock(Fragment, { key:
|
|
15040
|
-
__props.theme.title_type == "markdown" ? (openBlock(), createBlock(_sfc_main$
|
|
15416
|
+
axisTitle.value.text ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
15417
|
+
__props.theme.title_type == "markdown" ? (openBlock(), createBlock(_sfc_main$16, normalizeProps(mergeProps({ key: 0 }, axisTitle.value)), null, 16)) : (openBlock(), createBlock(_sfc_main$17, normalizeProps(mergeProps({ key: 1 }, axisTitle.value)), null, 16))
|
|
15041
15418
|
], 64)) : createCommentVNode("", true)
|
|
15042
15419
|
], 12, _hoisted_1$c);
|
|
15043
15420
|
};
|
|
@@ -15051,12 +15428,12 @@ const _hoisted_3$3 = {
|
|
|
15051
15428
|
};
|
|
15052
15429
|
const _hoisted_4$2 = ["height", "cursor"];
|
|
15053
15430
|
const _hoisted_5$1 = {
|
|
15054
|
-
key:
|
|
15431
|
+
key: 1,
|
|
15055
15432
|
class: "vvplot-interactive",
|
|
15056
15433
|
fill: "transparent"
|
|
15057
15434
|
};
|
|
15058
15435
|
const _hoisted_6$1 = ["y"];
|
|
15059
|
-
const _sfc_main$
|
|
15436
|
+
const _sfc_main$13 = {
|
|
15060
15437
|
__name: "CoreAxisV",
|
|
15061
15438
|
props: {
|
|
15062
15439
|
coord: String,
|
|
@@ -15137,20 +15514,20 @@ const _sfc_main$10 = {
|
|
|
15137
15514
|
const tickLines = computed(() => {
|
|
15138
15515
|
let result = [];
|
|
15139
15516
|
for (let tick of __props.ticks) {
|
|
15140
|
-
|
|
15141
|
-
let pos = __props.coord2pos({ v:
|
|
15517
|
+
let { value, theme: $theme } = tick;
|
|
15518
|
+
let pos = __props.coord2pos({ v: value }).v;
|
|
15142
15519
|
let tsl = pos * (__props.activeTransform.scaleV - 1) + __props.activeTransform.translateV;
|
|
15143
|
-
|
|
15144
|
-
if (
|
|
15145
|
-
let offset = (
|
|
15520
|
+
pos += __props.layout.t;
|
|
15521
|
+
if (pos + tsl < 0 || pos + tsl > height.value) continue;
|
|
15522
|
+
let offset = ($theme.tick_position == "right" ? 1 : -1) * $theme.tick_length;
|
|
15146
15523
|
result.push({
|
|
15147
|
-
key: "line-" + tick.
|
|
15148
|
-
y1:
|
|
15149
|
-
y2:
|
|
15524
|
+
key: "line-" + tick.value,
|
|
15525
|
+
y1: pos,
|
|
15526
|
+
y2: pos,
|
|
15150
15527
|
x1: 0,
|
|
15151
15528
|
x2: offset,
|
|
15152
|
-
"stroke": tick.color ??
|
|
15153
|
-
"stroke-width": tick.width ??
|
|
15529
|
+
"stroke": tick.color ?? $theme.tick_color,
|
|
15530
|
+
"stroke-width": tick.width ?? $theme.tick_width,
|
|
15154
15531
|
transform: tsl ? `translate(0,${tsl})` : null,
|
|
15155
15532
|
style: { transition: __props.transition }
|
|
15156
15533
|
});
|
|
@@ -15158,43 +15535,45 @@ const _sfc_main$10 = {
|
|
|
15158
15535
|
return result.filter((t) => t.stroke != null).sort((a, b) => a.y1 - b.y1);
|
|
15159
15536
|
});
|
|
15160
15537
|
const tickTexts = computed(() => {
|
|
15161
|
-
let isRight = (__props.theme.label_position ?? __props.theme.tick_position) == "right";
|
|
15162
15538
|
let result = [];
|
|
15163
15539
|
for (let tick of __props.ticks) {
|
|
15164
|
-
|
|
15165
|
-
let
|
|
15540
|
+
let { type, value, label, title, theme: $theme, ...etc } = tick;
|
|
15541
|
+
let isRight = ($theme.label_position ?? $theme.tick_position) == "right";
|
|
15542
|
+
let pos = __props.coord2pos({ v: value }).v;
|
|
15166
15543
|
let tsl = pos * (__props.activeTransform.scaleV - 1) + __props.activeTransform.translateV;
|
|
15167
|
-
|
|
15168
|
-
if (
|
|
15169
|
-
let offset = (isRight ? 1 : -1) * ((
|
|
15544
|
+
pos += __props.layout.t;
|
|
15545
|
+
if (pos + tsl < 0 || pos + tsl > height.value) continue;
|
|
15546
|
+
let offset = (isRight ? 1 : -1) * (($theme.label_offset ?? $theme.tick_length) + 3);
|
|
15170
15547
|
let anchorX, anchorY, dockX, dockY;
|
|
15171
|
-
if (
|
|
15172
|
-
anchorX =
|
|
15173
|
-
anchorY =
|
|
15548
|
+
if ($theme.label_anchor_x != null || $theme.label_anchor_y != null) {
|
|
15549
|
+
anchorX = $theme.label_anchor_x ?? (isRight ? 0 : 1);
|
|
15550
|
+
anchorY = $theme.label_anchor_y ?? 0.5;
|
|
15174
15551
|
} else {
|
|
15175
|
-
dockX =
|
|
15176
|
-
dockY =
|
|
15552
|
+
dockX = $theme.label_dock_x ?? (isRight ? 0 : 1);
|
|
15553
|
+
dockY = $theme.label_dock_y ?? 0.5;
|
|
15177
15554
|
}
|
|
15178
15555
|
result.push({
|
|
15179
15556
|
wrapper: {
|
|
15180
|
-
key: "text-" +
|
|
15557
|
+
key: "text-" + value,
|
|
15181
15558
|
transform: tsl ? `translate(0,${tsl})` : null,
|
|
15182
15559
|
style: { transition: __props.transition }
|
|
15183
15560
|
},
|
|
15184
15561
|
text: {
|
|
15185
|
-
y:
|
|
15562
|
+
y: pos,
|
|
15186
15563
|
x: offset,
|
|
15187
|
-
angle:
|
|
15564
|
+
angle: $theme.label_angle,
|
|
15188
15565
|
anchorX,
|
|
15189
15566
|
anchorY,
|
|
15190
15567
|
dockX,
|
|
15191
15568
|
dockY,
|
|
15192
|
-
|
|
15193
|
-
|
|
15194
|
-
|
|
15195
|
-
|
|
15569
|
+
type: $theme.label_type,
|
|
15570
|
+
text: label,
|
|
15571
|
+
title: title ?? label,
|
|
15572
|
+
fontSize: $theme.label_size,
|
|
15573
|
+
fill: $theme.label_color,
|
|
15196
15574
|
"font-family": "sans-serif",
|
|
15197
|
-
|
|
15575
|
+
value,
|
|
15576
|
+
...etc
|
|
15198
15577
|
}
|
|
15199
15578
|
});
|
|
15200
15579
|
}
|
|
@@ -15225,13 +15604,6 @@ const _sfc_main$10 = {
|
|
|
15225
15604
|
}
|
|
15226
15605
|
}
|
|
15227
15606
|
e.target.addEventListener("pointermove", detectMove, { passive: true });
|
|
15228
|
-
e.target.addEventListener("pointerup", function(ev) {
|
|
15229
|
-
e.target.removeEventListener("pointermove", detectMove);
|
|
15230
|
-
if (!pointerMoved) {
|
|
15231
|
-
let position2 = getPosition(ev);
|
|
15232
|
-
emit("singleclick", new PointerEvent("singleclick", ev), position2);
|
|
15233
|
-
}
|
|
15234
|
-
}, { once: true });
|
|
15235
15607
|
let act = __props.action.find((a) => a.action == "move");
|
|
15236
15608
|
if (!act) return;
|
|
15237
15609
|
e.preventDefault();
|
|
@@ -15390,12 +15762,15 @@ const _sfc_main$10 = {
|
|
|
15390
15762
|
pointerleave(e) {
|
|
15391
15763
|
emit("pointerleave", e, getPosition(e));
|
|
15392
15764
|
},
|
|
15393
|
-
dblclick(e) {
|
|
15394
|
-
emit("dblclick", e, getPosition(e));
|
|
15395
|
-
},
|
|
15396
15765
|
click(e) {
|
|
15397
15766
|
emit("click", e, getPosition(e));
|
|
15398
15767
|
},
|
|
15768
|
+
singleclick(e) {
|
|
15769
|
+
emit("singleclick", e, getPosition(e));
|
|
15770
|
+
},
|
|
15771
|
+
dblclick(e) {
|
|
15772
|
+
emit("dblclick", e, getPosition(e));
|
|
15773
|
+
},
|
|
15399
15774
|
contextmenu(e) {
|
|
15400
15775
|
emit("contextmenu", e, getPosition(e));
|
|
15401
15776
|
},
|
|
@@ -15409,13 +15784,14 @@ const _sfc_main$10 = {
|
|
|
15409
15784
|
transform: transform.value,
|
|
15410
15785
|
style: normalizeStyle({ transition: __props.transition })
|
|
15411
15786
|
}, [
|
|
15412
|
-
|
|
15787
|
+
axisLine.value.stroke != null ? (openBlock(), createElementBlock("line", mergeProps({
|
|
15788
|
+
key: 0,
|
|
15413
15789
|
ref: "i",
|
|
15414
15790
|
x1: 0,
|
|
15415
15791
|
x2: 0,
|
|
15416
15792
|
y1: 0,
|
|
15417
15793
|
y2: height.value
|
|
15418
|
-
}, axisLine.value), null, 16, _hoisted_2$5),
|
|
15794
|
+
}, axisLine.value), null, 16, _hoisted_2$5)) : createCommentVNode("", true),
|
|
15419
15795
|
_cache[1] || (_cache[1] = createTextVNode()),
|
|
15420
15796
|
(openBlock(true), createElementBlock(Fragment, null, renderList(tickLines.value, (tick) => {
|
|
15421
15797
|
return openBlock(), createElementBlock("line", mergeProps({ ref_for: true }, tick), null, 16);
|
|
@@ -15423,13 +15799,7 @@ const _sfc_main$10 = {
|
|
|
15423
15799
|
_cache[2] || (_cache[2] = createTextVNode()),
|
|
15424
15800
|
(openBlock(true), createElementBlock(Fragment, null, renderList(tickTexts.value, (tick) => {
|
|
15425
15801
|
return openBlock(), createElementBlock("g", mergeProps({ ref_for: true }, tick.wrapper), [
|
|
15426
|
-
|
|
15427
|
-
key: 0,
|
|
15428
|
-
ref_for: true
|
|
15429
|
-
}, tick.text), null, 16)) : (openBlock(), createBlock(_sfc_main$13, mergeProps({
|
|
15430
|
-
key: 1,
|
|
15431
|
-
ref_for: true
|
|
15432
|
-
}, tick.text), null, 16))
|
|
15802
|
+
createVNode(_sfc_main$15, mergeProps({ ref_for: true }, tick.text, { getPosition }), null, 16)
|
|
15433
15803
|
], 16);
|
|
15434
15804
|
}), 256)),
|
|
15435
15805
|
_cache[3] || (_cache[3] = createTextVNode()),
|
|
@@ -15461,14 +15831,14 @@ const _sfc_main$10 = {
|
|
|
15461
15831
|
}, toHandlers(axisVOn, true), { onPointerdown: axisRescaleBottomPointerdown }), null, 16, _hoisted_6$1)
|
|
15462
15832
|
])) : createCommentVNode("", true),
|
|
15463
15833
|
_cache[5] || (_cache[5] = createTextVNode()),
|
|
15464
|
-
axisTitle.value.text ? (openBlock(), createElementBlock(Fragment, { key:
|
|
15465
|
-
__props.theme.title_type == "markdown" ? (openBlock(), createBlock(_sfc_main$
|
|
15834
|
+
axisTitle.value.text ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
15835
|
+
__props.theme.title_type == "markdown" ? (openBlock(), createBlock(_sfc_main$16, normalizeProps(mergeProps({ key: 0 }, axisTitle.value)), null, 16)) : (openBlock(), createBlock(_sfc_main$17, normalizeProps(mergeProps({ key: 1 }, axisTitle.value)), null, 16))
|
|
15466
15836
|
], 64)) : createCommentVNode("", true)
|
|
15467
15837
|
], 12, _hoisted_1$b);
|
|
15468
15838
|
};
|
|
15469
15839
|
}
|
|
15470
15840
|
};
|
|
15471
|
-
const _sfc_main
|
|
15841
|
+
const _sfc_main$12 = {
|
|
15472
15842
|
__name: "CoreAxis",
|
|
15473
15843
|
props: {
|
|
15474
15844
|
theme: { type: Object, default: () => ({}) },
|
|
@@ -15477,8 +15847,8 @@ const _sfc_main$$ = {
|
|
|
15477
15847
|
},
|
|
15478
15848
|
setup(__props) {
|
|
15479
15849
|
const axis = {
|
|
15480
|
-
h: _sfc_main$
|
|
15481
|
-
v: _sfc_main$
|
|
15850
|
+
h: _sfc_main$14,
|
|
15851
|
+
v: _sfc_main$13
|
|
15482
15852
|
};
|
|
15483
15853
|
return (_ctx, _cache) => {
|
|
15484
15854
|
return __props.position != "none" ? (openBlock(), createBlock(resolveDynamicComponent(axis[__props.orientation]), {
|
|
@@ -15489,15 +15859,13 @@ const _sfc_main$$ = {
|
|
|
15489
15859
|
};
|
|
15490
15860
|
}
|
|
15491
15861
|
};
|
|
15492
|
-
const _sfc_main$
|
|
15862
|
+
const _sfc_main$11 = {
|
|
15493
15863
|
__name: "CoreGridH",
|
|
15494
15864
|
props: {
|
|
15495
|
-
|
|
15496
|
-
minorBreaks: { type: Array, default: () => [] },
|
|
15865
|
+
breaks: { type: Array, default: () => [] },
|
|
15497
15866
|
coord2pos: Function,
|
|
15498
15867
|
pos2coord: Function,
|
|
15499
15868
|
layout: Object,
|
|
15500
|
-
theme: { type: Object, default: () => ({}) },
|
|
15501
15869
|
action: { type: Object, default: () => ({}) },
|
|
15502
15870
|
activeTransform: Object,
|
|
15503
15871
|
transition: String
|
|
@@ -15507,20 +15875,21 @@ const _sfc_main$_ = {
|
|
|
15507
15875
|
const height = computed(() => __props.layout.height + __props.layout.t + __props.layout.b);
|
|
15508
15876
|
const majorLines = computed(() => {
|
|
15509
15877
|
let result = [];
|
|
15510
|
-
for (let
|
|
15511
|
-
|
|
15878
|
+
for (let b of __props.breaks) {
|
|
15879
|
+
if (b.type != "major") continue;
|
|
15880
|
+
let pos = __props.coord2pos({ v: b.value }).v;
|
|
15512
15881
|
if (isNaN(pos)) continue;
|
|
15513
15882
|
let tsl = pos * (__props.activeTransform.scaleV - 1) + __props.activeTransform.translateV;
|
|
15514
|
-
|
|
15515
|
-
if (
|
|
15883
|
+
pos += __props.layout.t;
|
|
15884
|
+
if (pos + tsl < 0 || pos + tsl > height.value) continue;
|
|
15516
15885
|
result.push({
|
|
15517
|
-
key: "major-" +
|
|
15886
|
+
key: "major-" + b.value,
|
|
15518
15887
|
x1: 0,
|
|
15519
15888
|
x2: width.value,
|
|
15520
|
-
y1:
|
|
15521
|
-
y2:
|
|
15522
|
-
"stroke":
|
|
15523
|
-
"stroke-width":
|
|
15889
|
+
y1: pos,
|
|
15890
|
+
y2: pos,
|
|
15891
|
+
"stroke": b.theme.grid_color_major,
|
|
15892
|
+
"stroke-width": b.theme.grid_width_major ?? 0,
|
|
15524
15893
|
transform: tsl ? `translate(0,${tsl})` : null,
|
|
15525
15894
|
style: { transition: __props.transition }
|
|
15526
15895
|
});
|
|
@@ -15529,21 +15898,21 @@ const _sfc_main$_ = {
|
|
|
15529
15898
|
});
|
|
15530
15899
|
const minorLines = computed(() => {
|
|
15531
15900
|
let result = [];
|
|
15532
|
-
for (let
|
|
15533
|
-
if (
|
|
15534
|
-
let pos = __props.coord2pos({ v:
|
|
15901
|
+
for (let b of __props.breaks) {
|
|
15902
|
+
if (b.type != "minor") continue;
|
|
15903
|
+
let pos = __props.coord2pos({ v: b.value }).v;
|
|
15535
15904
|
if (isNaN(pos)) continue;
|
|
15536
15905
|
let tsl = pos * (__props.activeTransform.scaleV - 1) + __props.activeTransform.translateV;
|
|
15537
|
-
|
|
15538
|
-
if (
|
|
15906
|
+
pos += __props.layout.t;
|
|
15907
|
+
if (pos + tsl < 0 || pos + tsl > height.value) continue;
|
|
15539
15908
|
result.push({
|
|
15540
|
-
key: "minor-" +
|
|
15909
|
+
key: "minor-" + b.value,
|
|
15541
15910
|
x1: 0,
|
|
15542
15911
|
x2: width.value,
|
|
15543
|
-
y1:
|
|
15544
|
-
y2:
|
|
15545
|
-
"stroke":
|
|
15546
|
-
"stroke-width":
|
|
15912
|
+
y1: pos,
|
|
15913
|
+
y2: pos,
|
|
15914
|
+
"stroke": b.theme.grid_color_minor,
|
|
15915
|
+
"stroke-width": b.theme.grid_width_minor ?? 0,
|
|
15547
15916
|
transform: tsl ? `translate(0,${tsl})` : null,
|
|
15548
15917
|
style: { transition: __props.transition }
|
|
15549
15918
|
});
|
|
@@ -15562,15 +15931,13 @@ const _sfc_main$_ = {
|
|
|
15562
15931
|
};
|
|
15563
15932
|
}
|
|
15564
15933
|
};
|
|
15565
|
-
const _sfc_main$
|
|
15934
|
+
const _sfc_main$10 = {
|
|
15566
15935
|
__name: "CoreGridV",
|
|
15567
15936
|
props: {
|
|
15568
|
-
|
|
15569
|
-
minorBreaks: { type: Array, default: () => [] },
|
|
15937
|
+
breaks: { type: Array, default: () => [] },
|
|
15570
15938
|
coord2pos: Function,
|
|
15571
15939
|
pos2coord: Function,
|
|
15572
15940
|
layout: Object,
|
|
15573
|
-
theme: { type: Object, default: () => ({}) },
|
|
15574
15941
|
action: { type: Object, default: () => ({}) },
|
|
15575
15942
|
activeTransform: Object,
|
|
15576
15943
|
transition: String
|
|
@@ -15580,20 +15947,21 @@ const _sfc_main$Z = {
|
|
|
15580
15947
|
const height = computed(() => __props.layout.height + __props.layout.t + __props.layout.b);
|
|
15581
15948
|
const majorLines = computed(() => {
|
|
15582
15949
|
let result = [];
|
|
15583
|
-
for (let
|
|
15584
|
-
|
|
15950
|
+
for (let b of __props.breaks) {
|
|
15951
|
+
if (b.type != "major") continue;
|
|
15952
|
+
let pos = __props.coord2pos({ h: b.value }).h;
|
|
15585
15953
|
if (isNaN(pos)) continue;
|
|
15586
15954
|
let tsl = pos * (__props.activeTransform.scaleH - 1) + __props.activeTransform.translateH;
|
|
15587
|
-
|
|
15588
|
-
if (
|
|
15955
|
+
pos += __props.layout.l;
|
|
15956
|
+
if (pos + tsl < 0 || pos + tsl > width.value) continue;
|
|
15589
15957
|
result.push({
|
|
15590
|
-
key: "major-" +
|
|
15958
|
+
key: "major-" + b.value,
|
|
15591
15959
|
y1: 0,
|
|
15592
15960
|
y2: height.value,
|
|
15593
|
-
x1:
|
|
15594
|
-
x2:
|
|
15595
|
-
"stroke":
|
|
15596
|
-
"stroke-width":
|
|
15961
|
+
x1: pos,
|
|
15962
|
+
x2: pos,
|
|
15963
|
+
"stroke": b.theme.grid_color_major,
|
|
15964
|
+
"stroke-width": b.theme.grid_width_major ?? 0,
|
|
15597
15965
|
transform: tsl ? `translate(${tsl},0)` : null,
|
|
15598
15966
|
style: { transition: __props.transition }
|
|
15599
15967
|
});
|
|
@@ -15602,21 +15970,21 @@ const _sfc_main$Z = {
|
|
|
15602
15970
|
});
|
|
15603
15971
|
const minorLines = computed(() => {
|
|
15604
15972
|
let result = [];
|
|
15605
|
-
for (let
|
|
15606
|
-
if (
|
|
15607
|
-
let pos = __props.coord2pos({ h:
|
|
15973
|
+
for (let b of __props.breaks) {
|
|
15974
|
+
if (b.type != "minor") continue;
|
|
15975
|
+
let pos = __props.coord2pos({ h: b.value }).h;
|
|
15608
15976
|
if (isNaN(pos)) continue;
|
|
15609
15977
|
let tsl = pos * (__props.activeTransform.scaleH - 1) + __props.activeTransform.translateH;
|
|
15610
|
-
|
|
15611
|
-
if (
|
|
15978
|
+
pos += __props.layout.l;
|
|
15979
|
+
if (pos + tsl < 0 || pos + tsl > width.value) continue;
|
|
15612
15980
|
result.push({
|
|
15613
|
-
key: "minor-" +
|
|
15981
|
+
key: "minor-" + b.value,
|
|
15614
15982
|
y1: 0,
|
|
15615
15983
|
y2: height.value,
|
|
15616
|
-
x1:
|
|
15617
|
-
x2:
|
|
15618
|
-
"stroke":
|
|
15619
|
-
"stroke-width":
|
|
15984
|
+
x1: pos,
|
|
15985
|
+
x2: pos,
|
|
15986
|
+
"stroke": b.theme.grid_color_minor,
|
|
15987
|
+
"stroke-width": b.theme.grid_width_minor ?? 0,
|
|
15620
15988
|
transform: tsl ? `translate(${tsl},0)` : null,
|
|
15621
15989
|
style: { transition: __props.transition }
|
|
15622
15990
|
});
|
|
@@ -15635,7 +16003,7 @@ const _sfc_main$Z = {
|
|
|
15635
16003
|
};
|
|
15636
16004
|
}
|
|
15637
16005
|
};
|
|
15638
|
-
const _sfc_main
|
|
16006
|
+
const _sfc_main$$ = {
|
|
15639
16007
|
__name: "CoreCanvasBoxplot",
|
|
15640
16008
|
props: {
|
|
15641
16009
|
extendX: { type: Number, default: 0 },
|
|
@@ -15696,7 +16064,6 @@ const _sfc_main$Y = {
|
|
|
15696
16064
|
"translate-y": translateY = 0,
|
|
15697
16065
|
$raw
|
|
15698
16066
|
} of group) {
|
|
15699
|
-
if (color2 === "transparent") continue;
|
|
15700
16067
|
const { hmin: rx1, hmax: rx2, vmin: ry1, vmax: ry2 } = __props.coord2pos(x2 == null ? { ymin, ymax, xmin: Q1, xmax: Q3 } : { xmin, xmax, ymin: Q1, ymax: Q3 });
|
|
15701
16068
|
const { h: lx1, v: ly1 } = __props.coord2pos(x2 == null ? { y: y2, x: lwisker } : { x: x2, y: lwisker });
|
|
15702
16069
|
const { h: lx2, v: ly2 } = __props.coord2pos(x2 == null ? { y: y2, x: uwisker } : { x: x2, y: uwisker });
|
|
@@ -15716,36 +16083,32 @@ const _sfc_main$Y = {
|
|
|
15716
16083
|
wiskerpath2d.lineTo(uwx2 + translateX, uwy2 + translateY);
|
|
15717
16084
|
wiskerpath2d.moveTo(lwx1 + translateX, lwy1 + translateY);
|
|
15718
16085
|
wiskerpath2d.lineTo(lwx2 + translateX, lwy2 + translateY);
|
|
15719
|
-
|
|
15720
|
-
|
|
16086
|
+
const rectpath2d = new Path2D();
|
|
16087
|
+
rectpath2d.rect(rx1 + translateX, ry1 + translateY, rx2 - rx1, ry2 - ry1);
|
|
16088
|
+
_path_data.set(rectpath2d, $raw);
|
|
16089
|
+
const medianpath2d = new Path2D();
|
|
16090
|
+
medianpath2d.moveTo(mx1 + translateX, my1 + translateY);
|
|
16091
|
+
medianpath2d.lineTo(mx2 + translateX, my2 + translateY);
|
|
16092
|
+
if (color2 != null && color2 !== "none") {
|
|
15721
16093
|
ctx.strokeStyle = color2;
|
|
16094
|
+
ctx.lineWidth = linewidth;
|
|
15722
16095
|
ctx.stroke(linepath2d);
|
|
15723
16096
|
ctx.stroke(wiskerpath2d);
|
|
15724
16097
|
}
|
|
15725
|
-
const rectpath2d = new Path2D();
|
|
15726
|
-
rectpath2d.rect(rx1 + translateX, ry1 + translateY, rx2 - rx1, ry2 - ry1);
|
|
15727
16098
|
if (fill !== "none") {
|
|
15728
16099
|
ctx.fillStyle = fill;
|
|
15729
16100
|
ctx.fill(rectpath2d);
|
|
15730
16101
|
}
|
|
15731
|
-
if (color2 != null) {
|
|
15732
|
-
ctx.strokeStyle = color2;
|
|
16102
|
+
if (color2 != null && color2 !== "none") {
|
|
15733
16103
|
ctx.stroke(rectpath2d);
|
|
15734
|
-
|
|
15735
|
-
_path_data.set(rectpath2d, $raw);
|
|
15736
|
-
const medianpath2d = new Path2D();
|
|
15737
|
-
medianpath2d.moveTo(mx1 + translateX, my1 + translateY);
|
|
15738
|
-
medianpath2d.lineTo(mx2 + translateX, my2 + translateY);
|
|
15739
|
-
ctx.lineWidth = linewidth * 2;
|
|
15740
|
-
if (color2 !== "none") {
|
|
15741
|
-
ctx.strokeStyle = color2;
|
|
16104
|
+
ctx.lineWidth = linewidth * 2;
|
|
15742
16105
|
ctx.stroke(medianpath2d);
|
|
15743
16106
|
}
|
|
15744
16107
|
for (let { x: x3, y: y3, $raw: $raw2 } of outliers) {
|
|
15745
16108
|
const { h: ox, v: oy } = __props.coord2pos({ x: x3, y: y3 });
|
|
15746
16109
|
const outlierpath2d = new Path2D();
|
|
15747
16110
|
outlierpath2d.arc(ox + translateX, oy + translateY, 2, 0, Math.PI * 2);
|
|
15748
|
-
if (
|
|
16111
|
+
if (color2 != null && color2 !== "none") {
|
|
15749
16112
|
ctx.fillStyle = color2;
|
|
15750
16113
|
ctx.fill(outlierpath2d);
|
|
15751
16114
|
}
|
|
@@ -15782,7 +16145,7 @@ const _sfc_main$Y = {
|
|
|
15782
16145
|
};
|
|
15783
16146
|
}
|
|
15784
16147
|
};
|
|
15785
|
-
const _sfc_main$
|
|
16148
|
+
const _sfc_main$_ = {
|
|
15786
16149
|
__name: "CoreCanvasCurve",
|
|
15787
16150
|
props: {
|
|
15788
16151
|
extendX: { type: Number, default: 0 },
|
|
@@ -15819,8 +16182,8 @@ const _sfc_main$X = {
|
|
|
15819
16182
|
for (const group of __props.data) {
|
|
15820
16183
|
for (let {
|
|
15821
16184
|
points,
|
|
15822
|
-
fill
|
|
15823
|
-
color: color2
|
|
16185
|
+
fill,
|
|
16186
|
+
color: color2,
|
|
15824
16187
|
linewidth,
|
|
15825
16188
|
linetype,
|
|
15826
16189
|
alpha: alpha2,
|
|
@@ -15847,7 +16210,7 @@ const _sfc_main$X = {
|
|
|
15847
16210
|
ctx.fillStyle = fill;
|
|
15848
16211
|
ctx.fill(path2d);
|
|
15849
16212
|
}
|
|
15850
|
-
if (color2 != null) {
|
|
16213
|
+
if (color2 != null && color2 !== "none") {
|
|
15851
16214
|
ctx.strokeStyle = color2;
|
|
15852
16215
|
ctx.stroke(path2d);
|
|
15853
16216
|
}
|
|
@@ -15879,8 +16242,11 @@ const _sfc_main$X = {
|
|
|
15879
16242
|
});
|
|
15880
16243
|
const interpolators = {
|
|
15881
16244
|
cardinal,
|
|
16245
|
+
cardinalClosed,
|
|
15882
16246
|
catmullRom,
|
|
16247
|
+
catmullRomClosed,
|
|
15883
16248
|
linear: curveLinear,
|
|
16249
|
+
linearClosed,
|
|
15884
16250
|
natural: natural$1
|
|
15885
16251
|
};
|
|
15886
16252
|
return (_ctx, _cache) => {
|
|
@@ -15888,7 +16254,7 @@ const _sfc_main$X = {
|
|
|
15888
16254
|
};
|
|
15889
16255
|
}
|
|
15890
16256
|
};
|
|
15891
|
-
const _sfc_main$
|
|
16257
|
+
const _sfc_main$Z = {
|
|
15892
16258
|
__name: "CoreCanvasEllipse",
|
|
15893
16259
|
props: {
|
|
15894
16260
|
extendX: { type: Number, default: 0 },
|
|
@@ -15929,8 +16295,8 @@ const _sfc_main$W = {
|
|
|
15929
16295
|
A,
|
|
15930
16296
|
B,
|
|
15931
16297
|
C,
|
|
15932
|
-
fill
|
|
15933
|
-
color: color2
|
|
16298
|
+
fill,
|
|
16299
|
+
color: color2,
|
|
15934
16300
|
linewidth,
|
|
15935
16301
|
linetype,
|
|
15936
16302
|
alpha: alpha2,
|
|
@@ -15958,7 +16324,7 @@ const _sfc_main$W = {
|
|
|
15958
16324
|
ctx.fillStyle = fill;
|
|
15959
16325
|
ctx.fill(path2d);
|
|
15960
16326
|
}
|
|
15961
|
-
if (color2 != null) {
|
|
16327
|
+
if (color2 != null && color2 !== "none") {
|
|
15962
16328
|
ctx.strokeStyle = color2;
|
|
15963
16329
|
ctx.stroke(path2d);
|
|
15964
16330
|
}
|
|
@@ -15993,7 +16359,7 @@ const _sfc_main$W = {
|
|
|
15993
16359
|
};
|
|
15994
16360
|
}
|
|
15995
16361
|
};
|
|
15996
|
-
const _sfc_main$
|
|
16362
|
+
const _sfc_main$Y = {
|
|
15997
16363
|
__name: "CoreCanvasLine",
|
|
15998
16364
|
props: {
|
|
15999
16365
|
extendX: { type: Number, default: 0 },
|
|
@@ -16033,7 +16399,7 @@ const _sfc_main$V = {
|
|
|
16033
16399
|
y: y2,
|
|
16034
16400
|
xend,
|
|
16035
16401
|
yend,
|
|
16036
|
-
color: color2,
|
|
16402
|
+
color: color2 = "black",
|
|
16037
16403
|
linewidth,
|
|
16038
16404
|
alpha: alpha2,
|
|
16039
16405
|
linetype,
|
|
@@ -16041,7 +16407,6 @@ const _sfc_main$V = {
|
|
|
16041
16407
|
"translate-y": translateY = 0,
|
|
16042
16408
|
$raw
|
|
16043
16409
|
} of group) {
|
|
16044
|
-
if (color2 === "transparent") continue;
|
|
16045
16410
|
const { h: x1, v: y1 } = __props.coord2pos({ x: x2, y: y2 });
|
|
16046
16411
|
const { h: x22, v: y22 } = __props.coord2pos({ x: xend, y: yend });
|
|
16047
16412
|
const path2d = new Path2D();
|
|
@@ -16051,7 +16416,7 @@ const _sfc_main$V = {
|
|
|
16051
16416
|
ctx.lineWidth = linewidth;
|
|
16052
16417
|
ctx.globalAlpha = alpha2;
|
|
16053
16418
|
ctx.setLineDash(parseLinetype(linetype));
|
|
16054
|
-
if (color2 !== "none") {
|
|
16419
|
+
if (color2 != null && color2 !== "none") {
|
|
16055
16420
|
ctx.strokeStyle = color2;
|
|
16056
16421
|
ctx.stroke(path2d);
|
|
16057
16422
|
}
|
|
@@ -16086,7 +16451,7 @@ const _sfc_main$V = {
|
|
|
16086
16451
|
};
|
|
16087
16452
|
}
|
|
16088
16453
|
};
|
|
16089
|
-
const _sfc_main$
|
|
16454
|
+
const _sfc_main$X = {
|
|
16090
16455
|
__name: "CoreCanvasPoint",
|
|
16091
16456
|
props: {
|
|
16092
16457
|
extendX: { type: Number, default: 0 },
|
|
@@ -16106,7 +16471,8 @@ const _sfc_main$U = {
|
|
|
16106
16471
|
diamond: (s) => `M0-${s * 0.707}L${s * 0.707},0L0,${s * 0.707}L-${s * 0.707},0Z`,
|
|
16107
16472
|
square: (s) => `M-${s / 2}-${s / 2}H${s / 2}V${s / 2}H-${s / 2}Z`,
|
|
16108
16473
|
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`,
|
|
16109
|
-
|
|
16474
|
+
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`,
|
|
16475
|
+
arrowhead: (s) => `M0,0L${s},${-s * 0.38}V${s * 0.38}Z`
|
|
16110
16476
|
};
|
|
16111
16477
|
const vBind = computed(() => ({
|
|
16112
16478
|
width: __props.layout.fullWidth * (1 + __props.extendX * 2),
|
|
@@ -16132,7 +16498,7 @@ const _sfc_main$U = {
|
|
|
16132
16498
|
x: x2,
|
|
16133
16499
|
y: y2,
|
|
16134
16500
|
size = 6,
|
|
16135
|
-
shape,
|
|
16501
|
+
shape: shape2,
|
|
16136
16502
|
color: color2,
|
|
16137
16503
|
stroke,
|
|
16138
16504
|
linewidth,
|
|
@@ -16140,19 +16506,25 @@ const _sfc_main$U = {
|
|
|
16140
16506
|
alpha: alpha2,
|
|
16141
16507
|
"translate-x": translateX = 0,
|
|
16142
16508
|
"translate-y": translateY = 0,
|
|
16509
|
+
angle: angle2 = 0,
|
|
16143
16510
|
$raw
|
|
16144
16511
|
} of group) {
|
|
16145
16512
|
const { h: cx, v: cy } = __props.coord2pos({ x: x2, y: y2 });
|
|
16513
|
+
if (typeof angle2 == "object") {
|
|
16514
|
+
let { dx = 0, dy = 0 } = angle2;
|
|
16515
|
+
let { h, v } = __props.coord2pos({ x: x2 + dx, y: y2 + dy });
|
|
16516
|
+
angle2 = Math.atan2(v - cy, h - cx) * 180 / Math.PI;
|
|
16517
|
+
}
|
|
16146
16518
|
const path2d = new Path2D();
|
|
16147
|
-
if (String(
|
|
16519
|
+
if (String(shape2).startsWith("path:")) {
|
|
16148
16520
|
path2d.addPath(
|
|
16149
|
-
new Path2D(
|
|
16150
|
-
new DOMMatrix().translateSelf(cx + translateX, cy + translateY)
|
|
16521
|
+
new Path2D(shape2.slice(5)),
|
|
16522
|
+
new DOMMatrix().translateSelf(cx + translateX, cy + translateY).rotate(angle2)
|
|
16151
16523
|
);
|
|
16152
|
-
} else if (
|
|
16524
|
+
} else if (shape2 in paths) {
|
|
16153
16525
|
path2d.addPath(
|
|
16154
|
-
new Path2D(paths[
|
|
16155
|
-
new DOMMatrix().translate(cx + translateX, cy + translateY)
|
|
16526
|
+
new Path2D(paths[shape2](size)),
|
|
16527
|
+
new DOMMatrix().translate(cx + translateX, cy + translateY).rotate(angle2)
|
|
16156
16528
|
);
|
|
16157
16529
|
} else {
|
|
16158
16530
|
path2d.arc(cx + translateX, cy + translateY, size / 2, 0, Math.PI * 2);
|
|
@@ -16165,7 +16537,7 @@ const _sfc_main$U = {
|
|
|
16165
16537
|
ctx.fillStyle = color2;
|
|
16166
16538
|
ctx.fill(path2d);
|
|
16167
16539
|
}
|
|
16168
|
-
if (stroke != null) {
|
|
16540
|
+
if (stroke != null && stroke !== "none") {
|
|
16169
16541
|
ctx.strokeStyle = stroke;
|
|
16170
16542
|
ctx.setLineDash(parseLinetype(linetype));
|
|
16171
16543
|
ctx.stroke(path2d);
|
|
@@ -16201,7 +16573,7 @@ const _sfc_main$U = {
|
|
|
16201
16573
|
};
|
|
16202
16574
|
}
|
|
16203
16575
|
};
|
|
16204
|
-
const _sfc_main$
|
|
16576
|
+
const _sfc_main$W = {
|
|
16205
16577
|
__name: "CoreCanvasPolygon",
|
|
16206
16578
|
props: {
|
|
16207
16579
|
extendX: { type: Number, default: 0 },
|
|
@@ -16263,7 +16635,7 @@ const _sfc_main$T = {
|
|
|
16263
16635
|
ctx.fillStyle = fill;
|
|
16264
16636
|
ctx.fill(path2d);
|
|
16265
16637
|
}
|
|
16266
|
-
if (color2 != null) {
|
|
16638
|
+
if (color2 != null && color2 !== "none") {
|
|
16267
16639
|
ctx.strokeStyle = color2;
|
|
16268
16640
|
ctx.stroke(path2d);
|
|
16269
16641
|
}
|
|
@@ -16298,7 +16670,7 @@ const _sfc_main$T = {
|
|
|
16298
16670
|
};
|
|
16299
16671
|
}
|
|
16300
16672
|
};
|
|
16301
|
-
const _sfc_main$
|
|
16673
|
+
const _sfc_main$V = {
|
|
16302
16674
|
__name: "CoreCanvasRect",
|
|
16303
16675
|
props: {
|
|
16304
16676
|
extendX: { type: Number, default: 0 },
|
|
@@ -16358,7 +16730,7 @@ const _sfc_main$S = {
|
|
|
16358
16730
|
ctx.fillStyle = fill;
|
|
16359
16731
|
ctx.fill(path2d);
|
|
16360
16732
|
}
|
|
16361
|
-
if (color2 != null) {
|
|
16733
|
+
if (color2 !== "none" && color2 != null) {
|
|
16362
16734
|
ctx.strokeStyle = color2;
|
|
16363
16735
|
ctx.stroke(path2d);
|
|
16364
16736
|
}
|
|
@@ -16393,7 +16765,7 @@ const _sfc_main$S = {
|
|
|
16393
16765
|
};
|
|
16394
16766
|
}
|
|
16395
16767
|
};
|
|
16396
|
-
const _sfc_main$
|
|
16768
|
+
const _sfc_main$U = {
|
|
16397
16769
|
__name: "CoreCanvasText",
|
|
16398
16770
|
props: {
|
|
16399
16771
|
extendX: { type: Number, default: 0 },
|
|
@@ -16467,6 +16839,11 @@ const _sfc_main$R = {
|
|
|
16467
16839
|
} else if (textLength != null) {
|
|
16468
16840
|
width = textLength;
|
|
16469
16841
|
}
|
|
16842
|
+
if (typeof angle2 == "object") {
|
|
16843
|
+
let { dx = 0, dy = 0 } = angle2;
|
|
16844
|
+
let { h, v } = __props.coord2pos({ x: x2 + dx, y: y2 + dy });
|
|
16845
|
+
angle2 = Math.atan2(v - ty, h - tx) * 180 / Math.PI;
|
|
16846
|
+
}
|
|
16470
16847
|
if (dockX != null || dockY != null) {
|
|
16471
16848
|
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);
|
|
16472
16849
|
if (isNaN(alnX)) alnX = 0.5;
|
|
@@ -16487,7 +16864,7 @@ const _sfc_main$R = {
|
|
|
16487
16864
|
ctx.fillStyle = color2;
|
|
16488
16865
|
ctx.fillText(label, 0, 0);
|
|
16489
16866
|
}
|
|
16490
|
-
if (stroke != null) {
|
|
16867
|
+
if (stroke != null && stroke !== "none") {
|
|
16491
16868
|
ctx.strokeStyle = stroke;
|
|
16492
16869
|
ctx.strokeText(label, 0, 0);
|
|
16493
16870
|
}
|
|
@@ -16523,7 +16900,7 @@ const _sfc_main$R = {
|
|
|
16523
16900
|
};
|
|
16524
16901
|
}
|
|
16525
16902
|
};
|
|
16526
|
-
const _sfc_main$
|
|
16903
|
+
const _sfc_main$T = {
|
|
16527
16904
|
__name: "CoreCanvasTextsegment",
|
|
16528
16905
|
props: {
|
|
16529
16906
|
extendX: { type: Number, default: 0 },
|
|
@@ -16624,7 +17001,7 @@ const _sfc_main$Q = {
|
|
|
16624
17001
|
ctx.fillStyle = color2;
|
|
16625
17002
|
ctx.fillText(text2, 0, 0);
|
|
16626
17003
|
}
|
|
16627
|
-
if (stroke != null) {
|
|
17004
|
+
if (stroke != null && stroke !== "none") {
|
|
16628
17005
|
ctx.strokeStyle = stroke;
|
|
16629
17006
|
ctx.strokeText(text2, 0, 0);
|
|
16630
17007
|
}
|
|
@@ -16642,7 +17019,7 @@ const _sfc_main$Q = {
|
|
|
16642
17019
|
ctx.fillStyle = color2;
|
|
16643
17020
|
ctx.fillText(text2, 0, 0);
|
|
16644
17021
|
}
|
|
16645
|
-
if (stroke != null) {
|
|
17022
|
+
if (stroke != null && stroke !== "none") {
|
|
16646
17023
|
ctx.strokeStyle = stroke;
|
|
16647
17024
|
ctx.strokeText(text2, 0, 0);
|
|
16648
17025
|
}
|
|
@@ -16697,19 +17074,20 @@ const _sfc_main$Q = {
|
|
|
16697
17074
|
};
|
|
16698
17075
|
const canvas = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
16699
17076
|
__proto__: null,
|
|
16700
|
-
boxplot: _sfc_main
|
|
16701
|
-
curve: _sfc_main$
|
|
16702
|
-
ellipse: _sfc_main$
|
|
16703
|
-
line: _sfc_main$
|
|
16704
|
-
point: _sfc_main$
|
|
16705
|
-
polygon: _sfc_main$
|
|
16706
|
-
rect: _sfc_main$
|
|
16707
|
-
|
|
16708
|
-
|
|
16709
|
-
|
|
16710
|
-
|
|
17077
|
+
boxplot: _sfc_main$$,
|
|
17078
|
+
curve: _sfc_main$_,
|
|
17079
|
+
ellipse: _sfc_main$Z,
|
|
17080
|
+
line: _sfc_main$Y,
|
|
17081
|
+
point: _sfc_main$X,
|
|
17082
|
+
polygon: _sfc_main$W,
|
|
17083
|
+
rect: _sfc_main$V,
|
|
17084
|
+
shape: _sfc_main$_,
|
|
17085
|
+
stick: _sfc_main$Y,
|
|
17086
|
+
text: _sfc_main$U,
|
|
17087
|
+
textsegment: _sfc_main$T,
|
|
17088
|
+
tile: _sfc_main$V
|
|
16711
17089
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
16712
|
-
const _sfc_main$
|
|
17090
|
+
const _sfc_main$S = {
|
|
16713
17091
|
__name: "CoreSvgBlank",
|
|
16714
17092
|
props: {
|
|
16715
17093
|
extendX: { type: Number, default: 0 },
|
|
@@ -16729,7 +17107,7 @@ const _sfc_main$P = {
|
|
|
16729
17107
|
}
|
|
16730
17108
|
};
|
|
16731
17109
|
const _hoisted_1$a = { key: 0 };
|
|
16732
|
-
const _sfc_main$
|
|
17110
|
+
const _sfc_main$R = {
|
|
16733
17111
|
__name: "CoreTile",
|
|
16734
17112
|
props: {
|
|
16735
17113
|
x: { type: Number, default: 0 },
|
|
@@ -16771,7 +17149,7 @@ const _sfc_main$O = {
|
|
|
16771
17149
|
};
|
|
16772
17150
|
const _hoisted_1$9 = { key: 0 };
|
|
16773
17151
|
const _hoisted_2$4 = { key: 0 };
|
|
16774
|
-
const _sfc_main$
|
|
17152
|
+
const _sfc_main$Q = {
|
|
16775
17153
|
__name: "CorePoint",
|
|
16776
17154
|
props: {
|
|
16777
17155
|
x: { type: Number, default: 0 },
|
|
@@ -16780,7 +17158,7 @@ const _sfc_main$N = {
|
|
|
16780
17158
|
size: { type: Number, default: 6 },
|
|
16781
17159
|
color: String,
|
|
16782
17160
|
stroke: String,
|
|
16783
|
-
linewidth: Number,
|
|
17161
|
+
linewidth: { type: Number, default: 1 },
|
|
16784
17162
|
linetype: String,
|
|
16785
17163
|
alpha: { type: Number, default: 1 },
|
|
16786
17164
|
title: String,
|
|
@@ -16795,7 +17173,8 @@ const _sfc_main$N = {
|
|
|
16795
17173
|
triangle: "M0-0.667L0.577,0.333L-0.577,0.333Z",
|
|
16796
17174
|
diamond: "M0-0.707L0.707,0L0,0.707L-0.707,0Z",
|
|
16797
17175
|
plus: "M-0.1-0.5V-0.1H-0.5V0.1H-0.1V0.5H0.1V0.1H0.5V-0.1H0.1V-0.5H-0.1Z",
|
|
16798
|
-
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"
|
|
17176
|
+
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",
|
|
17177
|
+
arrowhead: "M0,0L1,0.38V-0.38Z"
|
|
16799
17178
|
};
|
|
16800
17179
|
const binds = computed(() => {
|
|
16801
17180
|
let d = __props.shape?.startsWith?.("path:") ? __props.shape?.slice?.(5) : paths[__props.shape];
|
|
@@ -16804,7 +17183,6 @@ const _sfc_main$N = {
|
|
|
16804
17183
|
fill: __props.color || null,
|
|
16805
17184
|
"fill-opacity": __props.alpha == 1 ? null : __props.alpha,
|
|
16806
17185
|
stroke: __props.stroke || null,
|
|
16807
|
-
"stroke-width": __props.linewidth,
|
|
16808
17186
|
"stroke-opacity": __props.alpha == 1 ? null : __props.alpha,
|
|
16809
17187
|
"stroke-dasharray": parseLinetype(__props.linetype).join(" ") || null
|
|
16810
17188
|
};
|
|
@@ -16813,10 +17191,10 @@ const _sfc_main$N = {
|
|
|
16813
17191
|
if (tslX !== 0 || tslY !== 0) transform.push(`translate(${tslX},${tslY})`);
|
|
16814
17192
|
if (__props.size != 1) transform.push(`scale(${__props.size})`);
|
|
16815
17193
|
if (__props.angle) transform.push(`rotate(${__props.angle})`);
|
|
16816
|
-
Object.assign(result, { d, transform: transform.join(" ") || null });
|
|
17194
|
+
Object.assign(result, { d, transform: transform.join(" ") || null, "stroke-width": __props.linewidth / __props.size });
|
|
16817
17195
|
} else {
|
|
16818
17196
|
let transform = __props.translateX || __props.translateY ? `translate(${__props.translateX}, ${__props.translateY})` : null;
|
|
16819
|
-
Object.assign(result, { cx: __props.x, cy: __props.y, r: __props.size / 2, transform });
|
|
17197
|
+
Object.assign(result, { cx: __props.x, cy: __props.y, r: __props.size / 2, transform, "stroke-width": __props.linewidth });
|
|
16820
17198
|
}
|
|
16821
17199
|
return result;
|
|
16822
17200
|
});
|
|
@@ -16830,7 +17208,7 @@ const _sfc_main$N = {
|
|
|
16830
17208
|
}
|
|
16831
17209
|
};
|
|
16832
17210
|
const _hoisted_1$8 = { key: 0 };
|
|
16833
|
-
const _sfc_main$
|
|
17211
|
+
const _sfc_main$P = {
|
|
16834
17212
|
__name: "CoreLine",
|
|
16835
17213
|
props: {
|
|
16836
17214
|
x1: { type: Number, default: 0 },
|
|
@@ -16868,7 +17246,7 @@ const _sfc_main$M = {
|
|
|
16868
17246
|
};
|
|
16869
17247
|
}
|
|
16870
17248
|
};
|
|
16871
|
-
const _sfc_main$
|
|
17249
|
+
const _sfc_main$O = {
|
|
16872
17250
|
__name: "CoreSvgBoxplot",
|
|
16873
17251
|
props: {
|
|
16874
17252
|
extendX: { type: Number, default: 0 },
|
|
@@ -17031,18 +17409,18 @@ const _sfc_main$L = {
|
|
|
17031
17409
|
return openBlock(), createElementBlock("g", mergeProps({ ref_for: true }, { class: __props.groupClass, style: __props.groupStyle }), [
|
|
17032
17410
|
(openBlock(true), createElementBlock(Fragment, null, renderList(group, ([vbinds, von]) => {
|
|
17033
17411
|
return openBlock(), createElementBlock("g", null, [
|
|
17034
|
-
createVNode(_sfc_main$
|
|
17412
|
+
createVNode(_sfc_main$P, mergeProps({ ref_for: true }, vbinds.line), null, 16),
|
|
17035
17413
|
_cache[0] || (_cache[0] = createTextVNode()),
|
|
17036
|
-
createVNode(_sfc_main$
|
|
17414
|
+
createVNode(_sfc_main$R, mergeProps({ ref_for: true }, vbinds.rect, toHandlers(von)), null, 16),
|
|
17037
17415
|
_cache[1] || (_cache[1] = createTextVNode()),
|
|
17038
|
-
createVNode(_sfc_main$
|
|
17416
|
+
createVNode(_sfc_main$P, mergeProps({ ref_for: true }, vbinds.midline), null, 16),
|
|
17039
17417
|
_cache[2] || (_cache[2] = createTextVNode()),
|
|
17040
|
-
createVNode(_sfc_main$
|
|
17418
|
+
createVNode(_sfc_main$P, mergeProps({ ref_for: true }, vbinds.uwisker), null, 16),
|
|
17041
17419
|
_cache[3] || (_cache[3] = createTextVNode()),
|
|
17042
|
-
createVNode(_sfc_main$
|
|
17420
|
+
createVNode(_sfc_main$P, mergeProps({ ref_for: true }, vbinds.lwisker), null, 16),
|
|
17043
17421
|
_cache[4] || (_cache[4] = createTextVNode()),
|
|
17044
17422
|
(openBlock(true), createElementBlock(Fragment, null, renderList(vbinds.outliers, ([vbind, von2]) => {
|
|
17045
|
-
return openBlock(), createBlock(_sfc_main$
|
|
17423
|
+
return openBlock(), createBlock(_sfc_main$Q, mergeProps({ ref_for: true }, vbind, toHandlers(von2)), null, 16);
|
|
17046
17424
|
}), 256))
|
|
17047
17425
|
]);
|
|
17048
17426
|
}), 256))
|
|
@@ -17053,14 +17431,13 @@ const _sfc_main$L = {
|
|
|
17053
17431
|
}
|
|
17054
17432
|
};
|
|
17055
17433
|
const _hoisted_1$7 = { key: 0 };
|
|
17056
|
-
const _sfc_main$
|
|
17434
|
+
const _sfc_main$N = {
|
|
17057
17435
|
__name: "CoreCurve",
|
|
17058
17436
|
props: {
|
|
17059
17437
|
points: { type: Array, default: () => [] },
|
|
17060
17438
|
interpolate: { default: "natural" },
|
|
17061
|
-
fill:
|
|
17439
|
+
fill: String,
|
|
17062
17440
|
color: String,
|
|
17063
|
-
stroke: String,
|
|
17064
17441
|
linewidth: Number,
|
|
17065
17442
|
linetype: String,
|
|
17066
17443
|
alpha: { type: Number, default: 1 },
|
|
@@ -17085,8 +17462,11 @@ const _sfc_main$K = {
|
|
|
17085
17462
|
});
|
|
17086
17463
|
const interpolators = {
|
|
17087
17464
|
cardinal,
|
|
17465
|
+
cardinalClosed,
|
|
17088
17466
|
catmullRom,
|
|
17467
|
+
catmullRomClosed,
|
|
17089
17468
|
linear: curveLinear,
|
|
17469
|
+
linearClosed,
|
|
17090
17470
|
natural: natural$1
|
|
17091
17471
|
};
|
|
17092
17472
|
return (_ctx, _cache) => {
|
|
@@ -17096,7 +17476,7 @@ const _sfc_main$K = {
|
|
|
17096
17476
|
};
|
|
17097
17477
|
}
|
|
17098
17478
|
};
|
|
17099
|
-
const _sfc_main$
|
|
17479
|
+
const _sfc_main$M = {
|
|
17100
17480
|
__name: "CoreSvgCurve",
|
|
17101
17481
|
props: {
|
|
17102
17482
|
extendX: { type: Number, default: 0 },
|
|
@@ -17116,14 +17496,16 @@ const _sfc_main$J = {
|
|
|
17116
17496
|
let xlim_min = -__props.layout.fullWidth * __props.extendX - __props.layout.l, xlim_max = __props.layout.fullWidth * (1 + __props.extendX) - __props.layout.l, ylim_min = -__props.layout.fullHeight * __props.extendY - __props.layout.t, ylim_max = __props.layout.fullHeight * (1 + __props.extendY) - __props.layout.t;
|
|
17117
17497
|
return __props.data.map((group) => group.map(({
|
|
17118
17498
|
points,
|
|
17119
|
-
fill
|
|
17120
|
-
color: color2
|
|
17499
|
+
fill,
|
|
17500
|
+
color: color2,
|
|
17121
17501
|
linewidth,
|
|
17122
17502
|
linetype,
|
|
17123
17503
|
alpha: alpha2,
|
|
17124
17504
|
title,
|
|
17125
17505
|
"translate-x": translateX = 0,
|
|
17126
17506
|
"translate-y": translateY = 0,
|
|
17507
|
+
"marker-start": markerStart,
|
|
17508
|
+
"marker-end": markerEnd,
|
|
17127
17509
|
class: className,
|
|
17128
17510
|
style,
|
|
17129
17511
|
$raw,
|
|
@@ -17141,6 +17523,8 @@ const _sfc_main$J = {
|
|
|
17141
17523
|
title,
|
|
17142
17524
|
translateX,
|
|
17143
17525
|
translateY,
|
|
17526
|
+
"marker-start": markerStart,
|
|
17527
|
+
"marker-end": markerEnd,
|
|
17144
17528
|
class: className,
|
|
17145
17529
|
style,
|
|
17146
17530
|
interpolate: interpolate2
|
|
@@ -17156,7 +17540,7 @@ const _sfc_main$J = {
|
|
|
17156
17540
|
(openBlock(true), createElementBlock(Fragment, null, renderList(binds.value, (group) => {
|
|
17157
17541
|
return openBlock(), createElementBlock("g", mergeProps({ ref_for: true }, { class: __props.groupClass, style: __props.groupStyle }), [
|
|
17158
17542
|
(openBlock(true), createElementBlock(Fragment, null, renderList(group, ([vbind, von]) => {
|
|
17159
|
-
return openBlock(), createBlock(_sfc_main$
|
|
17543
|
+
return openBlock(), createBlock(_sfc_main$N, mergeProps({ ref_for: true }, vbind, toHandlers(von)), null, 16);
|
|
17160
17544
|
}), 256))
|
|
17161
17545
|
], 16);
|
|
17162
17546
|
}), 256))
|
|
@@ -17165,7 +17549,7 @@ const _sfc_main$J = {
|
|
|
17165
17549
|
}
|
|
17166
17550
|
};
|
|
17167
17551
|
const _hoisted_1$6 = { key: 0 };
|
|
17168
|
-
const _sfc_main$
|
|
17552
|
+
const _sfc_main$L = {
|
|
17169
17553
|
__name: "CoreEllipse",
|
|
17170
17554
|
props: {
|
|
17171
17555
|
cx: { type: Number, default: 0 },
|
|
@@ -17210,7 +17594,7 @@ const _sfc_main$I = {
|
|
|
17210
17594
|
};
|
|
17211
17595
|
}
|
|
17212
17596
|
};
|
|
17213
|
-
const _sfc_main$
|
|
17597
|
+
const _sfc_main$K = {
|
|
17214
17598
|
__name: "CoreSvgEllipse",
|
|
17215
17599
|
props: {
|
|
17216
17600
|
extendX: { type: Number, default: 0 },
|
|
@@ -17234,8 +17618,8 @@ const _sfc_main$H = {
|
|
|
17234
17618
|
A,
|
|
17235
17619
|
B,
|
|
17236
17620
|
C,
|
|
17237
|
-
fill
|
|
17238
|
-
color: color2
|
|
17621
|
+
fill,
|
|
17622
|
+
color: color2,
|
|
17239
17623
|
linewidth,
|
|
17240
17624
|
linetype,
|
|
17241
17625
|
alpha: alpha2,
|
|
@@ -17284,7 +17668,7 @@ const _sfc_main$H = {
|
|
|
17284
17668
|
(openBlock(true), createElementBlock(Fragment, null, renderList(binds.value, (group) => {
|
|
17285
17669
|
return openBlock(), createElementBlock("g", mergeProps({ ref_for: true }, { class: __props.groupClass, style: __props.groupStyle }), [
|
|
17286
17670
|
(openBlock(true), createElementBlock(Fragment, null, renderList(group, ([vbind, von]) => {
|
|
17287
|
-
return openBlock(), createBlock(_sfc_main$
|
|
17671
|
+
return openBlock(), createBlock(_sfc_main$L, mergeProps({ ref_for: true }, vbind, toHandlers(von)), null, 16);
|
|
17288
17672
|
}), 256))
|
|
17289
17673
|
], 16);
|
|
17290
17674
|
}), 256))
|
|
@@ -17292,7 +17676,7 @@ const _sfc_main$H = {
|
|
|
17292
17676
|
};
|
|
17293
17677
|
}
|
|
17294
17678
|
};
|
|
17295
|
-
const _sfc_main$
|
|
17679
|
+
const _sfc_main$J = {
|
|
17296
17680
|
__name: "CoreSvgLine",
|
|
17297
17681
|
props: {
|
|
17298
17682
|
extendX: { type: Number, default: 0 },
|
|
@@ -17322,6 +17706,8 @@ const _sfc_main$G = {
|
|
|
17322
17706
|
title,
|
|
17323
17707
|
"translate-x": translateX = 0,
|
|
17324
17708
|
"translate-y": translateY = 0,
|
|
17709
|
+
"marker-start": markerStart,
|
|
17710
|
+
"marker-end": markerEnd,
|
|
17325
17711
|
class: className,
|
|
17326
17712
|
style,
|
|
17327
17713
|
$raw
|
|
@@ -17341,6 +17727,8 @@ const _sfc_main$G = {
|
|
|
17341
17727
|
title,
|
|
17342
17728
|
translateX,
|
|
17343
17729
|
translateY,
|
|
17730
|
+
"marker-start": markerStart,
|
|
17731
|
+
"marker-end": markerEnd,
|
|
17344
17732
|
class: className,
|
|
17345
17733
|
style
|
|
17346
17734
|
};
|
|
@@ -17355,7 +17743,7 @@ const _sfc_main$G = {
|
|
|
17355
17743
|
(openBlock(true), createElementBlock(Fragment, null, renderList(binds.value, (group) => {
|
|
17356
17744
|
return openBlock(), createElementBlock("g", mergeProps({ ref_for: true }, { class: __props.groupClass, style: __props.groupStyle }), [
|
|
17357
17745
|
(openBlock(true), createElementBlock(Fragment, null, renderList(group, ([vbind, von]) => {
|
|
17358
|
-
return openBlock(), createBlock(_sfc_main$
|
|
17746
|
+
return openBlock(), createBlock(_sfc_main$P, mergeProps({ ref_for: true }, vbind, toHandlers(von)), null, 16);
|
|
17359
17747
|
}), 256))
|
|
17360
17748
|
], 16);
|
|
17361
17749
|
}), 256))
|
|
@@ -17363,7 +17751,7 @@ const _sfc_main$G = {
|
|
|
17363
17751
|
};
|
|
17364
17752
|
}
|
|
17365
17753
|
};
|
|
17366
|
-
const _sfc_main$
|
|
17754
|
+
const _sfc_main$I = {
|
|
17367
17755
|
__name: "CoreSvgMarkdown",
|
|
17368
17756
|
props: {
|
|
17369
17757
|
extendX: { type: Number, default: 0 },
|
|
@@ -17414,6 +17802,11 @@ const _sfc_main$F = {
|
|
|
17414
17802
|
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 });
|
|
17415
17803
|
textLength = Math.hypot(h1 - h2 || 0, v1 - v2 || 0);
|
|
17416
17804
|
}
|
|
17805
|
+
if (typeof angle2 == "object") {
|
|
17806
|
+
let { dx = 0, dy = 0 } = angle2;
|
|
17807
|
+
let { h, v } = __props.coord2pos({ x: x2 + dx, y: y2 + dy });
|
|
17808
|
+
angle2 = Math.atan2(v - ty, h - tx) * 180 / Math.PI;
|
|
17809
|
+
}
|
|
17417
17810
|
let vbind = {
|
|
17418
17811
|
x: tx,
|
|
17419
17812
|
y: ty,
|
|
@@ -17449,7 +17842,7 @@ const _sfc_main$F = {
|
|
|
17449
17842
|
(openBlock(true), createElementBlock(Fragment, null, renderList(binds.value, (group) => {
|
|
17450
17843
|
return openBlock(), createElementBlock("g", mergeProps({ ref_for: true }, { class: __props.groupClass, style: __props.groupStyle }), [
|
|
17451
17844
|
(openBlock(true), createElementBlock(Fragment, null, renderList(group, ([vbind, von]) => {
|
|
17452
|
-
return openBlock(), createBlock(_sfc_main$
|
|
17845
|
+
return openBlock(), createBlock(_sfc_main$16, mergeProps({ ref_for: true }, vbind, toHandlers(von)), null, 16);
|
|
17453
17846
|
}), 256))
|
|
17454
17847
|
], 16);
|
|
17455
17848
|
}), 256))
|
|
@@ -17457,7 +17850,7 @@ const _sfc_main$F = {
|
|
|
17457
17850
|
};
|
|
17458
17851
|
}
|
|
17459
17852
|
};
|
|
17460
|
-
const _sfc_main$
|
|
17853
|
+
const _sfc_main$H = {
|
|
17461
17854
|
__name: "CoreSvgMarkdownsegment",
|
|
17462
17855
|
props: {
|
|
17463
17856
|
extendX: { type: Number, default: 0 },
|
|
@@ -17570,7 +17963,7 @@ const _sfc_main$E = {
|
|
|
17570
17963
|
(openBlock(true), createElementBlock(Fragment, null, renderList(binds.value, (group) => {
|
|
17571
17964
|
return openBlock(), createElementBlock("g", mergeProps({ ref_for: true }, { class: __props.groupClass, style: __props.groupStyle }), [
|
|
17572
17965
|
(openBlock(true), createElementBlock(Fragment, null, renderList(group, ([vbind, von]) => {
|
|
17573
|
-
return openBlock(), createBlock(_sfc_main$
|
|
17966
|
+
return openBlock(), createBlock(_sfc_main$16, mergeProps({ ref_for: true }, vbind, toHandlers(von)), null, 16);
|
|
17574
17967
|
}), 256))
|
|
17575
17968
|
], 16);
|
|
17576
17969
|
}), 256))
|
|
@@ -17578,7 +17971,7 @@ const _sfc_main$E = {
|
|
|
17578
17971
|
};
|
|
17579
17972
|
}
|
|
17580
17973
|
};
|
|
17581
|
-
const _sfc_main$
|
|
17974
|
+
const _sfc_main$G = {
|
|
17582
17975
|
__name: "CoreSvgPoint",
|
|
17583
17976
|
props: {
|
|
17584
17977
|
extendX: { type: Number, default: 0 },
|
|
@@ -17599,7 +17992,7 @@ const _sfc_main$D = {
|
|
|
17599
17992
|
return __props.data.map((group) => group.map(({
|
|
17600
17993
|
x: x2,
|
|
17601
17994
|
y: y2,
|
|
17602
|
-
shape,
|
|
17995
|
+
shape: shape2,
|
|
17603
17996
|
size = 6,
|
|
17604
17997
|
color: color2,
|
|
17605
17998
|
stroke,
|
|
@@ -17616,10 +18009,15 @@ const _sfc_main$D = {
|
|
|
17616
18009
|
}) => {
|
|
17617
18010
|
const { h: cx, v: cy } = __props.coord2pos({ x: x2, y: y2 });
|
|
17618
18011
|
if (cx < xlim_min || cx > xlim_max || cy < ylim_min || cy > ylim_max) return null;
|
|
18012
|
+
if (typeof angle2 == "object") {
|
|
18013
|
+
let { dx = 0, dy = 0 } = angle2;
|
|
18014
|
+
let { h, v } = __props.coord2pos({ x: x2 + dx, y: y2 + dy });
|
|
18015
|
+
angle2 = Math.atan2(v - cy, h - cx) * 180 / Math.PI;
|
|
18016
|
+
}
|
|
17619
18017
|
let vbind = {
|
|
17620
18018
|
x: cx,
|
|
17621
18019
|
y: cy,
|
|
17622
|
-
shape,
|
|
18020
|
+
shape: shape2,
|
|
17623
18021
|
size,
|
|
17624
18022
|
color: color2,
|
|
17625
18023
|
stroke,
|
|
@@ -17644,7 +18042,7 @@ const _sfc_main$D = {
|
|
|
17644
18042
|
(openBlock(true), createElementBlock(Fragment, null, renderList(binds.value, (group) => {
|
|
17645
18043
|
return openBlock(), createElementBlock("g", mergeProps({ ref_for: true }, { class: __props.groupClass, style: __props.groupStyle }), [
|
|
17646
18044
|
(openBlock(true), createElementBlock(Fragment, null, renderList(group, ([vbind, von]) => {
|
|
17647
|
-
return openBlock(), createBlock(_sfc_main$
|
|
18045
|
+
return openBlock(), createBlock(_sfc_main$Q, mergeProps({ ref_for: true }, vbind, toHandlers(von)), null, 16);
|
|
17648
18046
|
}), 256))
|
|
17649
18047
|
], 16);
|
|
17650
18048
|
}), 256))
|
|
@@ -17653,7 +18051,7 @@ const _sfc_main$D = {
|
|
|
17653
18051
|
}
|
|
17654
18052
|
};
|
|
17655
18053
|
const _hoisted_1$5 = { key: 0 };
|
|
17656
|
-
const _sfc_main$
|
|
18054
|
+
const _sfc_main$F = {
|
|
17657
18055
|
__name: "CorePolygon",
|
|
17658
18056
|
props: {
|
|
17659
18057
|
points: { type: Array, default: () => [] },
|
|
@@ -17687,7 +18085,7 @@ const _sfc_main$C = {
|
|
|
17687
18085
|
};
|
|
17688
18086
|
}
|
|
17689
18087
|
};
|
|
17690
|
-
const _sfc_main$
|
|
18088
|
+
const _sfc_main$E = {
|
|
17691
18089
|
__name: "CoreSvgPolygon",
|
|
17692
18090
|
props: {
|
|
17693
18091
|
extendX: { type: Number, default: 0 },
|
|
@@ -17715,6 +18113,9 @@ const _sfc_main$B = {
|
|
|
17715
18113
|
title,
|
|
17716
18114
|
"translate-x": translateX = 0,
|
|
17717
18115
|
"translate-y": translateY = 0,
|
|
18116
|
+
"marker-start": markerStart,
|
|
18117
|
+
"marker-mid": markerMid,
|
|
18118
|
+
"marker-end": markerEnd,
|
|
17718
18119
|
class: className,
|
|
17719
18120
|
style,
|
|
17720
18121
|
$raw
|
|
@@ -17731,6 +18132,9 @@ const _sfc_main$B = {
|
|
|
17731
18132
|
title,
|
|
17732
18133
|
translateX,
|
|
17733
18134
|
translateY,
|
|
18135
|
+
"marker-start": markerStart,
|
|
18136
|
+
"marker-mid": markerMid,
|
|
18137
|
+
"marker-end": markerEnd,
|
|
17734
18138
|
class: className,
|
|
17735
18139
|
style
|
|
17736
18140
|
};
|
|
@@ -17745,7 +18149,7 @@ const _sfc_main$B = {
|
|
|
17745
18149
|
(openBlock(true), createElementBlock(Fragment, null, renderList(binds.value, (group) => {
|
|
17746
18150
|
return openBlock(), createElementBlock("g", mergeProps({ ref_for: true }, { class: __props.groupClass, style: __props.groupStyle }), [
|
|
17747
18151
|
(openBlock(true), createElementBlock(Fragment, null, renderList(group, ([vbind, von]) => {
|
|
17748
|
-
return openBlock(), createBlock(_sfc_main$
|
|
18152
|
+
return openBlock(), createBlock(_sfc_main$F, mergeProps({ ref_for: true }, vbind, toHandlers(von)), null, 16);
|
|
17749
18153
|
}), 256))
|
|
17750
18154
|
], 16);
|
|
17751
18155
|
}), 256))
|
|
@@ -17753,7 +18157,7 @@ const _sfc_main$B = {
|
|
|
17753
18157
|
};
|
|
17754
18158
|
}
|
|
17755
18159
|
};
|
|
17756
|
-
const _sfc_main$
|
|
18160
|
+
const _sfc_main$D = {
|
|
17757
18161
|
__name: "CoreSvgRect",
|
|
17758
18162
|
props: {
|
|
17759
18163
|
extendX: { type: Number, default: 0 },
|
|
@@ -17776,7 +18180,7 @@ const _sfc_main$A = {
|
|
|
17776
18180
|
xmax,
|
|
17777
18181
|
ymin,
|
|
17778
18182
|
ymax,
|
|
17779
|
-
fill
|
|
18183
|
+
fill,
|
|
17780
18184
|
color: color2,
|
|
17781
18185
|
linewidth,
|
|
17782
18186
|
linetype,
|
|
@@ -17817,7 +18221,7 @@ const _sfc_main$A = {
|
|
|
17817
18221
|
(openBlock(true), createElementBlock(Fragment, null, renderList(binds.value, (group) => {
|
|
17818
18222
|
return openBlock(), createElementBlock("g", mergeProps({ ref_for: true }, { class: __props.groupClass, style: __props.groupStyle }), [
|
|
17819
18223
|
(openBlock(true), createElementBlock(Fragment, null, renderList(group, ([vbind, von]) => {
|
|
17820
|
-
return openBlock(), createBlock(_sfc_main$
|
|
18224
|
+
return openBlock(), createBlock(_sfc_main$R, mergeProps({ ref_for: true }, vbind, toHandlers(von)), null, 16);
|
|
17821
18225
|
}), 256))
|
|
17822
18226
|
], 16);
|
|
17823
18227
|
}), 256))
|
|
@@ -17825,7 +18229,7 @@ const _sfc_main$A = {
|
|
|
17825
18229
|
};
|
|
17826
18230
|
}
|
|
17827
18231
|
};
|
|
17828
|
-
const _sfc_main$
|
|
18232
|
+
const _sfc_main$C = {
|
|
17829
18233
|
__name: "CoreSvgText",
|
|
17830
18234
|
props: {
|
|
17831
18235
|
extendX: { type: Number, default: 0 },
|
|
@@ -17876,6 +18280,11 @@ const _sfc_main$z = {
|
|
|
17876
18280
|
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 });
|
|
17877
18281
|
textLength = Math.hypot(h1 - h2 || 0, v1 - v2 || 0);
|
|
17878
18282
|
}
|
|
18283
|
+
if (typeof angle2 == "object") {
|
|
18284
|
+
let { dx = 0, dy = 0 } = angle2;
|
|
18285
|
+
let { h, v } = __props.coord2pos({ x: x2 + dx, y: y2 + dy });
|
|
18286
|
+
angle2 = Math.atan2(v - ty, h - tx) * 180 / Math.PI;
|
|
18287
|
+
}
|
|
17879
18288
|
let vbind = {
|
|
17880
18289
|
x: tx,
|
|
17881
18290
|
y: ty,
|
|
@@ -17911,7 +18320,7 @@ const _sfc_main$z = {
|
|
|
17911
18320
|
(openBlock(true), createElementBlock(Fragment, null, renderList(binds.value, (group) => {
|
|
17912
18321
|
return openBlock(), createElementBlock("g", mergeProps({ ref_for: true }, { class: __props.groupClass, style: __props.groupStyle }), [
|
|
17913
18322
|
(openBlock(true), createElementBlock(Fragment, null, renderList(group, ([vbind, von]) => {
|
|
17914
|
-
return openBlock(), createBlock(_sfc_main$
|
|
18323
|
+
return openBlock(), createBlock(_sfc_main$17, mergeProps({ ref_for: true }, vbind, toHandlers(von)), null, 16);
|
|
17915
18324
|
}), 256))
|
|
17916
18325
|
], 16);
|
|
17917
18326
|
}), 256))
|
|
@@ -17919,7 +18328,7 @@ const _sfc_main$z = {
|
|
|
17919
18328
|
};
|
|
17920
18329
|
}
|
|
17921
18330
|
};
|
|
17922
|
-
const _sfc_main$
|
|
18331
|
+
const _sfc_main$B = {
|
|
17923
18332
|
__name: "CoreSvgTextsegment",
|
|
17924
18333
|
props: {
|
|
17925
18334
|
extendX: { type: Number, default: 0 },
|
|
@@ -18098,22 +18507,23 @@ const _sfc_main$y = {
|
|
|
18098
18507
|
};
|
|
18099
18508
|
const svg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
18100
18509
|
__proto__: null,
|
|
18101
|
-
blank: _sfc_main$
|
|
18102
|
-
boxplot: _sfc_main$
|
|
18103
|
-
curve: _sfc_main$
|
|
18104
|
-
ellipse: _sfc_main$
|
|
18105
|
-
line: _sfc_main$
|
|
18106
|
-
markdown: _sfc_main$
|
|
18107
|
-
markdownsegment: _sfc_main$
|
|
18108
|
-
point: _sfc_main$
|
|
18109
|
-
polygon: _sfc_main$
|
|
18110
|
-
rect: _sfc_main$
|
|
18111
|
-
|
|
18112
|
-
|
|
18113
|
-
|
|
18114
|
-
|
|
18510
|
+
blank: _sfc_main$S,
|
|
18511
|
+
boxplot: _sfc_main$O,
|
|
18512
|
+
curve: _sfc_main$M,
|
|
18513
|
+
ellipse: _sfc_main$K,
|
|
18514
|
+
line: _sfc_main$J,
|
|
18515
|
+
markdown: _sfc_main$I,
|
|
18516
|
+
markdownsegment: _sfc_main$H,
|
|
18517
|
+
point: _sfc_main$G,
|
|
18518
|
+
polygon: _sfc_main$E,
|
|
18519
|
+
rect: _sfc_main$D,
|
|
18520
|
+
shape: _sfc_main$M,
|
|
18521
|
+
stick: _sfc_main$J,
|
|
18522
|
+
text: _sfc_main$C,
|
|
18523
|
+
textsegment: _sfc_main$B,
|
|
18524
|
+
tile: _sfc_main$D
|
|
18115
18525
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
18116
|
-
const _sfc_main$
|
|
18526
|
+
const _sfc_main$A = {
|
|
18117
18527
|
__name: "CoreLayer",
|
|
18118
18528
|
props: {
|
|
18119
18529
|
data: Object,
|
|
@@ -18154,7 +18564,7 @@ const _sfc_main$x = {
|
|
|
18154
18564
|
};
|
|
18155
18565
|
const _hoisted_1$4 = { key: 0 };
|
|
18156
18566
|
const _hoisted_2$3 = ["onPointerdown"];
|
|
18157
|
-
const _sfc_main$
|
|
18567
|
+
const _sfc_main$z = {
|
|
18158
18568
|
__name: "CoreSelection",
|
|
18159
18569
|
props: /* @__PURE__ */ mergeModels({
|
|
18160
18570
|
coord2pos: Function,
|
|
@@ -18254,7 +18664,7 @@ const _sfc_main$w = {
|
|
|
18254
18664
|
if (pos.hmax == null) hmax += linewidth / 2;
|
|
18255
18665
|
if (pos.vmin == null) vmin -= linewidth / 2;
|
|
18256
18666
|
if (pos.vmax == null) vmax += linewidth / 2;
|
|
18257
|
-
let width = hmax - hmin, height = vmax - vmin;
|
|
18667
|
+
let width = Math.max(0, hmax - hmin), height = Math.max(0, vmax - vmin);
|
|
18258
18668
|
return {
|
|
18259
18669
|
x: hmin,
|
|
18260
18670
|
y: vmin,
|
|
@@ -18273,7 +18683,7 @@ const _sfc_main$w = {
|
|
|
18273
18683
|
if (!position.value || translating.value) return null;
|
|
18274
18684
|
let size = 10;
|
|
18275
18685
|
let { hmin, hmax, vmin, vmax, pos } = position.value;
|
|
18276
|
-
let width = hmax - hmin, height = vmax - vmin;
|
|
18686
|
+
let width = Math.max(0, hmax - hmin), height = Math.max(0, vmax - vmin);
|
|
18277
18687
|
let binds = {};
|
|
18278
18688
|
if (config.move) binds.tblr = {
|
|
18279
18689
|
x: hmin,
|
|
@@ -18411,7 +18821,7 @@ const _sfc_main$w = {
|
|
|
18411
18821
|
const _hoisted_1$3 = ["height", "width"];
|
|
18412
18822
|
const _hoisted_2$2 = ["y1", "y2"];
|
|
18413
18823
|
const _hoisted_3$2 = ["y"];
|
|
18414
|
-
const _sfc_main$
|
|
18824
|
+
const _sfc_main$y = {
|
|
18415
18825
|
__name: "CoreGuideGradientbar",
|
|
18416
18826
|
props: {
|
|
18417
18827
|
scales: Array,
|
|
@@ -18451,7 +18861,7 @@ const _sfc_main$v = {
|
|
|
18451
18861
|
ref: "svg"
|
|
18452
18862
|
}, [
|
|
18453
18863
|
(openBlock(true), createElementBlock(Fragment, null, renderList(gradient_values.value, (v, i) => {
|
|
18454
|
-
return openBlock(), createBlock(_sfc_main$
|
|
18864
|
+
return openBlock(), createBlock(_sfc_main$R, mergeProps({
|
|
18455
18865
|
width: 10,
|
|
18456
18866
|
height: 3.1,
|
|
18457
18867
|
x: 10,
|
|
@@ -18483,12 +18893,12 @@ const _sfc_main$v = {
|
|
|
18483
18893
|
};
|
|
18484
18894
|
const element = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
18485
18895
|
__proto__: null,
|
|
18486
|
-
curve: _sfc_main$
|
|
18487
|
-
line: _sfc_main$
|
|
18488
|
-
point: _sfc_main$
|
|
18489
|
-
polygon: _sfc_main$
|
|
18490
|
-
text: _sfc_main$
|
|
18491
|
-
tile: _sfc_main$
|
|
18896
|
+
curve: _sfc_main$N,
|
|
18897
|
+
line: _sfc_main$P,
|
|
18898
|
+
point: _sfc_main$Q,
|
|
18899
|
+
polygon: _sfc_main$F,
|
|
18900
|
+
text: _sfc_main$17,
|
|
18901
|
+
tile: _sfc_main$R
|
|
18492
18902
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
18493
18903
|
const _hoisted_1$2 = ["height", "width"];
|
|
18494
18904
|
const _hoisted_2$1 = ["transform"];
|
|
@@ -18498,7 +18908,7 @@ const _hoisted_4$1 = {
|
|
|
18498
18908
|
y: "10",
|
|
18499
18909
|
"alignment-baseline": "central"
|
|
18500
18910
|
};
|
|
18501
|
-
const _sfc_main$
|
|
18911
|
+
const _sfc_main$x = {
|
|
18502
18912
|
__name: "CoreGuideLegendkey",
|
|
18503
18913
|
props: {
|
|
18504
18914
|
scales: Array,
|
|
@@ -18528,7 +18938,7 @@ const _sfc_main$u = {
|
|
|
18528
18938
|
const geoms = computed(() => {
|
|
18529
18939
|
let { text: text2, line: line2, point: point2, tile: tile2 } = __props.appearances;
|
|
18530
18940
|
let result = {};
|
|
18531
|
-
if (tile2 != null) result.tile = { width: 10, height: 10, fill: "
|
|
18941
|
+
if (tile2 != null) result.tile = { width: 10, height: 10, fill: "none", ...tile2 };
|
|
18532
18942
|
if (line2 != null) result.line = { x1: -5, x2: 5, color: "black", ...line2 };
|
|
18533
18943
|
if (point2 != null) result.point = { size: 6, ...point2 };
|
|
18534
18944
|
if (text2 != null) result.text = { size: 4, text: "a", ...text2 };
|
|
@@ -18565,7 +18975,7 @@ const _sfc_main$u = {
|
|
|
18565
18975
|
};
|
|
18566
18976
|
}
|
|
18567
18977
|
};
|
|
18568
|
-
const _sfc_main$
|
|
18978
|
+
const _sfc_main$w = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
18569
18979
|
__name: "CoreGuide",
|
|
18570
18980
|
props: {
|
|
18571
18981
|
scales: Array,
|
|
@@ -18573,8 +18983,8 @@ const _sfc_main$t = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
18573
18983
|
},
|
|
18574
18984
|
setup(__props) {
|
|
18575
18985
|
const guide = {
|
|
18576
|
-
legendkey: _sfc_main$
|
|
18577
|
-
gradientbar: _sfc_main$
|
|
18986
|
+
legendkey: _sfc_main$x,
|
|
18987
|
+
gradientbar: _sfc_main$y
|
|
18578
18988
|
};
|
|
18579
18989
|
const title = computed(() => {
|
|
18580
18990
|
return __props.scales.reduce((v, [s]) => v ?? s.title, null) ?? __props.scales.reduce((v, [s]) => v ?? s._title, null);
|
|
@@ -18618,7 +19028,7 @@ const _sfc_main$t = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
18618
19028
|
};
|
|
18619
19029
|
}
|
|
18620
19030
|
});
|
|
18621
|
-
const _sfc_main$
|
|
19031
|
+
const _sfc_main$v = {
|
|
18622
19032
|
__name: "CoreLegend",
|
|
18623
19033
|
props: {
|
|
18624
19034
|
theme: { type: Object, default: () => ({}) },
|
|
@@ -18652,7 +19062,7 @@ const _sfc_main$s = {
|
|
|
18652
19062
|
style: normalizeStyle({ gap: __props.theme.spacing + "px" })
|
|
18653
19063
|
}, [
|
|
18654
19064
|
(openBlock(true), createElementBlock(Fragment, null, renderList(guides.value, ([[key, type], scales]) => {
|
|
18655
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19065
|
+
return openBlock(), createBlock(_sfc_main$w, {
|
|
18656
19066
|
key,
|
|
18657
19067
|
type,
|
|
18658
19068
|
scales
|
|
@@ -18670,7 +19080,7 @@ const _hoisted_5 = ["transform", "clip-path"];
|
|
|
18670
19080
|
const _hoisted_6 = ["transform"];
|
|
18671
19081
|
const _hoisted_7 = ["clip-path"];
|
|
18672
19082
|
const _hoisted_8 = { key: 1 };
|
|
18673
|
-
const _sfc_main$
|
|
19083
|
+
const _sfc_main$u = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
18674
19084
|
__name: "CorePlot",
|
|
18675
19085
|
props: /* @__PURE__ */ mergeModels({
|
|
18676
19086
|
schema: Object,
|
|
@@ -19283,37 +19693,39 @@ const _sfc_main$r = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
19283
19693
|
etc
|
|
19284
19694
|
}));
|
|
19285
19695
|
});
|
|
19696
|
+
function grid_theme_normalize(theme2) {
|
|
19697
|
+
let {
|
|
19698
|
+
grid_color,
|
|
19699
|
+
grid_color_major = grid_color,
|
|
19700
|
+
grid_color_minor = grid_color,
|
|
19701
|
+
grid_width,
|
|
19702
|
+
grid_width_major = grid_width,
|
|
19703
|
+
grid_width_minor = grid_width,
|
|
19704
|
+
...result
|
|
19705
|
+
} = theme2;
|
|
19706
|
+
if (grid_color_major) result.grid_color_major = grid_color_major;
|
|
19707
|
+
if (grid_color_minor) result.grid_color_minor = grid_color_minor;
|
|
19708
|
+
if (grid_width_major) result.grid_width_major = grid_width_major;
|
|
19709
|
+
if (grid_width_minor) result.grid_width_minor = grid_width_minor;
|
|
19710
|
+
return result;
|
|
19711
|
+
}
|
|
19286
19712
|
const vaxes = computed(() => gaxes.value.map(({ coord, axis, etc }) => {
|
|
19287
|
-
let {
|
|
19288
|
-
|
|
19289
|
-
|
|
19290
|
-
|
|
19291
|
-
|
|
19292
|
-
return {
|
|
19293
|
-
majorBreaks,
|
|
19294
|
-
minorBreaks,
|
|
19295
|
-
ticks: ticks2,
|
|
19296
|
-
showGrid,
|
|
19297
|
-
coord,
|
|
19298
|
-
orientation,
|
|
19299
|
-
bind
|
|
19300
|
-
};
|
|
19713
|
+
let { showGrid, breakSlot, orientation, ...bind } = etc;
|
|
19714
|
+
let gtheme = grid_theme_normalize(__props.theme.axis[orientation] ?? {}), atheme = grid_theme_normalize(bind.theme);
|
|
19715
|
+
let breaks = axis.getBreaks({ range: axisRange[coord], expandMult: __props.expandMult[coord], breakSlot });
|
|
19716
|
+
for (let b of breaks)
|
|
19717
|
+
b.theme = Object.assign({}, gtheme, atheme, grid_theme_normalize(b.theme ?? {}));
|
|
19718
|
+
return { breaks, showGrid, coord, orientation, bind };
|
|
19301
19719
|
}));
|
|
19302
19720
|
const gridBreaks = computed(() => {
|
|
19303
19721
|
let hAxes = vaxes.value.filter((a) => a.showGrid && a.orientation == "v"), vAxes = vaxes.value.filter((a) => a.showGrid && a.orientation == "h");
|
|
19304
19722
|
return {
|
|
19305
|
-
h:
|
|
19306
|
-
|
|
19307
|
-
minorBreaks: unique(hAxes.flatMap((a) => a.minorBreaks), (x2) => x2.position)
|
|
19308
|
-
},
|
|
19309
|
-
v: {
|
|
19310
|
-
majorBreaks: unique(vAxes.flatMap((a) => a.majorBreaks), (x2) => x2.position),
|
|
19311
|
-
minorBreaks: unique(vAxes.flatMap((a) => a.minorBreaks), (x2) => x2.position)
|
|
19312
|
-
}
|
|
19723
|
+
h: unique(hAxes.flatMap((a) => a.breaks), (x2) => x2.value, (a, b) => [a, b].find((x2) => x2.type == "major") ?? a),
|
|
19724
|
+
v: unique(vAxes.flatMap((a) => a.breaks), (x2) => x2.value, (a, b) => [a, b].find((x2) => x2.type == "major") ?? a)
|
|
19313
19725
|
};
|
|
19314
19726
|
});
|
|
19315
19727
|
const axes = computed(() => {
|
|
19316
|
-
return vaxes.value.map(({ orientation, coord, bind,
|
|
19728
|
+
return vaxes.value.map(({ orientation, coord, bind, breaks }) => {
|
|
19317
19729
|
let {
|
|
19318
19730
|
onMove: move = (...args) => emit("move", ...args),
|
|
19319
19731
|
onZoom: zoom = (...args) => emit("zoom", ...args),
|
|
@@ -19326,7 +19738,7 @@ const _sfc_main$r = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
19326
19738
|
bind: {
|
|
19327
19739
|
coord,
|
|
19328
19740
|
orientation,
|
|
19329
|
-
ticks:
|
|
19741
|
+
ticks: breaks.filter((x2) => x2.type == "major"),
|
|
19330
19742
|
layout: innerRect,
|
|
19331
19743
|
coord2pos,
|
|
19332
19744
|
pos2coord,
|
|
@@ -19367,21 +19779,21 @@ const _sfc_main$r = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
19367
19779
|
transform: `translate(${unref(panel).left}, ${unref(panel).top})`,
|
|
19368
19780
|
style: { "pointer-events": "none" }
|
|
19369
19781
|
}, [
|
|
19370
|
-
|
|
19782
|
+
createVNode(_sfc_main$11, {
|
|
19783
|
+
breaks: gridBreaks.value.h,
|
|
19371
19784
|
layout: unref(innerRect),
|
|
19372
|
-
theme: __props.theme.grid.h,
|
|
19373
19785
|
activeTransform: activeTransform.value,
|
|
19374
19786
|
coord2pos,
|
|
19375
19787
|
transition: transition.value
|
|
19376
|
-
}
|
|
19788
|
+
}, null, 8, ["breaks", "layout", "activeTransform", "transition"]),
|
|
19377
19789
|
_cache[2] || (_cache[2] = createTextVNode()),
|
|
19378
|
-
|
|
19790
|
+
createVNode(_sfc_main$10, {
|
|
19791
|
+
breaks: gridBreaks.value.v,
|
|
19379
19792
|
layout: unref(innerRect),
|
|
19380
|
-
theme: __props.theme.grid.v,
|
|
19381
19793
|
activeTransform: activeTransform.value,
|
|
19382
19794
|
coord2pos,
|
|
19383
19795
|
transition: transition.value
|
|
19384
|
-
}
|
|
19796
|
+
}, null, 8, ["breaks", "layout", "activeTransform", "transition"])
|
|
19385
19797
|
], 8, _hoisted_4),
|
|
19386
19798
|
_cache[8] || (_cache[8] = createTextVNode()),
|
|
19387
19799
|
createElementVNode("g", {
|
|
@@ -19392,7 +19804,7 @@ const _sfc_main$r = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
19392
19804
|
style: { transition: transition.value }
|
|
19393
19805
|
}), [
|
|
19394
19806
|
(openBlock(true), createElementBlock(Fragment, null, renderList(vplot.value.layers, (layer) => {
|
|
19395
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19807
|
+
return openBlock(), createBlock(_sfc_main$A, mergeProps({
|
|
19396
19808
|
ref_for: true,
|
|
19397
19809
|
ref_key: "layers",
|
|
19398
19810
|
ref: layers,
|
|
@@ -19409,7 +19821,7 @@ const _sfc_main$r = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
19409
19821
|
], 16),
|
|
19410
19822
|
_cache[3] || (_cache[3] = createTextVNode()),
|
|
19411
19823
|
(openBlock(true), createElementBlock(Fragment, null, renderList(props.selections, (sel) => {
|
|
19412
|
-
return openBlock(), createBlock(_sfc_main$
|
|
19824
|
+
return openBlock(), createBlock(_sfc_main$z, mergeProps({
|
|
19413
19825
|
coord2pos,
|
|
19414
19826
|
pos2coord,
|
|
19415
19827
|
layout: unref(innerRect),
|
|
@@ -19420,7 +19832,7 @@ const _sfc_main$r = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
19420
19832
|
}, { ref_for: true }, sel, { flip: __props.flip }), null, 16, ["layout", "transition", "activeTransform", "flip"]);
|
|
19421
19833
|
}), 256)),
|
|
19422
19834
|
_cache[4] || (_cache[4] = createTextVNode()),
|
|
19423
|
-
createVNode(_sfc_main$
|
|
19835
|
+
createVNode(_sfc_main$z, {
|
|
19424
19836
|
coord2pos,
|
|
19425
19837
|
pos2coord,
|
|
19426
19838
|
layout: unref(innerRect),
|
|
@@ -19436,7 +19848,7 @@ const _sfc_main$r = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
19436
19848
|
transform: `translate(${unref(panel).left}, ${unref(panel).top})`
|
|
19437
19849
|
}, [
|
|
19438
19850
|
(openBlock(true), createElementBlock(Fragment, null, renderList(axes.value.filter((a) => typeof a.bind.position !== "number"), (axis) => {
|
|
19439
|
-
return openBlock(), createBlock(_sfc_main
|
|
19851
|
+
return openBlock(), createBlock(_sfc_main$12, mergeProps({ ref_for: true }, axis.bind, toHandlers(axis.on), {
|
|
19440
19852
|
transition: transition.value,
|
|
19441
19853
|
"onUpdate:transition": _cache[0] || (_cache[0] = ($event) => transition.value = $event),
|
|
19442
19854
|
activeTransform: activeTransform.value
|
|
@@ -19447,7 +19859,7 @@ const _sfc_main$r = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
19447
19859
|
"clip-path": props.clip ? `url(#${unref(vid)}-plot-clip)` : null
|
|
19448
19860
|
}, [
|
|
19449
19861
|
(openBlock(true), createElementBlock(Fragment, null, renderList(axes.value.filter((a) => typeof a.bind.position === "number"), (axis) => {
|
|
19450
|
-
return openBlock(), createBlock(_sfc_main
|
|
19862
|
+
return openBlock(), createBlock(_sfc_main$12, mergeProps({ ref_for: true }, axis.bind, toHandlers(axis.on), {
|
|
19451
19863
|
transition: transition.value,
|
|
19452
19864
|
"onUpdate:transition": _cache[1] || (_cache[1] = ($event) => transition.value = $event),
|
|
19453
19865
|
activeTransform: activeTransform.value
|
|
@@ -19456,12 +19868,14 @@ const _sfc_main$r = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
19456
19868
|
], 8, _hoisted_7)
|
|
19457
19869
|
], 8, _hoisted_6),
|
|
19458
19870
|
_cache[10] || (_cache[10] = createTextVNode()),
|
|
19871
|
+
renderSlot(_ctx.$slots, "default"),
|
|
19872
|
+
_cache[11] || (_cache[11] = createTextVNode()),
|
|
19459
19873
|
props.legendTeleport ? (openBlock(), createElementBlock("foreignObject", _hoisted_8, [
|
|
19460
19874
|
(openBlock(), createBlock(Teleport, {
|
|
19461
19875
|
defer: "",
|
|
19462
19876
|
to: props.legendTeleport
|
|
19463
19877
|
}, [
|
|
19464
|
-
createVNode(_sfc_main$
|
|
19878
|
+
createVNode(_sfc_main$v, {
|
|
19465
19879
|
scales: vplot.value?.scales,
|
|
19466
19880
|
theme: __props.theme.legend
|
|
19467
19881
|
}, null, 8, ["scales", "theme"])
|
|
@@ -19471,59 +19885,67 @@ const _sfc_main$r = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
19471
19885
|
};
|
|
19472
19886
|
}
|
|
19473
19887
|
});
|
|
19474
|
-
const _sfc_main$
|
|
19888
|
+
const _sfc_main$t = {
|
|
19475
19889
|
$_type: "action",
|
|
19476
19890
|
$_props: {}
|
|
19477
19891
|
};
|
|
19478
|
-
const _sfc_main$
|
|
19892
|
+
const _sfc_main$s = {
|
|
19479
19893
|
$_type: "layer"
|
|
19480
19894
|
};
|
|
19481
|
-
const _sfc_main$
|
|
19895
|
+
const _sfc_main$r = {
|
|
19482
19896
|
$_props: {
|
|
19483
19897
|
geom: "tile",
|
|
19484
19898
|
stat: "bar"
|
|
19485
19899
|
},
|
|
19486
|
-
$_type: "layer"
|
|
19900
|
+
$_type: "layer",
|
|
19901
|
+
$_argnames: ["width", "height", "position"]
|
|
19487
19902
|
};
|
|
19488
|
-
const _sfc_main$
|
|
19903
|
+
const _sfc_main$q = {
|
|
19489
19904
|
$_props: {
|
|
19490
19905
|
geom: "blank",
|
|
19491
19906
|
stat: "identity"
|
|
19492
19907
|
},
|
|
19493
19908
|
$_type: "layer"
|
|
19494
19909
|
};
|
|
19495
|
-
const _sfc_main$
|
|
19910
|
+
const _sfc_main$p = {
|
|
19496
19911
|
$_props: {
|
|
19497
19912
|
geom: "boxplot",
|
|
19498
19913
|
stat: "boxplot"
|
|
19499
19914
|
},
|
|
19500
|
-
$_type: "layer"
|
|
19915
|
+
$_type: "layer",
|
|
19916
|
+
$_argnames: ["width", "height", "position"]
|
|
19501
19917
|
};
|
|
19502
|
-
const _sfc_main$
|
|
19918
|
+
const _sfc_main$o = {
|
|
19503
19919
|
$_props: {
|
|
19504
19920
|
geom: "curve",
|
|
19505
|
-
stat: "curve"
|
|
19921
|
+
stat: "curve",
|
|
19922
|
+
fill: "none",
|
|
19923
|
+
color: "black"
|
|
19506
19924
|
},
|
|
19507
19925
|
$_type: "layer",
|
|
19508
19926
|
$_attrnames: ["interpolate"]
|
|
19509
19927
|
};
|
|
19510
|
-
const _sfc_main$
|
|
19928
|
+
const _sfc_main$n = {
|
|
19511
19929
|
$_props: {
|
|
19512
19930
|
geom: "curve",
|
|
19513
|
-
stat: "density"
|
|
19931
|
+
stat: "density",
|
|
19932
|
+
fill: "none",
|
|
19933
|
+
color: "black"
|
|
19514
19934
|
},
|
|
19515
19935
|
$_type: "layer",
|
|
19516
|
-
$_argnames: ["n", "kernel"]
|
|
19936
|
+
$_argnames: ["n", "kernel", "scale"]
|
|
19517
19937
|
};
|
|
19518
|
-
const _sfc_main$
|
|
19938
|
+
const _sfc_main$m = {
|
|
19519
19939
|
$_props: {
|
|
19520
19940
|
geom: "ellipse",
|
|
19521
|
-
stat: "ellipse"
|
|
19941
|
+
stat: "ellipse",
|
|
19942
|
+
fill: "none",
|
|
19943
|
+
color: "black"
|
|
19522
19944
|
},
|
|
19523
19945
|
$_type: "layer",
|
|
19524
19946
|
$_argnames: ["CI"]
|
|
19525
19947
|
};
|
|
19526
|
-
const _sfc_main$
|
|
19948
|
+
const _sfc_main$l = {
|
|
19527
19949
|
$_props: {
|
|
19528
19950
|
geom: "rect",
|
|
19529
19951
|
stat: "histogram"
|
|
@@ -19531,7 +19953,7 @@ const _sfc_main$i = {
|
|
|
19531
19953
|
$_type: "layer",
|
|
19532
19954
|
$_argnames: ["bins", "binwidth", "breaks"]
|
|
19533
19955
|
};
|
|
19534
|
-
const _sfc_main$
|
|
19956
|
+
const _sfc_main$k = {
|
|
19535
19957
|
$_props: {
|
|
19536
19958
|
geom: "line",
|
|
19537
19959
|
stat: "line"
|
|
@@ -19539,131 +19961,155 @@ const _sfc_main$h = {
|
|
|
19539
19961
|
$_type: "layer",
|
|
19540
19962
|
$_argnames: ["orientation"]
|
|
19541
19963
|
};
|
|
19542
|
-
const _sfc_main$
|
|
19964
|
+
const _sfc_main$j = {
|
|
19543
19965
|
$_props: {
|
|
19544
19966
|
geom: "line",
|
|
19545
19967
|
stat: "linerange"
|
|
19546
19968
|
},
|
|
19547
19969
|
$_type: "layer"
|
|
19548
19970
|
};
|
|
19549
|
-
const _sfc_main$
|
|
19971
|
+
const _sfc_main$i = {
|
|
19550
19972
|
$_props: {
|
|
19551
19973
|
geom: "markdown",
|
|
19552
19974
|
stat: "text"
|
|
19553
19975
|
},
|
|
19554
19976
|
$_type: "layer"
|
|
19555
19977
|
};
|
|
19556
|
-
const _sfc_main$
|
|
19978
|
+
const _sfc_main$h = {
|
|
19557
19979
|
$_props: {
|
|
19558
19980
|
geom: "markdownsegment",
|
|
19559
19981
|
stat: "textsegment"
|
|
19560
19982
|
},
|
|
19561
19983
|
$_type: "layer"
|
|
19562
19984
|
};
|
|
19563
|
-
const _sfc_main$
|
|
19985
|
+
const _sfc_main$g = {
|
|
19564
19986
|
$_props: {
|
|
19565
19987
|
geom: "line",
|
|
19566
19988
|
stat: "path"
|
|
19567
19989
|
},
|
|
19568
19990
|
$_type: "layer"
|
|
19569
19991
|
};
|
|
19570
|
-
const _sfc_main$
|
|
19992
|
+
const _sfc_main$f = {
|
|
19571
19993
|
$_props: {
|
|
19572
19994
|
geom: "point",
|
|
19573
19995
|
stat: "point"
|
|
19574
19996
|
},
|
|
19575
19997
|
$_type: "layer"
|
|
19576
19998
|
};
|
|
19577
|
-
const _sfc_main$
|
|
19999
|
+
const _sfc_main$e = {
|
|
19578
20000
|
$_props: {
|
|
19579
20001
|
geom: "polygon",
|
|
19580
20002
|
stat: "polygon"
|
|
19581
20003
|
},
|
|
19582
20004
|
$_type: "layer"
|
|
19583
20005
|
};
|
|
19584
|
-
const _sfc_main$
|
|
20006
|
+
const _sfc_main$d = {
|
|
19585
20007
|
$_props: {
|
|
19586
20008
|
geom: "rect",
|
|
19587
20009
|
stat: "rect"
|
|
19588
20010
|
},
|
|
19589
20011
|
$_type: "layer"
|
|
19590
20012
|
};
|
|
19591
|
-
const _sfc_main$
|
|
20013
|
+
const _sfc_main$c = {
|
|
19592
20014
|
$_props: {
|
|
19593
20015
|
geom: "line",
|
|
19594
20016
|
stat: "segment"
|
|
19595
20017
|
},
|
|
19596
20018
|
$_type: "layer"
|
|
19597
20019
|
};
|
|
19598
|
-
const _sfc_main$
|
|
20020
|
+
const _sfc_main$b = {
|
|
20021
|
+
$_props: {
|
|
20022
|
+
geom: "shape",
|
|
20023
|
+
stat: "shape",
|
|
20024
|
+
interpolate: "catmullRomClosed"
|
|
20025
|
+
},
|
|
20026
|
+
$_type: "layer",
|
|
20027
|
+
$_attrnames: ["interpolate"]
|
|
20028
|
+
};
|
|
20029
|
+
const _sfc_main$a = {
|
|
19599
20030
|
$_props: {
|
|
19600
20031
|
geom: "stick",
|
|
19601
20032
|
stat: "stick"
|
|
19602
20033
|
},
|
|
19603
20034
|
$_type: "layer"
|
|
19604
20035
|
};
|
|
19605
|
-
const _sfc_main$
|
|
20036
|
+
const _sfc_main$9 = {
|
|
19606
20037
|
$_props: {
|
|
19607
20038
|
geom: "text",
|
|
19608
20039
|
stat: "text"
|
|
19609
20040
|
},
|
|
19610
20041
|
$_type: "layer"
|
|
19611
20042
|
};
|
|
19612
|
-
const _sfc_main$
|
|
20043
|
+
const _sfc_main$8 = {
|
|
19613
20044
|
$_props: {
|
|
19614
20045
|
geom: "textsegment",
|
|
19615
20046
|
stat: "textsegment"
|
|
19616
20047
|
},
|
|
19617
20048
|
$_type: "layer"
|
|
19618
20049
|
};
|
|
19619
|
-
const _sfc_main$
|
|
20050
|
+
const _sfc_main$7 = {
|
|
19620
20051
|
$_props: {
|
|
19621
20052
|
geom: "tile",
|
|
19622
20053
|
stat: "tile"
|
|
19623
20054
|
},
|
|
19624
20055
|
$_type: "layer"
|
|
19625
20056
|
};
|
|
20057
|
+
const _sfc_main$6 = {
|
|
20058
|
+
$_props: {
|
|
20059
|
+
geom: "shape",
|
|
20060
|
+
stat: "violin"
|
|
20061
|
+
},
|
|
20062
|
+
$_type: "layer",
|
|
20063
|
+
$_argnames: ["n", "kernel", "scale", "width", "height", "position"]
|
|
20064
|
+
};
|
|
19626
20065
|
const geom_components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
19627
20066
|
__proto__: null,
|
|
19628
|
-
VVGeom: _sfc_main$
|
|
19629
|
-
VVGeomBar: _sfc_main$
|
|
19630
|
-
VVGeomBlank: _sfc_main$
|
|
19631
|
-
VVGeomBoxplot: _sfc_main$
|
|
19632
|
-
VVGeomCurve: _sfc_main$
|
|
19633
|
-
VVGeomDensity: _sfc_main$
|
|
19634
|
-
VVGeomEllipse: _sfc_main$
|
|
19635
|
-
VVGeomHistogram: _sfc_main$
|
|
19636
|
-
VVGeomLine: _sfc_main$
|
|
19637
|
-
VVGeomLinerange: _sfc_main$
|
|
19638
|
-
VVGeomMarkdown: _sfc_main$
|
|
19639
|
-
VVGeomMarkdownsegment: _sfc_main$
|
|
19640
|
-
VVGeomPath: _sfc_main$
|
|
19641
|
-
VVGeomPoint: _sfc_main$
|
|
19642
|
-
VVGeomPolygon: _sfc_main$
|
|
19643
|
-
VVGeomRect: _sfc_main$
|
|
19644
|
-
VVGeomSegment: _sfc_main$
|
|
19645
|
-
|
|
19646
|
-
|
|
19647
|
-
|
|
19648
|
-
|
|
20067
|
+
VVGeom: _sfc_main$s,
|
|
20068
|
+
VVGeomBar: _sfc_main$r,
|
|
20069
|
+
VVGeomBlank: _sfc_main$q,
|
|
20070
|
+
VVGeomBoxplot: _sfc_main$p,
|
|
20071
|
+
VVGeomCurve: _sfc_main$o,
|
|
20072
|
+
VVGeomDensity: _sfc_main$n,
|
|
20073
|
+
VVGeomEllipse: _sfc_main$m,
|
|
20074
|
+
VVGeomHistogram: _sfc_main$l,
|
|
20075
|
+
VVGeomLine: _sfc_main$k,
|
|
20076
|
+
VVGeomLinerange: _sfc_main$j,
|
|
20077
|
+
VVGeomMarkdown: _sfc_main$i,
|
|
20078
|
+
VVGeomMarkdownsegment: _sfc_main$h,
|
|
20079
|
+
VVGeomPath: _sfc_main$g,
|
|
20080
|
+
VVGeomPoint: _sfc_main$f,
|
|
20081
|
+
VVGeomPolygon: _sfc_main$e,
|
|
20082
|
+
VVGeomRect: _sfc_main$d,
|
|
20083
|
+
VVGeomSegment: _sfc_main$c,
|
|
20084
|
+
VVGeomShape: _sfc_main$b,
|
|
20085
|
+
VVGeomStick: _sfc_main$a,
|
|
20086
|
+
VVGeomText: _sfc_main$9,
|
|
20087
|
+
VVGeomTextsegment: _sfc_main$8,
|
|
20088
|
+
VVGeomTile: _sfc_main$7,
|
|
20089
|
+
VVGeomViolin: _sfc_main$6
|
|
19649
20090
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
19650
|
-
const _sfc_main$
|
|
20091
|
+
const _sfc_main$5 = {
|
|
19651
20092
|
$_type: "axis",
|
|
19652
20093
|
$_props: {}
|
|
19653
20094
|
};
|
|
19654
|
-
const _sfc_main$
|
|
20095
|
+
const _sfc_main$4 = {
|
|
19655
20096
|
$_type: "axis",
|
|
19656
20097
|
$_props: { coord: "x" }
|
|
19657
20098
|
};
|
|
19658
|
-
const _sfc_main$
|
|
20099
|
+
const _sfc_main$3 = {
|
|
19659
20100
|
$_type: "axis",
|
|
19660
20101
|
$_props: { coord: "y" }
|
|
19661
20102
|
};
|
|
20103
|
+
const _sfc_main$2 = {
|
|
20104
|
+
$_type: "axis-break",
|
|
20105
|
+
$_props: { type: "major" }
|
|
20106
|
+
};
|
|
19662
20107
|
const axis_components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
19663
20108
|
__proto__: null,
|
|
19664
|
-
VVAxis: _sfc_main$
|
|
19665
|
-
|
|
19666
|
-
|
|
20109
|
+
VVAxis: _sfc_main$5,
|
|
20110
|
+
VVAxisBreak: _sfc_main$2,
|
|
20111
|
+
VVAxisX: _sfc_main$4,
|
|
20112
|
+
VVAxisY: _sfc_main$3
|
|
19667
20113
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
19668
20114
|
const _hoisted_1 = {
|
|
19669
20115
|
key: 0,
|
|
@@ -19710,8 +20156,8 @@ const _sfc_main$1 = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
19710
20156
|
const components = {
|
|
19711
20157
|
...geom_components,
|
|
19712
20158
|
...axis_components,
|
|
19713
|
-
VVAction: _sfc_main$
|
|
19714
|
-
VVSelection: _sfc_main$
|
|
20159
|
+
VVAction: _sfc_main$t,
|
|
20160
|
+
VVSelection: _sfc_main$t
|
|
19715
20161
|
};
|
|
19716
20162
|
const opponents = {
|
|
19717
20163
|
x: "y",
|
|
@@ -19731,20 +20177,6 @@ const _sfc_main$1 = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
19731
20177
|
const selectionPreview = useModel(__props, "selectionPreview");
|
|
19732
20178
|
const selectionPreviewTheme = useModel(__props, "selectionPreviewTheme");
|
|
19733
20179
|
const transition = useModel(__props, "transition");
|
|
19734
|
-
function expandFragment(componentList) {
|
|
19735
|
-
if (componentList == null) return [];
|
|
19736
|
-
return componentList.flatMap((layer) => {
|
|
19737
|
-
if (layer.type == Fragment) {
|
|
19738
|
-
return expandFragment(layer.children);
|
|
19739
|
-
} else if (layer.type == "template") {
|
|
19740
|
-
return expandFragment(layer.children).map((c) => {
|
|
19741
|
-
c.props = { ...c.props, ...layer.props };
|
|
19742
|
-
return c;
|
|
19743
|
-
});
|
|
19744
|
-
}
|
|
19745
|
-
return layer;
|
|
19746
|
-
});
|
|
19747
|
-
}
|
|
19748
20180
|
function resolveComponent(ast2) {
|
|
19749
20181
|
let result = {
|
|
19750
20182
|
props: Object.fromEntries(ast2.props.map((p) => {
|
|
@@ -19792,6 +20224,8 @@ const _sfc_main$1 = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
19792
20224
|
const vaction = computed(() => Object.values(vnodes.action).flat());
|
|
19793
20225
|
const vselection = computed(() => Object.values(vnodes.selection).flat());
|
|
19794
20226
|
const vdom = computed(() => Object.keys(vnodes.dom).flatMap((k) => k == "panel" ? [] : vnodes.dom[k]));
|
|
20227
|
+
const vdom_svg = computed(() => vdom.value.filter((v) => isSVGTag(v.type)));
|
|
20228
|
+
const vdom_etc = computed(() => vdom.value.filter((v) => !isSVGTag(v.type)));
|
|
19795
20229
|
const vBind = computed(() => {
|
|
19796
20230
|
let plot = {};
|
|
19797
20231
|
let wrapper = {};
|
|
@@ -20012,7 +20446,7 @@ const _sfc_main$1 = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
20012
20446
|
const buttonsMap = { left: 1, right: 2, middle: 4, X1: 8, X2: 16 };
|
|
20013
20447
|
const axes = computed(() => {
|
|
20014
20448
|
let ori = __props.flip ? { x: "v", y: "h" } : { x: "h", y: "v" };
|
|
20015
|
-
let allAxes = vaxis.value.map((c) => ({ ...c.type.$_props, ...c.props, $_children: c.children })).concat(__props.axes ?? []);
|
|
20449
|
+
let allAxes = vaxis.value.map((c) => ({ ...c.type.$_props, ...c.props, $_children: c.children ?? {} })).concat(__props.axes ?? []);
|
|
20016
20450
|
if (allAxes.every((ax) => ax?.coord != "x")) allAxes.push({ coord: "x" });
|
|
20017
20451
|
if (allAxes.every((ax) => ax?.coord != "y")) allAxes.push({ coord: "y" });
|
|
20018
20452
|
return allAxes.map(({
|
|
@@ -20039,7 +20473,7 @@ const _sfc_main$1 = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
20039
20473
|
max,
|
|
20040
20474
|
"onUpdate:min": oum,
|
|
20041
20475
|
"onUpdate:max": ouM,
|
|
20042
|
-
$_children,
|
|
20476
|
+
$_children = {},
|
|
20043
20477
|
...etc
|
|
20044
20478
|
}) => {
|
|
20045
20479
|
let orientation = ori[coord];
|
|
@@ -20051,7 +20485,8 @@ const _sfc_main$1 = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
20051
20485
|
position = { h: "top", v: "right" }[orientation];
|
|
20052
20486
|
if (reverse[opponents[coord]]) position = opponents[position];
|
|
20053
20487
|
}
|
|
20054
|
-
let
|
|
20488
|
+
let breakSlot = $_children.breaks;
|
|
20489
|
+
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) => {
|
|
20055
20490
|
let res = [];
|
|
20056
20491
|
for (let a of ["move", "nudge", "zoom", "rescale"]) {
|
|
20057
20492
|
let act = props[a];
|
|
@@ -20081,6 +20516,7 @@ const _sfc_main$1 = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
20081
20516
|
labels,
|
|
20082
20517
|
titles,
|
|
20083
20518
|
minorBreaks,
|
|
20519
|
+
breakSlot,
|
|
20084
20520
|
showGrid: _isPropTruthy(showGrid) ?? position !== "none",
|
|
20085
20521
|
extend: extend2 ?? primaryAxisConfig.extend[coord],
|
|
20086
20522
|
theme: Object.assign({}, ...[theme2.value?.axis?.[position] ?? theme2.value?.axis?.[orientation]].concat($$theme)),
|
|
@@ -20238,7 +20674,7 @@ const _sfc_main$1 = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
20238
20674
|
class: "vvplot",
|
|
20239
20675
|
style: wrapperStyle.value
|
|
20240
20676
|
}, vBind.value.wrapper), [
|
|
20241
|
-
createVNode(_sfc_main$
|
|
20677
|
+
createVNode(_sfc_main$u, mergeProps({
|
|
20242
20678
|
ref: "plot",
|
|
20243
20679
|
paddings,
|
|
20244
20680
|
schema: schema.value,
|
|
@@ -20267,7 +20703,14 @@ const _sfc_main$1 = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
20267
20703
|
dpi: __props.dpi ?? 96 * unref(pixelRatio),
|
|
20268
20704
|
legendTeleport: __props.legendTeleport,
|
|
20269
20705
|
onSelect: _cache[3] || (_cache[3] = (d, e) => emit("select", d, e))
|
|
20270
|
-
}),
|
|
20706
|
+
}), {
|
|
20707
|
+
default: withCtx(() => [
|
|
20708
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(vdom_svg.value, (c) => {
|
|
20709
|
+
return openBlock(), createBlock(resolveDynamicComponent(c));
|
|
20710
|
+
}), 256))
|
|
20711
|
+
]),
|
|
20712
|
+
_: 1
|
|
20713
|
+
}, 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"]),
|
|
20271
20714
|
_cache[4] || (_cache[4] = createTextVNode()),
|
|
20272
20715
|
createElementVNode("div", {
|
|
20273
20716
|
class: "vvplot-panel-container",
|
|
@@ -20280,7 +20723,7 @@ const _sfc_main$1 = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
20280
20723
|
])) : createCommentVNode("", true)
|
|
20281
20724
|
], 4),
|
|
20282
20725
|
_cache[5] || (_cache[5] = createTextVNode()),
|
|
20283
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
20726
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(vdom_etc.value, (c) => {
|
|
20284
20727
|
return openBlock(), createBlock(resolveDynamicComponent(c));
|
|
20285
20728
|
}), 256))
|
|
20286
20729
|
], 16);
|
|
@@ -20293,67 +20736,75 @@ const _sfc_main = {
|
|
|
20293
20736
|
};
|
|
20294
20737
|
const index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
20295
20738
|
__proto__: null,
|
|
20296
|
-
VVAction: _sfc_main$
|
|
20297
|
-
VVAxis: _sfc_main$
|
|
20298
|
-
|
|
20299
|
-
|
|
20300
|
-
|
|
20301
|
-
|
|
20302
|
-
|
|
20303
|
-
|
|
20304
|
-
|
|
20305
|
-
|
|
20306
|
-
|
|
20307
|
-
|
|
20308
|
-
|
|
20309
|
-
|
|
20310
|
-
|
|
20311
|
-
|
|
20312
|
-
|
|
20313
|
-
|
|
20314
|
-
|
|
20315
|
-
|
|
20316
|
-
|
|
20317
|
-
|
|
20318
|
-
|
|
20319
|
-
|
|
20320
|
-
|
|
20739
|
+
VVAction: _sfc_main$t,
|
|
20740
|
+
VVAxis: _sfc_main$5,
|
|
20741
|
+
VVAxisBreak: _sfc_main$2,
|
|
20742
|
+
VVAxisX: _sfc_main$4,
|
|
20743
|
+
VVAxisY: _sfc_main$3,
|
|
20744
|
+
VVGeom: _sfc_main$s,
|
|
20745
|
+
VVGeomBar: _sfc_main$r,
|
|
20746
|
+
VVGeomBlank: _sfc_main$q,
|
|
20747
|
+
VVGeomBoxplot: _sfc_main$p,
|
|
20748
|
+
VVGeomCurve: _sfc_main$o,
|
|
20749
|
+
VVGeomDensity: _sfc_main$n,
|
|
20750
|
+
VVGeomEllipse: _sfc_main$m,
|
|
20751
|
+
VVGeomHistogram: _sfc_main$l,
|
|
20752
|
+
VVGeomLine: _sfc_main$k,
|
|
20753
|
+
VVGeomLinerange: _sfc_main$j,
|
|
20754
|
+
VVGeomMarkdown: _sfc_main$i,
|
|
20755
|
+
VVGeomMarkdownsegment: _sfc_main$h,
|
|
20756
|
+
VVGeomPath: _sfc_main$g,
|
|
20757
|
+
VVGeomPoint: _sfc_main$f,
|
|
20758
|
+
VVGeomPolygon: _sfc_main$e,
|
|
20759
|
+
VVGeomRect: _sfc_main$d,
|
|
20760
|
+
VVGeomSegment: _sfc_main$c,
|
|
20761
|
+
VVGeomShape: _sfc_main$b,
|
|
20762
|
+
VVGeomStick: _sfc_main$a,
|
|
20763
|
+
VVGeomText: _sfc_main$9,
|
|
20764
|
+
VVGeomTextsegment: _sfc_main$8,
|
|
20765
|
+
VVGeomTile: _sfc_main$7,
|
|
20766
|
+
VVGeomViolin: _sfc_main$6,
|
|
20321
20767
|
VVPlot: _sfc_main$1,
|
|
20322
20768
|
VVSelection: _sfc_main
|
|
20323
20769
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
20324
20770
|
export {
|
|
20325
|
-
_sfc_main$
|
|
20326
|
-
_sfc_main$
|
|
20327
|
-
_sfc_main$
|
|
20328
|
-
_sfc_main$
|
|
20329
|
-
_sfc_main$
|
|
20330
|
-
_sfc_main$
|
|
20331
|
-
_sfc_main$
|
|
20332
|
-
_sfc_main$
|
|
20333
|
-
_sfc_main$
|
|
20334
|
-
_sfc_main$
|
|
20335
|
-
_sfc_main$
|
|
20336
|
-
_sfc_main$
|
|
20337
|
-
_sfc_main$
|
|
20338
|
-
_sfc_main$
|
|
20339
|
-
_sfc_main$
|
|
20340
|
-
_sfc_main$
|
|
20341
|
-
_sfc_main$
|
|
20342
|
-
_sfc_main$
|
|
20343
|
-
_sfc_main$
|
|
20344
|
-
_sfc_main$
|
|
20345
|
-
_sfc_main$
|
|
20346
|
-
_sfc_main$
|
|
20347
|
-
_sfc_main$
|
|
20348
|
-
_sfc_main$
|
|
20349
|
-
_sfc_main$
|
|
20771
|
+
_sfc_main$t as VVAction,
|
|
20772
|
+
_sfc_main$5 as VVAxis,
|
|
20773
|
+
_sfc_main$2 as VVAxisBreak,
|
|
20774
|
+
_sfc_main$4 as VVAxisX,
|
|
20775
|
+
_sfc_main$3 as VVAxisY,
|
|
20776
|
+
_sfc_main$s as VVGeom,
|
|
20777
|
+
_sfc_main$r as VVGeomBar,
|
|
20778
|
+
_sfc_main$q as VVGeomBlank,
|
|
20779
|
+
_sfc_main$p as VVGeomBoxplot,
|
|
20780
|
+
_sfc_main$o as VVGeomCurve,
|
|
20781
|
+
_sfc_main$n as VVGeomDensity,
|
|
20782
|
+
_sfc_main$m as VVGeomEllipse,
|
|
20783
|
+
_sfc_main$l as VVGeomHistogram,
|
|
20784
|
+
_sfc_main$k as VVGeomLine,
|
|
20785
|
+
_sfc_main$j as VVGeomLinerange,
|
|
20786
|
+
_sfc_main$i as VVGeomMarkdown,
|
|
20787
|
+
_sfc_main$h as VVGeomMarkdownsegment,
|
|
20788
|
+
_sfc_main$g as VVGeomPath,
|
|
20789
|
+
_sfc_main$f as VVGeomPoint,
|
|
20790
|
+
_sfc_main$e as VVGeomPolygon,
|
|
20791
|
+
_sfc_main$d as VVGeomRect,
|
|
20792
|
+
_sfc_main$c as VVGeomSegment,
|
|
20793
|
+
_sfc_main$b as VVGeomShape,
|
|
20794
|
+
_sfc_main$a as VVGeomStick,
|
|
20795
|
+
_sfc_main$9 as VVGeomText,
|
|
20796
|
+
_sfc_main$8 as VVGeomTextsegment,
|
|
20797
|
+
_sfc_main$7 as VVGeomTile,
|
|
20798
|
+
_sfc_main$6 as VVGeomViolin,
|
|
20350
20799
|
_sfc_main$1 as VVPlot,
|
|
20351
20800
|
_sfc_main as VVSelection,
|
|
20352
20801
|
index as components,
|
|
20353
20802
|
number_cut,
|
|
20354
20803
|
oob,
|
|
20355
20804
|
vvbreak,
|
|
20805
|
+
vvgeom,
|
|
20356
20806
|
vvlabel,
|
|
20357
20807
|
vvscale,
|
|
20808
|
+
vvstat,
|
|
20358
20809
|
theme as vvtheme
|
|
20359
20810
|
};
|