victory-stack 36.5.0 → 36.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/victory-stack.js +164 -169
- package/dist/victory-stack.min.js +1 -1
- package/es/helper-methods.js +2 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +2 -1
- package/es/victory-stack.js +2 -1
- package/lib/helper-methods.js +2 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +2 -1
- package/lib/victory-stack.js +2 -1
- package/package.json +4 -4
- package/src/helper-methods.js +15 -15
- package/src/index.d.ts +1 -1
- package/src/victory-stack.js +21 -21
package/dist/victory-stack.js
CHANGED
|
@@ -486,7 +486,7 @@ var VictoryStack = function (initialProps) {
|
|
|
486
486
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(container, container.props, newChildren);
|
|
487
487
|
};
|
|
488
488
|
|
|
489
|
-
VictoryStack.propTypes = _objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_12__.baseProps), {}, {
|
|
489
|
+
VictoryStack.propTypes = _objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_12__.CommonProps.baseProps), {}, {
|
|
490
490
|
bins: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_13___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([victory_core__WEBPACK_IMPORTED_MODULE_14__.nonNegative, prop_types__WEBPACK_IMPORTED_MODULE_13___default().instanceOf(Date)])), victory_core__WEBPACK_IMPORTED_MODULE_14__.nonNegative]),
|
|
491
491
|
categories: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_13___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_13___default().string)), prop_types__WEBPACK_IMPORTED_MODULE_13___default().shape({
|
|
492
492
|
x: prop_types__WEBPACK_IMPORTED_MODULE_13___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_13___default().string)),
|
|
@@ -2181,53 +2181,6 @@ function baseSortedUniq(array, iteratee) {
|
|
|
2181
2181
|
module.exports = baseSortedUniq;
|
|
2182
2182
|
|
|
2183
2183
|
|
|
2184
|
-
/***/ }),
|
|
2185
|
-
|
|
2186
|
-
/***/ "../../../node_modules/lodash/_baseToString.js":
|
|
2187
|
-
/*!*****************************************************!*\
|
|
2188
|
-
!*** ../../../node_modules/lodash/_baseToString.js ***!
|
|
2189
|
-
\*****************************************************/
|
|
2190
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
2191
|
-
|
|
2192
|
-
var Symbol = __webpack_require__(/*! ./_Symbol */ "../../../node_modules/lodash/_Symbol.js"),
|
|
2193
|
-
arrayMap = __webpack_require__(/*! ./_arrayMap */ "../../../node_modules/lodash/_arrayMap.js"),
|
|
2194
|
-
isArray = __webpack_require__(/*! ./isArray */ "../../../node_modules/lodash/isArray.js"),
|
|
2195
|
-
isSymbol = __webpack_require__(/*! ./isSymbol */ "../../../node_modules/lodash/isSymbol.js");
|
|
2196
|
-
|
|
2197
|
-
/** Used as references for various `Number` constants. */
|
|
2198
|
-
var INFINITY = 1 / 0;
|
|
2199
|
-
|
|
2200
|
-
/** Used to convert symbols to primitives and strings. */
|
|
2201
|
-
var symbolProto = Symbol ? Symbol.prototype : undefined,
|
|
2202
|
-
symbolToString = symbolProto ? symbolProto.toString : undefined;
|
|
2203
|
-
|
|
2204
|
-
/**
|
|
2205
|
-
* The base implementation of `_.toString` which doesn't convert nullish
|
|
2206
|
-
* values to empty strings.
|
|
2207
|
-
*
|
|
2208
|
-
* @private
|
|
2209
|
-
* @param {*} value The value to process.
|
|
2210
|
-
* @returns {string} Returns the string.
|
|
2211
|
-
*/
|
|
2212
|
-
function baseToString(value) {
|
|
2213
|
-
// Exit early for strings to avoid a performance hit in some environments.
|
|
2214
|
-
if (typeof value == 'string') {
|
|
2215
|
-
return value;
|
|
2216
|
-
}
|
|
2217
|
-
if (isArray(value)) {
|
|
2218
|
-
// Recursively convert values (susceptible to call stack limits).
|
|
2219
|
-
return arrayMap(value, baseToString) + '';
|
|
2220
|
-
}
|
|
2221
|
-
if (isSymbol(value)) {
|
|
2222
|
-
return symbolToString ? symbolToString.call(value) : '';
|
|
2223
|
-
}
|
|
2224
|
-
var result = (value + '');
|
|
2225
|
-
return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
|
|
2226
|
-
}
|
|
2227
|
-
|
|
2228
|
-
module.exports = baseToString;
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
2184
|
/***/ }),
|
|
2232
2185
|
|
|
2233
2186
|
/***/ "../../../node_modules/lodash/_baseTrim.js":
|
|
@@ -6114,36 +6067,29 @@ module.exports = toNumber;
|
|
|
6114
6067
|
/*!************************************************!*\
|
|
6115
6068
|
!*** ../../../node_modules/lodash/toString.js ***!
|
|
6116
6069
|
\************************************************/
|
|
6117
|
-
/***/ ((module
|
|
6118
|
-
|
|
6119
|
-
var baseToString = __webpack_require__(/*! ./_baseToString */ "../../../node_modules/lodash/_baseToString.js");
|
|
6070
|
+
/***/ ((module) => {
|
|
6120
6071
|
|
|
6121
6072
|
/**
|
|
6122
|
-
*
|
|
6123
|
-
* and `undefined` values. The sign of `-0` is preserved.
|
|
6073
|
+
* This method returns the first argument it receives.
|
|
6124
6074
|
*
|
|
6125
6075
|
* @static
|
|
6076
|
+
* @since 0.1.0
|
|
6126
6077
|
* @memberOf _
|
|
6127
|
-
* @
|
|
6128
|
-
* @
|
|
6129
|
-
* @
|
|
6130
|
-
* @returns {string} Returns the converted string.
|
|
6078
|
+
* @category Util
|
|
6079
|
+
* @param {*} value Any value.
|
|
6080
|
+
* @returns {*} Returns `value`.
|
|
6131
6081
|
* @example
|
|
6132
6082
|
*
|
|
6133
|
-
*
|
|
6134
|
-
* // => ''
|
|
6135
|
-
*
|
|
6136
|
-
* _.toString(-0);
|
|
6137
|
-
* // => '-0'
|
|
6083
|
+
* var object = { 'a': 1 };
|
|
6138
6084
|
*
|
|
6139
|
-
* _.
|
|
6140
|
-
* // =>
|
|
6085
|
+
* console.log(_.identity(object) === object);
|
|
6086
|
+
* // => true
|
|
6141
6087
|
*/
|
|
6142
|
-
function
|
|
6143
|
-
return value
|
|
6088
|
+
function identity(value) {
|
|
6089
|
+
return value;
|
|
6144
6090
|
}
|
|
6145
6091
|
|
|
6146
|
-
module.exports =
|
|
6092
|
+
module.exports = identity;
|
|
6147
6093
|
|
|
6148
6094
|
|
|
6149
6095
|
/***/ }),
|
|
@@ -7904,6 +7850,7 @@ VictoryContainer.defaultProps = {
|
|
|
7904
7850
|
role: "img"
|
|
7905
7851
|
};
|
|
7906
7852
|
VictoryContainer.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_12__["default"];
|
|
7853
|
+
//# sourceMappingURL=victory-container.js.map
|
|
7907
7854
|
|
|
7908
7855
|
/***/ }),
|
|
7909
7856
|
|
|
@@ -7928,6 +7875,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7928
7875
|
*/
|
|
7929
7876
|
var PortalContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createContext({});
|
|
7930
7877
|
PortalContext.displayName = "PortalContext";
|
|
7878
|
+
//# sourceMappingURL=portal-context.js.map
|
|
7931
7879
|
|
|
7932
7880
|
/***/ }),
|
|
7933
7881
|
|
|
@@ -8039,6 +7987,7 @@ Portal.propTypes = {
|
|
|
8039
7987
|
viewBox: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
|
|
8040
7988
|
width: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__.nonNegative
|
|
8041
7989
|
};
|
|
7990
|
+
//# sourceMappingURL=portal.js.map
|
|
8042
7991
|
|
|
8043
7992
|
/***/ }),
|
|
8044
7993
|
|
|
@@ -8314,6 +8263,7 @@ var grayscale = {
|
|
|
8314
8263
|
}
|
|
8315
8264
|
}, baseProps)
|
|
8316
8265
|
};
|
|
8266
|
+
//# sourceMappingURL=grayscale.js.map
|
|
8317
8267
|
|
|
8318
8268
|
/***/ }),
|
|
8319
8269
|
|
|
@@ -8616,6 +8566,7 @@ var material = {
|
|
|
8616
8566
|
}
|
|
8617
8567
|
}, baseProps)
|
|
8618
8568
|
};
|
|
8569
|
+
//# sourceMappingURL=material.js.map
|
|
8619
8570
|
|
|
8620
8571
|
/***/ }),
|
|
8621
8572
|
|
|
@@ -8639,6 +8590,7 @@ var VictoryTheme = {
|
|
|
8639
8590
|
grayscale: _grayscale__WEBPACK_IMPORTED_MODULE_0__.grayscale,
|
|
8640
8591
|
material: _material__WEBPACK_IMPORTED_MODULE_1__.material
|
|
8641
8592
|
};
|
|
8593
|
+
//# sourceMappingURL=victory-theme.js.map
|
|
8642
8594
|
|
|
8643
8595
|
/***/ }),
|
|
8644
8596
|
|
|
@@ -8723,13 +8675,13 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
8723
8675
|
|
|
8724
8676
|
|
|
8725
8677
|
|
|
8678
|
+
|
|
8726
8679
|
/**
|
|
8727
8680
|
* Returns the axis (x or y) of a particular axis component
|
|
8728
8681
|
* @param {Object} props: the props object.
|
|
8729
8682
|
* @param {Boolean} horizontal: true for horizontal charts
|
|
8730
8683
|
* @returns {String} the dimension appropriate for the axis given its props
|
|
8731
8684
|
*/
|
|
8732
|
-
|
|
8733
8685
|
function getAxis(props) {
|
|
8734
8686
|
var dependentAxis = props.dependentAxis;
|
|
8735
8687
|
return dependentAxis ? "y" : "x";
|
|
@@ -8915,7 +8867,7 @@ function getTickArray(props) {
|
|
|
8915
8867
|
}) : lodash_range__WEBPACK_IMPORTED_MODULE_4___default()(1, tickValues.length + 1);
|
|
8916
8868
|
}
|
|
8917
8869
|
|
|
8918
|
-
var tickArray = ticks ? lodash_uniq__WEBPACK_IMPORTED_MODULE_5___default()(ticks) : getTicksFromFormat(
|
|
8870
|
+
var tickArray = ticks ? lodash_uniq__WEBPACK_IMPORTED_MODULE_5___default()(ticks) : getTicksFromFormat();
|
|
8919
8871
|
|
|
8920
8872
|
var buildTickArray = function (arr) {
|
|
8921
8873
|
var newTickArray = [];
|
|
@@ -8960,11 +8912,11 @@ function getTickFormat(props, scale) {
|
|
|
8960
8912
|
return defaultTickFormat || scaleTickFormat;
|
|
8961
8913
|
} else if (tickFormat && Array.isArray(tickFormat)) {
|
|
8962
8914
|
var tickArray = getTickArray(props);
|
|
8963
|
-
var tickArrayIndices = tickArray ? tickArray.map(function (v) {
|
|
8915
|
+
var tickArrayIndices = tickArray === null || tickArray === void 0 ? void 0 : tickArray.map(function (v) {
|
|
8964
8916
|
return v.index;
|
|
8965
|
-
})
|
|
8917
|
+
});
|
|
8966
8918
|
var filteredTickFormat = tickFormat.filter(function (t, index) {
|
|
8967
|
-
return tickArrayIndices.includes(index);
|
|
8919
|
+
return tickArrayIndices === null || tickArrayIndices === void 0 ? void 0 : tickArrayIndices.includes(index);
|
|
8968
8920
|
});
|
|
8969
8921
|
return function (x, index) {
|
|
8970
8922
|
return filteredTickFormat[index];
|
|
@@ -8998,7 +8950,8 @@ function downsampleTicks(ticks, tickCount) {
|
|
|
8998
8950
|
});
|
|
8999
8951
|
}
|
|
9000
8952
|
|
|
9001
|
-
function getTicks(props, scale
|
|
8953
|
+
function getTicks(props, scale) {
|
|
8954
|
+
var filterZero = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
9002
8955
|
var tickCount = props.tickCount;
|
|
9003
8956
|
var tickArray = getTickArray(props);
|
|
9004
8957
|
var tickValues = tickArray ? tickArray.map(function (v) {
|
|
@@ -9121,6 +9074,7 @@ function modifyProps(props, fallbackProps) {
|
|
|
9121
9074
|
theme: theme
|
|
9122
9075
|
}), fallbackProps, "axis");
|
|
9123
9076
|
}
|
|
9077
|
+
//# sourceMappingURL=axis.js.map
|
|
9124
9078
|
|
|
9125
9079
|
/***/ }),
|
|
9126
9080
|
|
|
@@ -9154,7 +9108,6 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
9154
9108
|
|
|
9155
9109
|
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; }
|
|
9156
9110
|
|
|
9157
|
-
/* eslint-disable no-use-before-define */
|
|
9158
9111
|
function isNonEmptyArray(collection) {
|
|
9159
9112
|
return Array.isArray(collection) && collection.length > 0;
|
|
9160
9113
|
}
|
|
@@ -9193,7 +9146,8 @@ function getMaxValue(arr) {
|
|
|
9193
9146
|
}
|
|
9194
9147
|
|
|
9195
9148
|
var array = arr.concat(values);
|
|
9196
|
-
return containsDates(array) ? new Date(Math.max.apply(Math, _toConsumableArray(array)))
|
|
9149
|
+
return containsDates(array) ? new Date(Math.max.apply(Math, _toConsumableArray(array))) // Dates will be coerced to numbers
|
|
9150
|
+
: Math.max.apply(Math, _toConsumableArray(array));
|
|
9197
9151
|
}
|
|
9198
9152
|
function getMinValue(arr) {
|
|
9199
9153
|
for (var _len2 = arguments.length, values = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
@@ -9201,8 +9155,10 @@ function getMinValue(arr) {
|
|
|
9201
9155
|
}
|
|
9202
9156
|
|
|
9203
9157
|
var array = arr.concat(values);
|
|
9204
|
-
return containsDates(array) ? new Date(Math.min.apply(Math, _toConsumableArray(array)))
|
|
9158
|
+
return containsDates(array) ? new Date(Math.min.apply(Math, _toConsumableArray(array))) // Dates will be coerced to numbers
|
|
9159
|
+
: Math.min.apply(Math, _toConsumableArray(array));
|
|
9205
9160
|
}
|
|
9161
|
+
//# sourceMappingURL=collection.js.map
|
|
9206
9162
|
|
|
9207
9163
|
/***/ }),
|
|
9208
9164
|
|
|
@@ -9215,9 +9171,7 @@ function getMinValue(arr) {
|
|
|
9215
9171
|
"use strict";
|
|
9216
9172
|
__webpack_require__.r(__webpack_exports__);
|
|
9217
9173
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9218
|
-
/* harmony export */ "
|
|
9219
|
-
/* harmony export */ "dataProps": () => (/* binding */ dataProps),
|
|
9220
|
-
/* harmony export */ "primitiveProps": () => (/* binding */ primitiveProps)
|
|
9174
|
+
/* harmony export */ "CommonProps": () => (/* binding */ CommonProps)
|
|
9221
9175
|
/* harmony export */ });
|
|
9222
9176
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
9223
9177
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -9225,26 +9179,28 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9225
9179
|
|
|
9226
9180
|
|
|
9227
9181
|
var dataProps = {
|
|
9182
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9228
9183
|
categories: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9229
9184
|
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)),
|
|
9230
9185
|
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))
|
|
9231
9186
|
})]),
|
|
9187
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9232
9188
|
data: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().array), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)]),
|
|
9233
9189
|
dataComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
9234
9190
|
disableInlineStyles: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
9235
9191
|
labelComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
9236
9192
|
labels: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array)]),
|
|
9237
9193
|
samples: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative,
|
|
9238
|
-
sortKey: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))]),
|
|
9194
|
+
sortKey: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string.isRequired))]),
|
|
9239
9195
|
sortOrder: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(["ascending", "descending"]),
|
|
9240
9196
|
style: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9241
9197
|
parent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
9242
9198
|
data: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
9243
9199
|
labels: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
|
|
9244
9200
|
}),
|
|
9245
|
-
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))]),
|
|
9246
|
-
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))]),
|
|
9247
|
-
y0: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))])
|
|
9201
|
+
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string.isRequired))]),
|
|
9202
|
+
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string.isRequired))]),
|
|
9203
|
+
y0: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string.isRequired))])
|
|
9248
9204
|
};
|
|
9249
9205
|
var baseProps = {
|
|
9250
9206
|
animate: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)]),
|
|
@@ -9253,14 +9209,17 @@ var baseProps = {
|
|
|
9253
9209
|
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain,
|
|
9254
9210
|
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain
|
|
9255
9211
|
})]),
|
|
9212
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9256
9213
|
maxDomain: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9257
9214
|
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date)]),
|
|
9258
9215
|
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date)])
|
|
9259
9216
|
})]),
|
|
9217
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9260
9218
|
minDomain: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9261
9219
|
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date)]),
|
|
9262
9220
|
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date)])
|
|
9263
9221
|
})]),
|
|
9222
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9264
9223
|
domainPadding: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9265
9224
|
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().number))]),
|
|
9266
9225
|
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().number))])
|
|
@@ -9271,6 +9230,7 @@ var baseProps = {
|
|
|
9271
9230
|
eventKey: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().array), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)]),
|
|
9272
9231
|
eventHandlers: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
|
|
9273
9232
|
})),
|
|
9233
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9274
9234
|
externalEventMutations: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9275
9235
|
callback: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
|
9276
9236
|
childName: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array)]),
|
|
@@ -9281,10 +9241,12 @@ var baseProps = {
|
|
|
9281
9241
|
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
9282
9242
|
height: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative,
|
|
9283
9243
|
name: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
|
9244
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9284
9245
|
origin: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9285
9246
|
x: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
9286
9247
|
y: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
|
|
9287
9248
|
}),
|
|
9249
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9288
9250
|
padding: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9289
9251
|
top: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
9290
9252
|
bottom: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
@@ -9293,17 +9255,19 @@ var baseProps = {
|
|
|
9293
9255
|
})]),
|
|
9294
9256
|
polar: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
9295
9257
|
range: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.domain, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9296
|
-
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain,
|
|
9297
|
-
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain
|
|
9258
|
+
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain.isRequired,
|
|
9259
|
+
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain.isRequired
|
|
9298
9260
|
})]),
|
|
9299
9261
|
scale: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.scale, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9300
|
-
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale,
|
|
9301
|
-
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale
|
|
9262
|
+
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale.isRequired,
|
|
9263
|
+
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale.isRequired
|
|
9302
9264
|
})]),
|
|
9265
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9303
9266
|
sharedEvents: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9304
9267
|
events: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array),
|
|
9305
9268
|
getEventState: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)
|
|
9306
9269
|
}),
|
|
9270
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9307
9271
|
singleQuadrantDomainPadding: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9308
9272
|
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)]),
|
|
9309
9273
|
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)])
|
|
@@ -9323,6 +9287,7 @@ var primitiveProps = {
|
|
|
9323
9287
|
events: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
9324
9288
|
id: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)]),
|
|
9325
9289
|
index: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)]),
|
|
9290
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9326
9291
|
origin: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9327
9292
|
x: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
9328
9293
|
y: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
|
|
@@ -9338,6 +9303,12 @@ var primitiveProps = {
|
|
|
9338
9303
|
tabIndex: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)]),
|
|
9339
9304
|
transform: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
|
|
9340
9305
|
};
|
|
9306
|
+
var CommonProps = {
|
|
9307
|
+
dataProps: dataProps,
|
|
9308
|
+
baseProps: baseProps,
|
|
9309
|
+
primitiveProps: primitiveProps
|
|
9310
|
+
};
|
|
9311
|
+
//# sourceMappingURL=common-props.js.map
|
|
9341
9312
|
|
|
9342
9313
|
/***/ }),
|
|
9343
9314
|
|
|
@@ -9851,6 +9822,7 @@ function isDataComponent(component) {
|
|
|
9851
9822
|
var whitelist = ["area", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"];
|
|
9852
9823
|
return lodash_includes__WEBPACK_IMPORTED_MODULE_2___default()(whitelist, role);
|
|
9853
9824
|
}
|
|
9825
|
+
//# sourceMappingURL=data.js.map
|
|
9854
9826
|
|
|
9855
9827
|
/***/ }),
|
|
9856
9828
|
|
|
@@ -9952,8 +9924,9 @@ function getDomainPadding(props, axis) {
|
|
|
9952
9924
|
}
|
|
9953
9925
|
|
|
9954
9926
|
function getFlatData(dataset, axis) {
|
|
9927
|
+
var axisKey = "_".concat(axis);
|
|
9955
9928
|
return lodash_flatten__WEBPACK_IMPORTED_MODULE_5___default()(dataset).map(function (datum) {
|
|
9956
|
-
return datum[
|
|
9929
|
+
return datum[axisKey] && datum[axisKey][1] !== undefined ? datum[axisKey][1] : datum[axisKey];
|
|
9957
9930
|
});
|
|
9958
9931
|
}
|
|
9959
9932
|
|
|
@@ -10018,7 +9991,9 @@ function padDomain(domain, props, axis) {
|
|
|
10018
9991
|
if (addsQuadrants && singleQuadrantDomainPadding !== false) {
|
|
10019
9992
|
// Naive initial padding calculation
|
|
10020
9993
|
var initialPadding = {
|
|
9994
|
+
// @ts-expect-error `max/min` might be dates
|
|
10021
9995
|
left: Math.abs(max - min) * padding.left / rangeExtent,
|
|
9996
|
+
// @ts-expect-error `max/min` might be dates
|
|
10022
9997
|
right: Math.abs(max - min) * padding.right / rangeExtent
|
|
10023
9998
|
}; // Adjust the domain by the initial padding
|
|
10024
9999
|
|
|
@@ -10303,6 +10278,7 @@ function isDomainComponent(component) {
|
|
|
10303
10278
|
var whitelist = ["area", "axis", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"];
|
|
10304
10279
|
return lodash_includes__WEBPACK_IMPORTED_MODULE_1___default()(whitelist, role);
|
|
10305
10280
|
}
|
|
10281
|
+
//# sourceMappingURL=domain.js.map
|
|
10306
10282
|
|
|
10307
10283
|
/***/ }),
|
|
10308
10284
|
|
|
@@ -10371,15 +10347,16 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
10371
10347
|
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; }
|
|
10372
10348
|
|
|
10373
10349
|
var GLOBAL_EVENT_REGEX = /^onGlobal(.*)$/;
|
|
10350
|
+
|
|
10374
10351
|
/* Returns all own and shared events that should be attached to a single target element,
|
|
10375
10352
|
* i.e. an individual bar specified by target: "data", eventKey: [index].
|
|
10376
10353
|
* Returned events are scoped to the appropriate state. Either that of the component itself
|
|
10377
10354
|
* (i.e. VictoryBar) in the case of own events, or that of the parent component
|
|
10378
10355
|
* (i.e. VictoryChart) in the case of shared events
|
|
10379
10356
|
*/
|
|
10380
|
-
// eslint-disable-next-line max-params
|
|
10381
|
-
|
|
10382
|
-
|
|
10357
|
+
// eslint-disable-next-line max-params
|
|
10358
|
+
function getEvents(props, target, eventKey, // eslint-disable-next-line no-shadow
|
|
10359
|
+
getScopedEvents) {
|
|
10383
10360
|
var _this = this;
|
|
10384
10361
|
|
|
10385
10362
|
// Returns all events that apply to a particular target element
|
|
@@ -10602,24 +10579,27 @@ function getScopedEvents(events, namespace, childType, baseProps) {
|
|
|
10602
10579
|
return memo;
|
|
10603
10580
|
}, {});
|
|
10604
10581
|
}
|
|
10605
|
-
/*
|
|
10582
|
+
/*
|
|
10583
|
+
* Returns a partially applied event handler for a specific target element
|
|
10606
10584
|
* This allows event handlers to have access to props controlling each element
|
|
10607
10585
|
*/
|
|
10608
10586
|
|
|
10609
10587
|
function getPartialEvents(events, eventKey, childProps) {
|
|
10610
|
-
|
|
10588
|
+
if (!events) return {};
|
|
10589
|
+
return lodash_keys__WEBPACK_IMPORTED_MODULE_0___default()(events).reduce(function (memo, eventName) {
|
|
10611
10590
|
var appliedEvent = function (evt) {
|
|
10612
10591
|
return events[eventName](evt, childProps, eventKey, eventName);
|
|
10613
10592
|
};
|
|
10614
10593
|
|
|
10615
10594
|
memo[eventName] = appliedEvent;
|
|
10616
10595
|
return memo;
|
|
10617
|
-
}, {})
|
|
10596
|
+
}, {});
|
|
10618
10597
|
}
|
|
10598
|
+
|
|
10619
10599
|
/* Returns the property of the state object corresponding to event changes for
|
|
10620
10600
|
* a particular element
|
|
10621
10601
|
*/
|
|
10622
|
-
|
|
10602
|
+
// eslint-disable-next-line max-params
|
|
10623
10603
|
function getEventState(eventKey, namespace, childType) {
|
|
10624
10604
|
// Mandatory usage: `getEventState.bind(this)`
|
|
10625
10605
|
// eslint-disable-next-line no-invalid-this
|
|
@@ -10804,6 +10784,7 @@ var emulateReactEvent = function (event) {
|
|
|
10804
10784
|
nativeEvent: event
|
|
10805
10785
|
});
|
|
10806
10786
|
};
|
|
10787
|
+
//# sourceMappingURL=events.js.map
|
|
10807
10788
|
|
|
10808
10789
|
/***/ }),
|
|
10809
10790
|
|
|
@@ -10885,7 +10866,7 @@ function getPolarRange(props, axis) {
|
|
|
10885
10866
|
|
|
10886
10867
|
/**
|
|
10887
10868
|
* creates an object with some keys excluded
|
|
10888
|
-
* replacement for lodash.omit for performance. does not
|
|
10869
|
+
* replacement for lodash.omit for performance. does not mimic the entire lodash.omit api
|
|
10889
10870
|
* @param {Object} originalObject: created object will be based on this object
|
|
10890
10871
|
* @param {Array<String>} ks: an array of keys to omit from the new object
|
|
10891
10872
|
* @returns {Object} new object with same properties as originalObject
|
|
@@ -10898,6 +10879,7 @@ function omit(originalObject) {
|
|
|
10898
10879
|
var newObject = {};
|
|
10899
10880
|
|
|
10900
10881
|
for (var key in originalObject) {
|
|
10882
|
+
// @ts-expect-error String is not assignable to Key
|
|
10901
10883
|
if (ks.indexOf(key) >= 0) {
|
|
10902
10884
|
continue;
|
|
10903
10885
|
}
|
|
@@ -11130,7 +11112,9 @@ function reduceChildren(children, iteratee) {
|
|
|
11130
11112
|
var parentProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
11131
11113
|
var initialMemo = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
|
|
11132
11114
|
var combine = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : function (memo, item) {
|
|
11133
|
-
return
|
|
11115
|
+
return (// @ts-expect-error These defaults are hard to type
|
|
11116
|
+
memo.concat(item)
|
|
11117
|
+
);
|
|
11134
11118
|
};
|
|
11135
11119
|
var sharedProps = ["data", "domain", "categories", "polar", "startAngle", "endAngle", "minDomain", "maxDomain", "horizontal"];
|
|
11136
11120
|
|
|
@@ -11174,7 +11158,7 @@ function reduceChildren(children, iteratee) {
|
|
|
11174
11158
|
/**
|
|
11175
11159
|
* @param {Object} props: the props object
|
|
11176
11160
|
* @returns {Boolean} returns true if the props object contains `horizontal: true` of if any
|
|
11177
|
-
* children or nested children are
|
|
11161
|
+
* children or nested children are horizontal
|
|
11178
11162
|
*/
|
|
11179
11163
|
|
|
11180
11164
|
function isHorizontal(props) {
|
|
@@ -11197,6 +11181,7 @@ function isHorizontal(props) {
|
|
|
11197
11181
|
|
|
11198
11182
|
return traverseChildren(react__WEBPACK_IMPORTED_MODULE_6___default().Children.toArray(props.children));
|
|
11199
11183
|
}
|
|
11184
|
+
//# sourceMappingURL=helpers.js.map
|
|
11200
11185
|
|
|
11201
11186
|
/***/ }),
|
|
11202
11187
|
|
|
@@ -11264,7 +11249,7 @@ var useAnimationState = function () {
|
|
|
11264
11249
|
}, [_setState]); // This is a copy of Wrapper.getAnimationProps
|
|
11265
11250
|
|
|
11266
11251
|
var getAnimationProps = react__WEBPACK_IMPORTED_MODULE_2___default().useCallback(function (props, child, index) {
|
|
11267
|
-
if (!props.animate) {
|
|
11252
|
+
if (!(props !== null && props !== void 0 && props.animate)) {
|
|
11268
11253
|
return child.props.animate;
|
|
11269
11254
|
}
|
|
11270
11255
|
|
|
@@ -11297,7 +11282,7 @@ var useAnimationState = function () {
|
|
|
11297
11282
|
}, [state, setState]); // This is a copy of Wrapper.setAnimationState
|
|
11298
11283
|
|
|
11299
11284
|
var setAnimationState = react__WEBPACK_IMPORTED_MODULE_2___default().useCallback(function (props, nextProps) {
|
|
11300
|
-
if (!props.animate) {
|
|
11285
|
+
if (!props || !props.animate) {
|
|
11301
11286
|
return;
|
|
11302
11287
|
}
|
|
11303
11288
|
|
|
@@ -11355,6 +11340,7 @@ var useAnimationState = function () {
|
|
|
11355
11340
|
getProps: getProps
|
|
11356
11341
|
};
|
|
11357
11342
|
};
|
|
11343
|
+
//# sourceMappingURL=use-animation-state.js.map
|
|
11358
11344
|
|
|
11359
11345
|
/***/ }),
|
|
11360
11346
|
|
|
@@ -11372,13 +11358,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11372
11358
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
11373
11359
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
11374
11360
|
|
|
11375
|
-
|
|
11361
|
+
function usePreviousProps(props) {
|
|
11376
11362
|
var ref = react__WEBPACK_IMPORTED_MODULE_0___default().useRef();
|
|
11377
11363
|
react__WEBPACK_IMPORTED_MODULE_0___default().useEffect(function () {
|
|
11378
11364
|
ref.current = props;
|
|
11379
11365
|
});
|
|
11380
|
-
return ref.current
|
|
11381
|
-
}
|
|
11366
|
+
return ref.current;
|
|
11367
|
+
}
|
|
11368
|
+
//# sourceMappingURL=use-previous-props.js.map
|
|
11382
11369
|
|
|
11383
11370
|
/***/ }),
|
|
11384
11371
|
|
|
@@ -11422,15 +11409,16 @@ function isMap(x) {
|
|
|
11422
11409
|
return !!(x && x[IMMUTABLE_MAP]);
|
|
11423
11410
|
}
|
|
11424
11411
|
function shallowToJS(x, whitelist) {
|
|
11425
|
-
return isIterable(x) ? x.reduce(function (
|
|
11412
|
+
return isIterable(x) ? x.reduce(function (result, curr, key) {
|
|
11426
11413
|
if (whitelist && whitelist[key]) {
|
|
11427
11414
|
curr = shallowToJS(curr);
|
|
11428
11415
|
}
|
|
11429
11416
|
|
|
11430
|
-
|
|
11431
|
-
return
|
|
11417
|
+
result[key] = curr;
|
|
11418
|
+
return result;
|
|
11432
11419
|
}, isList(x) ? [] : {}) : x;
|
|
11433
11420
|
}
|
|
11421
|
+
//# sourceMappingURL=immutable.js.map
|
|
11434
11422
|
|
|
11435
11423
|
/***/ }),
|
|
11436
11424
|
|
|
@@ -11456,6 +11444,7 @@ function warn(message) {
|
|
|
11456
11444
|
}
|
|
11457
11445
|
}
|
|
11458
11446
|
}
|
|
11447
|
+
//# sourceMappingURL=log.js.map
|
|
11459
11448
|
|
|
11460
11449
|
/***/ }),
|
|
11461
11450
|
|
|
@@ -11483,12 +11472,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11483
11472
|
/* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0__);
|
|
11484
11473
|
/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/find */ "../../../node_modules/lodash/find.js");
|
|
11485
11474
|
/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_find__WEBPACK_IMPORTED_MODULE_1__);
|
|
11486
|
-
/* harmony import */ var
|
|
11487
|
-
/* harmony import */ var
|
|
11488
|
-
/* harmony import */ var
|
|
11489
|
-
/* harmony import */ var
|
|
11490
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
|
|
11491
|
-
|
|
11475
|
+
/* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./log */ "../../victory-core/es/victory-util/log.js");
|
|
11476
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
11477
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
|
|
11478
|
+
/* harmony import */ var _scale__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./scale */ "../../victory-core/es/victory-util/scale.js");
|
|
11492
11479
|
|
|
11493
11480
|
|
|
11494
11481
|
|
|
@@ -11496,6 +11483,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
11496
11483
|
|
|
11497
11484
|
|
|
11498
11485
|
|
|
11486
|
+
|
|
11487
|
+
|
|
11499
11488
|
/**
|
|
11500
11489
|
* Return a new validator based on `validator` but with the option to chain
|
|
11501
11490
|
* `isRequired` onto the validation. This is nearly identical to how React
|
|
@@ -11503,30 +11492,30 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
11503
11492
|
* @param {Function} validator Validation function.
|
|
11504
11493
|
* @returns {Function} Validator with `isRequired` option.
|
|
11505
11494
|
*/
|
|
11506
|
-
|
|
11507
11495
|
var makeChainable = function (validator) {
|
|
11508
|
-
|
|
11509
|
-
|
|
11510
|
-
|
|
11496
|
+
var createChainable = function (isRequired) {
|
|
11497
|
+
return function (props, propName, componentName) {
|
|
11498
|
+
var value = props[propName];
|
|
11511
11499
|
|
|
11512
|
-
|
|
11513
|
-
|
|
11514
|
-
|
|
11515
|
-
|
|
11500
|
+
if (value === undefined || value === null) {
|
|
11501
|
+
if (isRequired) {
|
|
11502
|
+
return new Error("Required `".concat(propName, "` was not specified in `").concat(componentName, "`."));
|
|
11503
|
+
}
|
|
11516
11504
|
|
|
11517
|
-
|
|
11518
|
-
|
|
11505
|
+
return null;
|
|
11506
|
+
}
|
|
11519
11507
|
|
|
11520
|
-
|
|
11521
|
-
|
|
11522
|
-
|
|
11508
|
+
for (var _len = arguments.length, rest = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
|
|
11509
|
+
rest[_key - 3] = arguments[_key];
|
|
11510
|
+
}
|
|
11523
11511
|
|
|
11524
|
-
|
|
11512
|
+
return validator.apply(void 0, [props, propName, componentName].concat(rest));
|
|
11513
|
+
};
|
|
11525
11514
|
};
|
|
11526
11515
|
|
|
11527
|
-
var chainable =
|
|
11528
|
-
|
|
11529
|
-
|
|
11516
|
+
var chainable = Object.assign(createChainable(false), {
|
|
11517
|
+
isRequired: createChainable(true)
|
|
11518
|
+
});
|
|
11530
11519
|
return chainable;
|
|
11531
11520
|
};
|
|
11532
11521
|
|
|
@@ -11556,7 +11545,7 @@ var getConstructor = function (value) {
|
|
|
11556
11545
|
};
|
|
11557
11546
|
/**
|
|
11558
11547
|
* Get the name of the constructor used to create `value`, using
|
|
11559
|
-
* `Object.
|
|
11548
|
+
* `Object.prototype.toString`. If the value is null or undefined, return
|
|
11560
11549
|
* "null" or "undefined", respectively.
|
|
11561
11550
|
* @param {*} value Instance to return the constructor name of.
|
|
11562
11551
|
* @returns {String} Name of the constructor.
|
|
@@ -11586,10 +11575,11 @@ function deprecated(propType, explanation) {
|
|
|
11586
11575
|
var value = props[propName];
|
|
11587
11576
|
|
|
11588
11577
|
if (value !== null && value !== undefined) {
|
|
11589
|
-
|
|
11578
|
+
_log__WEBPACK_IMPORTED_MODULE_2__.warn("\"".concat(propName, "\" property of \"").concat(componentName, "\" has been deprecated ").concat(explanation));
|
|
11590
11579
|
}
|
|
11591
11580
|
|
|
11592
|
-
|
|
11581
|
+
prop_types__WEBPACK_IMPORTED_MODULE_3___default().checkPropTypes(_defineProperty({}, propName, propType), props, propName, componentName);
|
|
11582
|
+
return null;
|
|
11593
11583
|
};
|
|
11594
11584
|
}
|
|
11595
11585
|
/**
|
|
@@ -11608,7 +11598,7 @@ function allOfType(validators) {
|
|
|
11608
11598
|
|
|
11609
11599
|
return validators.reduce(function (result, validator) {
|
|
11610
11600
|
return result || validator.apply(void 0, [props, propName, componentName].concat(rest));
|
|
11611
|
-
},
|
|
11601
|
+
}, null);
|
|
11612
11602
|
});
|
|
11613
11603
|
}
|
|
11614
11604
|
/**
|
|
@@ -11622,7 +11612,7 @@ var nonNegative = makeChainable(function (props, propName, componentName) {
|
|
|
11622
11612
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a non-negative number."));
|
|
11623
11613
|
}
|
|
11624
11614
|
|
|
11625
|
-
return
|
|
11615
|
+
return null;
|
|
11626
11616
|
});
|
|
11627
11617
|
/**
|
|
11628
11618
|
* Check that the value is an integer.
|
|
@@ -11635,7 +11625,7 @@ var integer = makeChainable(function (props, propName, componentName) {
|
|
|
11635
11625
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an integer."));
|
|
11636
11626
|
}
|
|
11637
11627
|
|
|
11638
|
-
return
|
|
11628
|
+
return null;
|
|
11639
11629
|
});
|
|
11640
11630
|
/**
|
|
11641
11631
|
* Check that the value is greater than zero.
|
|
@@ -11648,7 +11638,7 @@ var greaterThanZero = makeChainable(function (props, propName, componentName) {
|
|
|
11648
11638
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a number greater than zero."));
|
|
11649
11639
|
}
|
|
11650
11640
|
|
|
11651
|
-
return
|
|
11641
|
+
return null;
|
|
11652
11642
|
});
|
|
11653
11643
|
/**
|
|
11654
11644
|
* Check that the value is an Array of two unique values.
|
|
@@ -11661,32 +11651,20 @@ var domain = makeChainable(function (props, propName, componentName) {
|
|
|
11661
11651
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an array of two unique numeric values."));
|
|
11662
11652
|
}
|
|
11663
11653
|
|
|
11664
|
-
return
|
|
11654
|
+
return null;
|
|
11665
11655
|
});
|
|
11666
11656
|
/**
|
|
11667
11657
|
* Check that the value looks like a d3 `scale` function.
|
|
11668
11658
|
*/
|
|
11669
11659
|
|
|
11670
11660
|
var scale = makeChainable(function (props, propName, componentName) {
|
|
11671
|
-
var supportedScaleStrings = ["linear", "time", "log", "sqrt"];
|
|
11672
|
-
|
|
11673
|
-
var validScale = function (scl) {
|
|
11674
|
-
if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(scl)) {
|
|
11675
|
-
return lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(scl.copy) && lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(scl.domain) && lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(scl.range);
|
|
11676
|
-
} else if (typeof scl === "string") {
|
|
11677
|
-
return supportedScaleStrings.indexOf(scl) !== -1;
|
|
11678
|
-
}
|
|
11679
|
-
|
|
11680
|
-
return false;
|
|
11681
|
-
};
|
|
11682
|
-
|
|
11683
11661
|
var value = props[propName];
|
|
11684
11662
|
|
|
11685
|
-
if (!validScale(value)) {
|
|
11663
|
+
if (!_scale__WEBPACK_IMPORTED_MODULE_4__.validScale(value)) {
|
|
11686
11664
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a d3 scale."));
|
|
11687
11665
|
}
|
|
11688
11666
|
|
|
11689
|
-
return
|
|
11667
|
+
return null;
|
|
11690
11668
|
});
|
|
11691
11669
|
/**
|
|
11692
11670
|
* Check that an array contains items of the same type.
|
|
@@ -11700,7 +11678,7 @@ var homogeneousArray = makeChainable(function (props, propName, componentName) {
|
|
|
11700
11678
|
}
|
|
11701
11679
|
|
|
11702
11680
|
if (values.length < 2) {
|
|
11703
|
-
return
|
|
11681
|
+
return null;
|
|
11704
11682
|
}
|
|
11705
11683
|
|
|
11706
11684
|
var comparisonConstructor = getConstructor(values[0]);
|
|
@@ -11715,7 +11693,7 @@ var homogeneousArray = makeChainable(function (props, propName, componentName) {
|
|
|
11715
11693
|
return new Error("Expected `".concat(propName, "` in `").concat(componentName, "` to be a ") + "homogeneous array, but found types `".concat(constructorName, "` and ") + "`".concat(otherConstructorName, "`."));
|
|
11716
11694
|
}
|
|
11717
11695
|
|
|
11718
|
-
return
|
|
11696
|
+
return null;
|
|
11719
11697
|
});
|
|
11720
11698
|
/**
|
|
11721
11699
|
* Check that array prop length matches props.data.length
|
|
@@ -11726,7 +11704,7 @@ var matchDataLength = makeChainable(function (props, propName) {
|
|
|
11726
11704
|
return new Error("Length of data and ".concat(propName, " arrays must match."));
|
|
11727
11705
|
}
|
|
11728
11706
|
|
|
11729
|
-
return
|
|
11707
|
+
return null;
|
|
11730
11708
|
});
|
|
11731
11709
|
/**
|
|
11732
11710
|
* Check that the value is a regular expression
|
|
@@ -11737,8 +11715,9 @@ var regExp = makeChainable(function (props, propName, componentName) {
|
|
|
11737
11715
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a regular expression."));
|
|
11738
11716
|
}
|
|
11739
11717
|
|
|
11740
|
-
return
|
|
11718
|
+
return null;
|
|
11741
11719
|
});
|
|
11720
|
+
//# sourceMappingURL=prop-types.js.map
|
|
11742
11721
|
|
|
11743
11722
|
/***/ }),
|
|
11744
11723
|
|
|
@@ -11756,7 +11735,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11756
11735
|
/* harmony export */ "getScaleFromName": () => (/* binding */ getScaleFromName),
|
|
11757
11736
|
/* harmony export */ "getScaleFromProps": () => (/* binding */ getScaleFromProps),
|
|
11758
11737
|
/* harmony export */ "getScaleType": () => (/* binding */ getScaleType),
|
|
11759
|
-
/* harmony export */ "getType": () => (/* binding */ getType)
|
|
11738
|
+
/* harmony export */ "getType": () => (/* binding */ getType),
|
|
11739
|
+
/* harmony export */ "validScale": () => (/* binding */ validScale)
|
|
11760
11740
|
/* harmony export */ });
|
|
11761
11741
|
/* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isPlainObject */ "../../../node_modules/lodash/isPlainObject.js");
|
|
11762
11742
|
/* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -11774,8 +11754,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11774
11754
|
|
|
11775
11755
|
|
|
11776
11756
|
|
|
11777
|
-
var supportedScaleStrings = ["linear", "time", "log", "sqrt"];
|
|
11757
|
+
var supportedScaleStrings = ["linear", "time", "log", "sqrt"];
|
|
11778
11758
|
|
|
11759
|
+
// Private Functions
|
|
11779
11760
|
function toNewName(scale) {
|
|
11780
11761
|
// d3 scale changed the naming scheme for scale from "linear" -> "scaleLinear" etc.
|
|
11781
11762
|
var capitalize = function (s) {
|
|
@@ -11845,7 +11826,13 @@ function getScaleTypeFromData(props, axis) {
|
|
|
11845
11826
|
|
|
11846
11827
|
|
|
11847
11828
|
function getScaleFromName(name) {
|
|
11848
|
-
|
|
11829
|
+
if (validScale(name)) {
|
|
11830
|
+
var methodName = toNewName(name); // @ts-expect-error scaleTime is not directly compatible with our D3Scale definition
|
|
11831
|
+
|
|
11832
|
+
return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_5__[methodName]();
|
|
11833
|
+
}
|
|
11834
|
+
|
|
11835
|
+
return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_6__["default"]();
|
|
11849
11836
|
}
|
|
11850
11837
|
function getBaseScale(props, axis) {
|
|
11851
11838
|
var scale = getScaleFromProps(props, axis);
|
|
@@ -11855,7 +11842,7 @@ function getBaseScale(props, axis) {
|
|
|
11855
11842
|
}
|
|
11856
11843
|
|
|
11857
11844
|
var defaultScale = getScaleFromDomain(props, axis) || getScaleTypeFromData(props, axis);
|
|
11858
|
-
return
|
|
11845
|
+
return getScaleFromName(defaultScale);
|
|
11859
11846
|
}
|
|
11860
11847
|
function getDefaultScale() {
|
|
11861
11848
|
return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_6__["default"]();
|
|
@@ -11868,7 +11855,7 @@ function getScaleFromProps(props, axis) {
|
|
|
11868
11855
|
var scale = props.scale[axis] || props.scale;
|
|
11869
11856
|
|
|
11870
11857
|
if (validScale(scale)) {
|
|
11871
|
-
return lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(scale) ? scale :
|
|
11858
|
+
return lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(scale) ? scale : getScaleFromName(scale);
|
|
11872
11859
|
}
|
|
11873
11860
|
|
|
11874
11861
|
return undefined;
|
|
@@ -11903,6 +11890,7 @@ function getType(scale) {
|
|
|
11903
11890
|
})[0];
|
|
11904
11891
|
return scaleType ? scaleType.name : undefined;
|
|
11905
11892
|
}
|
|
11893
|
+
//# sourceMappingURL=scale.js.map
|
|
11906
11894
|
|
|
11907
11895
|
/***/ }),
|
|
11908
11896
|
|
|
@@ -11974,6 +11962,7 @@ function getColorScale(name) {
|
|
|
11974
11962
|
};
|
|
11975
11963
|
return name ? scales[name] : scales.grayscale;
|
|
11976
11964
|
}
|
|
11965
|
+
//# sourceMappingURL=style.js.map
|
|
11977
11966
|
|
|
11978
11967
|
/***/ }),
|
|
11979
11968
|
|
|
@@ -12004,6 +11993,7 @@ var TimerContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cre
|
|
|
12004
11993
|
});
|
|
12005
11994
|
TimerContext.displayName = "TimerContext";
|
|
12006
11995
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TimerContext);
|
|
11996
|
+
//# sourceMappingURL=timer-context.js.map
|
|
12007
11997
|
|
|
12008
11998
|
/***/ }),
|
|
12009
11999
|
|
|
@@ -12106,6 +12096,7 @@ var Timer = /*#__PURE__*/function () {
|
|
|
12106
12096
|
}();
|
|
12107
12097
|
|
|
12108
12098
|
|
|
12099
|
+
//# sourceMappingURL=timer.js.map
|
|
12109
12100
|
|
|
12110
12101
|
/***/ }),
|
|
12111
12102
|
|
|
@@ -12196,7 +12187,7 @@ function getChildData(child) {
|
|
|
12196
12187
|
}
|
|
12197
12188
|
/**
|
|
12198
12189
|
* If a parent component has animation enabled, calculate the transitions
|
|
12199
|
-
* for any data of any child component that supports data transitions
|
|
12190
|
+
* for any data of any child component that supports data transitions.
|
|
12200
12191
|
* Data transitions are defined as any two datasets where data nodes exist
|
|
12201
12192
|
* in the first set and not the second, in the second and not the first,
|
|
12202
12193
|
* or both.
|
|
@@ -12325,7 +12316,7 @@ function getChildPropsOnExit(animate, child, data, exitingNodes, cb) {
|
|
|
12325
12316
|
|
|
12326
12317
|
if (exitingNodes) {
|
|
12327
12318
|
// After the exit transition occurs, trigger the animations for
|
|
12328
|
-
// nodes that are neither exiting
|
|
12319
|
+
// nodes that are neither exiting nor entering.
|
|
12329
12320
|
animate.onEnd = cb;
|
|
12330
12321
|
var before = animate.onExit && animate.onExit.before ? animate.onExit.before : (lodash_identity__WEBPACK_IMPORTED_MODULE_1___default()); // If nodes need to exit, transform them with the provided onExit.before function.
|
|
12331
12322
|
|
|
@@ -12395,7 +12386,7 @@ function getChildPropsOnEnter(animate, data, enteringNodes, cb) {
|
|
|
12395
12386
|
* and its index in the parent's children array.
|
|
12396
12387
|
*
|
|
12397
12388
|
* In particular, this will include an `animate` object that is set appropriately
|
|
12398
|
-
* so that each child will be
|
|
12389
|
+
* so that each child will be synchronized for each stage of a transition
|
|
12399
12390
|
* animation. It will also include a transformed `data` object, where each datum
|
|
12400
12391
|
* is transformed by `animate.onExit` and `animate.onEnter` `before` and `after`
|
|
12401
12392
|
* functions.
|
|
@@ -12540,6 +12531,7 @@ function getTransitionPropsFactory(props, state, setState) {
|
|
|
12540
12531
|
};
|
|
12541
12532
|
};
|
|
12542
12533
|
}
|
|
12534
|
+
//# sourceMappingURL=transitions.js.map
|
|
12543
12535
|
|
|
12544
12536
|
/***/ }),
|
|
12545
12537
|
|
|
@@ -12578,7 +12570,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
12578
12570
|
|
|
12579
12571
|
/*
|
|
12580
12572
|
USER_PROPS_SAFELIST is to contain any string deemed safe for user props.
|
|
12581
|
-
The startsWidth array will contain the start of any accepted user-prop that
|
|
12573
|
+
The startsWidth array will contain the start of any accepted user-prop that
|
|
12582
12574
|
starts with these characters.
|
|
12583
12575
|
The exactMatch will contain a list of exact prop names that are accepted.
|
|
12584
12576
|
*/
|
|
@@ -12587,6 +12579,7 @@ var USER_PROPS_SAFELIST = {
|
|
|
12587
12579
|
startsWith: ["data-", "aria-"],
|
|
12588
12580
|
exactMatch: []
|
|
12589
12581
|
};
|
|
12582
|
+
|
|
12590
12583
|
/**
|
|
12591
12584
|
* doesPropStartWith: Function that takes a prop's key and runs it against all
|
|
12592
12585
|
* options in the USER_PROPS_SAFELIST and checks to see if it starts with any
|
|
@@ -12595,7 +12588,6 @@ var USER_PROPS_SAFELIST = {
|
|
|
12595
12588
|
* @returns {Boolean}: returns true if the key starts with an option or false if
|
|
12596
12589
|
* otherwise
|
|
12597
12590
|
*/
|
|
12598
|
-
|
|
12599
12591
|
var doesPropStartWith = function (key) {
|
|
12600
12592
|
var startsWith = false;
|
|
12601
12593
|
USER_PROPS_SAFELIST.startsWith.forEach(function (starterString) {
|
|
@@ -12672,14 +12664,15 @@ var getSafeUserProps = function (props) {
|
|
|
12672
12664
|
/**
|
|
12673
12665
|
* Wraps a component and adds safe user props
|
|
12674
12666
|
*
|
|
12675
|
-
* @param {
|
|
12667
|
+
* @param {ReactElement} component: parent component
|
|
12676
12668
|
* @param {Object} props: props to be filtered
|
|
12677
|
-
* @returns {
|
|
12669
|
+
* @returns {ReactElement} modified component
|
|
12678
12670
|
*/
|
|
12679
12671
|
|
|
12680
12672
|
var withSafeUserProps = function (component, props) {
|
|
12681
12673
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(component, getSafeUserProps(props));
|
|
12682
12674
|
};
|
|
12675
|
+
//# sourceMappingURL=user-props.js.map
|
|
12683
12676
|
|
|
12684
12677
|
/***/ }),
|
|
12685
12678
|
|
|
@@ -12892,7 +12885,7 @@ function getData(props, childComponents) {
|
|
|
12892
12885
|
}
|
|
12893
12886
|
|
|
12894
12887
|
childComponents = childComponents || react__WEBPACK_IMPORTED_MODULE_9___default().Children.toArray(props.children);
|
|
12895
|
-
return getDataFromChildren(childComponents);
|
|
12888
|
+
return getDataFromChildren(props, childComponents);
|
|
12896
12889
|
}
|
|
12897
12890
|
function getWidth(props, groupLength, seriesLength) {
|
|
12898
12891
|
var datasets = props.datasets,
|
|
@@ -12954,7 +12947,7 @@ function getDefaultDomainPadding(props, axis, childComponents) {
|
|
|
12954
12947
|
function getDomainFromChildren(props, axis, childComponents) {
|
|
12955
12948
|
// eslint-disable-line max-statements, complexity, max-len
|
|
12956
12949
|
var children = childComponents ? childComponents.slice(0) : react__WEBPACK_IMPORTED_MODULE_9___default().Children.toArray(props.children);
|
|
12957
|
-
var parentData = props.data ? _data__WEBPACK_IMPORTED_MODULE_12__.getData(props
|
|
12950
|
+
var parentData = props.data ? _data__WEBPACK_IMPORTED_MODULE_12__.getData(props) : undefined;
|
|
12958
12951
|
var polar = props.polar,
|
|
12959
12952
|
startAngle = props.startAngle,
|
|
12960
12953
|
endAngle = props.endAngle,
|
|
@@ -13188,6 +13181,7 @@ function getCategories(props, childComponents, allStrings) {
|
|
|
13188
13181
|
y: yCategories.length > 0 ? yCategories : undefined
|
|
13189
13182
|
};
|
|
13190
13183
|
}
|
|
13184
|
+
//# sourceMappingURL=wrapper.js.map
|
|
13191
13185
|
|
|
13192
13186
|
/***/ }),
|
|
13193
13187
|
|
|
@@ -13593,6 +13587,7 @@ VictorySharedEvents.defaultProps = {
|
|
|
13593
13587
|
};
|
|
13594
13588
|
VictorySharedEvents.contextType = victory_core__WEBPACK_IMPORTED_MODULE_14__["default"];
|
|
13595
13589
|
|
|
13590
|
+
//# sourceMappingURL=victory-shared-events.js.map
|
|
13596
13591
|
|
|
13597
13592
|
/***/ }),
|
|
13598
13593
|
|