@photonviz/core 0.3.2 → 0.4.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/README.md CHANGED
@@ -6,6 +6,14 @@
6
6
 
7
7
  **GPU-accelerated scientific plotting for the web — WebGL2, zero dependencies.**
8
8
 
9
+ <p>
10
+ <a href="https://www.npmjs.com/package/@photonviz/core"><img src="https://img.shields.io/npm/v/@photonviz/core?color=cb3837&logo=npm" alt="npm"/></a>
11
+ <a href="https://www.npmjs.com/package/@photonviz/core"><img src="https://img.shields.io/npm/dm/@photonviz/core?color=cb3837" alt="downloads"/></a>
12
+ <a href="https://bundlephobia.com/package/@photonviz/core"><img src="https://img.shields.io/bundlephobia/minzip/@photonviz/core?label=minzip" alt="size"/></a>
13
+ · <a href="https://coredumpdev.github.io/photon/">▶ Live demo</a>
14
+ · <a href="https://coredumpdev.github.io/photon/llms-full.txt">Docs for AI agents</a>
15
+ </p>
16
+
9
17
  <p align="center">
10
18
  <img src="https://raw.githubusercontent.com/coredumpdev/photon/master/assets/streaming.gif" alt="Live streaming WebGL2 charts at 60fps" width="100%" />
11
19
  </p>
@@ -24,8 +32,6 @@ npm i @photonviz/core
24
32
  ```
25
33
 
26
34
  > Framework bindings: [`@photonviz/react`](https://www.npmjs.com/package/@photonviz/react) · [`@photonviz/vue`](https://www.npmjs.com/package/@photonviz/vue) · [`@photonviz/svelte`](https://www.npmjs.com/package/@photonviz/svelte) · [`@photonviz/solid`](https://www.npmjs.com/package/@photonviz/solid) · [`@photonviz/gea`](https://www.npmjs.com/package/@photonviz/gea) · framework-free [`@photonviz/wc`](https://www.npmjs.com/package/@photonviz/wc) Web Components
27
- > Vector maps: [`@photonviz/map`](https://www.npmjs.com/package/@photonviz/map)
28
-
29
35
  ## Quick start
30
36
 
31
37
  ```ts
