expressive-charts 0.10.0 → 0.12.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/CHANGELOG.md +19 -0
- package/README.md +8 -8
- package/dist/define-DeZLs1h7.js.map +1 -1
- package/dist/expressive-charts.global.js +6 -6
- package/dist/expressive-charts.global.js.map +1 -1
- package/dist/icons/sport.cjs.map +1 -1
- package/dist/icons/sport.js +1 -1
- package/dist/index.cjs +346 -104
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +56 -9
- package/dist/index.d.ts +56 -9
- package/dist/index.js +341 -99
- package/dist/index.js.map +1 -1
- package/dist/{path-data-DnEckjY8.js → path-data-Cfjk04X8.js} +5 -5
- package/dist/{path-data-DnEckjY8.js.map → path-data-Cfjk04X8.js.map} +1 -1
- package/dist/testing.cjs +7 -7
- package/dist/testing.js +1 -1
- package/dist/{transition-romki_A6.js → transition-BFd3ktZY.js} +5 -5
- package/dist/{transition-romki_A6.js.map → transition-BFd3ktZY.js.map} +1 -1
- package/package.json +10 -5
package/dist/index.d.cts
CHANGED
|
@@ -517,8 +517,8 @@ interface ExpressiveOptions<D> {
|
|
|
517
517
|
readonly keyboard?: boolean;
|
|
518
518
|
/**
|
|
519
519
|
* Dim the other marks while one is hovered (to --ec-dim-opacity), and give the hovered one its strong
|
|
520
|
-
* colour, as our charts do: its fill, or its stroke when the fill is none
|
|
521
|
-
* text colour, so darker in the light theme and lighter in the dark. Default false: the host owns its styling.
|
|
520
|
+
* colour, as our charts do: its fill, or its stroke when the fill is none or it's a `<line>`, stepped toward
|
|
521
|
+
* the text colour, so darker in the light theme and lighter in the dark. Default false: the host owns its styling.
|
|
522
522
|
*/
|
|
523
523
|
readonly dim?: boolean;
|
|
524
524
|
/**
|
|
@@ -638,8 +638,19 @@ interface ChartSwitchView {
|
|
|
638
638
|
*/
|
|
639
639
|
keyOf?(element: Element): string | undefined;
|
|
640
640
|
/**
|
|
641
|
-
*
|
|
642
|
-
*
|
|
641
|
+
* The parts of the chart that can stay put through a switch: an axis, a grid, a tick, each an
|
|
642
|
+
* element in `element` with a key of its own, read as each switch starts, before morphing(true). A
|
|
643
|
+
* guide stays on screen at full strength, where it is, while the switch plays, when the other view
|
|
644
|
+
* has a guide with its key drawn the same: the same markup in the same computed paint, with any ids
|
|
645
|
+
* left out, at the same place within 0.5 px and at the same scale and turn. The old view's is drawn
|
|
646
|
+
* until half way and the new view's from there, so one drawn the same doesn't change. Every other
|
|
647
|
+
* guide fades with its view. The switch draws each one as a copy in its overlay, so the view hides
|
|
648
|
+
* them while it plays, as it hides its marks. Without it, a view has none.
|
|
649
|
+
*/
|
|
650
|
+
guides?(): readonly ChartSwitchGuide[];
|
|
651
|
+
/**
|
|
652
|
+
* Hides (true) or shows again (false) the marks, labels and guides the switch draws in its overlay,
|
|
653
|
+
* while a switch plays: called as `element` takes `ec-morphing`, and as it loses it or the switch is
|
|
643
654
|
* destroyed mid-way. A host chart's marks don't have the class that hides a chart's. Without it,
|
|
644
655
|
* the class hides them.
|
|
645
656
|
*/
|
|
@@ -664,6 +675,13 @@ interface ChartSwitchPaint {
|
|
|
664
675
|
/** The width of the ring in `--ec-surface` the chart draws round the mark's filled shape, or round its end dot when it has one: 2 round a line chart's point and end dot. Unset: none. */
|
|
665
676
|
readonly ring?: number;
|
|
666
677
|
}
|
|
678
|
+
/** A part of a view's chart that stays put through a switch when the next view draws it the same: an axis, a grid, a tick. */
|
|
679
|
+
interface ChartSwitchGuide {
|
|
680
|
+
/** The element, in the view's `<svg>`: drawn as it is, with everything in it. */
|
|
681
|
+
readonly element: Element;
|
|
682
|
+
/** Its own key: it pairs with the other view's guide with this key, never with a mark or a label. */
|
|
683
|
+
readonly key: string;
|
|
684
|
+
}
|
|
667
685
|
/**
|
|
668
686
|
* Draws one view's chart in `container` and returns it. `colors` is the switch's assignment: pass it
|
|
669
687
|
* to the chart as its `colors`, so a key has the same colour in every view and in the overlay.
|
|
@@ -748,6 +766,13 @@ interface HostLabel {
|
|
|
748
766
|
/** "category": the mark's name (a slice's outside label, a column's name). "value": its value. */
|
|
749
767
|
readonly role: "category" | "value";
|
|
750
768
|
}
|
|
769
|
+
/** A part of the host's drawing that a chart switch keeps where it is when the next view draws it the same: an axis, a grid, a tick. */
|
|
770
|
+
interface HostGuide {
|
|
771
|
+
/** An element in the host's `<svg>`, drawn as it is, with everything in it. */
|
|
772
|
+
readonly element: Element;
|
|
773
|
+
/** Its own key: it pairs with the next view's guide with this key, never with a mark or a label. */
|
|
774
|
+
readonly key: string;
|
|
775
|
+
}
|
|
751
776
|
interface HostViewOptions {
|
|
752
777
|
/**
|
|
753
778
|
* The host's labels, each a `<text>` in its `<svg>` with its mark's key and its role, read as each
|
|
@@ -757,15 +782,28 @@ interface HostViewOptions {
|
|
|
757
782
|
* Default: none.
|
|
758
783
|
*/
|
|
759
784
|
readonly labels?: () => Iterable<HostLabel>;
|
|
785
|
+
/**
|
|
786
|
+
* The host's guides (an axis, a grid, a tick), each an element in its `<svg>` with a key of its
|
|
787
|
+
* own, read as each switch starts. One whose key the next view's guides have too stays on screen at
|
|
788
|
+
* full strength, where it is, while the switch plays, when the two are drawn the same; every other
|
|
789
|
+
* fades with its view. One that isn't in the `<svg>`, or has no key, is left out, and so is
|
|
790
|
+
* everything if it throws (reported). Default: none.
|
|
791
|
+
*/
|
|
792
|
+
readonly guides?: () => Iterable<HostGuide>;
|
|
760
793
|
}
|
|
761
|
-
/**
|
|
794
|
+
/**
|
|
795
|
+
* An attachment, or several on one `<svg>`, as a chart switch's view: the attachment's own methods, or
|
|
796
|
+
* each of theirs, with the view's.
|
|
797
|
+
*/
|
|
762
798
|
interface HostView<D> extends Attachment<D>, ChartSwitchView {
|
|
763
|
-
/** The host's root `<svg
|
|
799
|
+
/** The host's root `<svg>`, which its attachments share. Its `aria-label` is what a switch's `announce` says. */
|
|
764
800
|
readonly element: SVGSVGElement;
|
|
765
|
-
/** The marks' nearest common ancestor, whose space marks() and labels() are in. */
|
|
801
|
+
/** The marks' nearest common ancestor, whose space marks() and labels() are in: every attachment's marks'. */
|
|
766
802
|
readonly space: Element;
|
|
767
803
|
/** The labels `labels` gives, as a switch draws them: at their anchor, in the host text's computed font and fill. */
|
|
768
804
|
labels(): readonly ChartLabel[];
|
|
805
|
+
/** The guides `guides` gives: each the host's own element, with its key. */
|
|
806
|
+
guides(): readonly ChartSwitchGuide[];
|
|
769
807
|
/** The host's colour for the mark, its fill or its stroke on a line, as its first part draws it. */
|
|
770
808
|
paintOf(key: string): ChartSwitchPaint | undefined;
|
|
771
809
|
keyOf(element: Element): string | undefined;
|
|
@@ -780,6 +818,15 @@ interface HostView<D> extends Attachment<D>, ChartSwitchView {
|
|
|
780
818
|
* anything else, or on an attachment with no marks yet, which has no `<svg>`.
|
|
781
819
|
*/
|
|
782
820
|
export declare function hostView<D>(attachment: Attachment<D>, options?: HostViewOptions): HostView<D>;
|
|
821
|
+
/**
|
|
822
|
+
* Makes several attachments on one `<svg>` one view for chartSwitch, as a chart drawn with several
|
|
823
|
+
* (a dumbbell's dots and its connectors) is one chart: its marks are all of theirs, and each mark's
|
|
824
|
+
* focus, tab stop, colour and hiding go to the attachment it's from. Its rows are theirs, as a union.
|
|
825
|
+
* Throws a TypeError, naming it, on anything but attachments with marks, on two in different `<svg>`s,
|
|
826
|
+
* and on a key two of them give a mark: key each one's marks apart (`first@Okafor`). An array of one
|
|
827
|
+
* makes that attachment's view.
|
|
828
|
+
*/
|
|
829
|
+
export declare function hostView<A extends Attachment<unknown>>(attachments: readonly A[], options?: HostViewOptions): HostView<RowsOf<A>>;
|
|
783
830
|
/**
|
|
784
831
|
* What fromVegaView() uses of a Vega View: its renderer, its scenegraph and the element it renders
|
|
785
832
|
* into. The scenegraph is read as `{ root }` (what Vega returns) or as the root mark itself (what
|
|
@@ -1286,7 +1333,7 @@ export declare function registerIcons(icons: readonly Icon[]): void;
|
|
|
1286
1333
|
* has the same rules. For a CSP that allows no inline styles at all.
|
|
1287
1334
|
*/
|
|
1288
1335
|
export declare function configure(options: StyleOptions): void;
|
|
1289
|
-
export declare const VERSION = "0.
|
|
1336
|
+
export declare const VERSION = "0.12.0";
|
|
1290
1337
|
/**
|
|
1291
1338
|
* A bar chart in `target` (an element or a selector). The axis whose values aren't numbers is the
|
|
1292
1339
|
* category; `stack` stacks numeric fields; `on` attaches effects by slot.
|
|
@@ -1332,4 +1379,4 @@ export declare function fromVegaView<D = Record<string, unknown>>(view: VegaView
|
|
|
1332
1379
|
* page-wide `motion`. `persist: "key"` saves the choice in localStorage.
|
|
1333
1380
|
*/
|
|
1334
1381
|
export declare function motionSwitch(target: string | Element, motion?: Motion, options?: MotionSwitchOptions): MotionSwitch;
|
|
1335
|
-
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 ChartSwitchShowOptions, 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 DrawInOptions, 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 HostLabel, type HostMark, type HostView, type HostViewOptions, 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, animated, createClock, createMotion, defaultClock, defaultScaling, describe, easeInOutCubic, easeOutCubic, interpolateNumber, interpolatePoint, interpolateRecord, linear, manualClock, matrix, mediaReducedMotion, motion, offset, playback, samplesAlong, scaleDuration, tween };
|
|
1382
|
+
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 ChartSwitchGuide, type ChartSwitchOptions, type ChartSwitchPaint, type ChartSwitchShowOptions, 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 DrawInOptions, 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 HostGuide, type HostLabel, type HostMark, type HostView, type HostViewOptions, 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, animated, createClock, createMotion, defaultClock, defaultScaling, describe, easeInOutCubic, easeOutCubic, interpolateNumber, interpolatePoint, interpolateRecord, linear, manualClock, matrix, mediaReducedMotion, motion, offset, playback, samplesAlong, scaleDuration, tween };
|
package/dist/index.d.ts
CHANGED
|
@@ -797,8 +797,8 @@ interface ExpressiveOptions<D> {
|
|
|
797
797
|
readonly keyboard?: boolean;
|
|
798
798
|
/**
|
|
799
799
|
* Dim the other marks while one is hovered (to --ec-dim-opacity), and give the hovered one its strong
|
|
800
|
-
* colour, as our charts do: its fill, or its stroke when the fill is none
|
|
801
|
-
* text colour, so darker in the light theme and lighter in the dark. Default false: the host owns its styling.
|
|
800
|
+
* colour, as our charts do: its fill, or its stroke when the fill is none or it's a `<line>`, stepped toward
|
|
801
|
+
* the text colour, so darker in the light theme and lighter in the dark. Default false: the host owns its styling.
|
|
802
802
|
*/
|
|
803
803
|
readonly dim?: boolean;
|
|
804
804
|
/**
|
|
@@ -918,8 +918,19 @@ interface ChartSwitchView {
|
|
|
918
918
|
*/
|
|
919
919
|
keyOf?(element: Element): string | undefined;
|
|
920
920
|
/**
|
|
921
|
-
*
|
|
922
|
-
*
|
|
921
|
+
* The parts of the chart that can stay put through a switch: an axis, a grid, a tick, each an
|
|
922
|
+
* element in `element` with a key of its own, read as each switch starts, before morphing(true). A
|
|
923
|
+
* guide stays on screen at full strength, where it is, while the switch plays, when the other view
|
|
924
|
+
* has a guide with its key drawn the same: the same markup in the same computed paint, with any ids
|
|
925
|
+
* left out, at the same place within 0.5 px and at the same scale and turn. The old view's is drawn
|
|
926
|
+
* until half way and the new view's from there, so one drawn the same doesn't change. Every other
|
|
927
|
+
* guide fades with its view. The switch draws each one as a copy in its overlay, so the view hides
|
|
928
|
+
* them while it plays, as it hides its marks. Without it, a view has none.
|
|
929
|
+
*/
|
|
930
|
+
guides?(): readonly ChartSwitchGuide[];
|
|
931
|
+
/**
|
|
932
|
+
* Hides (true) or shows again (false) the marks, labels and guides the switch draws in its overlay,
|
|
933
|
+
* while a switch plays: called as `element` takes `ec-morphing`, and as it loses it or the switch is
|
|
923
934
|
* destroyed mid-way. A host chart's marks don't have the class that hides a chart's. Without it,
|
|
924
935
|
* the class hides them.
|
|
925
936
|
*/
|
|
@@ -944,6 +955,13 @@ interface ChartSwitchPaint {
|
|
|
944
955
|
/** The width of the ring in `--ec-surface` the chart draws round the mark's filled shape, or round its end dot when it has one: 2 round a line chart's point and end dot. Unset: none. */
|
|
945
956
|
readonly ring?: number;
|
|
946
957
|
}
|
|
958
|
+
/** A part of a view's chart that stays put through a switch when the next view draws it the same: an axis, a grid, a tick. */
|
|
959
|
+
interface ChartSwitchGuide {
|
|
960
|
+
/** The element, in the view's `<svg>`: drawn as it is, with everything in it. */
|
|
961
|
+
readonly element: Element;
|
|
962
|
+
/** Its own key: it pairs with the other view's guide with this key, never with a mark or a label. */
|
|
963
|
+
readonly key: string;
|
|
964
|
+
}
|
|
947
965
|
/**
|
|
948
966
|
* Draws one view's chart in `container` and returns it. `colors` is the switch's assignment: pass it
|
|
949
967
|
* to the chart as its `colors`, so a key has the same colour in every view and in the overlay.
|
|
@@ -1028,6 +1046,13 @@ interface HostLabel {
|
|
|
1028
1046
|
/** "category": the mark's name (a slice's outside label, a column's name). "value": its value. */
|
|
1029
1047
|
readonly role: "category" | "value";
|
|
1030
1048
|
}
|
|
1049
|
+
/** A part of the host's drawing that a chart switch keeps where it is when the next view draws it the same: an axis, a grid, a tick. */
|
|
1050
|
+
interface HostGuide {
|
|
1051
|
+
/** An element in the host's `<svg>`, drawn as it is, with everything in it. */
|
|
1052
|
+
readonly element: Element;
|
|
1053
|
+
/** Its own key: it pairs with the next view's guide with this key, never with a mark or a label. */
|
|
1054
|
+
readonly key: string;
|
|
1055
|
+
}
|
|
1031
1056
|
interface HostViewOptions {
|
|
1032
1057
|
/**
|
|
1033
1058
|
* The host's labels, each a `<text>` in its `<svg>` with its mark's key and its role, read as each
|
|
@@ -1037,15 +1062,28 @@ interface HostViewOptions {
|
|
|
1037
1062
|
* Default: none.
|
|
1038
1063
|
*/
|
|
1039
1064
|
readonly labels?: () => Iterable<HostLabel>;
|
|
1065
|
+
/**
|
|
1066
|
+
* The host's guides (an axis, a grid, a tick), each an element in its `<svg>` with a key of its
|
|
1067
|
+
* own, read as each switch starts. One whose key the next view's guides have too stays on screen at
|
|
1068
|
+
* full strength, where it is, while the switch plays, when the two are drawn the same; every other
|
|
1069
|
+
* fades with its view. One that isn't in the `<svg>`, or has no key, is left out, and so is
|
|
1070
|
+
* everything if it throws (reported). Default: none.
|
|
1071
|
+
*/
|
|
1072
|
+
readonly guides?: () => Iterable<HostGuide>;
|
|
1040
1073
|
}
|
|
1041
|
-
/**
|
|
1074
|
+
/**
|
|
1075
|
+
* An attachment, or several on one `<svg>`, as a chart switch's view: the attachment's own methods, or
|
|
1076
|
+
* each of theirs, with the view's.
|
|
1077
|
+
*/
|
|
1042
1078
|
interface HostView<D> extends Attachment<D>, ChartSwitchView {
|
|
1043
|
-
/** The host's root `<svg
|
|
1079
|
+
/** The host's root `<svg>`, which its attachments share. Its `aria-label` is what a switch's `announce` says. */
|
|
1044
1080
|
readonly element: SVGSVGElement;
|
|
1045
|
-
/** The marks' nearest common ancestor, whose space marks() and labels() are in. */
|
|
1081
|
+
/** The marks' nearest common ancestor, whose space marks() and labels() are in: every attachment's marks'. */
|
|
1046
1082
|
readonly space: Element;
|
|
1047
1083
|
/** The labels `labels` gives, as a switch draws them: at their anchor, in the host text's computed font and fill. */
|
|
1048
1084
|
labels(): readonly ChartLabel[];
|
|
1085
|
+
/** The guides `guides` gives: each the host's own element, with its key. */
|
|
1086
|
+
guides(): readonly ChartSwitchGuide[];
|
|
1049
1087
|
/** The host's colour for the mark, its fill or its stroke on a line, as its first part draws it. */
|
|
1050
1088
|
paintOf(key: string): ChartSwitchPaint | undefined;
|
|
1051
1089
|
keyOf(element: Element): string | undefined;
|
|
@@ -1060,6 +1098,15 @@ interface HostView<D> extends Attachment<D>, ChartSwitchView {
|
|
|
1060
1098
|
* anything else, or on an attachment with no marks yet, which has no `<svg>`.
|
|
1061
1099
|
*/
|
|
1062
1100
|
export declare function hostView<D>(attachment: Attachment<D>, options?: HostViewOptions): HostView<D>;
|
|
1101
|
+
/**
|
|
1102
|
+
* Makes several attachments on one `<svg>` one view for chartSwitch, as a chart drawn with several
|
|
1103
|
+
* (a dumbbell's dots and its connectors) is one chart: its marks are all of theirs, and each mark's
|
|
1104
|
+
* focus, tab stop, colour and hiding go to the attachment it's from. Its rows are theirs, as a union.
|
|
1105
|
+
* Throws a TypeError, naming it, on anything but attachments with marks, on two in different `<svg>`s,
|
|
1106
|
+
* and on a key two of them give a mark: key each one's marks apart (`first@Okafor`). An array of one
|
|
1107
|
+
* makes that attachment's view.
|
|
1108
|
+
*/
|
|
1109
|
+
export declare function hostView<A extends Attachment<unknown>>(attachments: readonly A[], options?: HostViewOptions): HostView<RowsOf<A>>;
|
|
1063
1110
|
/**
|
|
1064
1111
|
* What fromVegaView() uses of a Vega View: its renderer, its scenegraph and the element it renders
|
|
1065
1112
|
* into. The scenegraph is read as `{ root }` (what Vega returns) or as the root mark itself (what
|
|
@@ -1566,7 +1613,7 @@ export declare function registerIcons(icons: readonly Icon[]): void;
|
|
|
1566
1613
|
* has the same rules. For a CSP that allows no inline styles at all.
|
|
1567
1614
|
*/
|
|
1568
1615
|
export declare function configure(options: StyleOptions): void;
|
|
1569
|
-
export declare const VERSION = "0.
|
|
1616
|
+
export declare const VERSION = "0.12.0";
|
|
1570
1617
|
/**
|
|
1571
1618
|
* A bar chart in `target` (an element or a selector). The axis whose values aren't numbers is the
|
|
1572
1619
|
* category; `stack` stacks numeric fields; `on` attaches effects by slot.
|
|
@@ -1612,4 +1659,4 @@ export declare function fromVegaView<D = Record<string, unknown>>(view: VegaView
|
|
|
1612
1659
|
* page-wide `motion`. `persist: "key"` saves the choice in localStorage.
|
|
1613
1660
|
*/
|
|
1614
1661
|
export declare function motionSwitch(target: string | Element, motion?: Motion, options?: MotionSwitchOptions): MotionSwitch;
|
|
1615
|
-
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 ChartSwitchShowOptions, 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 DrawInOptions, 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 HostLabel, type HostMark, type HostView, type HostViewOptions, 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 };
|
|
1662
|
+
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 ChartSwitchGuide, type ChartSwitchOptions, type ChartSwitchPaint, type ChartSwitchShowOptions, 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 DrawInOptions, 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 HostGuide, type HostLabel, type HostMark, type HostView, type HostViewOptions, 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 };
|