victory-core 36.4.1 → 36.5.2
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 +14463 -11478
- package/dist/victory-core.min.js +1 -1
- package/dist/victory-core.min.js.LICENSE.txt +19 -0
- package/es/index.d.ts +18 -941
- package/es/index.js +18 -73
- package/es/types/callbacks.d.ts +37 -0
- 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 +26 -0
- package/es/victory-accessible-group/victory-accessible-group.js +9 -16
- package/es/victory-animation/util.d.ts +67 -0
- package/es/victory-animation/util.js +7 -4
- package/es/victory-animation/victory-animation.d.ts +70 -0
- package/es/victory-animation/victory-animation.js +60 -67
- package/es/victory-clip-container/victory-clip-container.d.ts +77 -0
- package/es/victory-clip-container/victory-clip-container.js +16 -21
- package/es/victory-container/victory-container.d.ts +100 -0
- package/es/victory-container/victory-container.js +32 -31
- package/es/victory-label/victory-label.d.ts +62 -0
- package/es/victory-label/victory-label.js +14 -9
- package/es/victory-portal/portal-context.d.ts +12 -0
- package/es/victory-portal/portal-context.js +3 -3
- package/es/victory-portal/portal.d.ts +29 -0
- package/es/victory-portal/portal.js +26 -33
- package/es/victory-portal/victory-portal.d.ts +32 -0
- package/es/victory-portal/victory-portal.js +24 -22
- package/es/victory-primitives/arc.d.ts +50 -0
- package/es/victory-primitives/arc.js +4 -5
- package/es/victory-primitives/background.d.ts +51 -0
- package/es/victory-primitives/background.js +5 -6
- package/es/victory-primitives/border.d.ts +44 -0
- package/es/victory-primitives/border.js +4 -5
- package/es/victory-primitives/circle.d.ts +3 -0
- package/es/victory-primitives/circle.js +11 -7
- package/es/victory-primitives/clip-path.d.ts +15 -0
- package/es/victory-primitives/clip-path.js +6 -5
- package/es/victory-primitives/index.d.ts +15 -0
- package/es/victory-primitives/index.js +15 -0
- package/es/victory-primitives/line-segment.d.ts +46 -0
- package/es/victory-primitives/line-segment.js +4 -5
- package/es/victory-primitives/line.d.ts +3 -0
- package/es/victory-primitives/line.js +11 -7
- package/es/victory-primitives/path.d.ts +3 -0
- package/es/victory-primitives/path.js +9 -5
- package/es/victory-primitives/point.d.ts +49 -0
- package/es/victory-primitives/point.js +10 -19
- package/es/victory-primitives/rect.d.ts +3 -0
- package/es/victory-primitives/rect.js +11 -7
- package/es/victory-primitives/text.d.ts +17 -0
- package/es/victory-primitives/text.js +7 -5
- package/es/victory-primitives/tspan.d.ts +3 -0
- package/es/victory-primitives/tspan.js +7 -5
- package/es/victory-primitives/types.d.ts +8 -0
- package/es/victory-primitives/types.js +2 -0
- package/es/victory-primitives/whisker.d.ts +59 -0
- package/es/victory-primitives/whisker.js +4 -5
- 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 +3 -0
- package/es/victory-theme/grayscale.js +3 -2
- package/es/victory-theme/material.d.ts +3 -0
- package/es/victory-theme/material.js +3 -2
- package/es/victory-theme/types.d.ts +239 -0
- package/es/victory-theme/types.js +2 -0
- package/es/victory-theme/victory-theme.d.ts +6 -0
- package/es/victory-theme/victory-theme.js +8 -6
- package/es/victory-transition/victory-transition.d.ts +60 -0
- package/es/victory-transition/victory-transition.js +20 -23
- package/es/victory-util/add-events.d.ts +106 -0
- package/es/victory-util/add-events.js +44 -34
- package/es/victory-util/axis.d.ts +51 -0
- package/es/victory-util/axis.js +9 -8
- package/es/victory-util/collection.d.ts +9 -0
- package/es/victory-util/collection.js +6 -6
- 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 -3
- package/es/victory-util/default-transitions.d.ts +5 -0
- package/es/victory-util/default-transitions.js +2 -2
- package/es/victory-util/domain.d.ts +91 -0
- package/es/victory-util/domain.js +6 -4
- 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 -6
- 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 +2 -1
- 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 -5
- 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 -3
- 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 -2
- package/es/victory-util/point-path-helpers.d.ts +10 -0
- package/es/victory-util/point-path-helpers.js +60 -61
- 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 -0
- package/es/victory-util/selection.js +25 -16
- package/es/victory-util/style.d.ts +19 -0
- package/es/victory-util/style.js +2 -3
- package/es/victory-util/textsize.d.ts +37 -0
- package/es/victory-util/textsize.js +9 -6
- package/es/victory-util/timer-context.d.ts +12 -0
- package/es/victory-util/timer-context.js +2 -1
- package/es/victory-util/timer.d.ts +17 -0
- package/es/victory-util/timer.js +15 -9
- 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 +18 -941
- package/lib/index.js +224 -311
- package/lib/types/callbacks.d.ts +37 -0
- 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 +26 -0
- package/lib/victory-accessible-group/victory-accessible-group.js +10 -15
- package/lib/victory-animation/util.d.ts +67 -0
- package/lib/victory-animation/util.js +7 -4
- package/lib/victory-animation/victory-animation.d.ts +70 -0
- package/lib/victory-animation/victory-animation.js +61 -65
- package/lib/victory-clip-container/victory-clip-container.d.ts +77 -0
- package/lib/victory-clip-container/victory-clip-container.js +20 -22
- package/lib/victory-container/victory-container.d.ts +100 -0
- package/lib/victory-container/victory-container.js +35 -31
- package/lib/victory-label/victory-label.d.ts +62 -0
- package/lib/victory-label/victory-label.js +20 -14
- package/lib/victory-portal/portal-context.d.ts +12 -0
- package/lib/victory-portal/portal-context.js +3 -3
- package/lib/victory-portal/portal.d.ts +29 -0
- package/lib/victory-portal/portal.js +27 -31
- package/lib/victory-portal/victory-portal.d.ts +32 -0
- package/lib/victory-portal/victory-portal.js +25 -20
- package/lib/victory-primitives/arc.d.ts +50 -0
- package/lib/victory-primitives/arc.js +7 -7
- package/lib/victory-primitives/background.d.ts +51 -0
- package/lib/victory-primitives/background.js +9 -9
- package/lib/victory-primitives/border.d.ts +44 -0
- package/lib/victory-primitives/border.js +7 -7
- package/lib/victory-primitives/circle.d.ts +3 -0
- package/lib/victory-primitives/circle.js +12 -6
- package/lib/victory-primitives/clip-path.d.ts +15 -0
- package/lib/victory-primitives/clip-path.js +7 -4
- package/lib/victory-primitives/index.d.ts +15 -0
- package/lib/victory-primitives/index.js +188 -0
- package/lib/victory-primitives/line-segment.d.ts +46 -0
- package/lib/victory-primitives/line-segment.js +7 -7
- package/lib/victory-primitives/line.d.ts +3 -0
- package/lib/victory-primitives/line.js +12 -6
- package/lib/victory-primitives/path.d.ts +3 -0
- package/lib/victory-primitives/path.js +10 -4
- package/lib/victory-primitives/point.d.ts +49 -0
- package/lib/victory-primitives/point.js +15 -22
- package/lib/victory-primitives/rect.d.ts +3 -0
- package/lib/victory-primitives/rect.js +12 -6
- package/lib/victory-primitives/text.d.ts +17 -0
- package/lib/victory-primitives/text.js +8 -4
- package/lib/victory-primitives/tspan.d.ts +3 -0
- package/lib/victory-primitives/tspan.js +8 -4
- package/lib/victory-primitives/types.d.ts +8 -0
- package/lib/victory-primitives/types.js +2 -0
- package/lib/victory-primitives/whisker.d.ts +59 -0
- package/lib/victory-primitives/whisker.js +7 -7
- 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 +3 -0
- package/lib/victory-theme/grayscale.js +4 -3
- package/lib/victory-theme/material.d.ts +3 -0
- package/lib/victory-theme/material.js +4 -3
- package/lib/victory-theme/types.d.ts +239 -0
- package/lib/victory-theme/types.js +2 -0
- package/lib/victory-theme/victory-theme.d.ts +6 -0
- package/lib/victory-theme/victory-theme.js +23 -8
- package/lib/victory-transition/victory-transition.d.ts +60 -0
- package/lib/victory-transition/victory-transition.js +22 -23
- package/lib/victory-util/add-events.d.ts +106 -0
- package/lib/victory-util/add-events.js +48 -40
- 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 -6
- 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 -2
- 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 -6
- 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 +2 -1
- 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 -6
- 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 -3
- 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 -2
- package/lib/victory-util/point-path-helpers.d.ts +10 -0
- package/lib/victory-util/point-path-helpers.js +87 -73
- 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 -0
- package/lib/victory-util/selection.js +25 -21
- package/lib/victory-util/style.d.ts +19 -0
- package/lib/victory-util/style.js +2 -3
- package/lib/victory-util/textsize.d.ts +37 -0
- package/lib/victory-util/textsize.js +9 -6
- package/lib/victory-util/timer-context.d.ts +12 -0
- package/lib/victory-util/timer-context.js +2 -1
- package/lib/victory-util/timer.d.ts +17 -0
- package/lib/victory-util/timer.js +15 -9
- 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 +4 -4
- package/src/index.ts +17 -0
- package/src/types/callbacks.ts +53 -0
- package/src/types/prop-types.ts +195 -0
- package/src/victory-accessible-group/{victory-accessible-group.js → victory-accessible-group.tsx} +13 -6
- package/src/victory-animation/{util.js → util.ts} +6 -4
- package/src/victory-animation/{victory-animation.js → victory-animation.tsx} +100 -23
- package/src/victory-clip-container/{victory-clip-container.js → victory-clip-container.tsx} +52 -28
- package/src/victory-container/{victory-container.js → victory-container.tsx} +86 -42
- package/src/victory-label/{victory-label.js → victory-label.tsx} +108 -49
- package/src/victory-portal/portal-context.ts +14 -0
- package/src/victory-portal/{portal.js → portal.tsx} +24 -13
- package/src/victory-portal/{victory-portal.js → victory-portal.tsx} +24 -9
- package/src/victory-primitives/{arc.js → arc.tsx} +22 -10
- package/src/victory-primitives/{background.js → background.tsx} +24 -12
- package/src/victory-primitives/{border.js → border.tsx} +19 -10
- package/src/victory-primitives/{circle.js → circle.tsx} +4 -3
- package/src/victory-primitives/clip-path.tsx +25 -0
- package/src/victory-primitives/index.ts +14 -0
- package/src/victory-primitives/{line-segment.js → line-segment.tsx} +20 -10
- package/src/victory-primitives/{line.js → line.tsx} +4 -3
- package/src/victory-primitives/{path.js → path.tsx} +4 -3
- package/src/victory-primitives/{point.js → point.tsx} +33 -26
- package/src/victory-primitives/{rect.js → rect.tsx} +4 -2
- package/src/victory-primitives/{text.js → text.tsx} +10 -4
- package/src/victory-primitives/tspan.tsx +7 -0
- package/src/victory-primitives/types.ts +19 -0
- package/src/victory-primitives/{whisker.js → whisker.tsx} +34 -19
- 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.js → grayscale.tsx} +63 -62
- package/src/victory-theme/{material.js → material.tsx} +68 -67
- package/src/victory-theme/types.ts +257 -0
- package/src/victory-theme/victory-theme.tsx +5 -0
- package/src/victory-transition/{victory-transition.js → victory-transition.tsx} +82 -33
- package/src/victory-util/{add-events.js → add-events.tsx} +142 -60
- package/src/victory-util/{axis.js → axis.tsx} +17 -19
- package/src/victory-util/{collection.js → collection.tsx} +14 -11
- package/src/victory-util/common-props.tsx +307 -0
- package/src/victory-util/{data.js → data.ts} +14 -11
- package/src/victory-util/{default-transitions.js → default-transitions.ts} +20 -19
- package/src/victory-util/{domain.js → domain.ts} +26 -24
- package/src/victory-util/{events.js → events.ts} +83 -32
- package/src/victory-util/{helpers.js → helpers.ts} +41 -23
- package/src/victory-util/hooks/{index.js → index.ts} +0 -0
- package/src/victory-util/hooks/use-animation-state.js +10 -10
- package/src/victory-util/hooks/use-previous-props.ts +9 -0
- package/src/victory-util/{immutable.js → immutable.ts} +14 -11
- package/src/victory-util/index.ts +28 -0
- package/src/victory-util/{label-helpers.js → label-helpers.ts} +7 -8
- package/src/victory-util/line-helpers.ts +104 -0
- package/src/victory-util/{log.js → log.ts} +1 -2
- package/src/victory-util/point-path-helpers.ts +119 -0
- package/src/victory-util/{prop-types.js → prop-types.ts} +103 -102
- package/src/victory-util/{scale.js → scale.ts} +29 -17
- package/src/victory-util/selection.ts +158 -0
- package/src/victory-util/{style.js → style.ts} +3 -4
- package/src/victory-util/{textsize.js → textsize.ts} +32 -17
- package/src/victory-util/{timer-context.js → timer-context.ts} +1 -1
- package/src/victory-util/{timer.js → timer.ts} +16 -6
- package/src/victory-util/{transitions.js → transitions.ts} +50 -23
- 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 -34
- package/src/index.d.ts +0 -941
- package/src/index.js +0 -51
- package/src/victory-portal/portal-context.js +0 -10
- package/src/victory-primitives/clip-path.js +0 -18
- package/src/victory-primitives/tspan.js +0 -5
- package/src/victory-theme/victory-theme.js +0 -7
- 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/point-path-helpers.js +0 -121
- package/src/victory-util/selection.js +0 -99
package/lib/index.js
CHANGED
|
@@ -3,324 +3,237 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
return _arc.default;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
exports.Axis = void 0;
|
|
13
|
-
Object.defineProperty(exports, "Background", {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
get: function () {
|
|
16
|
-
return _background.default;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
Object.defineProperty(exports, "Border", {
|
|
20
|
-
enumerable: true,
|
|
21
|
-
get: function () {
|
|
22
|
-
return _border.default;
|
|
23
|
-
}
|
|
24
|
-
});
|
|
6
|
+
var _exportNames = {
|
|
7
|
+
Box: true
|
|
8
|
+
};
|
|
25
9
|
Object.defineProperty(exports, "Box", {
|
|
26
10
|
enumerable: true,
|
|
27
11
|
get: function () {
|
|
28
|
-
return
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
Object.defineProperty(exports, "Circle", {
|
|
32
|
-
enumerable: true,
|
|
33
|
-
get: function () {
|
|
34
|
-
return _circle.default;
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
Object.defineProperty(exports, "ClipPath", {
|
|
38
|
-
enumerable: true,
|
|
39
|
-
get: function () {
|
|
40
|
-
return _clipPath.default;
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
exports.LabelHelpers = exports.Immutable = exports.Hooks = exports.Helpers = exports.Events = exports.Domain = exports.DefaultTransitions = exports.Data = exports.CommonProps = exports.Collection = void 0;
|
|
44
|
-
Object.defineProperty(exports, "Line", {
|
|
45
|
-
enumerable: true,
|
|
46
|
-
get: function () {
|
|
47
|
-
return _line.default;
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
exports.LineHelpers = void 0;
|
|
51
|
-
Object.defineProperty(exports, "LineSegment", {
|
|
52
|
-
enumerable: true,
|
|
53
|
-
get: function () {
|
|
54
|
-
return _lineSegment.default;
|
|
55
|
-
}
|
|
56
|
-
});
|
|
57
|
-
exports.Log = void 0;
|
|
58
|
-
Object.defineProperty(exports, "Path", {
|
|
59
|
-
enumerable: true,
|
|
60
|
-
get: function () {
|
|
61
|
-
return _path.default;
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
Object.defineProperty(exports, "Point", {
|
|
65
|
-
enumerable: true,
|
|
66
|
-
get: function () {
|
|
67
|
-
return _point.default;
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
Object.defineProperty(exports, "PointPathHelpers", {
|
|
71
|
-
enumerable: true,
|
|
72
|
-
get: function () {
|
|
73
|
-
return _pointPathHelpers.default;
|
|
74
|
-
}
|
|
75
|
-
});
|
|
76
|
-
Object.defineProperty(exports, "Portal", {
|
|
77
|
-
enumerable: true,
|
|
78
|
-
get: function () {
|
|
79
|
-
return _portal.default;
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
Object.defineProperty(exports, "PortalContext", {
|
|
83
|
-
enumerable: true,
|
|
84
|
-
get: function () {
|
|
85
|
-
return _portalContext.default;
|
|
86
|
-
}
|
|
87
|
-
});
|
|
88
|
-
exports.PropTypes = void 0;
|
|
89
|
-
Object.defineProperty(exports, "Rect", {
|
|
90
|
-
enumerable: true,
|
|
91
|
-
get: function () {
|
|
92
|
-
return _rect.default;
|
|
93
|
-
}
|
|
94
|
-
});
|
|
95
|
-
exports.Style = exports.Selection = exports.Scale = void 0;
|
|
96
|
-
Object.defineProperty(exports, "TSpan", {
|
|
97
|
-
enumerable: true,
|
|
98
|
-
get: function () {
|
|
99
|
-
return _tspan.default;
|
|
100
|
-
}
|
|
101
|
-
});
|
|
102
|
-
Object.defineProperty(exports, "Text", {
|
|
103
|
-
enumerable: true,
|
|
104
|
-
get: function () {
|
|
105
|
-
return _text.default;
|
|
106
|
-
}
|
|
107
|
-
});
|
|
108
|
-
exports.TextSize = void 0;
|
|
109
|
-
Object.defineProperty(exports, "Timer", {
|
|
110
|
-
enumerable: true,
|
|
111
|
-
get: function () {
|
|
112
|
-
return _timer.default;
|
|
113
|
-
}
|
|
114
|
-
});
|
|
115
|
-
Object.defineProperty(exports, "TimerContext", {
|
|
116
|
-
enumerable: true,
|
|
117
|
-
get: function () {
|
|
118
|
-
return _timerContext.default;
|
|
119
|
-
}
|
|
120
|
-
});
|
|
121
|
-
exports.UserProps = exports.Transitions = void 0;
|
|
122
|
-
Object.defineProperty(exports, "VictoryAccessibleGroup", {
|
|
123
|
-
enumerable: true,
|
|
124
|
-
get: function () {
|
|
125
|
-
return _victoryAccessibleGroup.default;
|
|
126
|
-
}
|
|
127
|
-
});
|
|
128
|
-
Object.defineProperty(exports, "VictoryAnimation", {
|
|
129
|
-
enumerable: true,
|
|
130
|
-
get: function () {
|
|
131
|
-
return _victoryAnimation.default;
|
|
132
|
-
}
|
|
133
|
-
});
|
|
134
|
-
Object.defineProperty(exports, "VictoryClipContainer", {
|
|
135
|
-
enumerable: true,
|
|
136
|
-
get: function () {
|
|
137
|
-
return _victoryClipContainer.default;
|
|
138
|
-
}
|
|
139
|
-
});
|
|
140
|
-
Object.defineProperty(exports, "VictoryContainer", {
|
|
141
|
-
enumerable: true,
|
|
142
|
-
get: function () {
|
|
143
|
-
return _victoryContainer.default;
|
|
144
|
-
}
|
|
145
|
-
});
|
|
146
|
-
Object.defineProperty(exports, "VictoryLabel", {
|
|
147
|
-
enumerable: true,
|
|
148
|
-
get: function () {
|
|
149
|
-
return _victoryLabel.default;
|
|
12
|
+
return _victoryPrimitives.Border;
|
|
150
13
|
}
|
|
151
14
|
});
|
|
152
|
-
Object.defineProperty(exports, "VictoryPortal", {
|
|
153
|
-
enumerable: true,
|
|
154
|
-
get: function () {
|
|
155
|
-
return _victoryPortal.default;
|
|
156
|
-
}
|
|
157
|
-
});
|
|
158
|
-
Object.defineProperty(exports, "VictoryTheme", {
|
|
159
|
-
enumerable: true,
|
|
160
|
-
get: function () {
|
|
161
|
-
return _victoryTheme.default;
|
|
162
|
-
}
|
|
163
|
-
});
|
|
164
|
-
Object.defineProperty(exports, "VictoryTransition", {
|
|
165
|
-
enumerable: true,
|
|
166
|
-
get: function () {
|
|
167
|
-
return _victoryTransition.default;
|
|
168
|
-
}
|
|
169
|
-
});
|
|
170
|
-
Object.defineProperty(exports, "Whisker", {
|
|
171
|
-
enumerable: true,
|
|
172
|
-
get: function () {
|
|
173
|
-
return _whisker.default;
|
|
174
|
-
}
|
|
175
|
-
});
|
|
176
|
-
exports.Wrapper = void 0;
|
|
177
|
-
Object.defineProperty(exports, "addEvents", {
|
|
178
|
-
enumerable: true,
|
|
179
|
-
get: function () {
|
|
180
|
-
return _addEvents.default;
|
|
181
|
-
}
|
|
182
|
-
});
|
|
183
|
-
|
|
184
|
-
var _victoryAccessibleGroup = _interopRequireDefault(require("./victory-accessible-group/victory-accessible-group"));
|
|
185
|
-
|
|
186
|
-
var _victoryAnimation = _interopRequireDefault(require("./victory-animation/victory-animation"));
|
|
187
|
-
|
|
188
|
-
var _victoryContainer = _interopRequireDefault(require("./victory-container/victory-container"));
|
|
189
|
-
|
|
190
|
-
var _victoryLabel = _interopRequireDefault(require("./victory-label/victory-label"));
|
|
191
|
-
|
|
192
|
-
var _victoryTransition = _interopRequireDefault(require("./victory-transition/victory-transition"));
|
|
193
|
-
|
|
194
|
-
var _victoryClipContainer = _interopRequireDefault(require("./victory-clip-container/victory-clip-container"));
|
|
195
|
-
|
|
196
|
-
var _victoryTheme = _interopRequireDefault(require("./victory-theme/victory-theme"));
|
|
197
|
-
|
|
198
|
-
var _victoryPortal = _interopRequireDefault(require("./victory-portal/victory-portal"));
|
|
199
|
-
|
|
200
|
-
var _portal = _interopRequireDefault(require("./victory-portal/portal"));
|
|
201
|
-
|
|
202
|
-
var _arc = _interopRequireDefault(require("./victory-primitives/arc"));
|
|
203
|
-
|
|
204
|
-
var _background = _interopRequireDefault(require("./victory-primitives/background"));
|
|
205
|
-
|
|
206
|
-
var _border = _interopRequireDefault(require("./victory-primitives/border"));
|
|
207
|
-
|
|
208
|
-
var _circle = _interopRequireDefault(require("./victory-primitives/circle"));
|
|
209
|
-
|
|
210
|
-
var _clipPath = _interopRequireDefault(require("./victory-primitives/clip-path"));
|
|
211
|
-
|
|
212
|
-
var _line = _interopRequireDefault(require("./victory-primitives/line"));
|
|
213
|
-
|
|
214
|
-
var _lineSegment = _interopRequireDefault(require("./victory-primitives/line-segment"));
|
|
215
|
-
|
|
216
|
-
var _path = _interopRequireDefault(require("./victory-primitives/path"));
|
|
217
|
-
|
|
218
|
-
var _point = _interopRequireDefault(require("./victory-primitives/point"));
|
|
219
|
-
|
|
220
|
-
var _rect = _interopRequireDefault(require("./victory-primitives/rect"));
|
|
221
|
-
|
|
222
|
-
var _text = _interopRequireDefault(require("./victory-primitives/text"));
|
|
223
|
-
|
|
224
|
-
var _tspan = _interopRequireDefault(require("./victory-primitives/tspan"));
|
|
225
|
-
|
|
226
|
-
var _whisker = _interopRequireDefault(require("./victory-primitives/whisker"));
|
|
227
|
-
|
|
228
|
-
var _addEvents = _interopRequireDefault(require("./victory-util/add-events"));
|
|
229
|
-
|
|
230
|
-
var _Collection = _interopRequireWildcard(require("./victory-util/collection"));
|
|
231
15
|
|
|
232
|
-
|
|
16
|
+
var _callbacks = require("./types/callbacks");
|
|
233
17
|
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
var _Events = _interopRequireWildcard(require("./victory-util/events"));
|
|
247
|
-
|
|
248
|
-
exports.Events = _Events;
|
|
249
|
-
|
|
250
|
-
var _Helpers = _interopRequireWildcard(require("./victory-util/helpers"));
|
|
251
|
-
|
|
252
|
-
exports.Helpers = _Helpers;
|
|
253
|
-
|
|
254
|
-
var _Immutable = _interopRequireWildcard(require("./victory-util/immutable"));
|
|
255
|
-
|
|
256
|
-
exports.Immutable = _Immutable;
|
|
257
|
-
|
|
258
|
-
var _LabelHelpers = _interopRequireWildcard(require("./victory-util/label-helpers"));
|
|
259
|
-
|
|
260
|
-
exports.LabelHelpers = _LabelHelpers;
|
|
261
|
-
|
|
262
|
-
var _Log = _interopRequireWildcard(require("./victory-util/log"));
|
|
263
|
-
|
|
264
|
-
exports.Log = _Log;
|
|
265
|
-
|
|
266
|
-
var _PropTypes = _interopRequireWildcard(require("./victory-util/prop-types"));
|
|
267
|
-
|
|
268
|
-
exports.PropTypes = _PropTypes;
|
|
269
|
-
|
|
270
|
-
var _Scale = _interopRequireWildcard(require("./victory-util/scale"));
|
|
271
|
-
|
|
272
|
-
exports.Scale = _Scale;
|
|
273
|
-
|
|
274
|
-
var _Selection = _interopRequireWildcard(require("./victory-util/selection"));
|
|
275
|
-
|
|
276
|
-
exports.Selection = _Selection;
|
|
277
|
-
|
|
278
|
-
var _Style = _interopRequireWildcard(require("./victory-util/style"));
|
|
279
|
-
|
|
280
|
-
exports.Style = _Style;
|
|
281
|
-
|
|
282
|
-
var _TextSize = _interopRequireWildcard(require("./victory-util/textsize"));
|
|
283
|
-
|
|
284
|
-
exports.TextSize = _TextSize;
|
|
285
|
-
|
|
286
|
-
var _timer = _interopRequireDefault(require("./victory-util/timer"));
|
|
287
|
-
|
|
288
|
-
var _Transitions = _interopRequireWildcard(require("./victory-util/transitions"));
|
|
289
|
-
|
|
290
|
-
exports.Transitions = _Transitions;
|
|
291
|
-
|
|
292
|
-
var _UserProps = _interopRequireWildcard(require("./victory-util/user-props"));
|
|
293
|
-
|
|
294
|
-
exports.UserProps = _UserProps;
|
|
295
|
-
|
|
296
|
-
var _CommonProps = _interopRequireWildcard(require("./victory-util/common-props"));
|
|
297
|
-
|
|
298
|
-
exports.CommonProps = _CommonProps;
|
|
299
|
-
|
|
300
|
-
var _Wrapper = _interopRequireWildcard(require("./victory-util/wrapper"));
|
|
301
|
-
|
|
302
|
-
exports.Wrapper = _Wrapper;
|
|
303
|
-
|
|
304
|
-
var _Axis = _interopRequireWildcard(require("./victory-util/axis"));
|
|
305
|
-
|
|
306
|
-
exports.Axis = _Axis;
|
|
307
|
-
|
|
308
|
-
var _timerContext = _interopRequireDefault(require("./victory-util/timer-context"));
|
|
309
|
-
|
|
310
|
-
var _portalContext = _interopRequireDefault(require("./victory-portal/portal-context"));
|
|
311
|
-
|
|
312
|
-
var _Hooks = _interopRequireWildcard(require("./victory-util/hooks"));
|
|
313
|
-
|
|
314
|
-
exports.Hooks = _Hooks;
|
|
315
|
-
|
|
316
|
-
var _LineHelpers = _interopRequireWildcard(require("./victory-util/line-helpers"));
|
|
317
|
-
|
|
318
|
-
exports.LineHelpers = _LineHelpers;
|
|
319
|
-
|
|
320
|
-
var _pointPathHelpers = _interopRequireDefault(require("./victory-util/point-path-helpers"));
|
|
18
|
+
Object.keys(_callbacks).forEach(function (key) {
|
|
19
|
+
if (key === "default" || key === "__esModule") return;
|
|
20
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
21
|
+
if (key in exports && exports[key] === _callbacks[key]) return;
|
|
22
|
+
Object.defineProperty(exports, key, {
|
|
23
|
+
enumerable: true,
|
|
24
|
+
get: function () {
|
|
25
|
+
return _callbacks[key];
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
});
|
|
321
29
|
|
|
322
|
-
|
|
30
|
+
var _propTypes = require("./types/prop-types");
|
|
323
31
|
|
|
324
|
-
|
|
32
|
+
Object.keys(_propTypes).forEach(function (key) {
|
|
33
|
+
if (key === "default" || key === "__esModule") return;
|
|
34
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
35
|
+
if (key in exports && exports[key] === _propTypes[key]) return;
|
|
36
|
+
Object.defineProperty(exports, key, {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () {
|
|
39
|
+
return _propTypes[key];
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
});
|
|
325
43
|
|
|
326
|
-
|
|
44
|
+
var _victoryAccessibleGroup = require("./victory-accessible-group/victory-accessible-group");
|
|
45
|
+
|
|
46
|
+
Object.keys(_victoryAccessibleGroup).forEach(function (key) {
|
|
47
|
+
if (key === "default" || key === "__esModule") return;
|
|
48
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
49
|
+
if (key in exports && exports[key] === _victoryAccessibleGroup[key]) return;
|
|
50
|
+
Object.defineProperty(exports, key, {
|
|
51
|
+
enumerable: true,
|
|
52
|
+
get: function () {
|
|
53
|
+
return _victoryAccessibleGroup[key];
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
var _victoryAnimation = require("./victory-animation/victory-animation");
|
|
59
|
+
|
|
60
|
+
Object.keys(_victoryAnimation).forEach(function (key) {
|
|
61
|
+
if (key === "default" || key === "__esModule") return;
|
|
62
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
63
|
+
if (key in exports && exports[key] === _victoryAnimation[key]) return;
|
|
64
|
+
Object.defineProperty(exports, key, {
|
|
65
|
+
enumerable: true,
|
|
66
|
+
get: function () {
|
|
67
|
+
return _victoryAnimation[key];
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
var _victoryContainer = require("./victory-container/victory-container");
|
|
73
|
+
|
|
74
|
+
Object.keys(_victoryContainer).forEach(function (key) {
|
|
75
|
+
if (key === "default" || key === "__esModule") return;
|
|
76
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
77
|
+
if (key in exports && exports[key] === _victoryContainer[key]) return;
|
|
78
|
+
Object.defineProperty(exports, key, {
|
|
79
|
+
enumerable: true,
|
|
80
|
+
get: function () {
|
|
81
|
+
return _victoryContainer[key];
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
var _victoryLabel = require("./victory-label/victory-label");
|
|
87
|
+
|
|
88
|
+
Object.keys(_victoryLabel).forEach(function (key) {
|
|
89
|
+
if (key === "default" || key === "__esModule") return;
|
|
90
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
91
|
+
if (key in exports && exports[key] === _victoryLabel[key]) return;
|
|
92
|
+
Object.defineProperty(exports, key, {
|
|
93
|
+
enumerable: true,
|
|
94
|
+
get: function () {
|
|
95
|
+
return _victoryLabel[key];
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
var _victoryTransition = require("./victory-transition/victory-transition");
|
|
101
|
+
|
|
102
|
+
Object.keys(_victoryTransition).forEach(function (key) {
|
|
103
|
+
if (key === "default" || key === "__esModule") return;
|
|
104
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
105
|
+
if (key in exports && exports[key] === _victoryTransition[key]) return;
|
|
106
|
+
Object.defineProperty(exports, key, {
|
|
107
|
+
enumerable: true,
|
|
108
|
+
get: function () {
|
|
109
|
+
return _victoryTransition[key];
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
});
|
|
113
|
+
|
|
114
|
+
var _victoryClipContainer = require("./victory-clip-container/victory-clip-container");
|
|
115
|
+
|
|
116
|
+
Object.keys(_victoryClipContainer).forEach(function (key) {
|
|
117
|
+
if (key === "default" || key === "__esModule") return;
|
|
118
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
119
|
+
if (key in exports && exports[key] === _victoryClipContainer[key]) return;
|
|
120
|
+
Object.defineProperty(exports, key, {
|
|
121
|
+
enumerable: true,
|
|
122
|
+
get: function () {
|
|
123
|
+
return _victoryClipContainer[key];
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
});
|
|
127
|
+
|
|
128
|
+
var _types = require("./victory-theme/types");
|
|
129
|
+
|
|
130
|
+
Object.keys(_types).forEach(function (key) {
|
|
131
|
+
if (key === "default" || key === "__esModule") return;
|
|
132
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
133
|
+
if (key in exports && exports[key] === _types[key]) return;
|
|
134
|
+
Object.defineProperty(exports, key, {
|
|
135
|
+
enumerable: true,
|
|
136
|
+
get: function () {
|
|
137
|
+
return _types[key];
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
});
|
|
141
|
+
|
|
142
|
+
var _victoryTheme = require("./victory-theme/victory-theme");
|
|
143
|
+
|
|
144
|
+
Object.keys(_victoryTheme).forEach(function (key) {
|
|
145
|
+
if (key === "default" || key === "__esModule") return;
|
|
146
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
147
|
+
if (key in exports && exports[key] === _victoryTheme[key]) return;
|
|
148
|
+
Object.defineProperty(exports, key, {
|
|
149
|
+
enumerable: true,
|
|
150
|
+
get: function () {
|
|
151
|
+
return _victoryTheme[key];
|
|
152
|
+
}
|
|
153
|
+
});
|
|
154
|
+
});
|
|
155
|
+
|
|
156
|
+
var _portal = require("./victory-portal/portal");
|
|
157
|
+
|
|
158
|
+
Object.keys(_portal).forEach(function (key) {
|
|
159
|
+
if (key === "default" || key === "__esModule") return;
|
|
160
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
161
|
+
if (key in exports && exports[key] === _portal[key]) return;
|
|
162
|
+
Object.defineProperty(exports, key, {
|
|
163
|
+
enumerable: true,
|
|
164
|
+
get: function () {
|
|
165
|
+
return _portal[key];
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
});
|
|
169
|
+
|
|
170
|
+
var _portalContext = require("./victory-portal/portal-context");
|
|
171
|
+
|
|
172
|
+
Object.keys(_portalContext).forEach(function (key) {
|
|
173
|
+
if (key === "default" || key === "__esModule") return;
|
|
174
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
175
|
+
if (key in exports && exports[key] === _portalContext[key]) return;
|
|
176
|
+
Object.defineProperty(exports, key, {
|
|
177
|
+
enumerable: true,
|
|
178
|
+
get: function () {
|
|
179
|
+
return _portalContext[key];
|
|
180
|
+
}
|
|
181
|
+
});
|
|
182
|
+
});
|
|
183
|
+
|
|
184
|
+
var _victoryPortal = require("./victory-portal/victory-portal");
|
|
185
|
+
|
|
186
|
+
Object.keys(_victoryPortal).forEach(function (key) {
|
|
187
|
+
if (key === "default" || key === "__esModule") return;
|
|
188
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
189
|
+
if (key in exports && exports[key] === _victoryPortal[key]) return;
|
|
190
|
+
Object.defineProperty(exports, key, {
|
|
191
|
+
enumerable: true,
|
|
192
|
+
get: function () {
|
|
193
|
+
return _victoryPortal[key];
|
|
194
|
+
}
|
|
195
|
+
});
|
|
196
|
+
});
|
|
197
|
+
|
|
198
|
+
var _victoryPrimitives = require("./victory-primitives");
|
|
199
|
+
|
|
200
|
+
Object.keys(_victoryPrimitives).forEach(function (key) {
|
|
201
|
+
if (key === "default" || key === "__esModule") return;
|
|
202
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
203
|
+
if (key in exports && exports[key] === _victoryPrimitives[key]) return;
|
|
204
|
+
Object.defineProperty(exports, key, {
|
|
205
|
+
enumerable: true,
|
|
206
|
+
get: function () {
|
|
207
|
+
return _victoryPrimitives[key];
|
|
208
|
+
}
|
|
209
|
+
});
|
|
210
|
+
});
|
|
211
|
+
|
|
212
|
+
var _victoryUtil = require("./victory-util");
|
|
213
|
+
|
|
214
|
+
Object.keys(_victoryUtil).forEach(function (key) {
|
|
215
|
+
if (key === "default" || key === "__esModule") return;
|
|
216
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
217
|
+
if (key in exports && exports[key] === _victoryUtil[key]) return;
|
|
218
|
+
Object.defineProperty(exports, key, {
|
|
219
|
+
enumerable: true,
|
|
220
|
+
get: function () {
|
|
221
|
+
return _victoryUtil[key];
|
|
222
|
+
}
|
|
223
|
+
});
|
|
224
|
+
});
|
|
225
|
+
|
|
226
|
+
var _victoryState = require("./victory-state");
|
|
227
|
+
|
|
228
|
+
Object.keys(_victoryState).forEach(function (key) {
|
|
229
|
+
if (key === "default" || key === "__esModule") return;
|
|
230
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
231
|
+
if (key in exports && exports[key] === _victoryState[key]) return;
|
|
232
|
+
Object.defineProperty(exports, key, {
|
|
233
|
+
enumerable: true,
|
|
234
|
+
get: function () {
|
|
235
|
+
return _victoryState[key];
|
|
236
|
+
}
|
|
237
|
+
});
|
|
238
|
+
});
|
|
239
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { D3Scale, Datum, ID } from "./prop-types";
|
|
2
|
+
import { BlockProps, OrientationTypes } from "../victory-theme/types";
|
|
3
|
+
/**
|
|
4
|
+
* This is the first parameter of a callback when a callback is used to
|
|
5
|
+
* resolve the value of a property instead of a concrete value.
|
|
6
|
+
*
|
|
7
|
+
* Note that additional properties here like `scale`, `x`, `y`, etc are resolved
|
|
8
|
+
* values of properties from the VictoryXXXProps for each component.
|
|
9
|
+
*/
|
|
10
|
+
export interface CallbackArgs {
|
|
11
|
+
active?: boolean;
|
|
12
|
+
data?: Datum[];
|
|
13
|
+
datum?: Datum;
|
|
14
|
+
horizontal?: boolean;
|
|
15
|
+
index: ID;
|
|
16
|
+
x?: number;
|
|
17
|
+
y?: number;
|
|
18
|
+
scale?: {
|
|
19
|
+
x?: D3Scale;
|
|
20
|
+
y?: D3Scale;
|
|
21
|
+
};
|
|
22
|
+
tick?: any;
|
|
23
|
+
ticks?: any;
|
|
24
|
+
text?: any;
|
|
25
|
+
}
|
|
26
|
+
export declare type VictoryStringOrNumberCallback = (args: CallbackArgs) => string | number;
|
|
27
|
+
export declare type VictoryStringCallback = (args: CallbackArgs) => string;
|
|
28
|
+
export declare type StringOrNumberOrCallback = string | number | VictoryStringOrNumberCallback;
|
|
29
|
+
export declare type StringOrCallback = string | VictoryStringCallback;
|
|
30
|
+
export declare type SliceNumberOrCallback<T, P extends string | number | symbol = never> = number | ((props: Omit<T, P>) => number);
|
|
31
|
+
export declare type VictoryNumberCallback = (args: CallbackArgs) => number;
|
|
32
|
+
export declare type VictoryPaddingCallback = (args: CallbackArgs) => number | BlockProps;
|
|
33
|
+
export declare type VictoryOrientationCallback = (args: CallbackArgs) => OrientationTypes;
|
|
34
|
+
export declare type NumberOrCallback = number | VictoryNumberCallback;
|
|
35
|
+
export declare type PaddingOrCallback = number | BlockProps | VictoryPaddingCallback;
|
|
36
|
+
export declare type OrientationOrCallback = OrientationTypes | VictoryOrientationCallback;
|
|
37
|
+
//# sourceMappingURL=callbacks.d.ts.map
|