package/dist/index.d.ts CHANGED
@@ -1713,7 +1713,7 @@ declare class Plot {
1713
1713
  describe(): string;
1714
1714
  private updateAria;
1715
1715
  /**
1716
- * Register a layer built outside core (e.g. `@photonviz/map`). Use with
1716
+ * Register a layer built outside core (a custom WebGL2 `Layer`). Use with
1717
1717
  * {@link context} to construct the layer against this plot's WebGL2 context.
1718
1718
  */
1719
1719
  add<T extends Layer>(layer: T): T;
@@ -3171,6 +3171,387 @@ declare function lttb(x: ArrayLike<number>, y: ArrayLike<number>, threshold: num
3171
3171
  y: Float64Array;
3172
3172
  };
3173
3173
 
3174
+ /**
3175
+ * Pure ML classification-evaluation metrics: confusion matrix, ROC + AUC,
3176
+ * precision–recall + average precision, calibration (reliability) + ECE, plus
3177
+ * TensorBoard-style EMA smoothing for training curves. All array→struct, zero
3178
+ * deps, unit-tested. Import from `@photonviz/core`; the `addX` builders in
3179
+ * `ml/charts.ts` render these onto a {@link Plot}.
3180
+ */
3181
+ /** A confusion matrix: raw counts plus a row-normalized (recall) view. */
3182
+ interface ConfusionMatrix {
3183
+ /** Row-major counts, length `classes*classes`; row = true label, col = predicted. */
3184
+ counts: Float64Array;
3185
+ /** Row-normalized: every row sums to 1 (a row with no support stays all-zero). */
3186
+ normalized: Float64Array;
3187
+ /** Per-true-class support (row totals). */
3188
+ support: Float64Array;
3189
+ classes: number;
3190
+ }
3191
+ /**
3192
+ * Confusion matrix of integer class labels. `classes` defaults to
3193
+ * `max(label) + 1`; out-of-range labels are ignored.
3194
+ */
3195
+ declare function confusionMatrix(yTrue: ArrayLike<number>, yPred: ArrayLike<number>, classes?: number): ConfusionMatrix;
3196
+ /** A receiver-operating-characteristic curve and its area. */
3197
+ interface RocCurve {
3198
+ /** False-positive rate (x), starting at 0. */
3199
+ fpr: Float64Array;
3200
+ /** True-positive rate (y), starting at 0. */
3201
+ tpr: Float64Array;
3202
+ /** Score threshold at each vertex (`+Inf` for the origin). */
3203
+ thresholds: Float64Array;
3204
+ /** Area under the curve (`NaN` when a class is absent). */
3205
+ auc: number;
3206
+ }
3207
+ /**
3208
+ * ROC curve for binary `labels` (0/1) ranked by `scores` (higher = more positive).
3209
+ * Ties at equal scores are collapsed to a single vertex; AUC by the trapezoid rule.
3210
+ */
3211
+ declare function rocCurve(scores: ArrayLike<number>, labels: ArrayLike<number>): RocCurve;
3212
+ /** A precision–recall curve and its average precision. */
3213
+ interface PrCurve {
3214
+ /** Recall (x), starting at 0. */
3215
+ recall: Float64Array;
3216
+ /** Precision (y), starting at 1. */
3217
+ precision: Float64Array;
3218
+ /** Score threshold at each vertex (`+Inf` for the leading point). */
3219
+ thresholds: Float64Array;
3220
+ /** Average precision — Σ (Rₙ − Rₙ₋₁)·Pₙ (`NaN` with no positives). */
3221
+ ap: number;
3222
+ /** Positive base rate (a no-skill classifier's precision). */
3223
+ baseline: number;
3224
+ }
3225
+ /** Precision–recall curve for binary `labels` (0/1) ranked by `scores`. */
3226
+ declare function prCurve(scores: ArrayLike<number>, labels: ArrayLike<number>): PrCurve;
3227
+ /** A reliability diagram: predicted confidence vs. observed frequency, per bin. */
3228
+ interface CalibrationCurve {
3229
+ /** Mean predicted probability in each bin (`NaN` if empty). */
3230
+ meanPredicted: Float64Array;
3231
+ /** Observed positive fraction in each bin (`NaN` if empty). */
3232
+ fractionPositive: Float64Array;
3233
+ /** Sample count per bin. */
3234
+ binCount: Float64Array;
3235
+ /** Expected Calibration Error — Σ (nᵦ/N)·|accᵦ − confᵦ|. */
3236
+ ece: number;
3237
+ }
3238
+ /**
3239
+ * Reliability diagram of predicted probabilities `scores` (in [0,1]) against
3240
+ * binary `labels`, using `bins` equal-width confidence buckets. Empty bins are
3241
+ * `NaN` (skip them when plotting).
3242
+ */
3243
+ declare function calibrationCurve(scores: ArrayLike<number>, labels: ArrayLike<number>, bins?: number): CalibrationCurve;
3244
+ /**
3245
+ * TensorBoard-style debiased EMA smoothing of a noisy training curve. `weight`
3246
+ * in [0,1) is the momentum (0 = raw, →1 = very smooth). Non-finite inputs pass
3247
+ * through untouched and don't advance the average.
3248
+ */
3249
+ declare function emaSmooth(values: ArrayLike<number>, weight?: number): Float64Array;
3250
+
3251
+ /**
3252
+ * Pure, dependency-free dimensionality reduction for embedding projections.
3253
+ * {@link pca} projects an `n×d` matrix onto its top-`k` principal components via
3254
+ * covariance power-iteration with deflation — deterministic (no RNG), so tests
3255
+ * and re-renders are stable. Pair with {@link addEmbedding}. For t-SNE/UMAP,
3256
+ * feed precomputed 2-D coordinates straight into the builder.
3257
+ */
3258
+ /** The result of {@link pca}: projected scores + the components they project onto. */
3259
+ interface PcaResult {
3260
+ /** Projected coordinates, row-major `n×k`. */
3261
+ scores: Float64Array;
3262
+ /** Principal-component directions, row-major `k×d` (unit vectors). */
3263
+ components: Float64Array;
3264
+ /** Explained-variance ratio per component, length `k`. */
3265
+ explained: Float64Array;
3266
+ /** Per-column mean subtracted before projection, length `d`. */
3267
+ mean: Float64Array;
3268
+ n: number;
3269
+ d: number;
3270
+ k: number;
3271
+ }
3272
+ /** Z-score each of the `d` columns of a row-major `n×d` matrix (unit variance). */
3273
+ declare function standardize(data: ArrayLike<number>, n: number, d: number): Float64Array;
3274
+ /**
3275
+ * Principal component analysis of a row-major `n×d` matrix, projected to `k`
3276
+ * dims (default 2). Centers columns, forms the `d×d` covariance, then extracts
3277
+ * the top-`k` eigenvectors by power iteration + deflation. Deterministic.
3278
+ */
3279
+ declare function pca(data: ArrayLike<number>, n: number, d: number, k?: number): PcaResult;
3280
+
3281
+ /**
3282
+ * Convenience builders for ML / deep-learning charts. Each takes a {@link Plot}
3283
+ * and composes existing layers (`addHeatmap`/`addLine`/`addScatter`/`addBar`/
3284
+ * `addArea`) from the pure metrics in `ml/metrics.ts` and reducers in
3285
+ * `ml/reduce.ts` — the same free-function style as the finance builders. No new
3286
+ * WebGL layers. Import from `@photonviz/core`.
3287
+ */
3288
+
3289
+ /** tab10 categorical palette, cycled by class index. */
3290
+ declare const ML_PALETTE: readonly string[];
3291
+ interface ConfusionMatrixOptions {
3292
+ yTrue: ArrayLike<number>;
3293
+ yPred: ArrayLike<number>;
3294
+ /** Number of classes; inferred from the labels when omitted. */
3295
+ classes?: number;
3296
+ colormap?: ColormapName;
3297
+ /** Shade by row-normalized recall instead of raw counts. Default false. */
3298
+ normalize?: boolean;
3299
+ /** Draw the value inside each cell. Default true. */
3300
+ annotate?: boolean;
3301
+ }
3302
+ interface ConfusionMatrixHandle {
3303
+ heatmap: HeatmapLayer;
3304
+ classes: number;
3305
+ }
3306
+ /**
3307
+ * Confusion matrix as a heatmap with the true class 0 at the **top** (sklearn
3308
+ * orientation) and per-cell value labels. Give the {@link Plot} `[0,classes]`
3309
+ * axes; set categorical ticks for class names.
3310
+ */
3311
+ declare function addConfusionMatrix(plot: Plot, opts: ConfusionMatrixOptions): ConfusionMatrixHandle;
3312
+ interface RocCurveOptions {
3313
+ scores: ArrayLike<number>;
3314
+ labels: ArrayLike<number>;
3315
+ color?: string;
3316
+ /** Shade the area under the curve. Default false. */
3317
+ fill?: boolean;
3318
+ /** Draw the y=x chance diagonal. Default true. */
3319
+ showChance?: boolean;
3320
+ name?: string;
3321
+ }
3322
+ interface RocCurveHandle {
3323
+ line: LineLayer;
3324
+ area?: AreaLayer;
3325
+ auc: number;
3326
+ }
3327
+ /** ROC curve (FPR→TPR) with the chance diagonal and AUC in the series name. */
3328
+ declare function addRocCurve(plot: Plot, opts: RocCurveOptions): RocCurveHandle;
3329
+ interface PrCurveOptions {
3330
+ scores: ArrayLike<number>;
3331
+ labels: ArrayLike<number>;
3332
+ color?: string;
3333
+ fill?: boolean;
3334
+ /** Draw the no-skill baseline at the positive base rate. Default true. */
3335
+ showBaseline?: boolean;
3336
+ name?: string;
3337
+ }
3338
+ interface PrCurveHandle {
3339
+ line: LineLayer;
3340
+ area?: AreaLayer;
3341
+ ap: number;
3342
+ }
3343
+ /** Precision–recall curve with the no-skill baseline and AP in the series name. */
3344
+ declare function addPrCurve(plot: Plot, opts: PrCurveOptions): PrCurveHandle;
3345
+ interface CalibrationOptions {
3346
+ scores: ArrayLike<number>;
3347
+ labels: ArrayLike<number>;
3348
+ bins?: number;
3349
+ color?: string;
3350
+ name?: string;
3351
+ }
3352
+ interface CalibrationHandle {
3353
+ line: LineLayer;
3354
+ points: ScatterLayer;
3355
+ ece: number;
3356
+ }
3357
+ /** Reliability diagram: mean predicted probability vs. observed frequency + the perfect diagonal. */
3358
+ declare function addCalibration(plot: Plot, opts: CalibrationOptions): CalibrationHandle;
3359
+ interface EmbeddingOptions {
3360
+ /** 2-D coordinates (t-SNE/UMAP/PCA output). */
3361
+ x: ArrayLike<number>;
3362
+ y: ArrayLike<number>;
3363
+ /** Categorical class per point → one colored, legend-named series each. */
3364
+ labels?: ArrayLike<number> | string[];
3365
+ /** Names indexed by numeric label. */
3366
+ classNames?: string[];
3367
+ /** Continuous value per point → a single colormap series (ignored if `labels`). */
3368
+ colorBy?: ArrayLike<number>;
3369
+ colormap?: ColormapName;
3370
+ palette?: readonly string[];
3371
+ size?: number;
3372
+ /** Per-point hover text (metadata). */
3373
+ text?: ArrayLike<string>;
3374
+ name?: string;
3375
+ renderType?: RenderType;
3376
+ }
3377
+ interface EmbeddingHandle {
3378
+ layers: ScatterLayer[];
3379
+ }
3380
+ /**
3381
+ * Embedding scatter — one colored series per class when `labels` are given (a
3382
+ * legend-ready projector), a single colormap series for a continuous `colorBy`,
3383
+ * or a plain scatter otherwise. Use `pick: "xy"` on the {@link Plot} for hover.
3384
+ */
3385
+ declare function addEmbedding(plot: Plot, opts: EmbeddingOptions): EmbeddingHandle;
3386
+ interface DecisionBoundaryOptions {
3387
+ /** Row-major grid of predicted class / probability, row 0 at the bottom. */
3388
+ values: ArrayLike<number>;
3389
+ cols: number;
3390
+ rows: number;
3391
+ extent: {
3392
+ x: Range;
3393
+ y: Range;
3394
+ };
3395
+ colormap?: ColormapName;
3396
+ domain?: Range;
3397
+ /** Training points drawn over the field. */
3398
+ points?: {
3399
+ x: ArrayLike<number>;
3400
+ y: ArrayLike<number>;
3401
+ labels?: ArrayLike<number> | string[];
3402
+ classNames?: string[];
3403
+ palette?: readonly string[];
3404
+ size?: number;
3405
+ };
3406
+ }
3407
+ interface DecisionBoundaryHandle {
3408
+ heatmap: HeatmapLayer;
3409
+ points: ScatterLayer[];
3410
+ }
3411
+ /** A decision-boundary field (heatmap) with the training points scattered on top. */
3412
+ declare function addDecisionBoundary(plot: Plot, opts: DecisionBoundaryOptions): DecisionBoundaryHandle;
3413
+ interface FeatureImportanceOptions {
3414
+ names: string[];
3415
+ values: ArrayLike<number>;
3416
+ color?: string;
3417
+ /** Sort by descending magnitude. Default true. */
3418
+ sort?: boolean;
3419
+ /** Keep only the top-N features. */
3420
+ top?: number;
3421
+ /** Label each bar with its feature name (inside the plot). Default true. */
3422
+ annotate?: boolean;
3423
+ name?: string;
3424
+ renderType?: RenderType;
3425
+ }
3426
+ interface FeatureImportanceHandle {
3427
+ bars: BarLayer;
3428
+ order: number[];
3429
+ }
3430
+ /** Feature importance as sorted horizontal bars (most important on top). */
3431
+ declare function addFeatureImportance(plot: Plot, opts: FeatureImportanceOptions): FeatureImportanceHandle;
3432
+ interface ShapBeeswarmOptions {
3433
+ /** SHAP values per feature: `values[f]` is the row across all samples. */
3434
+ values: number[][];
3435
+ names: string[];
3436
+ /** Feature values (same shape) → point color via a diverging colormap. */
3437
+ featureValues?: number[][];
3438
+ colormap?: ColormapName;
3439
+ size?: number;
3440
+ /** Vertical spread of each feature band, 0..1. Default 0.8. */
3441
+ spread?: number;
3442
+ name?: string;
3443
+ }
3444
+ interface ShapBeeswarmHandle {
3445
+ scatter: ScatterLayer;
3446
+ order: number[];
3447
+ }
3448
+ /**
3449
+ * SHAP beeswarm — features stacked by mean |SHAP| (most important on top), each
3450
+ * a horizontal swarm of per-sample points jittered by density and colored by the
3451
+ * feature's value (low→high). A single scatter for one shared colorbar.
3452
+ */
3453
+ declare function addShapBeeswarm(plot: Plot, opts: ShapBeeswarmOptions): ShapBeeswarmHandle;
3454
+ interface PartialDependenceOptions {
3455
+ x: ArrayLike<number>;
3456
+ /** Mean prediction over the grid. */
3457
+ pd: ArrayLike<number>;
3458
+ /** Optional per-instance ICE curves, each parallel to `x`. */
3459
+ ice?: number[][];
3460
+ color?: string;
3461
+ iceColor?: string;
3462
+ width?: number;
3463
+ name?: string;
3464
+ renderType?: RenderType;
3465
+ }
3466
+ interface PartialDependenceHandle {
3467
+ pd: LineLayer;
3468
+ ice: LineLayer[];
3469
+ }
3470
+ /** Partial-dependence line with faint ICE curves behind it. */
3471
+ declare function addPartialDependence(plot: Plot, opts: PartialDependenceOptions): PartialDependenceHandle;
3472
+ interface AttentionMapOptions {
3473
+ /** Attention weights, query×key: a flat row-major array or a 2-D array. */
3474
+ weights: ArrayLike<number> | number[][];
3475
+ /** Required with a flat `weights`. */
3476
+ queries?: number;
3477
+ keys?: number;
3478
+ colormap?: ColormapName;
3479
+ /** Draw each weight in its cell (small maps only). Default false. */
3480
+ annotate?: boolean;
3481
+ }
3482
+ interface AttentionMapHandle {
3483
+ heatmap: HeatmapLayer;
3484
+ queries: number;
3485
+ keys: number;
3486
+ }
3487
+ /** Transformer attention as a heatmap with query 0 at the top, key 0 at the left. */
3488
+ declare function addAttentionMap(plot: Plot, opts: AttentionMapOptions): AttentionMapHandle;
3489
+ interface TrainingSeries {
3490
+ name?: string;
3491
+ x?: ArrayLike<number>;
3492
+ y: ArrayLike<number>;
3493
+ color?: string;
3494
+ }
3495
+ interface TrainingCurvesOptions {
3496
+ series: TrainingSeries[];
3497
+ /** EMA smoothing weight 0..1 (0 = raw). Default 0.6. */
3498
+ smoothing?: number;
3499
+ /** Draw the faint raw curve behind the smoothed one. Default true. */
3500
+ showRaw?: boolean;
3501
+ /** Mark the best epoch of each series. */
3502
+ best?: "min" | "max";
3503
+ width?: number;
3504
+ palette?: readonly string[];
3505
+ renderType?: RenderType;
3506
+ }
3507
+ interface TrainingCurvesHandle {
3508
+ raw: LineLayer[];
3509
+ smoothed: LineLayer[];
3510
+ }
3511
+ /**
3512
+ * Training curves with TensorBoard-style EMA smoothing — a faint raw line under
3513
+ * a bold smoothed one per series, each streamable via `setData`. Optionally
3514
+ * marks the best epoch. Pair with `renderType: "dynamic"` for live updates.
3515
+ */
3516
+ declare function addTrainingCurves(plot: Plot, opts: TrainingCurvesOptions): TrainingCurvesHandle;
3517
+ interface RidgeGroup {
3518
+ label?: string;
3519
+ values: ArrayLike<number>;
3520
+ }
3521
+ interface RidgelineOptions {
3522
+ /** One distribution per group (e.g. a layer's weights per epoch). */
3523
+ groups: RidgeGroup[];
3524
+ /** KDE sample count. Default 96. */
3525
+ points?: number;
3526
+ /** Ridge overlap, 0 = touching, 1 = one full row of overlap. Default 1. */
3527
+ overlap?: number;
3528
+ palette?: readonly string[];
3529
+ /** Fill each ridge. Default true. */
3530
+ fill?: boolean;
3531
+ /** Shared x-range; inferred from the data when omitted. */
3532
+ range?: Range;
3533
+ }
3534
+ interface RidgelineHandle {
3535
+ areas: AreaLayer[];
3536
+ lines: LineLayer[];
3537
+ }
3538
+ /**
3539
+ * Ridgeline / joyplot — one KDE per group, vertically offset (TensorBoard's
3540
+ * "distributions over time"). Ridge `i` is baselined at `y=i`; `overlap` lets
3541
+ * neighbours interleave. Feed per-epoch weight/activation samples.
3542
+ */
3543
+ declare function addRidgeline(plot: Plot, opts: RidgelineOptions): RidgelineHandle;
3544
+ interface BeeswarmOptions {
3545
+ bins?: number;
3546
+ spread?: number;
3547
+ }
3548
+ /**
3549
+ * Deterministic 1-D beeswarm: given point x-positions, return a symmetric
3550
+ * vertical offset per point (in ±spread/2) so overlapping points fan out by
3551
+ * local density. Pure — no RNG. Backs {@link addShapBeeswarm}.
3552
+ */
3553
+ declare function beeswarmLayout(x: ArrayLike<number>, opts?: BeeswarmOptions): number[];
3554
+
3174
3555
  /**
3175
3556
  * Squarified treemap — a pure layout plus a {@link Plot} builder that composes
3176
3557
  * the existing {@link PatchesLayer} (one rect patch per item) and a centered
@@ -3628,4 +4009,4 @@ declare function parseColor(input: string): [number, number, number, number];
3628
4009
  /** Normalized RGBA (0..1) back to a CSS `rgba(...)` string. */
3629
4010
  declare function toColorCss(c: readonly [number, number, number, number]): string;
3630
4011
 
3631
- export { type Adx, type Annotation, AreaLayer, type AreaOptions, type AreaSeries, Axis, type AxisConfig, type AxisFrame, type AxisScaleOptions, Bar3DLayer, type Bar3DOptions, BarLayer, type BarOptions, type BarSeries, type BollingerBands, type BollingerHandle, type BollingerOptions, type Bounds, type Bounds3, type BoxGroup, BoxLayer, type BoxOptions, type BoxStats, type Brick, CHORD_PALETTE, type CSVOptions, type Candle, type CandlestickData, CandlestickLayer, type CandlestickOptions, CategoricalScale, type Channel, type ChordGroupArc, type ChordLayoutOptions, type ChordLayoutResult, type ChordOptions, type ChordRibbon, type Color, type ColorInfo, type ColormapName, Contour3DLayer, type Contour3DOptions, ContourLayer, type ContourOptions, type Density, type DepthCurves, type DepthHandle, type DepthOptions, type Dim, type DrawState, type DrawTool, ErrorBarLayer, type ErrorBarOptions, type ExportOptions, FUNNEL_PALETTE, type FibLevel, type ForceLayoutOptions, type FunnelItem, type FunnelLayoutOptions, type FunnelOptions, type FunnelStage, type GaugeLayoutOptions, type GaugeOptions, type GaugeThreshold, type GraphInput, GraphLayer, type GraphOptions, type GroupedBarOptions, HeatmapLayer, type HeatmapOptions, type HeikinAshiOptions, HexbinLayer, type HexbinOptions, type Histogram, type HoverReadoutRow, type Ichimoku, ImageLayer, type ImageOptions, type ImageSource, type InteractionMode, IsosurfaceLayer, type IsosurfaceOptions, type Layer, type Layer3D, type Layout, type LegendOptions, Line3DLayer, type Line3DOptions, LineLayer, type LineOptions, LinearScale, LogScale, type Macd, type MarkerShape, type Ohlc, type OhlcArrays, type OhlcInput, OhlcLayer, type OhlcOptions, OrdinalTimeScale, PARALLEL_PALETTE, type ParallelAxis, type ParallelHandle, type ParallelLayoutResult, type ParallelLine, type ParallelOptions, type Patch, PatchesLayer, type PatchesOptions, type PfColumn, type PickMode, PieLayer, type PieOptions, Plot, Plot3D, type Plot3DOptions, type PlotOptions, type PlotTitleOptions, PointCloudLayer, type PointCloudOptions, type PolarLineOptions, type PolarOptions, PolarPlot, type PolarScatterOptions, type PolarSeries, Quiver3DLayer, type Quiver3DOptions, QuiverLayer, type QuiverOptions, type RGB, type Range, type RenderType, type RenkoOptions, type ResolvedAxisStyle, type Ring, type SankeyLayoutOptions, type SankeyLayoutResult, type SankeyLink, type SankeyNode, type SankeyNodeRect, type SankeyOptions, type SankeyRibbon, type Scale, type ScaleType, ScatterLayer, type ScatterOptions, type Spectrogram, type StackedAreaOptions, type StackedBarOptions, StemLayer, type StemOptions, type Stochastic, type SunburstArc, type SunburstLayoutOptions, type SunburstNode, type SunburstOptions, type SuperTrend, SurfaceLayer, type SurfaceOptions, TRANSFORM_GLSL, TRANSFORM_UNIFORMS, TREEMAP_PALETTE, type Table, type Theme, type Tick, type TicksSpec, TimeScale, type ToolbarHost, type ToolbarTheme, type TreemapCell, type TreemapExtent, type TreemapItem, type TreemapOptions, VolumeLayer, type VolumeOptions, type VolumeProfile, type VolumeProfileOptions, type YAxisOptions, addBollinger, addChord, addDepth, addFunnel, addGauge, addHeikinAshi, addParallelCoordinates, addRenko, addSankey, addSunburst, addTreemap, addVolumeProfile, adx, atr, autoTicks, bollinger, boxStats, bufferUsage, canvasToBlob, chordLayout, colormap, colormapLUT, copyCanvasToClipboard, createProgram, createToolbar, darkTheme, defaultFormat, depth, downloadCanvas, earcut, ema, fft, fibRetracements, firstFinite, forceLayout, funnelLayout, gaugeLayout, heikinAshi, histogram, ichimoku, kde, keltner, lightTheme, lineBreak, linkX, lttb, macd, makeScale, marchingCubes, obv, parallelLayout, parseCSV, parseColor, pointAndFigure, quantileSorted, renko, resolveAxisStyle, resolveTicks, rollingStd, rsi, sankeyLayout, setTransformUniforms, sma, spectrogram, stochastic, sunburstLayout, superTrend, toColorCss, treemapLayout, trueRange, uniformLocations, volumeProfile, vwap, withMinorTicks, wma };
4012
+ export { type Adx, type Annotation, AreaLayer, type AreaOptions, type AreaSeries, type AttentionMapHandle, type AttentionMapOptions, Axis, type AxisConfig, type AxisFrame, type AxisScaleOptions, Bar3DLayer, type Bar3DOptions, BarLayer, type BarOptions, type BarSeries, type BeeswarmOptions, type BollingerBands, type BollingerHandle, type BollingerOptions, type Bounds, type Bounds3, type BoxGroup, BoxLayer, type BoxOptions, type BoxStats, type Brick, CHORD_PALETTE, type CSVOptions, type CalibrationCurve, type CalibrationHandle, type CalibrationOptions, type Candle, type CandlestickData, CandlestickLayer, type CandlestickOptions, CategoricalScale, type Channel, type ChordGroupArc, type ChordLayoutOptions, type ChordLayoutResult, type ChordOptions, type ChordRibbon, type Color, type ColorInfo, type ColormapName, type ConfusionMatrix, type ConfusionMatrixHandle, type ConfusionMatrixOptions, Contour3DLayer, type Contour3DOptions, ContourLayer, type ContourOptions, type DecisionBoundaryHandle, type DecisionBoundaryOptions, type Density, type DepthCurves, type DepthHandle, type DepthOptions, type Dim, type DrawState, type DrawTool, type EmbeddingHandle, type EmbeddingOptions, ErrorBarLayer, type ErrorBarOptions, type ExportOptions, FUNNEL_PALETTE, type FeatureImportanceHandle, type FeatureImportanceOptions, type FibLevel, type ForceLayoutOptions, type FunnelItem, type FunnelLayoutOptions, type FunnelOptions, type FunnelStage, type GaugeLayoutOptions, type GaugeOptions, type GaugeThreshold, type GraphInput, GraphLayer, type GraphOptions, type GroupedBarOptions, HeatmapLayer, type HeatmapOptions, type HeikinAshiOptions, HexbinLayer, type HexbinOptions, type Histogram, type HoverReadoutRow, type Ichimoku, ImageLayer, type ImageOptions, type ImageSource, type InteractionMode, IsosurfaceLayer, type IsosurfaceOptions, type Layer, type Layer3D, type Layout, type LegendOptions, Line3DLayer, type Line3DOptions, LineLayer, type LineOptions, LinearScale, LogScale, ML_PALETTE, type Macd, type MarkerShape, type Ohlc, type OhlcArrays, type OhlcInput, OhlcLayer, type OhlcOptions, OrdinalTimeScale, PARALLEL_PALETTE, type ParallelAxis, type ParallelHandle, type ParallelLayoutResult, type ParallelLine, type ParallelOptions, type PartialDependenceHandle, type PartialDependenceOptions, type Patch, PatchesLayer, type PatchesOptions, type PcaResult, type PfColumn, type PickMode, PieLayer, type PieOptions, Plot, Plot3D, type Plot3DOptions, type PlotOptions, type PlotTitleOptions, PointCloudLayer, type PointCloudOptions, type PolarLineOptions, type PolarOptions, PolarPlot, type PolarScatterOptions, type PolarSeries, type PrCurve, type PrCurveHandle, type PrCurveOptions, Quiver3DLayer, type Quiver3DOptions, QuiverLayer, type QuiverOptions, type RGB, type Range, type RenderType, type RenkoOptions, type ResolvedAxisStyle, type RidgeGroup, type RidgelineHandle, type RidgelineOptions, type Ring, type RocCurve, type RocCurveHandle, type RocCurveOptions, type SankeyLayoutOptions, type SankeyLayoutResult, type SankeyLink, type SankeyNode, type SankeyNodeRect, type SankeyOptions, type SankeyRibbon, type Scale, type ScaleType, ScatterLayer, type ScatterOptions, type ShapBeeswarmHandle, type ShapBeeswarmOptions, type Spectrogram, type StackedAreaOptions, type StackedBarOptions, StemLayer, type StemOptions, type Stochastic, type SunburstArc, type SunburstLayoutOptions, type SunburstNode, type SunburstOptions, type SuperTrend, SurfaceLayer, type SurfaceOptions, TRANSFORM_GLSL, TRANSFORM_UNIFORMS, TREEMAP_PALETTE, type Table, type Theme, type Tick, type TicksSpec, TimeScale, type ToolbarHost, type ToolbarTheme, type TrainingCurvesHandle, type TrainingCurvesOptions, type TrainingSeries, type TreemapCell, type TreemapExtent, type TreemapItem, type TreemapOptions, VolumeLayer, type VolumeOptions, type VolumeProfile, type VolumeProfileOptions, type YAxisOptions, addAttentionMap, addBollinger, addCalibration, addChord, addConfusionMatrix, addDecisionBoundary, addDepth, addEmbedding, addFeatureImportance, addFunnel, addGauge, addHeikinAshi, addParallelCoordinates, addPartialDependence, addPrCurve, addRenko, addRidgeline, addRocCurve, addSankey, addShapBeeswarm, addSunburst, addTrainingCurves, addTreemap, addVolumeProfile, adx, atr, autoTicks, beeswarmLayout, bollinger, boxStats, bufferUsage, calibrationCurve, canvasToBlob, chordLayout, colormap, colormapLUT, confusionMatrix, copyCanvasToClipboard, createProgram, createToolbar, darkTheme, defaultFormat, depth, downloadCanvas, earcut, ema, emaSmooth, fft, fibRetracements, firstFinite, forceLayout, funnelLayout, gaugeLayout, heikinAshi, histogram, ichimoku, kde, keltner, lightTheme, lineBreak, linkX, lttb, macd, makeScale, marchingCubes, obv, parallelLayout, parseCSV, parseColor, pca, pointAndFigure, prCurve, quantileSorted, renko, resolveAxisStyle, resolveTicks, rocCurve, rollingStd, rsi, sankeyLayout, setTransformUniforms, sma, spectrogram, standardize, stochastic, sunburstLayout, superTrend, toColorCss, treemapLayout, trueRange, uniformLocations, volumeProfile, vwap, withMinorTicks, wma };