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
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.Portal = void 0;
|
|
7
7
|
|
|
8
8
|
var _keys2 = _interopRequireDefault(require("lodash/keys"));
|
|
9
9
|
|
|
@@ -27,7 +27,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
27
27
|
|
|
28
28
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
29
29
|
|
|
30
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
30
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
31
31
|
|
|
32
32
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
33
33
|
|
|
@@ -37,9 +37,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
37
37
|
|
|
38
38
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
39
39
|
|
|
40
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
41
|
-
|
|
42
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
40
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
43
41
|
|
|
44
42
|
var Portal = /*#__PURE__*/function (_React$Component) {
|
|
45
43
|
_inherits(Portal, _React$Component);
|
|
@@ -52,32 +50,31 @@ var Portal = /*#__PURE__*/function (_React$Component) {
|
|
|
52
50
|
_classCallCheck(this, Portal);
|
|
53
51
|
|
|
54
52
|
_this = _super.call(this, props);
|
|
53
|
+
_this.map = void 0;
|
|
54
|
+
_this.index = void 0;
|
|
55
|
+
|
|
56
|
+
_this.portalRegister = function () {
|
|
57
|
+
return ++_this.index;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
_this.portalUpdate = function (key, element) {
|
|
61
|
+
_this.map[key] = element;
|
|
62
|
+
|
|
63
|
+
_this.forceUpdate();
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
_this.portalDeregister = function (key) {
|
|
67
|
+
delete _this.map[key];
|
|
68
|
+
|
|
69
|
+
_this.forceUpdate();
|
|
70
|
+
};
|
|
71
|
+
|
|
55
72
|
_this.map = {};
|
|
56
73
|
_this.index = 1;
|
|
57
|
-
_this.portalUpdate = _this.portalUpdate.bind(_assertThisInitialized(_this));
|
|
58
|
-
_this.portalRegister = _this.portalRegister.bind(_assertThisInitialized(_this));
|
|
59
|
-
_this.portalDeregister = _this.portalDeregister.bind(_assertThisInitialized(_this));
|
|
60
74
|
return _this;
|
|
61
75
|
}
|
|
62
76
|
|
|
63
77
|
_createClass(Portal, [{
|
|
64
|
-
key: "portalRegister",
|
|
65
|
-
value: function portalRegister() {
|
|
66
|
-
return ++this.index;
|
|
67
|
-
}
|
|
68
|
-
}, {
|
|
69
|
-
key: "portalUpdate",
|
|
70
|
-
value: function portalUpdate(key, element) {
|
|
71
|
-
this.map[key] = element;
|
|
72
|
-
this.forceUpdate();
|
|
73
|
-
}
|
|
74
|
-
}, {
|
|
75
|
-
key: "portalDeregister",
|
|
76
|
-
value: function portalDeregister(key) {
|
|
77
|
-
delete this.map[key];
|
|
78
|
-
this.forceUpdate();
|
|
79
|
-
}
|
|
80
|
-
}, {
|
|
81
78
|
key: "getChildren",
|
|
82
79
|
value: function getChildren() {
|
|
83
80
|
var _this2 = this;
|
|
@@ -100,14 +97,13 @@ var Portal = /*#__PURE__*/function (_React$Component) {
|
|
|
100
97
|
return Portal;
|
|
101
98
|
}(_react.default.Component);
|
|
102
99
|
|
|
103
|
-
exports.
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
_defineProperty(Portal, "propTypes", {
|
|
100
|
+
exports.Portal = Portal;
|
|
101
|
+
Portal.displayName = "Portal";
|
|
102
|
+
Portal.propTypes = {
|
|
108
103
|
className: _propTypes.default.string,
|
|
109
104
|
height: CustomPropTypes.nonNegative,
|
|
110
105
|
style: _propTypes.default.object,
|
|
111
106
|
viewBox: _propTypes.default.string,
|
|
112
107
|
width: CustomPropTypes.nonNegative
|
|
113
|
-
}
|
|
108
|
+
};
|
|
109
|
+
//# sourceMappingURL=portal.js.map
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import PropTypes from "prop-types";
|
|
3
|
+
import { PortalContext } from "./portal-context";
|
|
4
|
+
export interface VictoryPortalProps {
|
|
5
|
+
children?: React.ReactElement;
|
|
6
|
+
groupComponent?: React.ReactElement;
|
|
7
|
+
}
|
|
8
|
+
export interface VictoryPortal {
|
|
9
|
+
context: React.ContextType<typeof PortalContext>;
|
|
10
|
+
}
|
|
11
|
+
export declare class VictoryPortal extends React.Component<VictoryPortalProps> {
|
|
12
|
+
static displayName: string;
|
|
13
|
+
static role: string;
|
|
14
|
+
static propTypes: {
|
|
15
|
+
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
16
|
+
groupComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
|
|
17
|
+
};
|
|
18
|
+
static defaultProps: {
|
|
19
|
+
groupComponent: JSX.Element;
|
|
20
|
+
};
|
|
21
|
+
static contextType: React.Context<import("./portal-context").PortalContextValue>;
|
|
22
|
+
private checkedContext;
|
|
23
|
+
private renderInPlace;
|
|
24
|
+
private element;
|
|
25
|
+
private portalKey;
|
|
26
|
+
componentDidMount(): void;
|
|
27
|
+
componentDidUpdate(): void;
|
|
28
|
+
componentWillUnmount(): void;
|
|
29
|
+
renderPortal(child: React.ReactElement): React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
30
|
+
render(): React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=victory-portal.d.ts.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.VictoryPortal = void 0;
|
|
7
7
|
|
|
8
8
|
var _defaults2 = _interopRequireDefault(require("lodash/defaults"));
|
|
9
9
|
|
|
@@ -15,7 +15,7 @@ var Log = _interopRequireWildcard(require("../victory-util/log"));
|
|
|
15
15
|
|
|
16
16
|
var Helpers = _interopRequireWildcard(require("../victory-util/helpers"));
|
|
17
17
|
|
|
18
|
-
var _portalContext =
|
|
18
|
+
var _portalContext = require("./portal-context");
|
|
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
|
|
|
@@ -31,7 +31,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
31
31
|
|
|
32
32
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
33
33
|
|
|
34
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
34
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
35
35
|
|
|
36
36
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
37
37
|
|
|
@@ -41,9 +41,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
41
41
|
|
|
42
42
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
43
43
|
|
|
44
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
45
|
-
|
|
46
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
44
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
47
45
|
|
|
48
46
|
var VictoryPortal = /*#__PURE__*/function (_React$Component) {
|
|
49
47
|
_inherits(VictoryPortal, _React$Component);
|
|
@@ -51,9 +49,20 @@ var VictoryPortal = /*#__PURE__*/function (_React$Component) {
|
|
|
51
49
|
var _super = _createSuper(VictoryPortal);
|
|
52
50
|
|
|
53
51
|
function VictoryPortal() {
|
|
52
|
+
var _this;
|
|
53
|
+
|
|
54
54
|
_classCallCheck(this, VictoryPortal);
|
|
55
55
|
|
|
56
|
-
|
|
56
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
57
|
+
args[_key] = arguments[_key];
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
61
|
+
_this.checkedContext = void 0;
|
|
62
|
+
_this.renderInPlace = void 0;
|
|
63
|
+
_this.element = void 0;
|
|
64
|
+
_this.portalKey = void 0;
|
|
65
|
+
return _this;
|
|
57
66
|
}
|
|
58
67
|
|
|
59
68
|
_createClass(VictoryPortal, [{
|
|
@@ -118,19 +127,15 @@ var VictoryPortal = /*#__PURE__*/function (_React$Component) {
|
|
|
118
127
|
return VictoryPortal;
|
|
119
128
|
}(_react.default.Component);
|
|
120
129
|
|
|
121
|
-
exports.
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
_defineProperty(VictoryPortal, "role", "portal");
|
|
126
|
-
|
|
127
|
-
_defineProperty(VictoryPortal, "propTypes", {
|
|
130
|
+
exports.VictoryPortal = VictoryPortal;
|
|
131
|
+
VictoryPortal.displayName = "VictoryPortal";
|
|
132
|
+
VictoryPortal.role = "portal";
|
|
133
|
+
VictoryPortal.propTypes = {
|
|
128
134
|
children: _propTypes.default.node,
|
|
129
135
|
groupComponent: _propTypes.default.element
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
_defineProperty(VictoryPortal, "defaultProps", {
|
|
136
|
+
};
|
|
137
|
+
VictoryPortal.defaultProps = {
|
|
133
138
|
groupComponent: /*#__PURE__*/_react.default.createElement("g", null)
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
|
|
139
|
+
};
|
|
140
|
+
VictoryPortal.contextType = _portalContext.PortalContext;
|
|
141
|
+
//# sourceMappingURL=victory-portal.js.map
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import PropTypes from "prop-types";
|
|
3
|
+
import { VictoryCommonPrimitiveProps } from "../victory-util/common-props";
|
|
4
|
+
export interface ArcProps extends VictoryCommonPrimitiveProps {
|
|
5
|
+
closedPath?: boolean;
|
|
6
|
+
cx?: number;
|
|
7
|
+
cy?: number;
|
|
8
|
+
datum?: any;
|
|
9
|
+
endAngle?: number;
|
|
10
|
+
pathComponent?: React.ReactElement;
|
|
11
|
+
r?: number;
|
|
12
|
+
startAngle?: number;
|
|
13
|
+
}
|
|
14
|
+
export declare const Arc: {
|
|
15
|
+
(props: ArcProps): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
16
|
+
propTypes: {
|
|
17
|
+
closedPath: PropTypes.Requireable<boolean>;
|
|
18
|
+
cx: PropTypes.Requireable<number>;
|
|
19
|
+
cy: PropTypes.Requireable<number>;
|
|
20
|
+
datum: PropTypes.Requireable<any>;
|
|
21
|
+
endAngle: PropTypes.Requireable<number>;
|
|
22
|
+
pathComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
|
|
23
|
+
r: PropTypes.Requireable<number>;
|
|
24
|
+
startAngle: PropTypes.Requireable<number>;
|
|
25
|
+
active?: React.Validator<boolean | null | undefined> | undefined;
|
|
26
|
+
ariaLabel?: React.Validator<import("..").StringOrCallback | null | undefined> | undefined;
|
|
27
|
+
className?: React.Validator<string | null | undefined> | undefined;
|
|
28
|
+
clipPath?: React.Validator<string | null | undefined> | undefined;
|
|
29
|
+
data?: React.Validator<any> | undefined;
|
|
30
|
+
desc?: React.Validator<string | Function | null | undefined> | undefined;
|
|
31
|
+
disableInlineStyles?: React.Validator<boolean | null | undefined> | undefined;
|
|
32
|
+
events?: React.Validator<object | null | undefined> | undefined;
|
|
33
|
+
id?: React.Validator<string | number | Function | null | undefined> | undefined;
|
|
34
|
+
index?: React.Validator<string | number | null | undefined> | undefined;
|
|
35
|
+
origin?: React.Validator<import("..").OriginType | null | undefined> | undefined;
|
|
36
|
+
polar?: React.Validator<boolean | null | undefined> | undefined;
|
|
37
|
+
role?: React.Validator<string | null | undefined> | undefined;
|
|
38
|
+
scale?: React.Validator<any> | undefined;
|
|
39
|
+
shapeRendering?: React.Validator<string | null | undefined> | undefined;
|
|
40
|
+
style?: React.Validator<any> | undefined;
|
|
41
|
+
tabIndex?: React.Validator<import("..").NumberOrCallback | null | undefined> | undefined;
|
|
42
|
+
transform?: React.Validator<string | null | undefined> | undefined;
|
|
43
|
+
};
|
|
44
|
+
defaultProps: {
|
|
45
|
+
pathComponent: JSX.Element;
|
|
46
|
+
role: string;
|
|
47
|
+
shapeRendering: string;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=arc.d.ts.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.Arc = 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 _path =
|
|
18
|
+
var _path = require("./path");
|
|
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
|
|
|
@@ -95,7 +95,8 @@ var Arc = function (props) {
|
|
|
95
95
|
}));
|
|
96
96
|
};
|
|
97
97
|
|
|
98
|
-
Arc
|
|
98
|
+
exports.Arc = Arc;
|
|
99
|
+
Arc.propTypes = _objectSpread(_objectSpread({}, _commonProps.CommonProps.primitiveProps), {}, {
|
|
99
100
|
closedPath: _propTypes.default.bool,
|
|
100
101
|
cx: _propTypes.default.number,
|
|
101
102
|
cy: _propTypes.default.number,
|
|
@@ -106,9 +107,8 @@ Arc.propTypes = _objectSpread(_objectSpread({}, CommonProps.primitiveProps), {},
|
|
|
106
107
|
startAngle: _propTypes.default.number
|
|
107
108
|
});
|
|
108
109
|
Arc.defaultProps = {
|
|
109
|
-
pathComponent: /*#__PURE__*/_react.default.createElement(_path.
|
|
110
|
+
pathComponent: /*#__PURE__*/_react.default.createElement(_path.Path, null),
|
|
110
111
|
role: "presentation",
|
|
111
112
|
shapeRendering: "auto"
|
|
112
113
|
};
|
|
113
|
-
|
|
114
|
-
exports.default = _default;
|
|
114
|
+
//# sourceMappingURL=arc.js.map
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import PropTypes from "prop-types";
|
|
3
|
+
import { VictoryCommonPrimitiveProps } from "../victory-util/common-props";
|
|
4
|
+
export interface BackgroundProps extends VictoryCommonPrimitiveProps {
|
|
5
|
+
circleComponent?: React.ReactElement;
|
|
6
|
+
height?: number;
|
|
7
|
+
rectComponent?: React.ReactElement;
|
|
8
|
+
rx?: number;
|
|
9
|
+
ry?: number;
|
|
10
|
+
width?: number;
|
|
11
|
+
x?: number;
|
|
12
|
+
y?: number;
|
|
13
|
+
}
|
|
14
|
+
export declare const Background: {
|
|
15
|
+
(props: BackgroundProps): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
16
|
+
propTypes: {
|
|
17
|
+
circleComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
|
|
18
|
+
height: PropTypes.Requireable<number>;
|
|
19
|
+
rectComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
|
|
20
|
+
rx: PropTypes.Requireable<number>;
|
|
21
|
+
ry: PropTypes.Requireable<number>;
|
|
22
|
+
width: PropTypes.Requireable<number>;
|
|
23
|
+
x: PropTypes.Requireable<number>;
|
|
24
|
+
y: PropTypes.Requireable<number>;
|
|
25
|
+
active?: React.Validator<boolean | null | undefined> | undefined;
|
|
26
|
+
ariaLabel?: React.Validator<import("..").StringOrCallback | null | undefined> | undefined;
|
|
27
|
+
className?: React.Validator<string | null | undefined> | undefined;
|
|
28
|
+
clipPath?: React.Validator<string | null | undefined> | undefined;
|
|
29
|
+
data?: React.Validator<any> | undefined;
|
|
30
|
+
desc?: React.Validator<string | Function | null | undefined> | undefined;
|
|
31
|
+
disableInlineStyles?: React.Validator<boolean | null | undefined> | undefined;
|
|
32
|
+
events?: React.Validator<object | null | undefined> | undefined;
|
|
33
|
+
id?: React.Validator<string | number | Function | null | undefined> | undefined;
|
|
34
|
+
index?: React.Validator<string | number | null | undefined> | undefined;
|
|
35
|
+
origin?: React.Validator<import("..").OriginType | null | undefined> | undefined;
|
|
36
|
+
polar?: React.Validator<boolean | null | undefined> | undefined;
|
|
37
|
+
role?: React.Validator<string | null | undefined> | undefined;
|
|
38
|
+
scale?: React.Validator<any> | undefined;
|
|
39
|
+
shapeRendering?: React.Validator<string | null | undefined> | undefined;
|
|
40
|
+
style?: React.Validator<any> | undefined;
|
|
41
|
+
tabIndex?: React.Validator<import("..").NumberOrCallback | null | undefined> | undefined;
|
|
42
|
+
transform?: React.Validator<string | null | undefined> | undefined;
|
|
43
|
+
};
|
|
44
|
+
defaultProps: {
|
|
45
|
+
circleComponent: JSX.Element;
|
|
46
|
+
rectComponent: JSX.Element;
|
|
47
|
+
role: string;
|
|
48
|
+
shapeRendering: string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
//# sourceMappingURL=background.d.ts.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.Background = void 0;
|
|
7
7
|
|
|
8
8
|
var _assign2 = _interopRequireDefault(require("lodash/assign"));
|
|
9
9
|
|
|
@@ -13,11 +13,11 @@ 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 _rect =
|
|
18
|
+
var _rect = require("./rect");
|
|
19
19
|
|
|
20
|
-
var _circle =
|
|
20
|
+
var _circle = require("./circle");
|
|
21
21
|
|
|
22
22
|
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
23
|
|
|
@@ -66,7 +66,8 @@ var Background = function (props) {
|
|
|
66
66
|
}));
|
|
67
67
|
};
|
|
68
68
|
|
|
69
|
-
Background
|
|
69
|
+
exports.Background = Background;
|
|
70
|
+
Background.propTypes = _objectSpread(_objectSpread({}, _commonProps.CommonProps.primitiveProps), {}, {
|
|
70
71
|
circleComponent: _propTypes.default.element,
|
|
71
72
|
height: _propTypes.default.number,
|
|
72
73
|
rectComponent: _propTypes.default.element,
|
|
@@ -77,10 +78,9 @@ Background.propTypes = _objectSpread(_objectSpread({}, CommonProps.primitiveProp
|
|
|
77
78
|
y: _propTypes.default.number
|
|
78
79
|
});
|
|
79
80
|
Background.defaultProps = {
|
|
80
|
-
circleComponent: /*#__PURE__*/_react.default.createElement(_circle.
|
|
81
|
-
rectComponent: /*#__PURE__*/_react.default.createElement(_rect.
|
|
81
|
+
circleComponent: /*#__PURE__*/_react.default.createElement(_circle.Circle, null),
|
|
82
|
+
rectComponent: /*#__PURE__*/_react.default.createElement(_rect.Rect, null),
|
|
82
83
|
role: "presentation",
|
|
83
84
|
shapeRendering: "auto"
|
|
84
85
|
};
|
|
85
|
-
|
|
86
|
-
exports.default = _default;
|
|
86
|
+
//# sourceMappingURL=background.js.map
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import PropTypes from "prop-types";
|
|
3
|
+
import { VictoryCommonPrimitiveProps } from "../victory-util/common-props";
|
|
4
|
+
export interface BorderProps extends VictoryCommonPrimitiveProps {
|
|
5
|
+
width?: number;
|
|
6
|
+
height?: number;
|
|
7
|
+
rectComponent?: React.ReactElement;
|
|
8
|
+
x?: number;
|
|
9
|
+
y?: number;
|
|
10
|
+
}
|
|
11
|
+
export declare const Border: {
|
|
12
|
+
(props: BorderProps): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
13
|
+
propTypes: {
|
|
14
|
+
height: PropTypes.Requireable<number>;
|
|
15
|
+
rectComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
|
|
16
|
+
width: PropTypes.Requireable<number>;
|
|
17
|
+
x: PropTypes.Requireable<number>;
|
|
18
|
+
y: PropTypes.Requireable<number>;
|
|
19
|
+
active?: React.Validator<boolean | null | undefined> | undefined;
|
|
20
|
+
ariaLabel?: React.Validator<import("..").StringOrCallback | null | undefined> | undefined;
|
|
21
|
+
className?: React.Validator<string | null | undefined> | undefined;
|
|
22
|
+
clipPath?: React.Validator<string | null | undefined> | undefined;
|
|
23
|
+
data?: React.Validator<any> | undefined;
|
|
24
|
+
desc?: React.Validator<string | Function | null | undefined> | undefined;
|
|
25
|
+
disableInlineStyles?: React.Validator<boolean | null | undefined> | undefined;
|
|
26
|
+
events?: React.Validator<object | null | undefined> | undefined;
|
|
27
|
+
id?: React.Validator<string | number | Function | null | undefined> | undefined;
|
|
28
|
+
index?: React.Validator<string | number | null | undefined> | undefined;
|
|
29
|
+
origin?: React.Validator<import("..").OriginType | null | undefined> | undefined;
|
|
30
|
+
polar?: React.Validator<boolean | null | undefined> | undefined;
|
|
31
|
+
role?: React.Validator<string | null | undefined> | undefined;
|
|
32
|
+
scale?: React.Validator<any> | undefined;
|
|
33
|
+
shapeRendering?: React.Validator<string | null | undefined> | undefined;
|
|
34
|
+
style?: React.Validator<any> | undefined;
|
|
35
|
+
tabIndex?: React.Validator<import("..").NumberOrCallback | null | undefined> | undefined;
|
|
36
|
+
transform?: React.Validator<string | null | undefined> | undefined;
|
|
37
|
+
};
|
|
38
|
+
defaultProps: {
|
|
39
|
+
rectComponent: JSX.Element;
|
|
40
|
+
role: string;
|
|
41
|
+
shapeRendering: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=border.d.ts.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.Border = 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 _rect =
|
|
18
|
+
var _rect = require("./rect");
|
|
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 Border = function (props) {
|
|
|
73
73
|
}));
|
|
74
74
|
};
|
|
75
75
|
|
|
76
|
-
Border
|
|
76
|
+
exports.Border = Border;
|
|
77
|
+
Border.propTypes = _objectSpread(_objectSpread({}, _commonProps.CommonProps.primitiveProps), {}, {
|
|
77
78
|
height: _propTypes.default.number,
|
|
78
79
|
rectComponent: _propTypes.default.element,
|
|
79
80
|
width: _propTypes.default.number,
|
|
@@ -81,9 +82,8 @@ Border.propTypes = _objectSpread(_objectSpread({}, CommonProps.primitiveProps),
|
|
|
81
82
|
y: _propTypes.default.number
|
|
82
83
|
});
|
|
83
84
|
Border.defaultProps = {
|
|
84
|
-
rectComponent: /*#__PURE__*/_react.default.createElement(_rect.
|
|
85
|
+
rectComponent: /*#__PURE__*/_react.default.createElement(_rect.Rect, null),
|
|
85
86
|
role: "presentation",
|
|
86
87
|
shapeRendering: "auto"
|
|
87
88
|
};
|
|
88
|
-
|
|
89
|
-
exports.default = _default;
|
|
89
|
+
//# sourceMappingURL=border.js.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.Circle = 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 Circle = 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("circle", _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("circle", _extends({
|
|
28
34
|
vectorEffect: "non-scaling-stroke"
|
|
29
35
|
}, rest));
|
|
30
36
|
};
|
|
31
37
|
|
|
32
|
-
|
|
33
|
-
|
|
38
|
+
exports.Circle = Circle;
|
|
39
|
+
//# sourceMappingURL=circle.js.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import PropTypes from "prop-types";
|
|
3
|
+
import { VictoryCommonPrimitiveProps } from "../victory-util/common-props";
|
|
4
|
+
export interface ClipPathProps extends VictoryCommonPrimitiveProps {
|
|
5
|
+
children?: React.ReactNode[] | React.ReactNode;
|
|
6
|
+
clipId?: number | string;
|
|
7
|
+
}
|
|
8
|
+
export declare const ClipPath: {
|
|
9
|
+
(props: ClipPathProps): JSX.Element;
|
|
10
|
+
propTypes: {
|
|
11
|
+
children: PropTypes.Requireable<string | number | boolean | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
|
|
12
|
+
clipId: PropTypes.Requireable<string | number>;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=clip-path.d.ts.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.ClipPath = void 0;
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
@@ -12,14 +12,17 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
13
|
|
|
14
14
|
var ClipPath = function (props) {
|
|
15
|
-
return /*#__PURE__*/_react.default.createElement("defs", null,
|
|
15
|
+
return /*#__PURE__*/_react.default.createElement("defs", null,
|
|
16
|
+
/*#__PURE__*/
|
|
17
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
18
|
+
_react.default.createElement("clipPath", {
|
|
16
19
|
id: props.clipId
|
|
17
20
|
}, props.children));
|
|
18
21
|
};
|
|
19
22
|
|
|
23
|
+
exports.ClipPath = ClipPath;
|
|
20
24
|
ClipPath.propTypes = {
|
|
21
25
|
children: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.node), _propTypes.default.node]),
|
|
22
26
|
clipId: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string])
|
|
23
27
|
};
|
|
24
|
-
|
|
25
|
-
exports.default = _default;
|
|
28
|
+
//# sourceMappingURL=clip-path.js.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export * from "./arc";
|
|
2
|
+
export * from "./background";
|
|
3
|
+
export * from "./border";
|
|
4
|
+
export * from "./circle";
|
|
5
|
+
export * from "./clip-path";
|
|
6
|
+
export * from "./line";
|
|
7
|
+
export * from "./line-segment";
|
|
8
|
+
export * from "./path";
|
|
9
|
+
export * from "./point";
|
|
10
|
+
export * from "./rect";
|
|
11
|
+
export * from "./text";
|
|
12
|
+
export * from "./tspan";
|
|
13
|
+
export * from "./types";
|
|
14
|
+
export * from "./whisker";
|
|
15
|
+
//# sourceMappingURL=index.d.ts.map
|