graphein 0.12.0 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -549,6 +549,18 @@ interface PivotResult {
549
549
  }
550
550
  type GroupedMap<T> = Map<string, GroupedMap<T> | T[]>;
551
551
  declare function aggregateValues(values: unknown[], op: AggOp): number | null;
552
+ /**
553
+ * Resolve a value reference — either a literal number or a field aggregated over
554
+ * `data` — to a single number (or null). Shared by the single-value visuals
555
+ * (`kpi`, `gauge`) and by the runtime's update value-tween, which needs
556
+ * the previously-displayed value to interpolate from. The parameter is typed
557
+ * structurally (rather than importing `ValueRef`) to avoid a module cycle with
558
+ * `spec/types`, which already imports `AggOp` from here.
559
+ */
560
+ declare function resolveValueRef(ref: number | {
561
+ field: string;
562
+ aggregate?: AggOp;
563
+ } | undefined, data: readonly Datum[]): number | null;
552
564
  declare function groupBy<T extends Record<string, unknown>>(rows: T[], keyFields: string[]): GroupedMap<T>;
553
565
  declare function pivot(data: Datum[], options: PivotOptions): PivotResult;
554
566
 
@@ -1550,18 +1562,64 @@ type ValueRef = number | {
1550
1562
  field: string;
1551
1563
  aggregate?: AggOp;
1552
1564
  };
1565
+ /**
1566
+ * A named comparison row on a {@link KpiSpec} (e.g. vs. budget, prior year,
1567
+ * month-over-month). The sign of `delta` drives the ▲/▼ indicator and its
1568
+ * positive/negative color; an optional `amount` shows the absolute change after
1569
+ * the percentage (`BU ▼ -2% : -268`).
1570
+ */
1571
+ interface KpiComparison {
1572
+ /** Short caption shown before the indicator (e.g. 'BU', 'PY', 'MoM'). */
1573
+ label: string;
1574
+ /** The change — its sign drives the ▲/▼ indicator and green/red color. */
1575
+ delta: ValueRef;
1576
+ /** Absolute amount shown after the percentage (e.g. `: -268`). */
1577
+ amount?: ValueRef;
1578
+ /** Format for `delta` (default: signed percent, e.g. `-0.02` → `-2%`). */
1579
+ format?: string;
1580
+ /** Format for `amount` (default: the KPI's `format`, else a plain integer). */
1581
+ amountFormat?: string;
1582
+ /** Flip the color semantics so a *decrease* reads as good (green ▼). */
1583
+ invert?: boolean;
1584
+ }
1585
+ /**
1586
+ * KPI — the value tile, and the *only* single-number visual. At its simplest it
1587
+ * is one big number with an optional caption (a "card"); add a `delta`, a
1588
+ * `sparkline`, and/or `comparisons` and it grows into a full scorecard. It
1589
+ * supports horizontal `align`, a `label` placed `above`/`below`, a `unit`
1590
+ * suffix, and a value `color`.
1591
+ */
1553
1592
  interface KpiSpec extends BaseSpec {
1554
1593
  type: 'kpi';
1555
1594
  /** Literal value or a field (optionally aggregated over data). */
1556
1595
  value: ValueRef;
1596
+ /** Caption shown with the value. */
1557
1597
  label?: string;
1558
- /** Delta vs. a comparison, drives the up/down indicator. */
1559
- delta?: ValueRef;
1598
+ /** d3-format string for the value (e.g. ',.0f', '$,.2f', '.1%'). */
1560
1599
  format?: string;
1561
- /** Inline sparkline from a numeric field. */
1600
+ /** Primary delta vs. a comparison — drives an ▲/▼ indicator under the value. */
1601
+ delta?: ValueRef;
1602
+ /**
1603
+ * Inline trend from a numeric field. `true` uses the value's field; an object
1604
+ * names the `field` and can toggle the min/max/last `markers` (default true).
1605
+ */
1562
1606
  sparkline?: boolean | {
1563
- field: string;
1607
+ field?: string;
1608
+ markers?: boolean;
1564
1609
  };
1610
+ /** Named comparison rows (vs. budget, prior year, MoM …) beneath the value. */
1611
+ comparisons?: KpiComparison[];
1612
+ /** Horizontal alignment of the value + label block. Default 'center'. */
1613
+ align?: 'start' | 'center' | 'end';
1614
+ /**
1615
+ * Where the label sits relative to the value. Defaults to 'above' when the KPI
1616
+ * has a delta/sparkline/comparisons, otherwise 'below' (the plain-card look).
1617
+ */
1618
+ labelPosition?: 'above' | 'below';
1619
+ /** Optional unit/suffix drawn after the value (e.g. '%', 'ms', 'MB'). */
1620
+ unit?: string;
1621
+ /** Value color override (defaults to the theme text color). */
1622
+ color?: string;
1565
1623
  }
