chartgpu-angular 21.0.0 → 22.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/chartgpu-angular.mjs +653 -404
- package/fesm2022/chartgpu-angular.mjs.map +1 -1
- package/package.json +3 -3
- package/types/chartgpu-angular.d.ts +247 -202
|
@@ -1,222 +1,267 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
type
|
|
8
|
-
type ChartgpuSeriesType = SeriesType;
|
|
9
|
-
type ChartgpuSeriesData = Extract<SeriesConfig, {
|
|
10
|
-
type: 'line';
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { DestroyRef, ElementRef, OnDestroy } from "@angular/core";
|
|
3
|
+
import { AnimationConfig, AnnotationConfig, AxisConfig, ChartGPUCreateContext, ChartGPUCrosshairMovePayload, ChartGPUDeviceLostPayload, ChartGPUEventPayload, ChartGPUHitTestResult, ChartGPUInstance, ChartGPUInstance as ChartGPUInstance$1, ChartGPUOptions, ChartSyncOptions, DataPoint, DataZoomConfig, OHLCDataPoint, OHLCDataPoint as OHLCDataPoint$1, PipelineCache, RenderMode, SeriesConfig, SeriesType, ThemeConfig, TooltipConfig } from "chartgpu";
|
|
4
|
+
export type ChartgpuOptions = ChartGPUOptions;
|
|
5
|
+
export type ChartgpuSeriesType = SeriesType;
|
|
6
|
+
export type ChartgpuSeriesData = Extract<SeriesConfig, {
|
|
7
|
+
type: 'line';
|
|
11
8
|
}>['data'];
|
|
12
|
-
type ChartgpuSeriesOptions = SeriesConfig;
|
|
13
|
-
type ChartgpuAxisOptions = AxisConfig;
|
|
14
|
-
type ChartgpuZoomOptions = DataZoomConfig;
|
|
15
|
-
type ChartgpuTooltipOptions = TooltipConfig;
|
|
16
|
-
type ChartgpuAnimationOptions = AnimationConfig | boolean;
|
|
17
|
-
type ChartgpuThemeOptions = ThemeConfig | 'light' | 'dark';
|
|
18
|
-
type ChartgpuAnnotationOptions = AnnotationConfig;
|
|
19
|
-
type ChartgpuThreeDOptions = Pick<ChartGPUOptions, 'coordinateSystem' | 'camera' | 'interaction3d' | 'axes3d'>;
|
|
20
|
-
type ChartgpuStreamingOptions = Pick<ChartGPUOptions, 'autoScroll'>;
|
|
21
|
-
type ChartgpuInteractionOptions = Pick<ChartGPUOptions, 'dataZoom' | 'tooltip'>;
|
|
22
|
-
type ChartgpuChartInstance = ChartGPUInstance;
|
|
23
|
-
type ChartgpuGPUContext = ChartGPUCreateContext;
|
|
24
|
-
type ChartgpuStyle = Record<string, string | number | null | undefined>;
|
|
25
|
-
type ChartgpuZoomRange = NonNullable<ReturnType<ChartGPUInstance['getZoomRange']>>;
|
|
26
|
-
type ChartgpuClickParams = ChartGPUEventPayload;
|
|
27
|
-
type ChartgpuMouseOverParams = ChartGPUEventPayload;
|
|
28
|
-
type ChartgpuCrosshairMoveParams = ChartGPUCrosshairMovePayload;
|
|
29
|
-
type ChartgpuHitTestResult = ChartGPUHitTestResult;
|
|
30
|
-
type ChartgpuRenderMode = RenderMode;
|
|
31
|
-
type ChartgpuSyncOptions = ChartSyncOptions;
|
|
32
|
-
type ChartgpuXYArraysData = Readonly<{
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
9
|
+
export type ChartgpuSeriesOptions = SeriesConfig;
|
|
10
|
+
export type ChartgpuAxisOptions = AxisConfig;
|
|
11
|
+
export type ChartgpuZoomOptions = DataZoomConfig;
|
|
12
|
+
export type ChartgpuTooltipOptions = TooltipConfig;
|
|
13
|
+
export type ChartgpuAnimationOptions = AnimationConfig | boolean;
|
|
14
|
+
export type ChartgpuThemeOptions = ThemeConfig | 'light' | 'dark';
|
|
15
|
+
export type ChartgpuAnnotationOptions = AnnotationConfig;
|
|
16
|
+
export type ChartgpuThreeDOptions = Pick<ChartGPUOptions, 'coordinateSystem' | 'camera' | 'interaction3d' | 'axes3d'>;
|
|
17
|
+
export type ChartgpuStreamingOptions = Pick<ChartGPUOptions, 'autoScroll'>;
|
|
18
|
+
export type ChartgpuInteractionOptions = Pick<ChartGPUOptions, 'dataZoom' | 'tooltip'>;
|
|
19
|
+
export type ChartgpuChartInstance = ChartGPUInstance;
|
|
20
|
+
export type ChartgpuGPUContext = ChartGPUCreateContext;
|
|
21
|
+
export type ChartgpuStyle = Record<string, string | number | null | undefined>;
|
|
22
|
+
export type ChartgpuZoomRange = NonNullable<ReturnType<ChartGPUInstance['getZoomRange']>>;
|
|
23
|
+
export type ChartgpuClickParams = ChartGPUEventPayload;
|
|
24
|
+
export type ChartgpuMouseOverParams = ChartGPUEventPayload;
|
|
25
|
+
export type ChartgpuCrosshairMoveParams = ChartGPUCrosshairMovePayload;
|
|
26
|
+
export type ChartgpuHitTestResult = ChartGPUHitTestResult;
|
|
27
|
+
export type ChartgpuRenderMode = RenderMode;
|
|
28
|
+
export type ChartgpuSyncOptions = ChartSyncOptions;
|
|
29
|
+
export type ChartgpuXYArraysData = Readonly<{
|
|
30
|
+
x: ArrayLike<number>;
|
|
31
|
+
y: ArrayLike<number>;
|
|
32
|
+
size?: ArrayLike<number>;
|
|
36
33
|
}>;
|
|
37
|
-
type ChartgpuInterleavedXYData = ArrayBufferView;
|
|
38
|
-
type ChartgpuCartesianSeriesData = ReadonlyArray<DataPoint | null> | ChartgpuXYArraysData | ChartgpuInterleavedXYData;
|
|
39
|
-
type ChartgpuAppendDataOptions = Readonly<{
|
|
40
|
-
|
|
34
|
+
export type ChartgpuInterleavedXYData = ArrayBufferView;
|
|
35
|
+
export type ChartgpuCartesianSeriesData = ReadonlyArray<DataPoint | null> | ChartgpuXYArraysData | ChartgpuInterleavedXYData;
|
|
36
|
+
export type ChartgpuAppendDataOptions = Readonly<{
|
|
37
|
+
maxPoints?: number;
|
|
41
38
|
}>;
|
|
42
|
-
interface ChartgpuDataAppendEvent {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
interface ChartgpuReadyEvent {
|
|
51
|
-
container: HTMLDivElement;
|
|
39
|
+
export interface ChartgpuDataAppendEvent {
|
|
40
|
+
seriesIndex: number;
|
|
41
|
+
count: number;
|
|
42
|
+
xExtent: {
|
|
43
|
+
min: number;
|
|
44
|
+
max: number;
|
|
45
|
+
};
|
|
52
46
|
}
|
|
53
|
-
interface
|
|
54
|
-
|
|
55
|
-
height: number;
|
|
56
|
-
container: HTMLDivElement;
|
|
47
|
+
export interface ChartgpuReadyEvent {
|
|
48
|
+
container: HTMLDivElement;
|
|
57
49
|
}
|
|
58
|
-
interface
|
|
59
|
-
|
|
60
|
-
|
|
50
|
+
export interface ChartgpuResizeEvent {
|
|
51
|
+
width: number;
|
|
52
|
+
height: number;
|
|
53
|
+
container: HTMLDivElement;
|
|
61
54
|
}
|
|
62
|
-
interface
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
end: number;
|
|
66
|
-
};
|
|
55
|
+
export interface ChartgpuClickEvent {
|
|
56
|
+
x: number;
|
|
57
|
+
y: number;
|
|
67
58
|
}
|
|
68
|
-
interface
|
|
59
|
+
export interface ChartgpuZoomChangeEvent {
|
|
60
|
+
range: {
|
|
69
61
|
start: number;
|
|
70
62
|
end: number;
|
|
63
|
+
};
|
|
71
64
|
}
|
|
72
|
-
interface
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
pipelineCache: PipelineCache | null;
|
|
76
|
-
error: Error | null;
|
|
77
|
-
isReady: boolean;
|
|
65
|
+
export interface ChartgpuZoomRangeChangeEvent {
|
|
66
|
+
start: number;
|
|
67
|
+
end: number;
|
|
78
68
|
}
|
|
79
|
-
interface
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
getRenderMode(): RenderMode;
|
|
86
|
-
setRenderMode(mode: RenderMode): void;
|
|
87
|
-
setOption(options: ChartgpuOptions): void;
|
|
88
|
-
setZoomRange(start: number, end: number, source?: unknown): void;
|
|
89
|
-
setInteractionX(x: number | null, source?: unknown): void;
|
|
90
|
-
getInteractionX(): number | null;
|
|
91
|
-
hitTest(event: PointerEvent | MouseEvent): ChartGPUHitTestResult | null;
|
|
69
|
+
export interface ChartgpuGPUContextState {
|
|
70
|
+
adapter: ChartGPUCreateContext['adapter'] | null;
|
|
71
|
+
device: ChartGPUCreateContext['device'] | null;
|
|
72
|
+
pipelineCache: PipelineCache | null;
|
|
73
|
+
error: Error | null;
|
|
74
|
+
isReady: boolean;
|
|
92
75
|
}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
readonly chartReady: _angular_core.OutputEmitterRef<ChartGPUInstance>;
|
|
107
|
-
readonly chartDispose: _angular_core.OutputEmitterRef<void>;
|
|
108
|
-
readonly resize: _angular_core.OutputEmitterRef<ChartgpuResizeEvent>;
|
|
109
|
-
readonly click: _angular_core.OutputEmitterRef<ChartgpuClickEvent>;
|
|
110
|
-
readonly chartClick: _angular_core.OutputEmitterRef<Readonly<{
|
|
111
|
-
readonly seriesIndex: number | null;
|
|
112
|
-
readonly dataIndex: number | null;
|
|
113
|
-
readonly value: readonly [number, number] | null;
|
|
114
|
-
readonly seriesName: string | null;
|
|
115
|
-
readonly event: PointerEvent;
|
|
116
|
-
}>>;
|
|
117
|
-
readonly mouseOver: _angular_core.OutputEmitterRef<Readonly<{
|
|
118
|
-
readonly seriesIndex: number | null;
|
|
119
|
-
readonly dataIndex: number | null;
|
|
120
|
-
readonly value: readonly [number, number] | null;
|
|
121
|
-
readonly seriesName: string | null;
|
|
122
|
-
readonly event: PointerEvent;
|
|
123
|
-
}>>;
|
|
124
|
-
readonly mouseOut: _angular_core.OutputEmitterRef<Readonly<{
|
|
125
|
-
readonly seriesIndex: number | null;
|
|
126
|
-
readonly dataIndex: number | null;
|
|
127
|
-
readonly value: readonly [number, number] | null;
|
|
128
|
-
readonly seriesName: string | null;
|
|
129
|
-
readonly event: PointerEvent;
|
|
130
|
-
}>>;
|
|
131
|
-
readonly crosshairMove: _angular_core.OutputEmitterRef<Readonly<{
|
|
132
|
-
readonly x: number | null;
|
|
133
|
-
readonly source?: unknown;
|
|
134
|
-
}>>;
|
|
135
|
-
readonly dataAppend: _angular_core.OutputEmitterRef<ChartgpuDataAppendEvent>;
|
|
136
|
-
readonly zoomChange: _angular_core.OutputEmitterRef<ChartgpuZoomChangeEvent>;
|
|
137
|
-
readonly zoomRangeChange: _angular_core.OutputEmitterRef<ChartgpuZoomRangeChangeEvent>;
|
|
138
|
-
readonly deviceLost: _angular_core.OutputEmitterRef<Readonly<{
|
|
139
|
-
readonly reason: GPUDeviceLostReason;
|
|
140
|
-
readonly message: string;
|
|
141
|
-
}>>;
|
|
142
|
-
readonly chartError: _angular_core.OutputEmitterRef<Error>;
|
|
143
|
-
readonly host: _angular_core.Signal<ElementRef<HTMLDivElement>>;
|
|
144
|
-
readonly canvasHost: _angular_core.Signal<ElementRef<HTMLDivElement>>;
|
|
145
|
-
private readonly chartInstance;
|
|
146
|
-
readonly initializationError: _angular_core.WritableSignal<Error>;
|
|
147
|
-
private chartContainer?;
|
|
148
|
-
private createdWithOptions?;
|
|
149
|
-
private resizeTimeout?;
|
|
150
|
-
private resizeObserver?;
|
|
151
|
-
private removeChartListeners?;
|
|
152
|
-
private destroying;
|
|
153
|
-
constructor(destroyRef: DestroyRef);
|
|
154
|
-
protected emitClick(event: MouseEvent): void;
|
|
155
|
-
ngOnDestroy(): void;
|
|
156
|
-
getChart(): ChartGPUInstance | null;
|
|
157
|
-
getContainer(): HTMLDivElement | null;
|
|
158
|
-
appendData(seriesIndex: number, newPoints: ChartgpuCartesianSeriesData | OHLCDataPoint[], options?: ChartgpuAppendDataOptions): void;
|
|
159
|
-
renderFrame(): boolean;
|
|
160
|
-
needsRender(): boolean;
|
|
161
|
-
getRenderMode(): 'auto' | 'external';
|
|
162
|
-
setRenderMode(mode: 'auto' | 'external'): void;
|
|
163
|
-
setOption(options: ChartgpuOptions): void;
|
|
164
|
-
setZoomRange(start: number, end: number, source?: unknown): void;
|
|
165
|
-
setInteractionX(x: number | null, source?: unknown): void;
|
|
166
|
-
getInteractionX(): number | null;
|
|
167
|
-
hitTest(event: PointerEvent | MouseEvent): Readonly<{
|
|
168
|
-
readonly isInGrid: boolean;
|
|
169
|
-
readonly canvasX: number;
|
|
170
|
-
readonly canvasY: number;
|
|
171
|
-
readonly gridX: number;
|
|
172
|
-
readonly gridY: number;
|
|
173
|
-
readonly match: chartgpu.ChartGPUHitTestMatch | null;
|
|
174
|
-
}>;
|
|
175
|
-
private getEffectiveOptions;
|
|
176
|
-
private listenToChart;
|
|
177
|
-
private emitZoomRange;
|
|
178
|
-
private observeResize;
|
|
179
|
-
private reportError;
|
|
180
|
-
private disposeChart;
|
|
181
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChartGpuAngularComponent, never>;
|
|
182
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ChartGpuAngularComponent, "lib-chartgpu-angular", never, { "options": { "alias": "options"; "required": true; "isSignal": true; }; "gpuContext": { "alias": "gpuContext"; "required": false; "isSignal": true; }; "theme": { "alias": "theme"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; "style": { "alias": "style"; "required": false; "isSignal": true; }; }, { "ready": "ready"; "chartReady": "chartReady"; "chartDispose": "chartDispose"; "resize": "resize"; "click": "click"; "chartClick": "chartClick"; "mouseOver": "mouseOver"; "mouseOut": "mouseOut"; "crosshairMove": "crosshairMove"; "dataAppend": "dataAppend"; "zoomChange": "zoomChange"; "zoomRangeChange": "zoomRangeChange"; "deviceLost": "deviceLost"; "chartError": "chartError"; }, never, never, true, never>;
|
|
76
|
+
export interface ChartgpuChartHandle {
|
|
77
|
+
getChart(): ChartGPUInstance | null;
|
|
78
|
+
getContainer(): HTMLDivElement | null;
|
|
79
|
+
appendData(seriesIndex: number, newPoints: ChartgpuCartesianSeriesData | OHLCDataPoint[], options?: ChartgpuAppendDataOptions): void;
|
|
80
|
+
renderFrame(): boolean;
|
|
81
|
+
needsRender(): boolean;
|
|
82
|
+
getRenderMode(): RenderMode;
|
|
83
|
+
setRenderMode(mode: RenderMode): void;
|
|
84
|
+
setOption(options: ChartgpuOptions): void;
|
|
85
|
+
setZoomRange(start: number, end: number, source?: unknown): void;
|
|
86
|
+
setInteractionX(x: number | null, source?: unknown): void;
|
|
87
|
+
getInteractionX(): number | null;
|
|
88
|
+
hitTest(event: PointerEvent | MouseEvent): ChartGPUHitTestResult | null;
|
|
183
89
|
}
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
90
|
+
export declare class ChartGpuAngularComponent implements ChartgpuChartHandle, OnDestroy {
|
|
91
|
+
private readonly destroyRef;
|
|
92
|
+
readonly options: import("@angular/core").InputSignal<import("chartgpu").ChartGPUOptions>;
|
|
93
|
+
readonly gpuContext: import("@angular/core").InputSignal<Readonly<{
|
|
94
|
+
readonly device: GPUDevice;
|
|
95
|
+
readonly adapter: GPUAdapter;
|
|
96
|
+
readonly pipelineCache?: import("chartgpu").PipelineCache;
|
|
97
|
+
}> | null>;
|
|
98
|
+
readonly theme: import("@angular/core").InputSignal<import("chartgpu").ThemeConfig | "light" | "dark" | undefined>;
|
|
99
|
+
readonly className: import("@angular/core").InputSignal<string | undefined>;
|
|
100
|
+
readonly style: import("@angular/core").InputSignal<ChartgpuStyle | undefined>;
|
|
101
|
+
readonly ready: import("@angular/core").OutputEmitterRef<ChartgpuReadyEvent>;
|
|
102
|
+
readonly chartReady: import("@angular/core").OutputEmitterRef<ChartGPUInstance$1>;
|
|
103
|
+
readonly chartDispose: import("@angular/core").OutputEmitterRef<void>;
|
|
104
|
+
readonly resize: import("@angular/core").OutputEmitterRef<ChartgpuResizeEvent>;
|
|
105
|
+
readonly click: import("@angular/core").OutputEmitterRef<ChartgpuClickEvent>;
|
|
106
|
+
readonly chartClick: import("@angular/core").OutputEmitterRef<Readonly<{
|
|
107
|
+
readonly seriesIndex: number | null;
|
|
108
|
+
readonly dataIndex: number | null;
|
|
109
|
+
readonly value: readonly [number, number] | null;
|
|
110
|
+
readonly seriesName: string | null;
|
|
111
|
+
readonly event: PointerEvent;
|
|
112
|
+
}>>;
|
|
113
|
+
readonly mouseOver: import("@angular/core").OutputEmitterRef<Readonly<{
|
|
114
|
+
readonly seriesIndex: number | null;
|
|
115
|
+
readonly dataIndex: number | null;
|
|
116
|
+
readonly value: readonly [number, number] | null;
|
|
117
|
+
readonly seriesName: string | null;
|
|
118
|
+
readonly event: PointerEvent;
|
|
119
|
+
}>>;
|
|
120
|
+
readonly mouseOut: import("@angular/core").OutputEmitterRef<Readonly<{
|
|
121
|
+
readonly seriesIndex: number | null;
|
|
122
|
+
readonly dataIndex: number | null;
|
|
123
|
+
readonly value: readonly [number, number] | null;
|
|
124
|
+
readonly seriesName: string | null;
|
|
125
|
+
readonly event: PointerEvent;
|
|
126
|
+
}>>;
|
|
127
|
+
readonly crosshairMove: import("@angular/core").OutputEmitterRef<Readonly<{
|
|
128
|
+
readonly x: number | null;
|
|
129
|
+
readonly source?: unknown;
|
|
130
|
+
}>>;
|
|
131
|
+
readonly dataAppend: import("@angular/core").OutputEmitterRef<ChartgpuDataAppendEvent>;
|
|
132
|
+
readonly zoomChange: import("@angular/core").OutputEmitterRef<ChartgpuZoomChangeEvent>;
|
|
133
|
+
readonly zoomRangeChange: import("@angular/core").OutputEmitterRef<ChartgpuZoomRangeChangeEvent>;
|
|
134
|
+
readonly deviceLost: import("@angular/core").OutputEmitterRef<Readonly<{
|
|
135
|
+
readonly reason: GPUDeviceLostReason;
|
|
136
|
+
readonly message: string;
|
|
137
|
+
}>>;
|
|
138
|
+
readonly chartError: import("@angular/core").OutputEmitterRef<Error>;
|
|
139
|
+
readonly host: import("@angular/core").Signal<ElementRef<HTMLDivElement> | undefined>;
|
|
140
|
+
readonly canvasHost: import("@angular/core").Signal<ElementRef<HTMLDivElement> | undefined>;
|
|
141
|
+
private readonly chartInstance;
|
|
142
|
+
readonly initializationError: import("@angular/core").WritableSignal<Error | null>;
|
|
143
|
+
private chartContainer?;
|
|
144
|
+
private createdWithOptions?;
|
|
145
|
+
private resizeTimeout?;
|
|
146
|
+
private resizeObserver?;
|
|
147
|
+
private removeChartListeners?;
|
|
148
|
+
private destroying;
|
|
149
|
+
constructor(destroyRef: DestroyRef);
|
|
150
|
+
protected emitClick(event: MouseEvent): void;
|
|
151
|
+
ngOnDestroy(): void;
|
|
152
|
+
getChart(): ChartGPUInstance$1 | null;
|
|
153
|
+
getContainer(): HTMLDivElement | null;
|
|
154
|
+
appendData(seriesIndex: number, newPoints: ChartgpuCartesianSeriesData | OHLCDataPoint$1[], options?: ChartgpuAppendDataOptions): void;
|
|
155
|
+
renderFrame(): boolean;
|
|
156
|
+
needsRender(): boolean;
|
|
157
|
+
getRenderMode(): 'auto' | 'external';
|
|
158
|
+
setRenderMode(mode: 'auto' | 'external'): void;
|
|
159
|
+
setOption(options: ChartgpuOptions): void;
|
|
160
|
+
setZoomRange(start: number, end: number, source?: unknown): void;
|
|
161
|
+
setInteractionX(x: number | null, source?: unknown): void;
|
|
162
|
+
getInteractionX(): number | null;
|
|
163
|
+
hitTest(event: PointerEvent | MouseEvent): Readonly<{
|
|
164
|
+
readonly isInGrid: boolean;
|
|
165
|
+
readonly canvasX: number;
|
|
166
|
+
readonly canvasY: number;
|
|
167
|
+
readonly gridX: number;
|
|
168
|
+
readonly gridY: number;
|
|
169
|
+
readonly match: import("chartgpu").ChartGPUHitTestMatch | null;
|
|
170
|
+
}> | null;
|
|
171
|
+
private getEffectiveOptions;
|
|
172
|
+
private listenToChart;
|
|
173
|
+
private emitZoomRange;
|
|
174
|
+
private observeResize;
|
|
175
|
+
private reportError;
|
|
176
|
+
private disposeChart;
|
|
177
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChartGpuAngularComponent, never>;
|
|
178
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChartGpuAngularComponent, "lib-chartgpu-angular", never, {
|
|
179
|
+
"options": {
|
|
180
|
+
"alias": "options";
|
|
181
|
+
"required": true;
|
|
182
|
+
"isSignal": true;
|
|
183
|
+
};
|
|
184
|
+
"gpuContext": {
|
|
185
|
+
"alias": "gpuContext";
|
|
186
|
+
"required": false;
|
|
187
|
+
"isSignal": true;
|
|
188
|
+
};
|
|
189
|
+
"theme": {
|
|
190
|
+
"alias": "theme";
|
|
191
|
+
"required": false;
|
|
192
|
+
"isSignal": true;
|
|
193
|
+
};
|
|
194
|
+
"className": {
|
|
195
|
+
"alias": "className";
|
|
196
|
+
"required": false;
|
|
197
|
+
"isSignal": true;
|
|
198
|
+
};
|
|
199
|
+
"style": {
|
|
200
|
+
"alias": "style";
|
|
201
|
+
"required": false;
|
|
202
|
+
"isSignal": true;
|
|
203
|
+
};
|
|
204
|
+
}, {
|
|
205
|
+
"ready": "ready";
|
|
206
|
+
"chartReady": "chartReady";
|
|
207
|
+
"chartDispose": "chartDispose";
|
|
208
|
+
"resize": "resize";
|
|
209
|
+
"click": "click";
|
|
210
|
+
"chartClick": "chartClick";
|
|
211
|
+
"mouseOver": "mouseOver";
|
|
212
|
+
"mouseOut": "mouseOut";
|
|
213
|
+
"crosshairMove": "crosshairMove";
|
|
214
|
+
"dataAppend": "dataAppend";
|
|
215
|
+
"zoomChange": "zoomChange";
|
|
216
|
+
"zoomRangeChange": "zoomRangeChange";
|
|
217
|
+
"deviceLost": "deviceLost";
|
|
218
|
+
"chartError": "chartError";
|
|
219
|
+
}, never, never, true, never>;
|
|
220
|
+
}
|
|
221
|
+
export declare class ChartgpuConnectChartsDirective {
|
|
222
|
+
readonly charts: import("@angular/core").InputSignal<readonly (ChartGPUInstance$1 | null | undefined)[]>;
|
|
223
|
+
readonly syncOptions: import("@angular/core").InputSignal<Readonly<{
|
|
224
|
+
readonly syncCrosshair?: boolean;
|
|
225
|
+
readonly syncZoom?: boolean;
|
|
226
|
+
}> | undefined>;
|
|
227
|
+
readonly connectionError: import("@angular/core").OutputEmitterRef<Error>;
|
|
228
|
+
private readonly ids;
|
|
229
|
+
private nextId;
|
|
230
|
+
private signature;
|
|
231
|
+
constructor();
|
|
232
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChartgpuConnectChartsDirective, never>;
|
|
233
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ChartgpuConnectChartsDirective, "[libChartgpuConnectCharts]", never, {
|
|
234
|
+
"charts": {
|
|
235
|
+
"alias": "libChartgpuConnectCharts";
|
|
236
|
+
"required": false;
|
|
237
|
+
"isSignal": true;
|
|
238
|
+
};
|
|
239
|
+
"syncOptions": {
|
|
240
|
+
"alias": "syncOptions";
|
|
241
|
+
"required": false;
|
|
242
|
+
"isSignal": true;
|
|
243
|
+
};
|
|
244
|
+
}, {
|
|
245
|
+
"connectionError": "connectionError";
|
|
246
|
+
}, never, never, true, never>;
|
|
198
247
|
}
|
|
199
|
-
|
|
200
|
-
declare function provideChartGpuContext(): _angular_core.EnvironmentProviders;
|
|
201
|
-
|
|
248
|
+
export declare function provideChartGpuContext(): import("@angular/core").EnvironmentProviders;
|
|
202
249
|
/**
|
|
203
250
|
* Creates one shared WebGPU context and pipeline cache for charts in a dashboard.
|
|
204
251
|
* The device is intentionally not destroyed with the service so charts can share it
|
|
205
252
|
* for the lifetime of the application.
|
|
206
253
|
*/
|
|
207
|
-
declare class ChartgpuGPUContextService {
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
254
|
+
export declare class ChartgpuGPUContextService {
|
|
255
|
+
readonly state: import("@angular/core").WritableSignal<ChartgpuGPUContextState>;
|
|
256
|
+
readonly context: import("@angular/core").Signal<Readonly<{
|
|
257
|
+
readonly device: GPUDevice;
|
|
258
|
+
readonly adapter: GPUAdapter;
|
|
259
|
+
readonly pipelineCache?: import("chartgpu").PipelineCache;
|
|
260
|
+
}> | null>;
|
|
261
|
+
private initialization?;
|
|
262
|
+
initialize(): Promise<ChartgpuGPUContextState>;
|
|
263
|
+
private createContext;
|
|
264
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChartgpuGPUContextService, never>;
|
|
265
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
219
266
|
}
|
|
220
|
-
|
|
221
|
-
export { ChartGpuAngularComponent, ChartgpuConnectChartsDirective, ChartgpuGPUContextService, provideChartGpuContext };
|
|
222
|
-
export type { ChartgpuAnimationOptions, ChartgpuAnnotationOptions, ChartgpuAppendDataOptions, ChartgpuAxisOptions, ChartgpuCartesianSeriesData, ChartgpuChartHandle, ChartgpuChartInstance, ChartgpuClickEvent, ChartgpuClickParams, ChartgpuCrosshairMoveParams, ChartgpuDataAppendEvent, ChartgpuGPUContext, ChartgpuGPUContextState, ChartgpuHitTestResult, ChartgpuInteractionOptions, ChartgpuInterleavedXYData, ChartgpuMouseOverParams, ChartgpuOptions, ChartgpuReadyEvent, ChartgpuRenderMode, ChartgpuResizeEvent, ChartgpuSeriesData, ChartgpuSeriesOptions, ChartgpuSeriesType, ChartgpuStreamingOptions, ChartgpuStyle, ChartgpuSyncOptions, ChartgpuThemeOptions, ChartgpuThreeDOptions, ChartgpuTooltipOptions, ChartgpuXYArraysData, ChartgpuZoomChangeEvent, ChartgpuZoomOptions, ChartgpuZoomRange, ChartgpuZoomRangeChangeEvent };
|
|
267
|
+
export type { ChartGPUCreateContext, ChartGPUCrosshairMovePayload, ChartGPUDeviceLostPayload, ChartGPUEventPayload, ChartGPUHitTestResult, ChartGPUInstance, ChartSyncOptions, DataPoint, OHLCDataPoint, PipelineCache, RenderMode };
|