victory-canvas 36.4.1 → 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.
@@ -23,16 +23,24 @@ __webpack_require__.r(__webpack_exports__);
23
23
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
24
24
  /* harmony export */ "usePreviousValue": () => (/* binding */ usePreviousValue)
25
25
  /* harmony export */ });
26
- /* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/omit */ "../../../node_modules/lodash/omit.js");
27
- /* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_omit__WEBPACK_IMPORTED_MODULE_0__);
28
- /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
29
- /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_1__);
30
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
31
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
32
- /* harmony import */ var victory_bar__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-bar */ "../../victory-bar/es/bar-helper-methods.js");
33
- /* harmony import */ var victory_bar__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-bar */ "../../victory-bar/es/path-helper-methods.js");
34
- /* harmony import */ var victory_bar__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! victory-bar */ "../../victory-bar/es/bar.js");
35
- /* harmony import */ var _hooks_use_canvas_context__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./hooks/use-canvas-context */ "./hooks/use-canvas-context.js");
26
+ /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
27
+ /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__);
28
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
29
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);
30
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
31
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
32
+ /* harmony import */ var victory_bar__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! victory-bar */ "../../victory-bar/es/bar-helper-methods.js");
33
+ /* harmony import */ var victory_bar__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-bar */ "../../victory-bar/es/path-helper-methods.js");
34
+ /* harmony import */ var _hooks_use_canvas_context__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./hooks/use-canvas-context */ "./hooks/use-canvas-context.js");
35
+ /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/common-props.js");
36
+
37
+
38
+ 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; }
39
+
40
+ 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; }
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; }
43
+
36
44
 
37
45
 
38
46
 
@@ -46,15 +54,15 @@ var evaluateProps = function (props) {
46
54
  * 2) `barWidth`
47
55
  * 3) `cornerRadius`
48
56
  */
49
- var style = (0,victory_bar__WEBPACK_IMPORTED_MODULE_3__.getStyle)(props.style, props);
50
- var barWidth = (0,victory_bar__WEBPACK_IMPORTED_MODULE_3__.getBarWidth)(props.barWidth, lodash_assign__WEBPACK_IMPORTED_MODULE_1___default()({}, props, {
57
+ var style = (0,victory_bar__WEBPACK_IMPORTED_MODULE_2__.getStyle)(props.style, props);
58
+ var barWidth = (0,victory_bar__WEBPACK_IMPORTED_MODULE_2__.getBarWidth)(props.barWidth, lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
51
59
  style: style
52
60
  }));
53
- var cornerRadius = (0,victory_bar__WEBPACK_IMPORTED_MODULE_3__.getCornerRadius)(props.cornerRadius, lodash_assign__WEBPACK_IMPORTED_MODULE_1___default()({}, props, {
61
+ var cornerRadius = (0,victory_bar__WEBPACK_IMPORTED_MODULE_2__.getCornerRadius)(props.cornerRadius, lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
54
62
  style: style,
55
63
  barWidth: barWidth
56
64
  }));
57
- return lodash_assign__WEBPACK_IMPORTED_MODULE_1___default()({}, props, {
65
+ return lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
58
66
  style: style,
59
67
  barWidth: barWidth,
60
68
  cornerRadius: cornerRadius
@@ -62,15 +70,15 @@ var evaluateProps = function (props) {
62
70
  };
63
71
 
64
72
  var usePreviousValue = function (value) {
65
- var ref = react__WEBPACK_IMPORTED_MODULE_2___default().useRef();
66
- react__WEBPACK_IMPORTED_MODULE_2___default().useEffect(function () {
73
+ var ref = react__WEBPACK_IMPORTED_MODULE_1___default().useRef();
74
+ react__WEBPACK_IMPORTED_MODULE_1___default().useEffect(function () {
67
75
  ref.current = value;
68
76
  });
69
77
  return ref.current;
70
78
  };
71
79
 
72
80
  var CanvasBar = function (initialProps) {
73
- var _useCanvasContext = (0,_hooks_use_canvas_context__WEBPACK_IMPORTED_MODULE_4__.useCanvasContext)(),
81
+ var _useCanvasContext = (0,_hooks_use_canvas_context__WEBPACK_IMPORTED_MODULE_3__.useCanvasContext)(),
74
82
  canvasRef = _useCanvasContext.canvasRef;
75
83
 
76
84
  var props = evaluateProps(initialProps);
@@ -79,12 +87,12 @@ var CanvasBar = function (initialProps) {
79
87
  barWidth = props.barWidth,
80
88
  cornerRadius = props.cornerRadius,
81
89
  origin = props.origin;
82
- var path2d = react__WEBPACK_IMPORTED_MODULE_2___default().useMemo(function () {
83
- var p = polar ? (0,victory_bar__WEBPACK_IMPORTED_MODULE_5__.getPolarBarPath)(props, cornerRadius) : (0,victory_bar__WEBPACK_IMPORTED_MODULE_5__.getBarPath)(props, barWidth, cornerRadius);
90
+ var path2d = react__WEBPACK_IMPORTED_MODULE_1___default().useMemo(function () {
91
+ var p = polar ? (0,victory_bar__WEBPACK_IMPORTED_MODULE_4__.getPolarBarPath)(props, cornerRadius) : (0,victory_bar__WEBPACK_IMPORTED_MODULE_4__.getBarPath)(props, barWidth, cornerRadius);
84
92
  return new Path2D(p);
85
93
  }, [polar, barWidth, cornerRadius, props]);
86
94
  var previousPath = usePreviousValue(path2d);
87
- var draw = react__WEBPACK_IMPORTED_MODULE_2___default().useCallback(function (ctx, path) {
95
+ var draw = react__WEBPACK_IMPORTED_MODULE_1___default().useCallback(function (ctx, path) {
88
96
  ctx.fillStyle = style.fill;
89
97
  ctx.strokeStyle = style.stroke;
90
98
  ctx.globalAlpha = style.fillOpacity;
@@ -98,7 +106,7 @@ var CanvasBar = function (initialProps) {
98
106
  ctx.setTransform(1, 0, 0, 1, 0, 0);
99
107
  }, [style, origin, polar]); // This will clear the previous bar without clearing the entire canvas
100
108
 
101
- var clearPreviousPath = react__WEBPACK_IMPORTED_MODULE_2___default().useCallback(function (ctx) {
109
+ var clearPreviousPath = react__WEBPACK_IMPORTED_MODULE_1___default().useCallback(function (ctx) {
102
110
  if (previousPath) {
103
111
  ctx.save(); // This ensures that the entire shape is erased
104
112
 
@@ -109,7 +117,7 @@ var CanvasBar = function (initialProps) {
109
117
  ctx.restore();
110
118
  }
111
119
  }, [draw, previousPath, style]);
112
- react__WEBPACK_IMPORTED_MODULE_2___default().useEffect(function () {
120
+ react__WEBPACK_IMPORTED_MODULE_1___default().useEffect(function () {
113
121
  var ctx = canvasRef.current.getContext("2d");
114
122
  clearPreviousPath(ctx);
115
123
  draw(ctx, path2d);
@@ -117,7 +125,26 @@ var CanvasBar = function (initialProps) {
117
125
  return null;
118
126
  };
119
127
 
120
- CanvasBar.propTypes = lodash_omit__WEBPACK_IMPORTED_MODULE_0___default()(victory_bar__WEBPACK_IMPORTED_MODULE_6__["default"].propTypes, "pathComponent");
128
+ CanvasBar.propTypes = _objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_5__.primitiveProps), {}, {
129
+ alignment: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOf(["start", "middle", "end"]),
130
+ barRatio: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number),
131
+ barWidth: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func)]),
132
+ cornerRadius: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func), prop_types__WEBPACK_IMPORTED_MODULE_6___default().shape({
133
+ top: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func)]),
134
+ topLeft: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func)]),
135
+ topRight: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func)]),
136
+ bottom: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func)]),
137
+ bottomLeft: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func)]),
138
+ bottomRight: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func)])
139
+ })]),
140
+ datum: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object),
141
+ getPath: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func),
142
+ horizontal: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool),
143
+ width: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number),
144
+ x: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number),
145
+ y: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number),
146
+ y0: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number)
147
+ });
121
148
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CanvasBar);
122
149
 
