victory-core 36.3.2 → 36.5.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.
Files changed (253) hide show
  1. package/dist/victory-core.js +15084 -15018
  2. package/dist/victory-core.min.js +1 -1
  3. package/es/index.d.ts +38 -941
  4. package/es/index.js +19 -28
  5. package/es/types.d.ts +33 -0
  6. package/es/types.js +1 -0
  7. package/es/victory-accessible-group/victory-accessible-group.d.ts +25 -0
  8. package/es/victory-accessible-group/victory-accessible-group.js +35 -45
  9. package/es/victory-animation/util.d.ts +66 -0
  10. package/es/victory-animation/util.js +3 -2
  11. package/es/victory-animation/victory-animation.d.ts +69 -0
  12. package/es/victory-animation/victory-animation.js +92 -102
  13. package/es/victory-clip-container/victory-clip-container.d.ts +76 -0
  14. package/es/victory-clip-container/victory-clip-container.js +75 -82
  15. package/es/victory-container/victory-container.d.ts +99 -0
  16. package/es/victory-container/victory-container.js +97 -107
  17. package/es/victory-label/victory-label.d.ts +61 -0
  18. package/es/victory-label/victory-label.js +43 -31
  19. package/es/victory-portal/portal-context.d.ts +11 -0
  20. package/es/victory-portal/portal-context.js +3 -4
  21. package/es/victory-portal/portal.d.ts +28 -0
  22. package/es/victory-portal/portal.js +44 -50
  23. package/es/victory-portal/victory-portal.d.ts +31 -0
  24. package/es/victory-portal/victory-portal.js +38 -47
  25. package/es/victory-primitives/arc.d.ts +21 -0
  26. package/es/victory-primitives/arc.js +9 -9
  27. package/es/victory-primitives/background.d.ts +22 -0
  28. package/es/victory-primitives/background.js +12 -12
  29. package/es/victory-primitives/border.d.ts +18 -0
  30. package/es/victory-primitives/border.js +9 -9
  31. package/es/victory-primitives/circle.d.ts +2 -0
  32. package/es/victory-primitives/circle.js +17 -10
  33. package/es/victory-primitives/clip-path.d.ts +14 -0
  34. package/es/victory-primitives/clip-path.js +6 -6
  35. package/es/victory-primitives/index.d.ts +14 -0
  36. package/es/victory-primitives/index.js +14 -0
  37. package/es/victory-primitives/line-segment.d.ts +19 -0
  38. package/es/victory-primitives/line-segment.js +9 -9
  39. package/es/victory-primitives/line.d.ts +2 -0
  40. package/es/victory-primitives/line.js +17 -10
  41. package/es/victory-primitives/path.d.ts +2 -0
  42. package/es/victory-primitives/path.js +15 -8
  43. package/es/victory-primitives/point.d.ts +21 -0
  44. package/es/victory-primitives/point.js +15 -23
  45. package/es/victory-primitives/rect.d.ts +2 -0
  46. package/es/victory-primitives/rect.js +17 -10
  47. package/es/victory-primitives/text.d.ts +16 -0
  48. package/es/victory-primitives/text.js +13 -8
  49. package/es/victory-primitives/tspan.d.ts +2 -0
  50. package/es/victory-primitives/tspan.js +7 -6
  51. package/es/victory-primitives/types.d.ts +7 -0
  52. package/es/victory-primitives/types.js +1 -0
  53. package/es/victory-primitives/whisker.d.ts +24 -0
  54. package/es/victory-primitives/whisker.js +12 -12
  55. package/es/victory-theme/grayscale.d.ts +2 -0
  56. package/es/victory-theme/grayscale.js +1 -1
  57. package/es/victory-theme/material.d.ts +2 -0
  58. package/es/victory-theme/material.js +1 -1
  59. package/es/victory-theme/victory-theme-definition.d.ts +244 -0
  60. package/es/victory-theme/victory-theme-definition.js +1 -0
  61. package/es/victory-theme/victory-theme.d.ts +5 -0
  62. package/es/victory-theme/victory-theme.js +6 -5
  63. package/es/victory-transition/victory-transition.d.ts +59 -0
  64. package/es/victory-transition/victory-transition.js +38 -44
  65. package/es/victory-util/add-events.js +328 -319
  66. package/es/victory-util/axis.js +12 -6
  67. package/es/victory-util/collection.js +7 -5
  68. package/es/victory-util/common-props.js +2 -2
  69. package/es/victory-util/data.js +8 -6
  70. package/es/victory-util/default-transitions.js +0 -1
  71. package/es/victory-util/domain.js +7 -5
  72. package/es/victory-util/events.js +8 -4
  73. package/es/victory-util/helpers.js +1 -3
  74. package/es/victory-util/hooks/use-animation-state.js +11 -5
  75. package/es/victory-util/immutable.js +0 -1
  76. package/es/victory-util/label-helpers.js +0 -2
  77. package/es/victory-util/line-helpers.js +1 -1
  78. package/es/victory-util/log.js +0 -1
  79. package/es/victory-util/point-path-helpers.d.ts +9 -0
  80. package/es/victory-util/point-path-helpers.js +59 -61
  81. package/es/victory-util/scale.js +19 -19
  82. package/es/victory-util/selection.d.ts +23 -0
  83. package/es/victory-util/selection.js +0 -2
  84. package/es/victory-util/style.js +0 -2
  85. package/es/victory-util/textsize.d.ts +8 -0
  86. package/es/victory-util/textsize.js +11 -7
  87. package/es/victory-util/timer-context.d.ts +11 -0
  88. package/es/victory-util/timer-context.js +1 -1
  89. package/es/victory-util/timer.d.ts +16 -0
  90. package/es/victory-util/timer.js +16 -13
  91. package/es/victory-util/types.d.ts +188 -0
  92. package/es/victory-util/types.js +1 -0
  93. package/es/victory-util/user-props.js +44 -4
  94. package/es/victory-util/wrapper.js +18 -12
  95. package/lib/index.d.ts +38 -941
  96. package/lib/index.js +201 -189
  97. package/lib/types.d.ts +33 -0
  98. package/lib/types.js +1 -0
  99. package/lib/victory-accessible-group/victory-accessible-group.d.ts +25 -0
  100. package/lib/victory-accessible-group/victory-accessible-group.js +37 -45
  101. package/lib/victory-animation/util.d.ts +66 -0
  102. package/lib/victory-animation/util.js +4 -3
  103. package/lib/victory-animation/victory-animation.d.ts +69 -0
  104. package/lib/victory-animation/victory-animation.js +97 -102
  105. package/lib/victory-clip-container/victory-clip-container.d.ts +76 -0
  106. package/lib/victory-clip-container/victory-clip-container.js +81 -82
  107. package/lib/victory-container/victory-container.d.ts +99 -0
  108. package/lib/victory-container/victory-container.js +102 -107
  109. package/lib/victory-label/victory-label.d.ts +61 -0
  110. package/lib/victory-label/victory-label.js +49 -32
  111. package/lib/victory-portal/portal-context.d.ts +11 -0
  112. package/lib/victory-portal/portal-context.js +4 -5
  113. package/lib/victory-portal/portal.d.ts +28 -0
  114. package/lib/victory-portal/portal.js +49 -50
  115. package/lib/victory-portal/victory-portal.d.ts +31 -0
  116. package/lib/victory-portal/victory-portal.js +43 -47
  117. package/lib/victory-primitives/arc.d.ts +21 -0
  118. package/lib/victory-primitives/arc.js +13 -10
  119. package/lib/victory-primitives/background.d.ts +22 -0
  120. package/lib/victory-primitives/background.js +16 -13
  121. package/lib/victory-primitives/border.d.ts +18 -0
  122. package/lib/victory-primitives/border.js +13 -10
  123. package/lib/victory-primitives/circle.d.ts +2 -0
  124. package/lib/victory-primitives/circle.js +17 -8
  125. package/lib/victory-primitives/clip-path.d.ts +14 -0
  126. package/lib/victory-primitives/clip-path.js +7 -5
  127. package/lib/victory-primitives/index.d.ts +14 -0
  128. package/lib/victory-primitives/index.js +187 -0
  129. package/lib/victory-primitives/line-segment.d.ts +19 -0
  130. package/lib/victory-primitives/line-segment.js +13 -10
  131. package/lib/victory-primitives/line.d.ts +2 -0
  132. package/lib/victory-primitives/line.js +17 -8
  133. package/lib/victory-primitives/path.d.ts +2 -0
  134. package/lib/victory-primitives/path.js +15 -6
  135. package/lib/victory-primitives/point.d.ts +21 -0
  136. package/lib/victory-primitives/point.js +21 -25
  137. package/lib/victory-primitives/rect.d.ts +2 -0
  138. package/lib/victory-primitives/rect.js +17 -8
  139. package/lib/victory-primitives/text.d.ts +16 -0
  140. package/lib/victory-primitives/text.js +14 -7
  141. package/lib/victory-primitives/tspan.d.ts +2 -0
  142. package/lib/victory-primitives/tspan.js +7 -4
  143. package/lib/victory-primitives/types.d.ts +7 -0
  144. package/lib/victory-primitives/types.js +1 -0
  145. package/lib/victory-primitives/whisker.d.ts +24 -0
  146. package/lib/victory-primitives/whisker.js +16 -13
  147. package/lib/victory-theme/grayscale.d.ts +2 -0
  148. package/lib/victory-theme/grayscale.js +3 -3
  149. package/lib/victory-theme/material.d.ts +2 -0
  150. package/lib/victory-theme/material.js +3 -3
  151. package/lib/victory-theme/victory-theme-definition.d.ts +244 -0
  152. package/lib/victory-theme/victory-theme-definition.js +1 -0
  153. package/lib/victory-theme/victory-theme.d.ts +5 -0
  154. package/lib/victory-theme/victory-theme.js +22 -8
  155. package/lib/victory-transition/victory-transition.d.ts +59 -0
  156. package/lib/victory-transition/victory-transition.js +43 -45
  157. package/lib/victory-util/add-events.js +326 -316
  158. package/lib/victory-util/axis.js +20 -11
  159. package/lib/victory-util/collection.js +10 -8
  160. package/lib/victory-util/common-props.js +6 -4
  161. package/lib/victory-util/data.js +13 -7
  162. package/lib/victory-util/default-transitions.js +1 -2
  163. package/lib/victory-util/domain.js +11 -5
  164. package/lib/victory-util/events.js +17 -11
  165. package/lib/victory-util/helpers.js +14 -16
  166. package/lib/victory-util/hooks/index.js +4 -4
  167. package/lib/victory-util/hooks/use-animation-state.js +14 -6
  168. package/lib/victory-util/immutable.js +3 -5
  169. package/lib/victory-util/label-helpers.js +6 -6
  170. package/lib/victory-util/line-helpers.js +4 -2
  171. package/lib/victory-util/log.js +0 -1
  172. package/lib/victory-util/point-path-helpers.d.ts +9 -0
  173. package/lib/victory-util/point-path-helpers.js +86 -73
  174. package/lib/victory-util/prop-types.js +5 -3
  175. package/lib/victory-util/scale.js +24 -21
  176. package/lib/victory-util/selection.d.ts +23 -0
  177. package/lib/victory-util/selection.js +5 -5
  178. package/lib/victory-util/style.js +0 -2
  179. package/lib/victory-util/textsize.d.ts +8 -0
  180. package/lib/victory-util/textsize.js +12 -8
  181. package/lib/victory-util/timer-context.d.ts +11 -0
  182. package/lib/victory-util/timer-context.js +1 -1
  183. package/lib/victory-util/timer.d.ts +16 -0
  184. package/lib/victory-util/timer.js +16 -13
  185. package/lib/victory-util/types.d.ts +188 -0
  186. package/lib/victory-util/types.js +1 -0
  187. package/lib/victory-util/user-props.js +53 -6
  188. package/lib/victory-util/wrapper.js +31 -23
  189. package/package.json +6 -13
  190. package/src/index.ts +42 -0
  191. package/src/types.ts +45 -0
  192. package/src/victory-accessible-group/{victory-accessible-group.js → victory-accessible-group.tsx} +10 -3
  193. package/src/victory-animation/{util.js → util.ts} +5 -4
  194. package/src/victory-animation/{victory-animation.js → victory-animation.tsx} +90 -13
  195. package/src/victory-clip-container/{victory-clip-container.js → victory-clip-container.tsx} +32 -6
  196. package/src/victory-container/{victory-container.js → victory-container.tsx} +70 -26
  197. package/src/victory-label/{victory-label.js → victory-label.tsx} +80 -19
  198. package/src/victory-portal/portal-context.ts +14 -0
  199. package/src/victory-portal/{portal.js → portal.tsx} +23 -12
  200. package/src/victory-portal/{victory-portal.js → victory-portal.tsx} +21 -6
  201. package/src/victory-primitives/{arc.js → arc.tsx} +15 -5
  202. package/src/victory-primitives/{background.js → background.tsx} +17 -7
  203. package/src/victory-primitives/{border.js → border.tsx} +12 -5
  204. package/src/victory-primitives/{circle.js → circle.tsx} +4 -3
  205. package/src/victory-primitives/clip-path.tsx +25 -0
  206. package/src/victory-primitives/index.ts +14 -0
  207. package/src/victory-primitives/{line-segment.js → line-segment.tsx} +13 -5
  208. package/src/victory-primitives/{line.js → line.tsx} +4 -3
  209. package/src/victory-primitives/{path.js → path.tsx} +4 -3
  210. package/src/victory-primitives/{point.js → point.tsx} +25 -20
  211. package/src/victory-primitives/{rect.js → rect.tsx} +4 -2
  212. package/src/victory-primitives/{text.js → text.tsx} +9 -3
  213. package/src/victory-primitives/tspan.tsx +7 -0
  214. package/src/victory-primitives/types.ts +19 -0
  215. package/src/victory-primitives/{whisker.js → whisker.tsx} +20 -7
  216. package/src/victory-theme/{grayscale.js → grayscale.tsx} +2 -1
  217. package/src/victory-theme/{material.js → material.tsx} +2 -1
  218. package/src/victory-theme/victory-theme-definition.ts +261 -0
  219. package/src/victory-theme/victory-theme.tsx +5 -0
  220. package/src/victory-transition/{victory-transition.js → victory-transition.tsx} +68 -19
  221. package/src/victory-util/add-events.js +7 -5
  222. package/src/victory-util/axis.js +3 -1
  223. package/src/victory-util/collection.js +0 -1
  224. package/src/victory-util/common-props.js +2 -2
  225. package/src/victory-util/data.js +0 -1
  226. package/src/victory-util/default-transitions.js +0 -1
  227. package/src/victory-util/domain.js +0 -1
  228. package/src/victory-util/events.js +1 -1
  229. package/src/victory-util/helpers.js +0 -1
  230. package/src/victory-util/immutable.js +0 -1
  231. package/src/victory-util/label-helpers.js +0 -1
  232. package/src/victory-util/line-helpers.js +1 -1
  233. package/src/victory-util/log.js +0 -1
  234. package/src/victory-util/point-path-helpers.ts +119 -0
  235. package/src/victory-util/prop-types.js +0 -1
  236. package/src/victory-util/scale.js +18 -10
  237. package/src/victory-util/selection.d.ts +23 -0
  238. package/src/victory-util/selection.js +0 -1
  239. package/src/victory-util/style.js +0 -1
  240. package/src/victory-util/textsize.d.ts +8 -0
  241. package/src/victory-util/{timer-context.js → timer-context.ts} +0 -0
  242. package/src/victory-util/{timer.js → timer.ts} +20 -5
  243. package/src/victory-util/transitions.js +0 -1
  244. package/src/victory-util/types.ts +247 -0
  245. package/src/victory-util/user-props.js +31 -1
  246. package/src/victory-util/wrapper.js +0 -1
  247. package/src/index.d.ts +0 -941
  248. package/src/index.js +0 -51
  249. package/src/victory-portal/portal-context.js +0 -10
  250. package/src/victory-primitives/clip-path.js +0 -18
  251. package/src/victory-primitives/tspan.js +0 -5
  252. package/src/victory-theme/victory-theme.js +0 -7
  253. package/src/victory-util/point-path-helpers.js +0 -121
