@wick-charts/vue 0.6.3 → 0.6.4
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/README.md +2 -2
- package/dist/BandSeries.vue.js +50 -0
- package/dist/BandSeries.vue2.js +4 -0
- package/dist/ChartContainer.vue.js +16 -16
- package/dist/LineSeries.vue.js +2 -2
- package/dist/core/dist/animation/config.js +92 -75
- package/dist/core/dist/chart/badge-animator.js +30 -22
- package/dist/core/dist/chart/edge-indicators.js +22 -21
- package/dist/core/dist/chart/last-value.js +33 -26
- package/dist/core/dist/chart.js +168 -167
- package/dist/core/dist/data/decimation.js +58 -39
- package/dist/core/dist/navigator/controller.js +10 -10
- package/dist/core/dist/perf/perf-hud.js +6 -6
- package/dist/core/dist/series/band.js +670 -0
- package/dist/core/dist/series/bar.js +14 -14
- package/dist/core/dist/series/candlestick.js +31 -31
- package/dist/core/dist/series/heatmap.js +5 -5
- package/dist/core/dist/series/line-intro.js +47 -37
- package/dist/core/dist/series/line.js +485 -445
- package/dist/core/dist/series/painters/builtins.js +4 -4
- package/dist/core/dist/series/painters/canvas-path.js +64 -52
- package/dist/core/dist/series/register-builtins.js +9 -8
- package/dist/core/dist/snapshots.js +36 -35
- package/dist/core/dist/utils/point.js +10 -0
- package/dist/index.d.ts +255 -97
- package/dist/index.js +195 -191
- package/dist/ui/InfoBar.vue.js +100 -81
- package/dist/ui/Tooltip.vue.js +118 -91
- package/dist/ui/YLabel.vue.js +62 -69
- package/package.json +2 -2
- package/src/BandSeries.vue +87 -0
- package/src/index.ts +8 -0
- package/src/ui/InfoBar.vue +20 -1
- package/src/ui/Tooltip.vue +36 -2
- package/src/ui/YLabel.vue +2 -13
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { PublicProps } from 'vue';
|
|
|
5
5
|
import { Ref } from 'vue';
|
|
6
6
|
import { ShallowRef } from 'vue';
|
|
7
7
|
|
|
8
|
-
declare const __VLS_component: DefineComponent<
|
|
8
|
+
declare const __VLS_component: DefineComponent<__VLS_Props_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_4> & Readonly<{}>, {
|
|
9
9
|
fade: boolean | {
|
|
10
10
|
top?: number;
|
|
11
11
|
overlap?: number;
|
|
@@ -26,35 +26,41 @@ legendAnchor: HTMLDivElement;
|
|
|
26
26
|
navigatorAnchor: HTMLDivElement;
|
|
27
27
|
}, HTMLDivElement>;
|
|
28
28
|
|
|
29
|
-
declare const __VLS_component_2: DefineComponent<
|
|
29
|
+
declare const __VLS_component_2: DefineComponent<__VLS_Props_9, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_9> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
30
30
|
|
|
31
|
-
declare const __VLS_component_3: DefineComponent<
|
|
31
|
+
declare const __VLS_component_3: DefineComponent<__VLS_Props_10, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_10> & Readonly<{}>, {
|
|
32
32
|
position: "bottom" | "right";
|
|
33
33
|
mode: LegendMode;
|
|
34
34
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
35
35
|
|
|
36
|
-
declare const __VLS_component_4: DefineComponent<
|
|
36
|
+
declare const __VLS_component_4: DefineComponent<__VLS_Props_14, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_14> & Readonly<{}>, {
|
|
37
37
|
position: PieLegendPosition;
|
|
38
38
|
format: ValueFormatter;
|
|
39
39
|
mode: PieLegendMode;
|
|
40
40
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
41
41
|
|
|
42
|
-
declare const __VLS_component_5: DefineComponent<
|
|
42
|
+
declare const __VLS_component_5: DefineComponent<__VLS_Props_15, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_15> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
43
43
|
containerRef: HTMLDivElement;
|
|
44
44
|
}, any>;
|
|
45
45
|
|
|
46
|
-
declare const __VLS_component_6: DefineComponent<
|
|
46
|
+
declare const __VLS_component_6: DefineComponent<__VLS_Props_19, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_19> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
47
47
|
|
|
48
|
-
declare const __VLS_component_7: DefineComponent<
|
|
48
|
+
declare const __VLS_component_7: DefineComponent<__VLS_Props_20, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_20> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
49
49
|
containerRef: HTMLDivElement;
|
|
50
50
|
}, any>;
|
|
51
51
|
|
|
52
|
-
declare const __VLS_component_8: DefineComponent<
|
|
52
|
+
declare const __VLS_component_8: DefineComponent<__VLS_Props_22, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_22> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
53
53
|
|
|
54
54
|
declare type __VLS_Props = {
|
|
55
|
-
/**
|
|
56
|
-
|
|
57
|
-
|
|
55
|
+
/**
|
|
56
|
+
* Band data — one band per layer. A single band passes a flat
|
|
57
|
+
* `{ time, low, high }[]`; several bands pass `BandPoint[][]`. To name/color
|
|
58
|
+
* a band, pass `{ label, color?, data }` (or an array of them). Time accepts
|
|
59
|
+
* ms or `Date`.
|
|
60
|
+
*/
|
|
61
|
+
data: BandData;
|
|
62
|
+
/** Visual options override — fill, edge stroke, curve, entrance / intro / smoothing. */
|
|
63
|
+
options?: Partial<BandSeriesOptions>;
|
|
58
64
|
/** Stable series ID — same value across remounts. */
|
|
59
65
|
id?: string;
|
|
60
66
|
/** Show/hide the series without unmounting it — excludes it from the Y-range fit and tooltip/legend. Default `true`. Live. */
|
|
@@ -62,6 +68,15 @@ declare type __VLS_Props = {
|
|
|
62
68
|
};
|
|
63
69
|
|
|
64
70
|
declare type __VLS_Props_10 = {
|
|
71
|
+
items?: LegendItemOverride[];
|
|
72
|
+
position?: 'bottom' | 'right';
|
|
73
|
+
/** `'isolate'` shows only the clicked item; `'solo'` is a @deprecated alias. */
|
|
74
|
+
mode?: LegendMode;
|
|
75
|
+
/** Fired after a click changes series visibility — via the built-in UI or a custom slot calling `item.toggle()`/`isolate()` directly. */
|
|
76
|
+
onToggle?: (info: LegendToggleInfo) => void;
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
declare type __VLS_Props_11 = {
|
|
65
80
|
/** X anchor — epoch ms or a `Date`. */
|
|
66
81
|
time: TimeValue;
|
|
67
82
|
/** Y anchor as a data value. Omit and set `seriesId` to snap to that series' value at `time`. */
|
|
@@ -78,13 +93,13 @@ declare type __VLS_Props_10 = {
|
|
|
78
93
|
color?: string;
|
|
79
94
|
};
|
|
80
95
|
|
|
81
|
-
declare type
|
|
96
|
+
declare type __VLS_Props_12 = {
|
|
82
97
|
data: NavigatorData;
|
|
83
98
|
/** Strip height in CSS pixels. Defaults to `theme.navigator.height` (60). */
|
|
84
99
|
height?: number;
|
|
85
100
|
};
|
|
86
101
|
|
|
87
|
-
declare type
|
|
102
|
+
declare type __VLS_Props_13 = {
|
|
88
103
|
value: number;
|
|
89
104
|
/**
|
|
90
105
|
* Value-to-string formatter. Defaults to the current locale's
|
|
@@ -96,7 +111,7 @@ declare type __VLS_Props_12 = {
|
|
|
96
111
|
spinDuration?: number;
|
|
97
112
|
};
|
|
98
113
|
|
|
99
|
-
declare type
|
|
114
|
+
declare type __VLS_Props_14 = {
|
|
100
115
|
/**
|
|
101
116
|
* Owning series id. **Optional** — when omitted, the first visible pie
|
|
102
117
|
* series is picked.
|
|
@@ -110,7 +125,7 @@ declare type __VLS_Props_13 = {
|
|
|
110
125
|
position?: PieLegendPosition;
|
|
111
126
|
};
|
|
112
127
|
|
|
113
|
-
declare type
|
|
128
|
+
declare type __VLS_Props_15 = {
|
|
114
129
|
/**
|
|
115
130
|
* Owning series id. **Optional** — when omitted, the first visible pie
|
|
116
131
|
* series is picked.
|
|
@@ -120,7 +135,7 @@ declare type __VLS_Props_14 = {
|
|
|
120
135
|
format?: ValueFormatter;
|
|
121
136
|
};
|
|
122
137
|
|
|
123
|
-
declare type
|
|
138
|
+
declare type __VLS_Props_16 = {
|
|
124
139
|
/** Horizontal line at this Y data value. Mutually exclusive with `time`. */
|
|
125
140
|
value?: number;
|
|
126
141
|
/** Vertical line at this `time` (epoch ms or `Date`). Mutually exclusive with `value`. */
|
|
@@ -135,14 +150,14 @@ declare type __VLS_Props_15 = {
|
|
|
135
150
|
width?: number;
|
|
136
151
|
};
|
|
137
152
|
|
|
138
|
-
declare type
|
|
153
|
+
declare type __VLS_Props_17 = {
|
|
139
154
|
/** Desired number of labels (≥ 2). Overrides chart-level `axis.x.labelCount`. */
|
|
140
155
|
labelCount?: number;
|
|
141
156
|
/** Minimum pixel gap between adjacent labels (hard floor). Overrides chart-level. */
|
|
142
157
|
minLabelSpacing?: number;
|
|
143
158
|
};
|
|
144
159
|
|
|
145
|
-
declare type
|
|
160
|
+
declare type __VLS_Props_18 = {
|
|
146
161
|
/** Left edge — epoch ms or a `Date`. */
|
|
147
162
|
from: TimeValue;
|
|
148
163
|
/** Right edge — epoch ms or a `Date`. Omit (or pass `'now'`) for an open-ended band to the right edge. */
|
|
@@ -155,7 +170,7 @@ declare type __VLS_Props_17 = {
|
|
|
155
170
|
color?: string;
|
|
156
171
|
};
|
|
157
172
|
|
|
158
|
-
declare type
|
|
173
|
+
declare type __VLS_Props_19 = {
|
|
159
174
|
/**
|
|
160
175
|
* @deprecated Use the named `sub` slot instead — it accepts arbitrary
|
|
161
176
|
* inline markup (icons, badges, formatted text) to mirror React's
|
|
@@ -169,15 +184,10 @@ declare type __VLS_Props_18 = {
|
|
|
169
184
|
sub?: string;
|
|
170
185
|
};
|
|
171
186
|
|
|
172
|
-
declare type __VLS_Props_19 = {
|
|
173
|
-
sort?: SnapshotSort;
|
|
174
|
-
format?: TooltipFormatter;
|
|
175
|
-
};
|
|
176
|
-
|
|
177
187
|
declare type __VLS_Props_2 = {
|
|
178
|
-
/** Flat `
|
|
179
|
-
data:
|
|
180
|
-
options?: Partial<
|
|
188
|
+
/** Flat `TimePoint[]`, `TimePoint[][]`, or named `{ label, color?, data }` layers. Time accepts ms or `Date`. */
|
|
189
|
+
data: MultiLayerData;
|
|
190
|
+
options?: Partial<BarSeriesOptions>;
|
|
181
191
|
/** Stable series ID — same value across remounts. */
|
|
182
192
|
id?: string;
|
|
183
193
|
/** Show/hide the series without unmounting it — excludes it from the Y-range fit and tooltip/legend. Default `true`. Live. */
|
|
@@ -185,6 +195,11 @@ declare type __VLS_Props_2 = {
|
|
|
185
195
|
};
|
|
186
196
|
|
|
187
197
|
declare type __VLS_Props_20 = {
|
|
198
|
+
sort?: SnapshotSort;
|
|
199
|
+
format?: TooltipFormatter;
|
|
200
|
+
};
|
|
201
|
+
|
|
202
|
+
declare type __VLS_Props_21 = {
|
|
188
203
|
/** Custom tick-label formatter. Overrides the built-in range-adaptive default. */
|
|
189
204
|
format?: ValueFormatter;
|
|
190
205
|
/**
|
|
@@ -196,7 +211,7 @@ declare type __VLS_Props_20 = {
|
|
|
196
211
|
minLabelSpacing?: number;
|
|
197
212
|
};
|
|
198
213
|
|
|
199
|
-
declare type
|
|
214
|
+
declare type __VLS_Props_22 = {
|
|
200
215
|
/**
|
|
201
216
|
* Owning series id. **Optional** — when omitted, the first visible
|
|
202
217
|
* single-layer time series is picked, falling back to the first visible
|
|
@@ -214,6 +229,16 @@ declare type __VLS_Props_21 = {
|
|
|
214
229
|
};
|
|
215
230
|
|
|
216
231
|
declare type __VLS_Props_3 = {
|
|
232
|
+
/** Flat `OHLCInput[]`, or `{ label, data }` to name the stream. */
|
|
233
|
+
data: CandlestickData;
|
|
234
|
+
options?: Partial<CandlestickSeriesOptions>;
|
|
235
|
+
/** Stable series ID — same value across remounts. */
|
|
236
|
+
id?: string;
|
|
237
|
+
/** Show/hide the series without unmounting it — excludes it from the Y-range fit and tooltip/legend. Default `true`. Live. */
|
|
238
|
+
visible?: boolean;
|
|
239
|
+
};
|
|
240
|
+
|
|
241
|
+
declare type __VLS_Props_4 = {
|
|
217
242
|
/** Visual theme. Live — changing this at runtime updates all themed elements. */
|
|
218
243
|
theme?: ChartTheme;
|
|
219
244
|
/** Grouped axis configuration (Y/X visibility, bounds, sizing). Live. */
|
|
@@ -382,7 +407,7 @@ declare type __VLS_Props_3 = {
|
|
|
382
407
|
onCrosshairMove?: (position: CrosshairPosition | null) => void;
|
|
383
408
|
};
|
|
384
409
|
|
|
385
|
-
declare type
|
|
410
|
+
declare type __VLS_Props_5 = {
|
|
386
411
|
data: HeatmapCellData[];
|
|
387
412
|
options?: Partial<HeatmapSeriesOptions>;
|
|
388
413
|
/** Stable series ID — same value across remounts. */
|
|
@@ -391,7 +416,7 @@ declare type __VLS_Props_4 = {
|
|
|
391
416
|
visible?: boolean;
|
|
392
417
|
};
|
|
393
418
|
|
|
394
|
-
declare type
|
|
419
|
+
declare type __VLS_Props_6 = {
|
|
395
420
|
/** Flat `TimePoint[]`, `TimePoint[][]`, or named `{ label, color?, data }` layers. Time accepts ms or `Date`. */
|
|
396
421
|
data: MultiLayerData;
|
|
397
422
|
options?: Partial<LineSeriesOptions>;
|
|
@@ -401,7 +426,7 @@ declare type __VLS_Props_5 = {
|
|
|
401
426
|
visible?: boolean;
|
|
402
427
|
};
|
|
403
428
|
|
|
404
|
-
declare type
|
|
429
|
+
declare type __VLS_Props_7 = {
|
|
405
430
|
data: PieSliceData[];
|
|
406
431
|
options?: Partial<PieSeriesOptions>;
|
|
407
432
|
/** Stable series ID — same value across remounts. */
|
|
@@ -410,7 +435,7 @@ declare type __VLS_Props_6 = {
|
|
|
410
435
|
visible?: boolean;
|
|
411
436
|
};
|
|
412
437
|
|
|
413
|
-
declare type
|
|
438
|
+
declare type __VLS_Props_8 = {
|
|
414
439
|
/**
|
|
415
440
|
* Owning series id. **Optional** — when omitted, the first visible heatmap
|
|
416
441
|
* series is picked.
|
|
@@ -420,20 +445,11 @@ declare type __VLS_Props_7 = {
|
|
|
420
445
|
format?: ValueFormatter;
|
|
421
446
|
};
|
|
422
447
|
|
|
423
|
-
declare type
|
|
448
|
+
declare type __VLS_Props_9 = {
|
|
424
449
|
sort?: SnapshotSort;
|
|
425
450
|
format?: TooltipFormatter;
|
|
426
451
|
};
|
|
427
452
|
|
|
428
|
-
declare type __VLS_Props_9 = {
|
|
429
|
-
items?: LegendItemOverride[];
|
|
430
|
-
position?: 'bottom' | 'right';
|
|
431
|
-
/** `'isolate'` shows only the clicked item; `'solo'` is a @deprecated alias. */
|
|
432
|
-
mode?: LegendMode;
|
|
433
|
-
/** Fired after a click changes series visibility — via the built-in UI or a custom slot calling `item.toggle()`/`isolate()` directly. */
|
|
434
|
-
onToggle?: (info: LegendToggleInfo) => void;
|
|
435
|
-
};
|
|
436
|
-
|
|
437
453
|
declare function __VLS_template(): {
|
|
438
454
|
attrs: Partial<{}>;
|
|
439
455
|
slots: {
|
|
@@ -673,7 +689,7 @@ export declare const andromeda: ThemePreset;
|
|
|
673
689
|
* - `axis.ticks` — axis tick label cross-fade.
|
|
674
690
|
* - `toggle` — series visibility (alpha fade + Y re-fit, locked to one
|
|
675
691
|
* duration so they finish on the same frame).
|
|
676
|
-
* - `series.{line,candlestick,bar,pie,heatmap}` — per-series-type data tweens.
|
|
692
|
+
* - `series.{line,candlestick,bar,band,pie,heatmap}` — per-series-type data tweens.
|
|
677
693
|
*
|
|
678
694
|
* Top-level `false` disables every animation category. `axis: false`
|
|
679
695
|
* disables both axes and ticks. `axis.y: false` / `axis.x: false` disables
|
|
@@ -885,6 +901,34 @@ export declare interface AnimationsConfig {
|
|
|
885
901
|
*/
|
|
886
902
|
smooth?: AnimationTime;
|
|
887
903
|
};
|
|
904
|
+
/**
|
|
905
|
+
* Band-series tweens. `false` disables band entrance, intro and
|
|
906
|
+
* edge chase.
|
|
907
|
+
*/
|
|
908
|
+
band?: false | {
|
|
909
|
+
/**
|
|
910
|
+
* Per-point entrance duration. `false` disables the entrance
|
|
911
|
+
* (equivalent to `entryAnimation: 'none'`).
|
|
912
|
+
*
|
|
913
|
+
* @default {@link DEFAULT_BAND_ENTRY}
|
|
914
|
+
*/
|
|
915
|
+
entry?: AnimationTime;
|
|
916
|
+
/**
|
|
917
|
+
* Initial-load reveal on the first data seed. The value is the
|
|
918
|
+
* per-element wave duration; the full reveal lasts ~2×.
|
|
919
|
+
* `false` / `0` disables the intro.
|
|
920
|
+
*
|
|
921
|
+
* @default {@link DEFAULT_BAND_INTRO}
|
|
922
|
+
*/
|
|
923
|
+
intro?: AnimationTime;
|
|
924
|
+
/**
|
|
925
|
+
* Edge chase duration on `updateLastPoint`. `false` / `0`
|
|
926
|
+
* snaps to the target instantly.
|
|
927
|
+
*
|
|
928
|
+
* @default {@link DEFAULT_BAND_SMOOTH}
|
|
929
|
+
*/
|
|
930
|
+
smooth?: AnimationTime;
|
|
931
|
+
};
|
|
888
932
|
/**
|
|
889
933
|
* Pie segment entry/update tweens. `false` disables the slice
|
|
890
934
|
* entry sweep (`update` is still parse-only; wiring lands in a
|
|
@@ -1051,6 +1095,113 @@ export declare const ayuMirage: ThemePreset;
|
|
|
1051
1095
|
*/
|
|
1052
1096
|
export declare function backfillSweepIntro(): LineIntroFn;
|
|
1053
1097
|
|
|
1098
|
+
/**
|
|
1099
|
+
* `data` shape for a band series — the same omnivorous forms as
|
|
1100
|
+
* {@link MultiLayerData}, one band per layer: a flat `BandPointInput[]`, a
|
|
1101
|
+
* layered `BandPointInput[][]`, a named `SeriesLayer`, or an array mixing both.
|
|
1102
|
+
*/
|
|
1103
|
+
export declare type BandData = BandPointInput[] | SeriesLayer<BandPointInput> | Array<BandPointInput[] | SeriesLayer<BandPointInput>>;
|
|
1104
|
+
|
|
1105
|
+
/** Entrance styles for band points added via `appendData` — the same set as {@link LineEntryAnimation}. */
|
|
1106
|
+
export declare type BandEntryAnimation = LineEntryAnimation;
|
|
1107
|
+
|
|
1108
|
+
/**
|
|
1109
|
+
* A single band sample: the filled region between `low` and `high` at `time`.
|
|
1110
|
+
* Time is a timestamp in milliseconds. A `low` above `high` is drawn with the
|
|
1111
|
+
* edges swapped; a non-finite edge is a gap.
|
|
1112
|
+
*/
|
|
1113
|
+
export declare interface BandPoint {
|
|
1114
|
+
time: number;
|
|
1115
|
+
low: number;
|
|
1116
|
+
high: number;
|
|
1117
|
+
}
|
|
1118
|
+
|
|
1119
|
+
/** {@link BandPoint} that also accepts `Date` for the time field. */
|
|
1120
|
+
export declare type BandPointInput = Omit<BandPoint, 'time'> & {
|
|
1121
|
+
time: TimeValue;
|
|
1122
|
+
};
|
|
1123
|
+
|
|
1124
|
+
export declare const BandSeries: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
1125
|
+
visible: boolean;
|
|
1126
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1127
|
+
|
|
1128
|
+
/** Series definition for `chart.addSeries` — keeps the chart renderer-agnostic. */
|
|
1129
|
+
export declare const BandSeriesDef: SeriesDefinition<BandSeriesOptions>;
|
|
1130
|
+
|
|
1131
|
+
/**
|
|
1132
|
+
* Visual options for a band series — the filled region between a `low` and a
|
|
1133
|
+
* `high` edge. Each layer is one band; layers draw in order with translucent
|
|
1134
|
+
* fills, so nested bands of one color read as a fan chart. There is no
|
|
1135
|
+
* stacking: a stack of ranges has no meaning.
|
|
1136
|
+
*/
|
|
1137
|
+
export declare interface BandSeriesOptions {
|
|
1138
|
+
/**
|
|
1139
|
+
* Fill between the edges: a flat color, or a `[top, bottom]` pair painted
|
|
1140
|
+
* as a vertical gradient over each band's visible extent. Applies to every
|
|
1141
|
+
* layer. Default: a gradient of the layer color from 40% opacity at the top
|
|
1142
|
+
* to 4% at the bottom.
|
|
1143
|
+
*/
|
|
1144
|
+
fill?: string | [string, string];
|
|
1145
|
+
/** Edge strokes, in the layer color at 60% opacity. Default: `{ visible: true, width: 1 }`. */
|
|
1146
|
+
stroke?: {
|
|
1147
|
+
/** Whether the `low` and `high` edges are stroked. Default: `true`. */
|
|
1148
|
+
visible?: boolean;
|
|
1149
|
+
/** Stroke width in CSS pixels. Default: `1`. */
|
|
1150
|
+
width?: number;
|
|
1151
|
+
/** Stroke color for every layer. Default: the layer color at 60% opacity. */
|
|
1152
|
+
color?: string;
|
|
1153
|
+
};
|
|
1154
|
+
/**
|
|
1155
|
+
* Edge smoothing, with the same builders as the line series. Default:
|
|
1156
|
+
* `'straight'`. `'smooth'` is monotone, so an edge never overshoots its own
|
|
1157
|
+
* samples.
|
|
1158
|
+
*/
|
|
1159
|
+
curve?: 'straight' | 'smooth' | 'stepped';
|
|
1160
|
+
/**
|
|
1161
|
+
* Entrance style for appended points. Default: `'grow'` — the trailing
|
|
1162
|
+
* segment of both edges unfurls from the previous point.
|
|
1163
|
+
*
|
|
1164
|
+
* @see entryMs — cross-linked duration for this animation.
|
|
1165
|
+
*/
|
|
1166
|
+
entryAnimation?: BandEntryAnimation;
|
|
1167
|
+
/**
|
|
1168
|
+
* Per-point entrance duration in milliseconds. Default: `250`. `false` or
|
|
1169
|
+
* `0` disables the entrance. A chart-level `animations.series.band: false`
|
|
1170
|
+
* wins over this field.
|
|
1171
|
+
*/
|
|
1172
|
+
entryMs?: number | false;
|
|
1173
|
+
/**
|
|
1174
|
+
* Initial-load reveal duration in milliseconds; the full reveal lasts ~2×.
|
|
1175
|
+
* Default: `500`. `false` or `0` disables it. Bulk re-seeds of a non-empty
|
|
1176
|
+
* series never replay it. Skipped under `prefers-reduced-motion`.
|
|
1177
|
+
*/
|
|
1178
|
+
introMs?: number | false;
|
|
1179
|
+
/**
|
|
1180
|
+
* Initial-load reveal choreography — the line series' `LineIntroFn`
|
|
1181
|
+
* contract. The frame's `layerData` / `layerMean` / `primaryPath` describe
|
|
1182
|
+
* each band's center, and a `value` transform applies to both edges.
|
|
1183
|
+
* `heads` are ignored. Default: `unfoldIntro()` — the band opens out of its
|
|
1184
|
+
* mean.
|
|
1185
|
+
*
|
|
1186
|
+
* @see introMs — cross-linked duration for this animation.
|
|
1187
|
+
*/
|
|
1188
|
+
introAnimation?: LineIntroFn;
|
|
1189
|
+
/**
|
|
1190
|
+
* History-prepend reveal for older points loaded at the front. Default:
|
|
1191
|
+
* `backfillSweepIntro()`. `'none'` makes prepended points appear at once.
|
|
1192
|
+
*
|
|
1193
|
+
* @see historyRevealMs — cross-linked duration for this animation.
|
|
1194
|
+
*/
|
|
1195
|
+
historyReveal?: LineIntroFn | 'none';
|
|
1196
|
+
/** History-prepend reveal duration in milliseconds. Default: `400`. `false` or `0` disables it. */
|
|
1197
|
+
historyRevealMs?: number | false;
|
|
1198
|
+
/**
|
|
1199
|
+
* How long both displayed edges take to catch up on every
|
|
1200
|
+
* `updateLastPoint`. Default: `250` ms. `0` or `false` snaps.
|
|
1201
|
+
*/
|
|
1202
|
+
smoothMs?: number | false;
|
|
1203
|
+
}
|
|
1204
|
+
|
|
1054
1205
|
/** Declarative per-bar transform — translation and opacity only; growth is
|
|
1055
1206
|
* expressed through {@link BarIntroDirectives.value} instead so stacked
|
|
1056
1207
|
* columns rise as one attached unit. */
|
|
@@ -1161,7 +1312,7 @@ export declare interface BarPaintArgs {
|
|
|
1161
1312
|
/** Paints one bar / stacked segment. Owns its fill — it calls `ctx.fill()`. */
|
|
1162
1313
|
export declare type BarPainter = (env: PaintEnv, args: BarPaintArgs) => void;
|
|
1163
1314
|
|
|
1164
|
-
export declare const BarSeries: DefineComponent<
|
|
1315
|
+
export declare const BarSeries: DefineComponent<__VLS_Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_2> & Readonly<{}>, {
|
|
1165
1316
|
visible: boolean;
|
|
1166
1317
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1167
1318
|
|
|
@@ -1390,7 +1541,7 @@ export declare interface BaseSeriesRenderer {
|
|
|
1390
1541
|
/** Last data value for the series, or null if empty. Optional. */
|
|
1391
1542
|
getLastValue?(): number | null;
|
|
1392
1543
|
/** Nearest data point to a given time, or null. Optional. */
|
|
1393
|
-
getDataAtTime?(time: number, interval: number): TimePoint | OHLCData | null;
|
|
1544
|
+
getDataAtTime?(time: number, interval: number): TimePoint | OHLCData | BandPoint | null;
|
|
1394
1545
|
/**
|
|
1395
1546
|
* For multi-layer renderers: nearest data point per visible layer at `time`.
|
|
1396
1547
|
* Each entry carries the owning `layerIndex` (so filtered hidden layers
|
|
@@ -1399,12 +1550,7 @@ export declare interface BaseSeriesRenderer {
|
|
|
1399
1550
|
* tooltips/legends.
|
|
1400
1551
|
* Returns null for single-layer renderers or when no visible layer has data.
|
|
1401
1552
|
*/
|
|
1402
|
-
getLayerSnapshots?(time: number, interval: number):
|
|
1403
|
-
layerIndex: number;
|
|
1404
|
-
time: number;
|
|
1405
|
-
value: number;
|
|
1406
|
-
color: string;
|
|
1407
|
-
}[] | null;
|
|
1553
|
+
getLayerSnapshots?(time: number, interval: number): LayerSnapshot[] | null;
|
|
1408
1554
|
/**
|
|
1409
1555
|
* Stacked last value — cumulative top of the rendered stack for multi-layer
|
|
1410
1556
|
* renderers. Falls back to `getLastValue()` behavior for single-layer
|
|
@@ -1430,12 +1576,7 @@ export declare interface BaseSeriesRenderer {
|
|
|
1430
1576
|
* primary layer's time.
|
|
1431
1577
|
* Returns null for single-layer renderers or when no visible layer has data.
|
|
1432
1578
|
*/
|
|
1433
|
-
getLayerLastSnapshots?():
|
|
1434
|
-
layerIndex: number;
|
|
1435
|
-
time: number;
|
|
1436
|
-
value: number;
|
|
1437
|
-
color: string;
|
|
1438
|
-
}[] | null;
|
|
1579
|
+
getLayerLastSnapshots?(): LayerSnapshot[] | null;
|
|
1439
1580
|
/** Total data points across all owned stores. Used by Chart for batch-load detection. */
|
|
1440
1581
|
getTotalLength?(): number;
|
|
1441
1582
|
/**
|
|
@@ -1683,7 +1824,7 @@ declare interface CandlestickDirectionColors {
|
|
|
1683
1824
|
*/
|
|
1684
1825
|
export declare type CandlestickEntryAnimation = 'none' | 'fade' | 'unfold' | 'slide' | 'fade-unfold';
|
|
1685
1826
|
|
|
1686
|
-
export declare const CandlestickSeries: DefineComponent<
|
|
1827
|
+
export declare const CandlestickSeries: DefineComponent<__VLS_Props_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_3> & Readonly<{}>, {
|
|
1687
1828
|
visible: boolean;
|
|
1688
1829
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1689
1830
|
|
|
@@ -1929,6 +2070,12 @@ export declare class ChartInstance extends EventEmitter<ChartEvents> implements
|
|
|
1929
2070
|
label?: string;
|
|
1930
2071
|
labels?: (string | undefined)[];
|
|
1931
2072
|
}>): string;
|
|
2073
|
+
addSeries(type: 'band', options?: Partial<BandSeriesOptions & {
|
|
2074
|
+
layers?: number;
|
|
2075
|
+
id?: string;
|
|
2076
|
+
label?: string;
|
|
2077
|
+
labels?: (string | undefined)[];
|
|
2078
|
+
}>): string;
|
|
1932
2079
|
addSeries(type: 'pie', options?: Partial<PieSeriesOptions & {
|
|
1933
2080
|
id?: string;
|
|
1934
2081
|
label?: string;
|
|
@@ -2022,7 +2169,7 @@ export declare class ChartInstance extends EventEmitter<ChartEvents> implements
|
|
|
2022
2169
|
*/
|
|
2023
2170
|
setSeriesData(id: string, data: unknown, layerIndex?: number): void;
|
|
2024
2171
|
/** Append a new data point to the end of a series (real-time tick). */
|
|
2025
|
-
appendData(id: string, point: OHLCInput | TimePointInput, layerIndex?: number): void;
|
|
2172
|
+
appendData(id: string, point: OHLCInput | TimePointInput | BandPointInput, layerIndex?: number): void;
|
|
2026
2173
|
/**
|
|
2027
2174
|
* Prepend older points to the front of a series — the "load more history on
|
|
2028
2175
|
* scroll" path. Unlike {@link setSeriesData}, this deliberately does NOT set
|
|
@@ -2036,9 +2183,9 @@ export declare class ChartInstance extends EventEmitter<ChartEvents> implements
|
|
|
2036
2183
|
* first point; the sync reconciler guarantees this before calling here.
|
|
2037
2184
|
* No-op if the renderer doesn't support prepend.
|
|
2038
2185
|
*/
|
|
2039
|
-
prependData(id: string, points: (OHLCInput | TimePointInput)[], layerIndex?: number): void;
|
|
2186
|
+
prependData(id: string, points: (OHLCInput | TimePointInput | BandPointInput)[], layerIndex?: number): void;
|
|
2040
2187
|
/** Update the last data point of a series in place (e.g. live candle update). */
|
|
2041
|
-
updateData(id: string, point: OHLCInput | TimePointInput, layerIndex?: number): void;
|
|
2188
|
+
updateData(id: string, point: OHLCInput | TimePointInput | BandPointInput, layerIndex?: number): void;
|
|
2042
2189
|
/**
|
|
2043
2190
|
* Keep only the most recent `count` points of a series — drop the oldest
|
|
2044
2191
|
* tail when the series exceeds the cap. Smooth Y-range chase (no snap):
|
|
@@ -2054,7 +2201,7 @@ export declare class ChartInstance extends EventEmitter<ChartEvents> implements
|
|
|
2054
2201
|
*/
|
|
2055
2202
|
keepLast(id: string, count: number, layerIndex?: number): void;
|
|
2056
2203
|
/** Update visual options (color, width, etc.) for an existing series. */
|
|
2057
|
-
updateSeriesOptions(id: string, options: Partial<CandlestickSeriesOptions> | Partial<LineSeriesOptions> | Partial<BarSeriesOptions> | Partial<PieSeriesOptions> | Partial<HeatmapSeriesOptions>): void;
|
|
2204
|
+
updateSeriesOptions(id: string, options: Partial<CandlestickSeriesOptions> | Partial<LineSeriesOptions> | Partial<BarSeriesOptions> | Partial<BandSeriesOptions> | Partial<PieSeriesOptions> | Partial<HeatmapSeriesOptions>): void;
|
|
2058
2205
|
/**
|
|
2059
2206
|
* Batch multiple updates: suppress recomputes until `fn` returns. Exceptions
|
|
2060
2207
|
* inside `fn` still flush the batch so counters don't leak across calls.
|
|
@@ -2171,21 +2318,16 @@ export declare class ChartInstance extends EventEmitter<ChartEvents> implements
|
|
|
2171
2318
|
} | null;
|
|
2172
2319
|
/** Get the second-to-last value, useful for computing change. */
|
|
2173
2320
|
getPreviousClose(seriesId: string): number | null;
|
|
2174
|
-
getLastData(seriesId: string): OHLCData | TimePoint | null;
|
|
2321
|
+
getLastData(seriesId: string): OHLCData | TimePoint | BandPoint | null;
|
|
2175
2322
|
/** Find the data point closest to the given timestamp within one data interval. */
|
|
2176
|
-
getDataAtTime(seriesId: string, time: number): OHLCData | TimePoint | null;
|
|
2323
|
+
getDataAtTime(seriesId: string, time: number): OHLCData | TimePoint | BandPoint | null;
|
|
2177
2324
|
/**
|
|
2178
2325
|
* Get all layers' data at a given time for multi-layer series (Bar/Line
|
|
2179
2326
|
* with stacking). Each entry carries the owning `layerIndex` and the
|
|
2180
2327
|
* snapped sample time — callers must not derive layer identity from the
|
|
2181
2328
|
* array index, because hidden layers are filtered out.
|
|
2182
2329
|
*/
|
|
2183
|
-
getLayerSnapshots(seriesId: string, time: number):
|
|
2184
|
-
layerIndex: number;
|
|
2185
|
-
time: number;
|
|
2186
|
-
value: number;
|
|
2187
|
-
color: string;
|
|
2188
|
-
}[] | null;
|
|
2330
|
+
getLayerSnapshots(seriesId: string, time: number): LayerSnapshot[] | null;
|
|
2189
2331
|
getSeriesIds(): string[];
|
|
2190
2332
|
/**
|
|
2191
2333
|
* Whether pan/zoom gestures currently apply — true when any visible series
|
|
@@ -2233,12 +2375,7 @@ export declare class ChartInstance extends EventEmitter<ChartEvents> implements
|
|
|
2233
2375
|
* overlay components that must display every layer in last-mode even
|
|
2234
2376
|
* when layers advance at different rates (ragged streams).
|
|
2235
2377
|
*/
|
|
2236
|
-
getLayerLastSnapshots(seriesId: string):
|
|
2237
|
-
layerIndex: number;
|
|
2238
|
-
time: number;
|
|
2239
|
-
value: number;
|
|
2240
|
-
color: string;
|
|
2241
|
-
}[] | null;
|
|
2378
|
+
getLayerLastSnapshots(seriesId: string): LayerSnapshot[] | null;
|
|
2242
2379
|
/** Get the primary display color for a series. */
|
|
2243
2380
|
getSeriesColor(seriesId: string): string | null;
|
|
2244
2381
|
/** The series' primary name (first layer). Used for single-layer overlays. */
|
|
@@ -2802,7 +2939,7 @@ export declare interface CustomSpatialSeriesRenderer extends BaseSeriesRenderer
|
|
|
2802
2939
|
*/
|
|
2803
2940
|
export declare function deepEqual(a: unknown, b: unknown): boolean;
|
|
2804
2941
|
|
|
2805
|
-
declare const _default: DefineComponent<
|
|
2942
|
+
declare const _default: DefineComponent<__VLS_Props_17, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_17> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
2806
2943
|
containerRef: HTMLDivElement;
|
|
2807
2944
|
}, HTMLDivElement>;
|
|
2808
2945
|
export { _default as TimeAxis }
|
|
@@ -2960,7 +3097,7 @@ export declare interface HeatmapCellLabelsOptions {
|
|
|
2960
3097
|
format?: (value: number) => string;
|
|
2961
3098
|
}
|
|
2962
3099
|
|
|
2963
|
-
export declare const HeatmapSeries: DefineComponent<
|
|
3100
|
+
export declare const HeatmapSeries: DefineComponent<__VLS_Props_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_5> & Readonly<{}>, {
|
|
2964
3101
|
visible: boolean;
|
|
2965
3102
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
2966
3103
|
|
|
@@ -3011,7 +3148,7 @@ export declare interface HeatmapSeriesRenderer extends BaseSeriesRenderer {
|
|
|
3011
3148
|
readonly kind: 'heatmap';
|
|
3012
3149
|
}
|
|
3013
3150
|
|
|
3014
|
-
export declare const HeatmapTooltip: DefineComponent<
|
|
3151
|
+
export declare const HeatmapTooltip: DefineComponent<__VLS_Props_8, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_8> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
3015
3152
|
|
|
3016
3153
|
/**
|
|
3017
3154
|
* Velocity-matched cubic Hermite Y transition. Direction-aware: per-call
|
|
@@ -3055,6 +3192,21 @@ export declare function isTimeSeriesRenderer(renderer: SeriesRenderer): renderer
|
|
|
3055
3192
|
|
|
3056
3193
|
export declare const lavenderMist: ThemePreset;
|
|
3057
3194
|
|
|
3195
|
+
/**
|
|
3196
|
+
* One layer's sample in a multi-layer query ({@link BaseSeriesRenderer.getLayerSnapshots}).
|
|
3197
|
+
* `time` is the resolved sample time, not the query time. A band layer also
|
|
3198
|
+
* carries its `low` / `high` edges; its `value` is then their midpoint, kept
|
|
3199
|
+
* only for sorting and anchoring — display the edges instead.
|
|
3200
|
+
*/
|
|
3201
|
+
export declare interface LayerSnapshot {
|
|
3202
|
+
layerIndex: number;
|
|
3203
|
+
time: number;
|
|
3204
|
+
value: number;
|
|
3205
|
+
color: string;
|
|
3206
|
+
low?: number;
|
|
3207
|
+
high?: number;
|
|
3208
|
+
}
|
|
3209
|
+
|
|
3058
3210
|
export declare const Legend: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
|
|
3059
3211
|
|
|
3060
3212
|
/**
|
|
@@ -3202,6 +3354,7 @@ export declare interface LineIntroFrame {
|
|
|
3202
3354
|
/**
|
|
3203
3355
|
* Mean of the layer's visible plottable values, taken on the Y axis (the
|
|
3204
3356
|
* geometric mean on log), or `null` for an empty/poisoned layer (memoized per frame).
|
|
3357
|
+
* On a percent stack, the layer's mean share of its column, in percent.
|
|
3205
3358
|
*/
|
|
3206
3359
|
layerMean(layerIndex: number): number | null;
|
|
3207
3360
|
/**
|
|
@@ -3219,7 +3372,10 @@ export declare interface LineIntroFrame {
|
|
|
3219
3372
|
export declare interface LineIntroValueArgs {
|
|
3220
3373
|
layerIndex: number;
|
|
3221
3374
|
time: number;
|
|
3222
|
-
/**
|
|
3375
|
+
/**
|
|
3376
|
+
* The value the renderer would draw without the intro (live smoothing included).
|
|
3377
|
+
* On a percent stack, the layer's share of its column, in percent.
|
|
3378
|
+
*/
|
|
3223
3379
|
value: number;
|
|
3224
3380
|
/** Normalized x-position of `time` across the visible range, clamped to `[0, 1]`. */
|
|
3225
3381
|
position: number;
|
|
@@ -3264,7 +3420,7 @@ declare interface LinePoint {
|
|
|
3264
3420
|
y: number;
|
|
3265
3421
|
}
|
|
3266
3422
|
|
|
3267
|
-
export declare const LineSeries: DefineComponent<
|
|
3423
|
+
export declare const LineSeries: DefineComponent<__VLS_Props_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_6> & Readonly<{}>, {
|
|
3268
3424
|
visible: boolean;
|
|
3269
3425
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
3270
3426
|
|
|
@@ -3557,7 +3713,7 @@ export declare interface LogScaleOptions {
|
|
|
3557
3713
|
base?: number;
|
|
3558
3714
|
}
|
|
3559
3715
|
|
|
3560
|
-
export declare const Marker: DefineComponent<
|
|
3716
|
+
export declare const Marker: DefineComponent<__VLS_Props_11, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_11> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
3561
3717
|
|
|
3562
3718
|
/**
|
|
3563
3719
|
* A point annotation pinned to a `time` (X) and a `value` (Y) — "anomaly opened
|
|
@@ -3669,7 +3825,7 @@ declare interface MorphPlaceholder {
|
|
|
3669
3825
|
*/
|
|
3670
3826
|
export declare type MultiLayerData = TimePointInput[] | SeriesLayer<TimePointInput> | Array<TimePointInput[] | SeriesLayer<TimePointInput>>;
|
|
3671
3827
|
|
|
3672
|
-
declare const Navigator_2: DefineComponent<
|
|
3828
|
+
declare const Navigator_2: DefineComponent<__VLS_Props_12, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_12> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
3673
3829
|
stripRef: HTMLDivElement;
|
|
3674
3830
|
}, any>;
|
|
3675
3831
|
export { Navigator_2 as Navigator }
|
|
@@ -3762,7 +3918,7 @@ export declare const nightOwl: ThemePreset;
|
|
|
3762
3918
|
/** Convert a {@link TimeValue} (number ms or Date) to a millisecond timestamp. */
|
|
3763
3919
|
export declare function normalizeTime(t: TimeValue): number;
|
|
3764
3920
|
|
|
3765
|
-
export declare const NumberFlow: DefineComponent<
|
|
3921
|
+
export declare const NumberFlow: DefineComponent<__VLS_Props_13, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_13> & Readonly<{}>, {
|
|
3766
3922
|
locale: string;
|
|
3767
3923
|
spinDuration: number;
|
|
3768
3924
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
@@ -4080,7 +4236,7 @@ declare interface PieOtherOptions {
|
|
|
4080
4236
|
color?: string;
|
|
4081
4237
|
}
|
|
4082
4238
|
|
|
4083
|
-
export declare const PieSeries: DefineComponent<
|
|
4239
|
+
export declare const PieSeries: DefineComponent<__VLS_Props_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_7> & Readonly<{}>, {
|
|
4084
4240
|
visible: boolean;
|
|
4085
4241
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
4086
4242
|
|
|
@@ -4261,7 +4417,7 @@ declare interface Rect {
|
|
|
4261
4417
|
height: number;
|
|
4262
4418
|
}
|
|
4263
4419
|
|
|
4264
|
-
export declare const ReferenceLine: DefineComponent<
|
|
4420
|
+
export declare const ReferenceLine: DefineComponent<__VLS_Props_16, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_16> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
4265
4421
|
|
|
4266
4422
|
/**
|
|
4267
4423
|
* A straight reference line across the plot — a horizontal threshold / baseline
|
|
@@ -4303,7 +4459,7 @@ declare interface RegionEntry {
|
|
|
4303
4459
|
}
|
|
4304
4460
|
|
|
4305
4461
|
/**
|
|
4306
|
-
* Register the
|
|
4462
|
+
* Register the six built-in series so the string form
|
|
4307
4463
|
* `chart.addSeries('line', …)` resolves. Call it once at startup.
|
|
4308
4464
|
*
|
|
4309
4465
|
* Importing this helper pulls every renderer into the bundle — hosts that
|
|
@@ -4485,7 +4641,7 @@ export declare interface SeriesHoverInfo {
|
|
|
4485
4641
|
* series (see {@link CustomSpatialSeriesRenderer} / {@link TimeSeriesRenderer})
|
|
4486
4642
|
* picks any string that isn't one of the built-ins.
|
|
4487
4643
|
*/
|
|
4488
|
-
export declare type SeriesKind = 'candlestick' | 'line' | 'bar' | 'pie' | 'heatmap' | (string & {});
|
|
4644
|
+
export declare type SeriesKind = 'candlestick' | 'line' | 'bar' | 'band' | 'pie' | 'heatmap' | (string & {});
|
|
4489
4645
|
|
|
4490
4646
|
/**
|
|
4491
4647
|
* A single named (and optionally colored) layer. Carries the layer's display
|
|
@@ -4546,19 +4702,21 @@ export declare type SeriesRenderer = TimeSeriesRenderer | PieSeriesRenderer | He
|
|
|
4546
4702
|
* grouping (e.g. `snapshots.filter(s => s.seriesId === 'btc')`).
|
|
4547
4703
|
*
|
|
4548
4704
|
* `data` is a shallow clone, frozen along with the snapshot itself — a slot
|
|
4549
|
-
* consumer cannot accidentally mutate the chart's internal store.
|
|
4705
|
+
* consumer cannot accidentally mutate the chart's internal store. Its shape
|
|
4706
|
+
* follows the series: `OHLCData` for a candlestick, `TimePoint` for a line or
|
|
4707
|
+
* bar, `BandPoint` (`{ time, low, high }`) for a band.
|
|
4550
4708
|
*/
|
|
4551
4709
|
export declare interface SeriesSnapshot {
|
|
4552
4710
|
readonly id: string;
|
|
4553
4711
|
readonly seriesId: string;
|
|
4554
4712
|
readonly layerIndex?: number;
|
|
4555
4713
|
readonly label?: string;
|
|
4556
|
-
readonly data: Readonly<OHLCData> | Readonly<TimePoint>;
|
|
4714
|
+
readonly data: Readonly<OHLCData> | Readonly<TimePoint> | Readonly<BandPoint>;
|
|
4557
4715
|
readonly color: string;
|
|
4558
4716
|
}
|
|
4559
4717
|
|
|
4560
4718
|
/** Primary series types. Open-ended — a custom {@link SeriesDefinition} picks any string that isn't a built-in. */
|
|
4561
|
-
export declare type SeriesType = 'candlestick' | 'line' | 'bar' | 'pie' | 'heatmap' | (string & {});
|
|
4719
|
+
export declare type SeriesType = 'candlestick' | 'line' | 'bar' | 'band' | 'pie' | 'heatmap' | (string & {});
|
|
4562
4720
|
|
|
4563
4721
|
/** Width and height pair. */
|
|
4564
4722
|
declare interface Size {
|
|
@@ -4779,7 +4937,7 @@ export declare type TimePointInput = Omit<TimePoint, 'time'> & {
|
|
|
4779
4937
|
time: TimeValue;
|
|
4780
4938
|
};
|
|
4781
4939
|
|
|
4782
|
-
export declare const TimeRegion: DefineComponent<
|
|
4940
|
+
export declare const TimeRegion: DefineComponent<__VLS_Props_18, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_18> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
4783
4941
|
|
|
4784
4942
|
/**
|
|
4785
4943
|
* A translucent vertical band shading the interval `[from, to]` — Grafana's
|
|
@@ -4819,20 +4977,20 @@ export declare type TimeRegionEnd = TimeValue | 'now';
|
|
|
4819
4977
|
* pinned to layer 0 (see {@link BaseMultiLayerSeries}).
|
|
4820
4978
|
*/
|
|
4821
4979
|
export declare interface TimeSeriesRenderer extends BaseSeriesRenderer {
|
|
4822
|
-
readonly kind: 'candlestick' | 'line' | 'bar' | (string & {});
|
|
4980
|
+
readonly kind: 'candlestick' | 'line' | 'bar' | 'band' | (string & {});
|
|
4823
4981
|
/** Earliest/latest sample time across all owned layers, or null when empty. */
|
|
4824
4982
|
getTimeBounds(): {
|
|
4825
4983
|
first: number;
|
|
4826
4984
|
last: number;
|
|
4827
4985
|
} | null;
|
|
4828
4986
|
/** Last data point (layer 0 for multi-layer), or null when empty. */
|
|
4829
|
-
getLastDataPoint(): OHLCData | TimePoint | null;
|
|
4987
|
+
getLastDataPoint(): OHLCData | TimePoint | BandPoint | null;
|
|
4830
4988
|
/** Second-to-last data point (layer 0 for multi-layer), or null. */
|
|
4831
|
-
getSecondLastDataPoint(): OHLCData | TimePoint | null;
|
|
4989
|
+
getSecondLastDataPoint(): OHLCData | TimePoint | BandPoint | null;
|
|
4832
4990
|
/** First `maxCount` sample times from the first populated layer — feeds interval detection. */
|
|
4833
4991
|
sampleTimes(maxCount: number): number[];
|
|
4834
4992
|
/** Visible points in `[from, to]` (layer 0 for multi-layer). */
|
|
4835
|
-
getVisibleDataPoints(from: number, to: number): readonly (OHLCData | TimePoint)[];
|
|
4993
|
+
getVisibleDataPoints(from: number, to: number): readonly (OHLCData | TimePoint | BandPoint)[];
|
|
4836
4994
|
/**
|
|
4837
4995
|
* Effective min/max for auto-range (stacked totals for multi-layer; raw
|
|
4838
4996
|
* min/max otherwise). With `opts.plottable` (a non-linear Y scale) values
|
|
@@ -5257,7 +5415,7 @@ export declare class XScale {
|
|
|
5257
5415
|
private countTicks;
|
|
5258
5416
|
}
|
|
5259
5417
|
|
|
5260
|
-
export declare const YAxis: DefineComponent<
|
|
5418
|
+
export declare const YAxis: DefineComponent<__VLS_Props_21, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_21> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
5261
5419
|
containerRef: HTMLDivElement;
|
|
5262
5420
|
}, HTMLDivElement>;
|
|
5263
5421
|
|