123
150
  /***/ }),
@@ -308,15 +335,15 @@ var getPath = function (props) {
308
335
  }
309
336
 
310
337
  var pathFunctions = {
311
- circle: victory_core__WEBPACK_IMPORTED_MODULE_2__["default"].circle,
312
- square: victory_core__WEBPACK_IMPORTED_MODULE_2__["default"].square,
313
- diamond: victory_core__WEBPACK_IMPORTED_MODULE_2__["default"].diamond,
314
- triangleDown: victory_core__WEBPACK_IMPORTED_MODULE_2__["default"].triangleDown,
315
- triangleUp: victory_core__WEBPACK_IMPORTED_MODULE_2__["default"].triangleUp,
316
- plus: victory_core__WEBPACK_IMPORTED_MODULE_2__["default"].plus,
317
- minus: victory_core__WEBPACK_IMPORTED_MODULE_2__["default"].minus,
318
- star: victory_core__WEBPACK_IMPORTED_MODULE_2__["default"].star,
319
- cross: victory_core__WEBPACK_IMPORTED_MODULE_2__["default"].cross
338
+ circle: victory_core__WEBPACK_IMPORTED_MODULE_2__.circle,
339
+ square: victory_core__WEBPACK_IMPORTED_MODULE_2__.square,
340
+ diamond: victory_core__WEBPACK_IMPORTED_MODULE_2__.diamond,
341
+ triangleDown: victory_core__WEBPACK_IMPORTED_MODULE_2__.triangleDown,
342
+ triangleUp: victory_core__WEBPACK_IMPORTED_MODULE_2__.triangleUp,
343
+ plus: victory_core__WEBPACK_IMPORTED_MODULE_2__.plus,
344
+ minus: victory_core__WEBPACK_IMPORTED_MODULE_2__.minus,
345
+ star: victory_core__WEBPACK_IMPORTED_MODULE_2__.star,
346
+ cross: victory_core__WEBPACK_IMPORTED_MODULE_2__.cross
320
347
  };
321
348
  var symbolFunction = typeof pathFunctions[symbol] === "function" ? pathFunctions[symbol] : pathFunctions.circle;
322
349
  return symbolFunction(x, y, size);
@@ -736,37 +763,6 @@ function baseAssignValue(object, key, value) {
736
763
  module.exports = baseAssignValue;
737
764
 
738
765
 
739
- /***/ }),
740
-
741
- /***/ "../../../node_modules/lodash/_baseClone.js":
742
- /*!**************************************************!*\
743
- !*** ../../../node_modules/lodash/_baseClone.js ***!
744
- \**************************************************/
745
- /***/ ((module) => {
746
-
747
- /**
748
- * This method returns the first argument it receives.
749
- *
750
- * @static
751
- * @since 0.1.0
752
- * @memberOf _
753
- * @category Util
754
- * @param {*} value Any value.
755
- * @returns {*} Returns `value`.
756
- * @example
757
- *
758
- * var object = { 'a': 1 };
759
- *
760
- * console.log(_.identity(object) === object);
761
- * // => true
762
- */
763
- function identity(value) {
764
- return value;
765
- }
766
-
767
- module.exports = identity;
768
-
769
-
770
766
  /***/ }),
771
767
 
772
768
  /***/ "../../../node_modules/lodash/_baseFindIndex.js":
@@ -1565,43 +1561,49 @@ module.exports = baseSet;
1565
1561
 
1566
1562
  /***/ }),
1567
1563
 
