vvplot 0.4.1 → 0.4.2
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.d.ts +0 -315
- package/dist/vvplot.esm.js +18 -18
- package/dist/vvplot.esm.min.js +6 -6
- package/dist/vvplot.global.js +18 -18
- package/dist/vvplot.global.min.js +2 -2
- package/package.json +1 -1
package/dist/vvplot.d.ts
CHANGED
|
@@ -1,316 +1 @@
|
|
|
1
|
-
import { ComponentOptionsMixin } from '../../vue/dist/vue.esm-bundler.js';
|
|
2
|
-
import { ComponentOptionsMixin as ComponentOptionsMixin_2 } from '../../../vue/dist/vue.esm-bundler.js';
|
|
3
|
-
import { ComponentProvideOptions } from '../../vue/dist/vue.esm-bundler.js';
|
|
4
|
-
import { ComponentProvideOptions as ComponentProvideOptions_2 } from '../../../vue/dist/vue.esm-bundler.js';
|
|
5
|
-
import { DefineComponent } from '../../vue/dist/vue.esm-bundler.js';
|
|
6
|
-
import { DefineComponent as DefineComponent_2 } from '../../../vue/dist/vue.esm-bundler.js';
|
|
7
|
-
import { PublicProps } from '../../vue/dist/vue.esm-bundler.js';
|
|
8
|
-
import { PublicProps as PublicProps_2 } from '../../../vue/dist/vue.esm-bundler.js';
|
|
9
|
-
|
|
10
|
-
export declare namespace components {
|
|
11
|
-
export {
|
|
12
|
-
VVPlot,
|
|
13
|
-
VVAction,
|
|
14
|
-
VVSelection,
|
|
15
|
-
VVAxis,
|
|
16
|
-
VVAxisX,
|
|
17
|
-
VVAxisY,
|
|
18
|
-
VVGeom,
|
|
19
|
-
VVGeomBar,
|
|
20
|
-
VVGeomBlank,
|
|
21
|
-
VVGeomBoxplot,
|
|
22
|
-
VVGeomCurve,
|
|
23
|
-
VVGeomDensity,
|
|
24
|
-
VVGeomEllipse,
|
|
25
|
-
VVGeomHistogram,
|
|
26
|
-
VVGeomLine,
|
|
27
|
-
VVGeomLinerange,
|
|
28
|
-
VVGeomMarkdown,
|
|
29
|
-
VVGeomMarkdownsegment,
|
|
30
|
-
VVGeomPath,
|
|
31
|
-
VVGeomPoint,
|
|
32
|
-
VVGeomPolygon,
|
|
33
|
-
VVGeomRect,
|
|
34
|
-
VVGeomSegment,
|
|
35
|
-
VVGeomStick,
|
|
36
|
-
VVGeomText,
|
|
37
|
-
VVGeomTextsegment,
|
|
38
|
-
VVGeomTile
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export declare namespace number_cut {
|
|
43
|
-
let _default: {
|
|
44
|
-
'': number;
|
|
45
|
-
k: number;
|
|
46
|
-
M: number;
|
|
47
|
-
G: number;
|
|
48
|
-
T: number;
|
|
49
|
-
P: number;
|
|
50
|
-
E: number;
|
|
51
|
-
Z: number;
|
|
52
|
-
Y: number;
|
|
53
|
-
};
|
|
54
|
-
export { _default as default };
|
|
55
|
-
let si: {
|
|
56
|
-
y: number;
|
|
57
|
-
z: number;
|
|
58
|
-
a: number;
|
|
59
|
-
f: number;
|
|
60
|
-
p: number;
|
|
61
|
-
n: number;
|
|
62
|
-
μ: number;
|
|
63
|
-
m: number;
|
|
64
|
-
'': number;
|
|
65
|
-
k: number;
|
|
66
|
-
M: number;
|
|
67
|
-
G: number;
|
|
68
|
-
T: number;
|
|
69
|
-
P: number;
|
|
70
|
-
E: number;
|
|
71
|
-
Z: number;
|
|
72
|
-
Y: number;
|
|
73
|
-
};
|
|
74
|
-
let binary: {
|
|
75
|
-
'': number;
|
|
76
|
-
Ki: number;
|
|
77
|
-
Mi: number;
|
|
78
|
-
Gi: number;
|
|
79
|
-
Ti: number;
|
|
80
|
-
Pi: number;
|
|
81
|
-
Ei: number;
|
|
82
|
-
Zi: number;
|
|
83
|
-
Yi: number;
|
|
84
|
-
};
|
|
85
|
-
export namespace time {
|
|
86
|
-
let ns: number;
|
|
87
|
-
let μs: number;
|
|
88
|
-
let ms: number;
|
|
89
|
-
let s: number;
|
|
90
|
-
let m: number;
|
|
91
|
-
let h: number;
|
|
92
|
-
let d: number;
|
|
93
|
-
let w: number;
|
|
94
|
-
let M: number;
|
|
95
|
-
let y: number;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
export declare namespace oob {
|
|
100
|
-
export { oob_censor as censor };
|
|
101
|
-
export function squish(value: any, { min, max }: {
|
|
102
|
-
min: any;
|
|
103
|
-
max: any;
|
|
104
|
-
}): any;
|
|
105
|
-
export { oob_squish_any as squish_any };
|
|
106
|
-
export { oob_squish_infinite as squish_infinite };
|
|
107
|
-
export function discard(value: any, { min, max }: {
|
|
108
|
-
min: any;
|
|
109
|
-
max: any;
|
|
110
|
-
}): any;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* turn out-of-bounds values to NaN
|
|
115
|
-
* @param {number} value
|
|
116
|
-
* @param {Object} option
|
|
117
|
-
* @param {number} option.min lower bound
|
|
118
|
-
* @param {number} option.max upper bound
|
|
119
|
-
* @returns {number}
|
|
120
|
-
*/
|
|
121
|
-
declare function oob_censor(value: number, { min, max }: {
|
|
122
|
-
min: number;
|
|
123
|
-
max: number;
|
|
124
|
-
}): number;
|
|
125
|
-
|
|
126
|
-
export declare const VVAction: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
127
|
-
|
|
128
|
-
export declare const VVAxis: DefineComponent_2< {}, {}, {}, {}, {}, ComponentOptionsMixin_2, ComponentOptionsMixin_2, {}, string, PublicProps_2, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions_2, true, {}, any>;
|
|
129
|
-
|
|
130
|
-
export declare const VVAxisX: DefineComponent_2< {}, {}, {}, {}, {}, ComponentOptionsMixin_2, ComponentOptionsMixin_2, {}, string, PublicProps_2, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions_2, true, {}, any>;
|
|
131
|
-
|
|
132
|
-
export declare const VVAxisY: DefineComponent_2< {}, {}, {}, {}, {}, ComponentOptionsMixin_2, ComponentOptionsMixin_2, {}, string, PublicProps_2, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions_2, true, {}, any>;
|
|
133
|
-
|
|
134
|
-
export declare namespace vvbreak {
|
|
135
|
-
export { break_number as number };
|
|
136
|
-
export { break_datetime as datetime };
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
export declare const VVGeom: DefineComponent_2< {}, {}, {}, {}, {}, ComponentOptionsMixin_2, ComponentOptionsMixin_2, {}, string, PublicProps_2, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions_2, true, {}, any>;
|
|
140
|
-
|
|
141
|
-
export declare const VVGeomBar: DefineComponent_2< {}, {}, {}, {}, {}, ComponentOptionsMixin_2, ComponentOptionsMixin_2, {}, string, PublicProps_2, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions_2, true, {}, any>;
|
|
142
|
-
|
|
143
|
-
export declare const VVGeomBlank: DefineComponent_2< {}, {}, {}, {}, {}, ComponentOptionsMixin_2, ComponentOptionsMixin_2, {}, string, PublicProps_2, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions_2, true, {}, any>;
|
|
144
|
-
|
|
145
|
-
export declare const VVGeomBoxplot: DefineComponent_2< {}, {}, {}, {}, {}, ComponentOptionsMixin_2, ComponentOptionsMixin_2, {}, string, PublicProps_2, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions_2, true, {}, any>;
|
|
146
|
-
|
|
147
|
-
export declare const VVGeomCurve: DefineComponent_2< {}, {}, {}, {}, {}, ComponentOptionsMixin_2, ComponentOptionsMixin_2, {}, string, PublicProps_2, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions_2, true, {}, any>;
|
|
148
|
-
|
|
149
|
-
export declare const VVGeomDensity: DefineComponent_2< {}, {}, {}, {}, {}, ComponentOptionsMixin_2, ComponentOptionsMixin_2, {}, string, PublicProps_2, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions_2, true, {}, any>;
|
|
150
|
-
|
|
151
|
-
export declare const VVGeomEllipse: DefineComponent_2< {}, {}, {}, {}, {}, ComponentOptionsMixin_2, ComponentOptionsMixin_2, {}, string, PublicProps_2, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions_2, true, {}, any>;
|
|
152
|
-
|
|
153
|
-
export declare const VVGeomHistogram: DefineComponent_2< {}, {}, {}, {}, {}, ComponentOptionsMixin_2, ComponentOptionsMixin_2, {}, string, PublicProps_2, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions_2, true, {}, any>;
|
|
154
|
-
|
|
155
|
-
export declare const VVGeomLine: DefineComponent_2< {}, {}, {}, {}, {}, ComponentOptionsMixin_2, ComponentOptionsMixin_2, {}, string, PublicProps_2, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions_2, true, {}, any>;
|
|
156
|
-
|
|
157
|
-
export declare const VVGeomLinerange: DefineComponent_2< {}, {}, {}, {}, {}, ComponentOptionsMixin_2, ComponentOptionsMixin_2, {}, string, PublicProps_2, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions_2, true, {}, any>;
|
|
158
|
-
|
|
159
|
-
export declare const VVGeomMarkdown: DefineComponent_2< {}, {}, {}, {}, {}, ComponentOptionsMixin_2, ComponentOptionsMixin_2, {}, string, PublicProps_2, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions_2, true, {}, any>;
|
|
160
|
-
|
|
161
|
-
export declare const VVGeomMarkdownsegment: DefineComponent_2< {}, {}, {}, {}, {}, ComponentOptionsMixin_2, ComponentOptionsMixin_2, {}, string, PublicProps_2, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions_2, true, {}, any>;
|
|
162
|
-
|
|
163
|
-
export declare const VVGeomPath: DefineComponent_2< {}, {}, {}, {}, {}, ComponentOptionsMixin_2, ComponentOptionsMixin_2, {}, string, PublicProps_2, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions_2, true, {}, any>;
|
|
164
|
-
|
|
165
|
-
export declare const VVGeomPoint: DefineComponent_2< {}, {}, {}, {}, {}, ComponentOptionsMixin_2, ComponentOptionsMixin_2, {}, string, PublicProps_2, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions_2, true, {}, any>;
|
|
166
|
-
|
|
167
|
-
export declare const VVGeomPolygon: DefineComponent_2< {}, {}, {}, {}, {}, ComponentOptionsMixin_2, ComponentOptionsMixin_2, {}, string, PublicProps_2, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions_2, true, {}, any>;
|
|
168
|
-
|
|
169
|
-
export declare const VVGeomRect: DefineComponent_2< {}, {}, {}, {}, {}, ComponentOptionsMixin_2, ComponentOptionsMixin_2, {}, string, PublicProps_2, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions_2, true, {}, any>;
|
|
170
|
-
|
|
171
|
-
export declare const VVGeomSegment: DefineComponent_2< {}, {}, {}, {}, {}, ComponentOptionsMixin_2, ComponentOptionsMixin_2, {}, string, PublicProps_2, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions_2, true, {}, any>;
|
|
172
|
-
|
|
173
|
-
export declare const VVGeomStick: DefineComponent_2< {}, {}, {}, {}, {}, ComponentOptionsMixin_2, ComponentOptionsMixin_2, {}, string, PublicProps_2, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions_2, true, {}, any>;
|
|
174
|
-
|
|
175
|
-
export declare const VVGeomText: DefineComponent_2< {}, {}, {}, {}, {}, ComponentOptionsMixin_2, ComponentOptionsMixin_2, {}, string, PublicProps_2, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions_2, true, {}, any>;
|
|
176
|
-
|
|
177
|
-
export declare const VVGeomTextsegment: DefineComponent_2< {}, {}, {}, {}, {}, ComponentOptionsMixin_2, ComponentOptionsMixin_2, {}, string, PublicProps_2, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions_2, true, {}, any>;
|
|
178
|
-
|
|
179
|
-
export declare const VVGeomTile: DefineComponent_2< {}, {}, {}, {}, {}, ComponentOptionsMixin_2, ComponentOptionsMixin_2, {}, string, PublicProps_2, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions_2, true, {}, any>;
|
|
180
|
-
|
|
181
|
-
export declare namespace vvlabel {
|
|
182
|
-
export { format_number as number };
|
|
183
|
-
export { format_datetime as datetime };
|
|
184
|
-
export { format_datetime as timestamp };
|
|
185
|
-
export { format_asis as asis };
|
|
186
|
-
export { format_auto as auto };
|
|
187
|
-
export function _default_1(opts: any): (x: any, i: any, arr?: any[]) => string;
|
|
188
|
-
export { _default_1 as default };
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
export declare const VVPlot: DefineComponent< {}, {
|
|
192
|
-
svg: any;
|
|
193
|
-
serialize(): string | null;
|
|
194
|
-
$emit: (event: "resize" | "select" | "rangechange" | "update:range" | "update:rangePreview", ...args: any[]) => void;
|
|
195
|
-
flip: boolean;
|
|
196
|
-
clip: boolean;
|
|
197
|
-
reverse?: Record<string, any> | undefined;
|
|
198
|
-
resize?: any;
|
|
199
|
-
theme?: Record<string, any> | unknown[] | undefined;
|
|
200
|
-
action?: Record<string, any> | unknown[] | undefined;
|
|
201
|
-
data?: unknown[] | undefined;
|
|
202
|
-
render?: string | undefined;
|
|
203
|
-
scales?: Record<string, any> | undefined;
|
|
204
|
-
minRange?: Record<string, any> | undefined;
|
|
205
|
-
expandAdd?: Record<string, any> | undefined;
|
|
206
|
-
expandMult?: Record<string, any> | undefined;
|
|
207
|
-
levels?: Record<string, any> | undefined;
|
|
208
|
-
axes?: Record<string, any> | unknown[] | undefined;
|
|
209
|
-
legendTeleport?: any;
|
|
210
|
-
range?: Record<string, any> | undefined;
|
|
211
|
-
rangePreview?: Record<string, any> | undefined;
|
|
212
|
-
aes?: Record<string, any> | undefined;
|
|
213
|
-
extend?: Record<string, any> | undefined;
|
|
214
|
-
$props: {
|
|
215
|
-
readonly flip?: boolean | undefined;
|
|
216
|
-
readonly clip?: boolean | undefined;
|
|
217
|
-
readonly reverse?: Record<string, any> | undefined;
|
|
218
|
-
readonly resize?: any;
|
|
219
|
-
readonly theme?: Record<string, any> | unknown[] | undefined;
|
|
220
|
-
readonly action?: Record<string, any> | unknown[] | undefined;
|
|
221
|
-
readonly data?: unknown[] | undefined;
|
|
222
|
-
readonly render?: string | undefined;
|
|
223
|
-
readonly scales?: Record<string, any> | undefined;
|
|
224
|
-
readonly minRange?: Record<string, any> | undefined;
|
|
225
|
-
readonly expandAdd?: Record<string, any> | undefined;
|
|
226
|
-
readonly expandMult?: Record<string, any> | undefined;
|
|
227
|
-
readonly levels?: Record<string, any> | undefined;
|
|
228
|
-
readonly axes?: Record<string, any> | unknown[] | undefined;
|
|
229
|
-
readonly legendTeleport?: any;
|
|
230
|
-
readonly range?: Record<string, any> | undefined;
|
|
231
|
-
readonly rangePreview?: Record<string, any> | undefined;
|
|
232
|
-
readonly aes?: Record<string, any> | undefined;
|
|
233
|
-
readonly extend?: Record<string, any> | undefined;
|
|
234
|
-
};
|
|
235
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, any, any>;
|
|
236
|
-
|
|
237
|
-
export declare namespace vvscale {
|
|
238
|
-
export { palette_scales as color };
|
|
239
|
-
export { palette_scales as stroke };
|
|
240
|
-
export { palette_scales as fill };
|
|
241
|
-
export namespace alpha {
|
|
242
|
-
export { continuous_scale as continuous };
|
|
243
|
-
export { custom_scale as custom };
|
|
244
|
-
export function _default({ title, ...etc }?: {}): ((arr: any) => any) & {
|
|
245
|
-
title: any;
|
|
246
|
-
limits: any;
|
|
247
|
-
oob: typeof oob_censor;
|
|
248
|
-
};
|
|
249
|
-
export { _default as default };
|
|
250
|
-
}
|
|
251
|
-
export namespace size {
|
|
252
|
-
export function identity({ title, ...etc }?: {}): ((arr: any) => any) & {
|
|
253
|
-
asis: boolean;
|
|
254
|
-
title: any;
|
|
255
|
-
};
|
|
256
|
-
export { continuous_scale as continuous };
|
|
257
|
-
export { custom_scale as custom };
|
|
258
|
-
export function _default_1({ title, ...etc }?: {}): ((arr: any) => any) & {
|
|
259
|
-
title: any;
|
|
260
|
-
limits: any;
|
|
261
|
-
oob: typeof oob_censor;
|
|
262
|
-
};
|
|
263
|
-
export { _default_1 as default };
|
|
264
|
-
}
|
|
265
|
-
export namespace linewidth {
|
|
266
|
-
export function identity_1({ title, ...etc }?: {}): ((arr: any) => any) & {
|
|
267
|
-
asis: boolean;
|
|
268
|
-
title: any;
|
|
269
|
-
};
|
|
270
|
-
export { identity_1 as identity };
|
|
271
|
-
export { continuous_scale as continuous };
|
|
272
|
-
export { manual_scale as manual };
|
|
273
|
-
export { custom_scale as custom };
|
|
274
|
-
export function _default_2({ title, ...etc }?: {}): ((arr: any) => any) & {
|
|
275
|
-
title: any;
|
|
276
|
-
limits: any;
|
|
277
|
-
oob: typeof oob_censor;
|
|
278
|
-
};
|
|
279
|
-
export { _default_2 as default };
|
|
280
|
-
}
|
|
281
|
-
export namespace linetype {
|
|
282
|
-
export function identity_2({ title, ...etc }?: {}): ((arr: any) => any) & {
|
|
283
|
-
asis: boolean;
|
|
284
|
-
title: any;
|
|
285
|
-
};
|
|
286
|
-
export { identity_2 as identity };
|
|
287
|
-
export { linetype_scale_discrete as discrete };
|
|
288
|
-
export { linetype_scale_discrete as default };
|
|
289
|
-
export { custom_scale as custom };
|
|
290
|
-
}
|
|
291
|
-
export namespace shape {
|
|
292
|
-
export function identity_3({ title, ...etc }?: {}): ((arr: any) => any) & {
|
|
293
|
-
asis: boolean;
|
|
294
|
-
title: any;
|
|
295
|
-
};
|
|
296
|
-
export { identity_3 as identity };
|
|
297
|
-
export { shape_scale_discrete as discrete };
|
|
298
|
-
export { shape_scale_discrete as default };
|
|
299
|
-
export { custom_scale as custom };
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
export declare const VVSelection: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
304
|
-
|
|
305
|
-
export declare namespace vvtheme {
|
|
306
|
-
export { theme_base as base };
|
|
307
|
-
export { theme_default as default };
|
|
308
|
-
export { theme_light as light };
|
|
309
|
-
export { theme_classic as classic };
|
|
310
|
-
export { theme_gray as gray };
|
|
311
|
-
export { theme_dark as dark };
|
|
312
|
-
export { theme_linedraw as linedraw };
|
|
313
|
-
export { theme_void as void };
|
|
314
|
-
}
|
|
315
|
-
|
|
316
1
|
export { }
|
package/dist/vvplot.esm.js
CHANGED
|
@@ -2071,7 +2071,7 @@ const theme_base = {
|
|
|
2071
2071
|
plot: {
|
|
2072
2072
|
margin: 20,
|
|
2073
2073
|
padding_h: 50,
|
|
2074
|
-
padding_v:
|
|
2074
|
+
padding_v: 30
|
|
2075
2075
|
},
|
|
2076
2076
|
legend: {
|
|
2077
2077
|
spacing: 4
|
|
@@ -6610,7 +6610,7 @@ function object_map(obj, expr) {
|
|
|
6610
6610
|
return Object.fromEntries(Object.entries(obj).map(([k, v]) => [k, expr(k, v)]));
|
|
6611
6611
|
}
|
|
6612
6612
|
function is_categorical(v) {
|
|
6613
|
-
return typeof v === "string" || typeof v === "boolean" || typeof v === "symbol" || typeof v === "object" && typeof v.valueOf() !== "number" && typeof v.valueOf() !== "bigint";
|
|
6613
|
+
return typeof v === "string" || typeof v === "boolean" || typeof v === "symbol" || typeof v === "object" && v !== null && typeof v.valueOf() !== "number" && typeof v.valueOf() !== "bigint";
|
|
6614
6614
|
}
|
|
6615
6615
|
class GLayer {
|
|
6616
6616
|
/**
|
|
@@ -14549,7 +14549,7 @@ const _sfc_main$11 = {
|
|
|
14549
14549
|
return result.filter((t) => t.stroke != null).sort((a, b) => a.x1 - b.x1);
|
|
14550
14550
|
});
|
|
14551
14551
|
const tickTexts = computed(() => {
|
|
14552
|
-
let isTop = __props.theme.tick_position == "top";
|
|
14552
|
+
let isTop = (__props.theme.label_position ?? __props.theme.tick_position) == "top";
|
|
14553
14553
|
let result = [];
|
|
14554
14554
|
for (let tick of __props.ticks) {
|
|
14555
14555
|
if (typeof tick == "number") tick = { position: tick, label: tick };
|
|
@@ -14557,14 +14557,14 @@ const _sfc_main$11 = {
|
|
|
14557
14557
|
let tsl = pos * (__props.activeTransform.scaleH - 1) + __props.activeTransform.translateH;
|
|
14558
14558
|
let position = pos + __props.layout.l;
|
|
14559
14559
|
if (position + tsl < 0 || position + tsl > width.value) continue;
|
|
14560
|
-
let offset = (isTop ? -1 : 1) * (tick.length ?? __props.theme.tick_length);
|
|
14560
|
+
let offset = (isTop ? -1 : 1) * (__props.theme.label_offset ?? tick.length ?? __props.theme.tick_length);
|
|
14561
14561
|
let anchorX, anchorY, dockX, dockY;
|
|
14562
|
-
if (__props.theme.
|
|
14563
|
-
anchorX = __props.theme.
|
|
14564
|
-
anchorY = __props.theme.
|
|
14562
|
+
if (__props.theme.label_anchor_x != null || __props.theme.label_anchor_y != null) {
|
|
14563
|
+
anchorX = __props.theme.label_anchor_x ?? 0.5;
|
|
14564
|
+
anchorY = __props.theme.label_anchor_y ?? (isTop ? 0 : 1);
|
|
14565
14565
|
} else {
|
|
14566
|
-
dockX = __props.theme.
|
|
14567
|
-
dockY = __props.theme.
|
|
14566
|
+
dockX = __props.theme.label_dock_x ?? 0.5;
|
|
14567
|
+
dockY = __props.theme.label_dock_y ?? (isTop ? 0 : 1);
|
|
14568
14568
|
}
|
|
14569
14569
|
result.push({
|
|
14570
14570
|
wrapper: {
|
|
@@ -14575,7 +14575,7 @@ const _sfc_main$11 = {
|
|
|
14575
14575
|
text: {
|
|
14576
14576
|
x: position,
|
|
14577
14577
|
y: offset,
|
|
14578
|
-
angle: __props.theme.
|
|
14578
|
+
angle: __props.theme.label_angle,
|
|
14579
14579
|
anchorX,
|
|
14580
14580
|
anchorY,
|
|
14581
14581
|
dockX,
|
|
@@ -14976,7 +14976,7 @@ const _sfc_main$10 = {
|
|
|
14976
14976
|
return result.filter((t) => t.stroke != null).sort((a, b) => a.y1 - b.y1);
|
|
14977
14977
|
});
|
|
14978
14978
|
const tickTexts = computed(() => {
|
|
14979
|
-
let isRight = __props.theme.tick_position == "right";
|
|
14979
|
+
let isRight = (__props.theme.label_position ?? __props.theme.tick_position) == "right";
|
|
14980
14980
|
let result = [];
|
|
14981
14981
|
for (let tick of __props.ticks) {
|
|
14982
14982
|
if (typeof tick == "number") tick = { position: tick };
|
|
@@ -14984,14 +14984,14 @@ const _sfc_main$10 = {
|
|
|
14984
14984
|
let tsl = pos * (__props.activeTransform.scaleV - 1) + __props.activeTransform.translateV;
|
|
14985
14985
|
let position = pos + __props.layout.t;
|
|
14986
14986
|
if (position + tsl < 0 || position + tsl > height.value) continue;
|
|
14987
|
-
let offset = (isRight ? 1 : -1) * ((tick.length ?? __props.theme.tick_length) + 3);
|
|
14987
|
+
let offset = (isRight ? 1 : -1) * ((__props.theme.label_offset ?? tick.length ?? __props.theme.tick_length) + 3);
|
|
14988
14988
|
let anchorX, anchorY, dockX, dockY;
|
|
14989
|
-
if (__props.theme.
|
|
14990
|
-
anchorX = __props.theme.
|
|
14991
|
-
anchorY = __props.theme.
|
|
14989
|
+
if (__props.theme.label_anchor_x != null || __props.theme.label_anchor_y != null) {
|
|
14990
|
+
anchorX = __props.theme.label_anchor_x ?? (isRight ? 0 : 1);
|
|
14991
|
+
anchorY = __props.theme.label_anchor_y ?? 0.5;
|
|
14992
14992
|
} else {
|
|
14993
|
-
dockX = __props.theme.
|
|
14994
|
-
dockY = __props.theme.
|
|
14993
|
+
dockX = __props.theme.label_dock_x ?? (isRight ? 0 : 1);
|
|
14994
|
+
dockY = __props.theme.label_dock_y ?? 0.5;
|
|
14995
14995
|
}
|
|
14996
14996
|
result.push({
|
|
14997
14997
|
wrapper: {
|
|
@@ -15002,7 +15002,7 @@ const _sfc_main$10 = {
|
|
|
15002
15002
|
text: {
|
|
15003
15003
|
y: position,
|
|
15004
15004
|
x: offset,
|
|
15005
|
-
angle: __props.theme.
|
|
15005
|
+
angle: __props.theme.label_angle,
|
|
15006
15006
|
anchorX,
|
|
15007
15007
|
anchorY,
|
|
15008
15008
|
dockX,
|