@@ -1,44 +1,105 @@
1
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
1
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
2
2
 
3
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
3
+ 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."); }
4
4
 
5
- function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
5
+ 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); }
6
6
 
7
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }
7
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
8
+
9
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
10
+
11
+ 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; }
8
12
 
9
13
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
10
14
 
11
15
  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); } }
12
16
 
13
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
17
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
18
+
19
+ 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); }
14
20
 
15
- function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
21
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
16
22
 
17
- 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, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
23
+ 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); }; }
24
+
25
+ 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); }
18
26
 
19
27
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
20
28
 
29
+ 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; } }
30
+
31
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
32
+
21
33
  /*global setTimeout:false */
22
34
  import React from "react";
23
35
  import PropTypes from "prop-types";
24
- import * as d3Ease from "d3-ease";
36
+ import * as d3Ease from "victory-vendor/d3-ease";
25
37
  import { victoryInterpolator } from "./util";
26
38
  import TimerContext from "../victory-util/timer-context";
27
39
  import isEqual from "react-fast-compare";
28
-
29
- var VictoryAnimation =
30
- /*#__PURE__*/
31
- function (_React$Component) {
40
+ export var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
32
41
  _inherits(VictoryAnimation, _React$Component);
33
42
 
43
+ var _super = _createSuper(VictoryAnimation);
44
+
34
45
  function VictoryAnimation(props, context) {
35
46
  var _this;
36
47
 
37
48
  _classCallCheck(this, VictoryAnimation);
38
49
 
39
- _this = _possibleConstructorReturn(this, (VictoryAnimation.__proto__ || Object.getPrototypeOf(VictoryAnimation)).call(this, props, context));
50
+ _this = _super.call(this, props, context);
40
51
  /* defaults */
41
52
 
53
+ _this.interpolator = void 0;
54
+ _this.queue = void 0;
55
+ _this.ease = void 0;
56
+ _this.timer = void 0;
57
+ _this.loopID = void 0;
58
+
59
+ _this.functionToBeRunEachFrame = function (elapsed, duration) {
60
+ /*
61
+ step can generate imprecise values, sometimes greater than 1
62
+ if this happens set the state to 1 and return, cancelling the timer
63
+ */
64
+ duration = duration !== undefined ? duration : _this.props.duration;
65
+ var step = duration ? elapsed / duration : 1;
66
+
67
+ if (step >= 1) {
68
+ _this.setState({
69
+ data: _this.interpolator(1),
70
+ animationInfo: {
71
+ progress: 1,
72
+ animating: false,
73
+ terminating: true
74
+ }
75
+ });
76
+
77
+ if (_this.loopID) {
78
+ _this.timer.unsubscribe(_this.loopID);
79
+ }
80
+
81
+ _this.queue.shift();
82
+
83
+ _this.traverseQueue();
84
+
85
+ return;
86
+ }
87
+ /*
88
+ if we're not at the end of the timer, set the state by passing
89
+ current step value that's transformed by the ease function to the
90
+ interpolator, which is cached for performance whenever props are received
91
+ */
92
+
93
+
94
+ _this.setState({
95
+ data: _this.interpolator(_this.ease(step)),
96
+ animationInfo: {
97
+ progress: step,
98
+ animating: step < 1
99
+ }
100
+ });
101
+ };
102
+
42
103
  _this.state = {
43
104
  data: Array.isArray(_this.props.data) ? _this.props.data[0] : _this.props.data,
44
105
  animationInfo: {
@@ -51,12 +112,6 @@ function (_React$Component) {
51
112
  /* build easing function */
52
113
 
53
114
  _this.ease = d3Ease[_this.toNewName(_this.props.easing)];
54
- /*
55
- There is no autobinding of this in ES6 classes
56
- so we bind functionToBeRunEachFrame to current instance of victory animation class
57
- */
58
-
59
- _this.functionToBeRunEachFrame = _this.functionToBeRunEachFrame.bind(_assertThisInitialized(_this));
60
115
  _this.timer = _this.context.animationTimer;
61
116
  return _this;
62
117
  }
@@ -98,10 +153,10 @@ function (_React$Component) {
98
153
  this.queue.push(this.props.data);
99
154
  /* If an array was supplied */
100
155
  } else {
101
- var _queue;
156
+ var _this$queue;
102
157
 
103
158
  /* Extend the tween queue */
104
- (_queue = this.queue).push.apply(_queue, _toConsumableArray(this.props.data));
159
+ (_this$queue = this.queue).push.apply(_this$queue, _toConsumableArray(this.props.data));
105
160
  }
106
161
  /* Start traversing the tween queue */
107
162
 
@@ -157,49 +212,6 @@ function (_React$Component) {
157
212
  }
158
213
  /* every frame we... */
159
214
 
160
- }, {
161
- key: "functionToBeRunEachFrame",
162
- value: function functionToBeRunEachFrame(elapsed, duration) {
163
- /*
164
- step can generate imprecise values, sometimes greater than 1
165
- if this happens set the state to 1 and return, cancelling the timer
166
- */
167
- duration = duration !== undefined ? duration : this.props.duration;
168
- var step = duration ? elapsed / duration : 1;
169
-
170
- if (step >= 1) {
171
- this.setState({
172
- data: this.interpolator(1),
173
- animationInfo: {
174
- progress: 1,
175
- animating: false,
176
- terminating: true
177
- }
178
- });
179
-
180
- if (this.loopID) {
181
- this.timer.unsubscribe(this.loopID);
182
- }
183
-
184
- this.queue.shift();
185
- this.traverseQueue();
186
- return;
187
- }
188
- /*
189
- if we're not at the end of the timer, set the state by passing
190
- current step value that's transformed by the ease function to the
191
- interpolator, which is cached for performance whenever props are received
192
- */
193
-
194
-
195
- this.setState({
196
- data: this.interpolator(this.ease(step)),
197
- animationInfo: {
198
- progress: step,
199
- animating: step < 1
200
- }
201
- });
202
- }
203
215
  }, {
204
216
  key: "render",
205
217
  value: function render() {
@@ -209,41 +221,19 @@ function (_React$Component) {
209
221
 
210
222
  return VictoryAnimation;
211
223
  }(React.Component);
212
-
213
- Object.defineProperty(VictoryAnimation, "displayName", {
214
- configurable: true,
215
- enumerable: true,
216
- writable: true,
217
- value: "VictoryAnimation"
218
- });
219
- Object.defineProperty(VictoryAnimation, "propTypes", {
220
- configurable: true,
221
- enumerable: true,
222
- writable: true,
223
- value: {
224
- children: PropTypes.func,
225
- data: PropTypes.oneOfType([PropTypes.object, PropTypes.array]),
226
- delay: PropTypes.number,
227
- duration: PropTypes.number,
228
- easing: PropTypes.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"]),
229
- onEnd: PropTypes.func
230
- }
231
- });
232
- Object.defineProperty(VictoryAnimation, "defaultProps", {
233
- configurable: true,
234
- enumerable: true,
235
- writable: true,
236
- value: {
237
- data: {},
238
- delay: 0,
239
- duration: 1000,
240
- easing: "quadInOut"
241
- }
242
- });
243
- Object.defineProperty(VictoryAnimation, "contextType", {
244
- configurable: true,
245
- enumerable: true,
246
- writable: true,
247
- value: TimerContext
248
- });
249
- export { VictoryAnimation as default };
224
+ VictoryAnimation.displayName = "VictoryAnimation";
225
+ VictoryAnimation.propTypes = {
226
+ children: PropTypes.func,
227
+ data: PropTypes.oneOfType([PropTypes.object, PropTypes.array]),
228
+ delay: PropTypes.number,
229
+ duration: PropTypes.number,
230
+ easing: PropTypes.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"]),
231
+ onEnd: PropTypes.func
232
+ };
233
+ VictoryAnimation.defaultProps = {
234
+ data: {},
235
+ delay: 0,
236
+ duration: 1000,
237
+ easing: "quadInOut"
238
+ };
239
+ VictoryAnimation.contextType = TimerContext;
@@ -0,0 +1,76 @@
1
+ import React from "react";
2
+ import PropTypes from "prop-types";
3
+ import { BlockProps } from "../victory-theme/victory-theme";
4
+ import { OriginType } from "../victory-label/victory-label";
5
+ export interface VictoryClipContainerProps {
6
+ "aria-label"?: string;
7
+ children?: React.ReactElement | React.ReactElement[];
8
+ circleComponent?: React.ReactElement;
9
+ className?: string;
10
+ clipHeight?: number;
11
+ clipId?: number | string;
12
+ clipPadding?: BlockProps;
13
+ clipPathComponent?: React.ReactElement;
14
+ clipWidth?: number;
15
+ events?: React.DOMAttributes<any>;
16
+ groupComponent?: React.ReactElement;
17
+ origin?: OriginType;
18
+ polar?: boolean;
19
+ radius?: number;
20
+ rectComponent?: React.ReactElement;
21
+ translateX?: number;
22
+ translateY?: number;
23
+ }
24
+ export declare class VictoryClipContainer extends React.Component<VictoryClipContainerProps> {
25
+ static displayName: string;
26
+ static role: string;
27
+ static propTypes: {
28
+ "aria-label": PropTypes.Requireable<string>;
29
+ children: PropTypes.Requireable<string | number | boolean | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>;
30
+ circleComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
31
+ className: PropTypes.Requireable<string>;
32
+ clipHeight: any;
33
+ clipId: PropTypes.Requireable<string | number>;
34
+ clipPadding: PropTypes.Requireable<PropTypes.InferProps<{
35
+ top: PropTypes.Requireable<number>;
36
+ bottom: PropTypes.Requireable<number>;
37
+ left: PropTypes.Requireable<number>;
38
+ right: PropTypes.Requireable<number>;
39
+ }>>;
40
+ clipPathComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
41
+ clipWidth: any;
42
+ events: PropTypes.Requireable<object>;
43
+ groupComponent: PropTypes.Requireable<PropTypes.ReactElementLike>;
44
+ origin: PropTypes.Requireable<PropTypes.InferProps<{
45
+ x: any;
46
+ y: any;
47
+ }>>;
48
+ polar: PropTypes.Requireable<boolean>;
49
+ radius: any;
50
+ style: PropTypes.Requireable<object>;
51
+ tabIndex: PropTypes.Requireable<number>;
52
+ transform: PropTypes.Requireable<string>;
53
+ translateX: PropTypes.Requireable<number>;
54
+ translateY: PropTypes.Requireable<number>;
55
+ };
56
+ static defaultProps: {
57
+ circleComponent: JSX.Element;
58
+ rectComponent: JSX.Element;
59
+ clipPathComponent: JSX.Element;
60
+ groupComponent: JSX.Element;
61
+ };
62
+ private clipId;
63
+ constructor(props: VictoryClipContainerProps);
64
+ calculateAttributes(props: any): {
65
+ x: number;
66
+ y: number;
67
+ width: number;
68
+ height: number;
69
+ };
70
+ renderClippedGroup(props: any, clipId: any): React.DetailedReactHTMLElement<any, HTMLElement>;
71
+ renderGroup(props: any): React.DetailedReactHTMLElement<any, HTMLElement>;
72
+ renderClipComponent(props: any, clipId: any): React.DetailedReactHTMLElement<any, HTMLElement>;
73
+ getClipValue(props: any, axis: any): any;
74
+ getTranslateValue(props: any, axis: any): any;
75
+ render(): React.DetailedReactHTMLElement<any, HTMLElement>;
76
+ }
@@ -3,15 +3,21 @@ import _isObject from "lodash/isObject";
3
3
  import _defaults from "lodash/defaults";
4
4
  import _assign from "lodash/assign";
5
5
 
6
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
6
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
7
7
 
8
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
8
+ 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."); }
9
9
 
10
- function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
10
+ 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); }
11
11
 
12
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }
12
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
13
13
 
14
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }
14
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
15
+
16
+ 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; }
17
+
18
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
19
+
20
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
15
21
 
