@crysound/crychart 0.0.0-stage → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +288 -0
- package/LICENSE.zh-CN.md +290 -0
- package/README.md +82 -2
- package/README.zh-CN.md +79 -0
- package/dist/crychart.cjs +25234 -0
- package/dist/crychart.global.js +25236 -0
- package/dist/crychart.js +25211 -0
- package/dist/themes.js +357 -0
- package/dist/types/adapters/opentest.d.ts +69 -0
- package/dist/types/annotation-interaction.d.ts +36 -0
- package/dist/types/axis-canvas.d.ts +78 -0
- package/dist/types/axis-layout.d.ts +10 -0
- package/dist/types/axis-scroll-animation.d.ts +16 -0
- package/dist/types/axis.d.ts +532 -0
- package/dist/types/axis3d-label-layout.d.ts +45 -0
- package/dist/types/chart-events.d.ts +89 -0
- package/dist/types/chart.d.ts +674 -0
- package/dist/types/compatibility-types.d.ts +55 -0
- package/dist/types/component-highlight.d.ts +21 -0
- package/dist/types/contracts.d.ts +88 -0
- package/dist/types/core/data.d.ts +204 -0
- package/dist/types/core/events.d.ts +16 -0
- package/dist/types/core/line-delta-certificate.d.ts +70 -0
- package/dist/types/core/paged-columns.d.ts +180 -0
- package/dist/types/core/styles.d.ts +350 -0
- package/dist/types/css-text-fonts.d.ts +13 -0
- package/dist/types/cursor-api.d.ts +47 -0
- package/dist/types/custom-icon.d.ts +46 -0
- package/dist/types/data-bounds.d.ts +28 -0
- package/dist/types/data-order.d.ts +49 -0
- package/dist/types/data-runs.d.ts +15 -0
- package/dist/types/date-time-formatting.d.ts +32 -0
- package/dist/types/date-time-grid.d.ts +56 -0
- package/dist/types/formatting-functions.d.ts +16 -0
- package/dist/types/geometry.d.ts +378 -0
- package/dist/types/gradients.d.ts +37 -0
- package/dist/types/grid-layout.d.ts +10 -0
- package/dist/types/heatmap-stream.d.ts +38 -0
- package/dist/types/hierarchy.d.ts +191 -0
- package/dist/types/index.d.ts +75 -0
- package/dist/types/interaction-policy.d.ts +56 -0
- package/dist/types/line-block-cache.d.ts +146 -0
- package/dist/types/line-coverage-geometry.d.ts +28 -0
- package/dist/types/line-display-arena.d.ts +64 -0
- package/dist/types/line-display-cache.d.ts +144 -0
- package/dist/types/line-display-packets.d.ts +43 -0
- package/dist/types/line-extrema-pair-proof.d.ts +23 -0
- package/dist/types/line-palette-3d.d.ts +6 -0
- package/dist/types/line-selection-ledger.d.ts +143 -0
- package/dist/types/map.d.ts +219 -0
- package/dist/types/mesh3d.d.ts +306 -0
- package/dist/types/native-legend.d.ts +208 -0
- package/dist/types/point-fill.d.ts +14 -0
- package/dist/types/point-stroke-geometry.d.ts +12 -0
- package/dist/types/polar-heatmap.d.ts +68 -0
- package/dist/types/polar-layout.d.ts +100 -0
- package/dist/types/polar-series.d.ts +79 -0
- package/dist/types/raster-clip.d.ts +37 -0
- package/dist/types/render-heatmap.d.ts +117 -0
- package/dist/types/render-line-coverage.d.ts +95 -0
- package/dist/types/render-line-direction.d.ts +27 -0
- package/dist/types/render-line-offsets.d.ts +61 -0
- package/dist/types/render-line-strip.d.ts +102 -0
- package/dist/types/render-line-texture.d.ts +30 -0
- package/dist/types/render.d.ts +66 -0
- package/dist/types/render3d.d.ts +137 -0
- package/dist/types/result-table-layout.d.ts +39 -0
- package/dist/types/series-attributes.d.ts +7 -0
- package/dist/types/series.d.ts +404 -0
- package/dist/types/specialty.d.ts +551 -0
- package/dist/types/streaming-line-policy.d.ts +11 -0
- package/dist/types/stroke-geometry.d.ts +5 -0
- package/dist/types/themes.d.ts +32 -0
- package/dist/types/time-formatting.d.ts +23 -0
- package/dist/types/time-grid.d.ts +26 -0
- package/dist/types/ui.d.ts +207 -0
- package/dist/types/viewport.d.ts +18 -0
- package/dist/types/world-axis.d.ts +21 -0
- package/dist/types/world-camera.d.ts +88 -0
- package/dist/types/zoom-clock.d.ts +36 -0
- package/docs/npm-usage.md +31 -0
- package/package.json +66 -4
|
@@ -0,0 +1,674 @@
|
|
|
1
|
+
import { Axis, PolarAxisRadial } from "./axis.js";
|
|
2
|
+
import { PointLineAreaSeries, SplineSeries, HeatmapSeries, type SeriesOptions } from "./series.js";
|
|
3
|
+
import { FontSettings, type LineStyle, type ValueOrMutator } from "./core/styles.js";
|
|
4
|
+
import { EventHub } from "./core/events.js";
|
|
5
|
+
import { DataRenderer } from "./render.js";
|
|
6
|
+
import { UIElement, Cursor, LegendBox } from "./ui.js";
|
|
7
|
+
import { NativeLegend, type LegendOptions } from './native-legend.js';
|
|
8
|
+
import { defaultXYCursorRows, type SolveNearestMode, type CoordinateClient, type CursorTargetChangedEvent } from './cursor-api.js';
|
|
9
|
+
import { PolarLineSeries, PolarPointSeries, PolarPointLineSeries, type PolarSolveMode, type PolarSolveResult } from './polar-series.js';
|
|
10
|
+
import { RectangleSeries, PolygonSeries, SegmentSeries, RangeSeries, OHLCSeries } from "./geometry.js";
|
|
11
|
+
import { type DrawPacket, type Interval, type Rect } from "./contracts.js";
|
|
12
|
+
import { PolarHeatmapSeries, type PolarHeatmapOptions, type PolarHeatmapSolveResult } from './polar-heatmap.js';
|
|
13
|
+
import { SurfaceGrid3D, SurfaceMesh3D, MeshModel3D, BoxSeries3D } from './mesh3d.js';
|
|
14
|
+
import { type PolarLayout, type PolarInsets } from './polar-layout.js';
|
|
15
|
+
import { type AxisPosition, type PublicEventListener, type ChartEventListenerOptions } from './chart-events.js';
|
|
16
|
+
import { type Projection3D, type Vec3 } from './world-camera.js';
|
|
17
|
+
export interface ChartOptions {
|
|
18
|
+
/** Artifact research switch; this candidate defaults to the world camera. */
|
|
19
|
+
experimental3DCameraModel?: 'world' | 'legacy';
|
|
20
|
+
container?: HTMLElement | string;
|
|
21
|
+
antialias?: boolean;
|
|
22
|
+
renderer?: 'auto' | 'webgl2' | 'canvas2d';
|
|
23
|
+
/** Explicit diagnostic opt-in. Pixel and paired-performance validation is ongoing. */
|
|
24
|
+
experimentalLineBlocks?: boolean;
|
|
25
|
+
/** Display-only extrema candidate; disabled unless an explicit pixel span is supplied. */
|
|
26
|
+
experimentalLineDisplayPixels?: number;
|
|
27
|
+
/** Explicit page-packet experiment. Requires display pixels and coverage union. */
|
|
28
|
+
experimentalLineDisplayPackets?: boolean;
|
|
29
|
+
/** Explicit conservative stroke-coverage candidate; disabled by default. */
|
|
30
|
+
experimentalLineCoverage?: boolean;
|
|
31
|
+
/** Explicit ownership: pure coverage frames establish the private GL baseline. */
|
|
32
|
+
experimentalOwnedCoverageFrame?: boolean;
|
|
33
|
+
/** Explicit WebGL2 data clipping candidate; Canvas/3D/UI are not affected. */
|
|
34
|
+
experimentalGpuClipPolicy?: 'contained';
|
|
35
|
+
theme?: any;
|
|
36
|
+
legend?: LegendOptions;
|
|
37
|
+
defaultAxisX?: any;
|
|
38
|
+
defaultAxisY?: any;
|
|
39
|
+
defaultAxisZ?: any;
|
|
40
|
+
[key: string]: any;
|
|
41
|
+
}
|
|
42
|
+
export declare const AutoCursorModes: Readonly<{
|
|
43
|
+
disabled: 0;
|
|
44
|
+
snapToClosest: 1;
|
|
45
|
+
onHover: 2;
|
|
46
|
+
}>;
|
|
47
|
+
export interface ChartPadding {
|
|
48
|
+
left: number;
|
|
49
|
+
right: number;
|
|
50
|
+
top: number;
|
|
51
|
+
bottom: number;
|
|
52
|
+
}
|
|
53
|
+
export interface AxisXYLayoutInfo {
|
|
54
|
+
left: number;
|
|
55
|
+
right: number;
|
|
56
|
+
bottom: number;
|
|
57
|
+
top: number;
|
|
58
|
+
width: number;
|
|
59
|
+
height: number;
|
|
60
|
+
}
|
|
61
|
+
export interface ChartXYLayoutInfo {
|
|
62
|
+
viewportWidth: number;
|
|
63
|
+
viewportHeight: number;
|
|
64
|
+
chartWidth: number;
|
|
65
|
+
chartHeight: number;
|
|
66
|
+
margins: {
|
|
67
|
+
left: number;
|
|
68
|
+
right: number;
|
|
69
|
+
bottom: number;
|
|
70
|
+
top: number;
|
|
71
|
+
};
|
|
72
|
+
axes: Map<Axis, AxisXYLayoutInfo>;
|
|
73
|
+
}
|
|
74
|
+
export interface ChartXYLayoutChangedEvent extends ChartXYLayoutInfo {
|
|
75
|
+
userChangedLayout: () => void;
|
|
76
|
+
}
|
|
77
|
+
export declare class ChartXY {
|
|
78
|
+
readonly events: EventHub;
|
|
79
|
+
private readonly publicEvents;
|
|
80
|
+
readonly axesX: Axis[];
|
|
81
|
+
readonly axesY: Axis[];
|
|
82
|
+
readonly axesZ: Axis[];
|
|
83
|
+
readonly ui: any[];
|
|
84
|
+
readonly series: any[];
|
|
85
|
+
readonly container?: HTMLElement;
|
|
86
|
+
readonly root?: HTMLDivElement;
|
|
87
|
+
readonly canvas?: HTMLCanvasElement;
|
|
88
|
+
readonly underlay?: HTMLCanvasElement;
|
|
89
|
+
readonly overlay?: HTMLCanvasElement;
|
|
90
|
+
readonly renderer?: DataRenderer;
|
|
91
|
+
readonly engine: any;
|
|
92
|
+
readonly legend: NativeLegend;
|
|
93
|
+
private readonly customIcons;
|
|
94
|
+
private readonly experimentalLineBlocks;
|
|
95
|
+
private readonly experimentalLineDisplayPixels?;
|
|
96
|
+
private readonly experimentalLineDisplayPackets;
|
|
97
|
+
private readonly gpuClipPolicy;
|
|
98
|
+
readonly coordsAxis: any;
|
|
99
|
+
readonly coordsRelative: any;
|
|
100
|
+
private readonly coordsPlotPercentage;
|
|
101
|
+
readonly coordsPixel: any;
|
|
102
|
+
readonly coordsClient: any;
|
|
103
|
+
title: string;
|
|
104
|
+
private titlePosition;
|
|
105
|
+
private titleMargin;
|
|
106
|
+
private titleMarginRequest;
|
|
107
|
+
titleFont: FontSettings;
|
|
108
|
+
titleFill: any;
|
|
109
|
+
theme: any;
|
|
110
|
+
background: any;
|
|
111
|
+
plotBackground: any;
|
|
112
|
+
disposed: boolean;
|
|
113
|
+
visible: boolean;
|
|
114
|
+
width: number;
|
|
115
|
+
height: number;
|
|
116
|
+
dpr: number;
|
|
117
|
+
plot: Rect;
|
|
118
|
+
padding: ChartPadding;
|
|
119
|
+
private axisCanvasLayout?;
|
|
120
|
+
private cssTextFonts?;
|
|
121
|
+
readonly resolveTextFont: (font: FontSettings) => FontSettings;
|
|
122
|
+
private customTickPlacementLengths?;
|
|
123
|
+
private placementTitleMeasure?;
|
|
124
|
+
private frame;
|
|
125
|
+
private readonly scrollingAxes;
|
|
126
|
+
private rendering;
|
|
127
|
+
private notifyingLayout;
|
|
128
|
+
private lastPublicLayout?;
|
|
129
|
+
private observer?;
|
|
130
|
+
private overlayContext?;
|
|
131
|
+
private underlayContext?;
|
|
132
|
+
private heatmapRenderer?;
|
|
133
|
+
private heatmapPalettes;
|
|
134
|
+
private heatCache;
|
|
135
|
+
private cleanups;
|
|
136
|
+
protected cursor: Cursor;
|
|
137
|
+
private autoCursorMode;
|
|
138
|
+
private nativeCursorMode;
|
|
139
|
+
private structuredCursor;
|
|
140
|
+
private cursorFormatting?;
|
|
141
|
+
protected customCursor?: ((event: CursorTargetChangedEvent<any>) => unknown);
|
|
142
|
+
private customCursorAnnotationHold;
|
|
143
|
+
private lastCursorClient?;
|
|
144
|
+
private lastEmptyCursorClient?;
|
|
145
|
+
protected pointer?: {
|
|
146
|
+
x: number;
|
|
147
|
+
y: number;
|
|
148
|
+
};
|
|
149
|
+
private annotationDrag?;
|
|
150
|
+
protected drag?: {
|
|
151
|
+
x: number;
|
|
152
|
+
y: number;
|
|
153
|
+
mode: "zoom" | "pan" | "rotate";
|
|
154
|
+
stopScroll?: boolean;
|
|
155
|
+
sensitivity?: number;
|
|
156
|
+
intervals: {
|
|
157
|
+
axis: Axis;
|
|
158
|
+
interval: Interval;
|
|
159
|
+
}[];
|
|
160
|
+
};
|
|
161
|
+
protected interaction: any;
|
|
162
|
+
protected kind: string;
|
|
163
|
+
/** Internal Axis host capability; Polar and 3D keep their existing policies. */
|
|
164
|
+
supportsAxisIntervalMaxRestrictions(): boolean;
|
|
165
|
+
getAxisInitialInterval(axis: Axis): Interval | undefined;
|
|
166
|
+
getAxisDefaultFitMargins(_axis: Axis): {
|
|
167
|
+
start: number;
|
|
168
|
+
end: number;
|
|
169
|
+
} | undefined;
|
|
170
|
+
protected polarAngleOrigin: number;
|
|
171
|
+
protected polarClockwise: boolean;
|
|
172
|
+
protected polarAngle(degrees: number): number;
|
|
173
|
+
protected camera: {
|
|
174
|
+
azimuth: number;
|
|
175
|
+
elevation: number;
|
|
176
|
+
zoom: number;
|
|
177
|
+
};
|
|
178
|
+
protected surfaceSeries: SurfaceGridSeries[];
|
|
179
|
+
protected createDefaultAxisX(options: any): Axis;
|
|
180
|
+
constructor(options?: ChartOptions);
|
|
181
|
+
getDefaultAxisX(): Axis;
|
|
182
|
+
get axisX(): Axis;
|
|
183
|
+
get axisY(): Axis;
|
|
184
|
+
protected rotate3DCamera(dx: number, dy: number, _event?: PointerEvent): void;
|
|
185
|
+
protected zoom3DCamera(delta: number, _event?: WheelEvent): boolean | void;
|
|
186
|
+
getSizePixels(): {
|
|
187
|
+
x: number;
|
|
188
|
+
y: number;
|
|
189
|
+
};
|
|
190
|
+
getAxes(...positions: AxisPosition[]): Axis[];
|
|
191
|
+
addEventListener(type: string, listener: PublicEventListener, options?: ChartEventListenerOptions): void;
|
|
192
|
+
removeEventListener(type: string, listener: PublicEventListener): void;
|
|
193
|
+
getDefaultAxisY(): Axis;
|
|
194
|
+
getDefaultAxisZ(): Axis;
|
|
195
|
+
addAxisX(options?: any): Axis;
|
|
196
|
+
addAxisY(options?: any): Axis;
|
|
197
|
+
protected addSeries(options?: SeriesOptions, kind?: string): PointLineAreaSeries;
|
|
198
|
+
addLineSeries(options?: SeriesOptions): PointLineAreaSeries;
|
|
199
|
+
addSplineSeries(options?: SeriesOptions): SplineSeries;
|
|
200
|
+
addPointLineAreaSeries(options?: SeriesOptions): PointLineAreaSeries;
|
|
201
|
+
addPointSeries(options?: SeriesOptions): PointLineAreaSeries;
|
|
202
|
+
addPointLineSeries(options?: SeriesOptions): PointLineAreaSeries;
|
|
203
|
+
addAreaSeries(options?: SeriesOptions): PointLineAreaSeries;
|
|
204
|
+
protected initializeHeatmapFillStyle<T extends HeatmapSeries>(series: T, field: "heatmapGridSeriesFillStyle" | "heatmapScrollingGridSeriesFillStyle" | "polarHeatmapSeriesFillStyle"): T;
|
|
205
|
+
protected initializeHeatmapWireframeStyle<T extends HeatmapSeries>(series: T, field: "heatmapGridSeriesWireframeStyle" | "heatmapScrollingGridSeriesWireframeStyle"): T;
|
|
206
|
+
addHeatmapGridSeries(options?: any): HeatmapSeries;
|
|
207
|
+
addHeatmapScrollingGridSeries(options?: any): HeatmapSeries;
|
|
208
|
+
addSurfaceGridSeries(options?: any): any;
|
|
209
|
+
private geometry;
|
|
210
|
+
addRectangleSeries(options?: any): RectangleSeries;
|
|
211
|
+
addPolygonSeries(options?: any): PolygonSeries;
|
|
212
|
+
addSegmentSeries(options?: any): SegmentSeries;
|
|
213
|
+
addAreaRangeSeries(options?: any): RangeSeries;
|
|
214
|
+
addRangeSeries(options?: any): RangeSeries;
|
|
215
|
+
addOHLCSeries(options?: any): OHLCSeries;
|
|
216
|
+
addBoxSeries(options?: any): any;
|
|
217
|
+
getSeries(): any[];
|
|
218
|
+
removeSeries(series: any): void;
|
|
219
|
+
setTitle(value: string): this;
|
|
220
|
+
getTitle(): string;
|
|
221
|
+
setTitlePosition(position: 'left-top' | 'center-top' | 'right-top'): this;
|
|
222
|
+
getTitlePosition(): "left-top" | "center-top" | "right-top";
|
|
223
|
+
setTitleMargin(value: number | {
|
|
224
|
+
left?: number;
|
|
225
|
+
right?: number;
|
|
226
|
+
top?: number;
|
|
227
|
+
bottom?: number;
|
|
228
|
+
}): this;
|
|
229
|
+
getTitleMargin(): {
|
|
230
|
+
left?: number | undefined;
|
|
231
|
+
right?: number | undefined;
|
|
232
|
+
top?: number | undefined;
|
|
233
|
+
bottom?: number | undefined;
|
|
234
|
+
};
|
|
235
|
+
getAxisCustomTickPlacementPixelLength(axis: Axis): number | undefined;
|
|
236
|
+
private prepareCustomTickPlacementLengths;
|
|
237
|
+
/** Marker/stroke extent used by the explicit pixel-based axis scroll margins. */
|
|
238
|
+
getAxisAutoScrollMargins(axis: Axis): {
|
|
239
|
+
start: number;
|
|
240
|
+
end: number;
|
|
241
|
+
};
|
|
242
|
+
/** Internal XY default for omitted fit stop policy; no source data scan. */
|
|
243
|
+
getAxisDefaultFitStop(axis: Axis): boolean | undefined;
|
|
244
|
+
/** Internal default XY fit footprint; explicit margin policy stays in Axis. */
|
|
245
|
+
getAxisDefaultGeometryMargins(axis: Axis): {
|
|
246
|
+
start: number;
|
|
247
|
+
end: number;
|
|
248
|
+
} | undefined;
|
|
249
|
+
setTitleFont(value: any): this;
|
|
250
|
+
getTitleFont(): FontSettings;
|
|
251
|
+
setTitleFillStyle(value: any): this;
|
|
252
|
+
getTitleFillStyle(): any;
|
|
253
|
+
setBackgroundFillStyle(value: any): this;
|
|
254
|
+
getBackgroundFillStyle(): any;
|
|
255
|
+
setSeriesBackgroundFillStyle(value: any): this;
|
|
256
|
+
getSeriesBackgroundFillStyle(): any;
|
|
257
|
+
setPadding(value: number | Partial<ChartPadding>): this;
|
|
258
|
+
getPadding(): ChartPadding;
|
|
259
|
+
setVisible(value: boolean): this;
|
|
260
|
+
getVisible(): boolean;
|
|
261
|
+
setCursor(value: any): this;
|
|
262
|
+
getCursor(): Cursor;
|
|
263
|
+
setAutoCursor(value: any): this;
|
|
264
|
+
getAutoCursor(): Cursor;
|
|
265
|
+
setAutoCursorMode(mode: number | string): this;
|
|
266
|
+
getAutoCursorMode(): number;
|
|
267
|
+
setCursorMode(mode: SolveNearestMode | undefined): this;
|
|
268
|
+
getCursorMode(): SolveNearestMode | undefined;
|
|
269
|
+
setCustomCursor(callback: ((event: CursorTargetChangedEvent<any>) => unknown) | undefined): this;
|
|
270
|
+
protected dispatchCustomCursor(hits: any[], mouseLocation?: CoordinateClient): boolean;
|
|
271
|
+
setCursorFormatting(formatter: ((chart: any, hit: any, hits: any[]) => any[][] | undefined) | undefined): this;
|
|
272
|
+
getCursorFormatting(): ((chart: any, hit: any, hits: any[]) => any[][] | undefined) | typeof defaultXYCursorRows;
|
|
273
|
+
solveNearest(from?: CoordinateClient, mode?: SolveNearestMode): any[];
|
|
274
|
+
addUIElement(builder: any, coordinates?: any): UIElement;
|
|
275
|
+
addLegendBox(_builder?: any, options?: any): LegendBox;
|
|
276
|
+
addCursor(): Cursor;
|
|
277
|
+
private ownUI;
|
|
278
|
+
setUserInteractions(value: any): this;
|
|
279
|
+
validateAxisInteractions(axis: Axis, value: any): void;
|
|
280
|
+
getUserInteractions(): any;
|
|
281
|
+
setMouseInteractions(value: any): this;
|
|
282
|
+
setMouseInteractionsEnabled(value: boolean): this;
|
|
283
|
+
setAnimationsEnabled(value: boolean): this;
|
|
284
|
+
animationsEnabled: boolean;
|
|
285
|
+
private readonly defaultSeriesDrawOrder;
|
|
286
|
+
private nextSeriesDrawOrder;
|
|
287
|
+
private customSeriesDrawOrder;
|
|
288
|
+
/** Internal notification used by implemented XY geometry series ordering. */
|
|
289
|
+
onSeriesDrawOrderChanged(): void;
|
|
290
|
+
protected orderedSeriesForDrawing(): any[];
|
|
291
|
+
private explicitAnimationsEnabled;
|
|
292
|
+
protected initializeSeriesAnimation(series: any): void;
|
|
293
|
+
on(type: string, fn: any): symbol;
|
|
294
|
+
off(typeOrToken: any, token?: any): boolean;
|
|
295
|
+
onResize(fn: any): symbol;
|
|
296
|
+
onDispose(fn: any): symbol;
|
|
297
|
+
boundsFor(axis: Axis, considerVisibleRangeOnly?: boolean): Interval | undefined;
|
|
298
|
+
fit(): this;
|
|
299
|
+
fitToData(): this;
|
|
300
|
+
resize(width?: number, height?: number): this;
|
|
301
|
+
protected usesWholeControl3DLayout(): boolean;
|
|
302
|
+
protected layout(): void;
|
|
303
|
+
private legendArea;
|
|
304
|
+
private hasVisibleChartTitle;
|
|
305
|
+
private currentLayoutInfo;
|
|
306
|
+
getLayout(): Promise<ChartXYLayoutInfo>;
|
|
307
|
+
private publishLayoutChange;
|
|
308
|
+
private hasAxisLaneContent;
|
|
309
|
+
/** Plot rectangle occupied by the series' two independent axis stacks. */
|
|
310
|
+
getSeriesScreenRect(series: {
|
|
311
|
+
axisX: Axis;
|
|
312
|
+
axisY: Axis;
|
|
313
|
+
}): Rect;
|
|
314
|
+
protected beforeScheduledAnimationFrame(timestamp: number): void;
|
|
315
|
+
requestAxisScrollAnimation(axis: Axis): void;
|
|
316
|
+
cancelAxisScrollAnimation(axis: Axis): void;
|
|
317
|
+
protected advanceAxisScrollAnimations(timestamp: number): void;
|
|
318
|
+
protected hasPendingAxisScrollAnimations(): boolean;
|
|
319
|
+
protected cancelAxisScrollAnimations(): void;
|
|
320
|
+
protected hasPendingAnimationFrame(): boolean;
|
|
321
|
+
protected cancelScheduledAnimation(): void;
|
|
322
|
+
invalidate(): void;
|
|
323
|
+
renderNow(): void;
|
|
324
|
+
/** Internal post-render publication hook; consumer callbacks may request a new frame. */
|
|
325
|
+
protected afterRender(): void;
|
|
326
|
+
protected drawPlotFrame(ctx: CanvasRenderingContext2D): void;
|
|
327
|
+
protected drawAxes(ctx: CanvasRenderingContext2D): void;
|
|
328
|
+
protected drawAnnotations(ctx: CanvasRenderingContext2D, onTop?: boolean): void;
|
|
329
|
+
protected drawArea(ctx: CanvasRenderingContext2D, s: PointLineAreaSeries): void;
|
|
330
|
+
protected drawHeatmap(ctx: CanvasRenderingContext2D, s: HeatmapSeries): void;
|
|
331
|
+
/** Canvas fallback uses the same series axes, clip and public line style. */
|
|
332
|
+
protected drawHeatmapWireframe(ctx: CanvasRenderingContext2D, s: HeatmapSeries): void;
|
|
333
|
+
protected drawSpecial(_ctx: CanvasRenderingContext2D): void;
|
|
334
|
+
private drawSampledHeatmap;
|
|
335
|
+
protected renderData(packets: DrawPacket[]): void;
|
|
336
|
+
private gpuHeatmap;
|
|
337
|
+
protected drawCursor(ctx: CanvasRenderingContext2D): void;
|
|
338
|
+
private drawStructuredCursor;
|
|
339
|
+
private pointedCursorHits;
|
|
340
|
+
translatePoint(p: any, source?: any, target?: any): any;
|
|
341
|
+
translateCoordinate(point: any, sourceOrTarget: any, target?: any): any;
|
|
342
|
+
private axesAtPoint;
|
|
343
|
+
/** Axis events address the actual label/title lane, including stacked spans. */
|
|
344
|
+
private axisAtPixel;
|
|
345
|
+
private xyInteractionAt;
|
|
346
|
+
private interactionAxes;
|
|
347
|
+
private updateAxisPointerHover;
|
|
348
|
+
protected attachInteractions(): void;
|
|
349
|
+
getRenderStats(): {
|
|
350
|
+
heatmapBackend: string | undefined;
|
|
351
|
+
heatmapStats: {
|
|
352
|
+
frames: number;
|
|
353
|
+
uploads: number;
|
|
354
|
+
textureUploads: number;
|
|
355
|
+
paletteUploads: number;
|
|
356
|
+
uploadedBytes: number;
|
|
357
|
+
drawCalls: number;
|
|
358
|
+
cells: number;
|
|
359
|
+
renderTimeMs: number;
|
|
360
|
+
cachedTextures: number;
|
|
361
|
+
cacheBytes: number;
|
|
362
|
+
contextRestores: number;
|
|
363
|
+
} | undefined;
|
|
364
|
+
series: number;
|
|
365
|
+
samples: any;
|
|
366
|
+
width: number;
|
|
367
|
+
height: number;
|
|
368
|
+
devicePixelRatio: number;
|
|
369
|
+
frames?: number | undefined;
|
|
370
|
+
uploads?: number | undefined;
|
|
371
|
+
uploadedBytes?: number | undefined;
|
|
372
|
+
drawCalls?: number | undefined;
|
|
373
|
+
vertices?: number | undefined;
|
|
374
|
+
submittedSamples?: number | undefined;
|
|
375
|
+
renderTimeMs?: number | undefined;
|
|
376
|
+
backend: string;
|
|
377
|
+
};
|
|
378
|
+
private captureCanvas;
|
|
379
|
+
captureFrame(type?: string, quality?: number): Blob;
|
|
380
|
+
exportToImage(options?: any): Promise<Blob>;
|
|
381
|
+
exportImage(options?: any): Promise<Blob>;
|
|
382
|
+
captureImage(options?: any): Promise<Blob>;
|
|
383
|
+
downloadPNG(name?: string): Promise<void>;
|
|
384
|
+
dispose(): this;
|
|
385
|
+
isDisposed(): boolean;
|
|
386
|
+
}
|
|
387
|
+
type PolarCursorHit = PolarSolveResult | PolarHeatmapSolveResult;
|
|
388
|
+
export declare class Polar extends ChartXY {
|
|
389
|
+
protected beforeScheduledAnimationFrame(timestamp: number): void;
|
|
390
|
+
protected hasPendingAnimationFrame(): boolean;
|
|
391
|
+
protected cancelScheduledAnimation(): void;
|
|
392
|
+
setVisible(value: boolean): this;
|
|
393
|
+
/** Keep Polar's existing theme-font extension when a label mutator changes only size. */
|
|
394
|
+
getAxisTickFont(): any;
|
|
395
|
+
protected kind: string;
|
|
396
|
+
readonly coordsAxis: any;
|
|
397
|
+
private polarLayout?;
|
|
398
|
+
private polarCursorMode;
|
|
399
|
+
private polarCursorFormatting?;
|
|
400
|
+
protected createDefaultAxisX(options: any): PolarAxisRadial;
|
|
401
|
+
private radialAxisAngle;
|
|
402
|
+
private polarHeatCache;
|
|
403
|
+
private polarCursorScaleByAxis;
|
|
404
|
+
private polarCursorAxisByScale;
|
|
405
|
+
constructor(options?: ChartOptions);
|
|
406
|
+
private polarTickAppearance;
|
|
407
|
+
/** Internal layout bridge; callers reuse its geometry for all projections. */
|
|
408
|
+
updatePolarLayout(ctx?: CanvasRenderingContext2D, legendMargin?: PolarInsets, titleMargin?: PolarInsets): void;
|
|
409
|
+
getPolarLayout(): PolarLayout;
|
|
410
|
+
/** Grid paints below data; text paints above data so center markers stay clear. */
|
|
411
|
+
drawPolarAxes(ctx: CanvasRenderingContext2D, pass?: 'grid' | 'labels' | 'all'): void;
|
|
412
|
+
addHeatmapSeries(options: PolarHeatmapOptions): PolarHeatmapSeries;
|
|
413
|
+
setRadialAxisAngle(value: number): this;
|
|
414
|
+
getRadialAxisAngle(): number;
|
|
415
|
+
setAngleOrigin(value: number): this;
|
|
416
|
+
getAngleOrigin(): number;
|
|
417
|
+
setClockwise(value: boolean): this;
|
|
418
|
+
getClockwise(): boolean;
|
|
419
|
+
getAngularAxis(): PolarAxisRadial;
|
|
420
|
+
projectPolarPoint(point: {
|
|
421
|
+
angle: number;
|
|
422
|
+
amplitude: number;
|
|
423
|
+
}, axis?: Axis): {
|
|
424
|
+
x: number;
|
|
425
|
+
y: number;
|
|
426
|
+
};
|
|
427
|
+
getAmplitudeAxis(): Axis;
|
|
428
|
+
getRadialAxis(): PolarAxisRadial;
|
|
429
|
+
/** Cursor scale is opaque; callers pass it back to translation or Cursor.setPosition. */
|
|
430
|
+
getPolarCursorPosition(point: {
|
|
431
|
+
angle: number;
|
|
432
|
+
amplitude: number;
|
|
433
|
+
color?: unknown;
|
|
434
|
+
}, axis: Axis): {
|
|
435
|
+
pointMarker: {
|
|
436
|
+
x: number;
|
|
437
|
+
y: number;
|
|
438
|
+
color: unknown;
|
|
439
|
+
};
|
|
440
|
+
pointMarkerScale: object;
|
|
441
|
+
resultTable: {
|
|
442
|
+
x: number;
|
|
443
|
+
y: number;
|
|
444
|
+
color: unknown;
|
|
445
|
+
};
|
|
446
|
+
resultTableScale: object;
|
|
447
|
+
};
|
|
448
|
+
translatePoint(point: any, source?: any, target?: any): any;
|
|
449
|
+
translateCoordinate(point: any, sourceOrTarget: any, target?: any): any;
|
|
450
|
+
setCursorMode(mode: PolarSolveMode | undefined): this;
|
|
451
|
+
getCursorMode(): PolarSolveMode | undefined;
|
|
452
|
+
setCursorFormatting(formatter: ((chart: Polar, hit: PolarCursorHit, hits: PolarCursorHit[]) => any[][] | undefined) | undefined): this;
|
|
453
|
+
getCursorFormatting(): (chart: Polar, hit: PolarCursorHit, hits: PolarCursorHit[]) => any[][] | undefined;
|
|
454
|
+
solveNearest(from?: {
|
|
455
|
+
clientX: number;
|
|
456
|
+
clientY: number;
|
|
457
|
+
}, mode?: PolarSolveMode): PolarCursorHit[];
|
|
458
|
+
protected drawCursor(ctx: CanvasRenderingContext2D): void;
|
|
459
|
+
private createPolarSeries;
|
|
460
|
+
addLineSeries(options?: SeriesOptions): PolarLineSeries;
|
|
461
|
+
addPointSeries(options?: SeriesOptions): PolarPointSeries;
|
|
462
|
+
addPointLineSeries(options?: SeriesOptions): PolarPointLineSeries;
|
|
463
|
+
protected addSeries(options?: SeriesOptions, kind?: string): PolarLineSeries;
|
|
464
|
+
protected drawSpecial(ctx: CanvasRenderingContext2D): void;
|
|
465
|
+
private drawPolarHeatmap;
|
|
466
|
+
dispose(): this;
|
|
467
|
+
}
|
|
468
|
+
export declare class Chart3D extends ChartXY {
|
|
469
|
+
protected usesWholeControl3DLayout(): boolean;
|
|
470
|
+
getAxisDefaultStrokeStyle(): LineStyle | undefined;
|
|
471
|
+
get axisZ(): Axis;
|
|
472
|
+
protected kind: string;
|
|
473
|
+
/** Original world-camera candidate. The stable/legacy path remains isolated. */
|
|
474
|
+
readonly coordsWorld: any;
|
|
475
|
+
private cameraModel;
|
|
476
|
+
private worldProjection;
|
|
477
|
+
private worldAutoFit;
|
|
478
|
+
private worldPosition;
|
|
479
|
+
private worldManualDirection?;
|
|
480
|
+
private worldFrame?;
|
|
481
|
+
private worldFrameKey;
|
|
482
|
+
private worldFrameBuilds;
|
|
483
|
+
private lastPublishedCameraView;
|
|
484
|
+
protected afterRender(): void;
|
|
485
|
+
private worldFitBuilds;
|
|
486
|
+
private worldAxisConversions;
|
|
487
|
+
private worldAnimationZoom;
|
|
488
|
+
private worldZoomInput;
|
|
489
|
+
private worldZoomInstant;
|
|
490
|
+
private worldZoomLastTimestamp?;
|
|
491
|
+
private worldZoomLastStep?;
|
|
492
|
+
private worldZoomFrames;
|
|
493
|
+
setAnimationZoom(value: boolean): this;
|
|
494
|
+
getAnimationZoom(): boolean;
|
|
495
|
+
setAnimationsEnabled(value: boolean): this;
|
|
496
|
+
protected beforeScheduledAnimationFrame(timestamp: number): void;
|
|
497
|
+
protected hasPendingAnimationFrame(): boolean;
|
|
498
|
+
protected cancelScheduledAnimation(): void;
|
|
499
|
+
getWorldZoomDiagnostics(): {
|
|
500
|
+
pending: number;
|
|
501
|
+
instantPending: boolean;
|
|
502
|
+
instantFactor: number | undefined;
|
|
503
|
+
instantStoredScalars: number;
|
|
504
|
+
frames: number;
|
|
505
|
+
lastTimestamp: number | undefined;
|
|
506
|
+
lastStep: {
|
|
507
|
+
position: {
|
|
508
|
+
x: number;
|
|
509
|
+
y: number;
|
|
510
|
+
z: number;
|
|
511
|
+
};
|
|
512
|
+
pendingBefore: number;
|
|
513
|
+
pendingAfter: number;
|
|
514
|
+
elapsedMS: number | undefined;
|
|
515
|
+
appliedMS: number;
|
|
516
|
+
changed: boolean;
|
|
517
|
+
} | undefined;
|
|
518
|
+
};
|
|
519
|
+
/** World 3D uses raw fit bounds; its converter separately reserves geometry margins. */
|
|
520
|
+
getAxisDefaultFitMargins(_axis: Axis): {
|
|
521
|
+
start: number;
|
|
522
|
+
end: number;
|
|
523
|
+
} | undefined;
|
|
524
|
+
/** Internal publication hook. Requested Axis intervals retain their public values. */
|
|
525
|
+
onAxisIntervalRequested(axis: Axis, requested: {
|
|
526
|
+
start: number;
|
|
527
|
+
end: number;
|
|
528
|
+
}): boolean;
|
|
529
|
+
private axisValueToWorldFraction;
|
|
530
|
+
private worldFractionToAxisValue;
|
|
531
|
+
private worldAxisCacheKey;
|
|
532
|
+
private ensureWorldFrame;
|
|
533
|
+
/** Candidate diagnostics describe its own cache; they are not a reference API. */
|
|
534
|
+
getWorldCameraDiagnostics(): {
|
|
535
|
+
model: "legacy" | "world";
|
|
536
|
+
frameBuilds: number;
|
|
537
|
+
fitBuilds: number;
|
|
538
|
+
fit: {
|
|
539
|
+
enabled: boolean;
|
|
540
|
+
iterations: number;
|
|
541
|
+
verified: boolean;
|
|
542
|
+
fallback: boolean;
|
|
543
|
+
} | undefined;
|
|
544
|
+
viewport: Rect | undefined;
|
|
545
|
+
clip: Rect | undefined;
|
|
546
|
+
safe: Rect | undefined;
|
|
547
|
+
near: number | undefined;
|
|
548
|
+
far: number | undefined;
|
|
549
|
+
};
|
|
550
|
+
setProjection(value: Projection3D): this;
|
|
551
|
+
getProjection(): Projection3D;
|
|
552
|
+
setCameraAutomaticFittingEnabled(value: boolean): this;
|
|
553
|
+
getCameraAutomaticFittingEnabled(): boolean;
|
|
554
|
+
getCameraDirection(): Vec3;
|
|
555
|
+
protected rotate3DCamera(dx: number, dy: number, event?: PointerEvent): void;
|
|
556
|
+
protected zoom3DCamera(delta: number, event?: WheelEvent): boolean | void;
|
|
557
|
+
translateCoordinate(point: any, sourceOrTarget: any, target?: any): any;
|
|
558
|
+
private boundingBox;
|
|
559
|
+
private boundingBoxStroke;
|
|
560
|
+
setBoundingBoxStrokeStyle(value: ValueOrMutator<LineStyle>): this;
|
|
561
|
+
getBoundingBoxStrokeStyle(): import('./core/styles.js').LineStyle;
|
|
562
|
+
private gpu3d?;
|
|
563
|
+
/** Equal endpoints and a finite monotonic source certificate prove an
|
|
564
|
+
* entire retained coordinate is constant, including hidden rows and gaps. */
|
|
565
|
+
protected getConstantCoordinates(series: PointLineAreaSeries): Partial<Vec3>;
|
|
566
|
+
private gpuPackets;
|
|
567
|
+
private gpuRevision;
|
|
568
|
+
constructor(options?: ChartOptions);
|
|
569
|
+
/** Project full XYZ axis coordinates with the existing original GPU camera
|
|
570
|
+
* model. This API-only repair does not change any draw or camera defaults. */
|
|
571
|
+
private translateLegacy3DCoordinate;
|
|
572
|
+
private geometry3D;
|
|
573
|
+
addBoxSeries(options?: any): BoxSeries3D;
|
|
574
|
+
addSurfaceGridSeries(options?: any): SurfaceGrid3D;
|
|
575
|
+
addSurfaceMeshSeries(options?: any): SurfaceMesh3D;
|
|
576
|
+
addMeshModel(options?: any): MeshModel3D;
|
|
577
|
+
solveNearest(from?: CoordinateClient, mode?: SolveNearestMode): any[];
|
|
578
|
+
protected drawCursor(ctx: CanvasRenderingContext2D): void;
|
|
579
|
+
protected renderData(_packets: DrawPacket[]): void;
|
|
580
|
+
getRenderStats(): {
|
|
581
|
+
backend: string;
|
|
582
|
+
frames?: number | undefined;
|
|
583
|
+
uploads?: number | undefined;
|
|
584
|
+
bufferUploads?: number | undefined;
|
|
585
|
+
uploadedBytes?: number | undefined;
|
|
586
|
+
drawCalls?: number | undefined;
|
|
587
|
+
vertices?: number | undefined;
|
|
588
|
+
submittedVertices?: number | undefined;
|
|
589
|
+
renderTimeMs?: number | undefined;
|
|
590
|
+
cachedBuffers?: number | undefined;
|
|
591
|
+
cacheBytes?: number | undefined;
|
|
592
|
+
contextRestores?: number | undefined;
|
|
593
|
+
heatmapBackend: string | undefined;
|
|
594
|
+
heatmapStats: {
|
|
595
|
+
frames: number;
|
|
596
|
+
uploads: number;
|
|
597
|
+
textureUploads: number;
|
|
598
|
+
paletteUploads: number;
|
|
599
|
+
uploadedBytes: number;
|
|
600
|
+
drawCalls: number;
|
|
601
|
+
cells: number;
|
|
602
|
+
renderTimeMs: number;
|
|
603
|
+
cachedTextures: number;
|
|
604
|
+
cacheBytes: number;
|
|
605
|
+
contextRestores: number;
|
|
606
|
+
} | undefined;
|
|
607
|
+
series: number;
|
|
608
|
+
samples: any;
|
|
609
|
+
width: number;
|
|
610
|
+
height: number;
|
|
611
|
+
devicePixelRatio: number;
|
|
612
|
+
submittedSamples?: number | undefined;
|
|
613
|
+
};
|
|
614
|
+
dispose(): this;
|
|
615
|
+
getDefaultAxisZ(): Axis;
|
|
616
|
+
addAxisZ(options?: any): Axis;
|
|
617
|
+
setCameraLocation(value: any): this;
|
|
618
|
+
getCameraLocation(): any;
|
|
619
|
+
setBoundingBox(value: {
|
|
620
|
+
x: number;
|
|
621
|
+
y: number;
|
|
622
|
+
z: number;
|
|
623
|
+
}): this;
|
|
624
|
+
getBoundingBox(): {
|
|
625
|
+
x: number;
|
|
626
|
+
y: number;
|
|
627
|
+
z: number;
|
|
628
|
+
};
|
|
629
|
+
private project;
|
|
630
|
+
protected drawSpecial(ctx: CanvasRenderingContext2D): void;
|
|
631
|
+
}
|
|
632
|
+
export declare class SurfaceGridSeries {
|
|
633
|
+
readonly chart: ChartXY;
|
|
634
|
+
readonly id: number;
|
|
635
|
+
readonly axisX: Axis;
|
|
636
|
+
readonly axisY: Axis;
|
|
637
|
+
readonly axisZ: Axis;
|
|
638
|
+
readonly kind = "surface";
|
|
639
|
+
columns: number;
|
|
640
|
+
rows: number;
|
|
641
|
+
values: Float32Array;
|
|
642
|
+
visible: boolean;
|
|
643
|
+
disposed: boolean;
|
|
644
|
+
start: {
|
|
645
|
+
x: number;
|
|
646
|
+
z: number;
|
|
647
|
+
};
|
|
648
|
+
step: {
|
|
649
|
+
x: number;
|
|
650
|
+
z: number;
|
|
651
|
+
};
|
|
652
|
+
fill: any;
|
|
653
|
+
name: string;
|
|
654
|
+
revision: number;
|
|
655
|
+
constructor(chart: ChartXY, options?: any);
|
|
656
|
+
invalidateHeightMap(values: any): this;
|
|
657
|
+
setStart(value: any): this;
|
|
658
|
+
setStep(value: any): this;
|
|
659
|
+
setFillStyle(value: any): this;
|
|
660
|
+
setWireframeStyle(value: any): this;
|
|
661
|
+
wireframe: any;
|
|
662
|
+
setName(value: string): this;
|
|
663
|
+
getName(): string;
|
|
664
|
+
setVisible(value: boolean): this;
|
|
665
|
+
getVisible(): boolean;
|
|
666
|
+
getSampleCount(): number;
|
|
667
|
+
bounds(dim: "x" | "y" | "z"): {
|
|
668
|
+
start: number;
|
|
669
|
+
end: number;
|
|
670
|
+
} | undefined;
|
|
671
|
+
dispose(): this;
|
|
672
|
+
isDisposed(): boolean;
|
|
673
|
+
}
|
|
674
|
+
export {};
|