1568
- /***/ "../../../node_modules/lodash/_baseSlice.js":
1569
- /*!**************************************************!*\
1570
- !*** ../../../node_modules/lodash/_baseSlice.js ***!
1571
- \**************************************************/
1572
- /***/ ((module) => {
1564
+ /***/ "../../../node_modules/lodash/_baseToString.js":
1565
+ /*!*****************************************************!*\
1566
+ !*** ../../../node_modules/lodash/_baseToString.js ***!
1567
+ \*****************************************************/
1568
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1569
+
1570
+ var Symbol = __webpack_require__(/*! ./_Symbol */ "../../../node_modules/lodash/_Symbol.js"),
1571
+ arrayMap = __webpack_require__(/*! ./_arrayMap */ "../../../node_modules/lodash/_arrayMap.js"),
1572
+ isArray = __webpack_require__(/*! ./isArray */ "../../../node_modules/lodash/isArray.js"),
1573
+ isSymbol = __webpack_require__(/*! ./isSymbol */ "../../../node_modules/lodash/isSymbol.js");
1574
+
1575
+ /** Used as references for various `Number` constants. */
1576
+ var INFINITY = 1 / 0;
1577
+
1578
+ /** Used to convert symbols to primitives and strings. */
1579
+ var symbolProto = Symbol ? Symbol.prototype : undefined,
1580
+ symbolToString = symbolProto ? symbolProto.toString : undefined;
1573
1581
 
1574
1582
  /**
1575
- * The base implementation of `_.slice` without an iteratee call guard.
1583
+ * The base implementation of `_.toString` which doesn't convert nullish
1584
+ * values to empty strings.
1576
1585
  *
1577
1586
  * @private
1578
- * @param {Array} array The array to slice.
1579
- * @param {number} [start=0] The start position.
1580
- * @param {number} [end=array.length] The end position.
1581
- * @returns {Array} Returns the slice of `array`.
1587
+ * @param {*} value The value to process.
1588
+ * @returns {string} Returns the string.
1582
1589
  */
1583
- function baseSlice(array, start, end) {
1584
- var index = -1,
1585
- length = array.length;
1586
-
1587
- if (start < 0) {
1588
- start = -start > length ? 0 : (length + start);
1590
+ function baseToString(value) {
1591
+ // Exit early for strings to avoid a performance hit in some environments.
1592
+ if (typeof value == 'string') {
1593
+ return value;
1589
1594
  }
1590
- end = end > length ? length : end;
1591
- if (end < 0) {
1592
- end += length;
1595
+ if (isArray(value)) {
1596
+ // Recursively convert values (susceptible to call stack limits).
1597
+ return arrayMap(value, baseToString) + '';
1593
1598
  }
1594
- length = start > end ? 0 : ((end - start) >>> 0);
1595
- start >>>= 0;
1596
-
1597
- var result = Array(length);
1598
- while (++index < length) {
1599
- result[index] = array[index + start];
1599
+ if (isSymbol(value)) {
1600
+ return symbolToString ? symbolToString.call(value) : '';
1600
1601
  }
1601
- return result;
1602
+ var result = (value + '');
1603
+ return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
1602
1604
  }
1603
1605
 
1604
- module.exports = baseSlice;
1606
+ module.exports = baseToString;
1605
1607
 
1606
1608
 
1607
1609
  /***/ }),
@@ -1657,36 +1659,6 @@ function baseUnary(func) {
1657
1659
  module.exports = baseUnary;
1658
1660
 
1659
1661
 
1660
- /***/ }),
1661
-
1662
- /***/ "../../../node_modules/lodash/_baseUnset.js":
1663
- /*!**************************************************!*\
1664
- !*** ../../../node_modules/lodash/_baseUnset.js ***!
1665
- \**************************************************/
1666
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1667
-
1668
- var castPath = __webpack_require__(/*! ./_castPath */ "../../../node_modules/lodash/_castPath.js"),
1669
- last = __webpack_require__(/*! ./last */ "../../../node_modules/lodash/last.js"),
1670
- parent = __webpack_require__(/*! ./_parent */ "../../../node_modules/lodash/_parent.js"),
1671
- toKey = __webpack_require__(/*! ./_toKey */ "../../../node_modules/lodash/_toKey.js");
1672
-
1673
- /**
1674
- * The base implementation of `_.unset`.
1675
- *
1676
- * @private
1677
- * @param {Object} object The object to modify.
1678
- * @param {Array|string} path The property path to unset.
1679
- * @returns {boolean} Returns `true` if the property is deleted, else `false`.
1680
- */
1681
- function baseUnset(object, path) {
1682
- path = castPath(path, object);
1683
- object = parent(object, path);
1684
- return object == null || delete object[toKey(last(path))];
1685
- }
1686
-
1687
- module.exports = baseUnset;
1688
-
1689
-
1690
1662
  /***/ }),
1691
1663
 
1692
1664
  /***/ "../../../node_modules/lodash/_cacheHas.js":
@@ -1917,32 +1889,6 @@ function createRange(fromRight) {
1917
1889
  module.exports = createRange;
1918
1890
 
1919
1891
 
1920
- /***/ }),
1921
-
1922
- /***/ "../../../node_modules/lodash/_customOmitClone.js":
1923
- /*!********************************************************!*\
1924
- !*** ../../../node_modules/lodash/_customOmitClone.js ***!
1925
- \********************************************************/
1926
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1927
-
1928
- var isPlainObject = __webpack_require__(/*! ./isPlainObject */ "../../../node_modules/lodash/isPlainObject.js");
1929
-
1930
- /**
1931
- * Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain
1932
- * objects.
1933
- *
1934
- * @private
1935
- * @param {*} value The value to inspect.
1936
- * @param {string} key The key of the property to inspect.
1937
- * @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.
1938
- */
1939
- function customOmitClone(value) {
1940
- return isPlainObject(value) ? undefined : value;
1941
- }
1942
-
1943
- module.exports = customOmitClone;
1944
-
1945
-
1946
1892
  /***/ }),
1947
1893
 
1948
1894
  /***/ "../../../node_modules/lodash/_defineProperty.js":
@@ -2261,36 +2207,6 @@ var nativeKeys = overArg(Object.keys, Object);
2261
2207
  module.exports = nativeKeys;
2262
2208
 
2263
2209
 
2264
- /***/ }),
2265
-
2266
- /***/ "../../../node_modules/lodash/_getAllKeysIn.js":
2267
- /*!*****************************************************!*\
2268
- !*** ../../../node_modules/lodash/_getAllKeysIn.js ***!
2269
- \*****************************************************/
2270
- /***/ ((module) => {
2271
-
2272
- /**
2273
- * This function is like
2274
- * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
2275
- * except that it includes inherited enumerable properties.
2276
- *
2277
- * @private
2278
- * @param {Object} object The object to query.
2279
- * @returns {Array} Returns the array of property names.
2280
- */
2281
- function nativeKeysIn(object) {
2282
- var result = [];
2283
- if (object != null) {
2284
- for (var key in Object(object)) {
2285
- result.push(key);
2286
- }
2287
- }
2288
- return result;
2289
- }
2290
-
2291
- module.exports = nativeKeysIn;
2292
-
2293
-
2294
2210
  /***/ }),
