expressive-charts 0.5.0 → 0.6.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.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as Easing, C as ScalingTable, D as mediaReducedMotion, E as defaultScaling, F as FrameSource, I as ManualClock, L as createClock, M as easeOutCubic, N as linear, O as motion, P as Clock, R as defaultClock, S as ScalingRule, T as createMotion, _ as MotionMode, a as GeometryEffect, b as ReducedMotionSource, c as TransitionEffect, d as MotionEnv, f as Tween, g as Motion, h as tween, i as EffectContext, j as easeInOutCubic, k as scaleDuration, l as MarkData, m as TweenResult, n as Combined, o as MarkEffect, p as TweenOptions, r as DataEffect, s as TransitionContext, t as AnyMarkEffect, u as Sample, v as MotionOptions, w as Timing, x as ScalingOverrides, y as MotionView, z as manualClock } from "./effect-C786hGyJ.cjs";
1
+ import { A as scaleDuration, B as manualClock, C as ScalingRule, D as defaultScaling, E as createMotion, F as Clock, I as FrameSource, L as ManualClock, M as easeInOutCubic, N as easeOutCubic, O as mediaReducedMotion, P as linear, R as createClock, S as ScalingOverrides, T as Timing, _ as Motion, a as GeometryEffect, b as MotionView, c as TransitionContext, d as Sample, f as MotionEnv, g as tween, h as TweenResult, i as EffectContext, j as Easing, k as motion, l as TransitionEffect, m as TweenOptions, n as Combined, o as MarkEffect, p as Tween, r as DataEffect, s as TextSpace, t as AnyMarkEffect, u as MarkData, v as MotionMode, w as ScalingTable, x as ReducedMotionSource, y as MotionOptions, z as defaultClock } from "./effect-D8W4ZmmG.cjs";
2
2
  import { _ as Rect, a as MarkStyle, c as PathHandle, d as Icon, f as IconShape, g as Point, h as Outline, i as MarkHandle, l as TextHandle, m as MarkGeometry, n as IconHandle, o as Matrix, p as IconSource, r as Layer, s as Paint, t as Color, u as TextStyle } from "./drawing-Ypmq-2h6.cjs";
3
3
  /** Builds a function that blends `from` into `to` as t goes from 0 to 1. */
4
4
  type Interpolator<T> = (from: T, to: T) => (t: number) => T;
@@ -587,6 +587,13 @@ interface LineChartOptions<D> extends ChartOptions<D> {
587
587
  readonly tooltip?: boolean | ((d: NoInfer<D>, point?: {
588
588
  readonly series: string;
589
589
  }) => string);
590
+ /**
591
+ * Px the layout keeps clear to the right of the end labels, or of the lines' ends with `labels:
592
+ * false`, for text an effect draws past them: a `delta` past a line's end label. The plot is that
593
+ * much narrower, and the end labels stay beside it. Default 0. Anything but a number of px, 0 or
594
+ * more, throws a RangeError, and update({ room }) lays the chart out again.
595
+ */
596
+ readonly room?: number;
590
597
  }
