victory-polar-axis 31.1.0 → 31.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/victory-polar-axis.js +431 -300
- package/dist/victory-polar-axis.min.js +1 -1
- package/es/helper-methods.js +5 -6
- package/es/victory-polar-axis.js +20 -2
- package/lib/helper-methods.js +7 -6
- package/lib/victory-polar-axis.js +20 -2
- package/package.json +2 -2
- package/src/helper-methods.js +5 -4
- package/src/victory-polar-axis.js +13 -2
|
@@ -506,9 +506,7 @@ function reduceChildren(children, iteratee) {
|
|
|
506
506
|
} else {
|
|
507
507
|
var result = iteratee(child, childName, parent);
|
|
508
508
|
|
|
509
|
-
if (
|
|
510
|
-
memo = result.reduce(combine, memo);
|
|
511
|
-
} else if (result) {
|
|
509
|
+
if (result) {
|
|
512
510
|
memo = combine(memo, result);
|
|
513
511
|
}
|
|
514
512
|
}
|
|
@@ -661,7 +659,7 @@ function newInterval(floori, offseti, count, field) {
|
|
|
661
659
|
/***/ (function(module, exports, __webpack_require__) {
|
|
662
660
|
|
|
663
661
|
var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ 86),
|
|
664
|
-
isObject = __webpack_require__(/*! ./isObject */
|
|
662
|
+
isObject = __webpack_require__(/*! ./isObject */ 11);
|
|
665
663
|
|
|
666
664
|
/** `Object#toString` result references. */
|
|
667
665
|
var asyncTag = '[object AsyncFunction]',
|
|
@@ -813,6 +811,115 @@ module.exports = defaults;
|
|
|
813
811
|
|
|
814
812
|
/***/ }),
|
|
815
813
|
/* 8 */
|
|
814
|
+
/*!************************************************************************************!*\
|
|
815
|
+
!*** /Users/boygirl/formidable/v/victory/node_modules/react-fast-compare/index.js ***!
|
|
816
|
+
\************************************************************************************/
|
|
817
|
+
/*! dynamic exports provided */
|
|
818
|
+
/*! exports used: default */
|
|
819
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
820
|
+
|
|
821
|
+
"use strict";
|
|
822
|
+
|
|
823
|
+
|
|
824
|
+
var isArray = Array.isArray;
|
|
825
|
+
var keyList = Object.keys;
|
|
826
|
+
var hasProp = Object.prototype.hasOwnProperty;
|
|
827
|
+
var hasElementType = typeof Element !== 'undefined';
|
|
828
|
+
|
|
829
|
+
function equal(a, b) {
|
|
830
|
+
// fast-deep-equal index.js 2.0.1
|
|
831
|
+
if (a === b) return true;
|
|
832
|
+
|
|
833
|
+
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
834
|
+
var arrA = isArray(a)
|
|
835
|
+
, arrB = isArray(b)
|
|
836
|
+
, i
|
|
837
|
+
, length
|
|
838
|
+
, key;
|
|
839
|
+
|
|
840
|
+
if (arrA && arrB) {
|
|
841
|
+
length = a.length;
|
|
842
|
+
if (length != b.length) return false;
|
|
843
|
+
for (i = length; i-- !== 0;)
|
|
844
|
+
if (!equal(a[i], b[i])) return false;
|
|
845
|
+
return true;
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
if (arrA != arrB) return false;
|
|
849
|
+
|
|
850
|
+
var dateA = a instanceof Date
|
|
851
|
+
, dateB = b instanceof Date;
|
|
852
|
+
if (dateA != dateB) return false;
|
|
853
|
+
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
854
|
+
|
|
855
|
+
var regexpA = a instanceof RegExp
|
|
856
|
+
, regexpB = b instanceof RegExp;
|
|
857
|
+
if (regexpA != regexpB) return false;
|
|
858
|
+
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
859
|
+
|
|
860
|
+
var keys = keyList(a);
|
|
861
|
+
length = keys.length;
|
|
862
|
+
|
|
863
|
+
if (length !== keyList(b).length)
|
|
864
|
+
return false;
|
|
865
|
+
|
|
866
|
+
for (i = length; i-- !== 0;)
|
|
867
|
+
if (!hasProp.call(b, keys[i])) return false;
|
|
868
|
+
// end fast-deep-equal
|
|
869
|
+
|
|
870
|
+
// start react-fast-compare
|
|
871
|
+
// custom handling for DOM elements
|
|
872
|
+
if (hasElementType && a instanceof Element && b instanceof Element)
|
|
873
|
+
return a === b;
|
|
874
|
+
|
|
875
|
+
// custom handling for React
|
|
876
|
+
for (i = length; i-- !== 0;) {
|
|
877
|
+
key = keys[i];
|
|
878
|
+
if (key === '_owner' && a.$$typeof) {
|
|
879
|
+
// React-specific: avoid traversing React elements' _owner.
|
|
880
|
+
// _owner contains circular references
|
|
881
|
+
// and is not needed when comparing the actual elements (and not their owners)
|
|
882
|
+
// .$$typeof and ._store on just reasonable markers of a react element
|
|
883
|
+
continue;
|
|
884
|
+
} else {
|
|
885
|
+
// all other properties should be traversed as usual
|
|
886
|
+
if (!equal(a[key], b[key])) {
|
|
887
|
+
// console.log(key)
|
|
888
|
+
return false
|
|
889
|
+
};
|
|
890
|
+
}
|
|
891
|
+
}
|
|
892
|
+
// end react-fast-compare
|
|
893
|
+
|
|
894
|
+
// fast-deep-equal index.js 2.0.1
|
|
895
|
+
return true;
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
return a !== a && b !== b;
|
|
899
|
+
}
|
|
900
|
+
// end fast-deep-equal
|
|
901
|
+
|
|
902
|
+
module.exports = function exportedEqual(a, b) {
|
|
903
|
+
try {
|
|
904
|
+
return equal(a, b);
|
|
905
|
+
} catch (error) {
|
|
906
|
+
if ((error.message && error.message.match(/stack|recursion/i)) || (error.number === -2146828260)) {
|
|
907
|
+
// warn on circular references, don't crash
|
|
908
|
+
// browsers give this different errors name and messages:
|
|
909
|
+
// chrome/safari: "RangeError", "Maximum call stack size exceeded"
|
|
910
|
+
// firefox: "InternalError", too much recursion"
|
|
911
|
+
// edge: "Error", "Out of stack space"
|
|
912
|
+
console.warn('Warning: react-fast-compare does not handle circular references.', error.name, error.message);
|
|
913
|
+
return false;
|
|
914
|
+
}
|
|
915
|
+
// some other error. we should definitely know about these
|
|
916
|
+
throw error;
|
|
917
|
+
}
|
|
918
|
+
};
|
|
919
|
+
|
|
920
|
+
|
|
921
|
+
/***/ }),
|
|
922
|
+
/* 9 */
|
|
816
923
|
/*!******************************************************************************!*\
|
|
817
924
|
!*** /Users/boygirl/formidable/v/victory/node_modules/d3-array/src/index.js ***!
|
|
818
925
|
\******************************************************************************/
|
|
@@ -909,7 +1016,7 @@ module.exports = defaults;
|
|
|
909
1016
|
|
|
910
1017
|
|
|
911
1018
|
/***/ }),
|
|
912
|
-
/*
|
|
1019
|
+
/* 10 */
|
|
913
1020
|
/*!********************************************************************************!*\
|
|
914
1021
|
!*** /Users/boygirl/formidable/v/victory/node_modules/d3-time/src/duration.js ***!
|
|
915
1022
|
\********************************************************************************/
|
|
@@ -931,7 +1038,49 @@ var durationWeek = 6048e5;
|
|
|
931
1038
|
|
|
932
1039
|
|
|
933
1040
|
/***/ }),
|
|
934
|
-
/*
|
|
1041
|
+
/* 11 */
|
|
1042
|
+
/*!***************************************************************************!*\
|
|
1043
|
+
!*** /Users/boygirl/formidable/v/victory/node_modules/lodash/isObject.js ***!
|
|
1044
|
+
\***************************************************************************/
|
|
1045
|
+
/*! dynamic exports provided */
|
|
1046
|
+
/*! all exports used */
|
|
1047
|
+
/***/ (function(module, exports) {
|
|
1048
|
+
|
|
1049
|
+
/**
|
|
1050
|
+
* Checks if `value` is the
|
|
1051
|
+
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
|
1052
|
+
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
|
1053
|
+
*
|
|
1054
|
+
* @static
|
|
1055
|
+
* @memberOf _
|
|
1056
|
+
* @since 0.1.0
|
|
1057
|
+
* @category Lang
|
|
1058
|
+
* @param {*} value The value to check.
|
|
1059
|
+
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
|
1060
|
+
* @example
|
|
1061
|
+
*
|
|
1062
|
+
* _.isObject({});
|
|
1063
|
+
* // => true
|
|
1064
|
+
*
|
|
1065
|
+
* _.isObject([1, 2, 3]);
|
|
1066
|
+
* // => true
|
|
1067
|
+
*
|
|
1068
|
+
* _.isObject(_.noop);
|
|
1069
|
+
* // => true
|
|
1070
|
+
*
|
|
1071
|
+
* _.isObject(null);
|
|
1072
|
+
* // => false
|
|
1073
|
+
*/
|
|
1074
|
+
function isObject(value) {
|
|
1075
|
+
var type = typeof value;
|
|
1076
|
+
return value != null && (type == 'object' || type == 'function');
|
|
1077
|
+
}
|
|
1078
|
+
|
|
1079
|
+
module.exports = isObject;
|
|
1080
|
+
|
|
1081
|
+
|
|
1082
|
+
/***/ }),
|
|
1083
|
+
/* 12 */
|
|
935
1084
|
/*!******************************************************************************!*\
|
|
936
1085
|
!*** /Users/boygirl/formidable/v/victory/node_modules/d3-color/src/index.js ***!
|
|
937
1086
|
\******************************************************************************/
|
|
@@ -957,7 +1106,7 @@ var durationWeek = 6048e5;
|
|
|
957
1106
|
|
|
958
1107
|
|
|
959
1108
|
/***/ }),
|
|
960
|
-
/*
|
|
1109
|
+
/* 13 */
|
|
961
1110
|
/*!***********************************************************************************************!*\
|
|
962
1111
|
!*** /Users/boygirl/formidable/v/victory/packages/victory-core/es/victory-util/collection.js ***!
|
|
963
1112
|
\***********************************************************************************************/
|
|
@@ -1044,154 +1193,6 @@ function getMinValue(arr) {
|
|
|
1044
1193
|
removeUndefined: removeUndefined
|
|
1045
1194
|
});
|
|
1046
1195
|
|
|
1047
|
-
/***/ }),
|
|
1048
|
-
/* 12 */
|
|
1049
|
-
/*!***************************************************************************!*\
|
|
1050
|
-
!*** /Users/boygirl/formidable/v/victory/node_modules/lodash/isObject.js ***!
|
|
1051
|
-
\***************************************************************************/
|
|
1052
|
-
/*! dynamic exports provided */
|
|
1053
|
-
/*! all exports used */
|
|
1054
|
-
/***/ (function(module, exports) {
|
|
1055
|
-
|
|
1056
|
-
/**
|
|
1057
|
-
* Checks if `value` is the
|
|
1058
|
-
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
|
1059
|
-
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
|
1060
|
-
*
|
|
1061
|
-
* @static
|
|
1062
|
-
* @memberOf _
|
|
1063
|
-
* @since 0.1.0
|
|
1064
|
-
* @category Lang
|
|
1065
|
-
* @param {*} value The value to check.
|
|
1066
|
-
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
|
1067
|
-
* @example
|
|
1068
|
-
*
|
|
1069
|
-
* _.isObject({});
|
|
1070
|
-
* // => true
|
|
1071
|
-
*
|
|
1072
|
-
* _.isObject([1, 2, 3]);
|
|
1073
|
-
* // => true
|
|
1074
|
-
*
|
|
1075
|
-
* _.isObject(_.noop);
|
|
1076
|
-
* // => true
|
|
1077
|
-
*
|
|
1078
|
-
* _.isObject(null);
|
|
1079
|
-
* // => false
|
|
1080
|
-
*/
|
|
1081
|
-
function isObject(value) {
|
|
1082
|
-
var type = typeof value;
|
|
1083
|
-
return value != null && (type == 'object' || type == 'function');
|
|
1084
|
-
}
|
|
1085
|
-
|
|
1086
|
-
module.exports = isObject;
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
/***/ }),
|
|
1090
|
-
/* 13 */
|
|
1091
|
-
/*!************************************************************************************!*\
|
|
1092
|
-
!*** /Users/boygirl/formidable/v/victory/node_modules/react-fast-compare/index.js ***!
|
|
1093
|
-
\************************************************************************************/
|
|
1094
|
-
/*! dynamic exports provided */
|
|
1095
|
-
/*! exports used: default */
|
|
1096
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1097
|
-
|
|
1098
|
-
"use strict";
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
var isArray = Array.isArray;
|
|
1102
|
-
var keyList = Object.keys;
|
|
1103
|
-
var hasProp = Object.prototype.hasOwnProperty;
|
|
1104
|
-
var hasElementType = typeof Element !== 'undefined';
|
|
1105
|
-
|
|
1106
|
-
function equal(a, b) {
|
|
1107
|
-
// fast-deep-equal index.js 2.0.1
|
|
1108
|
-
if (a === b) return true;
|
|
1109
|
-
|
|
1110
|
-
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
1111
|
-
var arrA = isArray(a)
|
|
1112
|
-
, arrB = isArray(b)
|
|
1113
|
-
, i
|
|
1114
|
-
, length
|
|
1115
|
-
, key;
|
|
1116
|
-
|
|
1117
|
-
if (arrA && arrB) {
|
|
1118
|
-
length = a.length;
|
|
1119
|
-
if (length != b.length) return false;
|
|
1120
|
-
for (i = length; i-- !== 0;)
|
|
1121
|
-
if (!equal(a[i], b[i])) return false;
|
|
1122
|
-
return true;
|
|
1123
|
-
}
|
|
1124
|
-
|
|
1125
|
-
if (arrA != arrB) return false;
|
|
1126
|
-
|
|
1127
|
-
var dateA = a instanceof Date
|
|
1128
|
-
, dateB = b instanceof Date;
|
|
1129
|
-
if (dateA != dateB) return false;
|
|
1130
|
-
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
1131
|
-
|
|
1132
|
-
var regexpA = a instanceof RegExp
|
|
1133
|
-
, regexpB = b instanceof RegExp;
|
|
1134
|
-
if (regexpA != regexpB) return false;
|
|
1135
|
-
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
1136
|
-
|
|
1137
|
-
var keys = keyList(a);
|
|
1138
|
-
length = keys.length;
|
|
1139
|
-
|
|
1140
|
-
if (length !== keyList(b).length)
|
|
1141
|
-
return false;
|
|
1142
|
-
|
|
1143
|
-
for (i = length; i-- !== 0;)
|
|
1144
|
-
if (!hasProp.call(b, keys[i])) return false;
|
|
1145
|
-
// end fast-deep-equal
|
|
1146
|
-
|
|
1147
|
-
// start react-fast-compare
|
|
1148
|
-
// custom handling for DOM elements
|
|
1149
|
-
if (hasElementType && a instanceof Element && b instanceof Element)
|
|
1150
|
-
return a === b;
|
|
1151
|
-
|
|
1152
|
-
// custom handling for React
|
|
1153
|
-
for (i = length; i-- !== 0;) {
|
|
1154
|
-
key = keys[i];
|
|
1155
|
-
if (key === '_owner' && a.$$typeof) {
|
|
1156
|
-
// React-specific: avoid traversing React elements' _owner.
|
|
1157
|
-
// _owner contains circular references
|
|
1158
|
-
// and is not needed when comparing the actual elements (and not their owners)
|
|
1159
|
-
// .$$typeof and ._store on just reasonable markers of a react element
|
|
1160
|
-
continue;
|
|
1161
|
-
} else {
|
|
1162
|
-
// all other properties should be traversed as usual
|
|
1163
|
-
if (!equal(a[key], b[key])) return false;
|
|
1164
|
-
}
|
|
1165
|
-
}
|
|
1166
|
-
// end react-fast-compare
|
|
1167
|
-
|
|
1168
|
-
// fast-deep-equal index.js 2.0.1
|
|
1169
|
-
return true;
|
|
1170
|
-
}
|
|
1171
|
-
|
|
1172
|
-
return a !== a && b !== b;
|
|
1173
|
-
}
|
|
1174
|
-
// end fast-deep-equal
|
|
1175
|
-
|
|
1176
|
-
module.exports = function exportedEqual(a, b) {
|
|
1177
|
-
try {
|
|
1178
|
-
return equal(a, b);
|
|
1179
|
-
} catch (error) {
|
|
1180
|
-
if ((error.message && error.message.match(/stack|recursion/i)) || (error.number === -2146828260)) {
|
|
1181
|
-
// warn on circular references, don't crash
|
|
1182
|
-
// browsers give this different errors name and messages:
|
|
1183
|
-
// chrome/safari: "RangeError", "Maximum call stack size exceeded"
|
|
1184
|
-
// firefox: "InternalError", too much recursion"
|
|
1185
|
-
// edge: "Error", "Out of stack space"
|
|
1186
|
-
console.warn('Warning: react-fast-compare does not handle circular references.', error.name, error.message);
|
|
1187
|
-
return false;
|
|
1188
|
-
}
|
|
1189
|
-
// some other error. we should definitely know about these
|
|
1190
|
-
throw error;
|
|
1191
|
-
}
|
|
1192
|
-
};
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
1196
|
/***/ }),
|
|
1196
1197
|
/* 14 */
|
|
1197
1198
|
/*!******************************************************************************!*\
|
|
@@ -1946,7 +1947,7 @@ module.exports = arrayIncludes;
|
|
|
1946
1947
|
"use strict";
|
|
1947
1948
|
/* harmony export (immutable) */ __webpack_exports__["b"] = linearish;
|
|
1948
1949
|
/* harmony export (immutable) */ __webpack_exports__["a"] = linear;
|
|
1949
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */
|
|
1950
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 9);
|
|
1950
1951
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_d3_interpolate__ = __webpack_require__(/*! d3-interpolate */ 18);
|
|
1951
1952
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__continuous__ = __webpack_require__(/*! ./continuous */ 42);
|
|
1952
1953
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__tickFormat__ = __webpack_require__(/*! ./tickFormat */ 285);
|
|
@@ -2779,7 +2780,7 @@ module.exports = uniq;
|
|
|
2779
2780
|
/* harmony export (immutable) */ __webpack_exports__["c"] = deinterpolateLinear;
|
|
2780
2781
|
/* harmony export (immutable) */ __webpack_exports__["a"] = copy;
|
|
2781
2782
|
/* harmony export (immutable) */ __webpack_exports__["b"] = continuous;
|
|
2782
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */
|
|
2783
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 9);
|
|
2783
2784
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_d3_interpolate__ = __webpack_require__(/*! d3-interpolate */ 18);
|
|
2784
2785
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__array__ = __webpack_require__(/*! ./array */ 14);
|
|
2785
2786
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__constant__ = __webpack_require__(/*! ./constant */ 79);
|
|
@@ -3484,7 +3485,7 @@ module.exports = property;
|
|
|
3484
3485
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3485
3486
|
|
|
3486
3487
|
"use strict";
|
|
3487
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(/*! d3-color */
|
|
3488
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(/*! d3-color */ 12);
|
|
3488
3489
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__rgb__ = __webpack_require__(/*! ./rgb */ 103);
|
|
3489
3490
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__array__ = __webpack_require__(/*! ./array */ 106);
|
|
3490
3491
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__date__ = __webpack_require__(/*! ./date */ 107);
|
|
@@ -4682,7 +4683,7 @@ function getTransitionPropsFactory(props, state, setState) {
|
|
|
4682
4683
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
|
|
4683
4684
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(/*! prop-types */ 1);
|
|
4684
4685
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
|
|
4685
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */
|
|
4686
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */ 8);
|
|
4686
4687
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react_fast_compare__);
|
|
4687
4688
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4688
4689
|
|
|
@@ -4793,7 +4794,7 @@ Object.defineProperty(Rect, "propTypes", {
|
|
|
4793
4794
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
|
|
4794
4795
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(/*! prop-types */ 1);
|
|
4795
4796
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
|
|
4796
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */
|
|
4797
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */ 8);
|
|
4797
4798
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react_fast_compare__);
|
|
4798
4799
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4799
4800
|
|
|
@@ -4888,7 +4889,7 @@ Object.defineProperty(Path, "propTypes", {
|
|
|
4888
4889
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
|
|
4889
4890
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(/*! prop-types */ 1);
|
|
4890
4891
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
|
|
4891
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */
|
|
4892
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */ 8);
|
|
4892
4893
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react_fast_compare__);
|
|
4893
4894
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4894
4895
|
|
|
@@ -5566,7 +5567,7 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
|
5566
5567
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_react__ = __webpack_require__(/*! react */ 0);
|
|
5567
5568
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_11_react__);
|
|
5568
5569
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__helpers__ = __webpack_require__(/*! ./helpers */ 3);
|
|
5569
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__collection__ = __webpack_require__(/*! ./collection */
|
|
5570
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__collection__ = __webpack_require__(/*! ./collection */ 13);
|
|
5570
5571
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__scale__ = __webpack_require__(/*! ./scale */ 76);
|
|
5571
5572
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__immutable__ = __webpack_require__(/*! ./immutable */ 146);
|
|
5572
5573
|
|
|
@@ -5909,8 +5910,13 @@ function getStringsFromData(props, axis) {
|
|
|
5909
5910
|
}
|
|
5910
5911
|
|
|
5911
5912
|
var key = props[axis] === undefined ? axis : props[axis];
|
|
5912
|
-
var accessor = __WEBPACK_IMPORTED_MODULE_12__helpers__["a" /* default */].createAccessor(key);
|
|
5913
|
-
|
|
5913
|
+
var accessor = __WEBPACK_IMPORTED_MODULE_12__helpers__["a" /* default */].createAccessor(key); // support immutable data
|
|
5914
|
+
|
|
5915
|
+
var data = props.data.reduce(function (memo, d) {
|
|
5916
|
+
memo.push(parseDatum(d));
|
|
5917
|
+
return memo;
|
|
5918
|
+
}, []);
|
|
5919
|
+
var sortedData = sortData(data, props.sortKey, props.sortOrder);
|
|
5914
5920
|
var dataStrings = sortedData.reduce(function (dataArr, datum) {
|
|
5915
5921
|
datum = parseDatum(datum);
|
|
5916
5922
|
dataArr.push(accessor(datum));
|
|
@@ -5978,7 +5984,7 @@ function isDataComponent(component) {
|
|
|
5978
5984
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_includes__ = __webpack_require__(/*! lodash/includes */ 25);
|
|
5979
5985
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_includes___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_lodash_includes__);
|
|
5980
5986
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__helpers__ = __webpack_require__(/*! ./helpers */ 3);
|
|
5981
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__collection__ = __webpack_require__(/*! ./collection */
|
|
5987
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__collection__ = __webpack_require__(/*! ./collection */ 13);
|
|
5982
5988
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_d3_scale__ = __webpack_require__(/*! d3-scale */ 260);
|
|
5983
5989
|
|
|
5984
5990
|
|
|
@@ -6462,7 +6468,7 @@ function defaultLocale(definition) {
|
|
|
6462
6468
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__data__ = __webpack_require__(/*! ./data */ 75);
|
|
6463
6469
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__scale__ = __webpack_require__(/*! ./scale */ 76);
|
|
6464
6470
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__helpers__ = __webpack_require__(/*! ./helpers */ 3);
|
|
6465
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__collection__ = __webpack_require__(/*! ./collection */
|
|
6471
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__collection__ = __webpack_require__(/*! ./collection */ 13);
|
|
6466
6472
|
|
|
6467
6473
|
|
|
6468
6474
|
|
|
@@ -7123,7 +7129,7 @@ module.exports = stubFalse;
|
|
|
7123
7129
|
/* unused harmony reexport Whisker */
|
|
7124
7130
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__victory_util_add_events__ = __webpack_require__(/*! ./victory-util/add-events */ 250);
|
|
7125
7131
|
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return __WEBPACK_IMPORTED_MODULE_14__victory_util_add_events__["a"]; });
|
|
7126
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__victory_util_collection__ = __webpack_require__(/*! ./victory-util/collection */
|
|
7132
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__victory_util_collection__ = __webpack_require__(/*! ./victory-util/collection */ 13);
|
|
7127
7133
|
/* unused harmony reexport Collection */
|
|
7128
7134
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__victory_util_data__ = __webpack_require__(/*! ./victory-util/data */ 75);
|
|
7129
7135
|
/* unused harmony reexport Data */
|
|
@@ -7232,6 +7238,8 @@ module.exports = stubFalse;
|
|
|
7232
7238
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_d3_ease__ = __webpack_require__(/*! d3-ease */ 160);
|
|
7233
7239
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util__ = __webpack_require__(/*! ./util */ 171);
|
|
7234
7240
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__victory_util_timer__ = __webpack_require__(/*! ../victory-util/timer */ 38);
|
|
7241
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */ 8);
|
|
7242
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react_fast_compare___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react_fast_compare__);
|
|
7235
7243
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
7236
7244
|
|
|
7237
7245
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
@@ -7259,6 +7267,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
7259
7267
|
|
|
7260
7268
|
|
|
7261
7269
|
|
|
7270
|
+
|
|
7262
7271
|
var VictoryAnimation =
|
|
7263
7272
|
/*#__PURE__*/
|
|
7264
7273
|
function (_React$Component) {
|
|
@@ -7302,31 +7311,35 @@ function (_React$Component) {
|
|
|
7302
7311
|
this.traverseQueue();
|
|
7303
7312
|
}
|
|
7304
7313
|
}
|
|
7305
|
-
/* lifecycle */
|
|
7306
|
-
|
|
7307
7314
|
}, {
|
|
7308
|
-
key: "
|
|
7309
|
-
value: function
|
|
7310
|
-
|
|
7311
|
-
this.getTimer().unsubscribe(this.loopID);
|
|
7312
|
-
/* If an object was supplied */
|
|
7313
|
-
|
|
7314
|
-
if (!Array.isArray(nextProps.data)) {
|
|
7315
|
-
// Replace the tween queue. Could set `this.queue = [nextProps.data]`,
|
|
7316
|
-
// but let's reuse the same array.
|
|
7317
|
-
this.queue.length = 0;
|
|
7318
|
-
this.queue.push(nextProps.data);
|
|
7319
|
-
/* If an array was supplied */
|
|
7320
|
-
} else {
|
|
7321
|
-
var _queue;
|
|
7315
|
+
key: "shouldComponentUpdate",
|
|
7316
|
+
value: function shouldComponentUpdate(nextProps, nextState) {
|
|
7317
|
+
var equalProps = __WEBPACK_IMPORTED_MODULE_5_react_fast_compare___default()(this.props, nextProps);
|
|
7322
7318
|
|
|
7323
|
-
|
|
7324
|
-
|
|
7325
|
-
|
|
7326
|
-
|
|
7319
|
+
if (!equalProps) {
|
|
7320
|
+
/* cancel existing loop if it exists */
|
|
7321
|
+
this.getTimer().unsubscribe(this.loopID);
|
|
7322
|
+
/* If an object was supplied */
|
|
7323
|
+
|
|
7324
|
+
if (!Array.isArray(nextProps.data)) {
|
|
7325
|
+
// Replace the tween queue. Could set `this.queue = [nextProps.data]`,
|
|
7326
|
+
// but let's reuse the same array.
|
|
7327
|
+
this.queue.length = 0;
|
|
7328
|
+
this.queue.push(nextProps.data);
|
|
7329
|
+
/* If an array was supplied */
|
|
7330
|
+
} else {
|
|
7331
|
+
var _queue;
|
|
7332
|
+
|
|
7333
|
+
/* Extend the tween queue */
|
|
7334
|
+
(_queue = this.queue).push.apply(_queue, _toConsumableArray(nextProps.data));
|
|
7335
|
+
}
|
|
7336
|
+
/* Start traversing the tween queue */
|
|
7327
7337
|
|
|
7328
7338
|
|
|
7329
|
-
|
|
7339
|
+
this.traverseQueue();
|
|
7340
|
+
}
|
|
7341
|
+
|
|
7342
|
+
return nextState.animationInfo.animating || !equalProps;
|
|
7330
7343
|
}
|
|
7331
7344
|
}, {
|
|
7332
7345
|
key: "componentWillUnmount",
|
|
@@ -7623,7 +7636,7 @@ module.exports = stubFalse;
|
|
|
7623
7636
|
/*! all exports used */
|
|
7624
7637
|
/***/ (function(module, exports, __webpack_require__) {
|
|
7625
7638
|
|
|
7626
|
-
var isObject = __webpack_require__(/*! ./isObject */
|
|
7639
|
+
var isObject = __webpack_require__(/*! ./isObject */ 11);
|
|
7627
7640
|
|
|
7628
7641
|
/**
|
|
7629
7642
|
* Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
|
|
@@ -7861,7 +7874,7 @@ var rad2deg = 180 / Math.PI;
|
|
|
7861
7874
|
"use strict";
|
|
7862
7875
|
/* unused harmony export rgbBasis */
|
|
7863
7876
|
/* unused harmony export rgbBasisClosed */
|
|
7864
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(/*! d3-color */
|
|
7877
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(/*! d3-color */ 12);
|
|
7865
7878
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__basis__ = __webpack_require__(/*! ./basis */ 62);
|
|
7866
7879
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__basisClosed__ = __webpack_require__(/*! ./basisClosed */ 104);
|
|
7867
7880
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__color__ = __webpack_require__(/*! ./color */ 19);
|
|
@@ -8730,7 +8743,7 @@ function getProps(props, index) {
|
|
|
8730
8743
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
|
|
8731
8744
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(/*! prop-types */ 1);
|
|
8732
8745
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
|
|
8733
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */
|
|
8746
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */ 8);
|
|
8734
8747
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react_fast_compare__);
|
|
8735
8748
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
8736
8749
|
|
|
@@ -8827,7 +8840,7 @@ Object.defineProperty(TSpan, "propTypes", {
|
|
|
8827
8840
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
|
|
8828
8841
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(/*! prop-types */ 1);
|
|
8829
8842
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
|
|
8830
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */
|
|
8843
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */ 8);
|
|
8831
8844
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react_fast_compare__);
|
|
8832
8845
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
8833
8846
|
|
|
@@ -8927,7 +8940,7 @@ Object.defineProperty(Text, "propTypes", {
|
|
|
8927
8940
|
|
|
8928
8941
|
"use strict";
|
|
8929
8942
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return VictoryTransition; });
|
|
8930
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_isObject__ = __webpack_require__(/*! lodash/isObject */
|
|
8943
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_isObject__ = __webpack_require__(/*! lodash/isObject */ 11);
|
|
8931
8944
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_isObject___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash_isObject__);
|
|
8932
8945
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_pick__ = __webpack_require__(/*! lodash/pick */ 65);
|
|
8933
8946
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_pick___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_lodash_pick__);
|
|
@@ -8940,10 +8953,12 @@ Object.defineProperty(Text, "propTypes", {
|
|
|
8940
8953
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_prop_types__ = __webpack_require__(/*! prop-types */ 1);
|
|
8941
8954
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_prop_types__);
|
|
8942
8955
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__victory_animation_victory_animation__ = __webpack_require__(/*! ../victory-animation/victory-animation */ 90);
|
|
8943
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__victory_util_collection__ = __webpack_require__(/*! ../victory-util/collection */
|
|
8956
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__victory_util_collection__ = __webpack_require__(/*! ../victory-util/collection */ 13);
|
|
8944
8957
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__victory_util_helpers__ = __webpack_require__(/*! ../victory-util/helpers */ 3);
|
|
8945
8958
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__victory_util_timer__ = __webpack_require__(/*! ../victory-util/timer */ 38);
|
|
8946
8959
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__victory_util_transitions__ = __webpack_require__(/*! ../victory-util/transitions */ 68);
|
|
8960
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */ 8);
|
|
8961
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_react_fast_compare___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_11_react_fast_compare__);
|
|
8947
8962
|
|
|
8948
8963
|
|
|
8949
8964
|
|
|
@@ -8971,6 +8986,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
8971
8986
|
|
|
8972
8987
|
|
|
8973
8988
|
|
|
8989
|
+
|
|
8974
8990
|
var VictoryTransition =
|
|
8975
8991
|
/*#__PURE__*/
|
|
8976
8992
|
function (_React$Component) {
|
|
@@ -9002,14 +9018,18 @@ function (_React$Component) {
|
|
|
9002
9018
|
}); //eslint-disable-line react/no-did-mount-set-state
|
|
9003
9019
|
}
|
|
9004
9020
|
}, {
|
|
9005
|
-
key: "
|
|
9006
|
-
value: function
|
|
9021
|
+
key: "shouldComponentUpdate",
|
|
9022
|
+
value: function shouldComponentUpdate(nextProps) {
|
|
9007
9023
|
var _this2 = this;
|
|
9008
9024
|
|
|
9009
|
-
|
|
9010
|
-
|
|
9011
|
-
|
|
9012
|
-
|
|
9025
|
+
if (!__WEBPACK_IMPORTED_MODULE_11_react_fast_compare___default()(this.props, nextProps)) {
|
|
9026
|
+
this.getTimer().bypassAnimation();
|
|
9027
|
+
this.setState(this.getTransitionState(this.props, nextProps), function () {
|
|
9028
|
+
return _this2.getTimer().resumeAnimation();
|
|
9029
|
+
});
|
|
9030
|
+
}
|
|
9031
|
+
|
|
9032
|
+
return true;
|
|
9013
9033
|
}
|
|
9014
9034
|
}, {
|
|
9015
9035
|
key: "componentWillUnmount",
|
|
@@ -9272,7 +9292,7 @@ Object.defineProperty(ClipPath, "propTypes", {
|
|
|
9272
9292
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
|
|
9273
9293
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(/*! prop-types */ 1);
|
|
9274
9294
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
|
|
9275
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */
|
|
9295
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */ 8);
|
|
9276
9296
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react_fast_compare__);
|
|
9277
9297
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
9278
9298
|
|
|
@@ -10297,7 +10317,7 @@ var prefixExponent;
|
|
|
10297
10317
|
|
|
10298
10318
|
"use strict";
|
|
10299
10319
|
/* harmony export (immutable) */ __webpack_exports__["a"] = calendar;
|
|
10300
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */
|
|
10320
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 9);
|
|
10301
10321
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_d3_interpolate__ = __webpack_require__(/*! d3-interpolate */ 18);
|
|
10302
10322
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_d3_time__ = __webpack_require__(/*! d3-time */ 81);
|
|
10303
10323
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_d3_time_format__ = __webpack_require__(/*! d3-time-format */ 143);
|
|
@@ -11252,14 +11272,17 @@ module.exports = values;
|
|
|
11252
11272
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_lodash_uniq___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_lodash_uniq__);
|
|
11253
11273
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_lodash_invert__ = __webpack_require__(/*! lodash/invert */ 337);
|
|
11254
11274
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_lodash_invert___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_lodash_invert__);
|
|
11255
|
-
/* harmony import */ var
|
|
11256
|
-
/* harmony import */ var
|
|
11257
|
-
/* harmony import */ var
|
|
11258
|
-
/* harmony import */ var
|
|
11259
|
-
/* harmony import */ var
|
|
11260
|
-
/* harmony import */ var
|
|
11261
|
-
/* harmony import */ var
|
|
11262
|
-
/* harmony import */ var
|
|
11275
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_lodash_isObject__ = __webpack_require__(/*! lodash/isObject */ 11);
|
|
11276
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_lodash_isObject___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_lodash_isObject__);
|
|
11277
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_lodash_isFunction__ = __webpack_require__(/*! lodash/isFunction */ 5);
|
|
11278
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_lodash_isFunction___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_lodash_isFunction__);
|
|
11279
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_lodash_identity__ = __webpack_require__(/*! lodash/identity */ 15);
|
|
11280
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_lodash_identity___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_lodash_identity__);
|
|
11281
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_react__ = __webpack_require__(/*! react */ 0);
|
|
11282
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_react__);
|
|
11283
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__collection__ = __webpack_require__(/*! ./collection */ 13);
|
|
11284
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__domain__ = __webpack_require__(/*! ./domain */ 83);
|
|
11285
|
+
|
|
11263
11286
|
|
|
11264
11287
|
|
|
11265
11288
|
|
|
@@ -11322,14 +11345,14 @@ function getCurrentAxis(axis, horizontal) {
|
|
|
11322
11345
|
|
|
11323
11346
|
|
|
11324
11347
|
function findAxisComponents(childComponents, predicate) {
|
|
11325
|
-
predicate = predicate ||
|
|
11348
|
+
predicate = predicate || __WEBPACK_IMPORTED_MODULE_9_lodash_identity___default.a;
|
|
11326
11349
|
|
|
11327
11350
|
var findAxes = function (children) {
|
|
11328
11351
|
return children.reduce(function (memo, child) {
|
|
11329
11352
|
if (child.type && child.type.role === "axis" && predicate(child)) {
|
|
11330
11353
|
return memo.concat(child);
|
|
11331
11354
|
} else if (child.props && child.props.children) {
|
|
11332
|
-
return memo.concat(findAxes(
|
|
11355
|
+
return memo.concat(findAxes(__WEBPACK_IMPORTED_MODULE_10_react___default.a.Children.toArray(child.props.children)));
|
|
11333
11356
|
}
|
|
11334
11357
|
|
|
11335
11358
|
return memo;
|
|
@@ -11373,7 +11396,7 @@ function getAxisComponentsWithParent(childComponents, type) {
|
|
|
11373
11396
|
if (child.type && child.type.role === "axis" && matchesType(child)) {
|
|
11374
11397
|
return memo.concat(child);
|
|
11375
11398
|
} else if (child.props && child.props.children) {
|
|
11376
|
-
var childAxis = findComponents(
|
|
11399
|
+
var childAxis = findComponents(__WEBPACK_IMPORTED_MODULE_10_react___default.a.Children.toArray(child.props.children));
|
|
11377
11400
|
return childAxis.length > 0 ? memo.concat(child) : memo;
|
|
11378
11401
|
}
|
|
11379
11402
|
|
|
@@ -11392,8 +11415,8 @@ function getOrigin(domain) {
|
|
|
11392
11415
|
};
|
|
11393
11416
|
|
|
11394
11417
|
return {
|
|
11395
|
-
x:
|
|
11396
|
-
y:
|
|
11418
|
+
x: __WEBPACK_IMPORTED_MODULE_11__collection__["a" /* default */].containsDates(domain.x) ? new Date(Math.min.apply(Math, _toConsumableArray(domain.x))) : getSingleOrigin(domain.x),
|
|
11419
|
+
y: __WEBPACK_IMPORTED_MODULE_11__collection__["a" /* default */].containsDates(domain.y) ? new Date(Math.min.apply(Math, _toConsumableArray(domain.y))) : getSingleOrigin(domain.y)
|
|
11397
11420
|
};
|
|
11398
11421
|
}
|
|
11399
11422
|
|
|
@@ -11402,7 +11425,7 @@ function getOriginSign(origin, domain) {
|
|
|
11402
11425
|
return origin <= 0 && Math.max.apply(Math, _toConsumableArray(domain)) <= 0 ? "negative" : "positive";
|
|
11403
11426
|
};
|
|
11404
11427
|
|
|
11405
|
-
return
|
|
11428
|
+
return __WEBPACK_IMPORTED_MODULE_11__collection__["a" /* default */].containsDates(domain) ? "positive" : getSign();
|
|
11406
11429
|
}
|
|
11407
11430
|
/**
|
|
11408
11431
|
* @param {ReactComponent} component: a victory axis component.
|
|
@@ -11469,13 +11492,15 @@ function isVertical(props) {
|
|
|
11469
11492
|
|
|
11470
11493
|
|
|
11471
11494
|
function stringTicks(props) {
|
|
11472
|
-
return props.tickValues !== undefined &&
|
|
11495
|
+
return props.tickValues !== undefined && __WEBPACK_IMPORTED_MODULE_11__collection__["a" /* default */].containsStrings(props.tickValues);
|
|
11473
11496
|
}
|
|
11474
11497
|
|
|
11475
11498
|
function getDefaultTickFormat(props) {
|
|
11476
|
-
var tickValues = props.tickValues
|
|
11477
|
-
|
|
11478
|
-
var
|
|
11499
|
+
var tickValues = props.tickValues;
|
|
11500
|
+
var axis = getAxis(props);
|
|
11501
|
+
var currentAxis = getCurrentAxis(axis, props.horizontal);
|
|
11502
|
+
var stringMap = props.stringMap && props.stringMap[currentAxis];
|
|
11503
|
+
var fallbackFormat = tickValues && !__WEBPACK_IMPORTED_MODULE_11__collection__["a" /* default */].containsDates(tickValues) ? function (x) {
|
|
11479
11504
|
return x;
|
|
11480
11505
|
} : undefined;
|
|
11481
11506
|
|
|
@@ -11502,12 +11527,14 @@ function getDefaultTickFormat(props) {
|
|
|
11502
11527
|
}
|
|
11503
11528
|
|
|
11504
11529
|
function getTickFormat(props, scale) {
|
|
11505
|
-
var tickFormat = props.tickFormat
|
|
11506
|
-
|
|
11530
|
+
var tickFormat = props.tickFormat;
|
|
11531
|
+
var axis = getAxis(props);
|
|
11532
|
+
var currentAxis = getCurrentAxis(axis, props.horizontal);
|
|
11533
|
+
var stringMap = props.stringMap && props.stringMap[currentAxis];
|
|
11507
11534
|
|
|
11508
11535
|
if (!tickFormat) {
|
|
11509
11536
|
var defaultTickFormat = getDefaultTickFormat(props);
|
|
11510
|
-
var scaleTickFormat = scale.tickFormat &&
|
|
11537
|
+
var scaleTickFormat = scale.tickFormat && __WEBPACK_IMPORTED_MODULE_8_lodash_isFunction___default()(scale.tickFormat) ? scale.tickFormat() : function (x) {
|
|
11511
11538
|
return x;
|
|
11512
11539
|
};
|
|
11513
11540
|
return defaultTickFormat || scaleTickFormat;
|
|
@@ -11515,7 +11542,7 @@ function getTickFormat(props, scale) {
|
|
|
11515
11542
|
return function (x, index) {
|
|
11516
11543
|
return tickFormat[index];
|
|
11517
11544
|
};
|
|
11518
|
-
} else if (tickFormat &&
|
|
11545
|
+
} else if (tickFormat && __WEBPACK_IMPORTED_MODULE_8_lodash_isFunction___default()(tickFormat)) {
|
|
11519
11546
|
var applyStringTicks = function (tick, index, ticks) {
|
|
11520
11547
|
var invertedStringMap = __WEBPACK_IMPORTED_MODULE_6_lodash_invert___default()(stringMap);
|
|
11521
11548
|
|
|
@@ -11534,10 +11561,11 @@ function getTickFormat(props, scale) {
|
|
|
11534
11561
|
}
|
|
11535
11562
|
|
|
11536
11563
|
function getStringTicks(props) {
|
|
11537
|
-
var stringMap = props.stringMap;
|
|
11538
11564
|
var axis = getAxis(props);
|
|
11565
|
+
var currentAxis = getCurrentAxis(axis, props.horizontal);
|
|
11566
|
+
var stringMap = props.stringMap && props.stringMap[currentAxis];
|
|
11539
11567
|
var categories = Array.isArray(props.categories) ? props.categories : props.categories && props.categories[axis];
|
|
11540
|
-
var ticksFromCategories = categories &&
|
|
11568
|
+
var ticksFromCategories = categories && __WEBPACK_IMPORTED_MODULE_11__collection__["a" /* default */].containsOnlyStrings(categories) ? categories.map(function (tick) {
|
|
11541
11569
|
return stringMap[tick];
|
|
11542
11570
|
}) : undefined;
|
|
11543
11571
|
|
|
@@ -11548,15 +11576,17 @@ function getStringTicks(props) {
|
|
|
11548
11576
|
|
|
11549
11577
|
function getTickArray(props) {
|
|
11550
11578
|
var tickValues = props.tickValues,
|
|
11551
|
-
tickFormat = props.tickFormat
|
|
11552
|
-
|
|
11579
|
+
tickFormat = props.tickFormat;
|
|
11580
|
+
var axis = getAxis(props);
|
|
11581
|
+
var currentAxis = getCurrentAxis(axis, props.horizontal);
|
|
11582
|
+
var stringMap = props.stringMap && props.stringMap[currentAxis];
|
|
11553
11583
|
|
|
11554
11584
|
var getTicksFromFormat = function () {
|
|
11555
11585
|
if (!tickFormat || !Array.isArray(tickFormat)) {
|
|
11556
11586
|
return undefined;
|
|
11557
11587
|
}
|
|
11558
11588
|
|
|
11559
|
-
return
|
|
11589
|
+
return __WEBPACK_IMPORTED_MODULE_11__collection__["a" /* default */].containsStrings(tickFormat) ? tickFormat.map(function (t, i) {
|
|
11560
11590
|
return i;
|
|
11561
11591
|
}) : tickFormat;
|
|
11562
11592
|
};
|
|
@@ -11567,7 +11597,7 @@ function getTickArray(props) {
|
|
|
11567
11597
|
ticks = getStringTicks(props);
|
|
11568
11598
|
}
|
|
11569
11599
|
|
|
11570
|
-
if (tickValues &&
|
|
11600
|
+
if (tickValues && __WEBPACK_IMPORTED_MODULE_11__collection__["a" /* default */].containsStrings(tickValues)) {
|
|
11571
11601
|
ticks = stringMap ? tickValues.map(function (tick) {
|
|
11572
11602
|
return stringMap[tick];
|
|
11573
11603
|
}) : __WEBPACK_IMPORTED_MODULE_4_lodash_range___default()(1, tickValues.length + 1);
|
|
@@ -11576,7 +11606,6 @@ function getTickArray(props) {
|
|
|
11576
11606
|
var tickArray = ticks ? __WEBPACK_IMPORTED_MODULE_5_lodash_uniq___default()(ticks) : getTicksFromFormat(props);
|
|
11577
11607
|
|
|
11578
11608
|
var filterArray = function (arr) {
|
|
11579
|
-
var axis = getAxis(props);
|
|
11580
11609
|
var domain = props.domain && props.domain[axis] || props.domain;
|
|
11581
11610
|
return Array.isArray(domain) ? arr.filter(function (t) {
|
|
11582
11611
|
return t >= Math.min.apply(Math, _toConsumableArray(domain)) && t <= Math.max.apply(Math, _toConsumableArray(domain));
|
|
@@ -11603,7 +11632,7 @@ function getTicks(props, scale, filterZero) {
|
|
|
11603
11632
|
|
|
11604
11633
|
if (tickValues) {
|
|
11605
11634
|
return downsampleTicks(tickValues, tickCount);
|
|
11606
|
-
} else if (scale.ticks &&
|
|
11635
|
+
} else if (scale.ticks && __WEBPACK_IMPORTED_MODULE_8_lodash_isFunction___default()(scale.ticks)) {
|
|
11607
11636
|
// eslint-disable-next-line no-magic-numbers
|
|
11608
11637
|
var defaultTickCount = tickCount || 5;
|
|
11609
11638
|
var scaleTicks = scale.ticks(defaultTickCount);
|
|
@@ -11641,18 +11670,18 @@ function getDomainFromData(props, axis) {
|
|
|
11641
11670
|
return undefined;
|
|
11642
11671
|
}
|
|
11643
11672
|
|
|
11644
|
-
var minDomain =
|
|
11645
|
-
var maxDomain =
|
|
11673
|
+
var minDomain = __WEBPACK_IMPORTED_MODULE_12__domain__["a" /* default */].getMinFromProps(props, axis);
|
|
11674
|
+
var maxDomain = __WEBPACK_IMPORTED_MODULE_12__domain__["a" /* default */].getMaxFromProps(props, axis);
|
|
11646
11675
|
var tickStrings = stringTicks(props);
|
|
11647
11676
|
var ticks = tickValues.map(function (value) {
|
|
11648
11677
|
return +value;
|
|
11649
11678
|
});
|
|
11650
|
-
var defaultMin = tickStrings ? 1 :
|
|
11651
|
-
var defaultMax = tickStrings ? tickValues.length :
|
|
11679
|
+
var defaultMin = tickStrings ? 1 : __WEBPACK_IMPORTED_MODULE_11__collection__["a" /* default */].getMinValue(ticks);
|
|
11680
|
+
var defaultMax = tickStrings ? tickValues.length : __WEBPACK_IMPORTED_MODULE_11__collection__["a" /* default */].getMaxValue(ticks);
|
|
11652
11681
|
var min = minDomain !== undefined ? minDomain : defaultMin;
|
|
11653
11682
|
var max = maxDomain !== undefined ? maxDomain : defaultMax;
|
|
11654
|
-
var initialDomain =
|
|
11655
|
-
var domain = polar && axis === "x" && Math.abs(startAngle - endAngle) === 360 ?
|
|
11683
|
+
var initialDomain = __WEBPACK_IMPORTED_MODULE_12__domain__["a" /* default */].getDomainFromMinMax(min, max);
|
|
11684
|
+
var domain = polar && axis === "x" && Math.abs(startAngle - endAngle) === 360 ? __WEBPACK_IMPORTED_MODULE_12__domain__["a" /* default */].getSymmetricDomain(initialDomain, ticks) : initialDomain;
|
|
11656
11685
|
|
|
11657
11686
|
if (isVertical(props) && !polar) {
|
|
11658
11687
|
domain.reverse();
|
|
@@ -11669,7 +11698,25 @@ function getDomain(props, axis) {
|
|
|
11669
11698
|
return undefined;
|
|
11670
11699
|
}
|
|
11671
11700
|
|
|
11672
|
-
return
|
|
11701
|
+
return __WEBPACK_IMPORTED_MODULE_12__domain__["a" /* default */].createDomainFunction(getDomainFromData)(props, inherentAxis);
|
|
11702
|
+
}
|
|
11703
|
+
|
|
11704
|
+
function getAxisValue(props, axis) {
|
|
11705
|
+
if (!props.axisValue) {
|
|
11706
|
+
return undefined;
|
|
11707
|
+
}
|
|
11708
|
+
|
|
11709
|
+
var scaleAxis = axis === "x" ? "y" : "x";
|
|
11710
|
+
var scale = __WEBPACK_IMPORTED_MODULE_7_lodash_isObject___default()(props.scale) && __WEBPACK_IMPORTED_MODULE_8_lodash_isFunction___default()(props.scale[scaleAxis]) ? props.scale[scaleAxis] : undefined;
|
|
11711
|
+
|
|
11712
|
+
if (!scale) {
|
|
11713
|
+
return undefined;
|
|
11714
|
+
}
|
|
11715
|
+
|
|
11716
|
+
var stringMapAxis = getCurrentAxis(axis, props.horizontal) === "x" ? "y" : "x";
|
|
11717
|
+
var stringMap = __WEBPACK_IMPORTED_MODULE_7_lodash_isObject___default()(props.stringMap) && props.stringMap[stringMapAxis];
|
|
11718
|
+
var axisValue = stringMap && typeof props.axisValue === "string" ? stringMap[props.axisValue] : props.axisValue;
|
|
11719
|
+
return scale(axisValue);
|
|
11673
11720
|
}
|
|
11674
11721
|
|
|
11675
11722
|
/* harmony default export */ __webpack_exports__["a"] = ({
|
|
@@ -11685,7 +11732,8 @@ function getDomain(props, axis) {
|
|
|
11685
11732
|
getOriginSign: getOriginSign,
|
|
11686
11733
|
getDomain: getDomain,
|
|
11687
11734
|
isVertical: isVertical,
|
|
11688
|
-
stringTicks: stringTicks
|
|
11735
|
+
stringTicks: stringTicks,
|
|
11736
|
+
getAxisValue: getAxisValue
|
|
11689
11737
|
});
|
|
11690
11738
|
|
|
11691
11739
|
/***/ }),
|
|
@@ -11756,6 +11804,24 @@ var fallbackProps = {
|
|
|
11756
11804
|
height: 300,
|
|
11757
11805
|
padding: 50
|
|
11758
11806
|
};
|
|
11807
|
+
var options = {
|
|
11808
|
+
components: [{
|
|
11809
|
+
name: "axis",
|
|
11810
|
+
index: 0
|
|
11811
|
+
}, {
|
|
11812
|
+
name: "axisLabel",
|
|
11813
|
+
index: 0
|
|
11814
|
+
}, {
|
|
11815
|
+
name: "grid"
|
|
11816
|
+
}, {
|
|
11817
|
+
name: "parent",
|
|
11818
|
+
index: "parent"
|
|
11819
|
+
}, {
|
|
11820
|
+
name: "ticks"
|
|
11821
|
+
}, {
|
|
11822
|
+
name: "tickLabels"
|
|
11823
|
+
}]
|
|
11824
|
+
};
|
|
11759
11825
|
|
|
11760
11826
|
var VictoryPolarAxis =
|
|
11761
11827
|
/*#__PURE__*/
|
|
@@ -11901,7 +11967,7 @@ Object.defineProperty(VictoryPolarAxis, "propTypes", {
|
|
|
11901
11967
|
axisAngle: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number,
|
|
11902
11968
|
axisComponent: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.element,
|
|
11903
11969
|
axisLabelComponent: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.element,
|
|
11904
|
-
axisValue: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number,
|
|
11970
|
+
axisValue: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.number, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.object]),
|
|
11905
11971
|
categories: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string), __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.shape({
|
|
11906
11972
|
x: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string),
|
|
11907
11973
|
y: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string)
|
|
@@ -12010,7 +12076,7 @@ Object.defineProperty(VictoryPolarAxis, "expectedComponents", {
|
|
|
12010
12076
|
writable: true,
|
|
12011
12077
|
value: ["axisComponent", "circularAxisComponent", "groupComponent", "containerComponent", "tickComponent", "tickLabelComponent", "gridComponent", "circularGridComponent"]
|
|
12012
12078
|
});
|
|
12013
|
-
/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_3_victory_core__["l" /* addEvents */])(VictoryPolarAxis));
|
|
12079
|
+
/* harmony default export */ __webpack_exports__["a"] = (Object(__WEBPACK_IMPORTED_MODULE_3_victory_core__["l" /* addEvents */])(VictoryPolarAxis, options));
|
|
12014
12080
|
|
|
12015
12081
|
/***/ }),
|
|
12016
12082
|
/* 151 */
|
|
@@ -15537,7 +15603,7 @@ function tanh(x) {
|
|
|
15537
15603
|
|
|
15538
15604
|
"use strict";
|
|
15539
15605
|
/* unused harmony export hslLong */
|
|
15540
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(/*! d3-color */
|
|
15606
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(/*! d3-color */ 12);
|
|
15541
15607
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__color__ = __webpack_require__(/*! ./color */ 19);
|
|
15542
15608
|
|
|
15543
15609
|
|
|
@@ -15572,7 +15638,7 @@ var hslLong = hsl(__WEBPACK_IMPORTED_MODULE_1__color__["a" /* default */]);
|
|
|
15572
15638
|
|
|
15573
15639
|
"use strict";
|
|
15574
15640
|
/* unused harmony export default */
|
|
15575
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(/*! d3-color */
|
|
15641
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(/*! d3-color */ 12);
|
|
15576
15642
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__color__ = __webpack_require__(/*! ./color */ 19);
|
|
15577
15643
|
|
|
15578
15644
|
|
|
@@ -15602,7 +15668,7 @@ function lab(start, end) {
|
|
|
15602
15668
|
|
|
15603
15669
|
"use strict";
|
|
15604
15670
|
/* unused harmony export hclLong */
|
|
15605
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(/*! d3-color */
|
|
15671
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(/*! d3-color */ 12);
|
|
15606
15672
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__color__ = __webpack_require__(/*! ./color */ 19);
|
|
15607
15673
|
|
|
15608
15674
|
|
|
@@ -15638,7 +15704,7 @@ var hclLong = hcl(__WEBPACK_IMPORTED_MODULE_1__color__["a" /* default */]);
|
|
|
15638
15704
|
|
|
15639
15705
|
"use strict";
|
|
15640
15706
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return cubehelixLong; });
|
|
15641
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(/*! d3-color */
|
|
15707
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(/*! d3-color */ 12);
|
|
15642
15708
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__color__ = __webpack_require__(/*! ./color */ 19);
|
|
15643
15709
|
|
|
15644
15710
|
|
|
@@ -15791,7 +15857,7 @@ function piecewise(interpolate, values) {
|
|
|
15791
15857
|
|
|
15792
15858
|
"use strict";
|
|
15793
15859
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return VictoryContainer; });
|
|
15794
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_isObject__ = __webpack_require__(/*! lodash/isObject */
|
|
15860
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_isObject__ = __webpack_require__(/*! lodash/isObject */ 11);
|
|
15795
15861
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_isObject___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash_isObject__);
|
|
15796
15862
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_uniqueId__ = __webpack_require__(/*! lodash/uniqueId */ 64);
|
|
15797
15863
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_uniqueId___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_lodash_uniqueId__);
|
|
@@ -16348,7 +16414,7 @@ module.exports = toInteger;
|
|
|
16348
16414
|
/*! all exports used */
|
|
16349
16415
|
/***/ (function(module, exports, __webpack_require__) {
|
|
16350
16416
|
|
|
16351
|
-
var isObject = __webpack_require__(/*! ./isObject */
|
|
16417
|
+
var isObject = __webpack_require__(/*! ./isObject */ 11),
|
|
16352
16418
|
isSymbol = __webpack_require__(/*! ./isSymbol */ 35);
|
|
16353
16419
|
|
|
16354
16420
|
/** Used as references for various `Number` constants. */
|
|
@@ -16458,7 +16524,7 @@ module.exports = basePick;
|
|
|
16458
16524
|
var assignValue = __webpack_require__(/*! ./_assignValue */ 44),
|
|
16459
16525
|
castPath = __webpack_require__(/*! ./_castPath */ 34),
|
|
16460
16526
|
isIndex = __webpack_require__(/*! ./_isIndex */ 100),
|
|
16461
|
-
isObject = __webpack_require__(/*! ./isObject */
|
|
16527
|
+
isObject = __webpack_require__(/*! ./isObject */ 11),
|
|
16462
16528
|
toKey = __webpack_require__(/*! ./_toKey */ 24);
|
|
16463
16529
|
|
|
16464
16530
|
/**
|
|
@@ -17029,7 +17095,7 @@ module.exports = nativeKeys;
|
|
|
17029
17095
|
/* unused harmony export default */
|
|
17030
17096
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_uniqueId__ = __webpack_require__(/*! lodash/uniqueId */ 64);
|
|
17031
17097
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_uniqueId___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash_uniqueId__);
|
|
17032
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_isObject__ = __webpack_require__(/*! lodash/isObject */
|
|
17098
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_isObject__ = __webpack_require__(/*! lodash/isObject */ 11);
|
|
17033
17099
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_isObject___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_lodash_isObject__);
|
|
17034
17100
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_lodash_isFunction__ = __webpack_require__(/*! lodash/isFunction */ 5);
|
|
17035
17101
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_lodash_isFunction___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_lodash_isFunction__);
|
|
@@ -18683,7 +18749,7 @@ Object.defineProperty(Whisker, "defaultProps", {
|
|
|
18683
18749
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_react__ = __webpack_require__(/*! react */ 0);
|
|
18684
18750
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_react__);
|
|
18685
18751
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__events__ = __webpack_require__(/*! ./events */ 74);
|
|
18686
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */
|
|
18752
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */ 8);
|
|
18687
18753
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_react_fast_compare___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_react_fast_compare__);
|
|
18688
18754
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__victory_transition_victory_transition__ = __webpack_require__(/*! ../victory-transition/victory-transition */ 117);
|
|
18689
18755
|
|
|
@@ -18722,9 +18788,18 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
18722
18788
|
|
|
18723
18789
|
var datumHasXandY = function (datum) {
|
|
18724
18790
|
return !__WEBPACK_IMPORTED_MODULE_0_lodash_isNil___default()(datum._x) && !__WEBPACK_IMPORTED_MODULE_0_lodash_isNil___default()(datum._y);
|
|
18725
|
-
};
|
|
18726
|
-
|
|
18727
|
-
|
|
18791
|
+
}; // used for checking state changes. Expected components can be passed in via options
|
|
18792
|
+
|
|
18793
|
+
|
|
18794
|
+
var defaultComponents = [{
|
|
18795
|
+
name: "parent",
|
|
18796
|
+
index: "parent"
|
|
18797
|
+
}, {
|
|
18798
|
+
name: "data"
|
|
18799
|
+
}, {
|
|
18800
|
+
name: "labels"
|
|
18801
|
+
}];
|
|
18802
|
+
/* harmony default export */ __webpack_exports__["a"] = (function (WrappedComponent, options) {
|
|
18728
18803
|
return (
|
|
18729
18804
|
/*#__PURE__*/
|
|
18730
18805
|
function (_WrappedComponent) {
|
|
@@ -18751,23 +18826,73 @@ var datumHasXandY = function (datum) {
|
|
|
18751
18826
|
_this.cacheValues(calculatedValues);
|
|
18752
18827
|
|
|
18753
18828
|
_this.externalMutations = _this.getExternalMutations(props);
|
|
18829
|
+
_this.calculatedState = _this.getStateChanges(props, calculatedValues);
|
|
18754
18830
|
return _this;
|
|
18755
18831
|
}
|
|
18756
18832
|
|
|
18757
18833
|
_createClass(addEvents, [{
|
|
18758
|
-
key: "
|
|
18759
|
-
value: function
|
|
18760
|
-
var
|
|
18761
|
-
|
|
18762
|
-
|
|
18834
|
+
key: "shouldComponentUpdate",
|
|
18835
|
+
value: function shouldComponentUpdate(nextProps) {
|
|
18836
|
+
var calculatedValues = this.getCalculatedValues(nextProps);
|
|
18837
|
+
var externalMutations = this.getExternalMutations(nextProps);
|
|
18838
|
+
var animating = this.props.animating || this.props.animate;
|
|
18839
|
+
var newMutation = !__WEBPACK_IMPORTED_MODULE_10_react_fast_compare___default()(externalMutations, this.externalMutations);
|
|
18840
|
+
|
|
18841
|
+
if (animating || newMutation) {
|
|
18842
|
+
this.cacheValues(calculatedValues);
|
|
18763
18843
|
this.externalMutations = externalMutations;
|
|
18764
|
-
this.applyExternalMutations(
|
|
18844
|
+
this.applyExternalMutations(nextProps, externalMutations);
|
|
18845
|
+
return true;
|
|
18765
18846
|
}
|
|
18766
|
-
|
|
18847
|
+
|
|
18848
|
+
var calculatedState = this.getStateChanges(nextProps, calculatedValues);
|
|
18849
|
+
|
|
18850
|
+
if (!__WEBPACK_IMPORTED_MODULE_10_react_fast_compare___default()(this.calculatedState, calculatedState)) {
|
|
18851
|
+
this.calculatedState = calculatedState;
|
|
18852
|
+
this.cacheValues(calculatedValues);
|
|
18853
|
+
return true;
|
|
18854
|
+
}
|
|
18855
|
+
|
|
18856
|
+
if (!__WEBPACK_IMPORTED_MODULE_10_react_fast_compare___default()(this.props, nextProps)) {
|
|
18857
|
+
this.cacheValues(calculatedValues);
|
|
18858
|
+
return true;
|
|
18859
|
+
}
|
|
18860
|
+
|
|
18861
|
+
return false;
|
|
18862
|
+
} // compile all state changes from own and parent state. Order doesn't matter, as any state
|
|
18863
|
+
// state change should trigger a re-render
|
|
18864
|
+
|
|
18767
18865
|
}, {
|
|
18768
|
-
key: "
|
|
18769
|
-
value: function
|
|
18770
|
-
this
|
|
18866
|
+
key: "getStateChanges",
|
|
18867
|
+
value: function getStateChanges(props, calculatedValues) {
|
|
18868
|
+
var _this2 = this;
|
|
18869
|
+
|
|
18870
|
+
var hasEvents = calculatedValues.hasEvents,
|
|
18871
|
+
getSharedEventState = calculatedValues.getSharedEventState;
|
|
18872
|
+
|
|
18873
|
+
if (!hasEvents) {
|
|
18874
|
+
return {};
|
|
18875
|
+
}
|
|
18876
|
+
|
|
18877
|
+
var getState = function (key, type) {
|
|
18878
|
+
var result = __WEBPACK_IMPORTED_MODULE_7_lodash_defaults___default()({}, _this2.getEventState(key, type), getSharedEventState(key, type));
|
|
18879
|
+
|
|
18880
|
+
return __WEBPACK_IMPORTED_MODULE_1_lodash_isEmpty___default()(result) ? undefined : result;
|
|
18881
|
+
};
|
|
18882
|
+
|
|
18883
|
+
options = options || {};
|
|
18884
|
+
var components = options.components || defaultComponents;
|
|
18885
|
+
var stateChanges = components.map(function (component) {
|
|
18886
|
+
if (!props.standalone && component.name === "parent") {
|
|
18887
|
+
// don't check for changes on parent props for non-standalone components
|
|
18888
|
+
return undefined;
|
|
18889
|
+
} else {
|
|
18890
|
+
return component.index !== undefined ? getState(component.index, component.name) : calculatedValues.dataKeys.map(function (key) {
|
|
18891
|
+
return getState(key, component.name);
|
|
18892
|
+
}).filter(Boolean);
|
|
18893
|
+
}
|
|
18894
|
+
}).filter(Boolean);
|
|
18895
|
+
return stateChanges;
|
|
18771
18896
|
}
|
|
18772
18897
|
}, {
|
|
18773
18898
|
key: "applyExternalMutations",
|
|
@@ -18821,10 +18946,10 @@ var datumHasXandY = function (datum) {
|
|
|
18821
18946
|
}, {
|
|
18822
18947
|
key: "cacheValues",
|
|
18823
18948
|
value: function cacheValues(obj) {
|
|
18824
|
-
var
|
|
18949
|
+
var _this3 = this;
|
|
18825
18950
|
|
|
18826
18951
|
__WEBPACK_IMPORTED_MODULE_5_lodash_keys___default()(obj).forEach(function (key) {
|
|
18827
|
-
|
|
18952
|
+
_this3[key] = obj[key];
|
|
18828
18953
|
});
|
|
18829
18954
|
}
|
|
18830
18955
|
}, {
|
|
@@ -18910,7 +19035,7 @@ var datumHasXandY = function (datum) {
|
|
|
18910
19035
|
}, {
|
|
18911
19036
|
key: "renderContinuousData",
|
|
18912
19037
|
value: function renderContinuousData(props) {
|
|
18913
|
-
var
|
|
19038
|
+
var _this4 = this;
|
|
18914
19039
|
|
|
18915
19040
|
var dataComponent = props.dataComponent,
|
|
18916
19041
|
labelComponent = props.labelComponent,
|
|
@@ -18919,7 +19044,7 @@ var datumHasXandY = function (datum) {
|
|
|
18919
19044
|
var dataKeys = __WEBPACK_IMPORTED_MODULE_2_lodash_without___default()(this.dataKeys, "all");
|
|
18920
19045
|
|
|
18921
19046
|
var labelComponents = dataKeys.reduce(function (memo, key) {
|
|
18922
|
-
var labelProps =
|
|
19047
|
+
var labelProps = _this4.getComponentProps(labelComponent, "labels", key);
|
|
18923
19048
|
|
|
18924
19049
|
if (labelProps && labelProps.text !== undefined && labelProps.text !== null) {
|
|
18925
19050
|
memo = memo.concat(__WEBPACK_IMPORTED_MODULE_8_react___default.a.cloneElement(labelComponent, labelProps));
|
|
@@ -18934,14 +19059,14 @@ var datumHasXandY = function (datum) {
|
|
|
18934
19059
|
}, {
|
|
18935
19060
|
key: "renderData",
|
|
18936
19061
|
value: function renderData(props) {
|
|
18937
|
-
var
|
|
19062
|
+
var _this5 = this;
|
|
18938
19063
|
|
|
18939
19064
|
var shouldRenderDatum = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : datumHasXandY;
|
|
18940
19065
|
var dataComponent = props.dataComponent,
|
|
18941
19066
|
labelComponent = props.labelComponent,
|
|
18942
19067
|
groupComponent = props.groupComponent;
|
|
18943
19068
|
var dataComponents = this.dataKeys.reduce(function (validDataComponents, _dataKey, index) {
|
|
18944
|
-
var dataProps =
|
|
19069
|
+
var dataProps = _this5.getComponentProps(dataComponent, "data", index);
|
|
18945
19070
|
|
|
18946
19071
|
if (shouldRenderDatum(dataProps.datum)) {
|
|
18947
19072
|
validDataComponents.push(__WEBPACK_IMPORTED_MODULE_8_react___default.a.cloneElement(dataComponent, dataProps));
|
|
@@ -18950,7 +19075,7 @@ var datumHasXandY = function (datum) {
|
|
|
18950
19075
|
return validDataComponents;
|
|
18951
19076
|
}, []);
|
|
18952
19077
|
var labelComponents = this.dataKeys.map(function (_dataKey, index) {
|
|
18953
|
-
var labelProps =
|
|
19078
|
+
var labelProps = _this5.getComponentProps(labelComponent, "labels", index);
|
|
18954
19079
|
|
|
18955
19080
|
if (labelProps.text !== undefined && labelProps.text !== null) {
|
|
18956
19081
|
return __WEBPACK_IMPORTED_MODULE_8_react___default.a.cloneElement(labelComponent, labelProps);
|
|
@@ -19454,7 +19579,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
|
|
19454
19579
|
"use strict";
|
|
19455
19580
|
/* harmony export (immutable) */ __webpack_exports__["a"] = band;
|
|
19456
19581
|
/* harmony export (immutable) */ __webpack_exports__["b"] = point;
|
|
19457
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */
|
|
19582
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 9);
|
|
19458
19583
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__ordinal__ = __webpack_require__(/*! ./ordinal */ 135);
|
|
19459
19584
|
|
|
19460
19585
|
|
|
@@ -20313,7 +20438,7 @@ function identity() {
|
|
|
20313
20438
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
20314
20439
|
|
|
20315
20440
|
"use strict";
|
|
20316
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */
|
|
20441
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 9);
|
|
20317
20442
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_d3_format__ = __webpack_require__(/*! d3-format */ 137);
|
|
20318
20443
|
|
|
20319
20444
|
|
|
@@ -20592,7 +20717,7 @@ function defaultLocale(definition) {
|
|
|
20592
20717
|
|
|
20593
20718
|
"use strict";
|
|
20594
20719
|
/* harmony export (immutable) */ __webpack_exports__["a"] = log;
|
|
20595
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */
|
|
20720
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 9);
|
|
20596
20721
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_d3_format__ = __webpack_require__(/*! d3-format */ 137);
|
|
20597
20722
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__constant__ = __webpack_require__(/*! ./constant */ 79);
|
|
20598
20723
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__nice__ = __webpack_require__(/*! ./nice */ 141);
|
|
@@ -20793,7 +20918,7 @@ function sqrt() {
|
|
|
20793
20918
|
|
|
20794
20919
|
"use strict";
|
|
20795
20920
|
/* harmony export (immutable) */ __webpack_exports__["a"] = quantile;
|
|
20796
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */
|
|
20921
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 9);
|
|
20797
20922
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__array__ = __webpack_require__(/*! ./array */ 14);
|
|
20798
20923
|
|
|
20799
20924
|
|
|
@@ -20859,7 +20984,7 @@ function quantile() {
|
|
|
20859
20984
|
|
|
20860
20985
|
"use strict";
|
|
20861
20986
|
/* harmony export (immutable) */ __webpack_exports__["a"] = quantize;
|
|
20862
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */
|
|
20987
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 9);
|
|
20863
20988
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__array__ = __webpack_require__(/*! ./array */ 14);
|
|
20864
20989
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__linear__ = __webpack_require__(/*! ./linear */ 27);
|
|
20865
20990
|
|
|
@@ -20921,7 +21046,7 @@ function quantize() {
|
|
|
20921
21046
|
|
|
20922
21047
|
"use strict";
|
|
20923
21048
|
/* harmony export (immutable) */ __webpack_exports__["a"] = threshold;
|
|
20924
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */
|
|
21049
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 9);
|
|
20925
21050
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__array__ = __webpack_require__(/*! ./array */ 14);
|
|
20926
21051
|
|
|
20927
21052
|
|
|
@@ -21010,7 +21135,7 @@ var milliseconds = millisecond.range;
|
|
|
21010
21135
|
"use strict";
|
|
21011
21136
|
/* unused harmony export seconds */
|
|
21012
21137
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(/*! ./interval */ 4);
|
|
21013
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */
|
|
21138
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 10);
|
|
21014
21139
|
|
|
21015
21140
|
|
|
21016
21141
|
|
|
@@ -21040,7 +21165,7 @@ var seconds = second.range;
|
|
|
21040
21165
|
"use strict";
|
|
21041
21166
|
/* unused harmony export minutes */
|
|
21042
21167
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(/*! ./interval */ 4);
|
|
21043
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */
|
|
21168
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 10);
|
|
21044
21169
|
|
|
21045
21170
|
|
|
21046
21171
|
|
|
@@ -21070,7 +21195,7 @@ var minutes = minute.range;
|
|
|
21070
21195
|
"use strict";
|
|
21071
21196
|
/* unused harmony export hours */
|
|
21072
21197
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(/*! ./interval */ 4);
|
|
21073
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */
|
|
21198
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 10);
|
|
21074
21199
|
|
|
21075
21200
|
|
|
21076
21201
|
|
|
@@ -21102,7 +21227,7 @@ var hours = hour.range;
|
|
|
21102
21227
|
"use strict";
|
|
21103
21228
|
/* unused harmony export days */
|
|
21104
21229
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(/*! ./interval */ 4);
|
|
21105
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */
|
|
21230
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 10);
|
|
21106
21231
|
|
|
21107
21232
|
|
|
21108
21233
|
|
|
@@ -21145,7 +21270,7 @@ var days = day.range;
|
|
|
21145
21270
|
/* unused harmony export fridays */
|
|
21146
21271
|
/* unused harmony export saturdays */
|
|
21147
21272
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(/*! ./interval */ 4);
|
|
21148
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */
|
|
21273
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 10);
|
|
21149
21274
|
|
|
21150
21275
|
|
|
21151
21276
|
|
|
@@ -21258,7 +21383,7 @@ var years = year.range;
|
|
|
21258
21383
|
"use strict";
|
|
21259
21384
|
/* unused harmony export utcMinutes */
|
|
21260
21385
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(/*! ./interval */ 4);
|
|
21261
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */
|
|
21386
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 10);
|
|
21262
21387
|
|
|
21263
21388
|
|
|
21264
21389
|
|
|
@@ -21288,7 +21413,7 @@ var utcMinutes = utcMinute.range;
|
|
|
21288
21413
|
"use strict";
|
|
21289
21414
|
/* unused harmony export utcHours */
|
|
21290
21415
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(/*! ./interval */ 4);
|
|
21291
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */
|
|
21416
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 10);
|
|
21292
21417
|
|
|
21293
21418
|
|
|
21294
21419
|
|
|
@@ -21318,7 +21443,7 @@ var utcHours = utcHour.range;
|
|
|
21318
21443
|
"use strict";
|
|
21319
21444
|
/* unused harmony export utcDays */
|
|
21320
21445
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(/*! ./interval */ 4);
|
|
21321
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */
|
|
21446
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 10);
|
|
21322
21447
|
|
|
21323
21448
|
|
|
21324
21449
|
|
|
@@ -21361,7 +21486,7 @@ var utcDays = utcDay.range;
|
|
|
21361
21486
|
/* unused harmony export utcFridays */
|
|
21362
21487
|
/* unused harmony export utcSaturdays */
|
|
21363
21488
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(/*! ./interval */ 4);
|
|
21364
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */
|
|
21489
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 10);
|
|
21365
21490
|
|
|
21366
21491
|
|
|
21367
21492
|
|
|
@@ -21584,7 +21709,7 @@ var parseIso = +new Date("2000-01-01T00:00:00.000Z")
|
|
|
21584
21709
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
21585
21710
|
|
|
21586
21711
|
"use strict";
|
|
21587
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(/*! d3-color */
|
|
21712
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(/*! d3-color */ 12);
|
|
21588
21713
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_d3_interpolate__ = __webpack_require__(/*! d3-interpolate */ 18);
|
|
21589
21714
|
|
|
21590
21715
|
|
|
@@ -21604,7 +21729,7 @@ var parseIso = +new Date("2000-01-01T00:00:00.000Z")
|
|
|
21604
21729
|
"use strict";
|
|
21605
21730
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return warm; });
|
|
21606
21731
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return cool; });
|
|
21607
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(/*! d3-color */
|
|
21732
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(/*! d3-color */ 12);
|
|
21608
21733
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_d3_interpolate__ = __webpack_require__(/*! d3-interpolate */ 18);
|
|
21609
21734
|
|
|
21610
21735
|
|
|
@@ -21905,7 +22030,7 @@ module.exports = baseSortedUniq;
|
|
|
21905
22030
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
21906
22031
|
|
|
21907
22032
|
"use strict";
|
|
21908
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__collection__ = __webpack_require__(/*! ./collection */
|
|
22033
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__collection__ = __webpack_require__(/*! ./collection */ 13);
|
|
21909
22034
|
/* eslint-disable func-style */
|
|
21910
22035
|
|
|
21911
22036
|
/* eslint-disable no-use-before-define */
|
|
@@ -22259,7 +22384,7 @@ var approximateTextSize = function (text, style) {
|
|
|
22259
22384
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__data__ = __webpack_require__(/*! ./data */ 75);
|
|
22260
22385
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__domain__ = __webpack_require__(/*! ./domain */ 83);
|
|
22261
22386
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__events__ = __webpack_require__(/*! ./events */ 74);
|
|
22262
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__collection__ = __webpack_require__(/*! ./collection */
|
|
22387
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__collection__ = __webpack_require__(/*! ./collection */ 13);
|
|
22263
22388
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_17__helpers__ = __webpack_require__(/*! ./helpers */ 3);
|
|
22264
22389
|
|
|
22265
22390
|
|
|
@@ -22391,14 +22516,15 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
|
22391
22516
|
getAllEvents: function (props) {
|
|
22392
22517
|
var components = ["groupComponent", "containerComponent", "labelComponent"];
|
|
22393
22518
|
this.componentEvents = __WEBPACK_IMPORTED_MODULE_15__events__["a" /* default */].getComponentEvents(props, components);
|
|
22519
|
+
var events = props.events;
|
|
22394
22520
|
|
|
22395
22521
|
if (Array.isArray(this.componentEvents)) {
|
|
22396
22522
|
var _componentEvents;
|
|
22397
22523
|
|
|
22398
|
-
|
|
22524
|
+
events = Array.isArray(props.events) ? (_componentEvents = this.componentEvents).concat.apply(_componentEvents, _toConsumableArray(props.events)) : this.componentEvents;
|
|
22399
22525
|
}
|
|
22400
22526
|
|
|
22401
|
-
return
|
|
22527
|
+
return events || [];
|
|
22402
22528
|
},
|
|
22403
22529
|
getAnimationProps: function (props, child, index) {
|
|
22404
22530
|
var _this = this;
|
|
@@ -22636,9 +22762,15 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
|
22636
22762
|
};
|
|
22637
22763
|
|
|
22638
22764
|
var combine = function (memo, datum) {
|
|
22765
|
+
var x = Array.isArray(datum) ? datum.map(function (d) {
|
|
22766
|
+
return d.x;
|
|
22767
|
+
}).filter(Boolean) : datum.x;
|
|
22768
|
+
var y = Array.isArray(datum) ? datum.map(function (d) {
|
|
22769
|
+
return d.y;
|
|
22770
|
+
}).filter(Boolean) : datum.y;
|
|
22639
22771
|
return {
|
|
22640
|
-
x:
|
|
22641
|
-
y:
|
|
22772
|
+
x: x !== undefined ? memo.x.concat(x) : memo.x,
|
|
22773
|
+
y: y !== undefined ? memo.y.concat(y) : memo.y
|
|
22642
22774
|
};
|
|
22643
22775
|
};
|
|
22644
22776
|
|
|
@@ -23284,16 +23416,15 @@ var getStyles = function (props, styleObject) {
|
|
|
23284
23416
|
var getAxisAngle = function (props) {
|
|
23285
23417
|
var axisAngle = props.axisAngle,
|
|
23286
23418
|
startAngle = props.startAngle,
|
|
23287
|
-
|
|
23288
|
-
|
|
23289
|
-
|
|
23290
|
-
var otherAxis = __WEBPACK_IMPORTED_MODULE_4_victory_core__["b" /* Axis */].getAxis(props) === "y" ? "x" : "y";
|
|
23419
|
+
dependentAxis = props.dependentAxis;
|
|
23420
|
+
var axis = __WEBPACK_IMPORTED_MODULE_4_victory_core__["b" /* Axis */].getAxis(props);
|
|
23421
|
+
var axisValue = __WEBPACK_IMPORTED_MODULE_4_victory_core__["b" /* Axis */].getAxisValue(props, axis);
|
|
23291
23422
|
|
|
23292
|
-
if (axisValue === undefined || !dependentAxis
|
|
23423
|
+
if (axisValue === undefined || !dependentAxis) {
|
|
23293
23424
|
return axisAngle === undefined ? startAngle : axisAngle;
|
|
23294
23425
|
}
|
|
23295
23426
|
|
|
23296
|
-
return __WEBPACK_IMPORTED_MODULE_4_victory_core__["d" /* Helpers */].radiansToDegrees(
|
|
23427
|
+
return __WEBPACK_IMPORTED_MODULE_4_victory_core__["d" /* Helpers */].radiansToDegrees(axisValue);
|
|
23297
23428
|
}; //eslint-disable-next-line max-params
|
|
23298
23429
|
|
|
23299
23430
|
|