2295
2211
 
2296
2212
  /***/ "../../../node_modules/lodash/_getMatchData.js":
@@ -2962,32 +2878,6 @@ function overRest(func, start, transform) {
2962
2878
  module.exports = overRest;
2963
2879
 
2964
2880
 
2965
- /***/ }),
2966
-
2967
- /***/ "../../../node_modules/lodash/_parent.js":
2968
- /*!***********************************************!*\
2969
- !*** ../../../node_modules/lodash/_parent.js ***!
2970
- \***********************************************/
2971
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2972
-
2973
- var baseGet = __webpack_require__(/*! ./_baseGet */ "../../../node_modules/lodash/_baseGet.js"),
2974
- baseSlice = __webpack_require__(/*! ./_baseSlice */ "../../../node_modules/lodash/_baseSlice.js");
2975
-
2976
- /**
2977
- * Gets the parent value at `path` of `object`.
2978
- *
2979
- * @private
2980
- * @param {Object} object The object to query.
2981
- * @param {Array} path The path to get the parent value of.
2982
- * @returns {*} Returns the parent value.
2983
- */
2984
- function parent(object, path) {
2985
- return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));
2986
- }
2987
-
2988
- module.exports = parent;
2989
-
2990
-
2991
2881
  /***/ }),
2992
2882
 
2993
2883
  /***/ "../../../node_modules/lodash/_root.js":
@@ -3081,29 +2971,29 @@ module.exports = stringToPath;
3081
2971
  /*!**********************************************!*\
3082
2972
  !*** ../../../node_modules/lodash/_toKey.js ***!
3083
2973
  \**********************************************/
3084
- /***/ ((module) => {
2974
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2975
+
2976
+ var isSymbol = __webpack_require__(/*! ./isSymbol */ "../../../node_modules/lodash/isSymbol.js");
2977
+
2978
+ /** Used as references for various `Number` constants. */
2979
+ var INFINITY = 1 / 0;
3085
2980
 
3086
2981
  /**
3087
- * This method returns the first argument it receives.
3088
- *
3089
- * @static
3090
- * @since 0.1.0
3091
- * @memberOf _
3092
- * @category Util
3093
- * @param {*} value Any value.
3094
- * @returns {*} Returns `value`.
3095
- * @example
3096
- *
3097
- * var object = { 'a': 1 };
2982
+ * Converts `value` to a string key if it's not a string or symbol.
3098
2983
  *
3099
- * console.log(_.identity(object) === object);
3100
- * // => true
2984
+ * @private
2985
+ * @param {*} value The value to inspect.
2986
+ * @returns {string|symbol} Returns the key.
3101
2987
  */
3102
- function identity(value) {
3103
- return value;
2988
+ function toKey(value) {
2989
+ if (typeof value == 'string' || isSymbol(value)) {
2990
+ return value;
2991
+ }
2992
+ var result = (value + '');
2993
+ return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
3104
2994
  }
3105
2995
 
3106
- module.exports = identity;
2996
+ module.exports = toKey;
3107
2997
 
3108
2998
 
3109
2999
  /***/ }),
@@ -4144,103 +4034,6 @@ function nativeKeysIn(object) {
4144
4034
  module.exports = nativeKeysIn;
4145
4035
 
4146
4036
 
4147
- /***/ }),
4148
-
4149
- /***/ "../../../node_modules/lodash/last.js":
4150
- /*!********************************************!*\
4151
- !*** ../../../node_modules/lodash/last.js ***!
4152
- \********************************************/
4153
- /***/ ((module) => {
4154
-
4155
- /**
4156
- * Gets the last element of `array`.
4157
- *
4158
- * @static
4159
- * @memberOf _
4160
- * @since 0.1.0
4161
- * @category Array
4162
- * @param {Array} array The array to query.
4163
- * @returns {*} Returns the last element of `array`.
4164
- * @example
4165
- *
4166
- * _.last([1, 2, 3]);
4167
- * // => 3
4168
- */
4169
- function last(array) {
4170
- var length = array == null ? 0 : array.length;
4171
- return length ? array[length - 1] : undefined;
4172
- }
4173
-
4174
- module.exports = last;
4175
-
4176
-
4177
- /***/ }),
4178
-
4179
- /***/ "../../../node_modules/lodash/omit.js":
4180
- /*!********************************************!*\
4181
- !*** ../../../node_modules/lodash/omit.js ***!
4182
- \********************************************/
4183
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
4184
-
4185
- var arrayMap = __webpack_require__(/*! ./_arrayMap */ "../../../node_modules/lodash/_arrayMap.js"),
4186
- baseClone = __webpack_require__(/*! ./_baseClone */ "../../../node_modules/lodash/_baseClone.js"),
4187
- baseUnset = __webpack_require__(/*! ./_baseUnset */ "../../../node_modules/lodash/_baseUnset.js"),
4188
- castPath = __webpack_require__(/*! ./_castPath */ "../../../node_modules/lodash/_castPath.js"),
4189
- copyObject = __webpack_require__(/*! ./_copyObject */ "../../../node_modules/lodash/_copyObject.js"),
4190
- customOmitClone = __webpack_require__(/*! ./_customOmitClone */ "../../../node_modules/lodash/_customOmitClone.js"),
4191
- flatRest = __webpack_require__(/*! ./_flatRest */ "../../../node_modules/lodash/_flatRest.js"),
4192
- getAllKeysIn = __webpack_require__(/*! ./_getAllKeysIn */ "../../../node_modules/lodash/_getAllKeysIn.js");
4193
-
4194
- /** Used to compose bitmasks for cloning. */
4195
- var CLONE_DEEP_FLAG = 1,
4196
- CLONE_FLAT_FLAG = 2,
4197
- CLONE_SYMBOLS_FLAG = 4;
4198
-
4199
- /**
4200
- * The opposite of `_.pick`; this method creates an object composed of the
4201
- * own and inherited enumerable property paths of `object` that are not omitted.
4202
- *
4203
- * **Note:** This method is considerably slower than `_.pick`.
4204
- *
4205
- * @static
4206
- * @since 0.1.0
4207
- * @memberOf _
4208
- * @category Object
4209
- * @param {Object} object The source object.
4210
- * @param {...(string|string[])} [paths] The property paths to omit.
4211
- * @returns {Object} Returns the new object.
4212
- * @example
4213
- *
4214
- * var object = { 'a': 1, 'b': '2', 'c': 3 };
4215
- *
4216
- * _.omit(object, ['a', 'c']);
4217
- * // => { 'b': '2' }
4218
- */
4219
- var omit = flatRest(function(object, paths) {
4220
- var result = {};
4221
- if (object == null) {
4222
- return result;
4223
- }
4224
- var isDeep = false;
4225
- paths = arrayMap(paths, function(path) {
4226
- path = castPath(path, object);
4227
- isDeep || (isDeep = path.length > 1);
4228
- return path;
4229
- });
4230
- copyObject(object, getAllKeysIn(object), result);
4231
- if (isDeep) {
4232
- result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);
4233
- }
4234
- var length = paths.length;
4235
- while (length--) {
4236
- baseUnset(result, paths[length]);
4237
- }
4238
- return result;
4239
- });
4240
-
4241
- module.exports = omit;
4242
-
4243
-
4244
4037
  /***/ }),