591
598
  interface LineChart<D> extends Chart<D, LineChartOptions<D>> {
592
599
  /**
@@ -697,13 +704,15 @@ interface ExpressiveOptions<D> {
697
704
  readonly value?: (datum: D, element: Element) => number | string | boolean | null | undefined;
698
705
  /**
699
706
  * Describes every mark yourself, instead of the adapter reading them. Without it, a `<rect>` is a
700
- * bar (rects that share a key are its segments), a `<circle>` a point (an ellipse under a transform
701
- * that stretches it unevenly or skews it), and a `<path>`, `<line>`, `<polyline>`, `<polygon>` or
702
- * `<ellipse>` a shape, read with `describe.shape` from its outline, an open one with its stroke
703
- * width as drawn. Each is read through its transforms, and a shape SVG wouldn't draw (a path with no
704
- * path data) isn't a mark until it draws something. Any other element (`<text>`, `<g>`, `<use>`,
705
- * `<image>`) throws, naming its tag. Use this for those, or to say more than an element
706
- * shows: a pie's slice as `describe.arc`, which goes round the pie's centre, or a line by its points.
707
+ * bar (rects that share a key are its segments; one of its own turned or skewed is a shape), a
708
+ * `<circle>` a point (an ellipse under a transform that stretches it unevenly or skews it), a
709
+ * `<path>` that draws a ring's slice that slice, read with `describe.arc`, and any other `<path>`, a
710
+ * `<line>`, `<polyline>`, `<polygon>` or `<ellipse>` a shape, read with `describe.shape` from its
711
+ * outline, an open one with its stroke width as drawn. Each is read through its transforms, and a
712
+ * shape SVG wouldn't draw (a path with no path data) isn't a mark until it draws something. Any
713
+ * other element (`<text>`, `<g>`, `<use>`, `<image>`) throws, naming its tag. Use this for those,
714
+ * or to say more or other than an element shows: a padded donut's slice as `describe.arc`, which
715
+ * goes round the donut's centre, or a line by its points.
707
716
  * Called once per mark, with its first element in document order, in the coordinates of the marks'
708
717
  * nearest common ancestor. Build it with `describe` and give it the key passed in.
709
718
  */
@@ -912,7 +921,8 @@ export declare function link<S extends LinkSource<unknown>>(sources: readonly S[
912
921
  /**
913
922
  * What a chart switch uses of each view's chart. A reference chart's handle has all of it: its
914
923
  * `<svg>` (which takes `ec-morphing` while its marks morph in the switch's overlay), its marks and
915
- * labels as drawn, focus by key, leave() to end its hover, and destroy(). A reference chart also
924
+ * labels as drawn, focus by key, leave() to end its hover, and destroy(); how it paints each mark
925
+ * (paintOf), and, a line chart's, what its focus stops stand for (standsFor). A reference chart also
916
926
  * has on(), which the switch's on() hears, and a hover a link can drive; a view without them isn't
917
927
  * heard and isn't linked.
918
928
  */
@@ -923,6 +933,24 @@ interface ChartSwitchView {
923
933
  focus(key: string): void;
924
934
  leave(): void;
925
935
  destroy(): void;
936
+ /**
937
+ * How the chart paints the mark `key`: the name its colour comes from, and whether it's drawn at
938
+ * rest. Without it, or for a key it doesn't know, the switch draws the mark in its key's colour.
939
+ */
940
+ paintOf?(key: string): ChartSwitchPaint | undefined;
941
+ /**
942
+ * The keys the focus stop `key` stands for, in the order the next view's focus(key) is tried with
943
+ * them: a line chart's x stands for each series' point key there, in series order, then itself.
944
+ * Without it, a stop stands for its own key.
945
+ */
946
+ standsFor?(key: string): readonly string[];
947
+ }
948
+ /** How a view's chart paints one of its marks: what a switch draws it in. */
949
+ interface ChartSwitchPaint {
950
+ /** The name its colour comes from in the switch's assignment (`colors.slot(color)`): a line's or a point's series, a bar's key or first series, a slice's key. */
951
+ readonly color: string;
952
+ /** Whether the chart draws it at rest. A line chart's points aren't, but for a value alone between gaps; a mark that isn't starts or ends a switch as a dot of no size at its centre. */
953
+ readonly drawn: boolean;
926
954
  }
927
955
  /**
928
956
  * Draws one view's chart in `container` and returns it. `colors` is the switch's assignment: pass it
@@ -1262,8 +1290,18 @@ interface MorphOptions {
1262
1290
  * `align: "drop"` the pairing is turned by a quarter, from a mark that goes round its pivot (a
1263
1291
  * slice) to one that doesn't (a bar), whichever is `from`: so a switch back retraces the same
1264
1292
  * pairing instead of twisting. Between two marks of the same kind, "drop" pairs as "unroll" does.
1293
+ * Holes (the subpaths of an outline's `d` other than the longest) morph too: they pair by area,
1294
+ * largest with largest, each sampled at a quarter of `points` from its upper left. One with no
1295
+ * partner closes by half way, or opens after it, while its centre heads for where it lands in the
1296
+ * other mark: its centre's place in the other's bounds, or the deepest point of its filled area
1297
+ * where that place is outside it or near its edge. Where it would leave the shape on the way, it
1298
+ * closes sooner, as soon as a sixteenth of the way. Each is written the other way round from the
1299
+ * outside, so it stays a hole under either fill rule.
1265
1300
  * - **Two open outlines** (lines): both strokes are sampled along their length, and the stroke's
1266
- * width moves from one thickness to the other.
1301
+ * width moves from one thickness to the other. Where either line has `gaps`, the stroke inside a
1302
+ * gap of the old line fades in and inside a gap of the new line fades out, each piece at an
1303
+ * opacity of 1 − ((1 − p) · a + p · b), with p the eased progress and a and b 1 inside the old and
1304
+ * the new line's gap: so nothing is drawn inside a gap both have.
1267
1305
  * - **A closed and an open outline** crossfade: the first fades out as the second fades in.
1268
1306
  *
1269
1307
  * A run from `ctx.start` begins with the shapes there, in their eased progress, and takes the rest
@@ -1383,7 +1421,7 @@ export declare function registerIcons(icons: readonly Icon[]): void;
1383
1421
  * has the same rules. For a CSP that allows no inline styles at all.
1384
1422
  */
1385
1423
  export declare function configure(options: StyleOptions): void;
1386
- export declare const VERSION = "0.5.0";
1424
+ export declare const VERSION = "0.6.0";
1387
1425
  /**
1388
1426
  * A bar chart in `target` (an element or a selector). The axis whose values aren't numbers is the
1389
1427
  * category; `stack` stacks numeric fields; `on` attaches effects by slot.
@@ -1428,5 +1466,5 @@ export declare function fromVegaView<D = Record<string, unknown>>(view: VegaView
1428
1466
  * page-wide `motion`. `persist: "key"` saves the choice in localStorage.
1429
1467
  */
1430
1468
  export declare function motionSwitch(target: string | Element, motion?: Motion, options?: MotionSwitchOptions): MotionSwitch;
1431
- export { type Accessor, type AnimateOptions, type Animated, type AnimatedOptions, type AnyMarkEffect, type ArcSpec, type Attachment, type BarChart, type BarChartOptions, type BarSegmentSpec, type BarSpec, type Baseline, type Chart, type ChartChange, type ChartLabel, type ChartOptions, type ChartSwitch, type ChartSwitchOptions, type ChartSwitchView, type ChartSwitchViewFactory, type ChartSwitchViewName, type ChartSwitchViews, type Clock, type Color, type ColorAssignment, type Combined, type DataEffect, type DataEffectSpec, type DeltaOptions, type DonutChart, type DonutChartOptions, type Easing, type EffectContext, type EffectOption, type EffectSlot, type EffectSlots, type ExpressiveOptions, type FlashOptions, type FrameSource, type Gait, type GaitName, type GaitPose, type GaitState, type GeometryEffect, type GeometryEffectSpec, type HostMark, type Icon, type IconHandle, type IconShape, type IconSource, type IconSpec, type Interpolator, type KeyOfType, type LabelOptions, type Layer, type LegendEntry, type LegendOptions, type LineChart, type LineChartOptions, type LineSpec, type Link, type LinkOptions, type LinkSource, type ManualClock, type MarkData, type MarkEffect, type MarkEvent, type MarkEvents, type MarkGeometry, type MarkHandle, type MarkSource, type MarkStyle, type MarkSummary, type Matrix, type MorphAlign, type MorphOptions, type Motion, type MotionEnv, type MotionMode, type MotionOptions, type MotionSwitch, type MotionSwitchOptions, type MotionView, type NumericKey, type Outline, type Paint, type PathHandle, type PlayButton, type PlayButtonOptions, type Playback, type PlaybackEvent, type PlaybackOptions, type Point, type PointSpec, type PresetName, type PulseOptions, type Rect, type ReducedMotionSource, type Sample, type SamplePoint, type ScalingOverrides, type ScalingRule, type ScalingTable, type SeekOptions, type ShapeSpec, type SliceSummary, type StaggerOptions, type StepOptions, type StyleOptions, type SvgIconSpec, type TableColumn, type TableOptions, type TextHandle, type TextStyle, type ThresholdOptions, type Timing, type TraceOptions, type TransitionContext, type TransitionEffect, type TravelOptions, type Tween, type TweenOptions, type TweenResult, type VegaAttachment, type VegaItem, type VegaMark, type VegaOptions, type VegaSample, type VegaViewLike, type WiggleOptions, createClock, createMotion, defaultClock, defaultScaling, easeInOutCubic, easeOutCubic, linear, manualClock, mediaReducedMotion, motion, scaleDuration, tween };
1469
+ export { type Accessor, type AnimateOptions, type Animated, type AnimatedOptions, type AnyMarkEffect, type ArcSpec, type Attachment, type BarChart, type BarChartOptions, type BarSegmentSpec, type BarSpec, type Baseline, type Chart, type ChartChange, type ChartLabel, type ChartOptions, type ChartSwitch, type ChartSwitchOptions, type ChartSwitchPaint, type ChartSwitchView, type ChartSwitchViewFactory, type ChartSwitchViewName, type ChartSwitchViews, type Clock, type Color, type ColorAssignment, type Combined, type DataEffect, type DataEffectSpec, type DeltaOptions, type DonutChart, type DonutChartOptions, type Easing, type EffectContext, type EffectOption, type EffectSlot, type EffectSlots, type ExpressiveOptions, type FlashOptions, type FrameSource, type Gait, type GaitName, type GaitPose, type GaitState, type GeometryEffect, type GeometryEffectSpec, type HostMark, type Icon, type IconHandle, type IconShape, type IconSource, type IconSpec, type Interpolator, type KeyOfType, type LabelOptions, type Layer, type LegendEntry, type LegendOptions, type LineChart, type LineChartOptions, type LineSpec, type Link, type LinkOptions, type LinkSource, type ManualClock, type MarkData, type MarkEffect, type MarkEvent, type MarkEvents, type MarkGeometry, type MarkHandle, type MarkSource, type MarkStyle, type MarkSummary, type Matrix, type MorphAlign, type MorphOptions, type Motion, type MotionEnv, type MotionMode, type MotionOptions, type MotionSwitch, type MotionSwitchOptions, type MotionView, type NumericKey, type Outline, type Paint, type PathHandle, type PlayButton, type PlayButtonOptions, type Playback, type PlaybackEvent, type PlaybackOptions, type Point, type PointSpec, type PresetName, type PulseOptions, type Rect, type ReducedMotionSource, type Sample, type SamplePoint, type ScalingOverrides, type ScalingRule, type ScalingTable, type SeekOptions, type ShapeSpec, type SliceSummary, type StaggerOptions, type StepOptions, type StyleOptions, type SvgIconSpec, type TableColumn, type TableOptions, type TextHandle, type TextSpace, type TextStyle, type ThresholdOptions, type Timing, type TraceOptions, type TransitionContext, type TransitionEffect, type TravelOptions, type Tween, type TweenOptions, type TweenResult, type VegaAttachment, type VegaItem, type VegaMark, type VegaOptions, type VegaSample, type VegaViewLike, type WiggleOptions, createClock, createMotion, defaultClock, defaultScaling, easeInOutCubic, easeOutCubic, linear, manualClock, mediaReducedMotion, motion, scaleDuration, tween };
1432
1470
  //# sourceMappingURL=index.d.cts.map
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as Easing, C as ScalingTable, D as mediaReducedMotion, E as defaultScaling, F as FrameSource, I as ManualClock, L as createClock, M as easeOutCubic, N as linear, O as motion, P as Clock, R as defaultClock, S as ScalingRule, T as createMotion, _ as MotionMode, a as GeometryEffect, b as ReducedMotionSource, c as TransitionEffect, d as MotionEnv, f as Tween, g as Motion, h as tween, i as EffectContext, j as easeInOutCubic, k as scaleDuration, l as MarkData, m as TweenResult, n as Combined, o as MarkEffect, p as TweenOptions, r as DataEffect, s as TransitionContext, t as AnyMarkEffect, u as Sample, v as MotionOptions, w as Timing, x as ScalingOverrides, y as MotionView, z as manualClock } from "./effect-CMo-2gPf.js";
1
+ import { A as scaleDuration, B as manualClock, C as ScalingRule, D as defaultScaling, E as createMotion, F as Clock, I as FrameSource, L as ManualClock, M as easeInOutCubic, N as easeOutCubic, O as mediaReducedMotion, P as linear, R as createClock, S as ScalingOverrides, T as Timing, _ as Motion, a as GeometryEffect, b as MotionView, c as TransitionContext, d as Sample, f as MotionEnv, g as tween, h as TweenResult, i as EffectContext, j as Easing, k as motion, l as TransitionEffect, m as TweenOptions, n as Combined, o as MarkEffect, p as Tween, r as DataEffect, s as TextSpace, t as AnyMarkEffect, u as MarkData, v as MotionMode, w as ScalingTable, x as ReducedMotionSource, y as MotionOptions, z as defaultClock } from "./effect-DyzluQD1.js";
2
2
  import { _ as Rect, a as MarkStyle, c as PathHandle, d as Icon, f as IconShape, g as Point, h as Outline, i as MarkHandle, l as TextHandle, m as MarkGeometry, n as IconHandle, o as Matrix, p as IconSource, r as Layer, s as Paint, t as Color, u as TextStyle } from "./drawing-Ypmq-2h6.js";
3
3
  /** Builds a function that blends `from` into `to` as t goes from 0 to 1. */
4
4
  type Interpolator<T> = (from: T, to: T) => (t: number) => T;
@@ -587,6 +587,13 @@ interface LineChartOptions<D> extends ChartOptions<D> {
587
587
  readonly tooltip?: boolean | ((d: NoInfer<D>, point?: {
588
588
  readonly series: string;
589
589
  }) => string);
590
+ /**
591
+ * Px the layout keeps clear to the right of the end labels, or of the lines' ends with `labels:
592
+ * false`, for text an effect draws past them: a `delta` past a line's end label. The plot is that
593
+ * much narrower, and the end labels stay beside it. Default 0. Anything but a number of px, 0 or
594
+ * more, throws a RangeError, and update({ room }) lays the chart out again.
595
+ */
596
+ readonly room?: number;
590
597
  }
591
598
  interface LineChart<D> extends Chart<D, LineChartOptions<D>> {
592
599
  /**
@@ -697,13 +704,15 @@ interface ExpressiveOptions<D> {
697
704
  readonly value?: (datum: D, element: Element) => number | string | boolean | null | undefined;
698
705
  /**
699
706
  * Describes every mark yourself, instead of the adapter reading them. Without it, a `<rect>` is a
700
- * bar (rects that share a key are its segments), a `<circle>` a point (an ellipse under a transform
701
- * that stretches it unevenly or skews it), and a `<path>`, `<line>`, `<polyline>`, `<polygon>` or
702
- * `<ellipse>` a shape, read with `describe.shape` from its outline, an open one with its stroke
703
- * width as drawn. Each is read through its transforms, and a shape SVG wouldn't draw (a path with no
704
- * path data) isn't a mark until it draws something. Any other element (`<text>`, `<g>`, `<use>`,
705
- * `<image>`) throws, naming its tag. Use this for those, or to say more than an element
706
- * shows: a pie's slice as `describe.arc`, which goes round the pie's centre, or a line by its points.
707
+ * bar (rects that share a key are its segments; one of its own turned or skewed is a shape), a
708
+ * `<circle>` a point (an ellipse under a transform that stretches it unevenly or skews it), a
709
+ * `<path>` that draws a ring's slice that slice, read with `describe.arc`, and any other `<path>`, a
710
+ * `<line>`, `<polyline>`, `<polygon>` or `<ellipse>` a shape, read with `describe.shape` from its
711
+ * outline, an open one with its stroke width as drawn. Each is read through its transforms, and a
712
+ * shape SVG wouldn't draw (a path with no path data) isn't a mark until it draws something. Any
713
+ * other element (`<text>`, `<g>`, `<use>`, `<image>`) throws, naming its tag. Use this for those,
714
+ * or to say more or other than an element shows: a padded donut's slice as `describe.arc`, which
715
+ * goes round the donut's centre, or a line by its points.
707
716
  * Called once per mark, with its first element in document order, in the coordinates of the marks'
708
717
  * nearest common ancestor. Build it with `describe` and give it the key passed in.
709
718
  */
@@ -912,7 +921,8 @@ export declare function link<S extends LinkSource<unknown>>(sources: readonly S[
912
921
  /**
913
922
  * What a chart switch uses of each view's chart. A reference chart's handle has all of it: its
914
923
  * `<svg>` (which takes `ec-morphing` while its marks morph in the switch's overlay), its marks and
915
- * labels as drawn, focus by key, leave() to end its hover, and destroy(). A reference chart also
924
+ * labels as drawn, focus by key, leave() to end its hover, and destroy(); how it paints each mark
925
+ * (paintOf), and, a line chart's, what its focus stops stand for (standsFor). A reference chart also
916
926
  * has on(), which the switch's on() hears, and a hover a link can drive; a view without them isn't
917
927
  * heard and isn't linked.
918
928
  */
@@ -923,6 +933,24 @@ interface ChartSwitchView {
923
933
  focus(key: string): void;
924
934
  leave(): void;
925
935
  destroy(): void;
936
+ /**
937
+ * How the chart paints the mark `key`: the name its colour comes from, and whether it's drawn at
938
+ * rest. Without it, or for a key it doesn't know, the switch draws the mark in its key's colour.
939
+ */
940
+ paintOf?(key: string): ChartSwitchPaint | undefined;
941
+ /**
942
+ * The keys the focus stop `key` stands for, in the order the next view's focus(key) is tried with
943
+ * them: a line chart's x stands for each series' point key there, in series order, then itself.
944
+ * Without it, a stop stands for its own key.
945
+ */
946
+ standsFor?(key: string): readonly string[];
947
+ }
948
+ /** How a view's chart paints one of its marks: what a switch draws it in. */
949
+ interface ChartSwitchPaint {
950
+ /** The name its colour comes from in the switch's assignment (`colors.slot(color)`): a line's or a point's series, a bar's key or first series, a slice's key. */
951
+ readonly color: string;
952
+ /** Whether the chart draws it at rest. A line chart's points aren't, but for a value alone between gaps; a mark that isn't starts or ends a switch as a dot of no size at its centre. */
953
+ readonly drawn: boolean;
926
954
  }
927
955
  /**
928
956
  * Draws one view's chart in `container` and returns it. `colors` is the switch's assignment: pass it
@@ -1262,8 +1290,18 @@ interface MorphOptions {
1262
1290
  * `align: "drop"` the pairing is turned by a quarter, from a mark that goes round its pivot (a
1263
1291
  * slice) to one that doesn't (a bar), whichever is `from`: so a switch back retraces the same
1264
1292
  * pairing instead of twisting. Between two marks of the same kind, "drop" pairs as "unroll" does.
1293
+ * Holes (the subpaths of an outline's `d` other than the longest) morph too: they pair by area,
1294
+ * largest with largest, each sampled at a quarter of `points` from its upper left. One with no
1295
+ * partner closes by half way, or opens after it, while its centre heads for where it lands in the
1296
+ * other mark: its centre's place in the other's bounds, or the deepest point of its filled area
1297
+ * where that place is outside it or near its edge. Where it would leave the shape on the way, it
1298
+ * closes sooner, as soon as a sixteenth of the way. Each is written the other way round from the
1299
+ * outside, so it stays a hole under either fill rule.
1265
1300
  * - **Two open outlines** (lines): both strokes are sampled along their length, and the stroke's
1266
- * width moves from one thickness to the other.
1301
+ * width moves from one thickness to the other. Where either line has `gaps`, the stroke inside a
1302
+ * gap of the old line fades in and inside a gap of the new line fades out, each piece at an
1303
+ * opacity of 1 − ((1 − p) · a + p · b), with p the eased progress and a and b 1 inside the old and
1304
+ * the new line's gap: so nothing is drawn inside a gap both have.
1267
1305
  * - **A closed and an open outline** crossfade: the first fades out as the second fades in.
1268
1306
  *
1269
1307
  * A run from `ctx.start` begins with the shapes there, in their eased progress, and takes the rest
@@ -1383,7 +1421,7 @@ export declare function registerIcons(icons: readonly Icon[]): void;
1383
1421
  * has the same rules. For a CSP that allows no inline styles at all.
1384
1422
  */
1385
1423
  export declare function configure(options: StyleOptions): void;
1386
- export declare const VERSION = "0.5.0";
1424
+ export declare const VERSION = "0.6.0";
1387
1425
  /**
1388
1426
  * A bar chart in `target` (an element or a selector). The axis whose values aren't numbers is the
1389
1427
  * category; `stack` stacks numeric fields; `on` attaches effects by slot.
@@ -1428,5 +1466,5 @@ export declare function fromVegaView<D = Record<string, unknown>>(view: VegaView
1428
1466
  * page-wide `motion`. `persist: "key"` saves the choice in localStorage.
1429
1467
  */
1430
1468
  export declare function motionSwitch(target: string | Element, motion?: Motion, options?: MotionSwitchOptions): MotionSwitch;
1431
- export { type Accessor, type AnimateOptions, type Animated, type AnimatedOptions, type AnyMarkEffect, type ArcSpec, type Attachment, type BarChart, type BarChartOptions, type BarSegmentSpec, type BarSpec, type Baseline, type Chart, type ChartChange, type ChartLabel, type ChartOptions, type ChartSwitch, type ChartSwitchOptions, type ChartSwitchView, type ChartSwitchViewFactory, type ChartSwitchViewName, type ChartSwitchViews, type Clock, type Color, type ColorAssignment, type Combined, type DataEffect, type DataEffectSpec, type DeltaOptions, type DonutChart, type DonutChartOptions, type Easing, type EffectContext, type EffectOption, type EffectSlot, type EffectSlots, type ExpressiveOptions, type FlashOptions, type FrameSource, type Gait, type GaitName, type GaitPose, type GaitState, type GeometryEffect, type GeometryEffectSpec, type HostMark, type Icon, type IconHandle, type IconShape, type IconSource, type IconSpec, type Interpolator, type KeyOfType, type LabelOptions, type Layer, type LegendEntry, type LegendOptions, type LineChart, type LineChartOptions, type LineSpec, type Link, type LinkOptions, type LinkSource, type ManualClock, type MarkData, type MarkEffect, type MarkEvent, type MarkEvents, type MarkGeometry, type MarkHandle, type MarkSource, type MarkStyle, type MarkSummary, type Matrix, type MorphAlign, type MorphOptions, type Motion, type MotionEnv, type MotionMode, type MotionOptions, type MotionSwitch, type MotionSwitchOptions, type MotionView, type NumericKey, type Outline, type Paint, type PathHandle, type PlayButton, type PlayButtonOptions, type Playback, type PlaybackEvent, type PlaybackOptions, type Point, type PointSpec, type PresetName, type PulseOptions, type Rect, type ReducedMotionSource, type Sample, type SamplePoint, type ScalingOverrides, type ScalingRule, type ScalingTable, type SeekOptions, type ShapeSpec, type SliceSummary, type StaggerOptions, type StepOptions, type StyleOptions, type SvgIconSpec, type TableColumn, type TableOptions, type TextHandle, type TextStyle, type ThresholdOptions, type Timing, type TraceOptions, type TransitionContext, type TransitionEffect, type TravelOptions, type Tween, type TweenOptions, type TweenResult, type VegaAttachment, type VegaItem, type VegaMark, type VegaOptions, type VegaSample, type VegaViewLike, type WiggleOptions, createClock, createMotion, defaultClock, defaultScaling, easeInOutCubic, easeOutCubic, linear, manualClock, mediaReducedMotion, motion, scaleDuration, tween };
1469
+ export { type Accessor, type AnimateOptions, type Animated, type AnimatedOptions, type AnyMarkEffect, type ArcSpec, type Attachment, type BarChart, type BarChartOptions, type BarSegmentSpec, type BarSpec, type Baseline, type Chart, type ChartChange, type ChartLabel, type ChartOptions, type ChartSwitch, type ChartSwitchOptions, type ChartSwitchPaint, type ChartSwitchView, type ChartSwitchViewFactory, type ChartSwitchViewName, type ChartSwitchViews, type Clock, type Color, type ColorAssignment, type Combined, type DataEffect, type DataEffectSpec, type DeltaOptions, type DonutChart, type DonutChartOptions, type Easing, type EffectContext, type EffectOption, type EffectSlot, type EffectSlots, type ExpressiveOptions, type FlashOptions, type FrameSource, type Gait, type GaitName, type GaitPose, type GaitState, type GeometryEffect, type GeometryEffectSpec, type HostMark, type Icon, type IconHandle, type IconShape, type IconSource, type IconSpec, type Interpolator, type KeyOfType, type LabelOptions, type Layer, type LegendEntry, type LegendOptions, type LineChart, type LineChartOptions, type LineSpec, type Link, type LinkOptions, type LinkSource, type ManualClock, type MarkData, type MarkEffect, type MarkEvent, type MarkEvents, type MarkGeometry, type MarkHandle, type MarkSource, type MarkStyle, type MarkSummary, type Matrix, type MorphAlign, type MorphOptions, type Motion, type MotionEnv, type MotionMode, type MotionOptions, type MotionSwitch, type MotionSwitchOptions, type MotionView, type NumericKey, type Outline, type Paint, type PathHandle, type PlayButton, type PlayButtonOptions, type Playback, type PlaybackEvent, type PlaybackOptions, type Point, type PointSpec, type PresetName, type PulseOptions, type Rect, type ReducedMotionSource, type Sample, type SamplePoint, type ScalingOverrides, type ScalingRule, type ScalingTable, type SeekOptions, type ShapeSpec, type SliceSummary, type StaggerOptions, type StepOptions, type StyleOptions, type SvgIconSpec, type TableColumn, type TableOptions, type TextHandle, type TextSpace, type TextStyle, type ThresholdOptions, type Timing, type TraceOptions, type TransitionContext, type TransitionEffect, type TravelOptions, type Tween, type TweenOptions, type TweenResult, type VegaAttachment, type VegaItem, type VegaMark, type VegaOptions, type VegaSample, type VegaViewLike, type WiggleOptions, createClock, createMotion, defaultClock, defaultScaling, easeInOutCubic, easeOutCubic, linear, manualClock, mediaReducedMotion, motion, scaleDuration, tween };
1432
1470
  //# sourceMappingURL=index.d.ts.map