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
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
|
|
7
|
+
var _arc = require("./arc");
|
|
8
|
+
|
|
9
|
+
Object.keys(_arc).forEach(function (key) {
|
|
10
|
+
if (key === "default" || key === "__esModule") return;
|
|
11
|
+
if (key in exports && exports[key] === _arc[key]) return;
|
|
12
|
+
Object.defineProperty(exports, key, {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _arc[key];
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
var _background = require("./background");
|
|
21
|
+
|
|
22
|
+
Object.keys(_background).forEach(function (key) {
|
|
23
|
+
if (key === "default" || key === "__esModule") return;
|
|
24
|
+
if (key in exports && exports[key] === _background[key]) return;
|
|
25
|
+
Object.defineProperty(exports, key, {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
get: function () {
|
|
28
|
+
return _background[key];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
var _border = require("./border");
|
|
34
|
+
|
|
35
|
+
Object.keys(_border).forEach(function (key) {
|
|
36
|
+
if (key === "default" || key === "__esModule") return;
|
|
37
|
+
if (key in exports && exports[key] === _border[key]) return;
|
|
38
|
+
Object.defineProperty(exports, key, {
|
|
39
|
+
enumerable: true,
|
|
40
|
+
get: function () {
|
|
41
|
+
return _border[key];
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
var _circle = require("./circle");
|
|
47
|
+
|
|
48
|
+
Object.keys(_circle).forEach(function (key) {
|
|
49
|
+
if (key === "default" || key === "__esModule") return;
|
|
50
|
+
if (key in exports && exports[key] === _circle[key]) return;
|
|
51
|
+
Object.defineProperty(exports, key, {
|
|
52
|
+
enumerable: true,
|
|
53
|
+
get: function () {
|
|
54
|
+
return _circle[key];
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
var _clipPath = require("./clip-path");
|
|
60
|
+
|
|
61
|
+
Object.keys(_clipPath).forEach(function (key) {
|
|
62
|
+
if (key === "default" || key === "__esModule") return;
|
|
63
|
+
if (key in exports && exports[key] === _clipPath[key]) return;
|
|
64
|
+
Object.defineProperty(exports, key, {
|
|
65
|
+
enumerable: true,
|
|
66
|
+
get: function () {
|
|
67
|
+
return _clipPath[key];
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
var _line = require("./line");
|
|
73
|
+
|
|
74
|
+
Object.keys(_line).forEach(function (key) {
|
|
75
|
+
if (key === "default" || key === "__esModule") return;
|
|
76
|
+
if (key in exports && exports[key] === _line[key]) return;
|
|
77
|
+
Object.defineProperty(exports, key, {
|
|
78
|
+
enumerable: true,
|
|
79
|
+
get: function () {
|
|
80
|
+
return _line[key];
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
var _lineSegment = require("./line-segment");
|
|
86
|
+
|
|
87
|
+
Object.keys(_lineSegment).forEach(function (key) {
|
|
88
|
+
if (key === "default" || key === "__esModule") return;
|
|
89
|
+
if (key in exports && exports[key] === _lineSegment[key]) return;
|
|
90
|
+
Object.defineProperty(exports, key, {
|
|
91
|
+
enumerable: true,
|
|
92
|
+
get: function () {
|
|
93
|
+
return _lineSegment[key];
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
});
|
|
97
|
+
|
|
98
|
+
var _path = require("./path");
|
|
99
|
+
|
|
100
|
+
Object.keys(_path).forEach(function (key) {
|
|
101
|
+
if (key === "default" || key === "__esModule") return;
|
|
102
|
+
if (key in exports && exports[key] === _path[key]) return;
|
|
103
|
+
Object.defineProperty(exports, key, {
|
|
104
|
+
enumerable: true,
|
|
105
|
+
get: function () {
|
|
106
|
+
return _path[key];
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
});
|
|
110
|
+
|
|
111
|
+
var _point = require("./point");
|
|
112
|
+
|
|
113
|
+
Object.keys(_point).forEach(function (key) {
|
|
114
|
+
if (key === "default" || key === "__esModule") return;
|
|
115
|
+
if (key in exports && exports[key] === _point[key]) return;
|
|
116
|
+
Object.defineProperty(exports, key, {
|
|
117
|
+
enumerable: true,
|
|
118
|
+
get: function () {
|
|
119
|
+
return _point[key];
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
});
|
|
123
|
+
|
|
124
|
+
var _rect = require("./rect");
|
|
125
|
+
|
|
126
|
+
Object.keys(_rect).forEach(function (key) {
|
|
127
|
+
if (key === "default" || key === "__esModule") return;
|
|
128
|
+
if (key in exports && exports[key] === _rect[key]) return;
|
|
129
|
+
Object.defineProperty(exports, key, {
|
|
130
|
+
enumerable: true,
|
|
131
|
+
get: function () {
|
|
132
|
+
return _rect[key];
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
});
|
|
136
|
+
|
|
137
|
+
var _text = require("./text");
|
|
138
|
+
|
|
139
|
+
Object.keys(_text).forEach(function (key) {
|
|
140
|
+
if (key === "default" || key === "__esModule") return;
|
|
141
|
+
if (key in exports && exports[key] === _text[key]) return;
|
|
142
|
+
Object.defineProperty(exports, key, {
|
|
143
|
+
enumerable: true,
|
|
144
|
+
get: function () {
|
|
145
|
+
return _text[key];
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
});
|
|
149
|
+
|
|
150
|
+
var _tspan = require("./tspan");
|
|
151
|
+
|
|
152
|
+
Object.keys(_tspan).forEach(function (key) {
|
|
153
|
+
if (key === "default" || key === "__esModule") return;
|
|
154
|
+
if (key in exports && exports[key] === _tspan[key]) return;
|
|
155
|
+
Object.defineProperty(exports, key, {
|
|
156
|
+
enumerable: true,
|
|
157
|
+
get: function () {
|
|
158
|
+
return _tspan[key];
|
|
159
|
+
}
|
|
160
|
+
});
|
|
161
|
+
});
|
|
162
|
+
|
|
163
|
+
var _types = require("./types");
|
|
164
|
+
|
|
165
|
+
Object.keys(_types).forEach(function (key) {
|
|
166
|
+
if (key === "default" || key === "__esModule") return;
|
|
167
|
+
if (key in exports && exports[key] === _types[key]) return;
|
|
168
|
+
Object.defineProperty(exports, key, {
|
|
169
|
+
enumerable: true,
|
|
170
|
+
get: function () {
|
|
171
|
+
return _types[key];
|
|
172
|
+
}
|
|
173
|
+
});
|
|
174
|
+
});
|
|
175
|
+
|
|
176
|
+
var _whisker = require("./whisker");
|
|
177
|
+
|
|
178
|
+
Object.keys(_whisker).forEach(function (key) {
|
|
179
|
+
if (key === "default" || key === "__esModule") return;
|
|
180
|
+
if (key in exports && exports[key] === _whisker[key]) return;
|
|
181
|
+
Object.defineProperty(exports, key, {
|
|
182
|
+
enumerable: true,
|
|
183
|
+
get: function () {
|
|
184
|
+
return _whisker[key];
|
|
185
|
+
}
|
|
186
|
+
});
|
|
187
|
+
});
|
|
188
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import PropTypes from "prop-types";
|
|
3
|
+
import { VictoryCommonPrimitiveProps } from "../victory-util/common-props";
|
|
4
|
+
export interface LineSegmentProps extends VictoryCommonPrimitiveProps {
|
|
5
|
+
datum?: any;
|
|
6
|
+
lineComponent?: React.ReactElement;
|
|
7
|
+
x1?: number;
|
|
8
|
+
x2?: number;
|
|
9
|
+
y1?: number;
|
|
10
|
+
y2?: number;
|
|
11
|
+
}
|
|
12
|
+
export declare const LineSegment: {
|
|
13
|
+
(props: LineSegmentProps): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
14
|
+
propTypes: {
|
|
15
|
+
datum: PropTypes.Requireable<any>;
|
|
16
|
+
lineComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
|
|
17
|
+
x1: PropTypes.Requireable<number>;
|
|
18
|
+
x2: PropTypes.Requireable<number>;
|
|
19
|
+
y1: PropTypes.Requireable<number>;
|
|
20
|
+
y2: PropTypes.Requireable<number>;
|
|
21
|
+
active?: React.Validator<boolean | null | undefined> | undefined;
|
|
22
|
+
ariaLabel?: React.Validator<import("..").StringOrCallback | null | undefined> | undefined;
|
|
23
|
+
className?: React.Validator<string | null | undefined> | undefined;
|
|
24
|
+
clipPath?: React.Validator<string | null | undefined> | undefined;
|
|
25
|
+
data?: React.Validator<any> | undefined;
|
|
26
|
+
desc?: React.Validator<string | Function | null | undefined> | undefined;
|
|
27
|
+
disableInlineStyles?: React.Validator<boolean | null | undefined> | undefined;
|
|
28
|
+
events?: React.Validator<object | null | undefined> | undefined;
|
|
29
|
+
id?: React.Validator<string | number | Function | null | undefined> | undefined;
|
|
30
|
+
index?: React.Validator<string | number | null | undefined> | undefined;
|
|
31
|
+
origin?: React.Validator<import("..").OriginType | null | undefined> | undefined;
|
|
32
|
+
polar?: React.Validator<boolean | null | undefined> | undefined;
|
|
33
|
+
role?: React.Validator<string | null | undefined> | undefined;
|
|
34
|
+
scale?: React.Validator<any> | undefined;
|
|
35
|
+
shapeRendering?: React.Validator<string | null | undefined> | undefined;
|
|
36
|
+
style?: React.Validator<any> | undefined;
|
|
37
|
+
tabIndex?: React.Validator<import("..").NumberOrCallback | null | undefined> | undefined;
|
|
38
|
+
transform?: React.Validator<string | null | undefined> | undefined;
|
|
39
|
+
};
|
|
40
|
+
defaultProps: {
|
|
41
|
+
lineComponent: JSX.Element;
|
|
42
|
+
role: string;
|
|
43
|
+
shapeRendering: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
//# sourceMappingURL=line-segment.d.ts.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.LineSegment = void 0;
|
|
7
7
|
|
|
8
8
|
var _assign2 = _interopRequireDefault(require("lodash/assign"));
|
|
9
9
|
|
|
@@ -13,9 +13,9 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
13
13
|
|
|
14
14
|
var Helpers = _interopRequireWildcard(require("../victory-util/helpers"));
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _commonProps = require("../victory-util/common-props");
|
|
17
17
|
|
|
18
|
-
var _line =
|
|
18
|
+
var _line = require("./line");
|
|
19
19
|
|
|
20
20
|
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); }
|
|
21
21
|
|
|
@@ -73,7 +73,8 @@ var LineSegment = function (props) {
|
|
|
73
73
|
}));
|
|
74
74
|
};
|
|
75
75
|
|
|
76
|
-
LineSegment
|
|
76
|
+
exports.LineSegment = LineSegment;
|
|
77
|
+
LineSegment.propTypes = _objectSpread(_objectSpread({}, _commonProps.CommonProps.primitiveProps), {}, {
|
|
77
78
|
datum: _propTypes.default.any,
|
|
78
79
|
lineComponent: _propTypes.default.element,
|
|
79
80
|
x1: _propTypes.default.number,
|
|
@@ -82,9 +83,8 @@ LineSegment.propTypes = _objectSpread(_objectSpread({}, CommonProps.primitivePro
|
|
|
82
83
|
y2: _propTypes.default.number
|
|
83
84
|
});
|
|
84
85
|
LineSegment.defaultProps = {
|
|
85
|
-
lineComponent: /*#__PURE__*/_react.default.createElement(_line.
|
|
86
|
+
lineComponent: /*#__PURE__*/_react.default.createElement(_line.Line, null),
|
|
86
87
|
role: "presentation",
|
|
87
88
|
shapeRendering: "auto"
|
|
88
89
|
};
|
|
89
|
-
|
|
90
|
-
exports.default = _default;
|
|
90
|
+
//# sourceMappingURL=line-segment.js.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.Line = void 0;
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
@@ -11,7 +11,7 @@ var _excluded = ["desc"];
|
|
|
11
11
|
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
13
|
|
|
14
|
-
function _extends() { _extends = Object.assign
|
|
14
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
15
15
|
|
|
16
16
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
17
17
|
|
|
@@ -22,12 +22,18 @@ var Line = function (props) {
|
|
|
22
22
|
var desc = props.desc,
|
|
23
23
|
rest = _objectWithoutProperties(props, _excluded);
|
|
24
24
|
|
|
25
|
-
return desc ?
|
|
25
|
+
return desc ?
|
|
26
|
+
/*#__PURE__*/
|
|
27
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
28
|
+
_react.default.createElement("line", _extends({
|
|
26
29
|
vectorEffect: "non-scaling-stroke"
|
|
27
|
-
}, rest), /*#__PURE__*/_react.default.createElement("desc", null, desc)) :
|
|
30
|
+
}, rest), /*#__PURE__*/_react.default.createElement("desc", null, desc)) :
|
|
31
|
+
/*#__PURE__*/
|
|
32
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
33
|
+
_react.default.createElement("line", _extends({
|
|
28
34
|
vectorEffect: "non-scaling-stroke"
|
|
29
35
|
}, rest));
|
|
30
36
|
};
|
|
31
37
|
|
|
32
|
-
|
|
33
|
-
|
|
38
|
+
exports.Line = Line;
|
|
39
|
+
//# sourceMappingURL=line.js.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.Path = void 0;
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
@@ -20,8 +20,14 @@ var Path = function (props) {
|
|
|
20
20
|
var desc = props.desc,
|
|
21
21
|
rest = _objectWithoutProperties(props, _excluded);
|
|
22
22
|
|
|
23
|
-
return desc ?
|
|
23
|
+
return desc ?
|
|
24
|
+
/*#__PURE__*/
|
|
25
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
26
|
+
_react.default.createElement("path", rest, /*#__PURE__*/_react.default.createElement("desc", null, desc)) :
|
|
27
|
+
/*#__PURE__*/
|
|
28
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
29
|
+
_react.default.createElement("path", rest);
|
|
24
30
|
};
|
|
25
31
|
|
|
26
|
-
|
|
27
|
-
|
|
32
|
+
exports.Path = Path;
|
|
33
|
+
//# sourceMappingURL=path.js.map
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import PropTypes from "prop-types";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { VictoryCommonPrimitiveProps } from "../victory-util/common-props";
|
|
4
|
+
import { ScatterSymbolType } from "./types";
|
|
5
|
+
export interface PointProps extends VictoryCommonPrimitiveProps {
|
|
6
|
+
datum?: any;
|
|
7
|
+
getPath?: (x: number, y: number, size: number) => string;
|
|
8
|
+
pathComponent?: React.ReactElement;
|
|
9
|
+
size?: number | Function;
|
|
10
|
+
symbol?: ScatterSymbolType | Function;
|
|
11
|
+
x?: number;
|
|
12
|
+
y?: number;
|
|
13
|
+
}
|
|
14
|
+
export declare const Point: {
|
|
15
|
+
(props: PointProps): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
16
|
+
propTypes: {
|
|
17
|
+
datum: PropTypes.Requireable<object>;
|
|
18
|
+
getPath: PropTypes.Requireable<(...args: any[]) => any>;
|
|
19
|
+
pathComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
|
|
20
|
+
size: PropTypes.Requireable<number | ((...args: any[]) => any)>;
|
|
21
|
+
symbol: PropTypes.Requireable<string | ((...args: any[]) => any)>;
|
|
22
|
+
x: PropTypes.Requireable<number>;
|
|
23
|
+
y: PropTypes.Requireable<number>;
|
|
24
|
+
active?: React.Validator<boolean | null | undefined> | undefined;
|
|
25
|
+
ariaLabel?: React.Validator<import("..").StringOrCallback | null | undefined> | undefined;
|
|
26
|
+
className?: React.Validator<string | null | undefined> | undefined;
|
|
27
|
+
clipPath?: React.Validator<string | null | undefined> | undefined;
|
|
28
|
+
data?: React.Validator<any> | undefined;
|
|
29
|
+
desc?: React.Validator<string | Function | null | undefined> | undefined;
|
|
30
|
+
disableInlineStyles?: React.Validator<boolean | null | undefined> | undefined;
|
|
31
|
+
events?: React.Validator<object | null | undefined> | undefined;
|
|
32
|
+
id?: React.Validator<string | number | Function | null | undefined> | undefined;
|
|
33
|
+
index?: React.Validator<string | number | null | undefined> | undefined;
|
|
34
|
+
origin?: React.Validator<import("..").OriginType | null | undefined> | undefined;
|
|
35
|
+
polar?: React.Validator<boolean | null | undefined> | undefined;
|
|
36
|
+
role?: React.Validator<string | null | undefined> | undefined;
|
|
37
|
+
scale?: React.Validator<any> | undefined;
|
|
38
|
+
shapeRendering?: React.Validator<string | null | undefined> | undefined;
|
|
39
|
+
style?: React.Validator<any> | undefined;
|
|
40
|
+
tabIndex?: React.Validator<import("..").NumberOrCallback | null | undefined> | undefined;
|
|
41
|
+
transform?: React.Validator<string | null | undefined> | undefined;
|
|
42
|
+
};
|
|
43
|
+
defaultProps: {
|
|
44
|
+
pathComponent: JSX.Element;
|
|
45
|
+
role: string;
|
|
46
|
+
shapeRendering: string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
//# sourceMappingURL=point.d.ts.map
|
|
@@ -3,21 +3,23 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.Point = void 0;
|
|
7
7
|
|
|
8
8
|
var _assign2 = _interopRequireDefault(require("lodash/assign"));
|
|
9
9
|
|
|
10
|
-
var _react = _interopRequireDefault(require("react"));
|
|
11
|
-
|
|
12
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
11
|
|
|
12
|
+
var _react = _interopRequireDefault(require("react"));
|
|
13
|
+
|
|
14
14
|
var Helpers = _interopRequireWildcard(require("../victory-util/helpers"));
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var pathHelpers = _interopRequireWildcard(require("../victory-util/point-path-helpers"));
|
|
17
|
+
|
|
18
|
+
var _commonProps = require("../victory-util/common-props");
|
|
17
19
|
|
|
18
|
-
var
|
|
20
|
+
var UserProps = _interopRequireWildcard(require("../victory-util/user-props"));
|
|
19
21
|
|
|
20
|
-
var _path =
|
|
22
|
+
var _path = require("./path");
|
|
21
23
|
|
|
22
24
|
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); }
|
|
23
25
|
|
|
@@ -41,17 +43,7 @@ var getPath = function (props) {
|
|
|
41
43
|
return props.getPath(x, y, size);
|
|
42
44
|
}
|
|
43
45
|
|
|
44
|
-
var pathFunctions =
|
|
45
|
-
circle: _pointPathHelpers.default.circle,
|
|
46
|
-
square: _pointPathHelpers.default.square,
|
|
47
|
-
diamond: _pointPathHelpers.default.diamond,
|
|
48
|
-
triangleDown: _pointPathHelpers.default.triangleDown,
|
|
49
|
-
triangleUp: _pointPathHelpers.default.triangleUp,
|
|
50
|
-
plus: _pointPathHelpers.default.plus,
|
|
51
|
-
minus: _pointPathHelpers.default.minus,
|
|
52
|
-
star: _pointPathHelpers.default.star,
|
|
53
|
-
cross: _pointPathHelpers.default.cross
|
|
54
|
-
};
|
|
46
|
+
var pathFunctions = pathHelpers;
|
|
55
47
|
var symbolFunction = typeof pathFunctions[symbol] === "function" ? pathFunctions[symbol] : pathFunctions.circle;
|
|
56
48
|
return symbolFunction(x, y, size);
|
|
57
49
|
};
|
|
@@ -87,6 +79,7 @@ var evaluateProps = function (props) {
|
|
|
87
79
|
|
|
88
80
|
var Point = function (props) {
|
|
89
81
|
props = evaluateProps(props);
|
|
82
|
+
var userProps = UserProps.getSafeUserProps(props);
|
|
90
83
|
return /*#__PURE__*/_react.default.cloneElement(props.pathComponent, _objectSpread(_objectSpread({}, props.events), {}, {
|
|
91
84
|
"aria-label": props.ariaLabel,
|
|
92
85
|
d: getPath(props),
|
|
@@ -98,10 +91,11 @@ var Point = function (props) {
|
|
|
98
91
|
className: props.className,
|
|
99
92
|
transform: props.transform,
|
|
100
93
|
clipPath: props.clipPath
|
|
101
|
-
}));
|
|
94
|
+
}, userProps));
|
|
102
95
|
};
|
|
103
96
|
|
|
104
|
-
Point
|
|
97
|
+
exports.Point = Point;
|
|
98
|
+
Point.propTypes = _objectSpread(_objectSpread({}, _commonProps.CommonProps.primitiveProps), {}, {
|
|
105
99
|
datum: _propTypes.default.object,
|
|
106
100
|
getPath: _propTypes.default.func,
|
|
107
101
|
pathComponent: _propTypes.default.element,
|
|
@@ -111,9 +105,8 @@ Point.propTypes = _objectSpread(_objectSpread({}, CommonProps.primitiveProps), {
|
|
|
111
105
|
y: _propTypes.default.number
|
|
112
106
|
});
|
|
113
107
|
Point.defaultProps = {
|
|
114
|
-
pathComponent: /*#__PURE__*/_react.default.createElement(_path.
|
|
108
|
+
pathComponent: /*#__PURE__*/_react.default.createElement(_path.Path, null),
|
|
115
109
|
role: "presentation",
|
|
116
110
|
shapeRendering: "auto"
|
|
117
111
|
};
|
|
118
|
-
|
|
119
|
-
exports.default = _default;
|
|
112
|
+
//# sourceMappingURL=point.js.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.Rect = void 0;
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
@@ -11,7 +11,7 @@ var _excluded = ["desc"];
|
|
|
11
11
|
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
13
|
|
|
14
|
-
function _extends() { _extends = Object.assign
|
|
14
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
15
15
|
|
|
16
16
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
17
17
|
|
|
@@ -22,12 +22,18 @@ var Rect = function (props) {
|
|
|
22
22
|
var desc = props.desc,
|
|
23
23
|
rest = _objectWithoutProperties(props, _excluded);
|
|
24
24
|
|
|
25
|
-
return desc ?
|
|
25
|
+
return desc ?
|
|
26
|
+
/*#__PURE__*/
|
|
27
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
28
|
+
_react.default.createElement("rect", _extends({
|
|
26
29
|
vectorEffect: "non-scaling-stroke"
|
|
27
|
-
}, rest), /*#__PURE__*/_react.default.createElement("desc", null, desc)) :
|
|
30
|
+
}, rest), /*#__PURE__*/_react.default.createElement("desc", null, desc)) :
|
|
31
|
+
/*#__PURE__*/
|
|
32
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
33
|
+
_react.default.createElement("rect", _extends({
|
|
28
34
|
vectorEffect: "non-scaling-stroke"
|
|
29
35
|
}, rest));
|
|
30
36
|
};
|
|
31
37
|
|
|
32
|
-
|
|
33
|
-
|
|
38
|
+
exports.Rect = Rect;
|
|
39
|
+
//# sourceMappingURL=rect.js.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import PropTypes from "prop-types";
|
|
3
|
+
import { VictoryCommonPrimitiveProps } from "../victory-util/common-props";
|
|
4
|
+
export interface TextProps extends VictoryCommonPrimitiveProps {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
desc?: string;
|
|
7
|
+
title?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const Text: {
|
|
10
|
+
(props: TextProps): JSX.Element;
|
|
11
|
+
propTypes: {
|
|
12
|
+
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
13
|
+
desc: PropTypes.Requireable<string>;
|
|
14
|
+
title: PropTypes.Requireable<string>;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=text.d.ts.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.Text = void 0;
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
@@ -23,13 +23,17 @@ var Text = function (props) {
|
|
|
23
23
|
desc = props.desc,
|
|
24
24
|
rest = _objectWithoutProperties(props, _excluded);
|
|
25
25
|
|
|
26
|
-
return
|
|
26
|
+
return (
|
|
27
|
+
/*#__PURE__*/
|
|
28
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
29
|
+
_react.default.createElement("text", rest, title && /*#__PURE__*/_react.default.createElement("title", null, title), desc && /*#__PURE__*/_react.default.createElement("desc", null, desc), children)
|
|
30
|
+
);
|
|
27
31
|
};
|
|
28
32
|
|
|
33
|
+
exports.Text = Text;
|
|
29
34
|
Text.propTypes = {
|
|
30
35
|
children: _propTypes.default.node,
|
|
31
36
|
desc: _propTypes.default.string,
|
|
32
37
|
title: _propTypes.default.string
|
|
33
38
|
};
|
|
34
|
-
|
|
35
|
-
exports.default = _default;
|
|
39
|
+
//# sourceMappingURL=text.js.map
|
|
@@ -3,15 +3,19 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.TSpan = void 0;
|
|
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
|
var TSpan = function (props) {
|
|
13
|
-
return
|
|
13
|
+
return (
|
|
14
|
+
/*#__PURE__*/
|
|
15
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
16
|
+
_react.default.createElement("tspan", props)
|
|
17
|
+
);
|
|
14
18
|
};
|
|
15
19
|
|
|
16
|
-
|
|
17
|
-
|
|
20
|
+
exports.TSpan = TSpan;
|
|
21
|
+
//# sourceMappingURL=tspan.js.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { VictoryCommonPrimitiveProps } from "../victory-util/common-props";
|
|
2
|
+
export declare type ScatterSymbolType = "circle" | "cross" | "diamond" | "plus" | "minus" | "square" | "star" | "triangleDown" | "triangleUp";
|
|
3
|
+
export interface VictoryPrimitiveShapeProps extends VictoryCommonPrimitiveProps {
|
|
4
|
+
desc?: string;
|
|
5
|
+
rx?: number;
|
|
6
|
+
ry?: number;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=types.d.ts.map
|