4245
4038
 
4246
4039
  /***/ "../../../node_modules/lodash/pick.js":
@@ -4552,29 +4345,36 @@ module.exports = toNumber;
4552
4345
  /*!************************************************!*\
4553
4346
  !*** ../../../node_modules/lodash/toString.js ***!
4554
4347
  \************************************************/
4555
- /***/ ((module) => {
4348
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
4349
+
4350
+ var baseToString = __webpack_require__(/*! ./_baseToString */ "../../../node_modules/lodash/_baseToString.js");
4556
4351
 
4557
4352
  /**
4558
- * This method returns the first argument it receives.
4353
+ * Converts `value` to a string. An empty string is returned for `null`
4354
+ * and `undefined` values. The sign of `-0` is preserved.
4559
4355
  *
4560
4356
  * @static
4561
- * @since 0.1.0
4562
4357
  * @memberOf _
4563
- * @category Util
4564
- * @param {*} value Any value.
4565
- * @returns {*} Returns `value`.
4358
+ * @since 4.0.0
4359
+ * @category Lang
4360
+ * @param {*} value The value to convert.
4361
+ * @returns {string} Returns the converted string.
4566
4362
  * @example
4567
4363
  *
4568
- * var object = { 'a': 1 };
4364
+ * _.toString(null);
4365
+ * // => ''
4569
4366
  *
4570
- * console.log(_.identity(object) === object);
4571
- * // => true
4367
+ * _.toString(-0);
4368
+ * // => '-0'
4369
+ *
4370
+ * _.toString([1, 2, 3]);
4371
+ * // => '1,2,3'
4572
4372
  */
4573
- function identity(value) {
4574
- return value;
4373
+ function toString(value) {
4374
+ return value == null ? '' : baseToString(value);
4575
4375
  }
4576
4376
 
4577
- module.exports = identity;
4377
+ module.exports = toString;
4578
4378
 
4579
4379
 
4580
4380
  /***/ }),
@@ -4810,7 +4610,7 @@ module.exports = checkPropTypes;
4810
4610
 
4811
4611
 
4812
4612
 
4813
- var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/react-is/index.js");
4613
+ var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/prop-types/node_modules/react-is/index.js");
4814
4614
  var assign = __webpack_require__(/*! object-assign */ "../../../node_modules/object-assign/index.js");
4815
4615
 
4816
4616
  var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../../node_modules/prop-types/lib/ReactPropTypesSecret.js");
@@ -5429,7 +5229,7 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
5429
5229
  */
5430
5230
 
5431
5231
  if (true) {
5432
- var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/react-is/index.js");
5232
+ var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/prop-types/node_modules/react-is/index.js");
5433
5233
 
5434
5234
  // By explicitly using `prop-types` you are opting into new development behavior.
5435
5235
  // http://fb.me/prop-types-in-prod
@@ -5474,10 +5274,10 @@ module.exports = Function.call.bind(Object.prototype.hasOwnProperty);
5474
5274
 
5475
5275
  /***/ }),
5476
5276
 
5477
- /***/ "../../../node_modules/react-is/cjs/react-is.development.js":
5478
- /*!******************************************************************!*\
5479
- !*** ../../../node_modules/react-is/cjs/react-is.development.js ***!
5480
- \******************************************************************/
5277
+ /***/ "../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js":
5278
+ /*!******************************************************************************************!*\
5279
+ !*** ../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js ***!
5280
+ \******************************************************************************************/
5481
5281
  /***/ ((__unused_webpack_module, exports) => {
5482
5282
 
5483
5283
  "use strict";
@@ -5666,17 +5466,17 @@ exports.typeOf = typeOf;
5666
5466
 
5667
5467
  /***/ }),
5668
5468
 
5669
- /***/ "../../../node_modules/react-is/index.js":
5670
- /*!***********************************************!*\
5671
- !*** ../../../node_modules/react-is/index.js ***!
5672
- \***********************************************/
5469
+ /***/ "../../../node_modules/prop-types/node_modules/react-is/index.js":
5470
+ /*!***********************************************************************!*\
5471
+ !*** ../../../node_modules/prop-types/node_modules/react-is/index.js ***!
5472
+ \***********************************************************************/
5673
5473
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
5674
5474
 
5675
5475
  "use strict";
5676
5476
 
5677
5477
 
5678
5478
  if (false) {} else {
5679
- module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../../../node_modules/react-is/cjs/react-is.development.js");
5479
+ module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js");
5680
5480
  }
5681
5481
 
5682
5482
 
@@ -5787,134 +5587,6 @@ var getStyle = function () {
5787
5587
 
5788
5588
  /***/ }),
5789
5589
 