1566
1624
  /**
1567
1625
  * Treemap — part-to-whole as nested rectangles sized by a measure. Pass tidy
@@ -1588,9 +1646,14 @@ interface TreemapSpec extends BaseSpec {
1588
1646
  labels?: boolean;
1589
1647
  }
1590
1648
  /**
1591
- * Gauge — a radial dial showing a single value against a `[min, max]` scale,
1592
- * with an optional `target` needle and qualitative background `bands`. The
1593
- * value is a literal or a field (optionally aggregated, like {@link KpiSpec}).
1649
+ * Gauge — a clean semicircular radial-progress dial showing one value against a
1650
+ * `[min, max]` scale. The full track is the scale ("Target"); an accent arc
1651
+ * fills from the start to `value` ("Actual"); an optional `compare` value (e.g.
1652
+ * a prior period) draws as a thinner concentric inner arc. A big value readout
1653
+ * sits in the middle with `label` beneath it, and an optional `legend` names the
1654
+ * arcs. `value`/`target`/`compare` are literals or fields (optionally
1655
+ * aggregated, like {@link KpiSpec}). Qualitative `bands` recolor the fill by the
1656
+ * zone the value lands in, and `target` draws a subtle threshold tick.
1594
1657
  */
1595
1658
  interface GaugeSpec extends BaseSpec {
1596
1659
  type: 'gauge';
@@ -1600,17 +1663,33 @@ interface GaugeSpec extends BaseSpec {
1600
1663
  min?: number;
1601
1664
  /** Scale end — the gauge's full-scale (required). */
1602
1665
  max: number;
1603
- /** Optional target/threshold marker drawn as a needle/tick. */
1666
+ /** Optional target/threshold marker drawn as a subtle tick across the arc. */
1604
1667
  target?: ValueRef;
1668
+ /**
1669
+ * Optional comparison value (e.g. a prior period) drawn as a thinner
1670
+ * concentric arc just inside the main track.
1671
+ */
1672
+ compare?: ValueRef;
1605
1673
  /** Caption under the value (defaults to the spec title or value field). */
1606
1674
  label?: string;
1607
- /** Number format for the value + scale ticks (e.g. ',.0f', '.0%'). */
1675
+ /** Number format for the value readout (e.g. ',.0f', '.0%'). */
1608
1676
  format?: string;
1609
- /** Qualitative arc bands, each filling the scale up to `to`. */
1677
+ /** Qualitative arc bands — recolor the fill by the zone the value lands in. */
1610
1678
  bands?: {
1611
1679
  to: number;
1612
1680
  color?: string;
1613
1681
  }[];
1682
+ /**
1683
+ * Show a legend naming the value / comparison / track arcs (top-right).
1684
+ * Defaults to shown when `compare` is set; otherwise hidden.
1685
+ */
1686
+ legend?: boolean;
1687
+ /** Legend label for the value (fill) arc. Default 'Actual'. */
1688
+ valueLabel?: string;
1689
+ /** Legend label for the comparison arc. Default 'Prior period'. */
1690
+ compareLabel?: string;
1691
+ /** Legend label for the full-scale track. Default 'Target'. */
1692
+ trackLabel?: string;
1614
1693
  }
1615
1694
  /**
1616
1695
  * Bullet graph — a compact linear KPI-vs-target: a measure bar over qualitative
@@ -2569,6 +2648,15 @@ interface DashboardView {
2569
2648
  padding?: 'none' | 'standard';
2570
2649
  /** Per-view responsive span overrides; smallest matching maxWidth wins. */
2571
2650
  responsive?: DashboardResponsiveSpan[];
2651
+ /**
2652
+ * This view's role in `interactions: 'auto'` cross-interaction. Default:
2653
+ * full participation (it both drives and reacts).
2654
+ * - 'none': inert — never filters/highlights others and never reacts.
2655
+ * - 'source': can drive filters/highlights but is never filtered or dimmed.
2656
+ * - 'target': reacts to others but never drives (e.g. a read-only detail chart).
2657
+ * Ignored when `interactions` is `'none'` or an explicit {@link InteractionLink} array.
2658
+ */
2659
+ interact?: 'auto' | 'none' | 'source' | 'target';
2572
2660
  }
