victory-core 36.5.0 → 36.5.3
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/victory-core.js +13817 -10827
- package/dist/victory-core.min.js +1 -1
- package/es/index.d.ts +7 -27
- package/es/index.js +7 -53
- package/es/{types.d.ts → types/callbacks.d.ts} +12 -8
- package/es/types/callbacks.js +2 -0
- package/es/types/prop-types.d.ts +130 -0
- package/es/types/prop-types.js +2 -0
- package/es/victory-accessible-group/victory-accessible-group.d.ts +1 -0
- package/es/victory-accessible-group/victory-accessible-group.js +2 -1
- package/es/victory-animation/util.d.ts +2 -1
- package/es/victory-animation/util.js +6 -4
- package/es/victory-animation/victory-animation.d.ts +1 -0
- package/es/victory-animation/victory-animation.js +2 -1
- package/es/victory-clip-container/victory-clip-container.d.ts +6 -5
- package/es/victory-clip-container/victory-clip-container.js +2 -1
- package/es/victory-container/victory-container.d.ts +8 -7
- package/es/victory-container/victory-container.js +2 -1
- package/es/victory-label/victory-label.d.ts +3 -2
- package/es/victory-label/victory-label.js +4 -4
- package/es/victory-portal/portal-context.d.ts +1 -0
- package/es/victory-portal/portal-context.js +2 -1
- package/es/victory-portal/portal.d.ts +3 -2
- package/es/victory-portal/portal.js +2 -1
- package/es/victory-portal/victory-portal.d.ts +1 -0
- package/es/victory-portal/victory-portal.js +2 -1
- package/es/victory-primitives/arc.d.ts +31 -2
- package/es/victory-primitives/arc.js +3 -2
- package/es/victory-primitives/background.d.ts +31 -2
- package/es/victory-primitives/background.js +3 -2
- package/es/victory-primitives/border.d.ts +28 -2
- package/es/victory-primitives/border.js +3 -2
- package/es/victory-primitives/circle.d.ts +1 -0
- package/es/victory-primitives/circle.js +2 -1
- package/es/victory-primitives/clip-path.d.ts +2 -1
- package/es/victory-primitives/clip-path.js +2 -1
- package/es/victory-primitives/index.d.ts +1 -0
- package/es/victory-primitives/index.js +2 -1
- package/es/victory-primitives/line-segment.d.ts +29 -2
- package/es/victory-primitives/line-segment.js +3 -2
- package/es/victory-primitives/line.d.ts +1 -0
- package/es/victory-primitives/line.js +2 -1
- package/es/victory-primitives/path.d.ts +1 -0
- package/es/victory-primitives/path.js +2 -1
- package/es/victory-primitives/point.d.ts +30 -2
- package/es/victory-primitives/point.js +3 -2
- package/es/victory-primitives/rect.d.ts +1 -0
- package/es/victory-primitives/rect.js +2 -1
- package/es/victory-primitives/text.d.ts +2 -1
- package/es/victory-primitives/text.js +2 -1
- package/es/victory-primitives/tspan.d.ts +2 -1
- package/es/victory-primitives/tspan.js +2 -1
- package/es/victory-primitives/types.d.ts +2 -1
- package/es/victory-primitives/types.js +2 -1
- package/es/victory-primitives/whisker.d.ts +37 -2
- package/es/victory-primitives/whisker.js +3 -2
- package/es/victory-state/defaults.d.ts +3 -0
- package/es/victory-state/defaults.js +3 -0
- package/es/victory-state/helpers/get-axis-data.d.ts +3 -0
- package/es/victory-state/helpers/get-axis-data.js +15 -0
- package/es/victory-state/helpers/get-data.d.ts +15 -0
- package/es/victory-state/helpers/get-data.js +88 -0
- package/es/victory-state/helpers/get-domain.d.ts +6 -0
- package/es/victory-state/helpers/get-domain.js +68 -0
- package/es/victory-state/helpers/get-range.d.ts +6 -0
- package/es/victory-state/helpers/get-range.js +37 -0
- package/es/victory-state/helpers/get-scale.d.ts +6 -0
- package/es/victory-state/helpers/get-scale.js +59 -0
- package/es/victory-state/index.d.ts +3 -0
- package/es/victory-state/index.js +3 -0
- package/es/victory-state/types.d.ts +24 -0
- package/es/victory-state/types.js +2 -0
- package/es/victory-state/victory-provider.d.ts +19 -0
- package/es/victory-state/victory-provider.js +118 -0
- package/es/victory-theme/grayscale.d.ts +2 -1
- package/es/victory-theme/grayscale.js +2 -1
- package/es/victory-theme/material.d.ts +2 -1
- package/es/victory-theme/material.js +2 -1
- package/{lib/victory-theme/victory-theme-definition.d.ts → es/victory-theme/types.d.ts} +3 -8
- package/es/victory-theme/types.js +2 -0
- package/es/victory-theme/victory-theme.d.ts +4 -3
- package/es/victory-theme/victory-theme.js +3 -2
- package/es/victory-transition/victory-transition.d.ts +1 -0
- package/es/victory-transition/victory-transition.js +2 -1
- package/es/victory-util/add-events.d.ts +106 -0
- package/es/victory-util/add-events.js +40 -33
- package/es/victory-util/axis.d.ts +51 -0
- package/es/victory-util/axis.js +9 -7
- package/es/victory-util/collection.d.ts +9 -0
- package/es/victory-util/collection.js +6 -4
- package/es/victory-util/common-props.d.ts +84 -0
- package/es/victory-util/common-props.js +29 -12
- package/es/victory-util/data.d.ts +75 -0
- package/es/victory-util/data.js +2 -1
- package/es/victory-util/default-transitions.d.ts +5 -0
- package/es/victory-util/default-transitions.js +2 -1
- package/es/victory-util/domain.d.ts +91 -0
- package/es/victory-util/domain.js +6 -2
- package/es/victory-util/events.d.ts +65 -0
- package/es/victory-util/events.js +13 -8
- package/es/victory-util/helpers.d.ts +61 -0
- package/es/victory-util/helpers.js +8 -4
- package/es/victory-util/hooks/index.d.ts +3 -0
- package/es/victory-util/hooks/index.js +2 -1
- package/es/victory-util/hooks/use-animation-state.js +4 -3
- package/es/victory-util/hooks/use-previous-props.d.ts +2 -0
- package/es/victory-util/hooks/use-previous-props.js +4 -3
- package/es/victory-util/immutable.d.ts +12 -0
- package/es/victory-util/immutable.js +5 -4
- package/es/victory-util/index.d.ts +29 -0
- package/es/victory-util/index.js +48 -0
- package/es/victory-util/label-helpers.d.ts +27 -0
- package/es/victory-util/label-helpers.js +2 -1
- package/es/victory-util/line-helpers.d.ts +5 -0
- package/es/victory-util/line-helpers.js +24 -6
- package/es/victory-util/log.d.ts +2 -0
- package/es/victory-util/log.js +2 -1
- package/es/victory-util/point-path-helpers.d.ts +1 -0
- package/es/victory-util/point-path-helpers.js +2 -1
- package/es/victory-util/prop-types.d.ts +51 -0
- package/es/victory-util/prop-types.js +35 -44
- package/es/victory-util/scale.d.ts +10 -0
- package/es/victory-util/scale.js +14 -6
- package/es/victory-util/selection.d.ts +25 -23
- package/es/victory-util/selection.js +25 -14
- package/es/victory-util/style.d.ts +19 -0
- package/es/victory-util/style.js +2 -1
- package/es/victory-util/textsize.d.ts +37 -8
- package/es/victory-util/textsize.js +9 -6
- package/es/victory-util/timer-context.d.ts +1 -0
- package/es/victory-util/timer-context.js +2 -1
- package/es/victory-util/timer.d.ts +3 -2
- package/es/victory-util/timer.js +2 -1
- package/es/victory-util/transitions.d.ts +49 -0
- package/es/victory-util/transitions.js +5 -4
- package/es/victory-util/type-helpers.d.ts +10 -0
- package/es/victory-util/type-helpers.js +28 -0
- package/es/victory-util/user-props.d.ts +21 -0
- package/es/victory-util/user-props.js +6 -5
- package/es/victory-util/with-container.d.ts +5 -0
- package/es/victory-util/with-container.js +32 -0
- package/es/victory-util/wrapper.d.ts +38 -0
- package/es/victory-util/wrapper.js +4 -3
- package/lib/index.d.ts +7 -27
- package/lib/index.js +58 -147
- package/lib/{types.d.ts → types/callbacks.d.ts} +12 -8
- package/lib/types/callbacks.js +2 -0
- package/lib/types/prop-types.d.ts +130 -0
- package/lib/types/prop-types.js +2 -0
- package/lib/victory-accessible-group/victory-accessible-group.d.ts +1 -0
- package/lib/victory-accessible-group/victory-accessible-group.js +2 -1
- package/lib/victory-animation/util.d.ts +2 -1
- package/lib/victory-animation/util.js +6 -4
- package/lib/victory-animation/victory-animation.d.ts +1 -0
- package/lib/victory-animation/victory-animation.js +2 -1
- package/lib/victory-clip-container/victory-clip-container.d.ts +6 -5
- package/lib/victory-clip-container/victory-clip-container.js +2 -1
- package/lib/victory-container/victory-container.d.ts +8 -7
- package/lib/victory-container/victory-container.js +2 -1
- package/lib/victory-label/victory-label.d.ts +3 -2
- package/lib/victory-label/victory-label.js +4 -4
- package/lib/victory-portal/portal-context.d.ts +1 -0
- package/lib/victory-portal/portal-context.js +2 -1
- package/lib/victory-portal/portal.d.ts +3 -2
- package/lib/victory-portal/portal.js +2 -1
- package/lib/victory-portal/victory-portal.d.ts +1 -0
- package/lib/victory-portal/victory-portal.js +2 -1
- package/lib/victory-primitives/arc.d.ts +31 -2
- package/lib/victory-primitives/arc.js +4 -3
- package/lib/victory-primitives/background.d.ts +31 -2
- package/lib/victory-primitives/background.js +4 -3
- package/lib/victory-primitives/border.d.ts +28 -2
- package/lib/victory-primitives/border.js +4 -3
- package/lib/victory-primitives/circle.d.ts +1 -0
- package/lib/victory-primitives/circle.js +2 -1
- package/lib/victory-primitives/clip-path.d.ts +2 -1
- package/lib/victory-primitives/clip-path.js +2 -1
- package/lib/victory-primitives/index.d.ts +1 -0
- package/lib/victory-primitives/index.js +2 -1
- package/lib/victory-primitives/line-segment.d.ts +29 -2
- package/lib/victory-primitives/line-segment.js +4 -3
- package/lib/victory-primitives/line.d.ts +1 -0
- package/lib/victory-primitives/line.js +2 -1
- package/lib/victory-primitives/path.d.ts +1 -0
- package/lib/victory-primitives/path.js +2 -1
- package/lib/victory-primitives/point.d.ts +30 -2
- package/lib/victory-primitives/point.js +4 -3
- package/lib/victory-primitives/rect.d.ts +1 -0
- package/lib/victory-primitives/rect.js +2 -1
- package/lib/victory-primitives/text.d.ts +2 -1
- package/lib/victory-primitives/text.js +2 -1
- package/lib/victory-primitives/tspan.d.ts +2 -1
- package/lib/victory-primitives/tspan.js +2 -1
- package/lib/victory-primitives/types.d.ts +2 -1
- package/lib/victory-primitives/types.js +2 -1
- package/lib/victory-primitives/whisker.d.ts +37 -2
- package/lib/victory-primitives/whisker.js +4 -3
- package/lib/victory-state/defaults.d.ts +3 -0
- package/lib/victory-state/defaults.js +11 -0
- package/lib/victory-state/helpers/get-axis-data.d.ts +3 -0
- package/lib/victory-state/helpers/get-axis-data.js +23 -0
- package/lib/victory-state/helpers/get-data.d.ts +15 -0
- package/lib/victory-state/helpers/get-data.js +99 -0
- package/lib/victory-state/helpers/get-domain.d.ts +6 -0
- package/lib/victory-state/helpers/get-domain.js +82 -0
- package/lib/victory-state/helpers/get-range.d.ts +6 -0
- package/lib/victory-state/helpers/get-range.js +46 -0
- package/lib/victory-state/helpers/get-scale.d.ts +6 -0
- package/lib/victory-state/helpers/get-scale.js +74 -0
- package/lib/victory-state/index.d.ts +3 -0
- package/lib/victory-state/index.js +32 -0
- package/lib/victory-state/types.d.ts +24 -0
- package/lib/victory-state/types.js +2 -0
- package/lib/victory-state/victory-provider.d.ts +19 -0
- package/lib/victory-state/victory-provider.js +144 -0
- package/lib/victory-theme/grayscale.d.ts +2 -1
- package/lib/victory-theme/grayscale.js +2 -1
- package/lib/victory-theme/material.d.ts +2 -1
- package/lib/victory-theme/material.js +2 -1
- package/{es/victory-theme/victory-theme-definition.d.ts → lib/victory-theme/types.d.ts} +3 -8
- package/lib/victory-theme/types.js +2 -0
- package/lib/victory-theme/victory-theme.d.ts +4 -3
- package/lib/victory-theme/victory-theme.js +6 -5
- package/lib/victory-transition/victory-transition.d.ts +1 -0
- package/lib/victory-transition/victory-transition.js +2 -1
- package/lib/victory-util/add-events.d.ts +106 -0
- package/lib/victory-util/add-events.js +40 -36
- package/lib/victory-util/axis.d.ts +51 -0
- package/lib/victory-util/axis.js +8 -6
- package/lib/victory-util/collection.d.ts +9 -0
- package/lib/victory-util/collection.js +6 -4
- package/lib/victory-util/common-props.d.ts +84 -0
- package/lib/victory-util/common-props.js +27 -12
- package/lib/victory-util/data.d.ts +75 -0
- package/lib/victory-util/data.js +2 -1
- package/lib/victory-util/default-transitions.d.ts +5 -0
- package/lib/victory-util/default-transitions.js +2 -1
- package/lib/victory-util/domain.d.ts +91 -0
- package/lib/victory-util/domain.js +6 -2
- package/lib/victory-util/events.d.ts +65 -0
- package/lib/victory-util/events.js +13 -9
- package/lib/victory-util/helpers.d.ts +61 -0
- package/lib/victory-util/helpers.js +8 -4
- package/lib/victory-util/hooks/index.d.ts +3 -0
- package/lib/victory-util/hooks/index.js +2 -1
- package/lib/victory-util/hooks/use-animation-state.js +4 -3
- package/lib/victory-util/hooks/use-previous-props.d.ts +2 -0
- package/lib/victory-util/hooks/use-previous-props.js +5 -6
- package/lib/victory-util/immutable.d.ts +12 -0
- package/lib/victory-util/immutable.js +5 -4
- package/lib/victory-util/index.d.ts +29 -0
- package/lib/victory-util/index.js +181 -0
- package/lib/victory-util/label-helpers.d.ts +27 -0
- package/lib/victory-util/label-helpers.js +2 -1
- package/lib/victory-util/line-helpers.d.ts +5 -0
- package/lib/victory-util/line-helpers.js +28 -7
- package/lib/victory-util/log.d.ts +2 -0
- package/lib/victory-util/log.js +2 -1
- package/lib/victory-util/point-path-helpers.d.ts +1 -0
- package/lib/victory-util/point-path-helpers.js +2 -1
- package/lib/victory-util/prop-types.d.ts +51 -0
- package/lib/victory-util/prop-types.js +36 -44
- package/lib/victory-util/scale.d.ts +10 -0
- package/lib/victory-util/scale.js +14 -5
- package/lib/victory-util/selection.d.ts +25 -23
- package/lib/victory-util/selection.js +25 -19
- package/lib/victory-util/style.d.ts +19 -0
- package/lib/victory-util/style.js +2 -1
- package/lib/victory-util/textsize.d.ts +37 -8
- package/lib/victory-util/textsize.js +9 -6
- package/lib/victory-util/timer-context.d.ts +1 -0
- package/lib/victory-util/timer-context.js +2 -1
- package/lib/victory-util/timer.d.ts +3 -2
- package/lib/victory-util/timer.js +2 -1
- package/lib/victory-util/transitions.d.ts +49 -0
- package/lib/victory-util/transitions.js +5 -4
- package/lib/victory-util/type-helpers.d.ts +10 -0
- package/lib/victory-util/type-helpers.js +45 -0
- package/lib/victory-util/user-props.d.ts +21 -0
- package/lib/victory-util/user-props.js +6 -5
- package/lib/victory-util/with-container.d.ts +5 -0
- package/lib/victory-util/with-container.js +44 -0
- package/lib/victory-util/wrapper.d.ts +38 -0
- package/lib/victory-util/wrapper.js +4 -3
- package/package.json +3 -3
- package/src/index.ts +9 -31
- package/src/{types.ts → types/callbacks.ts} +21 -13
- package/src/types/prop-types.ts +195 -0
- package/src/victory-accessible-group/victory-accessible-group.tsx +3 -3
- package/src/victory-animation/util.ts +3 -2
- package/src/victory-animation/victory-animation.tsx +13 -13
- package/src/victory-clip-container/victory-clip-container.tsx +23 -23
- package/src/victory-container/victory-container.tsx +19 -19
- package/src/victory-label/victory-label.tsx +41 -39
- package/src/victory-portal/portal.tsx +1 -1
- package/src/victory-portal/victory-portal.tsx +3 -3
- package/src/victory-primitives/arc.tsx +8 -6
- package/src/victory-primitives/background.tsx +8 -6
- package/src/victory-primitives/border.tsx +8 -6
- package/src/victory-primitives/clip-path.tsx +3 -3
- package/src/victory-primitives/line-segment.tsx +8 -6
- package/src/victory-primitives/point.tsx +10 -8
- package/src/victory-primitives/text.tsx +2 -2
- package/src/victory-primitives/tspan.tsx +1 -1
- package/src/victory-primitives/types.ts +1 -1
- package/src/victory-primitives/whisker.tsx +15 -13
- package/src/victory-state/defaults.ts +2 -0
- package/src/victory-state/helpers/get-axis-data.ts +14 -0
- package/src/victory-state/helpers/get-data.ts +79 -0
- package/src/victory-state/helpers/get-domain.ts +62 -0
- package/src/victory-state/helpers/get-range.ts +39 -0
- package/src/victory-state/helpers/get-scale.ts +64 -0
- package/src/victory-state/index.ts +2 -0
- package/src/victory-state/types.ts +32 -0
- package/src/victory-state/victory-provider.tsx +116 -0
- package/src/victory-theme/grayscale.tsx +62 -62
- package/src/victory-theme/material.tsx +67 -67
- package/src/victory-theme/{victory-theme-definition.ts → types.ts} +10 -14
- package/src/victory-theme/victory-theme.tsx +1 -1
- package/src/victory-transition/victory-transition.tsx +19 -19
- package/src/victory-util/{add-events.js → add-events.tsx} +136 -59
- package/src/victory-util/{axis.js → axis.tsx} +17 -18
- package/src/victory-util/{collection.js → collection.tsx} +14 -10
- package/src/victory-util/common-props.tsx +307 -0
- package/src/victory-util/{data.js → data.ts} +14 -10
- package/src/victory-util/{default-transitions.js → default-transitions.ts} +20 -18
- package/src/victory-util/{domain.js → domain.ts} +26 -23
- package/src/victory-util/{events.js → events.ts} +82 -31
- package/src/victory-util/{helpers.js → helpers.ts} +41 -22
- package/src/victory-util/hooks/{index.js → index.ts} +0 -0
- package/src/victory-util/hooks/use-animation-state.js +12 -12
- package/src/victory-util/hooks/use-previous-props.ts +9 -0
- package/src/victory-util/{immutable.js → immutable.ts} +14 -10
- package/src/victory-util/index.ts +28 -0
- package/src/victory-util/{label-helpers.js → label-helpers.ts} +7 -7
- package/src/victory-util/line-helpers.ts +104 -0
- package/src/victory-util/{log.js → log.ts} +1 -1
- package/src/victory-util/{prop-types.js → prop-types.ts} +103 -101
- package/src/victory-util/{scale.js → scale.ts} +29 -16
- package/src/victory-util/selection.ts +158 -0
- package/src/victory-util/{style.js → style.ts} +3 -3
- package/src/victory-util/{textsize.js → textsize.ts} +32 -17
- package/src/victory-util/timer-context.ts +1 -1
- package/src/victory-util/timer.ts +5 -10
- package/src/victory-util/{transitions.js → transitions.ts} +50 -22
- package/src/victory-util/type-helpers.ts +50 -0
- package/src/victory-util/{user-props.js → user-props.ts} +16 -11
- package/src/victory-util/with-container.tsx +41 -0
- package/src/victory-util/{wrapper.js → wrapper.tsx} +38 -33
- package/es/types.js +0 -1
- package/es/victory-theme/victory-theme-definition.js +0 -1
- package/es/victory-util/types.d.ts +0 -188
- package/es/victory-util/types.js +0 -1
- package/lib/types.js +0 -1
- package/lib/victory-theme/victory-theme-definition.js +0 -1
- package/lib/victory-util/types.d.ts +0 -188
- package/lib/victory-util/types.js +0 -1
- package/src/victory-util/common-props.js +0 -197
- package/src/victory-util/hooks/use-previous-props.js +0 -9
- package/src/victory-util/line-helpers.js +0 -54
- package/src/victory-util/selection.d.ts +0 -23
- package/src/victory-util/selection.js +0 -98
- package/src/victory-util/textsize.d.ts +0 -8
- package/src/victory-util/types.ts +0 -247
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns a getDomain function
|
|
3
|
+
* @param {Function} getDomainFromDataFunction: a function that takes props and axis and
|
|
4
|
+
* returns a domain based on data
|
|
5
|
+
* @param {Function} formatDomainFunction: a function that takes domain, props, and axis and
|
|
6
|
+
* returns a formatted domain
|
|
7
|
+
* @returns {Function} a function that takes props and axis and returns a formatted domain
|
|
8
|
+
*/
|
|
9
|
+
export declare function createDomainFunction(getDomainFromDataFunction?: any, formatDomainFunction?: any): (props: any, axis: any) => any;
|
|
10
|
+
/**
|
|
11
|
+
* Returns a formatted domain.
|
|
12
|
+
* @param {Array} domain: a domain in the form of a two element array
|
|
13
|
+
* @param {Object} props: the props object
|
|
14
|
+
* @param {String} axis: the current axis
|
|
15
|
+
* @returns {Array} a domain in the form of a two element array
|
|
16
|
+
*/
|
|
17
|
+
export declare function formatDomain(domain: any, props: any, axis: any): any;
|
|
18
|
+
/**
|
|
19
|
+
* Returns a domain for a given axis based on props, category, or data
|
|
20
|
+
* @param {Object} props: the props object
|
|
21
|
+
* @param {String} axis: the current axis
|
|
22
|
+
* @returns {Array} the domain for the given axis
|
|
23
|
+
*/
|
|
24
|
+
export declare function getDomain(props: any, axis: any): any;
|
|
25
|
+
/**
|
|
26
|
+
* Returns a domain based on categories if they exist
|
|
27
|
+
* @param {Object} props: the props object
|
|
28
|
+
* @param {String} axis: the current axis
|
|
29
|
+
* @param {Array} categories: an array of categories corresponding to a given axis
|
|
30
|
+
* @returns {Array|undefined} returns a domain from categories or undefined
|
|
31
|
+
*/
|
|
32
|
+
export declare function getDomainFromCategories(props: any, axis: any, categories?: any): any[] | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Returns a domain from a dataset for a given axis
|
|
35
|
+
* @param {Object} props: the props object
|
|
36
|
+
* @param {String} axis: the current axis
|
|
37
|
+
* @param {Array} dataset: an array of data
|
|
38
|
+
* @returns {Array} the domain based on data
|
|
39
|
+
*/
|
|
40
|
+
export declare function getDomainFromData(props: any, axis: any, dataset: any): any[] | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* Returns a domain in the form of a two element array given a min and max value.
|
|
43
|
+
* @param {Number|Date} min: the props object
|
|
44
|
+
* @param {Number|Date} max: the current axis
|
|
45
|
+
* @returns {Array} the minDomain based on props
|
|
46
|
+
*/
|
|
47
|
+
export declare function getDomainFromMinMax(min: any, max: any): any[];
|
|
48
|
+
/**
|
|
49
|
+
* Returns a the domain for a given axis if domain is given in props
|
|
50
|
+
* @param {Object} props: the props object
|
|
51
|
+
* @param {String} axis: the current axis
|
|
52
|
+
* @returns {Array|undefined} the domain based on props
|
|
53
|
+
*/
|
|
54
|
+
export declare function getDomainFromProps(props: any, axis: any): any;
|
|
55
|
+
/**
|
|
56
|
+
* Returns a domain for a given axis. This method forces the domain to include
|
|
57
|
+
* zero unless the domain is explicitly specified in props.
|
|
58
|
+
* @param {Object} props: the props object
|
|
59
|
+
* @param {String} axis: the current axis
|
|
60
|
+
* @returns {Array} the domain for the given axis
|
|
61
|
+
*/
|
|
62
|
+
export declare function getDomainWithZero(props: any, axis: any): any;
|
|
63
|
+
/**
|
|
64
|
+
* Returns the maxDomain from props if it exists
|
|
65
|
+
* @param {Object} props: the props object
|
|
66
|
+
* @param {String} axis: the current axis
|
|
67
|
+
* @returns {Number|Date|undefined} the maxDomain based on props
|
|
68
|
+
*/
|
|
69
|
+
export declare function getMaxFromProps(props: any, axis: any): any;
|
|
70
|
+
/**
|
|
71
|
+
* Returns the minDomain from props if it exists
|
|
72
|
+
* @param {Object} props: the props object
|
|
73
|
+
* @param {String} axis: the current axis
|
|
74
|
+
* @returns {Number|Date|undefined} the minDomain based on props
|
|
75
|
+
*/
|
|
76
|
+
export declare function getMinFromProps(props: any, axis: any): any;
|
|
77
|
+
/**
|
|
78
|
+
* Returns a symmetrically padded domain for polar charts
|
|
79
|
+
* @param {Array} domain: the original domain
|
|
80
|
+
* @param {Array} values: a flat array of values corresponding to either tickValues, or data values
|
|
81
|
+
* for a given dimension i.e. only x values.
|
|
82
|
+
* @returns {Array} the symmetric domain
|
|
83
|
+
*/
|
|
84
|
+
export declare function getSymmetricDomain(domain: any, values: number[]): any[];
|
|
85
|
+
/**
|
|
86
|
+
* Checks whether a given component can be used to calculate domain
|
|
87
|
+
* @param {Component} component: a React component instance
|
|
88
|
+
* @returns {Boolean} Returns true if the given component has a role included in the whitelist
|
|
89
|
+
*/
|
|
90
|
+
export declare function isDomainComponent(component: any): boolean;
|
|
91
|
+
//# sourceMappingURL=domain.d.ts.map
|
|
@@ -89,8 +89,9 @@ function getDomainPadding(props, axis) {
|
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
function getFlatData(dataset, axis) {
|
|
92
|
+
var axisKey = "_".concat(axis);
|
|
92
93
|
return (0, _flatten2.default)(dataset).map(function (datum) {
|
|
93
|
-
return datum[
|
|
94
|
+
return datum[axisKey] && datum[axisKey][1] !== undefined ? datum[axisKey][1] : datum[axisKey];
|
|
94
95
|
});
|
|
95
96
|
}
|
|
96
97
|
|
|
@@ -153,7 +154,9 @@ function padDomain(domain, props, axis) {
|
|
|
153
154
|
if (addsQuadrants && singleQuadrantDomainPadding !== false) {
|
|
154
155
|
// Naive initial padding calculation
|
|
155
156
|
var initialPadding = {
|
|
157
|
+
// @ts-expect-error `max/min` might be dates
|
|
156
158
|
left: Math.abs(max - min) * padding.left / rangeExtent,
|
|
159
|
+
// @ts-expect-error `max/min` might be dates
|
|
157
160
|
right: Math.abs(max - min) * padding.right / rangeExtent
|
|
158
161
|
}; // Adjust the domain by the initial padding
|
|
159
162
|
|
|
@@ -448,4 +451,5 @@ function isDomainComponent(component) {
|
|
|
448
451
|
|
|
449
452
|
var whitelist = ["area", "axis", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"];
|
|
450
453
|
return (0, _includes2.default)(whitelist, role);
|
|
451
|
-
}
|
|
454
|
+
}
|
|
455
|
+
//# sourceMappingURL=domain.js.map
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { EventMixinCalculatedValues } from "./add-events";
|
|
3
|
+
declare type ComponentEventKey = string | number;
|
|
4
|
+
export interface ComponentEvent {
|
|
5
|
+
target?: "parent" | string;
|
|
6
|
+
eventKey?: ComponentEventKey | ComponentEventKey[];
|
|
7
|
+
eventHandlers: ComponentEventHandlers;
|
|
8
|
+
}
|
|
9
|
+
export declare type ComponentEventName = `on${Capitalize<string>}`;
|
|
10
|
+
export interface ComponentEventHandlers {
|
|
11
|
+
[k: ComponentEventName]: ComponentEventHandler;
|
|
12
|
+
}
|
|
13
|
+
export declare type ComponentEventHandler = (evt: React.SyntheticEvent, childProps: unknown, eventKey: ComponentEventKey, eventName: ComponentEventName) => UpdatedProps;
|
|
14
|
+
export declare type UpdatedProps = any;
|
|
15
|
+
interface ComponentWithEvents extends EventMixinCalculatedValues {
|
|
16
|
+
state: any;
|
|
17
|
+
setState: any;
|
|
18
|
+
}
|
|
19
|
+
export declare function getEvents(this: ComponentWithEvents, props: any, target: any, eventKey: any, getScopedEvents: any): any;
|
|
20
|
+
export declare function getScopedEvents(this: ComponentWithEvents, events: any, namespace: any, childType: any, baseProps: any): {};
|
|
21
|
+
export declare function getPartialEvents(events: ComponentEventHandlers, eventKey: ComponentEventKey, childProps: unknown): PartialEvents;
|
|
22
|
+
export interface PartialEvents {
|
|
23
|
+
[eventName: ComponentEventName]: (evt: React.SyntheticEvent) => UpdatedProps;
|
|
24
|
+
}
|
|
25
|
+
export declare function getEventState(this: ComponentWithEvents, eventKey: ComponentEventKey, namespace: string, childType?: string): any;
|
|
26
|
+
/**
|
|
27
|
+
* Returns a set of all mutations for shared events
|
|
28
|
+
*
|
|
29
|
+
* @param {Array} mutations an array of mutations objects
|
|
30
|
+
* @param {Object} baseProps an object that describes all props for children of VictorySharedEvents
|
|
31
|
+
* @param {Object} baseState an object that describes state for children of VictorySharedEvents
|
|
32
|
+
* @param {Array} childNames an array of childNames
|
|
33
|
+
*
|
|
34
|
+
* @return {Object} a object describing all mutations for VictorySharedEvents
|
|
35
|
+
*/
|
|
36
|
+
export declare function getExternalMutationsWithChildren(mutations: any, baseProps: any, baseState: any, childNames: any): any;
|
|
37
|
+
/**
|
|
38
|
+
* Returns a set of all mutations for a component
|
|
39
|
+
*
|
|
40
|
+
* @param {Array} mutations an array of mutations objects
|
|
41
|
+
* @param {Object} baseProps a props object (scoped to a childName when used by shared events)
|
|
42
|
+
* @param {Object} baseState a state object (scoped to a childName when used by shared events)
|
|
43
|
+
* @param {String} childName an optional childName
|
|
44
|
+
*
|
|
45
|
+
* @return {Object} a object describing mutations for a given component
|
|
46
|
+
*/
|
|
47
|
+
export declare function getExternalMutations(mutations: any, baseProps: any, baseState: any, childName?: any): {};
|
|
48
|
+
/**
|
|
49
|
+
* Returns a set of mutations for a particular element given scoped baseProps and baseState
|
|
50
|
+
*
|
|
51
|
+
* @param {Array} mutations an array of mutations objects
|
|
52
|
+
* @param {Object} baseProps a props object (scoped the element specified by the identifier)
|
|
53
|
+
* @param {Object} baseState a state object (scoped the element specified by the identifier)
|
|
54
|
+
* @param {Object} identifier { eventKey, target, childName }
|
|
55
|
+
*
|
|
56
|
+
* @return {Object | undefined} a object describing mutations for a given element, or undefined
|
|
57
|
+
*/
|
|
58
|
+
export declare function getExternalMutation(mutations: any, baseProps: any, baseState: any, identifier: any): any;
|
|
59
|
+
export declare function getComponentEvents(props: any, components: any): any;
|
|
60
|
+
export declare function getGlobalEventNameFromKey(key: any): any;
|
|
61
|
+
export declare const getGlobalEvents: (events: any) => Partial<any>;
|
|
62
|
+
export declare const omitGlobalEvents: (events: any) => Partial<any>;
|
|
63
|
+
export declare const emulateReactEvent: (event: any) => any;
|
|
64
|
+
export {};
|
|
65
|
+
//# sourceMappingURL=events.d.ts.map
|
|
@@ -51,15 +51,16 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
51
51
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
52
52
|
|
|
53
53
|
var GLOBAL_EVENT_REGEX = /^onGlobal(.*)$/;
|
|
54
|
+
|
|
54
55
|
/* Returns all own and shared events that should be attached to a single target element,
|
|
55
56
|
* i.e. an individual bar specified by target: "data", eventKey: [index].
|
|
56
57
|
* Returned events are scoped to the appropriate state. Either that of the component itself
|
|
57
58
|
* (i.e. VictoryBar) in the case of own events, or that of the parent component
|
|
58
59
|
* (i.e. VictoryChart) in the case of shared events
|
|
59
60
|
*/
|
|
60
|
-
// eslint-disable-next-line max-params
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
// eslint-disable-next-line max-params
|
|
62
|
+
function getEvents(props, target, eventKey, // eslint-disable-next-line no-shadow
|
|
63
|
+
getScopedEvents) {
|
|
63
64
|
var _this = this;
|
|
64
65
|
|
|
65
66
|
// Returns all events that apply to a particular target element
|
|
@@ -283,26 +284,28 @@ function getScopedEvents(events, namespace, childType, baseProps) {
|
|
|
283
284
|
return memo;
|
|
284
285
|
}, {});
|
|
285
286
|
}
|
|
286
|
-
/*
|
|
287
|
+
/*
|
|
288
|
+
* Returns a partially applied event handler for a specific target element
|
|
287
289
|
* This allows event handlers to have access to props controlling each element
|
|
288
290
|
*/
|
|
289
291
|
|
|
290
292
|
|
|
291
293
|
function getPartialEvents(events, eventKey, childProps) {
|
|
292
|
-
|
|
294
|
+
if (!events) return {};
|
|
295
|
+
return (0, _keys2.default)(events).reduce(function (memo, eventName) {
|
|
293
296
|
var appliedEvent = function (evt) {
|
|
294
297
|
return events[eventName](evt, childProps, eventKey, eventName);
|
|
295
298
|
};
|
|
296
299
|
|
|
297
300
|
memo[eventName] = appliedEvent;
|
|
298
301
|
return memo;
|
|
299
|
-
}, {})
|
|
302
|
+
}, {});
|
|
300
303
|
}
|
|
304
|
+
|
|
301
305
|
/* Returns the property of the state object corresponding to event changes for
|
|
302
306
|
* a particular element
|
|
303
307
|
*/
|
|
304
|
-
|
|
305
|
-
|
|
308
|
+
// eslint-disable-next-line max-params
|
|
306
309
|
function getEventState(eventKey, namespace, childType) {
|
|
307
310
|
// Mandatory usage: `getEventState.bind(this)`
|
|
308
311
|
// eslint-disable-next-line no-invalid-this
|
|
@@ -497,4 +500,5 @@ var emulateReactEvent = function (event) {
|
|
|
497
500
|
});
|
|
498
501
|
};
|
|
499
502
|
|
|
500
|
-
exports.emulateReactEvent = emulateReactEvent;
|
|
503
|
+
exports.emulateReactEvent = emulateReactEvent;
|
|
504
|
+
//# sourceMappingURL=events.js.map
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* creates an object with some keys excluded
|
|
4
|
+
* replacement for lodash.omit for performance. does not mimic the entire lodash.omit api
|
|
5
|
+
* @param {Object} originalObject: created object will be based on this object
|
|
6
|
+
* @param {Array<String>} ks: an array of keys to omit from the new object
|
|
7
|
+
* @returns {Object} new object with same properties as originalObject
|
|
8
|
+
*/
|
|
9
|
+
export declare function omit<T, Keys extends keyof T>(originalObject: T, ks?: Array<Keys>): Omit<T, Keys>;
|
|
10
|
+
export declare function getPoint(datum: any): any;
|
|
11
|
+
export declare function scalePoint(props: any, datum: any): {
|
|
12
|
+
x: any;
|
|
13
|
+
x0: any;
|
|
14
|
+
y: any;
|
|
15
|
+
y0: any;
|
|
16
|
+
};
|
|
17
|
+
export declare function getPadding(props: any, name?: string): {
|
|
18
|
+
top: any;
|
|
19
|
+
bottom: any;
|
|
20
|
+
left: any;
|
|
21
|
+
right: any;
|
|
22
|
+
};
|
|
23
|
+
export declare function isTooltip(component: any): boolean;
|
|
24
|
+
export declare function getDefaultStyles(props: any, role: any): any;
|
|
25
|
+
export declare function getStyles(style: any, defaultStyles: any): any;
|
|
26
|
+
export declare function evaluateProp(prop: any, props: any): any;
|
|
27
|
+
export declare function evaluateStyle(style: any, props: any): any;
|
|
28
|
+
export declare function degreesToRadians(degrees: any): any;
|
|
29
|
+
export declare function radiansToDegrees(radians: any): any;
|
|
30
|
+
export declare function getRadius(props: any): number;
|
|
31
|
+
export declare function getPolarOrigin(props: any): {
|
|
32
|
+
x: number;
|
|
33
|
+
y: number;
|
|
34
|
+
};
|
|
35
|
+
export declare function getRange(props: any, axis: any): any;
|
|
36
|
+
export declare function createAccessor(key: any): (...args: any[]) => any;
|
|
37
|
+
export declare function modifyProps(props: any, fallbackProps?: any, role?: any): any;
|
|
38
|
+
/**
|
|
39
|
+
* Returns the given axis or the opposite axis when horizontal
|
|
40
|
+
* @param {string} axis: the given axis, either "x" pr "y"
|
|
41
|
+
* @param {Boolean} horizontal: true when the chart is flipped to the horizontal orientation
|
|
42
|
+
* @returns {String} the dimension appropriate for the axis given its props "x" or "y"
|
|
43
|
+
*/
|
|
44
|
+
export declare function getCurrentAxis(axis: any, horizontal: any): any;
|
|
45
|
+
/**
|
|
46
|
+
* @param {Array} children: an array of child components
|
|
47
|
+
* @param {Function} iteratee: a function with arguments "child", "childName", and "parent"
|
|
48
|
+
* @param {Object} parentProps: props from the parent that are applied to children
|
|
49
|
+
* @param {any} initialMemo: The object in which the iteration results are combined.
|
|
50
|
+
* @param {Function} combine: Combines the result of the iteratee with the current memo
|
|
51
|
+
* to the memo for the next iteration step
|
|
52
|
+
* @returns {Array} returns an array of results from calling the iteratee on all nested children
|
|
53
|
+
*/
|
|
54
|
+
export declare function reduceChildren<TChildren extends React.ReactNode, TItem, TResult = TItem[]>(children: TChildren[], iteratee: (child: TChildren, childName: string, parent?: TChildren) => TItem | null, parentProps?: {}, initialMemo?: TResult, combine?: (memo: TResult, item: TItem) => TResult): TResult;
|
|
55
|
+
/**
|
|
56
|
+
* @param {Object} props: the props object
|
|
57
|
+
* @returns {Boolean} returns true if the props object contains `horizontal: true` of if any
|
|
58
|
+
* children or nested children are horizontal
|
|
59
|
+
*/
|
|
60
|
+
export declare function isHorizontal(props: any): any;
|
|
61
|
+
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -65,7 +65,7 @@ function getPolarRange(props, axis) {
|
|
|
65
65
|
|
|
66
66
|
/**
|
|
67
67
|
* creates an object with some keys excluded
|
|
68
|
-
* replacement for lodash.omit for performance. does not
|
|
68
|
+
* replacement for lodash.omit for performance. does not mimic the entire lodash.omit api
|
|
69
69
|
* @param {Object} originalObject: created object will be based on this object
|
|
70
70
|
* @param {Array<String>} ks: an array of keys to omit from the new object
|
|
71
71
|
* @returns {Object} new object with same properties as originalObject
|
|
@@ -78,6 +78,7 @@ function omit(originalObject) {
|
|
|
78
78
|
var newObject = {};
|
|
79
79
|
|
|
80
80
|
for (var key in originalObject) {
|
|
81
|
+
// @ts-expect-error String is not assignable to Key
|
|
81
82
|
if (ks.indexOf(key) >= 0) {
|
|
82
83
|
continue;
|
|
83
84
|
}
|
|
@@ -325,7 +326,9 @@ function reduceChildren(children, iteratee) {
|
|
|
325
326
|
var parentProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
326
327
|
var initialMemo = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
|
|
327
328
|
var combine = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : function (memo, item) {
|
|
328
|
-
return
|
|
329
|
+
return (// @ts-expect-error These defaults are hard to type
|
|
330
|
+
memo.concat(item)
|
|
331
|
+
);
|
|
329
332
|
};
|
|
330
333
|
var sharedProps = ["data", "domain", "categories", "polar", "startAngle", "endAngle", "minDomain", "maxDomain", "horizontal"];
|
|
331
334
|
|
|
@@ -367,7 +370,7 @@ function reduceChildren(children, iteratee) {
|
|
|
367
370
|
/**
|
|
368
371
|
* @param {Object} props: the props object
|
|
369
372
|
* @returns {Boolean} returns true if the props object contains `horizontal: true` of if any
|
|
370
|
-
* children or nested children are
|
|
373
|
+
* children or nested children are horizontal
|
|
371
374
|
*/
|
|
372
375
|
|
|
373
376
|
|
|
@@ -390,4 +393,5 @@ function isHorizontal(props) {
|
|
|
390
393
|
};
|
|
391
394
|
|
|
392
395
|
return traverseChildren(_react.default.Children.toArray(props.children));
|
|
393
|
-
}
|
|
396
|
+
}
|
|
397
|
+
//# sourceMappingURL=helpers.js.map
|
|
@@ -18,4 +18,5 @@ Object.defineProperty(exports, "usePreviousProps", {
|
|
|
18
18
|
|
|
19
19
|
var _usePreviousProps = require("./use-previous-props");
|
|
20
20
|
|
|
21
|
-
var _useAnimationState = require("./use-animation-state");
|
|
21
|
+
var _useAnimationState = require("./use-animation-state");
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -62,7 +62,7 @@ var useAnimationState = function () {
|
|
|
62
62
|
|
|
63
63
|
|
|
64
64
|
var getAnimationProps = _react.default.useCallback(function (props, child, index) {
|
|
65
|
-
if (!props.animate) {
|
|
65
|
+
if (!(props !== null && props !== void 0 && props.animate)) {
|
|
66
66
|
return child.props.animate;
|
|
67
67
|
}
|
|
68
68
|
|
|
@@ -96,7 +96,7 @@ var useAnimationState = function () {
|
|
|
96
96
|
|
|
97
97
|
|
|
98
98
|
var setAnimationState = _react.default.useCallback(function (props, nextProps) {
|
|
99
|
-
if (!props.animate) {
|
|
99
|
+
if (!props || !props.animate) {
|
|
100
100
|
return;
|
|
101
101
|
}
|
|
102
102
|
|
|
@@ -156,4 +156,5 @@ var useAnimationState = function () {
|
|
|
156
156
|
};
|
|
157
157
|
};
|
|
158
158
|
|
|
159
|
-
exports.useAnimationState = useAnimationState;
|
|
159
|
+
exports.useAnimationState = useAnimationState;
|
|
160
|
+
//# sourceMappingURL=use-animation-state.js.map
|
|
@@ -3,20 +3,19 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.usePreviousProps =
|
|
6
|
+
exports.usePreviousProps = usePreviousProps;
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
function usePreviousProps(props) {
|
|
13
13
|
var ref = _react.default.useRef();
|
|
14
14
|
|
|
15
15
|
_react.default.useEffect(function () {
|
|
16
16
|
ref.current = props;
|
|
17
17
|
});
|
|
18
18
|
|
|
19
|
-
return ref.current
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
exports.usePreviousProps = usePreviousProps;
|
|
19
|
+
return ref.current;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=use-previous-props.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Iterable, List, Map } from "immutable";
|
|
2
|
+
export declare const IMMUTABLE_ITERABLE = "@@__IMMUTABLE_ITERABLE__@@";
|
|
3
|
+
export declare const IMMUTABLE_RECORD = "@@__IMMUTABLE_RECORD__@@";
|
|
4
|
+
export declare const IMMUTABLE_LIST = "@@__IMMUTABLE_LIST__@@";
|
|
5
|
+
export declare const IMMUTABLE_MAP = "@@__IMMUTABLE_MAP__@@";
|
|
6
|
+
export declare function isIterable(x: any): x is Iterable<unknown, unknown>;
|
|
7
|
+
export declare function isRecord(x: any): x is Record<string, unknown>;
|
|
8
|
+
export declare function isImmutable(x: any): x is Iterable<unknown, unknown> | Record<string, unknown>;
|
|
9
|
+
export declare function isList(x: any): x is List<unknown>;
|
|
10
|
+
export declare function isMap(x: any): x is Map<unknown, unknown>;
|
|
11
|
+
export declare function shallowToJS(x: any, whitelist?: Record<string, boolean | unknown>): any;
|
|
12
|
+
//# sourceMappingURL=immutable.d.ts.map
|
|
@@ -40,12 +40,13 @@ function isMap(x) {
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
function shallowToJS(x, whitelist) {
|
|
43
|
-
return isIterable(x) ? x.reduce(function (
|
|
43
|
+
return isIterable(x) ? x.reduce(function (result, curr, key) {
|
|
44
44
|
if (whitelist && whitelist[key]) {
|
|
45
45
|
curr = shallowToJS(curr);
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
|
|
49
|
-
return
|
|
48
|
+
result[key] = curr;
|
|
49
|
+
return result;
|
|
50
50
|
}, isList(x) ? [] : {}) : x;
|
|
51
|
-
}
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=immutable.js.map
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export * from "./add-events";
|
|
2
|
+
export * as Axis from "./axis";
|
|
3
|
+
export * as Collection from "./collection";
|
|
4
|
+
export * from "./common-props";
|
|
5
|
+
export * as Data from "./data";
|
|
6
|
+
export * as DefaultTransitions from "./default-transitions";
|
|
7
|
+
export * as Domain from "./domain";
|
|
8
|
+
export * as Events from "./events";
|
|
9
|
+
export * as Helpers from "./helpers";
|
|
10
|
+
export * as Hooks from "./hooks";
|
|
11
|
+
export * as Immutable from "./immutable";
|
|
12
|
+
export * as LabelHelpers from "./label-helpers";
|
|
13
|
+
export * as LineHelpers from "./line-helpers";
|
|
14
|
+
export * as Log from "./log";
|
|
15
|
+
export * as PointPathHelpers from "./point-path-helpers";
|
|
16
|
+
export * as PropTypes from "./prop-types";
|
|
17
|
+
export * as Scale from "./scale";
|
|
18
|
+
export * as Selection from "./selection";
|
|
19
|
+
export type { SVGCoordinateType, SVGCoordinateBounds } from "./selection";
|
|
20
|
+
export * as Style from "./style";
|
|
21
|
+
export * as TextSize from "./textsize";
|
|
22
|
+
export type { TextSizeStyleInterface } from "./textsize";
|
|
23
|
+
export { default as Timer } from "./timer";
|
|
24
|
+
export { default as TimerContext } from "./timer-context";
|
|
25
|
+
export * as Transitions from "./transitions";
|
|
26
|
+
export * as UserProps from "./user-props";
|
|
27
|
+
export * as Wrapper from "./wrapper";
|
|
28
|
+
export * from "./with-container";
|
|
29
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _exportNames = {
|
|
7
|
+
Axis: true,
|
|
8
|
+
Collection: true,
|
|
9
|
+
Data: true,
|
|
10
|
+
DefaultTransitions: true,
|
|
11
|
+
Domain: true,
|
|
12
|
+
Events: true,
|
|
13
|
+
Helpers: true,
|
|
14
|
+
Hooks: true,
|
|
15
|
+
Immutable: true,
|
|
16
|
+
LabelHelpers: true,
|
|
17
|
+
LineHelpers: true,
|
|
18
|
+
Log: true,
|
|
19
|
+
PointPathHelpers: true,
|
|
20
|
+
PropTypes: true,
|
|
21
|
+
Scale: true,
|
|
22
|
+
Selection: true,
|
|
23
|
+
Style: true,
|
|
24
|
+
TextSize: true,
|
|
25
|
+
Timer: true,
|
|
26
|
+
TimerContext: true,
|
|
27
|
+
Transitions: true,
|
|
28
|
+
UserProps: true,
|
|
29
|
+
Wrapper: true
|
|
30
|
+
};
|
|
31
|
+
exports.TextSize = exports.Style = exports.Selection = exports.Scale = exports.PropTypes = exports.PointPathHelpers = exports.Log = exports.LineHelpers = exports.LabelHelpers = exports.Immutable = exports.Hooks = exports.Helpers = exports.Events = exports.Domain = exports.DefaultTransitions = exports.Data = exports.Collection = exports.Axis = void 0;
|
|
32
|
+
Object.defineProperty(exports, "Timer", {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function () {
|
|
35
|
+
return _timer.default;
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
Object.defineProperty(exports, "TimerContext", {
|
|
39
|
+
enumerable: true,
|
|
40
|
+
get: function () {
|
|
41
|
+
return _timerContext.default;
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
exports.Wrapper = exports.UserProps = exports.Transitions = void 0;
|
|
45
|
+
|
|
46
|
+
var _addEvents = require("./add-events");
|
|
47
|
+
|
|
48
|
+
Object.keys(_addEvents).forEach(function (key) {
|
|
49
|
+
if (key === "default" || key === "__esModule") return;
|
|
50
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
51
|
+
if (key in exports && exports[key] === _addEvents[key]) return;
|
|
52
|
+
Object.defineProperty(exports, key, {
|
|
53
|
+
enumerable: true,
|
|
54
|
+
get: function () {
|
|
55
|
+
return _addEvents[key];
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
var _Axis = _interopRequireWildcard(require("./axis"));
|
|
61
|
+
|
|
62
|
+
exports.Axis = _Axis;
|
|
63
|
+
|
|
64
|
+
var _Collection = _interopRequireWildcard(require("./collection"));
|
|
65
|
+
|
|
66
|
+
exports.Collection = _Collection;
|
|
67
|
+
|
|
68
|
+
var _commonProps = require("./common-props");
|
|
69
|
+
|
|
70
|
+
Object.keys(_commonProps).forEach(function (key) {
|
|
71
|
+
if (key === "default" || key === "__esModule") return;
|
|
72
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
73
|
+
if (key in exports && exports[key] === _commonProps[key]) return;
|
|
74
|
+
Object.defineProperty(exports, key, {
|
|
75
|
+
enumerable: true,
|
|
76
|
+
get: function () {
|
|
77
|
+
return _commonProps[key];
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
var _Data = _interopRequireWildcard(require("./data"));
|
|
83
|
+
|
|
84
|
+
exports.Data = _Data;
|
|
85
|
+
|
|
86
|
+
var _DefaultTransitions = _interopRequireWildcard(require("./default-transitions"));
|
|
87
|
+
|
|
88
|
+
exports.DefaultTransitions = _DefaultTransitions;
|
|
89
|
+
|
|
90
|
+
var _Domain = _interopRequireWildcard(require("./domain"));
|
|
91
|
+
|
|
92
|
+
exports.Domain = _Domain;
|
|
93
|
+
|
|
94
|
+
var _Events = _interopRequireWildcard(require("./events"));
|
|
95
|
+
|
|
96
|
+
exports.Events = _Events;
|
|
97
|
+
|
|
98
|
+
var _Helpers = _interopRequireWildcard(require("./helpers"));
|
|
99
|
+
|
|
100
|
+
exports.Helpers = _Helpers;
|
|
101
|
+
|
|
102
|
+
var _Hooks = _interopRequireWildcard(require("./hooks"));
|
|
103
|
+
|
|
104
|
+
exports.Hooks = _Hooks;
|
|
105
|
+
|
|
106
|
+
var _Immutable = _interopRequireWildcard(require("./immutable"));
|
|
107
|
+
|
|
108
|
+
exports.Immutable = _Immutable;
|
|
109
|
+
|
|
110
|
+
var _LabelHelpers = _interopRequireWildcard(require("./label-helpers"));
|
|
111
|
+
|
|
112
|
+
exports.LabelHelpers = _LabelHelpers;
|
|
113
|
+
|
|
114
|
+
var _LineHelpers = _interopRequireWildcard(require("./line-helpers"));
|
|
115
|
+
|
|
116
|
+
exports.LineHelpers = _LineHelpers;
|
|
117
|
+
|
|
118
|
+
var _Log = _interopRequireWildcard(require("./log"));
|
|
119
|
+
|
|
120
|
+
exports.Log = _Log;
|
|
121
|
+
|
|
122
|
+
var _PointPathHelpers = _interopRequireWildcard(require("./point-path-helpers"));
|
|
123
|
+
|
|
124
|
+
exports.PointPathHelpers = _PointPathHelpers;
|
|
125
|
+
|
|
126
|
+
var _PropTypes = _interopRequireWildcard(require("./prop-types"));
|
|
127
|
+
|
|
128
|
+
exports.PropTypes = _PropTypes;
|
|
129
|
+
|
|
130
|
+
var _Scale = _interopRequireWildcard(require("./scale"));
|
|
131
|
+
|
|
132
|
+
exports.Scale = _Scale;
|
|
133
|
+
|
|
134
|
+
var _Selection = _interopRequireWildcard(require("./selection"));
|
|
135
|
+
|
|
136
|
+
exports.Selection = _Selection;
|
|
137
|
+
|
|
138
|
+
var _Style = _interopRequireWildcard(require("./style"));
|
|
139
|
+
|
|
140
|
+
exports.Style = _Style;
|
|
141
|
+
|
|
142
|
+
var _TextSize = _interopRequireWildcard(require("./textsize"));
|
|
143
|
+
|
|
144
|
+
exports.TextSize = _TextSize;
|
|
145
|
+
|
|
146
|
+
var _timer = _interopRequireDefault(require("./timer"));
|
|
147
|
+
|
|
148
|
+
var _timerContext = _interopRequireDefault(require("./timer-context"));
|
|
149
|
+
|
|
150
|
+
var _Transitions = _interopRequireWildcard(require("./transitions"));
|
|
151
|
+
|
|
152
|
+
exports.Transitions = _Transitions;
|
|
153
|
+
|
|
154
|
+
var _UserProps = _interopRequireWildcard(require("./user-props"));
|
|
155
|
+
|
|
156
|
+
exports.UserProps = _UserProps;
|
|
157
|
+
|
|
158
|
+
var _Wrapper = _interopRequireWildcard(require("./wrapper"));
|
|
159
|
+
|
|
160
|
+
exports.Wrapper = _Wrapper;
|
|
161
|
+
|
|
162
|
+
var _withContainer = require("./with-container");
|
|
163
|
+
|
|
164
|
+
Object.keys(_withContainer).forEach(function (key) {
|
|
165
|
+
if (key === "default" || key === "__esModule") return;
|
|
166
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
167
|
+
if (key in exports && exports[key] === _withContainer[key]) return;
|
|
168
|
+
Object.defineProperty(exports, key, {
|
|
169
|
+
enumerable: true,
|
|
170
|
+
get: function () {
|
|
171
|
+
return _withContainer[key];
|
|
172
|
+
}
|
|
173
|
+
});
|
|
174
|
+
});
|
|
175
|
+
|
|
176
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
177
|
+
|
|
178
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
179
|
+
|
|
180
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
181
|
+
//# sourceMappingURL=index.js.map
|