vvplot 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/vvplot.d.ts +578 -426
- package/dist/vvplot.esm.js +36004 -36069
- package/dist/vvplot.esm.min.js +26 -26
- package/dist/vvplot.global.js +36048 -36082
- package/dist/vvplot.global.min.js +26 -26
- package/package.json +4 -3
package/dist/vvplot.d.ts
CHANGED
|
@@ -24,42 +24,61 @@ import { VNodeProps } from 'vue';
|
|
|
24
24
|
import { WatchOptions } from 'vue';
|
|
25
25
|
import { WatchStopHandle } from 'vue';
|
|
26
26
|
|
|
27
|
+
declare class Asis {
|
|
28
|
+
static "__#private@#cache": Map<any, any>;
|
|
29
|
+
static [Symbol.hasInstance](obj: any): obj is AsisString | AsisNumber;
|
|
30
|
+
constructor(value: any);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
declare class AsisNumber extends Number {
|
|
34
|
+
static "__#private@#cache": Map<any, any>;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
declare class AsisString extends String {
|
|
38
|
+
static "__#private@#cache": Map<any, any>;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Create a shallow categorical representation for a list of object.
|
|
43
|
+
* @param {object[]} array
|
|
44
|
+
* @param {function} [comparer] optional comparer function, will be passed to `deepEqual` to decide equality.
|
|
45
|
+
* @returns {number[]} result
|
|
46
|
+
* @returns {Array[]} result.categories
|
|
47
|
+
*/
|
|
48
|
+
declare function categorize(array: object[], comparer?: Function): number[];
|
|
49
|
+
|
|
27
50
|
export declare namespace components {
|
|
28
51
|
export {
|
|
29
52
|
VVPlot,
|
|
30
|
-
VVAction,
|
|
31
|
-
VVSelection,
|
|
32
53
|
VVAxis,
|
|
33
54
|
VVAxisX,
|
|
34
55
|
VVAxisY,
|
|
35
56
|
VVAxisBreak,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
VVGeomBoxplot,
|
|
40
|
-
VVGeomCol,
|
|
41
|
-
VVGeomCurve,
|
|
42
|
-
VVGeomDensity,
|
|
43
|
-
VVGeomEllipse,
|
|
44
|
-
VVGeomHistogram,
|
|
45
|
-
VVGeomLine,
|
|
46
|
-
VVGeomLinerange,
|
|
47
|
-
VVGeomMarkdown,
|
|
48
|
-
VVGeomMarkdownsegment,
|
|
49
|
-
VVGeomPath,
|
|
50
|
-
VVGeomPoint,
|
|
51
|
-
VVGeomPolygon,
|
|
52
|
-
VVGeomRect,
|
|
53
|
-
VVGeomSegment,
|
|
54
|
-
VVGeomShape,
|
|
55
|
-
VVGeomStick,
|
|
56
|
-
VVGeomText,
|
|
57
|
-
VVGeomTextsegment,
|
|
58
|
-
VVGeomTile,
|
|
59
|
-
VVGeomViolin
|
|
57
|
+
VVAction,
|
|
58
|
+
VVSelection,
|
|
59
|
+
VVGeom
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
+
export declare interface CoordinateMapping {
|
|
64
|
+
/** Map data coordinates / ranges to panel pixel coordinates. */
|
|
65
|
+
coord2pos: (coord: Record<string, any>, options?: Record<string, any>) => Record<string, number | undefined>;
|
|
66
|
+
/** Map panel pixel coordinates back to data coordinates. */
|
|
67
|
+
pos2coord: (coord: Record<string, any>) => Record<string, any>;
|
|
68
|
+
/** Read plot-relative and data coordinates from a DOM event. */
|
|
69
|
+
getCoord: (event: Event) => Record<string, any>;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* test deep equality between two values
|
|
74
|
+
* @param {*} a
|
|
75
|
+
* @param {*} b
|
|
76
|
+
* @param {function(*, *, number): boolean | undefined} [comparer] optional comparer function, will be applied before deep comparison, should return true/false or undefined (to continue deep comparison)
|
|
77
|
+
* @param {number} [level=0] the current depth of the comparison
|
|
78
|
+
* @returns {boolean}
|
|
79
|
+
*/
|
|
80
|
+
declare function deepEqual(a: any, b: any, comparer?: (arg0: any, arg1: any, arg2: number) => boolean | undefined, level?: number): boolean;
|
|
81
|
+
|
|
63
82
|
declare namespace _default {
|
|
64
83
|
let scale_attrs: never[];
|
|
65
84
|
function coord_scale(ds: any, levels: any): null;
|
|
@@ -68,6 +87,7 @@ declare namespace _default {
|
|
|
68
87
|
}
|
|
69
88
|
|
|
70
89
|
declare namespace _default_10 {
|
|
90
|
+
let legend_glyph: string;
|
|
71
91
|
let scale_attrs: string[];
|
|
72
92
|
function coord_scale(ds: any, levels: any): {
|
|
73
93
|
xmin: any[] | null;
|
|
@@ -80,6 +100,7 @@ declare namespace _default_10 {
|
|
|
80
100
|
}
|
|
81
101
|
|
|
82
102
|
declare namespace _default_11 {
|
|
103
|
+
let legend_glyph: string;
|
|
83
104
|
let scale_attrs: string[];
|
|
84
105
|
function coord_scale(ds: any, levels: any): {
|
|
85
106
|
points: any;
|
|
@@ -90,6 +111,7 @@ declare namespace _default_11 {
|
|
|
90
111
|
}
|
|
91
112
|
|
|
92
113
|
declare namespace _default_12 {
|
|
114
|
+
let legend_glyph: string;
|
|
93
115
|
let scale_attrs: string[];
|
|
94
116
|
function coord_scale(ds: any, levels: any): {
|
|
95
117
|
x: any[] | null;
|
|
@@ -103,6 +125,7 @@ declare namespace _default_12 {
|
|
|
103
125
|
}
|
|
104
126
|
|
|
105
127
|
declare namespace _default_13 {
|
|
128
|
+
let legend_glyph: string;
|
|
106
129
|
let scale_attrs: string[];
|
|
107
130
|
function coord_scale(ds: any, levels: any): {
|
|
108
131
|
x: any[] | null;
|
|
@@ -113,6 +136,7 @@ declare namespace _default_13 {
|
|
|
113
136
|
}
|
|
114
137
|
|
|
115
138
|
declare namespace _default_14 {
|
|
139
|
+
let legend_glyph: string;
|
|
116
140
|
let scale_attrs: string[];
|
|
117
141
|
function coord_scale(ds: any, levels: any): {
|
|
118
142
|
x: any[] | null;
|
|
@@ -125,6 +149,7 @@ declare namespace _default_14 {
|
|
|
125
149
|
}
|
|
126
150
|
|
|
127
151
|
declare namespace _default_15 {
|
|
152
|
+
let legend_glyph: string;
|
|
128
153
|
let scale_attrs: string[];
|
|
129
154
|
function coord_scale(ds: any, levels: any): {
|
|
130
155
|
xmin: any[] | null;
|
|
@@ -137,58 +162,16 @@ declare namespace _default_15 {
|
|
|
137
162
|
function validate(d: any): any;
|
|
138
163
|
}
|
|
139
164
|
|
|
140
|
-
declare const _default_16:
|
|
141
|
-
position?: string | undefined;
|
|
142
|
-
width?: number | undefined;
|
|
143
|
-
height?: number | undefined;
|
|
144
|
-
}) => {
|
|
145
|
-
[x: string]: any[];
|
|
146
|
-
$raw: any[][];
|
|
147
|
-
$group: any[];
|
|
148
|
-
}) & {
|
|
149
|
-
core_attrs: string[];
|
|
150
|
-
};
|
|
165
|
+
declare const _default_16: StatTransform;
|
|
151
166
|
|
|
152
|
-
declare const _default_17:
|
|
153
|
-
position?: string | undefined;
|
|
154
|
-
width?: number | undefined;
|
|
155
|
-
height?: number | undefined;
|
|
156
|
-
}) => {
|
|
157
|
-
$raw: any[][];
|
|
158
|
-
$group: any[];
|
|
159
|
-
min: any[];
|
|
160
|
-
lwisker: number[];
|
|
161
|
-
Q1: any[];
|
|
162
|
-
median: any[];
|
|
163
|
-
Q3: any[];
|
|
164
|
-
uwisker: number[];
|
|
165
|
-
max: any[];
|
|
166
|
-
outliers: {
|
|
167
|
-
[x: string]: any[];
|
|
168
|
-
$raw: any[];
|
|
169
|
-
}[];
|
|
170
|
-
}) & {
|
|
171
|
-
core_attrs: string[];
|
|
172
|
-
};
|
|
167
|
+
declare const _default_17: StatTransform;
|
|
173
168
|
|
|
174
|
-
declare const _default_18:
|
|
175
|
-
position?: string | undefined;
|
|
176
|
-
width: any;
|
|
177
|
-
height: any;
|
|
178
|
-
orientation?: string | undefined;
|
|
179
|
-
}) => {
|
|
180
|
-
[x: string]: any[];
|
|
181
|
-
$raw: any[][];
|
|
182
|
-
$group: any[];
|
|
183
|
-
}) & {
|
|
184
|
-
core_attrs: string[];
|
|
185
|
-
};
|
|
169
|
+
declare const _default_18: StatTransform;
|
|
186
170
|
|
|
187
|
-
declare const _default_19:
|
|
188
|
-
core_attrs: string[];
|
|
189
|
-
};
|
|
171
|
+
declare const _default_19: StatTransform;
|
|
190
172
|
|
|
191
173
|
declare namespace _default_2 {
|
|
174
|
+
let legend_glyph: string;
|
|
192
175
|
let scale_attrs: string[];
|
|
193
176
|
function coord_scale(ds: any, levels: any): {
|
|
194
177
|
x: any[] | null;
|
|
@@ -246,87 +229,28 @@ declare namespace _default_2 {
|
|
|
246
229
|
function validate(d: any): any;
|
|
247
230
|
}
|
|
248
231
|
|
|
249
|
-
declare const _default_20:
|
|
250
|
-
n?: number | undefined;
|
|
251
|
-
kernel?: string | undefined;
|
|
252
|
-
scale?: string | undefined;
|
|
253
|
-
}) => {
|
|
254
|
-
$raw: any[][];
|
|
255
|
-
$group: any[];
|
|
256
|
-
}) & {
|
|
257
|
-
core_attrs: string[];
|
|
258
|
-
};
|
|
232
|
+
declare const _default_20: StatTransform;
|
|
259
233
|
|
|
260
|
-
declare const _default_21:
|
|
261
|
-
CI?: number | undefined;
|
|
262
|
-
}) => {
|
|
263
|
-
$raw: any[][];
|
|
264
|
-
cx: number[];
|
|
265
|
-
cy: number[];
|
|
266
|
-
A: number[];
|
|
267
|
-
B: number[];
|
|
268
|
-
C: number[];
|
|
269
|
-
}) & {
|
|
270
|
-
core_attrs: string[];
|
|
271
|
-
};
|
|
234
|
+
declare const _default_21: StatTransform;
|
|
272
235
|
|
|
273
|
-
declare const _default_22:
|
|
274
|
-
bins?: number | undefined;
|
|
275
|
-
}) => {
|
|
276
|
-
$raw: any[][];
|
|
277
|
-
$group: any[];
|
|
278
|
-
xmin: any[];
|
|
279
|
-
xmax: any[];
|
|
280
|
-
ymin: any;
|
|
281
|
-
ymax: number[];
|
|
282
|
-
} | {
|
|
283
|
-
$raw: any[][];
|
|
284
|
-
$group: any[];
|
|
285
|
-
xmin: any;
|
|
286
|
-
xmax: number[];
|
|
287
|
-
ymin: any[];
|
|
288
|
-
ymax: any[];
|
|
289
|
-
}) & {
|
|
290
|
-
core_attrs: string[];
|
|
291
|
-
};
|
|
236
|
+
declare const _default_22: StatTransform;
|
|
292
237
|
|
|
293
|
-
declare const _default_23:
|
|
294
|
-
core_attrs: string[];
|
|
295
|
-
};
|
|
238
|
+
declare const _default_23: StatTransform;
|
|
296
239
|
|
|
297
|
-
declare const _default_24:
|
|
298
|
-
orientation?: string | undefined;
|
|
299
|
-
}) => {
|
|
300
|
-
xend: any;
|
|
301
|
-
yend: any;
|
|
302
|
-
}) & {
|
|
303
|
-
core_attrs: string[];
|
|
304
|
-
};
|
|
240
|
+
declare const _default_24: StatTransform;
|
|
305
241
|
|
|
306
|
-
declare const _default_25:
|
|
307
|
-
core_attrs: string[];
|
|
308
|
-
};
|
|
242
|
+
declare const _default_25: StatTransform;
|
|
309
243
|
|
|
310
|
-
declare const _default_26:
|
|
311
|
-
xend: any;
|
|
312
|
-
yend: any;
|
|
313
|
-
}) & {
|
|
314
|
-
core_attrs: string[];
|
|
315
|
-
};
|
|
244
|
+
declare const _default_26: StatTransform;
|
|
316
245
|
|
|
317
|
-
declare const _default_27:
|
|
318
|
-
core_attrs: string[];
|
|
319
|
-
};
|
|
246
|
+
declare const _default_27: StatTransform;
|
|
320
247
|
|
|
321
|
-
declare const _default_28:
|
|
322
|
-
core_attrs: string[];
|
|
323
|
-
};
|
|
248
|
+
declare const _default_28: StatTransform;
|
|
324
249
|
|
|
325
|
-
declare const _default_29:
|
|
326
|
-
core_attrs: string[];
|
|
327
|
-
};
|
|
250
|
+
declare const _default_29: StatTransform;
|
|
328
251
|
|
|
329
252
|
declare namespace _default_3 {
|
|
253
|
+
let legend_glyph: string;
|
|
330
254
|
let scale_attrs: string[];
|
|
331
255
|
function coord_scale(ds: any, levels: any): {
|
|
332
256
|
points: any;
|
|
@@ -335,46 +259,22 @@ declare namespace _default_3 {
|
|
|
335
259
|
function validate(d: any): any;
|
|
336
260
|
}
|
|
337
261
|
|
|
338
|
-
declare const _default_30:
|
|
339
|
-
core_attrs: string[];
|
|
340
|
-
};
|
|
262
|
+
declare const _default_30: StatTransform;
|
|
341
263
|
|
|
342
|
-
declare const _default_31:
|
|
343
|
-
core_attrs: string[];
|
|
344
|
-
};
|
|
264
|
+
declare const _default_31: StatTransform;
|
|
345
265
|
|
|
346
|
-
declare const _default_32:
|
|
347
|
-
core_attrs: string[];
|
|
348
|
-
};
|
|
266
|
+
declare const _default_32: StatTransform;
|
|
349
267
|
|
|
350
|
-
declare const _default_33:
|
|
351
|
-
core_attrs: string[];
|
|
352
|
-
};
|
|
268
|
+
declare const _default_33: StatTransform;
|
|
353
269
|
|
|
354
|
-
declare const _default_34:
|
|
355
|
-
core_attrs: string[];
|
|
356
|
-
};
|
|
270
|
+
declare const _default_34: StatTransform;
|
|
357
271
|
|
|
358
|
-
declare const _default_35:
|
|
359
|
-
core_attrs: string[];
|
|
360
|
-
};
|
|
272
|
+
declare const _default_35: StatTransform;
|
|
361
273
|
|
|
362
|
-
declare const _default_36:
|
|
363
|
-
n?: number | undefined;
|
|
364
|
-
kernel?: string | undefined;
|
|
365
|
-
scale?: string | undefined;
|
|
366
|
-
position?: string | undefined;
|
|
367
|
-
width?: number | undefined;
|
|
368
|
-
height?: number | undefined;
|
|
369
|
-
}) => {
|
|
370
|
-
[x: string]: any[];
|
|
371
|
-
$raw: any[][];
|
|
372
|
-
$group: any[];
|
|
373
|
-
}) & {
|
|
374
|
-
core_attrs: string[];
|
|
375
|
-
};
|
|
274
|
+
declare const _default_36: StatTransform;
|
|
376
275
|
|
|
377
276
|
declare namespace _default_4 {
|
|
277
|
+
let legend_glyph: string;
|
|
378
278
|
let scale_attrs: string[];
|
|
379
279
|
function coord_scale(ds: any, levels: any): {
|
|
380
280
|
cx: any[] | null;
|
|
@@ -388,6 +288,7 @@ declare namespace _default_4 {
|
|
|
388
288
|
}
|
|
389
289
|
|
|
390
290
|
declare namespace _default_5 {
|
|
291
|
+
let legend_glyph: string;
|
|
391
292
|
let scale_attrs: string[];
|
|
392
293
|
function coord_scale(ds: any, levels: any): {
|
|
393
294
|
x: any[] | null;
|
|
@@ -400,6 +301,7 @@ declare namespace _default_5 {
|
|
|
400
301
|
}
|
|
401
302
|
|
|
402
303
|
declare namespace _default_6 {
|
|
304
|
+
let legend_glyph: string;
|
|
403
305
|
let scale_attrs: string[];
|
|
404
306
|
function coord_scale(ds: any, levels: any): {
|
|
405
307
|
x: any[] | null;
|
|
@@ -410,6 +312,7 @@ declare namespace _default_6 {
|
|
|
410
312
|
}
|
|
411
313
|
|
|
412
314
|
declare namespace _default_7 {
|
|
315
|
+
let legend_glyph: string;
|
|
413
316
|
let scale_attrs: string[];
|
|
414
317
|
function coord_scale(ds: any, levels: any): {
|
|
415
318
|
x: any[] | null;
|
|
@@ -422,6 +325,7 @@ declare namespace _default_7 {
|
|
|
422
325
|
}
|
|
423
326
|
|
|
424
327
|
declare namespace _default_8 {
|
|
328
|
+
let legend_glyph: string;
|
|
425
329
|
let scale_attrs: string[];
|
|
426
330
|
function coord_scale(ds: any, levels: any): {
|
|
427
331
|
x: any[] | null;
|
|
@@ -432,6 +336,7 @@ declare namespace _default_8 {
|
|
|
432
336
|
}
|
|
433
337
|
|
|
434
338
|
declare namespace _default_9 {
|
|
339
|
+
let legend_glyph: string;
|
|
435
340
|
let scale_attrs: string[];
|
|
436
341
|
function coord_scale(ds: any, levels: any): {
|
|
437
342
|
points: any;
|
|
@@ -440,8 +345,192 @@ declare namespace _default_9 {
|
|
|
440
345
|
function validate(d: any): any;
|
|
441
346
|
}
|
|
442
347
|
|
|
348
|
+
/**
|
|
349
|
+
* Decorate a stat transform with metadata used by the plotting engine.
|
|
350
|
+
*
|
|
351
|
+
* This function only defines the transform; it does not register it. Use
|
|
352
|
+
* `registerStat(name, stat)` or `registerLayers` to register it.
|
|
353
|
+
*
|
|
354
|
+
* @param {import('./types.ts').StatTransform} transform
|
|
355
|
+
* @param {{core_attrs?: string[]}} [options]
|
|
356
|
+
* @returns {import('./types.ts').StatTransform}
|
|
357
|
+
*/
|
|
358
|
+
export declare function defineStat(transform: StatTransform, { core_attrs }?: {
|
|
359
|
+
core_attrs?: string[];
|
|
360
|
+
}): StatTransform;
|
|
361
|
+
|
|
362
|
+
declare class EnumElement {
|
|
363
|
+
constructor(label: any, value: any, level: any);
|
|
364
|
+
label: any;
|
|
365
|
+
value: any;
|
|
366
|
+
level: any;
|
|
367
|
+
toString(): any;
|
|
368
|
+
valueOf(): any;
|
|
369
|
+
toJSON(): any;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
declare class EnumLevel extends Array<any> {
|
|
373
|
+
/**
|
|
374
|
+
* return:
|
|
375
|
+
* x if x is a EnumLevel
|
|
376
|
+
* new EnumLevel from distinct values of x, ordered by natural order, if x is iterable
|
|
377
|
+
* new EnumLevel from keys of x, orderd by coresponing values, if x is an object
|
|
378
|
+
* @param {*} x
|
|
379
|
+
* @param {function} [sortkey]
|
|
380
|
+
* @returns {EnumLevel}
|
|
381
|
+
*/
|
|
382
|
+
static from(x: any): EnumLevel;
|
|
383
|
+
/**
|
|
384
|
+
* Check if two EnumLevel are equal, i.e. they have the same labels in the same order
|
|
385
|
+
* @param {string[]} level
|
|
386
|
+
*/
|
|
387
|
+
static isEqual(a: any, b: any): boolean | undefined;
|
|
388
|
+
/**
|
|
389
|
+
* build a EnumLevel
|
|
390
|
+
* @param {string[]} level
|
|
391
|
+
*/
|
|
392
|
+
constructor(...level: string[]);
|
|
393
|
+
/**
|
|
394
|
+
* get the level instance by index or key
|
|
395
|
+
* @param {(number|string)} idx
|
|
396
|
+
* @returns {EnumElement}
|
|
397
|
+
*/
|
|
398
|
+
getItem(idx: (number | string)): EnumElement;
|
|
399
|
+
/**
|
|
400
|
+
* convert an array to a GEnum array
|
|
401
|
+
* @param {string[]} arr array to be converted, preferably a string array (items of other types will be converted to string)
|
|
402
|
+
* @returns {EnumElement[]}
|
|
403
|
+
*/
|
|
404
|
+
apply(arr: string[]): EnumElement[];
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
export declare interface GeomDefinition {
|
|
408
|
+
legend_glyph?: LegendGlyph | LegendGlyph[];
|
|
409
|
+
scale_attrs?: string[];
|
|
410
|
+
coord_scale?: (data: Record<string, any>, levels: Record<string, any>) => Record<string, any>;
|
|
411
|
+
get_values?: (data: Record<string, any>, orientation: 'x' | 'y') => any[] | undefined;
|
|
412
|
+
get_range?: (data: Record<string, any>, orientation: 'x' | 'y') => any[] | undefined;
|
|
413
|
+
validate?: (datum: Record<string, any>) => Record<string, any> | null | undefined;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
/**
|
|
417
|
+
* Resolve a registered layer declaration component.
|
|
418
|
+
* @param {string} name
|
|
419
|
+
* @returns {Object|undefined}
|
|
420
|
+
*/
|
|
421
|
+
export declare function getComponent(name: string): Object | undefined;
|
|
422
|
+
|
|
423
|
+
/**
|
|
424
|
+
* Get all registered layer declaration components as a plain object.
|
|
425
|
+
* @returns {Record<string, Object>}
|
|
426
|
+
*/
|
|
427
|
+
export declare function getComponents(): Record<string, Object>;
|
|
428
|
+
|
|
429
|
+
/**
|
|
430
|
+
* Get all registered element names.
|
|
431
|
+
* @returns {string[]}
|
|
432
|
+
*/
|
|
433
|
+
export declare function getElementNames(): string[];
|
|
434
|
+
|
|
435
|
+
/**
|
|
436
|
+
* Get a snapshot of all registered geometry names.
|
|
437
|
+
* @returns {string[]}
|
|
438
|
+
*/
|
|
439
|
+
export declare function getGeomNames(): string[];
|
|
440
|
+
|
|
441
|
+
/**
|
|
442
|
+
* Get the renderers registered for a geometry name.
|
|
443
|
+
* @param {string} name
|
|
444
|
+
* @returns {{svg?: Object, canvas?: Object, default?: string}|undefined}
|
|
445
|
+
*/
|
|
446
|
+
export declare function getRenderer(name: string): {
|
|
447
|
+
svg?: Object;
|
|
448
|
+
canvas?: Object;
|
|
449
|
+
default?: string;
|
|
450
|
+
} | undefined;
|
|
451
|
+
|
|
452
|
+
/**
|
|
453
|
+
* Get a snapshot of all registered renderer names.
|
|
454
|
+
* @returns {string[]}
|
|
455
|
+
*/
|
|
456
|
+
export declare function getRendererNames(): string[];
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* Get a snapshot of all registered statistic names.
|
|
460
|
+
* @returns {string[]}
|
|
461
|
+
*/
|
|
462
|
+
export declare function getStatNames(): string[];
|
|
463
|
+
|
|
443
464
|
export declare function install(app: App): void;
|
|
444
465
|
|
|
466
|
+
/**
|
|
467
|
+
* Create a categorical representation for lists of data.
|
|
468
|
+
* i.e. `categorize` for multiple arrays
|
|
469
|
+
* @param {...any} arrays
|
|
470
|
+
* @returns {number[]} result
|
|
471
|
+
* @returns {Array[]} result.categories
|
|
472
|
+
*/
|
|
473
|
+
declare function interaction(...arrays: any[]): number[];
|
|
474
|
+
|
|
475
|
+
/**
|
|
476
|
+
* Create a categorical representation for lists of data.
|
|
477
|
+
* i.e. `interaction` with key names
|
|
478
|
+
* @param {Object} arrays
|
|
479
|
+
* @returns {number[]} result
|
|
480
|
+
* @returns {object[]} result.categories
|
|
481
|
+
*/
|
|
482
|
+
declare function intraaction(arrays: Object): number[];
|
|
483
|
+
|
|
484
|
+
/**
|
|
485
|
+
* Turn dict of arrays into array of dicts
|
|
486
|
+
* @param {Object} arrays dict of arrays
|
|
487
|
+
* @returns {object[]} array of dicts
|
|
488
|
+
*/
|
|
489
|
+
declare function intrazip(arrays: Object): object[];
|
|
490
|
+
|
|
491
|
+
declare function is_categorical(v: any): boolean;
|
|
492
|
+
|
|
493
|
+
declare function is_continuous(x: any): x is number | Number | Date;
|
|
494
|
+
|
|
495
|
+
export declare interface LayerDefinitionOptions {
|
|
496
|
+
name: string;
|
|
497
|
+
geom: string | GeomDefinition;
|
|
498
|
+
stat?: string | StatTransform;
|
|
499
|
+
argnames?: string[];
|
|
500
|
+
optnames?: string[];
|
|
501
|
+
defaults?: Record<string, any>;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
export declare namespace layers {
|
|
505
|
+
export {
|
|
506
|
+
VVGeomBar,
|
|
507
|
+
VVGeomBlank,
|
|
508
|
+
VVGeomBoxplot,
|
|
509
|
+
VVGeomCol,
|
|
510
|
+
VVGeomCurve,
|
|
511
|
+
VVGeomDensity,
|
|
512
|
+
VVGeomEllipse,
|
|
513
|
+
VVGeomHistogram,
|
|
514
|
+
VVGeomLine,
|
|
515
|
+
VVGeomLinerange,
|
|
516
|
+
VVGeomMarkdown,
|
|
517
|
+
VVGeomMarkdownsegment,
|
|
518
|
+
VVGeomPath,
|
|
519
|
+
VVGeomPoint,
|
|
520
|
+
VVGeomPolygon,
|
|
521
|
+
VVGeomRect,
|
|
522
|
+
VVGeomSegment,
|
|
523
|
+
VVGeomShape,
|
|
524
|
+
VVGeomStick,
|
|
525
|
+
VVGeomText,
|
|
526
|
+
VVGeomTextsegment,
|
|
527
|
+
VVGeomTile,
|
|
528
|
+
VVGeomViolin
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
export declare type LegendGlyph = 'tile' | 'line' | 'point' | 'text' | 'boxplot';
|
|
533
|
+
|
|
445
534
|
export declare namespace number_cut {
|
|
446
535
|
let metric: {
|
|
447
536
|
'': number;
|
|
@@ -498,6 +587,50 @@ export declare namespace number_cut {
|
|
|
498
587
|
}
|
|
499
588
|
}
|
|
500
589
|
|
|
590
|
+
declare namespace numutils {
|
|
591
|
+
function min(arr: any, { na_rm, infinity_rm }?: {
|
|
592
|
+
na_rm?: boolean | undefined;
|
|
593
|
+
infinity_rm?: boolean | undefined;
|
|
594
|
+
}): any;
|
|
595
|
+
function max(arr: any, { na_rm, infinity_rm }?: {
|
|
596
|
+
na_rm?: boolean | undefined;
|
|
597
|
+
infinity_rm?: boolean | undefined;
|
|
598
|
+
}): any;
|
|
599
|
+
function sum(arr: any, { na_rm, infinity_rm }?: {
|
|
600
|
+
na_rm?: boolean | undefined;
|
|
601
|
+
infinity_rm?: boolean | undefined;
|
|
602
|
+
}): any;
|
|
603
|
+
function diff(arr: any, { na_rm, infinity_rm }?: {
|
|
604
|
+
na_rm?: boolean | undefined;
|
|
605
|
+
infinity_rm?: boolean | undefined;
|
|
606
|
+
}): number[];
|
|
607
|
+
function mean(arr: any, { na_rm, infinity_rm }?: {
|
|
608
|
+
na_rm?: boolean | undefined;
|
|
609
|
+
infinity_rm?: boolean | undefined;
|
|
610
|
+
}): number;
|
|
611
|
+
function sd(arr: any, { na_rm, infinity_rm }?: {
|
|
612
|
+
na_rm?: boolean | undefined;
|
|
613
|
+
infinity_rm?: boolean | undefined;
|
|
614
|
+
}): number;
|
|
615
|
+
function quantile(arr: any, p: any, { na_rm, infinity_rm }?: {
|
|
616
|
+
na_rm?: boolean | undefined;
|
|
617
|
+
infinity_rm?: boolean | undefined;
|
|
618
|
+
}): any;
|
|
619
|
+
function extent(arr: any, { na_rm, infinity_rm }?: {
|
|
620
|
+
na_rm?: boolean | undefined;
|
|
621
|
+
infinity_rm?: boolean | undefined;
|
|
622
|
+
}): any[];
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
/**
|
|
626
|
+
* (shallow) merge array of objects, from left to right
|
|
627
|
+
* `undefined` will be ignored
|
|
628
|
+
* `null` will reset the merge
|
|
629
|
+
* @param {Array} arr
|
|
630
|
+
* @returns {Object|null}
|
|
631
|
+
*/
|
|
632
|
+
declare function obj_merge(...arr: any[]): Object | null;
|
|
633
|
+
|
|
501
634
|
export declare namespace oob {
|
|
502
635
|
export { oob_censor as censor };
|
|
503
636
|
export function squish(value: any, { min, max }: {
|
|
@@ -525,9 +658,225 @@ declare function oob_censor(value: number, { min, max }: {
|
|
|
525
658
|
max: number;
|
|
526
659
|
}): number;
|
|
527
660
|
|
|
661
|
+
/**
|
|
662
|
+
* turn out-of-bounds values to bounds
|
|
663
|
+
* @param {number} value
|
|
664
|
+
* @param {Object} option
|
|
665
|
+
* @param {number} option.min lower bound
|
|
666
|
+
* @param {number} option.max upper bound
|
|
667
|
+
* @returns {number}
|
|
668
|
+
*/
|
|
669
|
+
declare function oob_squish_any(value: number, { min, max }: {
|
|
670
|
+
min: number;
|
|
671
|
+
max: number;
|
|
672
|
+
}): number;
|
|
673
|
+
|
|
674
|
+
/**
|
|
675
|
+
* turn infinite values to bounds
|
|
676
|
+
* @param {number} value
|
|
677
|
+
* @param {Object} option
|
|
678
|
+
* @param {number} option.min lower bound
|
|
679
|
+
* @param {number} option.max upper bound
|
|
680
|
+
* @returns {number}
|
|
681
|
+
*/
|
|
682
|
+
declare function oob_squish_infinite(value: number, { min, max }: {
|
|
683
|
+
min: number;
|
|
684
|
+
max: number;
|
|
685
|
+
}): number;
|
|
686
|
+
|
|
528
687
|
declare const plugin: Plugin_2;
|
|
529
688
|
export default plugin;
|
|
530
689
|
|
|
690
|
+
/**
|
|
691
|
+
* Add two numeric values, with special handling of semantic values.
|
|
692
|
+
* - If `a` is `null` or `undefined`, return `a`.
|
|
693
|
+
* - If `a` is a `Date`, return a new `Date` with the time value of `a` plus `b`.
|
|
694
|
+
* - Otherwise, return the sum of `a` and `b`.
|
|
695
|
+
* @param {number|Date|null|undefined} a The first value to add.
|
|
696
|
+
* @param {number} b The second value to add.
|
|
697
|
+
* @returns The sum of the two values.
|
|
698
|
+
*/
|
|
699
|
+
declare function plus(a: number | Date | null | undefined, b?: number): any;
|
|
700
|
+
|
|
701
|
+
/**
|
|
702
|
+
* Register a layer declaration component by tag name.
|
|
703
|
+
* @param {string} name component tag name, e.g. "VVGeomImage"
|
|
704
|
+
* @param {Object} component layer declaration component
|
|
705
|
+
* @returns {Object} the registered component
|
|
706
|
+
*/
|
|
707
|
+
export declare function registerComponent(name: string, component: Object): Object;
|
|
708
|
+
|
|
709
|
+
/**
|
|
710
|
+
* Register a low-level SVG element by name.
|
|
711
|
+
* @param {string} name element name, e.g. "text"
|
|
712
|
+
* @param {Object|Function} component Vue component
|
|
713
|
+
* @returns {Object|Function} the registered component
|
|
714
|
+
*/
|
|
715
|
+
export declare function registerElement(name: string, component: Object | Function): Object | Function;
|
|
716
|
+
|
|
717
|
+
/**
|
|
718
|
+
* Register the built-in SVG elements.
|
|
719
|
+
*
|
|
720
|
+
* @param {Record<string, Object>} elements
|
|
721
|
+
*/
|
|
722
|
+
export declare function registerElements(elements: Record<string, Object>): void;
|
|
723
|
+
|
|
724
|
+
/**
|
|
725
|
+
* Register a geometry definition under a name.
|
|
726
|
+
* @param {string} name geometry name
|
|
727
|
+
* @param {Object} geom geometry definition
|
|
728
|
+
* @returns {Object} the registered geometry definition
|
|
729
|
+
*/
|
|
730
|
+
export declare function registerGeom(name: string, geom: Object): Object;
|
|
731
|
+
|
|
732
|
+
/**
|
|
733
|
+
* Create a reusable metadata-only layer declaration component.
|
|
734
|
+
* @param {string} name component name, e.g. "VVGeomPoint"
|
|
735
|
+
* @param {Object} options
|
|
736
|
+
* @param {string|Object} options.geom geometry name or definition
|
|
737
|
+
* @param {string|Function} [options.stat="identity"] statistic name or transform
|
|
738
|
+
* @param {string[]} [options.argnames=[]] stat argument names
|
|
739
|
+
* @param {string[]} [options.optnames=[]] renderer-only option names
|
|
740
|
+
* @returns {Object} Vue component carrying layer metadata
|
|
741
|
+
*/
|
|
742
|
+
export declare function registerLayer(name: string, { key, geom, stat, renderer, argnames, optnames, ...defaults }: {
|
|
743
|
+
geom: string | Object;
|
|
744
|
+
stat?: string | Function | undefined;
|
|
745
|
+
argnames?: string[] | undefined;
|
|
746
|
+
optnames?: string[] | undefined;
|
|
747
|
+
}): Object;
|
|
748
|
+
|
|
749
|
+
/**
|
|
750
|
+
* Register a complete layer package.
|
|
751
|
+
*
|
|
752
|
+
* `renderers` is keyed by geometry name and contains `{ svg, canvas }`.
|
|
753
|
+
* `components` is keyed by declaration tag name.
|
|
754
|
+
*
|
|
755
|
+
* @param {Object} pack
|
|
756
|
+
* @param {Record<string, Object>} [pack.geoms]
|
|
757
|
+
* @param {Record<string, Function>} [pack.stats]
|
|
758
|
+
* @param {Record<string, {svg?: Object, canvas?: Object, default?: string}>} [pack.renderers]
|
|
759
|
+
* @param {Record<string, Object>} [pack.components]
|
|
760
|
+
*/
|
|
761
|
+
export declare function registerLayers({ geoms, stats, renderers, components, }?: {
|
|
762
|
+
geoms?: Record<string, Object> | undefined;
|
|
763
|
+
stats?: Record<string, Function> | undefined;
|
|
764
|
+
renderers?: Record<string, {
|
|
765
|
+
svg?: Object;
|
|
766
|
+
canvas?: Object;
|
|
767
|
+
default?: string;
|
|
768
|
+
}> | undefined;
|
|
769
|
+
components?: Record<string, Object> | undefined;
|
|
770
|
+
}): void;
|
|
771
|
+
|
|
772
|
+
/**
|
|
773
|
+
* Register or extend the renderers of a geometry.
|
|
774
|
+
* @param {string} name geometry name
|
|
775
|
+
* @param {{svg?: Object, canvas?: Object, default?: string}} renderers
|
|
776
|
+
* @returns {{svg?: Object, canvas?: Object, default?: string}}
|
|
777
|
+
*/
|
|
778
|
+
export declare function registerRenderer(name: string, renderers: {
|
|
779
|
+
svg?: Object;
|
|
780
|
+
canvas?: Object;
|
|
781
|
+
default?: string;
|
|
782
|
+
}): {
|
|
783
|
+
svg?: Object;
|
|
784
|
+
canvas?: Object;
|
|
785
|
+
default?: string;
|
|
786
|
+
};
|
|
787
|
+
|
|
788
|
+
/**
|
|
789
|
+
* Register a statistic under a name.
|
|
790
|
+
* @param {string} name statistic name
|
|
791
|
+
* @param {Function} stat statistic transform
|
|
792
|
+
* @returns {Function} the registered statistic
|
|
793
|
+
*/
|
|
794
|
+
export declare function registerStat(name: string, stat: Function): Function;
|
|
795
|
+
|
|
796
|
+
export declare interface RendererProps {
|
|
797
|
+
data: Array<Record<string, any>>;
|
|
798
|
+
layout: Record<string, number>;
|
|
799
|
+
mapping: CoordinateMapping;
|
|
800
|
+
options?: Record<string, any>;
|
|
801
|
+
extendX?: number;
|
|
802
|
+
extendY?: number;
|
|
803
|
+
dpi?: number;
|
|
804
|
+
groupClass?: any;
|
|
805
|
+
groupStyle?: any;
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
/**
|
|
809
|
+
* Resolve an element component reference. A string is looked up in the registry;
|
|
810
|
+
* a component object/function is returned as-is.
|
|
811
|
+
* @param {string|Object|Function} ref element name or component
|
|
812
|
+
* @returns {Object|Function|undefined}
|
|
813
|
+
*/
|
|
814
|
+
export declare function resolveElement(ref: string | Object | Function): Object | Function | undefined;
|
|
815
|
+
|
|
816
|
+
/**
|
|
817
|
+
* Resolve a geometry reference. A string is looked up in the registry,
|
|
818
|
+
* any other value (a geometry object) is returned as-is.
|
|
819
|
+
* @param {string|Object} ref geometry name or definition
|
|
820
|
+
* @returns {Object|undefined}
|
|
821
|
+
*/
|
|
822
|
+
export declare function resolveGeom(ref: string | Object): Object | undefined;
|
|
823
|
+
|
|
824
|
+
/**
|
|
825
|
+
* Resolve a statistic reference. Functions are returned as-is,
|
|
826
|
+
* strings are looked up in the registry.
|
|
827
|
+
* @param {string|Function} ref statistic name or transform
|
|
828
|
+
* @returns {Function|undefined}
|
|
829
|
+
*/
|
|
830
|
+
export declare function resolveStat(ref: string | Function): Function | undefined;
|
|
831
|
+
|
|
832
|
+
export declare interface StatTransform {
|
|
833
|
+
(data: Record<string, any>, args?: Record<string, any>): Record<string, any>;
|
|
834
|
+
core_attrs?: string[];
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
/**
|
|
838
|
+
* concatenate strings, with special handling of `undefined` and `null`
|
|
839
|
+
* - if any argument is `undefined`, return `undefined`
|
|
840
|
+
* - else if any argument is `null`, return `null`
|
|
841
|
+
* - else return concatenated string
|
|
842
|
+
* @param {...(string|undefined|null)} args
|
|
843
|
+
* @returns {string|undefined|null}
|
|
844
|
+
*/
|
|
845
|
+
declare function str_c(...args: (string | undefined | null)[]): string | undefined | null;
|
|
846
|
+
|
|
847
|
+
export declare interface TextElementProps {
|
|
848
|
+
x: number;
|
|
849
|
+
y: number;
|
|
850
|
+
text: string;
|
|
851
|
+
title?: string;
|
|
852
|
+
alpha?: number;
|
|
853
|
+
angle?: number;
|
|
854
|
+
translateX?: number;
|
|
855
|
+
translateY?: number;
|
|
856
|
+
anchorX?: number;
|
|
857
|
+
anchorY?: number;
|
|
858
|
+
dockX?: number;
|
|
859
|
+
dockY?: number;
|
|
860
|
+
fontSize?: number;
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
/**
|
|
864
|
+
* return unique values in an array
|
|
865
|
+
* @param {Array} arr
|
|
866
|
+
* @param {function} [key] function to get the key of an item, default to identity function
|
|
867
|
+
* @param {function} [priority] function to get the priority of an item when there are duplicate keys, default to keep the first one
|
|
868
|
+
* @returns {Array}
|
|
869
|
+
*/
|
|
870
|
+
declare function unique(arr: any[], key?: Function, priority?: Function): any[];
|
|
871
|
+
|
|
872
|
+
declare namespace vecutils {
|
|
873
|
+
function coalesce(value: any, defaultValue: any): any;
|
|
874
|
+
function sum(...values: any[]): any[] | null;
|
|
875
|
+
function opposite(value: any): number | any[] | null;
|
|
876
|
+
function concat(...values: any[]): string[] | null;
|
|
877
|
+
function apply(func: any, ...values: any[]): any[] | null;
|
|
878
|
+
}
|
|
879
|
+
|
|
531
880
|
export declare const VVAction: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
532
881
|
|
|
533
882
|
export declare const VVAxis: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
@@ -623,49 +972,50 @@ export declare namespace vvlabel {
|
|
|
623
972
|
|
|
624
973
|
export declare const VVPlot: DefineComponent< {}, {
|
|
625
974
|
svg: SVGSVGElement | null;
|
|
626
|
-
serialize(options: any): string
|
|
627
|
-
|
|
975
|
+
serialize(options: any): string;
|
|
976
|
+
export(options: any): Promise<string>;
|
|
977
|
+
$emit: (event: "rangechange" | "resize" | "select" | "update:range" | "update:rangePreview", ...args: any[]) => void;
|
|
628
978
|
flip: boolean;
|
|
629
979
|
clip: boolean;
|
|
630
980
|
reverse?: Record<string, any> | undefined;
|
|
981
|
+
action?: Record<string, any> | unknown[] | undefined;
|
|
631
982
|
range?: Record<string, any> | undefined;
|
|
632
983
|
data?: unknown[] | undefined;
|
|
633
984
|
levels?: Record<string, any> | undefined;
|
|
634
985
|
scales?: Record<string, any> | undefined;
|
|
635
986
|
expandMult?: Record<string, any> | undefined;
|
|
636
|
-
theme?:
|
|
637
|
-
action?: unknown[] | Record<string, any> | undefined;
|
|
638
|
-
dpi?: number | undefined;
|
|
987
|
+
theme?: Record<string, any> | unknown[] | undefined;
|
|
639
988
|
render?: string | undefined;
|
|
989
|
+
dpi?: number | undefined;
|
|
640
990
|
resize?: any;
|
|
641
991
|
minRange?: Record<string, any> | undefined;
|
|
642
992
|
expandAdd?: Record<string, any> | undefined;
|
|
643
|
-
axes?:
|
|
993
|
+
axes?: Record<string, any> | unknown[] | undefined;
|
|
644
994
|
legendTeleport?: any;
|
|
645
|
-
rangePreview?: Record<string, any> | undefined;
|
|
646
995
|
aes?: Record<string, any> | undefined;
|
|
647
996
|
extend?: Record<string, any> | undefined;
|
|
997
|
+
rangePreview?: Record<string, any> | undefined;
|
|
648
998
|
$props: {
|
|
649
999
|
readonly flip?: boolean | undefined;
|
|
650
1000
|
readonly clip?: boolean | undefined;
|
|
651
1001
|
readonly reverse?: Record<string, any> | undefined;
|
|
1002
|
+
readonly action?: Record<string, any> | unknown[] | undefined;
|
|
652
1003
|
readonly range?: Record<string, any> | undefined;
|
|
653
1004
|
readonly data?: unknown[] | undefined;
|
|
654
1005
|
readonly levels?: Record<string, any> | undefined;
|
|
655
1006
|
readonly scales?: Record<string, any> | undefined;
|
|
656
1007
|
readonly expandMult?: Record<string, any> | undefined;
|
|
657
|
-
readonly theme?:
|
|
658
|
-
readonly action?: unknown[] | Record<string, any> | undefined;
|
|
659
|
-
readonly dpi?: number | undefined;
|
|
1008
|
+
readonly theme?: Record<string, any> | unknown[] | undefined;
|
|
660
1009
|
readonly render?: string | undefined;
|
|
1010
|
+
readonly dpi?: number | undefined;
|
|
661
1011
|
readonly resize?: any;
|
|
662
1012
|
readonly minRange?: Record<string, any> | undefined;
|
|
663
1013
|
readonly expandAdd?: Record<string, any> | undefined;
|
|
664
|
-
readonly axes?:
|
|
1014
|
+
readonly axes?: Record<string, any> | unknown[] | undefined;
|
|
665
1015
|
readonly legendTeleport?: any;
|
|
666
|
-
readonly rangePreview?: Record<string, any> | undefined;
|
|
667
1016
|
readonly aes?: Record<string, any> | undefined;
|
|
668
1017
|
readonly extend?: Record<string, any> | undefined;
|
|
1018
|
+
readonly rangePreview?: Record<string, any> | undefined;
|
|
669
1019
|
};
|
|
670
1020
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
671
1021
|
wrapper: HTMLDivElement;
|
|
@@ -684,14 +1034,18 @@ dispatchEvent: (e: any) => any;
|
|
|
684
1034
|
defaultRender: string;
|
|
685
1035
|
data?: Record<string, any> | undefined;
|
|
686
1036
|
geom?: string | undefined;
|
|
1037
|
+
options?: Record<string, any> | undefined;
|
|
1038
|
+
mapping?: Record<string, any> | undefined;
|
|
687
1039
|
dpi?: number | undefined;
|
|
688
1040
|
defaultDpi?: number | undefined;
|
|
689
1041
|
$props: {
|
|
690
1042
|
readonly defaultRender?: string | undefined;
|
|
691
1043
|
readonly data?: Record<string, any> | undefined;
|
|
692
1044
|
readonly geom?: string | undefined;
|
|
693
|
-
readonly
|
|
1045
|
+
readonly options?: Record<string, any> | undefined;
|
|
1046
|
+
readonly mapping?: Record<string, any> | undefined;
|
|
694
1047
|
readonly render?: string | undefined;
|
|
1048
|
+
readonly dpi?: number | undefined;
|
|
695
1049
|
readonly defaultDpi?: number | undefined;
|
|
696
1050
|
};
|
|
697
1051
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
@@ -709,14 +1063,18 @@ dispatchEvent: (e: any) => any;
|
|
|
709
1063
|
defaultRender: string;
|
|
710
1064
|
data?: Record<string, any> | undefined;
|
|
711
1065
|
geom?: string | undefined;
|
|
1066
|
+
options?: Record<string, any> | undefined;
|
|
1067
|
+
mapping?: Record<string, any> | undefined;
|
|
712
1068
|
dpi?: number | undefined;
|
|
713
1069
|
defaultDpi?: number | undefined;
|
|
714
1070
|
$props: {
|
|
715
1071
|
readonly defaultRender?: string | undefined;
|
|
716
1072
|
readonly data?: Record<string, any> | undefined;
|
|
717
1073
|
readonly geom?: string | undefined;
|
|
718
|
-
readonly
|
|
1074
|
+
readonly options?: Record<string, any> | undefined;
|
|
1075
|
+
readonly mapping?: Record<string, any> | undefined;
|
|
719
1076
|
readonly render?: string | undefined;
|
|
1077
|
+
readonly dpi?: number | undefined;
|
|
720
1078
|
readonly defaultDpi?: number | undefined;
|
|
721
1079
|
};
|
|
722
1080
|
}, {}, {}, {}, {}> | null;
|
|
@@ -730,121 +1088,6 @@ $host: Element | null;
|
|
|
730
1088
|
$emit: (event: string, ...args: any[]) => void;
|
|
731
1089
|
$el: any;
|
|
732
1090
|
$options: ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {
|
|
733
|
-
vplot: ComputedRef< {
|
|
734
|
-
layers: {
|
|
735
|
-
data: any[];
|
|
736
|
-
geom: string | undefined;
|
|
737
|
-
vBind: (Object & {
|
|
738
|
-
extendX: any;
|
|
739
|
-
extendY: any;
|
|
740
|
-
}) | undefined;
|
|
741
|
-
}[];
|
|
742
|
-
coordScales: {
|
|
743
|
-
x: {
|
|
744
|
-
invert(w: any): any;
|
|
745
|
-
get breaks(): any[];
|
|
746
|
-
get minorBreaks(): never[];
|
|
747
|
-
apply(this: Function, thisArg: any, argArray?: any): any;
|
|
748
|
-
call(this: Function, thisArg: any, ...argArray: any[]): any;
|
|
749
|
-
bind(this: Function, thisArg: any, ...argArray: any[]): any;
|
|
750
|
-
toString(): string;
|
|
751
|
-
prototype: any;
|
|
752
|
-
readonly length: number;
|
|
753
|
-
arguments: any;
|
|
754
|
-
caller: Function;
|
|
755
|
-
readonly name: string;
|
|
756
|
-
[Symbol.hasInstance](value: any): boolean;
|
|
757
|
-
[Symbol.metadata]: DecoratorMetadata | null;
|
|
758
|
-
} | {
|
|
759
|
-
get breaks(): (arg0: {
|
|
760
|
-
min: number;
|
|
761
|
-
max: number;
|
|
762
|
-
}) => any[];
|
|
763
|
-
get minorBreaks(): never[];
|
|
764
|
-
invert(w: any): any;
|
|
765
|
-
apply(this: Function, thisArg: any, argArray?: any): any;
|
|
766
|
-
call(this: Function, thisArg: any, ...argArray: any[]): any;
|
|
767
|
-
bind(this: Function, thisArg: any, ...argArray: any[]): any;
|
|
768
|
-
toString(): string;
|
|
769
|
-
prototype: any;
|
|
770
|
-
readonly length: number;
|
|
771
|
-
arguments: any;
|
|
772
|
-
caller: Function;
|
|
773
|
-
readonly name: string;
|
|
774
|
-
[Symbol.hasInstance](value: any): boolean;
|
|
775
|
-
[Symbol.metadata]: DecoratorMetadata | null;
|
|
776
|
-
} | {
|
|
777
|
-
invert(w: any): any;
|
|
778
|
-
get breaks(): (arg0: {
|
|
779
|
-
min: number;
|
|
780
|
-
max: number;
|
|
781
|
-
}) => any[];
|
|
782
|
-
apply(this: Function, thisArg: any, argArray?: any): any;
|
|
783
|
-
call(this: Function, thisArg: any, ...argArray: any[]): any;
|
|
784
|
-
bind(this: Function, thisArg: any, ...argArray: any[]): any;
|
|
785
|
-
toString(): string;
|
|
786
|
-
prototype: any;
|
|
787
|
-
readonly length: number;
|
|
788
|
-
arguments: any;
|
|
789
|
-
caller: Function;
|
|
790
|
-
readonly name: string;
|
|
791
|
-
[Symbol.hasInstance](value: any): boolean;
|
|
792
|
-
[Symbol.metadata]: DecoratorMetadata | null;
|
|
793
|
-
};
|
|
794
|
-
y: {
|
|
795
|
-
invert(w: any): any;
|
|
796
|
-
get breaks(): any[];
|
|
797
|
-
get minorBreaks(): never[];
|
|
798
|
-
apply(this: Function, thisArg: any, argArray?: any): any;
|
|
799
|
-
call(this: Function, thisArg: any, ...argArray: any[]): any;
|
|
800
|
-
bind(this: Function, thisArg: any, ...argArray: any[]): any;
|
|
801
|
-
toString(): string;
|
|
802
|
-
prototype: any;
|
|
803
|
-
readonly length: number;
|
|
804
|
-
arguments: any;
|
|
805
|
-
caller: Function;
|
|
806
|
-
readonly name: string;
|
|
807
|
-
[Symbol.hasInstance](value: any): boolean;
|
|
808
|
-
[Symbol.metadata]: DecoratorMetadata | null;
|
|
809
|
-
} | {
|
|
810
|
-
get breaks(): (arg0: {
|
|
811
|
-
min: number;
|
|
812
|
-
max: number;
|
|
813
|
-
}) => any[];
|
|
814
|
-
get minorBreaks(): never[];
|
|
815
|
-
invert(w: any): any;
|
|
816
|
-
apply(this: Function, thisArg: any, argArray?: any): any;
|
|
817
|
-
call(this: Function, thisArg: any, ...argArray: any[]): any;
|
|
818
|
-
bind(this: Function, thisArg: any, ...argArray: any[]): any;
|
|
819
|
-
toString(): string;
|
|
820
|
-
prototype: any;
|
|
821
|
-
readonly length: number;
|
|
822
|
-
arguments: any;
|
|
823
|
-
caller: Function;
|
|
824
|
-
readonly name: string;
|
|
825
|
-
[Symbol.hasInstance](value: any): boolean;
|
|
826
|
-
[Symbol.metadata]: DecoratorMetadata | null;
|
|
827
|
-
} | {
|
|
828
|
-
invert(w: any): any;
|
|
829
|
-
get breaks(): (arg0: {
|
|
830
|
-
min: number;
|
|
831
|
-
max: number;
|
|
832
|
-
}) => any[];
|
|
833
|
-
apply(this: Function, thisArg: any, argArray?: any): any;
|
|
834
|
-
call(this: Function, thisArg: any, ...argArray: any[]): any;
|
|
835
|
-
bind(this: Function, thisArg: any, ...argArray: any[]): any;
|
|
836
|
-
toString(): string;
|
|
837
|
-
prototype: any;
|
|
838
|
-
readonly length: number;
|
|
839
|
-
arguments: any;
|
|
840
|
-
caller: Function;
|
|
841
|
-
readonly name: string;
|
|
842
|
-
[Symbol.hasInstance](value: any): boolean;
|
|
843
|
-
[Symbol.metadata]: DecoratorMetadata | null;
|
|
844
|
-
};
|
|
845
|
-
};
|
|
846
|
-
scales: Map<any, any>;
|
|
847
|
-
}>;
|
|
848
1091
|
panel: {
|
|
849
1092
|
l: any;
|
|
850
1093
|
r: any;
|
|
@@ -858,7 +1101,7 @@ width: number;
|
|
|
858
1101
|
height: number;
|
|
859
1102
|
};
|
|
860
1103
|
svg: Readonly<ShallowRef<SVGSVGElement | null, SVGSVGElement | null>>;
|
|
861
|
-
$emit: (event: "click" | "
|
|
1104
|
+
$emit: (event: "click" | "contextmenu" | "singleclick" | "pointerover" | "pointerout" | "pointerenter" | "pointerleave" | "pointermove" | "pointerdown" | "pointerup" | "wheel" | "dblclick" | "move" | "zoom" | "rescale" | "nudge" | "select" | "selecting", ...args: any[]) => void;
|
|
862
1105
|
action: unknown[];
|
|
863
1106
|
flip: boolean;
|
|
864
1107
|
axes: unknown[];
|
|
@@ -869,8 +1112,8 @@ levels?: Record<string, any> | undefined;
|
|
|
869
1112
|
scales?: Record<string, any> | undefined;
|
|
870
1113
|
expandMult?: Record<string, any> | undefined;
|
|
871
1114
|
theme?: Record<string, any> | undefined;
|
|
872
|
-
dpi?: number | undefined;
|
|
873
1115
|
render?: string | undefined;
|
|
1116
|
+
dpi?: number | undefined;
|
|
874
1117
|
layers?: unknown[] | undefined;
|
|
875
1118
|
schema?: Record<string, any> | undefined;
|
|
876
1119
|
minRange?: Record<string, any> | undefined;
|
|
@@ -889,8 +1132,8 @@ readonly levels?: Record<string, any> | undefined;
|
|
|
889
1132
|
readonly scales?: Record<string, any> | undefined;
|
|
890
1133
|
readonly expandMult?: Record<string, any> | undefined;
|
|
891
1134
|
readonly theme?: Record<string, any> | undefined;
|
|
892
|
-
readonly dpi?: number | undefined;
|
|
893
1135
|
readonly render?: string | undefined;
|
|
1136
|
+
readonly dpi?: number | undefined;
|
|
894
1137
|
readonly layers?: unknown[] | undefined;
|
|
895
1138
|
readonly schema?: Record<string, any> | undefined;
|
|
896
1139
|
readonly minRange?: Record<string, any> | undefined;
|
|
@@ -919,122 +1162,7 @@ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info:
|
|
|
919
1162
|
$forceUpdate: () => void;
|
|
920
1163
|
$nextTick: nextTick;
|
|
921
1164
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
|
922
|
-
} & Readonly<{}> & Omit<Readonly<{}> & Readonly<{}>, "reverse" | "
|
|
923
|
-
vplot: {
|
|
924
|
-
layers: {
|
|
925
|
-
data: any[];
|
|
926
|
-
geom: string | undefined;
|
|
927
|
-
vBind: (Object & {
|
|
928
|
-
extendX: any;
|
|
929
|
-
extendY: any;
|
|
930
|
-
}) | undefined;
|
|
931
|
-
}[];
|
|
932
|
-
coordScales: {
|
|
933
|
-
x: {
|
|
934
|
-
invert(w: any): any;
|
|
935
|
-
get breaks(): any[];
|
|
936
|
-
get minorBreaks(): never[];
|
|
937
|
-
apply(this: Function, thisArg: any, argArray?: any): any;
|
|
938
|
-
call(this: Function, thisArg: any, ...argArray: any[]): any;
|
|
939
|
-
bind(this: Function, thisArg: any, ...argArray: any[]): any;
|
|
940
|
-
toString(): string;
|
|
941
|
-
prototype: any;
|
|
942
|
-
readonly length: number;
|
|
943
|
-
arguments: any;
|
|
944
|
-
caller: Function;
|
|
945
|
-
readonly name: string;
|
|
946
|
-
[Symbol.hasInstance](value: any): boolean;
|
|
947
|
-
[Symbol.metadata]: DecoratorMetadata | null;
|
|
948
|
-
} | {
|
|
949
|
-
get breaks(): (arg0: {
|
|
950
|
-
min: number;
|
|
951
|
-
max: number;
|
|
952
|
-
}) => any[];
|
|
953
|
-
get minorBreaks(): never[];
|
|
954
|
-
invert(w: any): any;
|
|
955
|
-
apply(this: Function, thisArg: any, argArray?: any): any;
|
|
956
|
-
call(this: Function, thisArg: any, ...argArray: any[]): any;
|
|
957
|
-
bind(this: Function, thisArg: any, ...argArray: any[]): any;
|
|
958
|
-
toString(): string;
|
|
959
|
-
prototype: any;
|
|
960
|
-
readonly length: number;
|
|
961
|
-
arguments: any;
|
|
962
|
-
caller: Function;
|
|
963
|
-
readonly name: string;
|
|
964
|
-
[Symbol.hasInstance](value: any): boolean;
|
|
965
|
-
[Symbol.metadata]: DecoratorMetadata | null;
|
|
966
|
-
} | {
|
|
967
|
-
invert(w: any): any;
|
|
968
|
-
get breaks(): (arg0: {
|
|
969
|
-
min: number;
|
|
970
|
-
max: number;
|
|
971
|
-
}) => any[];
|
|
972
|
-
apply(this: Function, thisArg: any, argArray?: any): any;
|
|
973
|
-
call(this: Function, thisArg: any, ...argArray: any[]): any;
|
|
974
|
-
bind(this: Function, thisArg: any, ...argArray: any[]): any;
|
|
975
|
-
toString(): string;
|
|
976
|
-
prototype: any;
|
|
977
|
-
readonly length: number;
|
|
978
|
-
arguments: any;
|
|
979
|
-
caller: Function;
|
|
980
|
-
readonly name: string;
|
|
981
|
-
[Symbol.hasInstance](value: any): boolean;
|
|
982
|
-
[Symbol.metadata]: DecoratorMetadata | null;
|
|
983
|
-
};
|
|
984
|
-
y: {
|
|
985
|
-
invert(w: any): any;
|
|
986
|
-
get breaks(): any[];
|
|
987
|
-
get minorBreaks(): never[];
|
|
988
|
-
apply(this: Function, thisArg: any, argArray?: any): any;
|
|
989
|
-
call(this: Function, thisArg: any, ...argArray: any[]): any;
|
|
990
|
-
bind(this: Function, thisArg: any, ...argArray: any[]): any;
|
|
991
|
-
toString(): string;
|
|
992
|
-
prototype: any;
|
|
993
|
-
readonly length: number;
|
|
994
|
-
arguments: any;
|
|
995
|
-
caller: Function;
|
|
996
|
-
readonly name: string;
|
|
997
|
-
[Symbol.hasInstance](value: any): boolean;
|
|
998
|
-
[Symbol.metadata]: DecoratorMetadata | null;
|
|
999
|
-
} | {
|
|
1000
|
-
get breaks(): (arg0: {
|
|
1001
|
-
min: number;
|
|
1002
|
-
max: number;
|
|
1003
|
-
}) => any[];
|
|
1004
|
-
get minorBreaks(): never[];
|
|
1005
|
-
invert(w: any): any;
|
|
1006
|
-
apply(this: Function, thisArg: any, argArray?: any): any;
|
|
1007
|
-
call(this: Function, thisArg: any, ...argArray: any[]): any;
|
|
1008
|
-
bind(this: Function, thisArg: any, ...argArray: any[]): any;
|
|
1009
|
-
toString(): string;
|
|
1010
|
-
prototype: any;
|
|
1011
|
-
readonly length: number;
|
|
1012
|
-
arguments: any;
|
|
1013
|
-
caller: Function;
|
|
1014
|
-
readonly name: string;
|
|
1015
|
-
[Symbol.hasInstance](value: any): boolean;
|
|
1016
|
-
[Symbol.metadata]: DecoratorMetadata | null;
|
|
1017
|
-
} | {
|
|
1018
|
-
invert(w: any): any;
|
|
1019
|
-
get breaks(): (arg0: {
|
|
1020
|
-
min: number;
|
|
1021
|
-
max: number;
|
|
1022
|
-
}) => any[];
|
|
1023
|
-
apply(this: Function, thisArg: any, argArray?: any): any;
|
|
1024
|
-
call(this: Function, thisArg: any, ...argArray: any[]): any;
|
|
1025
|
-
bind(this: Function, thisArg: any, ...argArray: any[]): any;
|
|
1026
|
-
toString(): string;
|
|
1027
|
-
prototype: any;
|
|
1028
|
-
readonly length: number;
|
|
1029
|
-
arguments: any;
|
|
1030
|
-
caller: Function;
|
|
1031
|
-
readonly name: string;
|
|
1032
|
-
[Symbol.hasInstance](value: any): boolean;
|
|
1033
|
-
[Symbol.metadata]: DecoratorMetadata | null;
|
|
1034
|
-
};
|
|
1035
|
-
};
|
|
1036
|
-
scales: Map<any, any>;
|
|
1037
|
-
};
|
|
1165
|
+
} & Readonly<{}> & Omit<Readonly<{}> & Readonly<{}>, "reverse" | "$props" | "$emit" | "action" | "levels" | "scales" | "expandMult" | "theme" | "render" | "dpi" | "svg" | "flip" | "layers" | "schema" | "minRange" | "expandAdd" | "paddings" | "coordLevels" | "axes" | "clip" | "selections" | "legendTeleport" | "panel"> & {
|
|
1038
1166
|
panel: {
|
|
1039
1167
|
l: any;
|
|
1040
1168
|
r: any;
|
|
@@ -1048,7 +1176,7 @@ width: number;
|
|
|
1048
1176
|
height: number;
|
|
1049
1177
|
};
|
|
1050
1178
|
svg: SVGSVGElement | null;
|
|
1051
|
-
$emit: (event: "click" | "
|
|
1179
|
+
$emit: (event: "click" | "contextmenu" | "singleclick" | "pointerover" | "pointerout" | "pointerenter" | "pointerleave" | "pointermove" | "pointerdown" | "pointerup" | "wheel" | "dblclick" | "move" | "zoom" | "rescale" | "nudge" | "select" | "selecting", ...args: any[]) => void;
|
|
1052
1180
|
action: unknown[];
|
|
1053
1181
|
flip: boolean;
|
|
1054
1182
|
axes: unknown[];
|
|
@@ -1059,8 +1187,8 @@ levels?: Record<string, any> | undefined;
|
|
|
1059
1187
|
scales?: Record<string, any> | undefined;
|
|
1060
1188
|
expandMult?: Record<string, any> | undefined;
|
|
1061
1189
|
theme?: Record<string, any> | undefined;
|
|
1062
|
-
dpi?: number | undefined;
|
|
1063
1190
|
render?: string | undefined;
|
|
1191
|
+
dpi?: number | undefined;
|
|
1064
1192
|
layers?: unknown[] | undefined;
|
|
1065
1193
|
schema?: Record<string, any> | undefined;
|
|
1066
1194
|
minRange?: Record<string, any> | undefined;
|
|
@@ -1079,8 +1207,8 @@ readonly levels?: Record<string, any> | undefined;
|
|
|
1079
1207
|
readonly scales?: Record<string, any> | undefined;
|
|
1080
1208
|
readonly expandMult?: Record<string, any> | undefined;
|
|
1081
1209
|
readonly theme?: Record<string, any> | undefined;
|
|
1082
|
-
readonly dpi?: number | undefined;
|
|
1083
1210
|
readonly render?: string | undefined;
|
|
1211
|
+
readonly dpi?: number | undefined;
|
|
1084
1212
|
readonly layers?: unknown[] | undefined;
|
|
1085
1213
|
readonly schema?: Record<string, any> | undefined;
|
|
1086
1214
|
readonly minRange?: Record<string, any> | undefined;
|
|
@@ -1201,4 +1329,28 @@ export declare namespace vvtheme {
|
|
|
1201
1329
|
export { theme_void as void };
|
|
1202
1330
|
}
|
|
1203
1331
|
|
|
1332
|
+
export declare namespace vvutils {
|
|
1333
|
+
export {
|
|
1334
|
+
is_continuous,
|
|
1335
|
+
is_categorical,
|
|
1336
|
+
plus,
|
|
1337
|
+
obj_merge,
|
|
1338
|
+
str_c,
|
|
1339
|
+
unique,
|
|
1340
|
+
oob_censor,
|
|
1341
|
+
oob_squish_any,
|
|
1342
|
+
oob_squish_infinite,
|
|
1343
|
+
deepEqual,
|
|
1344
|
+
categorize,
|
|
1345
|
+
interaction,
|
|
1346
|
+
intraaction,
|
|
1347
|
+
intrazip,
|
|
1348
|
+
Asis,
|
|
1349
|
+
EnumElement,
|
|
1350
|
+
EnumLevel,
|
|
1351
|
+
numutils,
|
|
1352
|
+
vecutils
|
|
1353
|
+
}
|
|
1354
|
+
}
|
|
1355
|
+
|
|
1204
1356
|
export { }
|