2573
2661
  /** Explicit cross-interaction from one view to others (overrides auto-wiring). */
2574
2662
  interface InteractionLink {
@@ -2962,6 +3050,14 @@ interface Frame {
2962
3050
  xLabelAngle: number;
2963
3051
  }
2964
3052
  declare const TICK_SIZE = 6;
3053
+ /**
3054
+ * The default outer padding for a visual: none. Charts reach the container edges
3055
+ * so the consuming application owns all outer spacing. Functional space (axis
3056
+ * gutters, title band, legend strips, mark-extent insets) is reserved on top of
3057
+ * this by {@link computeFrame} and the renderers, so nothing clips. Callers merge
3058
+ * `spec.padding` over it (`{ ...NO_PADDING, ...spec.padding }`) to allow overrides.
3059
+ */
3060
+ declare const NO_PADDING: Insets;
2965
3061
  /** Reserve space for every region and return the plot rect + positioned chrome. */
2966
3062
  declare function computeFrame(input: FrameInput): Frame;
2967
3063
 
@@ -3134,6 +3230,12 @@ interface CartesianModel {
3134
3230
  * `highlight` param + the shared store; `buildCartesianModel` leaves it null.
3135
3231
  */
3136
3232
  emphasis?: Emphasis | null;
3233
+ /**
3234
+ * Entrance animation progress (0..1) for mark-aware entrances. Only `bar`
3235
+ * consumes it — bars grow from the value baseline. Absent or 1 means fully
3236
+ * drawn (the static, pixel-identical state).
3237
+ */
3238
+ entranceProgress?: number;
3137
3239
  /** Interactive legend swatch hit targets; only present when legend.interactive is true. */
3138
3240
  legendHits?: LegendHitRegion[];
3139
3241
  /** Draw-side mark counts for render diagnostics; semantic markCount stays data-based. */
@@ -3296,6 +3398,40 @@ interface RenderContext {
3296
3398
  framed?: boolean;
3297
3399
  /** Ask the runtime to redraw the marks layer (used by DOM slicers). */
3298
3400
  requestRedraw?: () => void;
3401
+ /**
3402
+ * Entrance progress (0..1) for the number roll-up on value charts (`kpi`).
3403
+ * When set below 1 the renderer displays an interpolated value instead of the
3404
+ * final one; absent means "show the final value" (the static, pixel-identical
3405
+ * state). The interpolation baseline is {@link valueFrom} (default 0).
3406
+ */
3407
+ valueProgress?: number;
3408
+ /**
3409
+ * Entrance progress (0..1) for arc-sweep charts (`pie`/`gauge`): wedges/needle
3410
+ * sweep in as it climbs 0→1. Absent or 1 means fully drawn. The interpolation
3411
+ * baseline is {@link valueFrom} (default the gauge `min`).
3412
+ */
3413
+ sweepProgress?: number;
3414
+ /**
3415
+ * Value the number roll-up / arc sweep interpolates *from*. On entrance this is
3416
+ * unset (count-up starts at 0 / sweep at the gauge `min`). On a data `update()`
3417
+ * the runtime sets it to the previously-displayed value so the number/needle
3418
+ * animates from the old value to the new one instead of restarting from 0.
3419
+ */
3420
+ valueFrom?: number;
3421
+ /**
3422
+ * Value the gauge comparison ("prior period") arc interpolates *from*. Mirrors
3423
+ * {@link valueFrom} for the secondary arc: unset on entrance (sweeps from the
3424
+ * gauge `min`), set to the previously-displayed compare on a data `update()` so
3425
+ * the inner arc tweens between the two instead of re-sweeping from `min`.
3426
+ */
3427
+ compareFrom?: number;
3428
+ /**
3429
+ * Previous sparkline series for a `kpi` on a data `update()`, so its trend line
3430
+ * can morph point-by-point from the old shape into the new one (paired with
3431
+ * {@link valueProgress} as the tween clock) instead of snapping. Unset on
3432
+ * entrance, where the line unfolds from a flat baseline instead.
3433
+ */
3434
+ sparklineFrom?: number[];
3299
3435
  }
3300
3436
  type CustomRenderer = (surface: Surface, spec: ChartSpec, tokens: ThemeTokens, size: Size, context?: RenderContext) => InteractionModel | void;
3301
3437
  declare const CARTESIAN_TYPES: ReadonlySet<ChartType>;
@@ -3881,4 +4017,4 @@ declare function renderDashboard(target: HTMLElement | string, spec: DashboardSp
3881
4017
  */
3882
4018
  declare const VERSION = "0.1.0";
3883
4019
 
3884
- export { type AggOp, type AggregateOp, type AggregateTransform, type AnimateOptions, type AnimationConfig, type AnimationHandle, type Annotation, type AnySpec, type ArcOptions, type AreaOptions, type AreaPoint, type AreaSpec, type AxesConfig, type AxisConfig, type AxisInput, type BackingSize, type BandScale, type BandScaleOptions, type BarSpec, type BaseSlicerSpec, type BaseSpec, type BinLayout, type BinTransform, type BoxSpec, type BuildOptions, type BulletSpec, CARTESIAN_TYPES, CHART_TYPES, type CalculateTransform, type CalendarHeatmapSpec, CanvasLayer, type CanvasPillStyle, type CanvasTextCmd, type CartesianChartSpec, type CartesianInteractionBuilder, type CartesianModel, type CartesianRenderer, type CategoryInsights, type ChartInsights, type ChartInstance, type ChartSpec, type ChartSummary, type ChartType, type ChoroplethSpec, type ColorScale, type ColumnProfile, type ComboAxisModel, type ComboLayer, type ComboLayerModel, type ComboMark, type ComboModel, type ComboSide, type ComboSpec, type Comparable, type ConditionalFormat, type ContinuousScale, type ControllerSelect, type Curve, type CurveType, type CustomRenderer, DEFAULT_ENTRANCE_DURATION, DEFAULT_ROUGH_STYLE, DEFAULT_UPDATE_DURATION, DIM_ALPHA, type DashboardCell, type DashboardInstance, type DashboardLayout, type DashboardResponsiveSpan, type DashboardSection, type DashboardSpec, type DashboardView, type DateRangeSlicerSpec, type Datum, type DecimateOptions, type Dimensions, type DropdownSlicerSpec, type DumbbellSpec, type EasingFunction, type Emphasis, type Encoding, type EntranceContext, ExpressionError, type Extent, FACETABLE_TYPES, FUNCTION_NAMES, type FacetConfig, type FacetLayout, type FacetPanel, type FieldDef, type FieldType, type FieldValue, type FillStyle, type FilterClause, type FilterPredicate, type FilterTransform, type FoldTransform, type Frame, type FrameInput, type FunnelSpec, type GaugeSpec, type GeoFeature, type GeoFeatureCollection, type GeoGeometry, type GeoMultiPolygon, type GeoPolygon, type GeoPosition, type GroupedMap, type HachureSegment, type HeadlessTarget, type HeatmapSpec, type HighlightConfig, type HistogramBin, type HistogramBinDatum, type HistogramModel, type HistogramSpec, type Hover, type IconRule, type Insets, type InsightFamily, type InsightOptions, InteractionController, type InteractionLink, type InteractionModel, type Interpolator, type JsonPatchOp, type KpiSpec, type LegendConfig, type LegendHitRegion, type LegendItem, type LegendPosition, type LegendSymbol, type LineOptions, type LineSpec, type LinearScaleOptions, type LintFinding, type ListSlicerSpec, type LiteralPredicate, type LogScaleOptions, type MapProjection, type MarkOptions, type MatrixSpec, type MatrixValueDef, type NumberFormatSpec, type OKLCH, type OKLab, type OverlayTextOpts, type PathSink, type PieLabels, type PieSpec, type PivotCell, type PivotFlatRow, type PivotHeaderNode, type PivotOptions, type PivotResult, type PivotValueDef, type Point, type PointRef, type PointScale, type PointScaleOptions, type PointSelection, type PositionedLegendItem, type RGBA, type RangeSelection, type RangeSlicerSpec, type RecommendOptions, type RecommendedChart, type Rect, type RegressionFit, type RenderContext, type RenderDashboardOptions, type RenderDiagnostic, type RenderOptions, type RenderReport, type RepairResult, type ReportInput, type ReportSeverity, type ResolvedEntrance, type ResolvedSeries, type ResolvedSketch, type Rng, type RoughContext, RoughPen, type RoughStyle, SKETCH_FONT_FAMILY, SKETCH_FONT_NAME, SLICER_TYPES, SR_ONLY_STYLE, type SankeySpec, type ScaleConfig, type ScaleType, type ScatterInsights, type ScatterSpec, type SearchSlicerSpec, type SelectConfig, type SelectionChangeListener, type SelectionDef, type SelectionListener, type SelectionParam, type SelectionStore, type SelectionValue, type SeriesInsights, type SetSelection, type SharedScales, type Size, type SketchConfig, type SlicerSpec, type SlicerType, type SlopeSpec, Surface, TICK_SIZE, TIME_UNITS, TRANSFORM_KINDS, type TableColumn, type TableSpec, type TextMetricsLite, type TextSelection, type ThemeColors, type ThemeFont, type ThemeInput, type ThemeTokens, type Tick, type TimeScaleOptions, type TimeUnit, type TimeUnitTransform, type TitleConfig, type TitleInput, Tooltip, type TooltipConfig, type TooltipContent, type TooltipRow, type Transform, type TreemapSpec, type TrendlineConfig, type UpdateContext, VERSION, type ValidationError, type ValidationResult, type ValueInsights, type ValueRef, type ValueRule, type WaterfallSpec, type WiredView, type XKind, type XModel, type YModel, aggregateValues, analyzeChart, animate, applyA11y, applyAggregate, applyBin, applyCalculate, applyFilter, applyFold, applyPatch, applyPick, applyTimeUnit, applyTransform, applyTransforms, arc, area, assertValidSpec, autoInsightAnnotations, backOut, bandScale, bounceOut, buildCartesianInteraction, buildCartesianModel, buildComboModel, buildDataTableFallback, buildFacetModels, buildHistogramModel, buildRenderReport, cartesianInteractionBuilders, cartesianRenderers, categorical, categoricalSchemes, chartTitleText, chartTypeLabel, checkExpression, clamp01, clamp255, compileExpression, compilePredicate, computeBackingSize, computeBins, computeFrame, computeSeriesInsights, contrastRatio, createDiv, createRoughPen, createSelectionStore, cubicIn, cubicInOut, cubicOut, curveCatmullRom, curveLinear, curveMonotoneX, curveStep, curveStepAfter, curveStepBefore, customRenderers, darkTheme, decimate, defaultSpan, dependentParams, diverging, divergingColorScale, divergingSchemes, drawAnnotationLabels, drawAnnotations, drawAxesUnderlay, drawFacet, drawLegend, drawOverlay, drawTitle, drawTrendlineLabels, drawTrendlines, easings, elasticOut, ellipsize, ensureSketchFont, expoInOut, expoOut, facetReport, fillParentStyle, filterRows, fontString, formatDate, formatNumber, formatValue, getDevicePixelRatio, groupBy, hashString, inferFieldType, inferFieldTypes, inferValueType, inheritInto, interpolateArray, interpolateNumber, interpolateNumberArray, interpolateObject, interpolateOklab, interpolateRgb, isBrowser, isEmptyValue, isFaceted, isParamClause, isSlicerType, keyFields, legendSwatchWidth, lightTheme, line, linear, linearRegression, linearScale, linearToSrgb, lintSpec, literalToValue, logScale, lttbRun, makeMatcher, matchesValue, measureText, monotoneXTangents, mulberry32, niceDomain, oklabToOklch, oklabToRgb, oklchToOklab, ordinalColorScale, overlayTextToCanvasCmd, paintCanvasText, paintLegendSwatch, parseColor, parseNumberFormat, pivot, placeViews, pointScale, polygonHachureLines, prefersReducedMotion, prettyDate, profileColumns, quadIn, quadInOut, quadOut, rampFromStops, readableTextColor, recommendChart, relativeLuminance, render, renderDashboard, renderToContext, repairReport, repairSpec, resolveCurve, resolveDashboardLayout, resolveDashboardSections, resolveEmphasis, resolveEntrance, resolveFilterValues, resolveInsightOptions, resolveSketch, resolveTheme, resolveUpdate, rgbToOklab, rgbaToCss, rotatePoint, roundedRect, sampleArc, sequential, sequentialColorScale, sequentialSchemes, setMeasureContext, setStyle, sinInOut, slicerParamName, smartDate, specFields, srgbToLinear, summarize, summarizeChart, themes, tickIncrement, tickStep, ticks, timeScale, timeTickFormat, timeTicks, toHex, toPointer, tooltipEnabled, truncateTo, validateDashboard, validateSpec, wireViews, withAlpha, withSketchFont };
4020
+ export { type AggOp, type AggregateOp, type AggregateTransform, type AnimateOptions, type AnimationConfig, type AnimationHandle, type Annotation, type AnySpec, type ArcOptions, type AreaOptions, type AreaPoint, type AreaSpec, type AxesConfig, type AxisConfig, type AxisInput, type BackingSize, type BandScale, type BandScaleOptions, type BarSpec, type BaseSlicerSpec, type BaseSpec, type BinLayout, type BinTransform, type BoxSpec, type BuildOptions, type BulletSpec, CARTESIAN_TYPES, CHART_TYPES, type CalculateTransform, type CalendarHeatmapSpec, CanvasLayer, type CanvasPillStyle, type CanvasTextCmd, type CartesianChartSpec, type CartesianInteractionBuilder, type CartesianModel, type CartesianRenderer, type CategoryInsights, type ChartInsights, type ChartInstance, type ChartSpec, type ChartSummary, type ChartType, type ChoroplethSpec, type ColorScale, type ColumnProfile, type ComboAxisModel, type ComboLayer, type ComboLayerModel, type ComboMark, type ComboModel, type ComboSide, type ComboSpec, type Comparable, type ConditionalFormat, type ContinuousScale, type ControllerSelect, type Curve, type CurveType, type CustomRenderer, DEFAULT_ENTRANCE_DURATION, DEFAULT_ROUGH_STYLE, DEFAULT_UPDATE_DURATION, DIM_ALPHA, type DashboardCell, type DashboardInstance, type DashboardLayout, type DashboardResponsiveSpan, type DashboardSection, type DashboardSpec, type DashboardView, type DateRangeSlicerSpec, type Datum, type DecimateOptions, type Dimensions, type DropdownSlicerSpec, type DumbbellSpec, type EasingFunction, type Emphasis, type Encoding, type EntranceContext, ExpressionError, type Extent, FACETABLE_TYPES, FUNCTION_NAMES, type FacetConfig, type FacetLayout, type FacetPanel, type FieldDef, type FieldType, type FieldValue, type FillStyle, type FilterClause, type FilterPredicate, type FilterTransform, type FoldTransform, type Frame, type FrameInput, type FunnelSpec, type GaugeSpec, type GeoFeature, type GeoFeatureCollection, type GeoGeometry, type GeoMultiPolygon, type GeoPolygon, type GeoPosition, type GroupedMap, type HachureSegment, type HeadlessTarget, type HeatmapSpec, type HighlightConfig, type HistogramBin, type HistogramBinDatum, type HistogramModel, type HistogramSpec, type Hover, type IconRule, type Insets, type InsightFamily, type InsightOptions, InteractionController, type InteractionLink, type InteractionModel, type Interpolator, type JsonPatchOp, type KpiComparison, type KpiSpec, type LegendConfig, type LegendHitRegion, type LegendItem, type LegendPosition, type LegendSymbol, type LineOptions, type LineSpec, type LinearScaleOptions, type LintFinding, type ListSlicerSpec, type LiteralPredicate, type LogScaleOptions, type MapProjection, type MarkOptions, type MatrixSpec, type MatrixValueDef, NO_PADDING, type NumberFormatSpec, type OKLCH, type OKLab, type OverlayTextOpts, type PathSink, type PieLabels, type PieSpec, type PivotCell, type PivotFlatRow, type PivotHeaderNode, type PivotOptions, type PivotResult, type PivotValueDef, type Point, type PointRef, type PointScale, type PointScaleOptions, type PointSelection, type PositionedLegendItem, type RGBA, type RangeSelection, type RangeSlicerSpec, type RecommendOptions, type RecommendedChart, type Rect, type RegressionFit, type RenderContext, type RenderDashboardOptions, type RenderDiagnostic, type RenderOptions, type RenderReport, type RepairResult, type ReportInput, type ReportSeverity, type ResolvedEntrance, type ResolvedSeries, type ResolvedSketch, type Rng, type RoughContext, RoughPen, type RoughStyle, SKETCH_FONT_FAMILY, SKETCH_FONT_NAME, SLICER_TYPES, SR_ONLY_STYLE, type SankeySpec, type ScaleConfig, type ScaleType, type ScatterInsights, type ScatterSpec, type SearchSlicerSpec, type SelectConfig, type SelectionChangeListener, type SelectionDef, type SelectionListener, type SelectionParam, type SelectionStore, type SelectionValue, type SeriesInsights, type SetSelection, type SharedScales, type Size, type SketchConfig, type SlicerSpec, type SlicerType, type SlopeSpec, Surface, TICK_SIZE, TIME_UNITS, TRANSFORM_KINDS, type TableColumn, type TableSpec, type TextMetricsLite, type TextSelection, type ThemeColors, type ThemeFont, type ThemeInput, type ThemeTokens, type Tick, type TimeScaleOptions, type TimeUnit, type TimeUnitTransform, type TitleConfig, type TitleInput, Tooltip, type TooltipConfig, type TooltipContent, type TooltipRow, type Transform, type TreemapSpec, type TrendlineConfig, type UpdateContext, VERSION, type ValidationError, type ValidationResult, type ValueInsights, type ValueRef, type ValueRule, type WaterfallSpec, type WiredView, type XKind, type XModel, type YModel, aggregateValues, analyzeChart, animate, applyA11y, applyAggregate, applyBin, applyCalculate, applyFilter, applyFold, applyPatch, applyPick, applyTimeUnit, applyTransform, applyTransforms, arc, area, assertValidSpec, autoInsightAnnotations, backOut, bandScale, bounceOut, buildCartesianInteraction, buildCartesianModel, buildComboModel, buildDataTableFallback, buildFacetModels, buildHistogramModel, buildRenderReport, cartesianInteractionBuilders, cartesianRenderers, categorical, categoricalSchemes, chartTitleText, chartTypeLabel, checkExpression, clamp01, clamp255, compileExpression, compilePredicate, computeBackingSize, computeBins, computeFrame, computeSeriesInsights, contrastRatio, createDiv, createRoughPen, createSelectionStore, cubicIn, cubicInOut, cubicOut, curveCatmullRom, curveLinear, curveMonotoneX, curveStep, curveStepAfter, curveStepBefore, customRenderers, darkTheme, decimate, defaultSpan, dependentParams, diverging, divergingColorScale, divergingSchemes, drawAnnotationLabels, drawAnnotations, drawAxesUnderlay, drawFacet, drawLegend, drawOverlay, drawTitle, drawTrendlineLabels, drawTrendlines, easings, elasticOut, ellipsize, ensureSketchFont, expoInOut, expoOut, facetReport, fillParentStyle, filterRows, fontString, formatDate, formatNumber, formatValue, getDevicePixelRatio, groupBy, hashString, inferFieldType, inferFieldTypes, inferValueType, inheritInto, interpolateArray, interpolateNumber, interpolateNumberArray, interpolateObject, interpolateOklab, interpolateRgb, isBrowser, isEmptyValue, isFaceted, isParamClause, isSlicerType, keyFields, legendSwatchWidth, lightTheme, line, linear, linearRegression, linearScale, linearToSrgb, lintSpec, literalToValue, logScale, lttbRun, makeMatcher, matchesValue, measureText, monotoneXTangents, mulberry32, niceDomain, oklabToOklch, oklabToRgb, oklchToOklab, ordinalColorScale, overlayTextToCanvasCmd, paintCanvasText, paintLegendSwatch, parseColor, parseNumberFormat, pivot, placeViews, pointScale, polygonHachureLines, prefersReducedMotion, prettyDate, profileColumns, quadIn, quadInOut, quadOut, rampFromStops, readableTextColor, recommendChart, relativeLuminance, render, renderDashboard, renderToContext, repairReport, repairSpec, resolveCurve, resolveDashboardLayout, resolveDashboardSections, resolveEmphasis, resolveEntrance, resolveFilterValues, resolveInsightOptions, resolveSketch, resolveTheme, resolveUpdate, resolveValueRef, rgbToOklab, rgbaToCss, rotatePoint, roundedRect, sampleArc, sequential, sequentialColorScale, sequentialSchemes, setMeasureContext, setStyle, sinInOut, slicerParamName, smartDate, specFields, srgbToLinear, summarize, summarizeChart, themes, tickIncrement, tickStep, ticks, timeScale, timeTickFormat, timeTicks, toHex, toPointer, tooltipEnabled, truncateTo, validateDashboard, validateSpec, wireViews, withAlpha, withSketchFont };