victory-core 36.3.2 → 36.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/victory-core.js +14175 -14191
- package/dist/victory-core.min.js +1 -1
- package/es/victory-accessible-group/victory-accessible-group.js +38 -40
- package/es/victory-animation/util.js +1 -1
- package/es/victory-animation/victory-animation.js +46 -48
- package/es/victory-clip-container/victory-clip-container.js +71 -73
- package/es/victory-container/victory-container.js +82 -92
- package/es/victory-label/victory-label.js +29 -24
- package/es/victory-portal/portal-context.js +1 -1
- package/es/victory-portal/portal.js +28 -26
- package/es/victory-portal/victory-portal.js +31 -41
- package/es/victory-primitives/arc.js +6 -4
- package/es/victory-primitives/background.js +8 -6
- package/es/victory-primitives/border.js +6 -4
- package/es/victory-primitives/circle.js +8 -4
- package/es/victory-primitives/clip-path.js +1 -1
- package/es/victory-primitives/line-segment.js +6 -4
- package/es/victory-primitives/line.js +8 -4
- package/es/victory-primitives/path.js +7 -3
- package/es/victory-primitives/point.js +6 -4
- package/es/victory-primitives/rect.js +8 -4
- package/es/victory-primitives/text.js +7 -3
- package/es/victory-primitives/tspan.js +1 -1
- package/es/victory-primitives/whisker.js +9 -7
- package/es/victory-transition/victory-transition.js +30 -32
- package/es/victory-util/add-events.js +326 -317
- package/es/victory-util/axis.js +12 -5
- package/es/victory-util/collection.js +8 -4
- package/es/victory-util/data.js +9 -5
- package/es/victory-util/domain.js +8 -4
- package/es/victory-util/events.js +8 -4
- package/es/victory-util/helpers.js +1 -1
- package/es/victory-util/hooks/use-animation-state.js +11 -5
- package/es/victory-util/line-helpers.js +1 -1
- package/es/victory-util/scale.js +19 -19
- package/es/victory-util/textsize.js +11 -7
- package/es/victory-util/timer-context.js +1 -1
- package/es/victory-util/timer.js +3 -5
- package/es/victory-util/user-props.js +31 -4
- package/es/victory-util/wrapper.js +18 -12
- package/lib/index.js +68 -58
- package/lib/victory-accessible-group/victory-accessible-group.js +38 -40
- package/lib/victory-animation/util.js +2 -2
- package/lib/victory-animation/victory-animation.js +49 -49
- package/lib/victory-clip-container/victory-clip-container.js +74 -74
- package/lib/victory-container/victory-container.js +85 -93
- package/lib/victory-label/victory-label.js +35 -27
- package/lib/victory-portal/portal-context.js +1 -1
- package/lib/victory-portal/portal.js +31 -27
- package/lib/victory-portal/victory-portal.js +34 -42
- package/lib/victory-primitives/arc.js +9 -5
- package/lib/victory-primitives/background.js +11 -7
- package/lib/victory-primitives/border.js +9 -5
- package/lib/victory-primitives/circle.js +8 -4
- package/lib/victory-primitives/clip-path.js +1 -1
- package/lib/victory-primitives/line-segment.js +9 -5
- package/lib/victory-primitives/line.js +8 -4
- package/lib/victory-primitives/path.js +7 -3
- package/lib/victory-primitives/point.js +9 -5
- package/lib/victory-primitives/rect.js +8 -4
- package/lib/victory-primitives/text.js +7 -3
- package/lib/victory-primitives/tspan.js +1 -1
- package/lib/victory-primitives/whisker.js +12 -8
- package/lib/victory-transition/victory-transition.js +33 -33
- package/lib/victory-util/add-events.js +325 -313
- package/lib/victory-util/axis.js +20 -11
- package/lib/victory-util/collection.js +11 -7
- package/lib/victory-util/common-props.js +4 -2
- package/lib/victory-util/data.js +13 -7
- package/lib/victory-util/default-transitions.js +1 -1
- package/lib/victory-util/domain.js +11 -5
- package/lib/victory-util/events.js +17 -11
- package/lib/victory-util/helpers.js +14 -14
- package/lib/victory-util/hooks/index.js +4 -4
- package/lib/victory-util/hooks/use-animation-state.js +14 -6
- package/lib/victory-util/immutable.js +3 -3
- package/lib/victory-util/label-helpers.js +6 -4
- package/lib/victory-util/line-helpers.js +4 -2
- package/lib/victory-util/prop-types.js +5 -3
- package/lib/victory-util/scale.js +24 -21
- package/lib/victory-util/selection.js +6 -4
- package/lib/victory-util/textsize.js +12 -8
- package/lib/victory-util/timer-context.js +1 -1
- package/lib/victory-util/timer.js +3 -5
- package/lib/victory-util/user-props.js +31 -4
- package/lib/victory-util/wrapper.js +31 -23
- package/package.json +4 -11
- package/src/victory-animation/util.js +1 -1
- package/src/victory-animation/victory-animation.js +1 -1
- package/src/victory-label/victory-label.js +6 -6
- package/src/victory-util/axis.js +3 -0
- package/src/victory-util/line-helpers.js +1 -1
- package/src/victory-util/scale.js +18 -9
- package/src/victory-util/timer.js +1 -1
- package/src/victory-util/user-props.js +18 -1
package/lib/index.js
CHANGED
|
@@ -3,175 +3,183 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
Object.defineProperty(exports, "
|
|
6
|
+
Object.defineProperty(exports, "Arc", {
|
|
7
7
|
enumerable: true,
|
|
8
8
|
get: function () {
|
|
9
|
-
return
|
|
9
|
+
return _arc.default;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
|
|
12
|
+
exports.Axis = void 0;
|
|
13
|
+
Object.defineProperty(exports, "Background", {
|
|
13
14
|
enumerable: true,
|
|
14
15
|
get: function () {
|
|
15
|
-
return
|
|
16
|
+
return _background.default;
|
|
16
17
|
}
|
|
17
18
|
});
|
|
18
|
-
Object.defineProperty(exports, "
|
|
19
|
+
Object.defineProperty(exports, "Border", {
|
|
19
20
|
enumerable: true,
|
|
20
21
|
get: function () {
|
|
21
|
-
return
|
|
22
|
+
return _border.default;
|
|
22
23
|
}
|
|
23
24
|
});
|
|
24
|
-
Object.defineProperty(exports, "
|
|
25
|
+
Object.defineProperty(exports, "Box", {
|
|
25
26
|
enumerable: true,
|
|
26
27
|
get: function () {
|
|
27
|
-
return
|
|
28
|
+
return _border.default;
|
|
28
29
|
}
|
|
29
30
|
});
|
|
30
|
-
Object.defineProperty(exports, "
|
|
31
|
+
Object.defineProperty(exports, "Circle", {
|
|
31
32
|
enumerable: true,
|
|
32
33
|
get: function () {
|
|
33
|
-
return
|
|
34
|
+
return _circle.default;
|
|
34
35
|
}
|
|
35
36
|
});
|
|
36
|
-
Object.defineProperty(exports, "
|
|
37
|
+
Object.defineProperty(exports, "ClipPath", {
|
|
37
38
|
enumerable: true,
|
|
38
39
|
get: function () {
|
|
39
|
-
return
|
|
40
|
+
return _clipPath.default;
|
|
40
41
|
}
|
|
41
42
|
});
|
|
42
|
-
|
|
43
|
+
exports.LabelHelpers = exports.Immutable = exports.Hooks = exports.Helpers = exports.Events = exports.Domain = exports.DefaultTransitions = exports.Data = exports.CommonProps = exports.Collection = void 0;
|
|
44
|
+
Object.defineProperty(exports, "Line", {
|
|
43
45
|
enumerable: true,
|
|
44
46
|
get: function () {
|
|
45
|
-
return
|
|
47
|
+
return _line.default;
|
|
46
48
|
}
|
|
47
49
|
});
|
|
48
|
-
|
|
50
|
+
exports.LineHelpers = void 0;
|
|
51
|
+
Object.defineProperty(exports, "LineSegment", {
|
|
49
52
|
enumerable: true,
|
|
50
53
|
get: function () {
|
|
51
|
-
return
|
|
54
|
+
return _lineSegment.default;
|
|
52
55
|
}
|
|
53
56
|
});
|
|
54
|
-
|
|
57
|
+
exports.Log = void 0;
|
|
58
|
+
Object.defineProperty(exports, "Path", {
|
|
55
59
|
enumerable: true,
|
|
56
60
|
get: function () {
|
|
57
|
-
return
|
|
61
|
+
return _path.default;
|
|
58
62
|
}
|
|
59
63
|
});
|
|
60
|
-
Object.defineProperty(exports, "
|
|
64
|
+
Object.defineProperty(exports, "Point", {
|
|
61
65
|
enumerable: true,
|
|
62
66
|
get: function () {
|
|
63
|
-
return
|
|
67
|
+
return _point.default;
|
|
64
68
|
}
|
|
65
69
|
});
|
|
66
|
-
Object.defineProperty(exports, "
|
|
70
|
+
Object.defineProperty(exports, "PointPathHelpers", {
|
|
67
71
|
enumerable: true,
|
|
68
72
|
get: function () {
|
|
69
|
-
return
|
|
73
|
+
return _pointPathHelpers.default;
|
|
70
74
|
}
|
|
71
75
|
});
|
|
72
|
-
Object.defineProperty(exports, "
|
|
76
|
+
Object.defineProperty(exports, "Portal", {
|
|
73
77
|
enumerable: true,
|
|
74
78
|
get: function () {
|
|
75
|
-
return
|
|
79
|
+
return _portal.default;
|
|
76
80
|
}
|
|
77
81
|
});
|
|
78
|
-
Object.defineProperty(exports, "
|
|
82
|
+
Object.defineProperty(exports, "PortalContext", {
|
|
79
83
|
enumerable: true,
|
|
80
84
|
get: function () {
|
|
81
|
-
return
|
|
85
|
+
return _portalContext.default;
|
|
82
86
|
}
|
|
83
87
|
});
|
|
84
|
-
|
|
88
|
+
exports.PropTypes = void 0;
|
|
89
|
+
Object.defineProperty(exports, "Rect", {
|
|
85
90
|
enumerable: true,
|
|
86
91
|
get: function () {
|
|
87
|
-
return
|
|
92
|
+
return _rect.default;
|
|
88
93
|
}
|
|
89
94
|
});
|
|
90
|
-
|
|
95
|
+
exports.Style = exports.Selection = exports.Scale = void 0;
|
|
96
|
+
Object.defineProperty(exports, "TSpan", {
|
|
91
97
|
enumerable: true,
|
|
92
98
|
get: function () {
|
|
93
|
-
return
|
|
99
|
+
return _tspan.default;
|
|
94
100
|
}
|
|
95
101
|
});
|
|
96
|
-
Object.defineProperty(exports, "
|
|
102
|
+
Object.defineProperty(exports, "Text", {
|
|
97
103
|
enumerable: true,
|
|
98
104
|
get: function () {
|
|
99
|
-
return
|
|
105
|
+
return _text.default;
|
|
100
106
|
}
|
|
101
107
|
});
|
|
102
|
-
|
|
108
|
+
exports.TextSize = void 0;
|
|
109
|
+
Object.defineProperty(exports, "Timer", {
|
|
103
110
|
enumerable: true,
|
|
104
111
|
get: function () {
|
|
105
|
-
return
|
|
112
|
+
return _timer.default;
|
|
106
113
|
}
|
|
107
114
|
});
|
|
108
|
-
Object.defineProperty(exports, "
|
|
115
|
+
Object.defineProperty(exports, "TimerContext", {
|
|
109
116
|
enumerable: true,
|
|
110
117
|
get: function () {
|
|
111
|
-
return
|
|
118
|
+
return _timerContext.default;
|
|
112
119
|
}
|
|
113
120
|
});
|
|
114
|
-
|
|
121
|
+
exports.UserProps = exports.Transitions = void 0;
|
|
122
|
+
Object.defineProperty(exports, "VictoryAccessibleGroup", {
|
|
115
123
|
enumerable: true,
|
|
116
124
|
get: function () {
|
|
117
|
-
return
|
|
125
|
+
return _victoryAccessibleGroup.default;
|
|
118
126
|
}
|
|
119
127
|
});
|
|
120
|
-
Object.defineProperty(exports, "
|
|
128
|
+
Object.defineProperty(exports, "VictoryAnimation", {
|
|
121
129
|
enumerable: true,
|
|
122
130
|
get: function () {
|
|
123
|
-
return
|
|
131
|
+
return _victoryAnimation.default;
|
|
124
132
|
}
|
|
125
133
|
});
|
|
126
|
-
Object.defineProperty(exports, "
|
|
134
|
+
Object.defineProperty(exports, "VictoryClipContainer", {
|
|
127
135
|
enumerable: true,
|
|
128
136
|
get: function () {
|
|
129
|
-
return
|
|
137
|
+
return _victoryClipContainer.default;
|
|
130
138
|
}
|
|
131
139
|
});
|
|
132
|
-
Object.defineProperty(exports, "
|
|
140
|
+
Object.defineProperty(exports, "VictoryContainer", {
|
|
133
141
|
enumerable: true,
|
|
134
142
|
get: function () {
|
|
135
|
-
return
|
|
143
|
+
return _victoryContainer.default;
|
|
136
144
|
}
|
|
137
145
|
});
|
|
138
|
-
Object.defineProperty(exports, "
|
|
146
|
+
Object.defineProperty(exports, "VictoryLabel", {
|
|
139
147
|
enumerable: true,
|
|
140
148
|
get: function () {
|
|
141
|
-
return
|
|
149
|
+
return _victoryLabel.default;
|
|
142
150
|
}
|
|
143
151
|
});
|
|
144
|
-
Object.defineProperty(exports, "
|
|
152
|
+
Object.defineProperty(exports, "VictoryPortal", {
|
|
145
153
|
enumerable: true,
|
|
146
154
|
get: function () {
|
|
147
|
-
return
|
|
155
|
+
return _victoryPortal.default;
|
|
148
156
|
}
|
|
149
157
|
});
|
|
150
|
-
Object.defineProperty(exports, "
|
|
158
|
+
Object.defineProperty(exports, "VictoryTheme", {
|
|
151
159
|
enumerable: true,
|
|
152
160
|
get: function () {
|
|
153
|
-
return
|
|
161
|
+
return _victoryTheme.default;
|
|
154
162
|
}
|
|
155
163
|
});
|
|
156
|
-
Object.defineProperty(exports, "
|
|
164
|
+
Object.defineProperty(exports, "VictoryTransition", {
|
|
157
165
|
enumerable: true,
|
|
158
166
|
get: function () {
|
|
159
|
-
return
|
|
167
|
+
return _victoryTransition.default;
|
|
160
168
|
}
|
|
161
169
|
});
|
|
162
|
-
Object.defineProperty(exports, "
|
|
170
|
+
Object.defineProperty(exports, "Whisker", {
|
|
163
171
|
enumerable: true,
|
|
164
172
|
get: function () {
|
|
165
|
-
return
|
|
173
|
+
return _whisker.default;
|
|
166
174
|
}
|
|
167
175
|
});
|
|
168
|
-
|
|
176
|
+
exports.Wrapper = void 0;
|
|
177
|
+
Object.defineProperty(exports, "addEvents", {
|
|
169
178
|
enumerable: true,
|
|
170
179
|
get: function () {
|
|
171
|
-
return
|
|
180
|
+
return _addEvents.default;
|
|
172
181
|
}
|
|
173
182
|
});
|
|
174
|
-
exports.LineHelpers = exports.Hooks = exports.Axis = exports.Wrapper = exports.CommonProps = exports.UserProps = exports.Transitions = exports.TextSize = exports.Style = exports.Selection = exports.Scale = exports.PropTypes = exports.Log = exports.LabelHelpers = exports.Immutable = exports.Helpers = exports.Events = exports.Domain = exports.DefaultTransitions = exports.Data = exports.Collection = void 0;
|
|
175
183
|
|
|
176
184
|
var _victoryAccessibleGroup = _interopRequireDefault(require("./victory-accessible-group/victory-accessible-group"));
|
|
177
185
|
|
|
@@ -311,6 +319,8 @@ exports.LineHelpers = _LineHelpers;
|
|
|
311
319
|
|
|
312
320
|
var _pointPathHelpers = _interopRequireDefault(require("./victory-util/point-path-helpers"));
|
|
313
321
|
|
|
314
|
-
function
|
|
322
|
+
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); }
|
|
323
|
+
|
|
324
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
315
325
|
|
|
316
326
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -15,42 +15,52 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
15
15
|
|
|
16
16
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
17
17
|
|
|
18
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
18
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
19
19
|
|
|
20
|
-
function
|
|
20
|
+
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); }
|
|
21
|
+
|
|
22
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
23
|
+
|
|
24
|
+
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); }; }
|
|
25
|
+
|
|
26
|
+
function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
21
27
|
|
|
22
28
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
23
29
|
|
|
24
|
-
function
|
|
30
|
+
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; } }
|
|
25
31
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
function (
|
|
32
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
33
|
+
|
|
34
|
+
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; }
|
|
35
|
+
|
|
36
|
+
var VictoryAccessibleGroup = /*#__PURE__*/function (_React$Component) {
|
|
29
37
|
_inherits(VictoryAccessibleGroup, _React$Component);
|
|
30
38
|
|
|
39
|
+
var _super = _createSuper(VictoryAccessibleGroup);
|
|
40
|
+
|
|
31
41
|
function VictoryAccessibleGroup() {
|
|
32
42
|
_classCallCheck(this, VictoryAccessibleGroup);
|
|
33
43
|
|
|
34
|
-
return
|
|
44
|
+
return _super.apply(this, arguments);
|
|
35
45
|
}
|
|
36
46
|
|
|
37
47
|
_createClass(VictoryAccessibleGroup, [{
|
|
38
48
|
key: "render",
|
|
39
49
|
value: function render() {
|
|
40
|
-
var
|
|
41
|
-
desc =
|
|
42
|
-
children =
|
|
43
|
-
className =
|
|
44
|
-
tabIndex =
|
|
50
|
+
var _this$props = this.props,
|
|
51
|
+
desc = _this$props.desc,
|
|
52
|
+
children = _this$props.children,
|
|
53
|
+
className = _this$props.className,
|
|
54
|
+
tabIndex = _this$props.tabIndex;
|
|
45
55
|
var descId = desc && (this.props["aria-describedby"] || desc.split(" ").join("-"));
|
|
46
|
-
return desc ? _react.default.createElement("g", {
|
|
56
|
+
return desc ? /*#__PURE__*/_react.default.createElement("g", {
|
|
47
57
|
"aria-label": this.props["aria-label"],
|
|
48
58
|
"aria-describedby": descId,
|
|
49
59
|
className: className,
|
|
50
60
|
tabIndex: tabIndex
|
|
51
|
-
}, _react.default.createElement("desc", {
|
|
61
|
+
}, /*#__PURE__*/_react.default.createElement("desc", {
|
|
52
62
|
id: descId
|
|
53
|
-
}, desc), children) : _react.default.createElement("g", {
|
|
63
|
+
}, desc), children) : /*#__PURE__*/_react.default.createElement("g", {
|
|
54
64
|
"aria-label": this.props["aria-label"],
|
|
55
65
|
"aria-describedby": this.props["aria-describedby"],
|
|
56
66
|
className: className,
|
|
@@ -62,32 +72,20 @@ function (_React$Component) {
|
|
|
62
72
|
return VictoryAccessibleGroup;
|
|
63
73
|
}(_react.default.Component);
|
|
64
74
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
writable: true,
|
|
75
|
-
value: {
|
|
76
|
-
"aria-describedby": _propTypes.default.string,
|
|
77
|
-
"aria-label": _propTypes.default.string,
|
|
78
|
-
children: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.node), _propTypes.default.node]),
|
|
79
|
-
className: _propTypes.default.string,
|
|
80
|
-
desc: _propTypes.default.string,
|
|
81
|
-
tabIndex: _propTypes.default.number
|
|
82
|
-
}
|
|
75
|
+
_defineProperty(VictoryAccessibleGroup, "displayName", "VictoryAccessibleGroup");
|
|
76
|
+
|
|
77
|
+
_defineProperty(VictoryAccessibleGroup, "propTypes", {
|
|
78
|
+
"aria-describedby": _propTypes.default.string,
|
|
79
|
+
"aria-label": _propTypes.default.string,
|
|
80
|
+
children: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.node), _propTypes.default.node]),
|
|
81
|
+
className: _propTypes.default.string,
|
|
82
|
+
desc: _propTypes.default.string,
|
|
83
|
+
tabIndex: _propTypes.default.number
|
|
83
84
|
});
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
writable: true,
|
|
88
|
-
value: {
|
|
89
|
-
className: "VictoryAccessibleGroup"
|
|
90
|
-
}
|
|
85
|
+
|
|
86
|
+
_defineProperty(VictoryAccessibleGroup, "defaultProps", {
|
|
87
|
+
className: "VictoryAccessibleGroup"
|
|
91
88
|
});
|
|
89
|
+
|
|
92
90
|
var _default = VictoryAccessibleGroup;
|
|
93
91
|
exports.default = _default;
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.victoryInterpolator = exports.
|
|
6
|
+
exports.victoryInterpolator = exports.isInterpolatable = exports.interpolateString = exports.interpolateObject = exports.interpolateImmediate = exports.interpolateFunction = void 0;
|
|
7
7
|
|
|
8
8
|
var _orderBy2 = _interopRequireDefault(require("lodash/orderBy"));
|
|
9
9
|
|
|
10
10
|
var _isPlainObject2 = _interopRequireDefault(require("lodash/isPlainObject"));
|
|
11
11
|
|
|
12
|
-
var _d3Interpolate = require("d3-interpolate");
|
|
12
|
+
var _d3Interpolate = require("victory-vendor/d3-interpolate");
|
|
13
13
|
|
|
14
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
15
|
|
|
@@ -9,7 +9,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
|
|
10
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
11
|
|
|
12
|
-
var d3Ease = _interopRequireWildcard(require("d3-ease"));
|
|
12
|
+
var d3Ease = _interopRequireWildcard(require("victory-vendor/d3-ease"));
|
|
13
13
|
|
|
14
14
|
var _util = require("./util");
|
|
15
15
|
|
|
@@ -17,41 +17,57 @@ var _timerContext = _interopRequireDefault(require("../victory-util/timer-contex
|
|
|
17
17
|
|
|
18
18
|
var _reactFastCompare = _interopRequireDefault(require("react-fast-compare"));
|
|
19
19
|
|
|
20
|
-
function
|
|
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
|
+
|
|
22
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
21
23
|
|
|
22
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
25
|
|
|
24
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
26
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
27
|
+
|
|
28
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
25
29
|
|
|
26
|
-
function
|
|
30
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
27
31
|
|
|
28
|
-
function _iterableToArray(iter) { if (Symbol.iterator
|
|
32
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
29
33
|
|
|
30
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr))
|
|
34
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
35
|
+
|
|
36
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
31
37
|
|
|
32
38
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
33
39
|
|
|
34
40
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
35
41
|
|
|
36
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
42
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
43
|
+
|
|
44
|
+
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); }
|
|
37
45
|
|
|
38
|
-
function
|
|
46
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
39
47
|
|
|
40
|
-
function
|
|
48
|
+
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); }; }
|
|
49
|
+
|
|
50
|
+
function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
41
51
|
|
|
42
52
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
43
53
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
function (
|
|
54
|
+
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; } }
|
|
55
|
+
|
|
56
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
57
|
+
|
|
58
|
+
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; }
|
|
59
|
+
|
|
60
|
+
var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
|
|
47
61
|
_inherits(VictoryAnimation, _React$Component);
|
|
48
62
|
|
|
63
|
+
var _super = _createSuper(VictoryAnimation);
|
|
64
|
+
|
|
49
65
|
function VictoryAnimation(props, context) {
|
|
50
66
|
var _this;
|
|
51
67
|
|
|
52
68
|
_classCallCheck(this, VictoryAnimation);
|
|
53
69
|
|
|
54
|
-
_this =
|
|
70
|
+
_this = _super.call(this, props, context);
|
|
55
71
|
/* defaults */
|
|
56
72
|
|
|
57
73
|
_this.state = {
|
|
@@ -113,10 +129,10 @@ function (_React$Component) {
|
|
|
113
129
|
this.queue.push(this.props.data);
|
|
114
130
|
/* If an array was supplied */
|
|
115
131
|
} else {
|
|
116
|
-
var
|
|
132
|
+
var _this$queue;
|
|
117
133
|
|
|
118
134
|
/* Extend the tween queue */
|
|
119
|
-
(
|
|
135
|
+
(_this$queue = this.queue).push.apply(_this$queue, _toConsumableArray(this.props.data));
|
|
120
136
|
}
|
|
121
137
|
/* Start traversing the tween queue */
|
|
122
138
|
|
|
@@ -226,39 +242,23 @@ function (_React$Component) {
|
|
|
226
242
|
}(_react.default.Component);
|
|
227
243
|
|
|
228
244
|
exports.default = VictoryAnimation;
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
value: {
|
|
240
|
-
children: _propTypes.default.func,
|
|
241
|
-
data: _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.array]),
|
|
242
|
-
delay: _propTypes.default.number,
|
|
243
|
-
duration: _propTypes.default.number,
|
|
244
|
-
easing: _propTypes.default.oneOf(["back", "backIn", "backOut", "backInOut", "bounce", "bounceIn", "bounceOut", "bounceInOut", "circle", "circleIn", "circleOut", "circleInOut", "linear", "linearIn", "linearOut", "linearInOut", "cubic", "cubicIn", "cubicOut", "cubicInOut", "elastic", "elasticIn", "elasticOut", "elasticInOut", "exp", "expIn", "expOut", "expInOut", "poly", "polyIn", "polyOut", "polyInOut", "quad", "quadIn", "quadOut", "quadInOut", "sin", "sinIn", "sinOut", "sinInOut"]),
|
|
245
|
-
onEnd: _propTypes.default.func
|
|
246
|
-
}
|
|
245
|
+
|
|
246
|
+
_defineProperty(VictoryAnimation, "displayName", "VictoryAnimation");
|
|
247
|
+
|
|
248
|
+
_defineProperty(VictoryAnimation, "propTypes", {
|
|
249
|
+
children: _propTypes.default.func,
|
|
250
|
+
data: _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.array]),
|
|
251
|
+
delay: _propTypes.default.number,
|
|
252
|
+
duration: _propTypes.default.number,
|
|
253
|
+
easing: _propTypes.default.oneOf(["back", "backIn", "backOut", "backInOut", "bounce", "bounceIn", "bounceOut", "bounceInOut", "circle", "circleIn", "circleOut", "circleInOut", "linear", "linearIn", "linearOut", "linearInOut", "cubic", "cubicIn", "cubicOut", "cubicInOut", "elastic", "elasticIn", "elasticOut", "elasticInOut", "exp", "expIn", "expOut", "expInOut", "poly", "polyIn", "polyOut", "polyInOut", "quad", "quadIn", "quadOut", "quadInOut", "sin", "sinIn", "sinOut", "sinInOut"]),
|
|
254
|
+
onEnd: _propTypes.default.func
|
|
247
255
|
});
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
delay: 0,
|
|
255
|
-
duration: 1000,
|
|
256
|
-
easing: "quadInOut"
|
|
257
|
-
}
|
|
256
|
+
|
|
257
|
+
_defineProperty(VictoryAnimation, "defaultProps", {
|
|
258
|
+
data: {},
|
|
259
|
+
delay: 0,
|
|
260
|
+
duration: 1000,
|
|
261
|
+
easing: "quadInOut"
|
|
258
262
|
});
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
enumerable: true,
|
|
262
|
-
writable: true,
|
|
263
|
-
value: _timerContext.default
|
|
264
|
-
});
|
|
263
|
+
|
|
264
|
+
_defineProperty(VictoryAnimation, "contextType", _timerContext.default);
|