vvplot 0.5.3 → 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 CHANGED
@@ -1 +1,1356 @@
1
+ import { AllowedComponentProps } from 'vue';
2
+ import { App } from 'vue';
3
+ import { Attrs } from 'vue';
4
+ import { ComponentCustomProperties } from 'vue';
5
+ import { ComponentCustomProps } from 'vue';
6
+ import { ComponentInternalInstance } from 'vue';
7
+ import { ComponentOptionsBase } from 'vue';
8
+ import { ComponentOptionsMixin } from 'vue';
9
+ import { ComponentProvideOptions } from 'vue';
10
+ import { ComponentPublicInstance } from 'vue';
11
+ import { ComputedRef } from 'vue';
12
+ import { CreateComponentPublicInstanceWithMixins } from 'vue';
13
+ import { DebuggerEvent } from 'vue';
14
+ import { DefineComponent } from 'vue';
15
+ import { GlobalComponents } from 'vue';
16
+ import { GlobalDirectives } from 'vue';
17
+ import { nextTick } from 'vue';
18
+ import { OnCleanup } from '@vue/reactivity';
19
+ import { Plugin as Plugin_2 } from 'vue';
20
+ import { PublicProps } from 'vue';
21
+ import { ShallowRef } from 'vue';
22
+ import { Slot } from 'vue';
23
+ import { VNodeProps } from 'vue';
24
+ import { WatchOptions } from 'vue';
25
+ import { WatchStopHandle } from 'vue';
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
+
50
+ export declare namespace components {
51
+ export {
52
+ VVPlot,
53
+ VVAxis,
54
+ VVAxisX,
55
+ VVAxisY,
56
+ VVAxisBreak,
57
+ VVAction,
58
+ VVSelection,
59
+ VVGeom
60
+ }
61
+ }
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
+
82
+ declare namespace _default {
83
+ let scale_attrs: never[];
84
+ function coord_scale(ds: any, levels: any): null;
85
+ function get_range(ds: any, orientation: any): any;
86
+ function validate(d: any): null;
87
+ }
88
+
89
+ declare namespace _default_10 {
90
+ let legend_glyph: string;
91
+ let scale_attrs: string[];
92
+ function coord_scale(ds: any, levels: any): {
93
+ xmin: any[] | null;
94
+ xmax: any[] | null;
95
+ ymin: any[] | null;
96
+ ymax: any[] | null;
97
+ };
98
+ function get_range(ds: any, orientation: any): any;
99
+ function validate(d: any): any;
100
+ }
101
+
102
+ declare namespace _default_11 {
103
+ let legend_glyph: string;
104
+ let scale_attrs: string[];
105
+ function coord_scale(ds: any, levels: any): {
106
+ points: any;
107
+ };
108
+ function get_values(ds: any, orientation: any): any;
109
+ function get_range(ds: any, orientation: any): any;
110
+ function validate(d: any): any;
111
+ }
112
+
113
+ declare namespace _default_12 {
114
+ let legend_glyph: string;
115
+ let scale_attrs: string[];
116
+ function coord_scale(ds: any, levels: any): {
117
+ x: any[] | null;
118
+ y: any[] | null;
119
+ xend: any[] | null;
120
+ yend: any[] | null;
121
+ };
122
+ function get_values(ds: any, orientation: any): any;
123
+ function get_range(ds: any, orientation: any): any;
124
+ function validate(d: any): any;
125
+ }
126
+
127
+ declare namespace _default_13 {
128
+ let legend_glyph: string;
129
+ let scale_attrs: string[];
130
+ function coord_scale(ds: any, levels: any): {
131
+ x: any[] | null;
132
+ y: any[] | null;
133
+ };
134
+ function get_range(ds: any, orientation: any): any;
135
+ function validate(d: any): any;
136
+ }
137
+
138
+ declare namespace _default_14 {
139
+ let legend_glyph: string;
140
+ let scale_attrs: string[];
141
+ function coord_scale(ds: any, levels: any): {
142
+ x: any[] | null;
143
+ y: any[] | null;
144
+ xend: any[] | null;
145
+ yend: any[] | null;
146
+ };
147
+ function get_range(ds: any, orientation: any): any;
148
+ function validate(d: any): any;
149
+ }
150
+
151
+ declare namespace _default_15 {
152
+ let legend_glyph: string;
153
+ let scale_attrs: string[];
154
+ function coord_scale(ds: any, levels: any): {
155
+ xmin: any[] | null;
156
+ xmax: any[] | null;
157
+ ymin: any[] | null;
158
+ ymax: any[] | null;
159
+ };
160
+ function get_values(ds: any, orientation: any): any;
161
+ function get_range(ds: any, orientation: any): any[] | undefined;
162
+ function validate(d: any): any;
163
+ }
164
+
165
+ declare const _default_16: StatTransform;
166
+
167
+ declare const _default_17: StatTransform;
168
+
169
+ declare const _default_18: StatTransform;
170
+
171
+ declare const _default_19: StatTransform;
172
+
173
+ declare namespace _default_2 {
174
+ let legend_glyph: string;
175
+ let scale_attrs: string[];
176
+ function coord_scale(ds: any, levels: any): {
177
+ x: any[] | null;
178
+ xmin: any[] | null;
179
+ xmax: any[] | null;
180
+ lwisker: any[] | null;
181
+ Q1: any[] | null;
182
+ median: any[] | null;
183
+ Q3: any[] | null;
184
+ uwisker: any[] | null;
185
+ outliers: any[] | null;
186
+ $xmin: any[] | null;
187
+ $xmax: any[] | null;
188
+ $ymin: any[] | null;
189
+ $ymax: any[] | null;
190
+ y?: undefined;
191
+ ymin?: undefined;
192
+ ymax?: undefined;
193
+ } | {
194
+ y: any[] | null;
195
+ ymin: any[] | null;
196
+ ymax: any[] | null;
197
+ lwisker: any[] | null;
198
+ Q1: any[] | null;
199
+ median: any[] | null;
200
+ Q3: any[] | null;
201
+ uwisker: any[] | null;
202
+ outliers: any[] | null;
203
+ $xmin: any[] | null;
204
+ $xmax: any[] | null;
205
+ $ymin: any[] | null;
206
+ $ymax: any[] | null;
207
+ x?: undefined;
208
+ xmin?: undefined;
209
+ xmax?: undefined;
210
+ } | {
211
+ x?: undefined;
212
+ xmin?: undefined;
213
+ xmax?: undefined;
214
+ lwisker?: undefined;
215
+ Q1?: undefined;
216
+ median?: undefined;
217
+ Q3?: undefined;
218
+ uwisker?: undefined;
219
+ outliers?: undefined;
220
+ $xmin?: undefined;
221
+ $xmax?: undefined;
222
+ $ymin?: undefined;
223
+ $ymax?: undefined;
224
+ y?: undefined;
225
+ ymin?: undefined;
226
+ ymax?: undefined;
227
+ };
228
+ function get_range(ds: any, orientation: any): any;
229
+ function validate(d: any): any;
230
+ }
231
+
232
+ declare const _default_20: StatTransform;
233
+
234
+ declare const _default_21: StatTransform;
235
+
236
+ declare const _default_22: StatTransform;
237
+
238
+ declare const _default_23: StatTransform;
239
+
240
+ declare const _default_24: StatTransform;
241
+
242
+ declare const _default_25: StatTransform;
243
+
244
+ declare const _default_26: StatTransform;
245
+
246
+ declare const _default_27: StatTransform;
247
+
248
+ declare const _default_28: StatTransform;
249
+
250
+ declare const _default_29: StatTransform;
251
+
252
+ declare namespace _default_3 {
253
+ let legend_glyph: string;
254
+ let scale_attrs: string[];
255
+ function coord_scale(ds: any, levels: any): {
256
+ points: any;
257
+ };
258
+ function get_range(ds: any, orientation: any): any;
259
+ function validate(d: any): any;
260
+ }
261
+
262
+ declare const _default_30: StatTransform;
263
+
264
+ declare const _default_31: StatTransform;
265
+
266
+ declare const _default_32: StatTransform;
267
+
268
+ declare const _default_33: StatTransform;
269
+
270
+ declare const _default_34: StatTransform;
271
+
272
+ declare const _default_35: StatTransform;
273
+
274
+ declare const _default_36: StatTransform;
275
+
276
+ declare namespace _default_4 {
277
+ let legend_glyph: string;
278
+ let scale_attrs: string[];
279
+ function coord_scale(ds: any, levels: any): {
280
+ cx: any[] | null;
281
+ cy: any[] | null;
282
+ A: any;
283
+ B: any;
284
+ C: any;
285
+ };
286
+ function get_range(ds: any, orientation: any): any[] | undefined;
287
+ function validate(d: any): any;
288
+ }
289
+
290
+ declare namespace _default_5 {
291
+ let legend_glyph: string;
292
+ let scale_attrs: string[];
293
+ function coord_scale(ds: any, levels: any): {
294
+ x: any[] | null;
295
+ y: any[] | null;
296
+ xend: any[] | null;
297
+ yend: any[] | null;
298
+ };
299
+ function get_range(ds: any, orientation: any): any;
300
+ function validate(d: any): any;
301
+ }
302
+
303
+ declare namespace _default_6 {
304
+ let legend_glyph: string;
305
+ let scale_attrs: string[];
306
+ function coord_scale(ds: any, levels: any): {
307
+ x: any[] | null;
308
+ y: any[] | null;
309
+ };
310
+ function get_range(ds: any, orientation: any): any;
311
+ function validate(d: any): any;
312
+ }
313
+
314
+ declare namespace _default_7 {
315
+ let legend_glyph: string;
316
+ let scale_attrs: string[];
317
+ function coord_scale(ds: any, levels: any): {
318
+ x: any[] | null;
319
+ y: any[] | null;
320
+ xend: any[] | null;
321
+ yend: any[] | null;
322
+ };
323
+ function get_range(ds: any, orientation: any): any;
324
+ function validate(d: any): any;
325
+ }
326
+
327
+ declare namespace _default_8 {
328
+ let legend_glyph: string;
329
+ let scale_attrs: string[];
330
+ function coord_scale(ds: any, levels: any): {
331
+ x: any[] | null;
332
+ y: any[] | null;
333
+ };
334
+ function get_range(ds: any, orientation: any): any;
335
+ function validate(d: any): any;
336
+ }
337
+
338
+ declare namespace _default_9 {
339
+ let legend_glyph: string;
340
+ let scale_attrs: string[];
341
+ function coord_scale(ds: any, levels: any): {
342
+ points: any;
343
+ };
344
+ function get_range(ds: any, orientation: any): any;
345
+ function validate(d: any): any;
346
+ }
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
+
464
+ export declare function install(app: App): void;
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
+
534
+ export declare namespace number_cut {
535
+ let metric: {
536
+ '': number;
537
+ k: number;
538
+ M: number;
539
+ G: number;
540
+ T: number;
541
+ P: number;
542
+ E: number;
543
+ Z: number;
544
+ Y: number;
545
+ };
546
+ let si: {
547
+ y: number;
548
+ z: number;
549
+ a: number;
550
+ f: number;
551
+ p: number;
552
+ n: number;
553
+ μ: number;
554
+ m: number;
555
+ '': number;
556
+ k: number;
557
+ M: number;
558
+ G: number;
559
+ T: number;
560
+ P: number;
561
+ E: number;
562
+ Z: number;
563
+ Y: number;
564
+ };
565
+ let binary: {
566
+ '': number;
567
+ Ki: number;
568
+ Mi: number;
569
+ Gi: number;
570
+ Ti: number;
571
+ Pi: number;
572
+ Ei: number;
573
+ Zi: number;
574
+ Yi: number;
575
+ };
576
+ export namespace time {
577
+ let ns: number;
578
+ let μs: number;
579
+ let ms: number;
580
+ let s: number;
581
+ let m: number;
582
+ let h: number;
583
+ let d: number;
584
+ let w: number;
585
+ let M: number;
586
+ let y: number;
587
+ }
588
+ }
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
+
634
+ export declare namespace oob {
635
+ export { oob_censor as censor };
636
+ export function squish(value: any, { min, max }: {
637
+ min: any;
638
+ max: any;
639
+ }): any;
640
+ export { oob_squish_any as squish_any };
641
+ export { oob_squish_infinite as squish_infinite };
642
+ export function discard(value: any, { min, max }: {
643
+ min: any;
644
+ max: any;
645
+ }): any;
646
+ }
647
+
648
+ /**
649
+ * turn out-of-bounds values to NaN
650
+ * @param {number} value
651
+ * @param {Object} option
652
+ * @param {number} option.min lower bound
653
+ * @param {number} option.max upper bound
654
+ * @returns {number}
655
+ */
656
+ declare function oob_censor(value: number, { min, max }: {
657
+ min: number;
658
+ max: number;
659
+ }): number;
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
+
687
+ declare const plugin: Plugin_2;
688
+ export default plugin;
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
+
880
+ export declare const VVAction: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
881
+
882
+ export declare const VVAxis: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
883
+
884
+ export declare const VVAxisBreak: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
885
+
886
+ export declare const VVAxisX: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
887
+
888
+ export declare const VVAxisY: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
889
+
890
+ export declare namespace vvbreak {
891
+ export { break_number as number };
892
+ export { break_datetime as datetime };
893
+ }
894
+
895
+ export declare const VVGeom: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
896
+
897
+ export declare namespace vvgeom {
898
+ export {
899
+ _default as blank,
900
+ _default_2 as boxplot,
901
+ _default_3 as curve,
902
+ _default_4 as ellipse,
903
+ _default_5 as line,
904
+ _default_6 as markdown,
905
+ _default_7 as markdownsegment,
906
+ _default_8 as point,
907
+ _default_9 as polygon,
908
+ _default_10 as rect,
909
+ _default_11 as shape,
910
+ _default_12 as stick,
911
+ _default_13 as text,
912
+ _default_14 as textsegment,
913
+ _default_15 as tile
914
+ }
915
+ }
916
+
917
+ export declare const VVGeomBar: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
918
+
919
+ export declare const VVGeomBlank: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
920
+
921
+ export declare const VVGeomBoxplot: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
922
+
923
+ export declare const VVGeomCol: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
924
+
925
+ export declare const VVGeomCurve: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
926
+
927
+ export declare const VVGeomDensity: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
928
+
929
+ export declare const VVGeomEllipse: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
930
+
931
+ export declare const VVGeomHistogram: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
932
+
933
+ export declare const VVGeomLine: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
934
+
935
+ export declare const VVGeomLinerange: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
936
+
937
+ export declare const VVGeomMarkdown: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
938
+
939
+ export declare const VVGeomMarkdownsegment: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
940
+
941
+ export declare const VVGeomPath: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
942
+
943
+ export declare const VVGeomPoint: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
944
+
945
+ export declare const VVGeomPolygon: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
946
+
947
+ export declare const VVGeomRect: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
948
+
949
+ export declare const VVGeomSegment: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
950
+
951
+ export declare const VVGeomShape: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
952
+
953
+ export declare const VVGeomStick: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
954
+
955
+ export declare const VVGeomText: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
956
+
957
+ export declare const VVGeomTextsegment: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
958
+
959
+ export declare const VVGeomTile: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
960
+
961
+ export declare const VVGeomViolin: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
962
+
963
+ export declare namespace vvlabel {
964
+ export { format_number as number };
965
+ export { format_datetime as datetime };
966
+ export { format_datetime as timestamp };
967
+ export { format_asis as asis };
968
+ export { format_auto as auto };
969
+ export function metric_1(opts: any): (x: any, i: any, arr?: any[]) => string;
970
+ export { metric_1 as metric };
971
+ }
972
+
973
+ export declare const VVPlot: DefineComponent< {}, {
974
+ svg: SVGSVGElement | null;
975
+ serialize(options: any): string;
976
+ export(options: any): Promise<string>;
977
+ $emit: (event: "rangechange" | "resize" | "select" | "update:range" | "update:rangePreview", ...args: any[]) => void;
978
+ flip: boolean;
979
+ clip: boolean;
980
+ reverse?: Record<string, any> | undefined;
981
+ action?: Record<string, any> | unknown[] | undefined;
982
+ range?: Record<string, any> | undefined;
983
+ data?: unknown[] | undefined;
984
+ levels?: Record<string, any> | undefined;
985
+ scales?: Record<string, any> | undefined;
986
+ expandMult?: Record<string, any> | undefined;
987
+ theme?: Record<string, any> | unknown[] | undefined;
988
+ render?: string | undefined;
989
+ dpi?: number | undefined;
990
+ resize?: any;
991
+ minRange?: Record<string, any> | undefined;
992
+ expandAdd?: Record<string, any> | undefined;
993
+ axes?: Record<string, any> | unknown[] | undefined;
994
+ legendTeleport?: any;
995
+ aes?: Record<string, any> | undefined;
996
+ extend?: Record<string, any> | undefined;
997
+ rangePreview?: Record<string, any> | undefined;
998
+ $props: {
999
+ readonly flip?: boolean | undefined;
1000
+ readonly clip?: boolean | undefined;
1001
+ readonly reverse?: Record<string, any> | undefined;
1002
+ readonly action?: Record<string, any> | unknown[] | undefined;
1003
+ readonly range?: Record<string, any> | undefined;
1004
+ readonly data?: unknown[] | undefined;
1005
+ readonly levels?: Record<string, any> | undefined;
1006
+ readonly scales?: Record<string, any> | undefined;
1007
+ readonly expandMult?: Record<string, any> | undefined;
1008
+ readonly theme?: Record<string, any> | unknown[] | undefined;
1009
+ readonly render?: string | undefined;
1010
+ readonly dpi?: number | undefined;
1011
+ readonly resize?: any;
1012
+ readonly minRange?: Record<string, any> | undefined;
1013
+ readonly expandAdd?: Record<string, any> | undefined;
1014
+ readonly axes?: Record<string, any> | unknown[] | undefined;
1015
+ readonly legendTeleport?: any;
1016
+ readonly aes?: Record<string, any> | undefined;
1017
+ readonly extend?: Record<string, any> | undefined;
1018
+ readonly rangePreview?: Record<string, any> | undefined;
1019
+ };
1020
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {
1021
+ wrapper: HTMLDivElement;
1022
+ plot: ({
1023
+ $: ComponentInternalInstance;
1024
+ $data: {};
1025
+ $props: Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>;
1026
+ $attrs: Attrs;
1027
+ $refs: {
1028
+ [x: string]: unknown;
1029
+ } & {
1030
+ svg: SVGSVGElement;
1031
+ layers: CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
1032
+ render: ComputedRef<string>;
1033
+ dispatchEvent: (e: any) => any;
1034
+ defaultRender: string;
1035
+ data?: Record<string, any> | undefined;
1036
+ geom?: string | undefined;
1037
+ options?: Record<string, any> | undefined;
1038
+ mapping?: Record<string, any> | undefined;
1039
+ dpi?: number | undefined;
1040
+ defaultDpi?: number | undefined;
1041
+ $props: {
1042
+ readonly defaultRender?: string | undefined;
1043
+ readonly data?: Record<string, any> | undefined;
1044
+ readonly geom?: string | undefined;
1045
+ readonly options?: Record<string, any> | undefined;
1046
+ readonly mapping?: Record<string, any> | undefined;
1047
+ readonly render?: string | undefined;
1048
+ readonly dpi?: number | undefined;
1049
+ readonly defaultDpi?: number | undefined;
1050
+ };
1051
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
1052
+ layer: any;
1053
+ }, any, ComponentProvideOptions, {
1054
+ P: {};
1055
+ B: {};
1056
+ D: {};
1057
+ C: {};
1058
+ M: {};
1059
+ Defaults: {};
1060
+ }, Readonly<{}> & Readonly<{}>, {
1061
+ render: ComputedRef<string>;
1062
+ dispatchEvent: (e: any) => any;
1063
+ defaultRender: string;
1064
+ data?: Record<string, any> | undefined;
1065
+ geom?: string | undefined;
1066
+ options?: Record<string, any> | undefined;
1067
+ mapping?: Record<string, any> | undefined;
1068
+ dpi?: number | undefined;
1069
+ defaultDpi?: number | undefined;
1070
+ $props: {
1071
+ readonly defaultRender?: string | undefined;
1072
+ readonly data?: Record<string, any> | undefined;
1073
+ readonly geom?: string | undefined;
1074
+ readonly options?: Record<string, any> | undefined;
1075
+ readonly mapping?: Record<string, any> | undefined;
1076
+ readonly render?: string | undefined;
1077
+ readonly dpi?: number | undefined;
1078
+ readonly defaultDpi?: number | undefined;
1079
+ };
1080
+ }, {}, {}, {}, {}> | null;
1081
+ };
1082
+ $slots: Readonly<{
1083
+ [name: string]: Slot<any> | undefined;
1084
+ }>;
1085
+ $root: ComponentPublicInstance | null;
1086
+ $parent: ComponentPublicInstance | null;
1087
+ $host: Element | null;
1088
+ $emit: (event: string, ...args: any[]) => void;
1089
+ $el: any;
1090
+ $options: ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {
1091
+ panel: {
1092
+ l: any;
1093
+ r: any;
1094
+ t: any;
1095
+ b: any;
1096
+ left: any;
1097
+ right: number;
1098
+ top: any;
1099
+ bottom: number;
1100
+ width: number;
1101
+ height: number;
1102
+ };
1103
+ svg: Readonly<ShallowRef<SVGSVGElement | null, SVGSVGElement | null>>;
1104
+ $emit: (event: "click" | "contextmenu" | "singleclick" | "pointerover" | "pointerout" | "pointerenter" | "pointerleave" | "pointermove" | "pointerdown" | "pointerup" | "wheel" | "dblclick" | "move" | "zoom" | "rescale" | "nudge" | "select" | "selecting", ...args: any[]) => void;
1105
+ action: unknown[];
1106
+ flip: boolean;
1107
+ axes: unknown[];
1108
+ clip: boolean;
1109
+ selections: unknown[];
1110
+ reverse?: Record<string, any> | undefined;
1111
+ levels?: Record<string, any> | undefined;
1112
+ scales?: Record<string, any> | undefined;
1113
+ expandMult?: Record<string, any> | undefined;
1114
+ theme?: Record<string, any> | undefined;
1115
+ render?: string | undefined;
1116
+ dpi?: number | undefined;
1117
+ layers?: unknown[] | undefined;
1118
+ schema?: Record<string, any> | undefined;
1119
+ minRange?: Record<string, any> | undefined;
1120
+ expandAdd?: Record<string, any> | undefined;
1121
+ paddings?: Record<string, any> | undefined;
1122
+ coordLevels?: Record<string, any> | undefined;
1123
+ legendTeleport?: any;
1124
+ $props: {
1125
+ readonly action?: unknown[] | undefined;
1126
+ readonly flip?: boolean | undefined;
1127
+ readonly axes?: unknown[] | undefined;
1128
+ readonly clip?: boolean | undefined;
1129
+ readonly selections?: unknown[] | undefined;
1130
+ readonly reverse?: Record<string, any> | undefined;
1131
+ readonly levels?: Record<string, any> | undefined;
1132
+ readonly scales?: Record<string, any> | undefined;
1133
+ readonly expandMult?: Record<string, any> | undefined;
1134
+ readonly theme?: Record<string, any> | undefined;
1135
+ readonly render?: string | undefined;
1136
+ readonly dpi?: number | undefined;
1137
+ readonly layers?: unknown[] | undefined;
1138
+ readonly schema?: Record<string, any> | undefined;
1139
+ readonly minRange?: Record<string, any> | undefined;
1140
+ readonly expandAdd?: Record<string, any> | undefined;
1141
+ readonly paddings?: Record<string, any> | undefined;
1142
+ readonly coordLevels?: Record<string, any> | undefined;
1143
+ readonly legendTeleport?: any;
1144
+ };
1145
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
1146
+ beforeCreate?: (() => void) | (() => void)[];
1147
+ created?: (() => void) | (() => void)[];
1148
+ beforeMount?: (() => void) | (() => void)[];
1149
+ mounted?: (() => void) | (() => void)[];
1150
+ beforeUpdate?: (() => void) | (() => void)[];
1151
+ updated?: (() => void) | (() => void)[];
1152
+ activated?: (() => void) | (() => void)[];
1153
+ deactivated?: (() => void) | (() => void)[];
1154
+ beforeDestroy?: (() => void) | (() => void)[];
1155
+ beforeUnmount?: (() => void) | (() => void)[];
1156
+ destroyed?: (() => void) | (() => void)[];
1157
+ unmounted?: (() => void) | (() => void)[];
1158
+ renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
1159
+ renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
1160
+ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
1161
+ };
1162
+ $forceUpdate: () => void;
1163
+ $nextTick: nextTick;
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;
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"> & {
1166
+ panel: {
1167
+ l: any;
1168
+ r: any;
1169
+ t: any;
1170
+ b: any;
1171
+ left: any;
1172
+ right: number;
1173
+ top: any;
1174
+ bottom: number;
1175
+ width: number;
1176
+ height: number;
1177
+ };
1178
+ svg: SVGSVGElement | null;
1179
+ $emit: (event: "click" | "contextmenu" | "singleclick" | "pointerover" | "pointerout" | "pointerenter" | "pointerleave" | "pointermove" | "pointerdown" | "pointerup" | "wheel" | "dblclick" | "move" | "zoom" | "rescale" | "nudge" | "select" | "selecting", ...args: any[]) => void;
1180
+ action: unknown[];
1181
+ flip: boolean;
1182
+ axes: unknown[];
1183
+ clip: boolean;
1184
+ selections: unknown[];
1185
+ reverse?: Record<string, any> | undefined;
1186
+ levels?: Record<string, any> | undefined;
1187
+ scales?: Record<string, any> | undefined;
1188
+ expandMult?: Record<string, any> | undefined;
1189
+ theme?: Record<string, any> | undefined;
1190
+ render?: string | undefined;
1191
+ dpi?: number | undefined;
1192
+ layers?: unknown[] | undefined;
1193
+ schema?: Record<string, any> | undefined;
1194
+ minRange?: Record<string, any> | undefined;
1195
+ expandAdd?: Record<string, any> | undefined;
1196
+ paddings?: Record<string, any> | undefined;
1197
+ coordLevels?: Record<string, any> | undefined;
1198
+ legendTeleport?: any;
1199
+ $props: {
1200
+ readonly action?: unknown[] | undefined;
1201
+ readonly flip?: boolean | undefined;
1202
+ readonly axes?: unknown[] | undefined;
1203
+ readonly clip?: boolean | undefined;
1204
+ readonly selections?: unknown[] | undefined;
1205
+ readonly reverse?: Record<string, any> | undefined;
1206
+ readonly levels?: Record<string, any> | undefined;
1207
+ readonly scales?: Record<string, any> | undefined;
1208
+ readonly expandMult?: Record<string, any> | undefined;
1209
+ readonly theme?: Record<string, any> | undefined;
1210
+ readonly render?: string | undefined;
1211
+ readonly dpi?: number | undefined;
1212
+ readonly layers?: unknown[] | undefined;
1213
+ readonly schema?: Record<string, any> | undefined;
1214
+ readonly minRange?: Record<string, any> | undefined;
1215
+ readonly expandAdd?: Record<string, any> | undefined;
1216
+ readonly paddings?: Record<string, any> | undefined;
1217
+ readonly coordLevels?: Record<string, any> | undefined;
1218
+ readonly legendTeleport?: any;
1219
+ };
1220
+ } & {} & ComponentCustomProperties & {} & {
1221
+ $slots: {
1222
+ default?(_: {}): any;
1223
+ };
1224
+ }) | null;
1225
+ }, any>;
1226
+
1227
+ export declare namespace vvscale {
1228
+ export { palette_scales as color };
1229
+ export { palette_scales as stroke };
1230
+ export { palette_scales as fill };
1231
+ export namespace alpha {
1232
+ export { continuous_scale as continuous };
1233
+ export { custom_scale as custom };
1234
+ export function _default({ title, ...etc }?: {}): ((arr: any) => any) & {
1235
+ title: any;
1236
+ limits: any;
1237
+ oob: typeof oob_censor;
1238
+ };
1239
+ export { _default as default };
1240
+ }
1241
+ export namespace size {
1242
+ export function identity({ title, ...etc }?: {}): ((arr: any) => any) & {
1243
+ asis: boolean;
1244
+ title: any;
1245
+ };
1246
+ export { continuous_scale as continuous };
1247
+ export { custom_scale as custom };
1248
+ export function _default_1({ title, ...etc }?: {}): ((arr: any) => any) & {
1249
+ title: any;
1250
+ limits: any;
1251
+ oob: typeof oob_censor;
1252
+ };
1253
+ export { _default_1 as default };
1254
+ }
1255
+ export namespace linewidth {
1256
+ export function identity_1({ title, ...etc }?: {}): ((arr: any) => any) & {
1257
+ asis: boolean;
1258
+ title: any;
1259
+ };
1260
+ export { identity_1 as identity };
1261
+ export { continuous_scale as continuous };
1262
+ export { manual_scale as manual };
1263
+ export { custom_scale as custom };
1264
+ export function _default_2({ title, ...etc }?: {}): ((arr: any) => any) & {
1265
+ title: any;
1266
+ limits: any;
1267
+ oob: typeof oob_censor;
1268
+ };
1269
+ export { _default_2 as default };
1270
+ }
1271
+ export namespace linetype {
1272
+ export function identity_2({ title, ...etc }?: {}): ((arr: any) => any) & {
1273
+ asis: boolean;
1274
+ title: any;
1275
+ };
1276
+ export { identity_2 as identity };
1277
+ export { linetype_scale_discrete as discrete };
1278
+ export { linetype_scale_discrete as default };
1279
+ export { custom_scale as custom };
1280
+ }
1281
+ export namespace shape {
1282
+ export function identity_3({ title, ...etc }?: {}): ((arr: any) => any) & {
1283
+ asis: boolean;
1284
+ title: any;
1285
+ };
1286
+ export { identity_3 as identity };
1287
+ export { shape_scale_discrete as discrete };
1288
+ export { shape_scale_discrete as default };
1289
+ export { custom_scale as custom };
1290
+ }
1291
+ }
1292
+
1293
+ export declare const VVSelection: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1294
+
1295
+ export declare namespace vvstat {
1296
+ export {
1297
+ _default_16 as bar,
1298
+ _default_17 as boxplot,
1299
+ _default_18 as col,
1300
+ _default_19 as curve,
1301
+ _default_20 as density,
1302
+ _default_21 as ellipse,
1303
+ _default_22 as histogram,
1304
+ _default_23 as identity,
1305
+ _default_24 as line,
1306
+ _default_25 as linerange,
1307
+ _default_26 as path,
1308
+ _default_27 as point,
1309
+ _default_28 as polygon,
1310
+ _default_29 as rect,
1311
+ _default_30 as segment,
1312
+ _default_31 as shape,
1313
+ _default_32 as stick,
1314
+ _default_33 as text,
1315
+ _default_34 as textsegment,
1316
+ _default_35 as tile,
1317
+ _default_36 as violin
1318
+ }
1319
+ }
1320
+
1321
+ export declare namespace vvtheme {
1322
+ export { theme_base as base };
1323
+ export { theme_default as default };
1324
+ export { theme_light as light };
1325
+ export { theme_classic as classic };
1326
+ export { theme_gray as gray };
1327
+ export { theme_dark as dark };
1328
+ export { theme_linedraw as linedraw };
1329
+ export { theme_void as void };
1330
+ }
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
+
1
1356
  export { }