5790
- /***/ "../../victory-bar/es/bar.js":
5791
- /*!***********************************!*\
5792
- !*** ../../victory-bar/es/bar.js ***!
5793
- \***********************************/
5794
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
5795
-
5796
- "use strict";
5797
- __webpack_require__.r(__webpack_exports__);
5798
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
5799
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
5800
- /* harmony export */ });
5801
- /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
5802
- /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__);
5803
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
5804
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);
5805
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
5806
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
5807
- /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/helpers.js");
5808
- /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/common-props.js");
5809
- /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-primitives/path.js");
5810
- /* harmony import */ var _bar_helper_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./bar-helper-methods */ "../../victory-bar/es/bar-helper-methods.js");
5811
- /* harmony import */ var _path_helper_methods__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./path-helper-methods */ "../../victory-bar/es/path-helper-methods.js");
5812
-
5813
-
5814
- 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; }
5815
-
5816
- 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; }
5817
-
5818
- 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; }
5819
-
5820
-
5821
-
5822
-
5823
-
5824
-
5825
-
5826
- var evaluateProps = function (props) {
5827
- /**
5828
- * Potential evaluated props of following must be evaluated in this order:
5829
- * 1) `style`
5830
- * 2) `barWidth`
5831
- * 3) `cornerRadius`
5832
- *
5833
- * Everything else does not have to be evaluated in a particular order:
5834
- * `ariaLabel`
5835
- * `desc`
5836
- * `id`
5837
- * `tabIndex`
5838
- */
5839
- var style = (0,_bar_helper_methods__WEBPACK_IMPORTED_MODULE_2__.getStyle)(props.style, props);
5840
- var barWidth = (0,_bar_helper_methods__WEBPACK_IMPORTED_MODULE_2__.getBarWidth)(props.barWidth, lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
5841
- style: style
5842
- }));
5843
- var cornerRadius = (0,_bar_helper_methods__WEBPACK_IMPORTED_MODULE_2__.getCornerRadius)(props.cornerRadius, lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
5844
- style: style,
5845
- barWidth: barWidth
5846
- }));
5847
- var ariaLabel = victory_core__WEBPACK_IMPORTED_MODULE_3__.evaluateProp(props.ariaLabel, props);
5848
- var desc = victory_core__WEBPACK_IMPORTED_MODULE_3__.evaluateProp(props.desc, props);
5849
- var id = victory_core__WEBPACK_IMPORTED_MODULE_3__.evaluateProp(props.id, props);
5850
- var tabIndex = victory_core__WEBPACK_IMPORTED_MODULE_3__.evaluateProp(props.tabIndex, props);
5851
- return lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
5852
- ariaLabel: ariaLabel,
5853
- style: style,
5854
- barWidth: barWidth,
5855
- cornerRadius: cornerRadius,
5856
- desc: desc,
5857
- id: id,
5858
- tabIndex: tabIndex
5859
- });
5860
- };
5861
-
5862
- var Bar = function (props) {
5863
- props = evaluateProps(props);
5864
- var _props = props,
5865
- polar = _props.polar,
5866
- origin = _props.origin,
5867
- style = _props.style,
5868
- barWidth = _props.barWidth,
5869
- cornerRadius = _props.cornerRadius;
5870
- var path = polar ? (0,_path_helper_methods__WEBPACK_IMPORTED_MODULE_4__.getPolarBarPath)(props, cornerRadius) : (0,_path_helper_methods__WEBPACK_IMPORTED_MODULE_4__.getBarPath)(props, barWidth, cornerRadius);
5871
- var defaultTransform = polar && origin ? "translate(".concat(origin.x, ", ").concat(origin.y, ")") : undefined;
5872
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(props.pathComponent, _objectSpread(_objectSpread({}, props.events), {}, {
5873
- "aria-label": props.ariaLabel,
5874
- style: style,
5875
- d: path,
5876
- className: props.className,
5877
- clipPath: props.clipPath,
5878
- desc: props.desc,
5879
- index: props.index,
5880
- role: props.role,
5881
- shapeRendering: props.shapeRendering,
5882
- transform: props.transform || defaultTransform,
5883
- tabIndex: props.tabIndex
5884
- }));
5885
- };
5886
-
5887
- Bar.propTypes = _objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_5__.primitiveProps), {}, {
5888
- alignment: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOf(["start", "middle", "end"]),
5889
- barRatio: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number),
5890
- barWidth: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func)]),
5891
- cornerRadius: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func), prop_types__WEBPACK_IMPORTED_MODULE_6___default().shape({
5892
- top: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func)]),
5893
- topLeft: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func)]),
5894
- topRight: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func)]),
5895
- bottom: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func)]),
5896
- bottomLeft: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func)]),
5897
- bottomRight: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func)])
5898
- })]),
5899
- datum: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object),
5900
- getPath: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func),
5901
- horizontal: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool),
5902
- pathComponent: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().element),
5903
- width: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number),
5904
- x: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number),
5905
- y: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number),
5906
- y0: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number)
5907
- });
5908
- Bar.defaultProps = {
5909
- defaultBarWidth: 8,
5910
- pathComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_7__["default"], null),
5911
- role: "presentation",
5912
- shapeRendering: "auto"
5913
- };
5914
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Bar);
5915
-
5916
- /***/ }),
5917
-
5918
5590
  /***/ "../../victory-bar/es/geometry-helper-methods.js":
5919
5591
  /*!*******************************************************!*\
5920
5592
  !*** ../../victory-bar/es/geometry-helper-methods.js ***!
@@ -6554,39 +6226,6 @@ var getPolarBarPath = function (props, cornerRadius) {
6554
6226
 
6555
6227
  /***/ }),
6556
6228
 
6557
- /***/ "../../victory-core/es/victory-primitives/path.js":
6558
- /*!********************************************************!*\
6559
- !*** ../../victory-core/es/victory-primitives/path.js ***!
6560
- \********************************************************/
6561
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
6562
-
6563
- "use strict";
6564
- __webpack_require__.r(__webpack_exports__);
6565
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
6566
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
6567
- /* harmony export */ });
6568
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
6569
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
6570
- var _excluded = ["desc"];
6571
-
6572
- 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; }
6573
-
6574
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
6575
-
6576
-
6577
-
6578
- var Path = function (props) {
6579
- // eslint-disable-next-line react/prop-types
6580
- var desc = props.desc,
6581
- rest = _objectWithoutProperties(props, _excluded);
6582
-
6583
- return desc ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", rest, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", null, desc)) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", rest);
6584
- };
6585
-
6586
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Path);
6587
-
6588
- /***/ }),
6589
-
6590
6229
  /***/ "../../victory-core/es/victory-util/common-props.js":