16
22
  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; }
17
23
 
@@ -19,33 +25,42 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
19
25
 
20
26
  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); } }
21
27
 
22
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
28
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
29
+
30
+ 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); }
23
31
 
24
- function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
32
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
33
+
34
+ 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); }; }
35
+
36
+ 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); }
25
37
 
26
38
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
27
39
 
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, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
40
+ 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; } }
41
+
42
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
29
43
 
30
44
  import React from "react";
31
45
  import PropTypes from "prop-types";
32
46
  import * as CustomPropTypes from "../victory-util/prop-types";
33
47
  import * as Helpers from "../victory-util/helpers";
34
- import ClipPath from "../victory-primitives/clip-path";
35
- import Circle from "../victory-primitives/circle";
36
- import Rect from "../victory-primitives/rect";
37
-
38
- var VictoryClipContainer =
39
- /*#__PURE__*/
40
- function (_React$Component) {
48
+ import * as UserProps from "../victory-util/user-props";
49
+ import { ClipPath } from "../victory-primitives/clip-path";
50
+ import { Circle } from "../victory-primitives/circle";
51
+ import { Rect } from "../victory-primitives/rect";
52
+ export var VictoryClipContainer = /*#__PURE__*/function (_React$Component) {
41
53
  _inherits(VictoryClipContainer, _React$Component);
42
54
 
55
+ var _super = _createSuper(VictoryClipContainer);
56
+
43
57
  function VictoryClipContainer(props) {
44
58
  var _this;
45
59
 
46
60
  _classCallCheck(this, VictoryClipContainer);
47
61
 
48
- _this = _possibleConstructorReturn(this, (VictoryClipContainer.__proto__ || Object.getPrototypeOf(VictoryClipContainer)).call(this, props));
62
+ _this = _super.call(this, props);
63
+ _this.clipId = void 0;
49
64
  _this.clipId = !_isObject(props) || props.clipId === undefined ? _uniqueId("victory-clip-") : props.clipId;
50
65
  return _this;
51
66
  }
@@ -77,6 +92,7 @@ function (_React$Component) {
77
92
  }, {
78
93
  key: "renderClippedGroup",
79
94
  value: function renderClippedGroup(props, clipId) {
95
+ var userProps = UserProps.getSafeUserProps(props);
80
96
  var style = props.style,
81
97
  events = props.events,
82
98
  transform = props.transform,
@@ -94,10 +110,9 @@ function (_React$Component) {
94
110
  clipPath: "url(#".concat(clipId, ")")
95
111
  }, events);
96
112
 
97
- return React.cloneElement(groupComponent, _objectSpread({}, groupProps, {
98
- "aria-label": props["aria-label"],
113
+ return /*#__PURE__*/React.cloneElement(groupComponent, _objectSpread(_objectSpread({}, groupProps), {}, {
99
114
  tabIndex: tabIndex
100
- }), [clipComponent].concat(_toConsumableArray(React.Children.toArray(children))));
115
+ }, userProps), [clipComponent].concat(_toConsumableArray(React.Children.toArray(children))));
101
116
  }
102
117
  }, {
103
118
  key: "renderGroup",
@@ -109,7 +124,7 @@ function (_React$Component) {
109
124
  className = props.className,
110
125
  groupComponent = props.groupComponent,
111
126
  tabIndex = props.tabIndex;
112
- return React.cloneElement(groupComponent, _assign({
127
+ return /*#__PURE__*/React.cloneElement(groupComponent, _assign({
113
128
  className: className,
114
129
  style: style,
115
130
  transform: transform,
@@ -151,7 +166,7 @@ function (_React$Component) {
151
166
  cx: origin.x - left,
152
167
  cy: origin.y - top
153
168
  };
154
- child = React.cloneElement(circleComponent, circleProps);
169
+ child = /*#__PURE__*/React.cloneElement(circleComponent, circleProps);
155
170
  } else {
156
171
  var rectProps = {
157
172
  x: translateX - left,
@@ -159,10 +174,10 @@ function (_React$Component) {
159
174
  width: Math.max(clipWidth + left + right, 0),
160
175
  height: Math.max(clipHeight + top + bottom, 0)
161
176
  };
162
- child = React.cloneElement(rectComponent, rectProps);
177
+ child = /*#__PURE__*/React.cloneElement(rectComponent, rectProps);
163
178
  }
164
179
 
165
- return React.cloneElement(clipPathComponent, _assign({
180
+ return /*#__PURE__*/React.cloneElement(clipPathComponent, _assign({
166
181
  key: "clip-path-".concat(clipId)
167
182
  }, props, {
168
183
  clipId: clipId
@@ -224,62 +239,40 @@ function (_React$Component) {
224
239
 
225
240
  return VictoryClipContainer;
226
241
  }(React.Component);
227
-
228
- Object.defineProperty(VictoryClipContainer, "displayName", {
229
- configurable: true,
230
- enumerable: true,
231
- writable: true,
232
- value: "VictoryClipContainer"
233
- });
234
- Object.defineProperty(VictoryClipContainer, "role", {
235
- configurable: true,
236
- enumerable: true,
237
- writable: true,
238
- value: "container"
239
- });
240
- Object.defineProperty(VictoryClipContainer, "propTypes", {
241
- configurable: true,
242
- enumerable: true,
243
- writable: true,
244
- value: {
245
- "aria-label": PropTypes.string,
246
- children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]),
247
- circleComponent: PropTypes.element,
248
- className: PropTypes.string,
249
- clipHeight: CustomPropTypes.nonNegative,
250
- clipId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
251
- clipPadding: PropTypes.shape({
252
- top: PropTypes.number,
253
- bottom: PropTypes.number,
254
- left: PropTypes.number,
255
- right: PropTypes.number
256
- }),
257
- clipPathComponent: PropTypes.element,
258
- clipWidth: CustomPropTypes.nonNegative,
259
- events: PropTypes.object,
260
- groupComponent: PropTypes.element,
261
- origin: PropTypes.shape({
262
- x: CustomPropTypes.nonNegative,
263
- y: CustomPropTypes.nonNegative
264
- }),
265
- polar: PropTypes.bool,
266
- radius: CustomPropTypes.nonNegative,
267
- style: PropTypes.object,
268
- tabIndex: PropTypes.number,
269
- transform: PropTypes.string,
270
- translateX: PropTypes.number,
271
- translateY: PropTypes.number
272
- }
273
- });
274
- Object.defineProperty(VictoryClipContainer, "defaultProps", {
275
- configurable: true,
276
- enumerable: true,
277
- writable: true,
278
- value: {
279
- circleComponent: React.createElement(Circle, null),
280
- rectComponent: React.createElement(Rect, null),
281
- clipPathComponent: React.createElement(ClipPath, null),
282
- groupComponent: React.createElement("g", null)
283
- }
284
- });
285
- export { VictoryClipContainer as default };
242
+ VictoryClipContainer.displayName = "VictoryClipContainer";
243
+ VictoryClipContainer.role = "container";
244
+ VictoryClipContainer.propTypes = {
245
+ "aria-label": PropTypes.string,
246
+ children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]),
247
+ circleComponent: PropTypes.element,
248
+ className: PropTypes.string,
249
+ clipHeight: CustomPropTypes.nonNegative,
250
+ clipId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
251
+ clipPadding: PropTypes.shape({
252
+ top: PropTypes.number,
253
+ bottom: PropTypes.number,
254
+ left: PropTypes.number,
255
+ right: PropTypes.number
256
+ }),
257
+ clipPathComponent: PropTypes.element,
258
+ clipWidth: CustomPropTypes.nonNegative,
259
+ events: PropTypes.object,
260
+ groupComponent: PropTypes.element,
261
+ origin: PropTypes.shape({
262
+ x: CustomPropTypes.nonNegative,
263
+ y: CustomPropTypes.nonNegative
264
+ }),
265
+ polar: PropTypes.bool,
266
+ radius: CustomPropTypes.nonNegative,
267
+ style: PropTypes.object,
268
+ tabIndex: PropTypes.number,
269
+ transform: PropTypes.string,
270
+ translateX: PropTypes.number,
271
+ translateY: PropTypes.number
272
+ };
273
+ VictoryClipContainer.defaultProps = {
274
+ circleComponent: /*#__PURE__*/React.createElement(Circle, null),
275
+ rectComponent: /*#__PURE__*/React.createElement(Rect, null),
276
+ clipPathComponent: /*#__PURE__*/React.createElement(ClipPath, null),
277
+ groupComponent: /*#__PURE__*/React.createElement("g", null)
278
+ };