victory-tooltip 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-tooltip.js +406 -292
- package/dist/victory-tooltip.min.js +1 -1
- package/package.json +2 -2
package/dist/victory-tooltip.js
CHANGED
|
@@ -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 */ 88),
|
|
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
|
/*!******************************************************************************!*\
|
|
@@ -1975,7 +1976,7 @@ module.exports = arrayIncludes;
|
|
|
1975
1976
|
"use strict";
|
|
1976
1977
|
/* harmony export (immutable) */ __webpack_exports__["b"] = linearish;
|
|
1977
1978
|
/* harmony export (immutable) */ __webpack_exports__["a"] = linear;
|
|
1978
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */
|
|
1979
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 9);
|
|
1979
1980
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_d3_interpolate__ = __webpack_require__(/*! d3-interpolate */ 17);
|
|
1980
1981
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__continuous__ = __webpack_require__(/*! ./continuous */ 43);
|
|
1981
1982
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__tickFormat__ = __webpack_require__(/*! ./tickFormat */ 286);
|
|
@@ -2818,7 +2819,7 @@ module.exports = uniq;
|
|
|
2818
2819
|
/* harmony export (immutable) */ __webpack_exports__["c"] = deinterpolateLinear;
|
|
2819
2820
|
/* harmony export (immutable) */ __webpack_exports__["a"] = copy;
|
|
2820
2821
|
/* harmony export (immutable) */ __webpack_exports__["b"] = continuous;
|
|
2821
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */
|
|
2822
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 9);
|
|
2822
2823
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_d3_interpolate__ = __webpack_require__(/*! d3-interpolate */ 17);
|
|
2823
2824
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__array__ = __webpack_require__(/*! ./array */ 14);
|
|
2824
2825
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__constant__ = __webpack_require__(/*! ./constant */ 79);
|
|
@@ -3523,7 +3524,7 @@ module.exports = property;
|
|
|
3523
3524
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3524
3525
|
|
|
3525
3526
|
"use strict";
|
|
3526
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(/*! d3-color */
|
|
3527
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(/*! d3-color */ 12);
|
|
3527
3528
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__rgb__ = __webpack_require__(/*! ./rgb */ 103);
|
|
3528
3529
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__array__ = __webpack_require__(/*! ./array */ 106);
|
|
3529
3530
|
/* 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 */ 145);
|
|
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 */ 26);
|
|
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 */ 261);
|
|
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
|
|
|
@@ -7179,7 +7185,7 @@ module.exports = stubFalse;
|
|
|
7179
7185
|
/* unused harmony reexport Whisker */
|
|
7180
7186
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__victory_util_add_events__ = __webpack_require__(/*! ./victory-util/add-events */ 250);
|
|
7181
7187
|
/* unused harmony reexport addEvents */
|
|
7182
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__victory_util_collection__ = __webpack_require__(/*! ./victory-util/collection */
|
|
7188
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__victory_util_collection__ = __webpack_require__(/*! ./victory-util/collection */ 13);
|
|
7183
7189
|
/* unused harmony reexport Collection */
|
|
7184
7190
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__victory_util_data__ = __webpack_require__(/*! ./victory-util/data */ 75);
|
|
7185
7191
|
/* unused harmony reexport Data */
|
|
@@ -7288,6 +7294,8 @@ module.exports = stubFalse;
|
|
|
7288
7294
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_d3_ease__ = __webpack_require__(/*! d3-ease */ 165);
|
|
7289
7295
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util__ = __webpack_require__(/*! ./util */ 176);
|
|
7290
7296
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__victory_util_timer__ = __webpack_require__(/*! ../victory-util/timer */ 39);
|
|
7297
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */ 8);
|
|
7298
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react_fast_compare___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react_fast_compare__);
|
|
7291
7299
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
7292
7300
|
|
|
7293
7301
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
@@ -7315,6 +7323,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
7315
7323
|
|
|
7316
7324
|
|
|
7317
7325
|
|
|
7326
|
+
|
|
7318
7327
|
var VictoryAnimation =
|
|
7319
7328
|
/*#__PURE__*/
|
|
7320
7329
|
function (_React$Component) {
|
|
@@ -7358,31 +7367,35 @@ function (_React$Component) {
|
|
|
7358
7367
|
this.traverseQueue();
|
|
7359
7368
|
}
|
|
7360
7369
|
}
|
|
7361
|
-
/* lifecycle */
|
|
7362
|
-
|
|
7363
7370
|
}, {
|
|
7364
|
-
key: "
|
|
7365
|
-
value: function
|
|
7366
|
-
|
|
7367
|
-
this.getTimer().unsubscribe(this.loopID);
|
|
7368
|
-
/* If an object was supplied */
|
|
7369
|
-
|
|
7370
|
-
if (!Array.isArray(nextProps.data)) {
|
|
7371
|
-
// Replace the tween queue. Could set `this.queue = [nextProps.data]`,
|
|
7372
|
-
// but let's reuse the same array.
|
|
7373
|
-
this.queue.length = 0;
|
|
7374
|
-
this.queue.push(nextProps.data);
|
|
7375
|
-
/* If an array was supplied */
|
|
7376
|
-
} else {
|
|
7377
|
-
var _queue;
|
|
7371
|
+
key: "shouldComponentUpdate",
|
|
7372
|
+
value: function shouldComponentUpdate(nextProps, nextState) {
|
|
7373
|
+
var equalProps = __WEBPACK_IMPORTED_MODULE_5_react_fast_compare___default()(this.props, nextProps);
|
|
7378
7374
|
|
|
7379
|
-
|
|
7380
|
-
|
|
7381
|
-
|
|
7382
|
-
|
|
7375
|
+
if (!equalProps) {
|
|
7376
|
+
/* cancel existing loop if it exists */
|
|
7377
|
+
this.getTimer().unsubscribe(this.loopID);
|
|
7378
|
+
/* If an object was supplied */
|
|
7379
|
+
|
|
7380
|
+
if (!Array.isArray(nextProps.data)) {
|
|
7381
|
+
// Replace the tween queue. Could set `this.queue = [nextProps.data]`,
|
|
7382
|
+
// but let's reuse the same array.
|
|
7383
|
+
this.queue.length = 0;
|
|
7384
|
+
this.queue.push(nextProps.data);
|
|
7385
|
+
/* If an array was supplied */
|
|
7386
|
+
} else {
|
|
7387
|
+
var _queue;
|
|
7383
7388
|
|
|
7389
|
+
/* Extend the tween queue */
|
|
7390
|
+
(_queue = this.queue).push.apply(_queue, _toConsumableArray(nextProps.data));
|
|
7391
|
+
}
|
|
7392
|
+
/* Start traversing the tween queue */
|
|
7393
|
+
|
|
7394
|
+
|
|
7395
|
+
this.traverseQueue();
|
|
7396
|
+
}
|
|
7384
7397
|
|
|
7385
|
-
|
|
7398
|
+
return nextState.animationInfo.animating || !equalProps;
|
|
7386
7399
|
}
|
|
7387
7400
|
}, {
|
|
7388
7401
|
key: "componentWillUnmount",
|
|
@@ -7679,7 +7692,7 @@ module.exports = stubFalse;
|
|
|
7679
7692
|
/*! all exports used */
|
|
7680
7693
|
/***/ (function(module, exports, __webpack_require__) {
|
|
7681
7694
|
|
|
7682
|
-
var isObject = __webpack_require__(/*! ./isObject */
|
|
7695
|
+
var isObject = __webpack_require__(/*! ./isObject */ 11);
|
|
7683
7696
|
|
|
7684
7697
|
/**
|
|
7685
7698
|
* 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 */ 63);
|
|
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 */ 18);
|
|
@@ -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 */ 92);
|
|
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 */ 39);
|
|
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
|
|
|
@@ -10214,7 +10234,7 @@ var prefixExponent;
|
|
|
10214
10234
|
|
|
10215
10235
|
"use strict";
|
|
10216
10236
|
/* harmony export (immutable) */ __webpack_exports__["a"] = calendar;
|
|
10217
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */
|
|
10237
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 9);
|
|
10218
10238
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_d3_interpolate__ = __webpack_require__(/*! d3-interpolate */ 17);
|
|
10219
10239
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_d3_time__ = __webpack_require__(/*! d3-time */ 81);
|
|
10220
10240
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_d3_time_format__ = __webpack_require__(/*! d3-time-format */ 142);
|
|
@@ -11169,14 +11189,17 @@ module.exports = values;
|
|
|
11169
11189
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_lodash_uniq___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_lodash_uniq__);
|
|
11170
11190
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_lodash_invert__ = __webpack_require__(/*! lodash/invert */ 338);
|
|
11171
11191
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_lodash_invert___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_lodash_invert__);
|
|
11172
|
-
/* harmony import */ var
|
|
11173
|
-
/* harmony import */ var
|
|
11174
|
-
/* harmony import */ var
|
|
11175
|
-
/* harmony import */ var
|
|
11176
|
-
/* harmony import */ var
|
|
11177
|
-
/* harmony import */ var
|
|
11178
|
-
/* harmony import */ var
|
|
11179
|
-
/* harmony import */ var
|
|
11192
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_lodash_isObject__ = __webpack_require__(/*! lodash/isObject */ 11);
|
|
11193
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_lodash_isObject___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_lodash_isObject__);
|
|
11194
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_lodash_isFunction__ = __webpack_require__(/*! lodash/isFunction */ 5);
|
|
11195
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_lodash_isFunction___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_lodash_isFunction__);
|
|
11196
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_lodash_identity__ = __webpack_require__(/*! lodash/identity */ 15);
|
|
11197
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_lodash_identity___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_lodash_identity__);
|
|
11198
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_react__ = __webpack_require__(/*! react */ 0);
|
|
11199
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_react__);
|
|
11200
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__collection__ = __webpack_require__(/*! ./collection */ 13);
|
|
11201
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__domain__ = __webpack_require__(/*! ./domain */ 83);
|
|
11202
|
+
|
|
11180
11203
|
|
|
11181
11204
|
|
|
11182
11205
|
|
|
@@ -11239,14 +11262,14 @@ function getCurrentAxis(axis, horizontal) {
|
|
|
11239
11262
|
|
|
11240
11263
|
|
|
11241
11264
|
function findAxisComponents(childComponents, predicate) {
|
|
11242
|
-
predicate = predicate ||
|
|
11265
|
+
predicate = predicate || __WEBPACK_IMPORTED_MODULE_9_lodash_identity___default.a;
|
|
11243
11266
|
|
|
11244
11267
|
var findAxes = function (children) {
|
|
11245
11268
|
return children.reduce(function (memo, child) {
|
|
11246
11269
|
if (child.type && child.type.role === "axis" && predicate(child)) {
|
|
11247
11270
|
return memo.concat(child);
|
|
11248
11271
|
} else if (child.props && child.props.children) {
|
|
11249
|
-
return memo.concat(findAxes(
|
|
11272
|
+
return memo.concat(findAxes(__WEBPACK_IMPORTED_MODULE_10_react___default.a.Children.toArray(child.props.children)));
|
|
11250
11273
|
}
|
|
11251
11274
|
|
|
11252
11275
|
return memo;
|
|
@@ -11290,7 +11313,7 @@ function getAxisComponentsWithParent(childComponents, type) {
|
|
|
11290
11313
|
if (child.type && child.type.role === "axis" && matchesType(child)) {
|
|
11291
11314
|
return memo.concat(child);
|
|
11292
11315
|
} else if (child.props && child.props.children) {
|
|
11293
|
-
var childAxis = findComponents(
|
|
11316
|
+
var childAxis = findComponents(__WEBPACK_IMPORTED_MODULE_10_react___default.a.Children.toArray(child.props.children));
|
|
11294
11317
|
return childAxis.length > 0 ? memo.concat(child) : memo;
|
|
11295
11318
|
}
|
|
11296
11319
|
|
|
@@ -11309,8 +11332,8 @@ function getOrigin(domain) {
|
|
|
11309
11332
|
};
|
|
11310
11333
|
|
|
11311
11334
|
return {
|
|
11312
|
-
x:
|
|
11313
|
-
y:
|
|
11335
|
+
x: __WEBPACK_IMPORTED_MODULE_11__collection__["a" /* default */].containsDates(domain.x) ? new Date(Math.min.apply(Math, _toConsumableArray(domain.x))) : getSingleOrigin(domain.x),
|
|
11336
|
+
y: __WEBPACK_IMPORTED_MODULE_11__collection__["a" /* default */].containsDates(domain.y) ? new Date(Math.min.apply(Math, _toConsumableArray(domain.y))) : getSingleOrigin(domain.y)
|
|
11314
11337
|
};
|
|
11315
11338
|
}
|
|
11316
11339
|
|
|
@@ -11319,7 +11342,7 @@ function getOriginSign(origin, domain) {
|
|
|
11319
11342
|
return origin <= 0 && Math.max.apply(Math, _toConsumableArray(domain)) <= 0 ? "negative" : "positive";
|
|
11320
11343
|
};
|
|
11321
11344
|
|
|
11322
|
-
return
|
|
11345
|
+
return __WEBPACK_IMPORTED_MODULE_11__collection__["a" /* default */].containsDates(domain) ? "positive" : getSign();
|
|
11323
11346
|
}
|
|
11324
11347
|
/**
|
|
11325
11348
|
* @param {ReactComponent} component: a victory axis component.
|
|
@@ -11386,13 +11409,15 @@ function isVertical(props) {
|
|
|
11386
11409
|
|
|
11387
11410
|
|
|
11388
11411
|
function stringTicks(props) {
|
|
11389
|
-
return props.tickValues !== undefined &&
|
|
11412
|
+
return props.tickValues !== undefined && __WEBPACK_IMPORTED_MODULE_11__collection__["a" /* default */].containsStrings(props.tickValues);
|
|
11390
11413
|
}
|
|
11391
11414
|
|
|
11392
11415
|
function getDefaultTickFormat(props) {
|
|
11393
|
-
var tickValues = props.tickValues
|
|
11394
|
-
|
|
11395
|
-
var
|
|
11416
|
+
var tickValues = props.tickValues;
|
|
11417
|
+
var axis = getAxis(props);
|
|
11418
|
+
var currentAxis = getCurrentAxis(axis, props.horizontal);
|
|
11419
|
+
var stringMap = props.stringMap && props.stringMap[currentAxis];
|
|
11420
|
+
var fallbackFormat = tickValues && !__WEBPACK_IMPORTED_MODULE_11__collection__["a" /* default */].containsDates(tickValues) ? function (x) {
|
|
11396
11421
|
return x;
|
|
11397
11422
|
} : undefined;
|
|
11398
11423
|
|
|
@@ -11419,12 +11444,14 @@ function getDefaultTickFormat(props) {
|
|
|
11419
11444
|
}
|
|
11420
11445
|
|
|
11421
11446
|
function getTickFormat(props, scale) {
|
|
11422
|
-
var tickFormat = props.tickFormat
|
|
11423
|
-
|
|
11447
|
+
var tickFormat = props.tickFormat;
|
|
11448
|
+
var axis = getAxis(props);
|
|
11449
|
+
var currentAxis = getCurrentAxis(axis, props.horizontal);
|
|
11450
|
+
var stringMap = props.stringMap && props.stringMap[currentAxis];
|
|
11424
11451
|
|
|
11425
11452
|
if (!tickFormat) {
|
|
11426
11453
|
var defaultTickFormat = getDefaultTickFormat(props);
|
|
11427
|
-
var scaleTickFormat = scale.tickFormat &&
|
|
11454
|
+
var scaleTickFormat = scale.tickFormat && __WEBPACK_IMPORTED_MODULE_8_lodash_isFunction___default()(scale.tickFormat) ? scale.tickFormat() : function (x) {
|
|
11428
11455
|
return x;
|
|
11429
11456
|
};
|
|
11430
11457
|
return defaultTickFormat || scaleTickFormat;
|
|
@@ -11432,7 +11459,7 @@ function getTickFormat(props, scale) {
|
|
|
11432
11459
|
return function (x, index) {
|
|
11433
11460
|
return tickFormat[index];
|
|
11434
11461
|
};
|
|
11435
|
-
} else if (tickFormat &&
|
|
11462
|
+
} else if (tickFormat && __WEBPACK_IMPORTED_MODULE_8_lodash_isFunction___default()(tickFormat)) {
|
|
11436
11463
|
var applyStringTicks = function (tick, index, ticks) {
|
|
11437
11464
|
var invertedStringMap = __WEBPACK_IMPORTED_MODULE_6_lodash_invert___default()(stringMap);
|
|
11438
11465
|
|
|
@@ -11451,10 +11478,11 @@ function getTickFormat(props, scale) {
|
|
|
11451
11478
|
}
|
|
11452
11479
|
|
|
11453
11480
|
function getStringTicks(props) {
|
|
11454
|
-
var stringMap = props.stringMap;
|
|
11455
11481
|
var axis = getAxis(props);
|
|
11482
|
+
var currentAxis = getCurrentAxis(axis, props.horizontal);
|
|
11483
|
+
var stringMap = props.stringMap && props.stringMap[currentAxis];
|
|
11456
11484
|
var categories = Array.isArray(props.categories) ? props.categories : props.categories && props.categories[axis];
|
|
11457
|
-
var ticksFromCategories = categories &&
|
|
11485
|
+
var ticksFromCategories = categories && __WEBPACK_IMPORTED_MODULE_11__collection__["a" /* default */].containsOnlyStrings(categories) ? categories.map(function (tick) {
|
|
11458
11486
|
return stringMap[tick];
|
|
11459
11487
|
}) : undefined;
|
|
11460
11488
|
|
|
@@ -11465,15 +11493,17 @@ function getStringTicks(props) {
|
|
|
11465
11493
|
|
|
11466
11494
|
function getTickArray(props) {
|
|
11467
11495
|
var tickValues = props.tickValues,
|
|
11468
|
-
tickFormat = props.tickFormat
|
|
11469
|
-
|
|
11496
|
+
tickFormat = props.tickFormat;
|
|
11497
|
+
var axis = getAxis(props);
|
|
11498
|
+
var currentAxis = getCurrentAxis(axis, props.horizontal);
|
|
11499
|
+
var stringMap = props.stringMap && props.stringMap[currentAxis];
|
|
11470
11500
|
|
|
11471
11501
|
var getTicksFromFormat = function () {
|
|
11472
11502
|
if (!tickFormat || !Array.isArray(tickFormat)) {
|
|
11473
11503
|
return undefined;
|
|
11474
11504
|
}
|
|
11475
11505
|
|
|
11476
|
-
return
|
|
11506
|
+
return __WEBPACK_IMPORTED_MODULE_11__collection__["a" /* default */].containsStrings(tickFormat) ? tickFormat.map(function (t, i) {
|
|
11477
11507
|
return i;
|
|
11478
11508
|
}) : tickFormat;
|
|
11479
11509
|
};
|
|
@@ -11484,7 +11514,7 @@ function getTickArray(props) {
|
|
|
11484
11514
|
ticks = getStringTicks(props);
|
|
11485
11515
|
}
|
|
11486
11516
|
|
|
11487
|
-
if (tickValues &&
|
|
11517
|
+
if (tickValues && __WEBPACK_IMPORTED_MODULE_11__collection__["a" /* default */].containsStrings(tickValues)) {
|
|
11488
11518
|
ticks = stringMap ? tickValues.map(function (tick) {
|
|
11489
11519
|
return stringMap[tick];
|
|
11490
11520
|
}) : __WEBPACK_IMPORTED_MODULE_4_lodash_range___default()(1, tickValues.length + 1);
|
|
@@ -11493,7 +11523,6 @@ function getTickArray(props) {
|
|
|
11493
11523
|
var tickArray = ticks ? __WEBPACK_IMPORTED_MODULE_5_lodash_uniq___default()(ticks) : getTicksFromFormat(props);
|
|
11494
11524
|
|
|
11495
11525
|
var filterArray = function (arr) {
|
|
11496
|
-
var axis = getAxis(props);
|
|
11497
11526
|
var domain = props.domain && props.domain[axis] || props.domain;
|
|
11498
11527
|
return Array.isArray(domain) ? arr.filter(function (t) {
|
|
11499
11528
|
return t >= Math.min.apply(Math, _toConsumableArray(domain)) && t <= Math.max.apply(Math, _toConsumableArray(domain));
|
|
@@ -11520,7 +11549,7 @@ function getTicks(props, scale, filterZero) {
|
|
|
11520
11549
|
|
|
11521
11550
|
if (tickValues) {
|
|
11522
11551
|
return downsampleTicks(tickValues, tickCount);
|
|
11523
|
-
} else if (scale.ticks &&
|
|
11552
|
+
} else if (scale.ticks && __WEBPACK_IMPORTED_MODULE_8_lodash_isFunction___default()(scale.ticks)) {
|
|
11524
11553
|
// eslint-disable-next-line no-magic-numbers
|
|
11525
11554
|
var defaultTickCount = tickCount || 5;
|
|
11526
11555
|
var scaleTicks = scale.ticks(defaultTickCount);
|
|
@@ -11558,18 +11587,18 @@ function getDomainFromData(props, axis) {
|
|
|
11558
11587
|
return undefined;
|
|
11559
11588
|
}
|
|
11560
11589
|
|
|
11561
|
-
var minDomain =
|
|
11562
|
-
var maxDomain =
|
|
11590
|
+
var minDomain = __WEBPACK_IMPORTED_MODULE_12__domain__["a" /* default */].getMinFromProps(props, axis);
|
|
11591
|
+
var maxDomain = __WEBPACK_IMPORTED_MODULE_12__domain__["a" /* default */].getMaxFromProps(props, axis);
|
|
11563
11592
|
var tickStrings = stringTicks(props);
|
|
11564
11593
|
var ticks = tickValues.map(function (value) {
|
|
11565
11594
|
return +value;
|
|
11566
11595
|
});
|
|
11567
|
-
var defaultMin = tickStrings ? 1 :
|
|
11568
|
-
var defaultMax = tickStrings ? tickValues.length :
|
|
11596
|
+
var defaultMin = tickStrings ? 1 : __WEBPACK_IMPORTED_MODULE_11__collection__["a" /* default */].getMinValue(ticks);
|
|
11597
|
+
var defaultMax = tickStrings ? tickValues.length : __WEBPACK_IMPORTED_MODULE_11__collection__["a" /* default */].getMaxValue(ticks);
|
|
11569
11598
|
var min = minDomain !== undefined ? minDomain : defaultMin;
|
|
11570
11599
|
var max = maxDomain !== undefined ? maxDomain : defaultMax;
|
|
11571
|
-
var initialDomain =
|
|
11572
|
-
var domain = polar && axis === "x" && Math.abs(startAngle - endAngle) === 360 ?
|
|
11600
|
+
var initialDomain = __WEBPACK_IMPORTED_MODULE_12__domain__["a" /* default */].getDomainFromMinMax(min, max);
|
|
11601
|
+
var domain = polar && axis === "x" && Math.abs(startAngle - endAngle) === 360 ? __WEBPACK_IMPORTED_MODULE_12__domain__["a" /* default */].getSymmetricDomain(initialDomain, ticks) : initialDomain;
|
|
11573
11602
|
|
|
11574
11603
|
if (isVertical(props) && !polar) {
|
|
11575
11604
|
domain.reverse();
|
|
@@ -11586,7 +11615,25 @@ function getDomain(props, axis) {
|
|
|
11586
11615
|
return undefined;
|
|
11587
11616
|
}
|
|
11588
11617
|
|
|
11589
|
-
return
|
|
11618
|
+
return __WEBPACK_IMPORTED_MODULE_12__domain__["a" /* default */].createDomainFunction(getDomainFromData)(props, inherentAxis);
|
|
11619
|
+
}
|
|
11620
|
+
|
|
11621
|
+
function getAxisValue(props, axis) {
|
|
11622
|
+
if (!props.axisValue) {
|
|
11623
|
+
return undefined;
|
|
11624
|
+
}
|
|
11625
|
+
|
|
11626
|
+
var scaleAxis = axis === "x" ? "y" : "x";
|
|
11627
|
+
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;
|
|
11628
|
+
|
|
11629
|
+
if (!scale) {
|
|
11630
|
+
return undefined;
|
|
11631
|
+
}
|
|
11632
|
+
|
|
11633
|
+
var stringMapAxis = getCurrentAxis(axis, props.horizontal) === "x" ? "y" : "x";
|
|
11634
|
+
var stringMap = __WEBPACK_IMPORTED_MODULE_7_lodash_isObject___default()(props.stringMap) && props.stringMap[stringMapAxis];
|
|
11635
|
+
var axisValue = stringMap && typeof props.axisValue === "string" ? stringMap[props.axisValue] : props.axisValue;
|
|
11636
|
+
return scale(axisValue);
|
|
11590
11637
|
}
|
|
11591
11638
|
|
|
11592
11639
|
/* harmony default export */ __webpack_exports__["a"] = ({
|
|
@@ -11602,7 +11649,8 @@ function getDomain(props, axis) {
|
|
|
11602
11649
|
getOriginSign: getOriginSign,
|
|
11603
11650
|
getDomain: getDomain,
|
|
11604
11651
|
isVertical: isVertical,
|
|
11605
|
-
stringTicks: stringTicks
|
|
11652
|
+
stringTicks: stringTicks,
|
|
11653
|
+
getAxisValue: getAxisValue
|
|
11606
11654
|
});
|
|
11607
11655
|
|
|
11608
11656
|
/***/ }),
|
|
@@ -15874,7 +15922,7 @@ function tanh(x) {
|
|
|
15874
15922
|
|
|
15875
15923
|
"use strict";
|
|
15876
15924
|
/* unused harmony export hslLong */
|
|
15877
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(/*! d3-color */
|
|
15925
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(/*! d3-color */ 12);
|
|
15878
15926
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__color__ = __webpack_require__(/*! ./color */ 18);
|
|
15879
15927
|
|
|
15880
15928
|
|
|
@@ -15909,7 +15957,7 @@ var hslLong = hsl(__WEBPACK_IMPORTED_MODULE_1__color__["a" /* default */]);
|
|
|
15909
15957
|
|
|
15910
15958
|
"use strict";
|
|
15911
15959
|
/* unused harmony export default */
|
|
15912
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(/*! d3-color */
|
|
15960
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(/*! d3-color */ 12);
|
|
15913
15961
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__color__ = __webpack_require__(/*! ./color */ 18);
|
|
15914
15962
|
|
|
15915
15963
|
|
|
@@ -15939,7 +15987,7 @@ function lab(start, end) {
|
|
|
15939
15987
|
|
|
15940
15988
|
"use strict";
|
|
15941
15989
|
/* unused harmony export hclLong */
|
|
15942
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(/*! d3-color */
|
|
15990
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(/*! d3-color */ 12);
|
|
15943
15991
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__color__ = __webpack_require__(/*! ./color */ 18);
|
|
15944
15992
|
|
|
15945
15993
|
|
|
@@ -15975,7 +16023,7 @@ var hclLong = hcl(__WEBPACK_IMPORTED_MODULE_1__color__["a" /* default */]);
|
|
|
15975
16023
|
|
|
15976
16024
|
"use strict";
|
|
15977
16025
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return cubehelixLong; });
|
|
15978
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(/*! d3-color */
|
|
16026
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(/*! d3-color */ 12);
|
|
15979
16027
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__color__ = __webpack_require__(/*! ./color */ 18);
|
|
15980
16028
|
|
|
15981
16029
|
|
|
@@ -16127,7 +16175,7 @@ function piecewise(interpolate, values) {
|
|
|
16127
16175
|
|
|
16128
16176
|
"use strict";
|
|
16129
16177
|
/* unused harmony export default */
|
|
16130
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_isObject__ = __webpack_require__(/*! lodash/isObject */
|
|
16178
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_isObject__ = __webpack_require__(/*! lodash/isObject */ 11);
|
|
16131
16179
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_isObject___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash_isObject__);
|
|
16132
16180
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_uniqueId__ = __webpack_require__(/*! lodash/uniqueId */ 30);
|
|
16133
16181
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_uniqueId___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_lodash_uniqueId__);
|
|
@@ -16653,7 +16701,7 @@ module.exports = toInteger;
|
|
|
16653
16701
|
/*! all exports used */
|
|
16654
16702
|
/***/ (function(module, exports, __webpack_require__) {
|
|
16655
16703
|
|
|
16656
|
-
var isObject = __webpack_require__(/*! ./isObject */
|
|
16704
|
+
var isObject = __webpack_require__(/*! ./isObject */ 11),
|
|
16657
16705
|
isSymbol = __webpack_require__(/*! ./isSymbol */ 23);
|
|
16658
16706
|
|
|
16659
16707
|
/** Used as references for various `Number` constants. */
|
|
@@ -16763,7 +16811,7 @@ module.exports = basePick;
|
|
|
16763
16811
|
var assignValue = __webpack_require__(/*! ./_assignValue */ 47),
|
|
16764
16812
|
castPath = __webpack_require__(/*! ./_castPath */ 36),
|
|
16765
16813
|
isIndex = __webpack_require__(/*! ./_isIndex */ 100),
|
|
16766
|
-
isObject = __webpack_require__(/*! ./isObject */
|
|
16814
|
+
isObject = __webpack_require__(/*! ./isObject */ 11),
|
|
16767
16815
|
toKey = __webpack_require__(/*! ./_toKey */ 25);
|
|
16768
16816
|
|
|
16769
16817
|
/**
|
|
@@ -17334,7 +17382,7 @@ module.exports = nativeKeys;
|
|
|
17334
17382
|
/* unused harmony export default */
|
|
17335
17383
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_uniqueId__ = __webpack_require__(/*! lodash/uniqueId */ 30);
|
|
17336
17384
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_uniqueId___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash_uniqueId__);
|
|
17337
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_isObject__ = __webpack_require__(/*! lodash/isObject */
|
|
17385
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_isObject__ = __webpack_require__(/*! lodash/isObject */ 11);
|
|
17338
17386
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_isObject___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_lodash_isObject__);
|
|
17339
17387
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_lodash_isFunction__ = __webpack_require__(/*! lodash/isFunction */ 5);
|
|
17340
17388
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_lodash_isFunction___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_lodash_isFunction__);
|
|
@@ -18985,7 +19033,7 @@ Object.defineProperty(Whisker, "defaultProps", {
|
|
|
18985
19033
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_react__ = __webpack_require__(/*! react */ 0);
|
|
18986
19034
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_react__);
|
|
18987
19035
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__events__ = __webpack_require__(/*! ./events */ 74);
|
|
18988
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */
|
|
19036
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */ 8);
|
|
18989
19037
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_react_fast_compare___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_react_fast_compare__);
|
|
18990
19038
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__victory_transition_victory_transition__ = __webpack_require__(/*! ../victory-transition/victory-transition */ 117);
|
|
18991
19039
|
|
|
@@ -19024,9 +19072,18 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
19024
19072
|
|
|
19025
19073
|
var datumHasXandY = function (datum) {
|
|
19026
19074
|
return !__WEBPACK_IMPORTED_MODULE_0_lodash_isNil___default()(datum._x) && !__WEBPACK_IMPORTED_MODULE_0_lodash_isNil___default()(datum._y);
|
|
19027
|
-
};
|
|
19028
|
-
|
|
19029
|
-
|
|
19075
|
+
}; // used for checking state changes. Expected components can be passed in via options
|
|
19076
|
+
|
|
19077
|
+
|
|
19078
|
+
var defaultComponents = [{
|
|
19079
|
+
name: "parent",
|
|
19080
|
+
index: "parent"
|
|
19081
|
+
}, {
|
|
19082
|
+
name: "data"
|
|
19083
|
+
}, {
|
|
19084
|
+
name: "labels"
|
|
19085
|
+
}];
|
|
19086
|
+
/* unused harmony default export */ var _unused_webpack_default_export = (function (WrappedComponent, options) {
|
|
19030
19087
|
return (
|
|
19031
19088
|
/*#__PURE__*/
|
|
19032
19089
|
function (_WrappedComponent) {
|
|
@@ -19053,23 +19110,73 @@ var datumHasXandY = function (datum) {
|
|
|
19053
19110
|
_this.cacheValues(calculatedValues);
|
|
19054
19111
|
|
|
19055
19112
|
_this.externalMutations = _this.getExternalMutations(props);
|
|
19113
|
+
_this.calculatedState = _this.getStateChanges(props, calculatedValues);
|
|
19056
19114
|
return _this;
|
|
19057
19115
|
}
|
|
19058
19116
|
|
|
19059
19117
|
_createClass(addEvents, [{
|
|
19060
|
-
key: "
|
|
19061
|
-
value: function
|
|
19062
|
-
var
|
|
19063
|
-
|
|
19064
|
-
|
|
19118
|
+
key: "shouldComponentUpdate",
|
|
19119
|
+
value: function shouldComponentUpdate(nextProps) {
|
|
19120
|
+
var calculatedValues = this.getCalculatedValues(nextProps);
|
|
19121
|
+
var externalMutations = this.getExternalMutations(nextProps);
|
|
19122
|
+
var animating = this.props.animating || this.props.animate;
|
|
19123
|
+
var newMutation = !__WEBPACK_IMPORTED_MODULE_10_react_fast_compare___default()(externalMutations, this.externalMutations);
|
|
19124
|
+
|
|
19125
|
+
if (animating || newMutation) {
|
|
19126
|
+
this.cacheValues(calculatedValues);
|
|
19065
19127
|
this.externalMutations = externalMutations;
|
|
19066
|
-
this.applyExternalMutations(
|
|
19128
|
+
this.applyExternalMutations(nextProps, externalMutations);
|
|
19129
|
+
return true;
|
|
19067
19130
|
}
|
|
19068
|
-
|
|
19131
|
+
|
|
19132
|
+
var calculatedState = this.getStateChanges(nextProps, calculatedValues);
|
|
19133
|
+
|
|
19134
|
+
if (!__WEBPACK_IMPORTED_MODULE_10_react_fast_compare___default()(this.calculatedState, calculatedState)) {
|
|
19135
|
+
this.calculatedState = calculatedState;
|
|
19136
|
+
this.cacheValues(calculatedValues);
|
|
19137
|
+
return true;
|
|
19138
|
+
}
|
|
19139
|
+
|
|
19140
|
+
if (!__WEBPACK_IMPORTED_MODULE_10_react_fast_compare___default()(this.props, nextProps)) {
|
|
19141
|
+
this.cacheValues(calculatedValues);
|
|
19142
|
+
return true;
|
|
19143
|
+
}
|
|
19144
|
+
|
|
19145
|
+
return false;
|
|
19146
|
+
} // compile all state changes from own and parent state. Order doesn't matter, as any state
|
|
19147
|
+
// state change should trigger a re-render
|
|
19148
|
+
|
|
19069
19149
|
}, {
|
|
19070
|
-
key: "
|
|
19071
|
-
value: function
|
|
19072
|
-
this
|
|
19150
|
+
key: "getStateChanges",
|
|
19151
|
+
value: function getStateChanges(props, calculatedValues) {
|
|
19152
|
+
var _this2 = this;
|
|
19153
|
+
|
|
19154
|
+
var hasEvents = calculatedValues.hasEvents,
|
|
19155
|
+
getSharedEventState = calculatedValues.getSharedEventState;
|
|
19156
|
+
|
|
19157
|
+
if (!hasEvents) {
|
|
19158
|
+
return {};
|
|
19159
|
+
}
|
|
19160
|
+
|
|
19161
|
+
var getState = function (key, type) {
|
|
19162
|
+
var result = __WEBPACK_IMPORTED_MODULE_7_lodash_defaults___default()({}, _this2.getEventState(key, type), getSharedEventState(key, type));
|
|
19163
|
+
|
|
19164
|
+
return __WEBPACK_IMPORTED_MODULE_1_lodash_isEmpty___default()(result) ? undefined : result;
|
|
19165
|
+
};
|
|
19166
|
+
|
|
19167
|
+
options = options || {};
|
|
19168
|
+
var components = options.components || defaultComponents;
|
|
19169
|
+
var stateChanges = components.map(function (component) {
|
|
19170
|
+
if (!props.standalone && component.name === "parent") {
|
|
19171
|
+
// don't check for changes on parent props for non-standalone components
|
|
19172
|
+
return undefined;
|
|
19173
|
+
} else {
|
|
19174
|
+
return component.index !== undefined ? getState(component.index, component.name) : calculatedValues.dataKeys.map(function (key) {
|
|
19175
|
+
return getState(key, component.name);
|
|
19176
|
+
}).filter(Boolean);
|
|
19177
|
+
}
|
|
19178
|
+
}).filter(Boolean);
|
|
19179
|
+
return stateChanges;
|
|
19073
19180
|
}
|
|
19074
19181
|
}, {
|
|
19075
19182
|
key: "applyExternalMutations",
|
|
@@ -19123,10 +19230,10 @@ var datumHasXandY = function (datum) {
|
|
|
19123
19230
|
}, {
|
|
19124
19231
|
key: "cacheValues",
|
|
19125
19232
|
value: function cacheValues(obj) {
|
|
19126
|
-
var
|
|
19233
|
+
var _this3 = this;
|
|
19127
19234
|
|
|
19128
19235
|
__WEBPACK_IMPORTED_MODULE_5_lodash_keys___default()(obj).forEach(function (key) {
|
|
19129
|
-
|
|
19236
|
+
_this3[key] = obj[key];
|
|
19130
19237
|
});
|
|
19131
19238
|
}
|
|
19132
19239
|
}, {
|
|
@@ -19212,7 +19319,7 @@ var datumHasXandY = function (datum) {
|
|
|
19212
19319
|
}, {
|
|
19213
19320
|
key: "renderContinuousData",
|
|
19214
19321
|
value: function renderContinuousData(props) {
|
|
19215
|
-
var
|
|
19322
|
+
var _this4 = this;
|
|
19216
19323
|
|
|
19217
19324
|
var dataComponent = props.dataComponent,
|
|
19218
19325
|
labelComponent = props.labelComponent,
|
|
@@ -19221,7 +19328,7 @@ var datumHasXandY = function (datum) {
|
|
|
19221
19328
|
var dataKeys = __WEBPACK_IMPORTED_MODULE_2_lodash_without___default()(this.dataKeys, "all");
|
|
19222
19329
|
|
|
19223
19330
|
var labelComponents = dataKeys.reduce(function (memo, key) {
|
|
19224
|
-
var labelProps =
|
|
19331
|
+
var labelProps = _this4.getComponentProps(labelComponent, "labels", key);
|
|
19225
19332
|
|
|
19226
19333
|
if (labelProps && labelProps.text !== undefined && labelProps.text !== null) {
|
|
19227
19334
|
memo = memo.concat(__WEBPACK_IMPORTED_MODULE_8_react___default.a.cloneElement(labelComponent, labelProps));
|
|
@@ -19236,14 +19343,14 @@ var datumHasXandY = function (datum) {
|
|
|
19236
19343
|
}, {
|
|
19237
19344
|
key: "renderData",
|
|
19238
19345
|
value: function renderData(props) {
|
|
19239
|
-
var
|
|
19346
|
+
var _this5 = this;
|
|
19240
19347
|
|
|
19241
19348
|
var shouldRenderDatum = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : datumHasXandY;
|
|
19242
19349
|
var dataComponent = props.dataComponent,
|
|
19243
19350
|
labelComponent = props.labelComponent,
|
|
19244
19351
|
groupComponent = props.groupComponent;
|
|
19245
19352
|
var dataComponents = this.dataKeys.reduce(function (validDataComponents, _dataKey, index) {
|
|
19246
|
-
var dataProps =
|
|
19353
|
+
var dataProps = _this5.getComponentProps(dataComponent, "data", index);
|
|
19247
19354
|
|
|
19248
19355
|
if (shouldRenderDatum(dataProps.datum)) {
|
|
19249
19356
|
validDataComponents.push(__WEBPACK_IMPORTED_MODULE_8_react___default.a.cloneElement(dataComponent, dataProps));
|
|
@@ -19252,7 +19359,7 @@ var datumHasXandY = function (datum) {
|
|
|
19252
19359
|
return validDataComponents;
|
|
19253
19360
|
}, []);
|
|
19254
19361
|
var labelComponents = this.dataKeys.map(function (_dataKey, index) {
|
|
19255
|
-
var labelProps =
|
|
19362
|
+
var labelProps = _this5.getComponentProps(labelComponent, "labels", index);
|
|
19256
19363
|
|
|
19257
19364
|
if (labelProps.text !== undefined && labelProps.text !== null) {
|
|
19258
19365
|
return __WEBPACK_IMPORTED_MODULE_8_react___default.a.cloneElement(labelComponent, labelProps);
|
|
@@ -19839,7 +19946,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
|
|
19839
19946
|
"use strict";
|
|
19840
19947
|
/* harmony export (immutable) */ __webpack_exports__["a"] = band;
|
|
19841
19948
|
/* harmony export (immutable) */ __webpack_exports__["b"] = point;
|
|
19842
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */
|
|
19949
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 9);
|
|
19843
19950
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__ordinal__ = __webpack_require__(/*! ./ordinal */ 134);
|
|
19844
19951
|
|
|
19845
19952
|
|
|
@@ -20698,7 +20805,7 @@ function identity() {
|
|
|
20698
20805
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
20699
20806
|
|
|
20700
20807
|
"use strict";
|
|
20701
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */
|
|
20808
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 9);
|
|
20702
20809
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_d3_format__ = __webpack_require__(/*! d3-format */ 136);
|
|
20703
20810
|
|
|
20704
20811
|
|
|
@@ -20977,7 +21084,7 @@ function defaultLocale(definition) {
|
|
|
20977
21084
|
|
|
20978
21085
|
"use strict";
|
|
20979
21086
|
/* harmony export (immutable) */ __webpack_exports__["a"] = log;
|
|
20980
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */
|
|
21087
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 9);
|
|
20981
21088
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_d3_format__ = __webpack_require__(/*! d3-format */ 136);
|
|
20982
21089
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__constant__ = __webpack_require__(/*! ./constant */ 79);
|
|
20983
21090
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__nice__ = __webpack_require__(/*! ./nice */ 140);
|
|
@@ -21178,7 +21285,7 @@ function sqrt() {
|
|
|
21178
21285
|
|
|
21179
21286
|
"use strict";
|
|
21180
21287
|
/* harmony export (immutable) */ __webpack_exports__["a"] = quantile;
|
|
21181
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */
|
|
21288
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 9);
|
|
21182
21289
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__array__ = __webpack_require__(/*! ./array */ 14);
|
|
21183
21290
|
|
|
21184
21291
|
|
|
@@ -21244,7 +21351,7 @@ function quantile() {
|
|
|
21244
21351
|
|
|
21245
21352
|
"use strict";
|
|
21246
21353
|
/* harmony export (immutable) */ __webpack_exports__["a"] = quantize;
|
|
21247
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */
|
|
21354
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 9);
|
|
21248
21355
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__array__ = __webpack_require__(/*! ./array */ 14);
|
|
21249
21356
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__linear__ = __webpack_require__(/*! ./linear */ 28);
|
|
21250
21357
|
|
|
@@ -21306,7 +21413,7 @@ function quantize() {
|
|
|
21306
21413
|
|
|
21307
21414
|
"use strict";
|
|
21308
21415
|
/* harmony export (immutable) */ __webpack_exports__["a"] = threshold;
|
|
21309
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */
|
|
21416
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 9);
|
|
21310
21417
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__array__ = __webpack_require__(/*! ./array */ 14);
|
|
21311
21418
|
|
|
21312
21419
|
|
|
@@ -21395,7 +21502,7 @@ var milliseconds = millisecond.range;
|
|
|
21395
21502
|
"use strict";
|
|
21396
21503
|
/* unused harmony export seconds */
|
|
21397
21504
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(/*! ./interval */ 4);
|
|
21398
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */
|
|
21505
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 10);
|
|
21399
21506
|
|
|
21400
21507
|
|
|
21401
21508
|
|
|
@@ -21425,7 +21532,7 @@ var seconds = second.range;
|
|
|
21425
21532
|
"use strict";
|
|
21426
21533
|
/* unused harmony export minutes */
|
|
21427
21534
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(/*! ./interval */ 4);
|
|
21428
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */
|
|
21535
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 10);
|
|
21429
21536
|
|
|
21430
21537
|
|
|
21431
21538
|
|
|
@@ -21455,7 +21562,7 @@ var minutes = minute.range;
|
|
|
21455
21562
|
"use strict";
|
|
21456
21563
|
/* unused harmony export hours */
|
|
21457
21564
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(/*! ./interval */ 4);
|
|
21458
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */
|
|
21565
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 10);
|
|
21459
21566
|
|
|
21460
21567
|
|
|
21461
21568
|
|
|
@@ -21487,7 +21594,7 @@ var hours = hour.range;
|
|
|
21487
21594
|
"use strict";
|
|
21488
21595
|
/* unused harmony export days */
|
|
21489
21596
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(/*! ./interval */ 4);
|
|
21490
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */
|
|
21597
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 10);
|
|
21491
21598
|
|
|
21492
21599
|
|
|
21493
21600
|
|
|
@@ -21530,7 +21637,7 @@ var days = day.range;
|
|
|
21530
21637
|
/* unused harmony export fridays */
|
|
21531
21638
|
/* unused harmony export saturdays */
|
|
21532
21639
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(/*! ./interval */ 4);
|
|
21533
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */
|
|
21640
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 10);
|
|
21534
21641
|
|
|
21535
21642
|
|
|
21536
21643
|
|
|
@@ -21643,7 +21750,7 @@ var years = year.range;
|
|
|
21643
21750
|
"use strict";
|
|
21644
21751
|
/* unused harmony export utcMinutes */
|
|
21645
21752
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(/*! ./interval */ 4);
|
|
21646
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */
|
|
21753
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 10);
|
|
21647
21754
|
|
|
21648
21755
|
|
|
21649
21756
|
|
|
@@ -21673,7 +21780,7 @@ var utcMinutes = utcMinute.range;
|
|
|
21673
21780
|
"use strict";
|
|
21674
21781
|
/* unused harmony export utcHours */
|
|
21675
21782
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(/*! ./interval */ 4);
|
|
21676
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */
|
|
21783
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 10);
|
|
21677
21784
|
|
|
21678
21785
|
|
|
21679
21786
|
|
|
@@ -21703,7 +21810,7 @@ var utcHours = utcHour.range;
|
|
|
21703
21810
|
"use strict";
|
|
21704
21811
|
/* unused harmony export utcDays */
|
|
21705
21812
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(/*! ./interval */ 4);
|
|
21706
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */
|
|
21813
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 10);
|
|
21707
21814
|
|
|
21708
21815
|
|
|
21709
21816
|
|
|
@@ -21746,7 +21853,7 @@ var utcDays = utcDay.range;
|
|
|
21746
21853
|
/* unused harmony export utcFridays */
|
|
21747
21854
|
/* unused harmony export utcSaturdays */
|
|
21748
21855
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(/*! ./interval */ 4);
|
|
21749
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */
|
|
21856
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 10);
|
|
21750
21857
|
|
|
21751
21858
|
|
|
21752
21859
|
|
|
@@ -21969,7 +22076,7 @@ var parseIso = +new Date("2000-01-01T00:00:00.000Z")
|
|
|
21969
22076
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
21970
22077
|
|
|
21971
22078
|
"use strict";
|
|
21972
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(/*! d3-color */
|
|
22079
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(/*! d3-color */ 12);
|
|
21973
22080
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_d3_interpolate__ = __webpack_require__(/*! d3-interpolate */ 17);
|
|
21974
22081
|
|
|
21975
22082
|
|
|
@@ -21989,7 +22096,7 @@ var parseIso = +new Date("2000-01-01T00:00:00.000Z")
|
|
|
21989
22096
|
"use strict";
|
|
21990
22097
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return warm; });
|
|
21991
22098
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return cool; });
|
|
21992
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(/*! d3-color */
|
|
22099
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(/*! d3-color */ 12);
|
|
21993
22100
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_d3_interpolate__ = __webpack_require__(/*! d3-interpolate */ 17);
|
|
21994
22101
|
|
|
21995
22102
|
|
|
@@ -22290,7 +22397,7 @@ module.exports = baseSortedUniq;
|
|
|
22290
22397
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
22291
22398
|
|
|
22292
22399
|
"use strict";
|
|
22293
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__collection__ = __webpack_require__(/*! ./collection */
|
|
22400
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__collection__ = __webpack_require__(/*! ./collection */ 13);
|
|
22294
22401
|
/* eslint-disable func-style */
|
|
22295
22402
|
|
|
22296
22403
|
/* eslint-disable no-use-before-define */
|
|
@@ -22645,7 +22752,7 @@ var approximateTextSize = function (text, style) {
|
|
|
22645
22752
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__data__ = __webpack_require__(/*! ./data */ 75);
|
|
22646
22753
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__domain__ = __webpack_require__(/*! ./domain */ 83);
|
|
22647
22754
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__events__ = __webpack_require__(/*! ./events */ 74);
|
|
22648
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__collection__ = __webpack_require__(/*! ./collection */
|
|
22755
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__collection__ = __webpack_require__(/*! ./collection */ 13);
|
|
22649
22756
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_17__helpers__ = __webpack_require__(/*! ./helpers */ 3);
|
|
22650
22757
|
|
|
22651
22758
|
|
|
@@ -22777,14 +22884,15 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
|
22777
22884
|
getAllEvents: function (props) {
|
|
22778
22885
|
var components = ["groupComponent", "containerComponent", "labelComponent"];
|
|
22779
22886
|
this.componentEvents = __WEBPACK_IMPORTED_MODULE_15__events__["a" /* default */].getComponentEvents(props, components);
|
|
22887
|
+
var events = props.events;
|
|
22780
22888
|
|
|
22781
22889
|
if (Array.isArray(this.componentEvents)) {
|
|
22782
22890
|
var _componentEvents;
|
|
22783
22891
|
|
|
22784
|
-
|
|
22892
|
+
events = Array.isArray(props.events) ? (_componentEvents = this.componentEvents).concat.apply(_componentEvents, _toConsumableArray(props.events)) : this.componentEvents;
|
|
22785
22893
|
}
|
|
22786
22894
|
|
|
22787
|
-
return
|
|
22895
|
+
return events || [];
|
|
22788
22896
|
},
|
|
22789
22897
|
getAnimationProps: function (props, child, index) {
|
|
22790
22898
|
var _this = this;
|
|
@@ -23022,9 +23130,15 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
|
23022
23130
|
};
|
|
23023
23131
|
|
|
23024
23132
|
var combine = function (memo, datum) {
|
|
23133
|
+
var x = Array.isArray(datum) ? datum.map(function (d) {
|
|
23134
|
+
return d.x;
|
|
23135
|
+
}).filter(Boolean) : datum.x;
|
|
23136
|
+
var y = Array.isArray(datum) ? datum.map(function (d) {
|
|
23137
|
+
return d.y;
|
|
23138
|
+
}).filter(Boolean) : datum.y;
|
|
23025
23139
|
return {
|
|
23026
|
-
x:
|
|
23027
|
-
y:
|
|
23140
|
+
x: x !== undefined ? memo.x.concat(x) : memo.x,
|
|
23141
|
+
y: y !== undefined ? memo.y.concat(y) : memo.y
|
|
23028
23142
|
};
|
|
23029
23143
|
};
|
|
23030
23144
|
|