6591
6230
  /*!**********************************************************!*\
6592
6231
  !*** ../../victory-core/es/victory-util/common-props.js ***!
@@ -6772,8 +6411,6 @@ __webpack_require__.r(__webpack_exports__);
6772
6411
 
6773
6412
 
6774
6413
 
6775
- /* eslint-disable func-style */
6776
-
6777
6414
  /* eslint-disable no-use-before-define */
6778
6415
 
6779
6416
 
@@ -7194,7 +6831,6 @@ __webpack_require__.r(__webpack_exports__);
7194
6831
 
7195
6832
  /* eslint-disable no-console */
7196
6833
  // TODO: Use "warning" npm module like React is switching to.
7197
- // eslint-disable-next-line func-style
7198
6834
  function warn(message) {
7199
6835
  if (true) {
7200
6836
  if (console && console.warn) {
@@ -7214,83 +6850,89 @@ function warn(message) {
7214
6850
  "use strict";
7215
6851
  __webpack_require__.r(__webpack_exports__);
7216
6852
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
7217
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
6853
+ /* harmony export */ "circle": () => (/* binding */ circle),
6854
+ /* harmony export */ "cross": () => (/* binding */ cross),
6855
+ /* harmony export */ "diamond": () => (/* binding */ diamond),
6856
+ /* harmony export */ "minus": () => (/* binding */ minus),
6857
+ /* harmony export */ "plus": () => (/* binding */ plus),
6858
+ /* harmony export */ "square": () => (/* binding */ square),
6859
+ /* harmony export */ "star": () => (/* binding */ star),
6860
+ /* harmony export */ "triangleDown": () => (/* binding */ triangleDown),
6861
+ /* harmony export */ "triangleUp": () => (/* binding */ triangleUp)
7218
6862
  /* harmony export */ });
7219
6863
  /* harmony import */ var lodash_range__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/range */ "../../../node_modules/lodash/range.js");
7220
6864
  /* harmony import */ var lodash_range__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_range__WEBPACK_IMPORTED_MODULE_0__);
7221
6865
 
7222
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
7223
- circle: function (x, y, size) {
7224
- return "M ".concat(x, ", ").concat(y, "\n m ").concat(-size, ", 0\n a ").concat(size, ", ").concat(size, " 0 1,0 ").concat(size * 2, ",0\n a ").concat(size, ", ").concat(size, " 0 1,0 ").concat(-size * 2, ",0");
7225
- },
7226
- square: function (x, y, size) {
7227
- var baseSize = 0.87 * size; // eslint-disable-line no-magic-numbers
6866
+ function circle(x, y, size) {
6867
+ return "M ".concat(x, ", ").concat(y, "\n m ").concat(-size, ", 0\n a ").concat(size, ", ").concat(size, " 0 1,0 ").concat(size * 2, ",0\n a ").concat(size, ", ").concat(size, " 0 1,0 ").concat(-size * 2, ",0");
6868
+ }
6869
+ function square(x, y, size) {
6870
+ var baseSize = 0.87 * size; // eslint-disable-line no-magic-numbers
7228
6871
 
7229
- var x0 = x - baseSize;
7230
- var y1 = y + baseSize;
7231
- var distance = x + baseSize - x0;
7232
- return "M ".concat(x0, ", ").concat(y1, "\n h").concat(distance, "\n v-").concat(distance, "\n h-").concat(distance, "\n z");
7233
- },
7234
- diamond: function (x, y, size) {
7235
- var baseSize = 0.87 * size; // eslint-disable-line no-magic-numbers
6872
+ var x0 = x - baseSize;
6873
+ var y1 = y + baseSize;
6874
+ var distance = x + baseSize - x0;
6875
+ return "M ".concat(x0, ", ").concat(y1, "\n h").concat(distance, "\n v-").concat(distance, "\n h-").concat(distance, "\n z");
6876
+ }
6877
+ function diamond(x, y, size) {
6878
+ var baseSize = 0.87 * size; // eslint-disable-line no-magic-numbers
7236
6879
 
7237
- var length = Math.sqrt(2 * (baseSize * baseSize));
7238
- return "M ".concat(x, ", ").concat(y + length, "\n l ").concat(length, ", -").concat(length, "\n l -").concat(length, ", -").concat(length, "\n l -").concat(length, ", ").concat(length, "\n l ").concat(length, ", ").concat(length, "\n z");
7239
- },
7240
- triangleDown: function (x, y, size) {
7241
- var height = size / 2 * Math.sqrt(3);
7242
- var x0 = x - size;
7243
- var x1 = x + size;
7244
- var y0 = y - size;
7245
- var y1 = y + height;
7246
- return "M ".concat(x0, ", ").concat(y0, "\n L ").concat(x1, ", ").concat(y0, "\n L ").concat(x, ", ").concat(y1, "\n z");
7247
- },
7248
- triangleUp: function (x, y, size) {
7249
- var height = size / 2 * Math.sqrt(3);
7250
- var x0 = x - size;
7251
- var x1 = x + size;
7252
- var y0 = y - height;
7253
- var y1 = y + size;
7254
- return "M ".concat(x0, ", ").concat(y1, "\n L ").concat(x1, ", ").concat(y1, "\n L ").concat(x, ", ").concat(y0, "\n z");
7255
- },
7256
- plus: function (x, y, size) {
7257
- var baseSize = 1.1 * size; // eslint-disable-line no-magic-numbers
6880
+ var length = Math.sqrt(2 * (baseSize * baseSize));
6881
+ return "M ".concat(x, ", ").concat(y + length, "\n l ").concat(length, ", -").concat(length, "\n l -").concat(length, ", -").concat(length, "\n l -").concat(length, ", ").concat(length, "\n l ").concat(length, ", ").concat(length, "\n z");
6882
+ }
6883
+ function triangleDown(x, y, size) {
6884
+ var height = size / 2 * Math.sqrt(3);
6885
+ var x0 = x - size;
6886
+ var x1 = x + size;
6887
+ var y0 = y - size;
6888
+ var y1 = y + height;
6889
+ return "M ".concat(x0, ", ").concat(y0, "\n L ").concat(x1, ", ").concat(y0, "\n L ").concat(x, ", ").concat(y1, "\n z");
6890
+ }
6891
+ function triangleUp(x, y, size) {
6892
+ var height = size / 2 * Math.sqrt(3);
6893
+ var x0 = x - size;
6894
+ var x1 = x + size;
6895
+ var y0 = y - height;
6896
+ var y1 = y + size;
6897
+ return "M ".concat(x0, ", ").concat(y1, "\n L ").concat(x1, ", ").concat(y1, "\n L ").concat(x, ", ").concat(y0, "\n z");
6898
+ }
6899
+ function plus(x, y, size) {
6900
+ var baseSize = 1.1 * size; // eslint-disable-line no-magic-numbers
7258
6901
 
7259
- var distance = baseSize / 1.5; // eslint-disable-line no-magic-numbers
6902
+ var distance = baseSize / 1.5; // eslint-disable-line no-magic-numbers
7260
6903
 
7261
- return "\n M ".concat(x - distance / 2, ", ").concat(y + baseSize, "\n v-").concat(distance, "\n h-").concat(distance, "\n v-").concat(distance, "\n h").concat(distance, "\n v-").concat(distance, "\n h").concat(distance, "\n v").concat(distance, "\n h").concat(distance, "\n v").concat(distance, "\n h-").concat(distance, "\n v").concat(distance, "\n z");
7262
- },
7263
- cross: function (x, y, size) {
7264
- var baseSize = 0.8 * size; // eslint-disable-line no-magic-numbers
6904
+ return "\n M ".concat(x - distance / 2, ", ").concat(y + baseSize, "\n v-").concat(distance, "\n h-").concat(distance, "\n v-").concat(distance, "\n h").concat(distance, "\n v-").concat(distance, "\n h").concat(distance, "\n v").concat(distance, "\n h").concat(distance, "\n v").concat(distance, "\n h-").concat(distance, "\n v").concat(distance, "\n z");
6905
+ }
6906
+ function cross(x, y, size) {
6907
+ var baseSize = 0.8 * size; // eslint-disable-line no-magic-numbers
7265
6908
 
7266
- var distance = baseSize / 1.5; // eslint-disable-line no-magic-numbers
6909
+ var distance = baseSize / 1.5; // eslint-disable-line no-magic-numbers
7267
6910
 
7268
- return "\n M ".concat(x - distance / 2, ", ").concat(y + baseSize + distance, "\n v-").concat(distance * 2, "\n h-").concat(distance, "\n v-").concat(distance, "\n h").concat(distance, "\n v-").concat(distance, "\n h").concat(distance, "\n v").concat(distance, "\n h").concat(distance, "\n v").concat(distance, "\n h-").concat(distance, "\n v").concat(distance * 2, "\n z");
7269
- },
7270
- minus: function (x, y, size) {
7271
- var baseSize = 1.1 * size; // eslint-disable-line no-magic-numbers
6911
+ return "\n M ".concat(x - distance / 2, ", ").concat(y + baseSize + distance, "\n v-").concat(distance * 2, "\n h-").concat(distance, "\n v-").concat(distance, "\n h").concat(distance, "\n v-").concat(distance, "\n h").concat(distance, "\n v").concat(distance, "\n h").concat(distance, "\n v").concat(distance, "\n h-").concat(distance, "\n v").concat(distance * 2, "\n z");
6912
+ }
6913
+ function minus(x, y, size) {
6914
+ var baseSize = 1.1 * size; // eslint-disable-line no-magic-numbers
7272
6915
 
7273
- var lineHeight = baseSize - baseSize * 0.3; // eslint-disable-line no-magic-numbers
6916
+ var lineHeight = baseSize - baseSize * 0.3; // eslint-disable-line no-magic-numbers
7274
6917
 
7275
- var x0 = x - baseSize;
7276
- var y1 = y + lineHeight / 2;
7277
- var distance = x + baseSize - x0;
7278
- return "M ".concat(x0, ", ").concat(y1, "\n h").concat(distance, "\n v-").concat(lineHeight, "\n h-").concat(distance, "\n z");
7279
- },
7280
- star: function (x, y, size) {
7281
- var baseSize = 1.35 * size; // eslint-disable-line no-magic-numbers
6918
+ var x0 = x - baseSize;
6919
+ var y1 = y + lineHeight / 2;
6920
+ var distance = x + baseSize - x0;
6921
+ return "M ".concat(x0, ", ").concat(y1, "\n h").concat(distance, "\n v-").concat(lineHeight, "\n h-").concat(distance, "\n z");
6922
+ }
6923
+ function star(x, y, size) {
6924
+ var baseSize = 1.35 * size; // eslint-disable-line no-magic-numbers
7282
6925
 
7283
- var angle = Math.PI / 5; // eslint-disable-line no-magic-numbers
7284
- // eslint-disable-next-line no-magic-numbers
6926
+ var angle = Math.PI / 5; // eslint-disable-line no-magic-numbers
6927
+ // eslint-disable-next-line no-magic-numbers
7285
6928
 
7286
- var starCoords = lodash_range__WEBPACK_IMPORTED_MODULE_0___default()(10).map(function (index) {
7287
- var length = index % 2 === 0 ? baseSize : baseSize / 2;
7288
- return "".concat(length * Math.sin(angle * (index + 1)) + x, ",\n ").concat(length * Math.cos(angle * (index + 1)) + y);
7289
- });
6929
+ var starCoords = lodash_range__WEBPACK_IMPORTED_MODULE_0___default()(10).map(function (index) {
6930
+ var length = index % 2 === 0 ? baseSize : baseSize / 2;
6931
+ return "".concat(length * Math.sin(angle * (index + 1)) + x, ",\n ").concat(length * Math.cos(angle * (index + 1)) + y);
6932
+ });
7290
6933
 
7291
- return "M ".concat(starCoords.join("L"), " z");
7292
- }
7293
- });
6934
+ return "M ".concat(starCoords.join("L"), " z");
6935
+ }
7294
6936
 
7295
6937
  /***/ }),
7296
6938