@typeolymp/ui-components 1.19.16 → 1.19.17
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/build/components/atoms/Icon/index.d.ts +1 -1
- package/build/components/atoms/Input/Search.d.ts +7 -0
- package/build/components/atoms/Input/index.d.ts +2 -0
- package/build/components/atoms/Input/stories.d.ts +2 -0
- package/build/components/atoms/Input/translations.d.ts +11 -0
- package/build/components/molecules/Key/translations.d.ts +5 -0
- package/build/components/molecules/PasswordInputField/translations.d.ts +11 -0
- package/build/components/molecules/Tabs/styles.d.ts +2 -0
- package/build/components/organisms/Chart/data copy.d.ts +30 -0
- package/build/components/organisms/Chart/styles.d.ts +1 -0
- package/build/index.es.js +642 -762
- package/build/index.es.js.map +1 -1
- package/build/index.js +642 -762
- package/build/index.js.map +1 -1
- package/build/lib/enums.d.ts +4 -0
- package/build/lib/helpers.d.ts +1 -0
- package/build/lib/theme/index.d.ts +3 -0
- package/build/lib/theme/types.d.ts +72 -0
- package/build/lib/translations/index.d.ts +6 -0
- package/build/lib/types/TranslationType.d.ts +7 -0
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -3564,6 +3564,7 @@ var icons = {
|
|
|
3564
3564
|
bell: (jsx$1("path", { d: "M13.6 1.8c0-.4-.2-.8-.5-1.1-.3-.3-.7-.5-1.1-.5-.9 0-1.6.7-1.6 1.6v.4c-3.7.8-6.3 4-6.3 7.8v2.9c0 1.6-.6 3.1-1.7 4.2l-.4.2c-.6.6-.9 1.4-.9 2.2v1c0 .8.6 1.4 1.4 1.4h6.3c.2 1.1 1.2 1.9 2.4 1.9h1.6c.7 0 1.3-.3 1.7-.7.3-.3.6-.8.7-1.2h6.3c.7 0 1.4-.6 1.4-1.4v-1c0-.8-.3-1.6-.9-2.2l-.3-.3c-1.1-1.1-1.7-2.6-1.7-4.2V9.9c0-3.8-2.7-7.1-6.4-7.9v-.2z" })),
|
|
3565
3565
|
bin: (jsx$1("path", { d: "M4.3 7.2h15.5v.2c-.1 1.4-.2 2.7-.3 4.1-.1 1.3-.2 2.7-.3 4-.1 1.6-.2 3.1-.4 4.7 0 .6-.1 1.1-.1 1.7-.2 1.1-1.3 2.1-2.5 2.1H7.9c-1.2 0-2.4-1.1-2.5-2.3-.1-1.6-.3-3.2-.4-4.9-.1-1.7-.3-3.4-.4-5.2-.1-1.4-.2-2.9-.3-4.4zm7.1 8.4v4.5c0 .4.3.7.7.7.4 0 .6-.3.6-.7v-8.9-.2c-.1-.3-.3-.5-.6-.5-.4 0-.7.3-.7.7v4.4zm4.5 0v-1.1-3.4c0-.4-.3-.7-.7-.7-.4 0-.6.3-.6.7v9.1c0 .3.2.5.5.6.4.1.8-.2.8-.7v-4.5zm-7.8 0v4.6c0 .3.3.6.6.6.4 0 .7-.3.7-.7v-8.9-.2c0-.4-.3-.6-.7-.6-.4 0-.6.3-.6.7v4.5zM15.7 3.3h3.5c1.1 0 1.9.7 2.1 1.8v.4c0 .2-.2.4-.4.5H3.2h-.1c-.3 0-.5-.2-.5-.5 0-1.2.9-2 2.2-2.1h3.5v-.7c0-1.6 1-2.7 2.5-2.7h2.6c1.3.1 2.2 1.2 2.3 2.4v.9zm-5.5 0h3.6v-.8c0-.3-.2-.5-.6-.5h-2.5c-.3 0-.5.2-.6.5.1.2.1.5.1.8z" })),
|
|
3566
3566
|
user: (jsx$1("path", { d: "M12 12.4c3.4 0 6.2-2.8 6.2-6.2S15.4 0 12 0 5.8 2.8 5.8 6.2s2.8 6.2 6.2 6.2zM16.6 12.6c-.3-.1-.7 0-1 .2-1 .8-2.3 1.2-3.6 1.2s-2.6-.4-3.7-1.2c-.3-.2-.6-.3-1-.2C3 13.6 0 17.4 0 21.9 0 23 1 24 2.1 24h19.7c1.2 0 2.1-1 2.1-2.1.1-4.5-2.9-8.3-7.3-9.3z" })),
|
|
3567
|
+
search: (jsx$1("path", { d: "M.6 23.4c.6.6 1.7.6 2.3 0l7.1-7.1c1.4 1 3.2 1.6 5.1 1.6 4.9 0 8.9-4 8.9-8.9S20 .1 15.1.1C10.1.1 6 4.1 6 9c0 1.9.6 3.6 1.6 5.1L.5 21.2c-.6.6-.6 1.6.1 2.2zM9.3 9c0-3.1 2.5-5.7 5.7-5.7s5.7 2.5 5.7 5.7c0 3.1-2.5 5.7-5.7 5.7S9.3 12.2 9.3 9z" })),
|
|
3567
3568
|
};
|
|
3568
3569
|
var Icon = function (props) { return (jsx$1(Wrapper$a, __assign$2({}, props, { children: jsx$1("svg", __assign$2({ viewBox: "0 0 24 24", fill: "none" }, { children: icons[props.type] })) }))); };
|
|
3569
3570
|
|
|
@@ -4501,7 +4502,7 @@ function requiredArgs(required, args) {
|
|
|
4501
4502
|
}
|
|
4502
4503
|
}
|
|
4503
4504
|
|
|
4504
|
-
function _typeof$
|
|
4505
|
+
function _typeof$u(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$u = function _typeof(obj) { return typeof obj; }; } else { _typeof$u = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$u(obj); }
|
|
4505
4506
|
/**
|
|
4506
4507
|
* @name toDate
|
|
4507
4508
|
* @category Common Helpers
|
|
@@ -4537,7 +4538,7 @@ function toDate(argument) {
|
|
|
4537
4538
|
requiredArgs(1, arguments);
|
|
4538
4539
|
var argStr = Object.prototype.toString.call(argument); // Clone the date
|
|
4539
4540
|
|
|
4540
|
-
if (argument instanceof Date || _typeof$
|
|
4541
|
+
if (argument instanceof Date || _typeof$u(argument) === 'object' && argStr === '[object Date]') {
|
|
4541
4542
|
// Prevent the date to lose the milliseconds when passed to new Date() in IE10
|
|
4542
4543
|
return new Date(argument.getTime());
|
|
4543
4544
|
} else if (typeof argument === 'number' || argStr === '[object Number]') {
|
|
@@ -4808,7 +4809,7 @@ var millisecondsInMinute = 60000;
|
|
|
4808
4809
|
|
|
4809
4810
|
var millisecondsInHour = 3600000;
|
|
4810
4811
|
|
|
4811
|
-
function _typeof$
|
|
4812
|
+
function _typeof$t(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$t = function _typeof(obj) { return typeof obj; }; } else { _typeof$t = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$t(obj); }
|
|
4812
4813
|
/**
|
|
4813
4814
|
* @name isDate
|
|
4814
4815
|
* @category Common Helpers
|
|
@@ -4844,7 +4845,7 @@ function _typeof$x(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "func
|
|
|
4844
4845
|
|
|
4845
4846
|
function isDate(value) {
|
|
4846
4847
|
requiredArgs(1, arguments);
|
|
4847
|
-
return value instanceof Date || _typeof$
|
|
4848
|
+
return value instanceof Date || _typeof$t(value) === 'object' && Object.prototype.toString.call(value) === '[object Date]';
|
|
4848
4849
|
}
|
|
4849
4850
|
|
|
4850
4851
|
/**
|
|
@@ -7958,6 +7959,20 @@ var DateInput = function (props) {
|
|
|
7958
7959
|
return (jsxs(InputIconWrapper, __assign$2({ disabled: props.disabled, isChanged: isChanged }, { children: [jsx$1(Icon, { type: "calendar", color: "gray", size: "small", onClick: showPicker }), jsx$1(StyledInput, __assign$2({ type: "date" }, props, { onChange: onChange, onBlur: onBlur, onKeyPress: onKeyPress, ref: inputRef }))] })));
|
|
7959
7960
|
};
|
|
7960
7961
|
|
|
7962
|
+
var SearchInput = function (props) {
|
|
7963
|
+
var _a = useState(props.defaultValue || ""), value = _a[0], setValue = _a[1];
|
|
7964
|
+
var onChange = function (e) {
|
|
7965
|
+
setValue(e.target.value);
|
|
7966
|
+
if (!props.disabled && !!props.onChange)
|
|
7967
|
+
props.onChange(e.target.value);
|
|
7968
|
+
};
|
|
7969
|
+
var onSearch = function () {
|
|
7970
|
+
if (props.onSearch)
|
|
7971
|
+
props.onSearch(value);
|
|
7972
|
+
};
|
|
7973
|
+
return (jsx$1(Container$q, { children: jsxs(InputIconWrapper, __assign$2({ disabled: props.disabled }, { children: [jsx$1(Icon, { type: "search", color: "gray", size: "small", onClick: onSearch }), jsx$1(StyledInput, __assign$2({ type: "text" }, props, { onChange: onChange }))] })) }));
|
|
7974
|
+
};
|
|
7975
|
+
|
|
7961
7976
|
var Input = function (props) {
|
|
7962
7977
|
var onChange = function (e) {
|
|
7963
7978
|
if (!props.disabled && !!props.onChange)
|
|
@@ -7966,7 +7981,8 @@ var Input = function (props) {
|
|
|
7966
7981
|
return jsx$1(StyledInput, __assign$2({ type: "text" }, props, { onChange: onChange }));
|
|
7967
7982
|
};
|
|
7968
7983
|
Input.Password = PasswordInput;
|
|
7969
|
-
Input.Date = DateInput;
|
|
7984
|
+
Input.Date = DateInput;
|
|
7985
|
+
Input.Search = SearchInput;
|
|
7970
7986
|
|
|
7971
7987
|
var Logo = function (props) { return (jsxs("svg", __assign$2({ width: 396, height: 66, viewBox: "0 0 662.8 118.1", fill: "none", xmlSpace: "preserve" }, props, { children: [jsxs("g", { children: [jsx$1("path", { d: "M61.6 23.5c-.4-.5-.9-1.1-1.3-1.5l-4.9-4.8L42 4c-1.3-1.3-2.8-2.3-4.5-3-1.7-.7-3.5-1-5.3-1-1.8 0-3.6.4-5.3 1-1.7.7-3.2 1.7-4.5 3L4.1 22C1.5 24.6 0 28 0 31.7c0 3.6 1.5 7.1 4.1 9.7l18.3 18c2.6 2.6 6.2 4 9.8 4 3.7 0 7.2-1.4 9.8-4l13.4-13.2-4.9-4.8c-.5-.5-.9-1-1.3-1.5L35.7 53.1c-.5.5-1 .8-1.6 1.1-.6.2-1.3.4-1.9.4-.7 0-1.3-.1-1.9-.4-.6-.2-1.2-.6-1.6-1.1l-18.3-18c-.9-.9-1.5-2.2-1.5-3.5 0-1.3.5-2.5 1.5-3.5l18.3-18c.5-.5 1-.8 1.6-1.1.6-.2 1.3-.4 1.9-.4.7 0 1.3.1 1.9.4.6.2 1.2.6 1.6 1.1l13.5 13.3 4.8 4.7c.5.4.8 1 1.1 1.6.2.6.4 1.2.4 1.9v.1c0 1.3.5 2.5 1.5 3.4l4.8 4.7c1.8-2.4 2.7-5.2 2.7-8.1-.1-3-1.1-5.8-2.9-8.2z", fill: "#e62743" }), jsx$1("path", { d: "M153.3 22L135 4c-1.3-1.3-2.8-2.3-4.5-3-1.7-.7-3.5-1-5.3-1-1.8 0-3.6.4-5.3 1-1.7.7-3.2 1.7-4.5 3L102 17.2 97.1 22c-.5.5-.9 1-1.3 1.5-1.8 2.4-2.8 5.2-2.8 8.2 0 2.9 1 5.8 2.7 8.1l4.8-4.7c.9-.9 1.4-2.1 1.5-3.4 0-.6.1-1.3.4-1.9.2-.6.6-1.1 1.1-1.6l4.8-4.7 13.5-13.3c.5-.5 1-.8 1.6-1.1.6-.2 1.2-.4 1.9-.4s1.3.1 1.9.4c.6.2 1.1.6 1.6 1.1l18.3 18c.5.5.8 1 1.1 1.6.3.6.4 1.2.4 1.9 0 .6-.1 1.3-.4 1.9-.3.6-.6 1.1-1.1 1.6l-18.3 18c-.5.5-1 .8-1.6 1.1-.6.2-1.2.4-1.9.4s-1.3-.1-1.9-.4c-.6-.2-1.1-.6-1.6-1.1l-13.5-13.3c-.4.5-.8 1.1-1.3 1.5l-4.9 4.8 13.4 13.2c1.3 1.3 2.8 2.3 4.5 3 1.7.7 3.5 1 5.3 1 1.8 0 3.6-.4 5.3-1 1.7-.7 3.2-1.7 4.5-3l18.3-18c1.3-1.3 2.3-2.8 3-4.5.7-1.7 1.1-3.5 1.1-5.3 0-1.8-.4-3.6-1.1-5.3-.8-1.5-1.8-3-3.1-4.3z", fill: "#53b476" }), jsx$1("path", { d: "M61.9 23.3l-.3.3c-.4-.5-.9-1.1-1.3-1.5l-4.9-4.8L68.8 4c1.3-1.3 2.8-2.3 4.5-3 1.7-.7 3.5-1 5.3-1s3.6.4 5.3 1c1.7.7 3.2 1.7 4.5 3l13.4 13.1-4.7 4.9c-.5.5-.9 1-1.3 1.5L82.2 10.2c-.5-.5-1-.8-1.6-1.1-.6-.2-1.3-.4-1.9-.4-.7 0-1.3.1-1.9.4-.6.2-1.2.6-1.6 1.1L61.9 23.3zm41.5 4.9l4.8-4.7c1.8 2.4 2.7 5.2 2.7 8.2 0 2.9-1 5.8-2.7 8.2-.4.5-.8 1.1-1.3 1.5l-4.9 4.8-13.5 13.2c-2.6 2.6-6.2 4-9.8 4s-7.2-1.4-9.8-4L55.4 46.1l-4.9-4.8c-.5-.5-.9-1-1.3-1.5-1.8-2.4-2.7-5.2-2.7-8.1 0-2.9 1-5.8 2.7-8.1l4.8 4.7c.5.4.8 1 1.1 1.6.2.6.4 1.2.4 1.9v.1c0 1.3.5 2.5 1.5 3.4l4.8 4.7 13.5 13.3c.5.5 1 .8 1.6 1.1s1.3.4 1.9.4 1.3-.1 1.9-.4 1.2-.6 1.6-1.1L95.8 40l4.8-4.7c.9-.9 1.4-2.1 1.5-3.4 0-.6.1-1.3.4-1.9 0-.8.4-1.3.9-1.8z", fillRule: "evenodd", clipRule: "evenodd", fill: "#ffd800" }), jsx$1("path", { d: "M130 76.6l-18.3-18c-2.6-2.6-6.2-4-9.8-4-3.7 0-7.2 1.4-9.8 4L78.7 71.9l-4.9 4.8c-.5.5-.9 1-1.3 1.5-1.8 2.4-2.7 5.2-2.7 8.1 0 2.9 1 5.8 2.7 8.1l4.8-4.7c.9-.9 1.4-2.1 1.5-3.4 0-1.3.5-2.5 1.5-3.4l4.8-4.7 13.5-13.3c.9-.9 2.2-1.4 3.5-1.4 1.3 0 2.6.5 3.5 1.4l18.3 18c.9.9 1.5 2.2 1.5 3.5 0 1.3-.5 2.5-1.5 3.5l-18.3 18c-.9.9-2.2 1.4-3.5 1.4-1.3 0-2.6-.5-3.5-1.4L84.9 94.5c-.4.6-.8 1.1-1.3 1.5l-4.9 4.8L92.1 114c2.6 2.6 6.2 4 9.8 4 3.7 0 7.2-1.4 9.8-4L130 96c1.3-1.3 2.3-2.8 3-4.5.7-1.7 1.1-3.5 1.1-5.3 0-1.8-.4-3.6-1.1-5.3-.6-1.5-1.7-3-3-4.3z", fill: "#8c5ca2" }), jsx$1("path", { d: "M84.9 78.2l-4.8 4.7c-.9.9-1.4 2.1-1.5 3.4 0 1.3-.5 2.5-1.5 3.4l-4.8 4.7-13.5 13.3c-.9.9-2.2 1.4-3.5 1.4s-2.6-.5-3.5-1.4l-18.3-18c-.9-.9-1.4-2.2-1.4-3.5s.5-2.5 1.4-3.5l18.3-18c.9-.9 2.2-1.4 3.5-1.4s2.6.5 3.5 1.4L72.3 78c.4-.5.8-1.1 1.3-1.5l4.9-4.8-13.3-13c-2.6-2.6-6.2-4-9.8-4-3.7 0-7.2 1.4-9.8 4l-18.3 18c-2.6 2.6-4.1 6.1-4.1 9.7s1.5 7.1 4.1 9.7l18.3 18c2.6 2.6 6.2 4 9.8 4 3.7 0 7.2-1.4 9.8-4l13.4-13.2 4.9-4.8c.5-.5.9-1 1.3-1.5 1.8-2.4 2.7-5.2 2.7-8.1.1-3.1-.9-5.9-2.6-8.3z", fill: "#3da9e1" })] }), jsxs("g", __assign$2({ fill: "#23292f" }, { children: [jsx$1("path", { d: "M236.6 21.5c-1.1-1-2.4-1.5-3.9-1.5h-40.2c-1.6 0-2.9.5-3.9 1.4-1.1.9-1.6 2.2-1.6 3.8 0 1.6.5 2.8 1.6 3.8s2.4 1.5 3.9 1.5h14.2V78c0 1.6.5 2.9 1.6 3.9 1.1 1.1 2.5 1.6 4.2 1.6 1.8 0 3.2-.5 4.3-1.6 1.1-1.1 1.7-2.4 1.7-3.9V30.4h14.2c1.6 0 2.9-.5 3.9-1.4 1.1-.9 1.6-2.2 1.6-3.8 0-1.5-.5-2.8-1.6-3.7z" }), jsx$1("path", { d: "M270.6 36.6c-1-1.1-2.3-1.6-3.9-1.6s-2.9.5-3.9 1.6-1.5 2.4-1.5 3.9v23.2c0 2.3-.4 4.2-1.2 5.8-.8 1.6-1.9 2.8-3.4 3.6-1.5.8-3.2 1.2-5.3 1.2-3.1 0-5.5-.8-7.2-2.4-1.7-1.6-2.6-4.4-2.6-8.3V40.5c0-1.6-.5-2.9-1.5-3.9-1-1.1-2.3-1.6-3.9-1.6s-2.9.5-3.9 1.6-1.5 2.4-1.5 3.9V67c0 3.4.7 6.4 2 9 1.3 2.6 3.2 4.7 5.6 6.2 2.4 1.5 5.2 2.2 8.4 2.2 2.7 0 5.1-.3 7.3-1 2.1-.7 3.9-1.6 5.5-2.9.7-.6 1.3-1.3 1.9-2v1c0 3.1-.5 5.5-1.4 7.3-.9 1.8-2.3 3.1-4.2 3.8-1.8.8-4.2 1.1-6.9 1.1-2.1 0-3.9-.3-5.4-1-1.6-.6-2.8-1.1-3.8-1.4-1.3-.5-2.6-.4-3.8.2-1.2.6-2.1 1.8-2.6 3.6-.4 1.3-.3 2.6.4 3.8.7 1.2 1.9 2.2 3.8 2.9 1.4.6 3.2 1.1 5.3 1.4 2.2.3 4.2.5 6.2.5 4.4 0 8.3-.7 11.8-2.2 3.5-1.4 6.3-3.8 8.4-7.1 2.1-3.3 3.1-7.7 3.1-13.3V40.5c-.3-1.6-.8-2.9-1.8-3.9zM327.5 46.1c-2-3.7-4.6-6.7-8-8.8-3.4-2.1-7.1-3.2-11.4-3.2-2.1 0-4.1.4-6 1.1-1.9.7-3.6 1.6-5 2.8-1.3 1-2.4 2-3.2 3.1v-.5c0-1.6-.5-2.9-1.5-3.9-1-1.1-2.3-1.6-3.9-1.6s-2.9.5-3.9 1.6-1.5 2.4-1.5 3.9v55.6c0 1.6.5 3 1.5 4s2.3 1.5 3.9 1.5 2.9-.5 3.9-1.6 1.5-2.4 1.5-3.9V78.3c.6.6 1.4 1.3 2.2 1.9 1.6 1.2 3.5 2.2 5.6 3 2.1.8 4.4 1.2 6.8 1.2 4.1 0 7.8-1.1 11.1-3.2s5.9-5.1 7.9-8.9c2-3.8 2.9-8.1 2.9-13.1s-1-9.3-2.9-13.1zm-9.2 20.8c-1.1 2.3-2.7 4.2-4.6 5.5-2 1.3-4.3 2-6.9 2s-5-.7-7-2-3.6-3.2-4.7-5.5-1.7-4.9-1.7-7.8c0-2.9.6-5.5 1.7-7.8s2.7-4.1 4.7-5.4c2-1.3 4.3-2 7-2s5 .7 6.9 2c2 1.3 3.5 3.1 4.6 5.4 1.1 2.3 1.7 4.8 1.7 7.8 0 2.9-.6 5.5-1.7 7.8zM380.4 61.6c1.1-.9 1.7-2.1 1.7-3.5 0-3.3-.6-6.3-1.9-9.2-1.2-2.9-2.9-5.5-5-7.7s-4.5-3.9-7.3-5.2c-2.8-1.3-5.7-1.9-8.7-1.9-4 0-7.8 1-11.3 3.1-3.6 2.1-6.5 5-8.7 8.8-2.2 3.8-3.3 8.5-3.3 13.9 0 4.7 1 8.8 3 12.5 2 3.7 4.9 6.6 8.7 8.7 3.8 2.1 8.2 3.2 13.4 3.2 3 0 6-.5 8.8-1.5 2.8-1 5-2.2 6.6-3.5 1.7-1.3 2.5-2.8 2.5-4.4 0-1.2-.4-2.3-1.3-3.2-.9-.9-2-1.4-3.3-1.4-1 0-2 .3-3.1.8-.7.4-1.4.8-2.2 1.3-.8.5-1.9 1-3.2 1.3-1.3.4-3.1.5-5.3.5-2.4 0-4.7-.6-6.8-1.8-2.1-1.2-3.9-2.9-5.3-5.2-.8-1.3-1.3-2.8-1.7-4.5h29.9c1.4.3 2.7-.2 3.8-1.1zM350 47.2c1.1-1.1 2.5-2 4.1-2.4 1.6-.5 3.3-.7 5.1-.7 1.9 0 3.6.4 5.3 1.2 1.7.8 3.1 1.9 4.2 3.3s1.7 3 1.9 4.7v.6h-23.7c.1-.7.3-1.5.5-2.1.5-1.9 1.5-3.4 2.6-4.6zM447.3 39.1c-1.5-3.9-3.6-7.4-6.4-10.4-2.8-3-6-5.3-9.8-7-3.8-1.7-7.9-2.5-12.4-2.5s-8.6.8-12.3 2.5c-3.7 1.7-7 4-9.7 7-2.8 3-4.9 6.5-6.4 10.4-1.5 3.9-2.3 8.2-2.3 12.7s.8 8.8 2.3 12.7c1.5 3.9 3.6 7.4 6.4 10.4 2.7 3 6 5.3 9.7 7 3.7 1.7 7.9 2.5 12.3 2.5 4.5 0 8.6-.8 12.4-2.5 3.8-1.7 7-4 9.8-7 2.8-3 4.9-6.5 6.4-10.4 1.5-3.9 2.3-8.2 2.3-12.7-.1-4.6-.8-8.8-2.3-12.7zm-12 23.7c-1.6 3.3-3.9 5.9-6.7 7.8-2.8 1.9-6.1 2.9-9.9 2.9-3.7 0-7-1-9.9-2.9-2.8-1.9-5.1-4.5-6.7-7.8-1.6-3.3-2.4-7-2.4-11 0-4.1.8-7.8 2.4-11.1 1.6-3.3 3.8-5.9 6.7-7.8 2.8-1.9 6.1-2.9 9.9-2.9 3.7 0 7 1 9.9 2.9 2.8 1.9 5.1 4.5 6.7 7.8 1.6 3.3 2.4 7 2.4 11 .1 4.1-.8 7.8-2.4 11.1zM468.4 18c-1-1.1-2.3-1.6-3.9-1.6s-2.9.5-3.9 1.6c-1.1 1.1-1.6 2.4-1.6 3.9v56c0 1.6.5 2.9 1.5 3.9 1 1.1 2.3 1.6 3.8 1.6 1.6 0 2.9-.5 3.9-1.6 1.1-1.1 1.6-2.4 1.6-3.9v-56c.1-1.5-.4-2.9-1.4-3.9zM520.2 36.6c-1-1.1-2.3-1.6-3.9-1.6s-2.9.5-3.9 1.6-1.5 2.4-1.5 3.9v23.2c0 2.3-.4 4.2-1.2 5.8-.8 1.6-1.9 2.8-3.4 3.6-1.4.8-3.2 1.2-5.3 1.2-3.1 0-5.5-.8-7.2-2.4-1.7-1.6-2.6-4.4-2.6-8.3V40.5c0-1.6-.5-2.9-1.5-3.9-1-1.1-2.3-1.6-3.9-1.6s-2.9.5-3.9 1.6-1.5 2.4-1.5 3.9V67c0 3.4.7 6.4 2 9 1.3 2.6 3.2 4.7 5.6 6.2 2.4 1.5 5.2 2.2 8.4 2.2 2.7 0 5.1-.3 7.3-1 2.1-.7 3.9-1.6 5.5-2.9.7-.6 1.3-1.3 1.9-2v1c0 3.1-.5 5.5-1.4 7.3-.9 1.8-2.3 3.1-4.2 3.8-1.8.8-4.2 1.1-6.9 1.1-2.1 0-3.9-.3-5.4-1-1.6-.6-2.8-1.1-3.8-1.4-1.3-.5-2.6-.4-3.8.2-1.2.6-2.1 1.8-2.6 3.6-.4 1.3-.3 2.6.4 3.8.7 1.2 1.9 2.2 3.8 2.9 1.4.6 3.2 1.1 5.3 1.4 2.2.3 4.2.5 6.2.5 4.4 0 8.3-.7 11.8-2.2 3.5-1.4 6.3-3.8 8.4-7.1 2.1-3.3 3.1-7.7 3.1-13.3V40.5c-.2-1.6-.7-2.9-1.8-3.9zM603.2 44.4c-.8-3.1-2.4-5.6-4.7-7.5s-5.6-2.8-9.9-2.8c-2.7 0-5.1.6-7.2 1.7-2.1 1.1-4 2.5-5.5 4.1-1.4 1.5-2.5 2.9-3.2 4.2-.8-2.6-2.1-4.7-3.9-6.5-2.3-2.3-5.9-3.5-10.7-3.5-2 0-3.8.3-5.5 1-1.7.6-3.2 1.5-4.6 2.5-1.4 1-2.6 2.1-3.5 3.3l-.9 1.2v-1.5c0-1.6-.5-2.9-1.5-3.9-1-1.1-2.3-1.6-3.9-1.6s-2.9.5-3.9 1.6-1.5 2.4-1.5 3.9V78c0 1.6.5 2.9 1.5 3.9 1 1.1 2.3 1.6 3.9 1.6s2.9-.5 3.9-1.6 1.5-2.4 1.5-3.9V54.7c0-2 .4-3.8 1.2-5.4.8-1.6 2-2.9 3.7-3.9 1.6-1 3.6-1.4 5.9-1.4 2.4 0 4.2.5 5.4 1.4 1.3 1 2.1 2.3 2.6 3.9s.7 3.4.7 5.4v23.2c0 1.6.5 2.9 1.5 3.9 1 1.1 2.3 1.6 3.9 1.6s2.9-.5 3.9-1.6 1.5-2.4 1.5-3.9V54.7c0-2 .4-3.8 1.2-5.4.8-1.6 2-2.9 3.7-3.9 1.6-1 3.6-1.4 5.9-1.4 2.4 0 4.2.5 5.4 1.4 1.3 1 2.1 2.3 2.6 3.9s.7 3.4.7 5.4v23.2c0 1.6.5 2.9 1.5 3.9 1 1.1 2.3 1.6 3.9 1.6s2.9-.5 3.9-1.6 1.5-2.4 1.5-3.9V54.7c.3-3.8-.2-7.2-1-10.3zM659.8 46.1c-2-3.7-4.6-6.7-8-8.8-3.4-2.1-7.1-3.2-11.4-3.2-2.1 0-4.1.4-6 1.1-1.9.7-3.6 1.6-5 2.8-1.3 1-2.4 2-3.2 3.1v-.5c0-1.6-.5-2.9-1.5-3.9-1-1.1-2.3-1.6-3.9-1.6s-2.9.5-3.9 1.6-1.5 2.4-1.5 3.9v55.6c0 1.6.5 3 1.5 4s2.3 1.5 3.9 1.5 2.9-.5 3.9-1.6 1.5-2.4 1.5-3.9V78.3c.6.6 1.4 1.3 2.2 1.9 1.6 1.2 3.5 2.2 5.6 3s4.4 1.2 6.8 1.2c4.1 0 7.8-1.1 11.1-3.2s5.9-5.1 7.9-8.9c2-3.8 2.9-8.1 2.9-13.1.1-5-.9-9.3-2.9-13.1zm-9.1 20.8c-1.1 2.3-2.7 4.2-4.6 5.5-2 1.3-4.3 2-6.9 2s-5-.7-7-2-3.5-3.2-4.7-5.5c-1.1-2.3-1.7-4.9-1.7-7.8 0-2.9.6-5.5 1.7-7.8s2.7-4.1 4.7-5.4c2-1.3 4.3-2 7-2s5 .7 6.9 2c2 1.3 3.5 3.1 4.6 5.4 1.1 2.3 1.7 4.8 1.7 7.8-.1 2.9-.6 5.5-1.7 7.8z" })] }))] }))); };
|
|
7972
7988
|
|
|
@@ -13560,15 +13576,15 @@ possibleStandardNamesOptimized$1.possibleStandardNames = {
|
|
|
13560
13576
|
|
|
13561
13577
|
Object.defineProperty(lib$1, '__esModule', { value: true });
|
|
13562
13578
|
|
|
13563
|
-
function _slicedToArray$
|
|
13564
|
-
return _arrayWithHoles$
|
|
13579
|
+
function _slicedToArray$d(arr, i) {
|
|
13580
|
+
return _arrayWithHoles$e(arr) || _iterableToArrayLimit$d(arr, i) || _unsupportedIterableToArray$l(arr, i) || _nonIterableRest$e();
|
|
13565
13581
|
}
|
|
13566
13582
|
|
|
13567
|
-
function _arrayWithHoles$
|
|
13583
|
+
function _arrayWithHoles$e(arr) {
|
|
13568
13584
|
if (Array.isArray(arr)) return arr;
|
|
13569
13585
|
}
|
|
13570
13586
|
|
|
13571
|
-
function _iterableToArrayLimit$
|
|
13587
|
+
function _iterableToArrayLimit$d(arr, i) {
|
|
13572
13588
|
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
13573
13589
|
|
|
13574
13590
|
if (_i == null) return;
|
|
@@ -13598,16 +13614,16 @@ function _iterableToArrayLimit$c(arr, i) {
|
|
|
13598
13614
|
return _arr;
|
|
13599
13615
|
}
|
|
13600
13616
|
|
|
13601
|
-
function _unsupportedIterableToArray$
|
|
13617
|
+
function _unsupportedIterableToArray$l(o, minLen) {
|
|
13602
13618
|
if (!o) return;
|
|
13603
|
-
if (typeof o === "string") return _arrayLikeToArray$
|
|
13619
|
+
if (typeof o === "string") return _arrayLikeToArray$l(o, minLen);
|
|
13604
13620
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
13605
13621
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
13606
13622
|
if (n === "Map" || n === "Set") return Array.from(o);
|
|
13607
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$
|
|
13623
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$l(o, minLen);
|
|
13608
13624
|
}
|
|
13609
13625
|
|
|
13610
|
-
function _arrayLikeToArray$
|
|
13626
|
+
function _arrayLikeToArray$l(arr, len) {
|
|
13611
13627
|
if (len == null || len > arr.length) len = arr.length;
|
|
13612
13628
|
|
|
13613
13629
|
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
@@ -13615,7 +13631,7 @@ function _arrayLikeToArray$k(arr, len) {
|
|
|
13615
13631
|
return arr2;
|
|
13616
13632
|
}
|
|
13617
13633
|
|
|
13618
|
-
function _nonIterableRest$
|
|
13634
|
+
function _nonIterableRest$e() {
|
|
13619
13635
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
13620
13636
|
}
|
|
13621
13637
|
|
|
@@ -13679,7 +13695,7 @@ reservedProps.forEach(function (name) {
|
|
|
13679
13695
|
// This is a mapping from React prop names to the attribute names.
|
|
13680
13696
|
|
|
13681
13697
|
[['acceptCharset', 'accept-charset'], ['className', 'class'], ['htmlFor', 'for'], ['httpEquiv', 'http-equiv']].forEach(function (_ref) {
|
|
13682
|
-
var _ref2 = _slicedToArray$
|
|
13698
|
+
var _ref2 = _slicedToArray$d(_ref, 2),
|
|
13683
13699
|
name = _ref2[0],
|
|
13684
13700
|
attributeName = _ref2[1];
|
|
13685
13701
|
|
|
@@ -16090,31 +16106,31 @@ var _default = function (file, acceptedFiles) {
|
|
|
16090
16106
|
return true;
|
|
16091
16107
|
};
|
|
16092
16108
|
|
|
16093
|
-
function _toConsumableArray$c(arr) { return _arrayWithoutHoles$c(arr) || _iterableToArray$d(arr) || _unsupportedIterableToArray$
|
|
16109
|
+
function _toConsumableArray$c(arr) { return _arrayWithoutHoles$c(arr) || _iterableToArray$d(arr) || _unsupportedIterableToArray$k(arr) || _nonIterableSpread$c(); }
|
|
16094
16110
|
|
|
16095
16111
|
function _nonIterableSpread$c() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
16096
16112
|
|
|
16097
16113
|
function _iterableToArray$d(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
16098
16114
|
|
|
16099
|
-
function _arrayWithoutHoles$c(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$
|
|
16115
|
+
function _arrayWithoutHoles$c(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$k(arr); }
|
|
16100
16116
|
|
|
16101
|
-
function ownKeys$
|
|
16117
|
+
function ownKeys$q(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
16102
16118
|
|
|
16103
|
-
function _objectSpread$
|
|
16119
|
+
function _objectSpread$q(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$q(Object(source), !0).forEach(function (key) { _defineProperty$s(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$q(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
16104
16120
|
|
|
16105
|
-
function _defineProperty$
|
|
16121
|
+
function _defineProperty$s(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
16106
16122
|
|
|
16107
|
-
function _slicedToArray$
|
|
16123
|
+
function _slicedToArray$c(arr, i) { return _arrayWithHoles$d(arr) || _iterableToArrayLimit$c(arr, i) || _unsupportedIterableToArray$k(arr, i) || _nonIterableRest$d(); }
|
|
16108
16124
|
|
|
16109
|
-
function _nonIterableRest$
|
|
16125
|
+
function _nonIterableRest$d() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
16110
16126
|
|
|
16111
|
-
function _unsupportedIterableToArray$
|
|
16127
|
+
function _unsupportedIterableToArray$k(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$k(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$k(o, minLen); }
|
|
16112
16128
|
|
|
16113
|
-
function _arrayLikeToArray$
|
|
16129
|
+
function _arrayLikeToArray$k(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
16114
16130
|
|
|
16115
|
-
function _iterableToArrayLimit$
|
|
16131
|
+
function _iterableToArrayLimit$c(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
16116
16132
|
|
|
16117
|
-
function _arrayWithHoles$
|
|
16133
|
+
function _arrayWithHoles$d(arr) { if (Array.isArray(arr)) return arr; }
|
|
16118
16134
|
|
|
16119
16135
|
var FILE_INVALID_TYPE = "file-invalid-type";
|
|
16120
16136
|
var FILE_TOO_LARGE = "file-too-large";
|
|
@@ -16194,11 +16210,11 @@ function allFilesAccepted(_ref) {
|
|
|
16194
16210
|
|
|
16195
16211
|
return files.every(function (file) {
|
|
16196
16212
|
var _fileAccepted = fileAccepted(file, accept),
|
|
16197
|
-
_fileAccepted2 = _slicedToArray$
|
|
16213
|
+
_fileAccepted2 = _slicedToArray$c(_fileAccepted, 1),
|
|
16198
16214
|
accepted = _fileAccepted2[0];
|
|
16199
16215
|
|
|
16200
16216
|
var _fileMatchSize = fileMatchSize(file, minSize, maxSize),
|
|
16201
|
-
_fileMatchSize2 = _slicedToArray$
|
|
16217
|
+
_fileMatchSize2 = _slicedToArray$c(_fileMatchSize, 1),
|
|
16202
16218
|
sizeMatch = _fileMatchSize2[0];
|
|
16203
16219
|
|
|
16204
16220
|
var customErrors = validator ? validator(file) : null;
|
|
@@ -16295,7 +16311,7 @@ function canUseFileSystemAccessAPI() {
|
|
|
16295
16311
|
function pickerOptionsFromAccept(accept) {
|
|
16296
16312
|
if (isDefined(accept)) {
|
|
16297
16313
|
var acceptForPicker = Object.entries(accept).filter(function (_ref2) {
|
|
16298
|
-
var _ref3 = _slicedToArray$
|
|
16314
|
+
var _ref3 = _slicedToArray$c(_ref2, 2),
|
|
16299
16315
|
mimeType = _ref3[0],
|
|
16300
16316
|
ext = _ref3[1];
|
|
16301
16317
|
|
|
@@ -16313,11 +16329,11 @@ function pickerOptionsFromAccept(accept) {
|
|
|
16313
16329
|
|
|
16314
16330
|
return ok;
|
|
16315
16331
|
}).reduce(function (agg, _ref4) {
|
|
16316
|
-
var _ref5 = _slicedToArray$
|
|
16332
|
+
var _ref5 = _slicedToArray$c(_ref4, 2),
|
|
16317
16333
|
mimeType = _ref5[0],
|
|
16318
16334
|
ext = _ref5[1];
|
|
16319
16335
|
|
|
16320
|
-
return _objectSpread$
|
|
16336
|
+
return _objectSpread$q(_objectSpread$q({}, agg), {}, _defineProperty$s({}, mimeType, ext));
|
|
16321
16337
|
}, {});
|
|
16322
16338
|
return [{
|
|
16323
16339
|
// description is required due to https://crbug.com/1264708
|
|
@@ -16337,7 +16353,7 @@ function pickerOptionsFromAccept(accept) {
|
|
|
16337
16353
|
function acceptPropAsAcceptAttr(accept) {
|
|
16338
16354
|
if (isDefined(accept)) {
|
|
16339
16355
|
return Object.entries(accept).reduce(function (a, _ref6) {
|
|
16340
|
-
var _ref7 = _slicedToArray$
|
|
16356
|
+
var _ref7 = _slicedToArray$c(_ref6, 2),
|
|
16341
16357
|
mimeType = _ref7[0],
|
|
16342
16358
|
ext = _ref7[1];
|
|
16343
16359
|
|
|
@@ -16405,40 +16421,40 @@ function isExt(v) {
|
|
|
16405
16421
|
* @typedef {"file-invalid-type"|"file-too-large"|"file-too-small"|"too-many-files"} ErrorCode
|
|
16406
16422
|
*/
|
|
16407
16423
|
|
|
16408
|
-
var _excluded$
|
|
16409
|
-
_excluded2$
|
|
16424
|
+
var _excluded$d = ["children"],
|
|
16425
|
+
_excluded2$3 = ["open"],
|
|
16410
16426
|
_excluded3$1 = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"],
|
|
16411
16427
|
_excluded4 = ["refKey", "onChange", "onClick"];
|
|
16412
16428
|
|
|
16413
|
-
function _toConsumableArray$b(arr) { return _arrayWithoutHoles$b(arr) || _iterableToArray$c(arr) || _unsupportedIterableToArray$
|
|
16429
|
+
function _toConsumableArray$b(arr) { return _arrayWithoutHoles$b(arr) || _iterableToArray$c(arr) || _unsupportedIterableToArray$j(arr) || _nonIterableSpread$b(); }
|
|
16414
16430
|
|
|
16415
16431
|
function _nonIterableSpread$b() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
16416
16432
|
|
|
16417
16433
|
function _iterableToArray$c(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
16418
16434
|
|
|
16419
|
-
function _arrayWithoutHoles$b(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$
|
|
16435
|
+
function _arrayWithoutHoles$b(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$j(arr); }
|
|
16420
16436
|
|
|
16421
|
-
function _slicedToArray$
|
|
16437
|
+
function _slicedToArray$b(arr, i) { return _arrayWithHoles$c(arr) || _iterableToArrayLimit$b(arr, i) || _unsupportedIterableToArray$j(arr, i) || _nonIterableRest$c(); }
|
|
16422
16438
|
|
|
16423
|
-
function _nonIterableRest$
|
|
16439
|
+
function _nonIterableRest$c() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
16424
16440
|
|
|
16425
|
-
function _unsupportedIterableToArray$
|
|
16441
|
+
function _unsupportedIterableToArray$j(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$j(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$j(o, minLen); }
|
|
16426
16442
|
|
|
16427
|
-
function _arrayLikeToArray$
|
|
16443
|
+
function _arrayLikeToArray$j(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
16428
16444
|
|
|
16429
|
-
function _iterableToArrayLimit$
|
|
16445
|
+
function _iterableToArrayLimit$b(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
16430
16446
|
|
|
16431
|
-
function _arrayWithHoles$
|
|
16447
|
+
function _arrayWithHoles$c(arr) { if (Array.isArray(arr)) return arr; }
|
|
16432
16448
|
|
|
16433
|
-
function ownKeys$
|
|
16449
|
+
function ownKeys$p(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
16434
16450
|
|
|
16435
|
-
function _objectSpread$
|
|
16451
|
+
function _objectSpread$p(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$p(Object(source), !0).forEach(function (key) { _defineProperty$r(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$p(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
16436
16452
|
|
|
16437
|
-
function _defineProperty$
|
|
16453
|
+
function _defineProperty$r(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
16438
16454
|
|
|
16439
|
-
function _objectWithoutProperties$
|
|
16455
|
+
function _objectWithoutProperties$d(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$d(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
16440
16456
|
|
|
16441
|
-
function _objectWithoutPropertiesLoose$
|
|
16457
|
+
function _objectWithoutPropertiesLoose$d(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
16442
16458
|
/**
|
|
16443
16459
|
* Convenience wrapper component for the `useDropzone` hook
|
|
16444
16460
|
*
|
|
@@ -16456,11 +16472,11 @@ function _objectWithoutPropertiesLoose$g(source, excluded) { if (source == null)
|
|
|
16456
16472
|
|
|
16457
16473
|
var Dropzone = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
16458
16474
|
var children = _ref.children,
|
|
16459
|
-
params = _objectWithoutProperties$
|
|
16475
|
+
params = _objectWithoutProperties$d(_ref, _excluded$d);
|
|
16460
16476
|
|
|
16461
16477
|
var _useDropzone = useDropzone(params),
|
|
16462
16478
|
open = _useDropzone.open,
|
|
16463
|
-
props = _objectWithoutProperties$
|
|
16479
|
+
props = _objectWithoutProperties$d(_useDropzone, _excluded2$3);
|
|
16464
16480
|
|
|
16465
16481
|
useImperativeHandle(ref, function () {
|
|
16466
16482
|
return {
|
|
@@ -16468,13 +16484,13 @@ var Dropzone = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
16468
16484
|
};
|
|
16469
16485
|
}, [open]); // TODO: Figure out why react-styleguidist cannot create docs if we don't return a jsx element
|
|
16470
16486
|
|
|
16471
|
-
return /*#__PURE__*/React__default.createElement(Fragment, null, children(_objectSpread$
|
|
16487
|
+
return /*#__PURE__*/React__default.createElement(Fragment, null, children(_objectSpread$p(_objectSpread$p({}, props), {}, {
|
|
16472
16488
|
open: open
|
|
16473
16489
|
})));
|
|
16474
16490
|
});
|
|
16475
16491
|
Dropzone.displayName = "Dropzone"; // Add default props for react-docgen
|
|
16476
16492
|
|
|
16477
|
-
var defaultProps$
|
|
16493
|
+
var defaultProps$1 = {
|
|
16478
16494
|
disabled: false,
|
|
16479
16495
|
getFilesFromEvent: fromEvent,
|
|
16480
16496
|
maxSize: Infinity,
|
|
@@ -16490,7 +16506,7 @@ var defaultProps$2 = {
|
|
|
16490
16506
|
useFsAccessApi: true,
|
|
16491
16507
|
autoFocus: false
|
|
16492
16508
|
};
|
|
16493
|
-
Dropzone.defaultProps = defaultProps$
|
|
16509
|
+
Dropzone.defaultProps = defaultProps$1;
|
|
16494
16510
|
Dropzone.propTypes = {
|
|
16495
16511
|
/**
|
|
16496
16512
|
* Render function that exposes the dropzone state and prop getter fns
|
|
@@ -16841,7 +16857,7 @@ var initialState = {
|
|
|
16841
16857
|
function useDropzone() {
|
|
16842
16858
|
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
16843
16859
|
|
|
16844
|
-
var _defaultProps$props = _objectSpread$
|
|
16860
|
+
var _defaultProps$props = _objectSpread$p(_objectSpread$p({}, defaultProps$1), props),
|
|
16845
16861
|
accept = _defaultProps$props.accept,
|
|
16846
16862
|
disabled = _defaultProps$props.disabled,
|
|
16847
16863
|
getFilesFromEvent = _defaultProps$props.getFilesFromEvent,
|
|
@@ -16888,7 +16904,7 @@ function useDropzone() {
|
|
|
16888
16904
|
var inputRef = useRef(null);
|
|
16889
16905
|
|
|
16890
16906
|
var _useReducer = useReducer(reducer$1, initialState),
|
|
16891
|
-
_useReducer2 = _slicedToArray$
|
|
16907
|
+
_useReducer2 = _slicedToArray$b(_useReducer, 2),
|
|
16892
16908
|
state = _useReducer2[0],
|
|
16893
16909
|
dispatch = _useReducer2[1];
|
|
16894
16910
|
|
|
@@ -17058,12 +17074,12 @@ function useDropzone() {
|
|
|
17058
17074
|
var fileRejections = [];
|
|
17059
17075
|
files.forEach(function (file) {
|
|
17060
17076
|
var _fileAccepted = fileAccepted(file, acceptAttr),
|
|
17061
|
-
_fileAccepted2 = _slicedToArray$
|
|
17077
|
+
_fileAccepted2 = _slicedToArray$b(_fileAccepted, 2),
|
|
17062
17078
|
accepted = _fileAccepted2[0],
|
|
17063
17079
|
acceptError = _fileAccepted2[1];
|
|
17064
17080
|
|
|
17065
17081
|
var _fileMatchSize = fileMatchSize(file, minSize, maxSize),
|
|
17066
|
-
_fileMatchSize2 = _slicedToArray$
|
|
17082
|
+
_fileMatchSize2 = _slicedToArray$b(_fileMatchSize, 2),
|
|
17067
17083
|
sizeMatch = _fileMatchSize2[0],
|
|
17068
17084
|
sizeError = _fileMatchSize2[1];
|
|
17069
17085
|
|
|
@@ -17264,9 +17280,9 @@ function useDropzone() {
|
|
|
17264
17280
|
onDragOver = _ref2.onDragOver,
|
|
17265
17281
|
onDragLeave = _ref2.onDragLeave,
|
|
17266
17282
|
onDrop = _ref2.onDrop,
|
|
17267
|
-
rest = _objectWithoutProperties$
|
|
17283
|
+
rest = _objectWithoutProperties$d(_ref2, _excluded3$1);
|
|
17268
17284
|
|
|
17269
|
-
return _objectSpread$
|
|
17285
|
+
return _objectSpread$p(_objectSpread$p(_defineProperty$r({
|
|
17270
17286
|
onKeyDown: composeKeyboardHandler(composeEventHandlers(onKeyDown, onKeyDownCb)),
|
|
17271
17287
|
onFocus: composeKeyboardHandler(composeEventHandlers(onFocus, onFocusCb)),
|
|
17272
17288
|
onBlur: composeKeyboardHandler(composeEventHandlers(onBlur, onBlurCb)),
|
|
@@ -17291,9 +17307,9 @@ function useDropzone() {
|
|
|
17291
17307
|
refKey = _ref3$refKey === void 0 ? "ref" : _ref3$refKey,
|
|
17292
17308
|
onChange = _ref3.onChange,
|
|
17293
17309
|
onClick = _ref3.onClick,
|
|
17294
|
-
rest = _objectWithoutProperties$
|
|
17310
|
+
rest = _objectWithoutProperties$d(_ref3, _excluded4);
|
|
17295
17311
|
|
|
17296
|
-
var inputProps = _defineProperty$
|
|
17312
|
+
var inputProps = _defineProperty$r({
|
|
17297
17313
|
accept: acceptAttr,
|
|
17298
17314
|
multiple: multiple,
|
|
17299
17315
|
type: "file",
|
|
@@ -17305,10 +17321,10 @@ function useDropzone() {
|
|
|
17305
17321
|
tabIndex: -1
|
|
17306
17322
|
}, refKey, inputRef);
|
|
17307
17323
|
|
|
17308
|
-
return _objectSpread$
|
|
17324
|
+
return _objectSpread$p(_objectSpread$p({}, inputProps), rest);
|
|
17309
17325
|
};
|
|
17310
17326
|
}, [inputRef, accept, multiple, onDropCb, disabled]);
|
|
17311
|
-
return _objectSpread$
|
|
17327
|
+
return _objectSpread$p(_objectSpread$p({}, state), {}, {
|
|
17312
17328
|
isFocused: isFocused && !disabled,
|
|
17313
17329
|
getRootProps: getRootProps,
|
|
17314
17330
|
getInputProps: getInputProps,
|
|
@@ -17327,40 +17343,40 @@ function reducer$1(state, action) {
|
|
|
17327
17343
|
/* istanbul ignore next */
|
|
17328
17344
|
switch (action.type) {
|
|
17329
17345
|
case "focus":
|
|
17330
|
-
return _objectSpread$
|
|
17346
|
+
return _objectSpread$p(_objectSpread$p({}, state), {}, {
|
|
17331
17347
|
isFocused: true
|
|
17332
17348
|
});
|
|
17333
17349
|
|
|
17334
17350
|
case "blur":
|
|
17335
|
-
return _objectSpread$
|
|
17351
|
+
return _objectSpread$p(_objectSpread$p({}, state), {}, {
|
|
17336
17352
|
isFocused: false
|
|
17337
17353
|
});
|
|
17338
17354
|
|
|
17339
17355
|
case "openDialog":
|
|
17340
|
-
return _objectSpread$
|
|
17356
|
+
return _objectSpread$p(_objectSpread$p({}, initialState), {}, {
|
|
17341
17357
|
isFileDialogActive: true
|
|
17342
17358
|
});
|
|
17343
17359
|
|
|
17344
17360
|
case "closeDialog":
|
|
17345
|
-
return _objectSpread$
|
|
17361
|
+
return _objectSpread$p(_objectSpread$p({}, state), {}, {
|
|
17346
17362
|
isFileDialogActive: false
|
|
17347
17363
|
});
|
|
17348
17364
|
|
|
17349
17365
|
case "setDraggedFiles":
|
|
17350
|
-
return _objectSpread$
|
|
17366
|
+
return _objectSpread$p(_objectSpread$p({}, state), {}, {
|
|
17351
17367
|
isDragActive: action.isDragActive,
|
|
17352
17368
|
isDragAccept: action.isDragAccept,
|
|
17353
17369
|
isDragReject: action.isDragReject
|
|
17354
17370
|
});
|
|
17355
17371
|
|
|
17356
17372
|
case "setFiles":
|
|
17357
|
-
return _objectSpread$
|
|
17373
|
+
return _objectSpread$p(_objectSpread$p({}, state), {}, {
|
|
17358
17374
|
acceptedFiles: action.acceptedFiles,
|
|
17359
17375
|
fileRejections: action.fileRejections
|
|
17360
17376
|
});
|
|
17361
17377
|
|
|
17362
17378
|
case "reset":
|
|
17363
|
-
return _objectSpread$
|
|
17379
|
+
return _objectSpread$p({}, initialState);
|
|
17364
17380
|
|
|
17365
17381
|
default:
|
|
17366
17382
|
return state;
|
|
@@ -19588,7 +19604,7 @@ function shallowEqual(a, b) {
|
|
|
19588
19604
|
return true;
|
|
19589
19605
|
}
|
|
19590
19606
|
|
|
19591
|
-
function _typeof$
|
|
19607
|
+
function _typeof$s(obj) { "@babel/helpers - typeof"; return _typeof$s = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$s(obj); }
|
|
19592
19608
|
|
|
19593
19609
|
//
|
|
19594
19610
|
// Event Handler Types -- Copied from @types/react/index.d.ts and adapted for Props.
|
|
@@ -19615,9 +19631,7 @@ var FilteredElementKeyMap = {
|
|
|
19615
19631
|
};
|
|
19616
19632
|
var EventKeys = ['dangerouslySetInnerHTML', 'onCopy', 'onCopyCapture', 'onCut', 'onCutCapture', 'onPaste', 'onPasteCapture', 'onCompositionEnd', 'onCompositionEndCapture', 'onCompositionStart', 'onCompositionStartCapture', 'onCompositionUpdate', 'onCompositionUpdateCapture', 'onFocus', 'onFocusCapture', 'onBlur', 'onBlurCapture', 'onChange', 'onChangeCapture', 'onBeforeInput', 'onBeforeInputCapture', 'onInput', 'onInputCapture', 'onReset', 'onResetCapture', 'onSubmit', 'onSubmitCapture', 'onInvalid', 'onInvalidCapture', 'onLoad', 'onLoadCapture', 'onError', 'onErrorCapture', 'onKeyDown', 'onKeyDownCapture', 'onKeyPress', 'onKeyPressCapture', 'onKeyUp', 'onKeyUpCapture', 'onAbort', 'onAbortCapture', 'onCanPlay', 'onCanPlayCapture', 'onCanPlayThrough', 'onCanPlayThroughCapture', 'onDurationChange', 'onDurationChangeCapture', 'onEmptied', 'onEmptiedCapture', 'onEncrypted', 'onEncryptedCapture', 'onEnded', 'onEndedCapture', 'onLoadedData', 'onLoadedDataCapture', 'onLoadedMetadata', 'onLoadedMetadataCapture', 'onLoadStart', 'onLoadStartCapture', 'onPause', 'onPauseCapture', 'onPlay', 'onPlayCapture', 'onPlaying', 'onPlayingCapture', 'onProgress', 'onProgressCapture', 'onRateChange', 'onRateChangeCapture', 'onSeeked', 'onSeekedCapture', 'onSeeking', 'onSeekingCapture', 'onStalled', 'onStalledCapture', 'onSuspend', 'onSuspendCapture', 'onTimeUpdate', 'onTimeUpdateCapture', 'onVolumeChange', 'onVolumeChangeCapture', 'onWaiting', 'onWaitingCapture', 'onAuxClick', 'onAuxClickCapture', 'onClick', 'onClickCapture', 'onContextMenu', 'onContextMenuCapture', 'onDoubleClick', 'onDoubleClickCapture', 'onDrag', 'onDragCapture', 'onDragEnd', 'onDragEndCapture', 'onDragEnter', 'onDragEnterCapture', 'onDragExit', 'onDragExitCapture', 'onDragLeave', 'onDragLeaveCapture', 'onDragOver', 'onDragOverCapture', 'onDragStart', 'onDragStartCapture', 'onDrop', 'onDropCapture', 'onMouseDown', 'onMouseDownCapture', 'onMouseEnter', 'onMouseLeave', 'onMouseMove', 'onMouseMoveCapture', 'onMouseOut', 'onMouseOutCapture', 'onMouseOver', 'onMouseOverCapture', 'onMouseUp', 'onMouseUpCapture', 'onSelect', 'onSelectCapture', 'onTouchCancel', 'onTouchCancelCapture', 'onTouchEnd', 'onTouchEndCapture', 'onTouchMove', 'onTouchMoveCapture', 'onTouchStart', 'onTouchStartCapture', 'onPointerDown', 'onPointerDownCapture', 'onPointerMove', 'onPointerMoveCapture', 'onPointerUp', 'onPointerUpCapture', 'onPointerCancel', 'onPointerCancelCapture', 'onPointerEnter', 'onPointerEnterCapture', 'onPointerLeave', 'onPointerLeaveCapture', 'onPointerOver', 'onPointerOverCapture', 'onPointerOut', 'onPointerOutCapture', 'onGotPointerCapture', 'onGotPointerCaptureCapture', 'onLostPointerCapture', 'onLostPointerCaptureCapture', 'onScroll', 'onScrollCapture', 'onWheel', 'onWheelCapture', 'onAnimationStart', 'onAnimationStartCapture', 'onAnimationEnd', 'onAnimationEndCapture', 'onAnimationIteration', 'onAnimationIterationCapture', 'onTransitionEnd', 'onTransitionEndCapture'];
|
|
19617
19633
|
|
|
19618
|
-
|
|
19619
|
-
|
|
19620
|
-
/** Specifies the duration of animation, the unit of this option is ms. */
|
|
19634
|
+
// Animation Types => TODO: Should be moved when react-smooth is typescriptified.
|
|
19621
19635
|
|
|
19622
19636
|
/** the offset of a chart, which define the blank space all around */
|
|
19623
19637
|
|
|
@@ -19653,7 +19667,7 @@ var getEventHandlerOfChild = function getEventHandlerOfChild(originalHandler, da
|
|
|
19653
19667
|
};
|
|
19654
19668
|
};
|
|
19655
19669
|
var adaptEventsOfChild = function adaptEventsOfChild(props, data, index) {
|
|
19656
|
-
if (!isObject_1(props) || _typeof$
|
|
19670
|
+
if (!isObject_1(props) || _typeof$s(props) !== 'object') {
|
|
19657
19671
|
return null;
|
|
19658
19672
|
}
|
|
19659
19673
|
var out = null;
|
|
@@ -19667,11 +19681,11 @@ var adaptEventsOfChild = function adaptEventsOfChild(props, data, index) {
|
|
|
19667
19681
|
return out;
|
|
19668
19682
|
};
|
|
19669
19683
|
|
|
19670
|
-
var _excluded$
|
|
19671
|
-
_excluded2$
|
|
19672
|
-
function _objectWithoutProperties$
|
|
19673
|
-
function _objectWithoutPropertiesLoose$
|
|
19674
|
-
function _typeof$
|
|
19684
|
+
var _excluded$c = ["children"],
|
|
19685
|
+
_excluded2$2 = ["children"];
|
|
19686
|
+
function _objectWithoutProperties$c(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$c(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
19687
|
+
function _objectWithoutPropertiesLoose$c(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
19688
|
+
function _typeof$r(obj) { "@babel/helpers - typeof"; return _typeof$r = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$r(obj); }
|
|
19675
19689
|
var REACT_BROWSER_EVENT_MAP = {
|
|
19676
19690
|
click: 'onClick',
|
|
19677
19691
|
mousedown: 'onMouseDown',
|
|
@@ -19778,7 +19792,7 @@ var isSvgElement = function isSvgElement(child) {
|
|
|
19778
19792
|
return child && child.type && isString_1(child.type) && SVG_TAGS.indexOf(child.type) >= 0;
|
|
19779
19793
|
};
|
|
19780
19794
|
var isDotProps = function isDotProps(dot) {
|
|
19781
|
-
return dot && _typeof$
|
|
19795
|
+
return dot && _typeof$r(dot) === 'object' && 'cx' in dot && 'cy' in dot && 'r' in dot;
|
|
19782
19796
|
};
|
|
19783
19797
|
|
|
19784
19798
|
/**
|
|
@@ -19870,10 +19884,10 @@ var isSingleChildEqual = function isSingleChildEqual(nextChild, prevChild) {
|
|
|
19870
19884
|
if (!isNil_1(nextChild) && !isNil_1(prevChild)) {
|
|
19871
19885
|
var _ref = nextChild.props || {},
|
|
19872
19886
|
nextChildren = _ref.children,
|
|
19873
|
-
nextProps = _objectWithoutProperties$
|
|
19887
|
+
nextProps = _objectWithoutProperties$c(_ref, _excluded$c);
|
|
19874
19888
|
var _ref2 = prevChild.props || {},
|
|
19875
19889
|
prevChildren = _ref2.children,
|
|
19876
|
-
prevProps = _objectWithoutProperties$
|
|
19890
|
+
prevProps = _objectWithoutProperties$c(_ref2, _excluded2$2);
|
|
19877
19891
|
if (nextChildren && prevChildren) {
|
|
19878
19892
|
return shallowEqual(nextProps, prevProps) && isChildrenEqual(nextChildren, prevChildren);
|
|
19879
19893
|
}
|
|
@@ -19915,10 +19929,10 @@ var parseChildIndex = function parseChildIndex(child, children) {
|
|
|
19915
19929
|
return toArray(children).indexOf(child);
|
|
19916
19930
|
};
|
|
19917
19931
|
|
|
19918
|
-
var _excluded$
|
|
19932
|
+
var _excluded$b = ["children", "width", "height", "viewBox", "className", "style"];
|
|
19919
19933
|
function _extends$m() { _extends$m = Object.assign ? Object.assign.bind() : 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$m.apply(this, arguments); }
|
|
19920
|
-
function _objectWithoutProperties$
|
|
19921
|
-
function _objectWithoutPropertiesLoose$
|
|
19934
|
+
function _objectWithoutProperties$b(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$b(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
19935
|
+
function _objectWithoutPropertiesLoose$b(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
19922
19936
|
function Surface(props) {
|
|
19923
19937
|
var children = props.children,
|
|
19924
19938
|
width = props.width,
|
|
@@ -19926,7 +19940,7 @@ function Surface(props) {
|
|
|
19926
19940
|
viewBox = props.viewBox,
|
|
19927
19941
|
className = props.className,
|
|
19928
19942
|
style = props.style,
|
|
19929
|
-
others = _objectWithoutProperties$
|
|
19943
|
+
others = _objectWithoutProperties$b(props, _excluded$b);
|
|
19930
19944
|
var svgView = viewBox || {
|
|
19931
19945
|
width: width,
|
|
19932
19946
|
height: height,
|
|
@@ -19943,14 +19957,14 @@ function Surface(props) {
|
|
|
19943
19957
|
}), /*#__PURE__*/React__default.createElement("title", null, props.title), /*#__PURE__*/React__default.createElement("desc", null, props.desc), children);
|
|
19944
19958
|
}
|
|
19945
19959
|
|
|
19946
|
-
var _excluded$
|
|
19960
|
+
var _excluded$a = ["children", "className"];
|
|
19947
19961
|
function _extends$l() { _extends$l = Object.assign ? Object.assign.bind() : 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$l.apply(this, arguments); }
|
|
19948
|
-
function _objectWithoutProperties$
|
|
19949
|
-
function _objectWithoutPropertiesLoose$
|
|
19962
|
+
function _objectWithoutProperties$a(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$a(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
19963
|
+
function _objectWithoutPropertiesLoose$a(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
19950
19964
|
var Layer = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
|
|
19951
19965
|
var children = props.children,
|
|
19952
19966
|
className = props.className,
|
|
19953
|
-
others = _objectWithoutProperties$
|
|
19967
|
+
others = _objectWithoutProperties$a(props, _excluded$a);
|
|
19954
19968
|
var layerClass = classNames('recharts-layer', className);
|
|
19955
19969
|
return /*#__PURE__*/React__default.createElement("g", _extends$l({
|
|
19956
19970
|
className: layerClass
|
|
@@ -23365,16 +23379,7 @@ function stackOffsetWiggle(series, order) {
|
|
|
23365
23379
|
stackOffsetNone(series, order);
|
|
23366
23380
|
}
|
|
23367
23381
|
|
|
23368
|
-
function _typeof$u(obj) { "@babel/helpers - typeof"; return _typeof$u = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$u(obj); }
|
|
23369
|
-
var _excluded$c = ["type", "size", "sizeType"];
|
|
23370
23382
|
function _extends$k() { _extends$k = Object.assign ? Object.assign.bind() : 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$k.apply(this, arguments); }
|
|
23371
|
-
function ownKeys$s(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
23372
|
-
function _objectSpread$s(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$s(Object(source), !0).forEach(function (key) { _defineProperty$u(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$s(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
23373
|
-
function _defineProperty$u(obj, key, value) { key = _toPropertyKey$t(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
23374
|
-
function _toPropertyKey$t(arg) { var key = _toPrimitive$t(arg, "string"); return _typeof$u(key) === "symbol" ? key : String(key); }
|
|
23375
|
-
function _toPrimitive$t(input, hint) { if (_typeof$u(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$u(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
23376
|
-
function _objectWithoutProperties$c(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$c(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
23377
|
-
function _objectWithoutPropertiesLoose$c(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
23378
23383
|
var symbolFactories = {
|
|
23379
23384
|
symbolCircle: symbolCircle,
|
|
23380
23385
|
symbolCross: symbolCross,
|
|
@@ -23413,35 +23418,31 @@ var calculateAreaSize = function calculateAreaSize(size, sizeType, type) {
|
|
|
23413
23418
|
return Math.PI * size * size / 4;
|
|
23414
23419
|
}
|
|
23415
23420
|
};
|
|
23421
|
+
var symbolsDefaultProps = {
|
|
23422
|
+
type: 'circle',
|
|
23423
|
+
size: 64,
|
|
23424
|
+
sizeType: 'area'
|
|
23425
|
+
};
|
|
23416
23426
|
var registerSymbol = function registerSymbol(key, factory) {
|
|
23417
23427
|
symbolFactories["symbol".concat(upperFirst_1(key))] = factory;
|
|
23418
23428
|
};
|
|
23419
|
-
var Symbols = function Symbols(
|
|
23420
|
-
var _ref$type = _ref.type,
|
|
23421
|
-
type = _ref$type === void 0 ? 'circle' : _ref$type,
|
|
23422
|
-
_ref$size = _ref.size,
|
|
23423
|
-
size = _ref$size === void 0 ? 64 : _ref$size,
|
|
23424
|
-
_ref$sizeType = _ref.sizeType,
|
|
23425
|
-
sizeType = _ref$sizeType === void 0 ? 'area' : _ref$sizeType,
|
|
23426
|
-
rest = _objectWithoutProperties$c(_ref, _excluded$c);
|
|
23427
|
-
var props = _objectSpread$s(_objectSpread$s({}, rest), {}, {
|
|
23428
|
-
type: type,
|
|
23429
|
-
size: size,
|
|
23430
|
-
sizeType: sizeType
|
|
23431
|
-
});
|
|
23432
|
-
|
|
23429
|
+
var Symbols = function Symbols(props) {
|
|
23433
23430
|
/**
|
|
23434
23431
|
* Calculate the path of curve
|
|
23435
23432
|
* @return {String} path
|
|
23436
23433
|
*/
|
|
23437
23434
|
var getPath = function getPath() {
|
|
23435
|
+
var size = props.size,
|
|
23436
|
+
sizeType = props.sizeType,
|
|
23437
|
+
type = props.type;
|
|
23438
23438
|
var symbolFactory = getSymbolFactory(type);
|
|
23439
23439
|
var symbol = Symbol$2().type(symbolFactory).size(calculateAreaSize(size, sizeType, type));
|
|
23440
23440
|
return symbol();
|
|
23441
23441
|
};
|
|
23442
23442
|
var className = props.className,
|
|
23443
23443
|
cx = props.cx,
|
|
23444
|
-
cy = props.cy
|
|
23444
|
+
cy = props.cy,
|
|
23445
|
+
size = props.size;
|
|
23445
23446
|
var filteredProps = filterProps(props, true);
|
|
23446
23447
|
if (cx === +cx && cy === +cy && size === +size) {
|
|
23447
23448
|
return /*#__PURE__*/React__default.createElement("path", _extends$k({}, filteredProps, {
|
|
@@ -23452,34 +23453,35 @@ var Symbols = function Symbols(_ref) {
|
|
|
23452
23453
|
}
|
|
23453
23454
|
return null;
|
|
23454
23455
|
};
|
|
23456
|
+
Symbols.defaultProps = symbolsDefaultProps;
|
|
23455
23457
|
Symbols.registerSymbol = registerSymbol;
|
|
23456
23458
|
|
|
23457
|
-
function _typeof$
|
|
23459
|
+
function _typeof$q(obj) { "@babel/helpers - typeof"; return _typeof$q = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$q(obj); }
|
|
23458
23460
|
function _extends$j() { _extends$j = Object.assign ? Object.assign.bind() : 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$j.apply(this, arguments); }
|
|
23459
|
-
function ownKeys$
|
|
23460
|
-
function _objectSpread$
|
|
23461
|
-
function _classCallCheck$
|
|
23462
|
-
function _defineProperties$
|
|
23463
|
-
function _createClass$
|
|
23464
|
-
function _inherits$
|
|
23465
|
-
function _setPrototypeOf$
|
|
23466
|
-
function _createSuper$
|
|
23467
|
-
function _possibleConstructorReturn$
|
|
23468
|
-
function _assertThisInitialized$
|
|
23469
|
-
function _isNativeReflectConstruct$
|
|
23470
|
-
function _getPrototypeOf$
|
|
23471
|
-
function _defineProperty$
|
|
23472
|
-
function _toPropertyKey$
|
|
23473
|
-
function _toPrimitive$
|
|
23461
|
+
function ownKeys$o(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
23462
|
+
function _objectSpread$o(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$o(Object(source), !0).forEach(function (key) { _defineProperty$q(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$o(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
23463
|
+
function _classCallCheck$a(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
23464
|
+
function _defineProperties$a(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey$p(descriptor.key), descriptor); } }
|
|
23465
|
+
function _createClass$a(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$a(Constructor.prototype, protoProps); if (staticProps) _defineProperties$a(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
23466
|
+
function _inherits$8(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf$8(subClass, superClass); }
|
|
23467
|
+
function _setPrototypeOf$8(o, p) { _setPrototypeOf$8 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$8(o, p); }
|
|
23468
|
+
function _createSuper$8(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$8(); return function _createSuperInternal() { var Super = _getPrototypeOf$8(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$8(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$8(this, result); }; }
|
|
23469
|
+
function _possibleConstructorReturn$8(self, call) { if (call && (_typeof$q(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized$8(self); }
|
|
23470
|
+
function _assertThisInitialized$8(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
23471
|
+
function _isNativeReflectConstruct$8() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
23472
|
+
function _getPrototypeOf$8(o) { _getPrototypeOf$8 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$8(o); }
|
|
23473
|
+
function _defineProperty$q(obj, key, value) { key = _toPropertyKey$p(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
23474
|
+
function _toPropertyKey$p(arg) { var key = _toPrimitive$p(arg, "string"); return _typeof$q(key) === "symbol" ? key : String(key); }
|
|
23475
|
+
function _toPrimitive$p(input, hint) { if (_typeof$q(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$q(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
23474
23476
|
var SIZE = 32;
|
|
23475
23477
|
var DefaultLegendContent = /*#__PURE__*/function (_PureComponent) {
|
|
23476
|
-
_inherits$
|
|
23477
|
-
var _super = _createSuper$
|
|
23478
|
+
_inherits$8(DefaultLegendContent, _PureComponent);
|
|
23479
|
+
var _super = _createSuper$8(DefaultLegendContent);
|
|
23478
23480
|
function DefaultLegendContent() {
|
|
23479
|
-
_classCallCheck$
|
|
23481
|
+
_classCallCheck$a(this, DefaultLegendContent);
|
|
23480
23482
|
return _super.apply(this, arguments);
|
|
23481
23483
|
}
|
|
23482
|
-
_createClass$
|
|
23484
|
+
_createClass$a(DefaultLegendContent, [{
|
|
23483
23485
|
key: "renderIcon",
|
|
23484
23486
|
value:
|
|
23485
23487
|
/**
|
|
@@ -23524,7 +23526,7 @@ var DefaultLegendContent = /*#__PURE__*/function (_PureComponent) {
|
|
|
23524
23526
|
});
|
|
23525
23527
|
}
|
|
23526
23528
|
if ( /*#__PURE__*/React__default.isValidElement(data.legendIcon)) {
|
|
23527
|
-
var iconProps = _objectSpread$
|
|
23529
|
+
var iconProps = _objectSpread$o({}, data);
|
|
23528
23530
|
delete iconProps.legendIcon;
|
|
23529
23531
|
return /*#__PURE__*/React__default.cloneElement(data.legendIcon, iconProps);
|
|
23530
23532
|
}
|
|
@@ -23572,7 +23574,7 @@ var DefaultLegendContent = /*#__PURE__*/function (_PureComponent) {
|
|
|
23572
23574
|
var finalFormatter = entry.formatter || formatter;
|
|
23573
23575
|
var className = classNames((_classNames = {
|
|
23574
23576
|
'recharts-legend-item': true
|
|
23575
|
-
}, _defineProperty$
|
|
23577
|
+
}, _defineProperty$q(_classNames, "legend-item-".concat(i), true), _defineProperty$q(_classNames, "inactive", entry.inactive), _classNames));
|
|
23576
23578
|
if (entry.type === 'none') {
|
|
23577
23579
|
return null;
|
|
23578
23580
|
}
|
|
@@ -23617,8 +23619,8 @@ var DefaultLegendContent = /*#__PURE__*/function (_PureComponent) {
|
|
|
23617
23619
|
}]);
|
|
23618
23620
|
return DefaultLegendContent;
|
|
23619
23621
|
}(PureComponent);
|
|
23620
|
-
_defineProperty$
|
|
23621
|
-
_defineProperty$
|
|
23622
|
+
_defineProperty$q(DefaultLegendContent, "displayName", 'Legend');
|
|
23623
|
+
_defineProperty$q(DefaultLegendContent, "defaultProps", {
|
|
23622
23624
|
iconSize: 14,
|
|
23623
23625
|
layout: 'horizontal',
|
|
23624
23626
|
align: 'center',
|
|
@@ -23626,25 +23628,25 @@ _defineProperty$t(DefaultLegendContent, "defaultProps", {
|
|
|
23626
23628
|
inactiveColor: '#ccc'
|
|
23627
23629
|
});
|
|
23628
23630
|
|
|
23629
|
-
function _typeof$
|
|
23630
|
-
var _excluded$
|
|
23631
|
-
function ownKeys$
|
|
23632
|
-
function _objectSpread$
|
|
23633
|
-
function _classCallCheck$
|
|
23634
|
-
function _defineProperties$
|
|
23635
|
-
function _createClass$
|
|
23636
|
-
function _inherits$
|
|
23637
|
-
function _setPrototypeOf$
|
|
23638
|
-
function _createSuper$
|
|
23639
|
-
function _possibleConstructorReturn$
|
|
23640
|
-
function _assertThisInitialized$
|
|
23641
|
-
function _isNativeReflectConstruct$
|
|
23642
|
-
function _getPrototypeOf$
|
|
23643
|
-
function _defineProperty$
|
|
23644
|
-
function _toPropertyKey$
|
|
23645
|
-
function _toPrimitive$
|
|
23646
|
-
function _objectWithoutProperties$
|
|
23647
|
-
function _objectWithoutPropertiesLoose$
|
|
23631
|
+
function _typeof$p(obj) { "@babel/helpers - typeof"; return _typeof$p = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$p(obj); }
|
|
23632
|
+
var _excluded$9 = ["ref"];
|
|
23633
|
+
function ownKeys$n(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
23634
|
+
function _objectSpread$n(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$n(Object(source), !0).forEach(function (key) { _defineProperty$p(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$n(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
23635
|
+
function _classCallCheck$9(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
23636
|
+
function _defineProperties$9(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey$o(descriptor.key), descriptor); } }
|
|
23637
|
+
function _createClass$9(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$9(Constructor.prototype, protoProps); if (staticProps) _defineProperties$9(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
23638
|
+
function _inherits$7(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf$7(subClass, superClass); }
|
|
23639
|
+
function _setPrototypeOf$7(o, p) { _setPrototypeOf$7 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$7(o, p); }
|
|
23640
|
+
function _createSuper$7(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$7(); return function _createSuperInternal() { var Super = _getPrototypeOf$7(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$7(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$7(this, result); }; }
|
|
23641
|
+
function _possibleConstructorReturn$7(self, call) { if (call && (_typeof$p(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized$7(self); }
|
|
23642
|
+
function _assertThisInitialized$7(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
23643
|
+
function _isNativeReflectConstruct$7() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
23644
|
+
function _getPrototypeOf$7(o) { _getPrototypeOf$7 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$7(o); }
|
|
23645
|
+
function _defineProperty$p(obj, key, value) { key = _toPropertyKey$o(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
23646
|
+
function _toPropertyKey$o(arg) { var key = _toPrimitive$o(arg, "string"); return _typeof$p(key) === "symbol" ? key : String(key); }
|
|
23647
|
+
function _toPrimitive$o(input, hint) { if (_typeof$p(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$p(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
23648
|
+
function _objectWithoutProperties$9(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$9(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
23649
|
+
function _objectWithoutPropertiesLoose$9(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
23648
23650
|
function defaultUniqBy$1(entry) {
|
|
23649
23651
|
return entry.value;
|
|
23650
23652
|
}
|
|
@@ -23665,27 +23667,27 @@ function renderContent$1(content, props) {
|
|
|
23665
23667
|
return /*#__PURE__*/React__default.createElement(content, props);
|
|
23666
23668
|
}
|
|
23667
23669
|
props.ref;
|
|
23668
|
-
var otherProps = _objectWithoutProperties$
|
|
23670
|
+
var otherProps = _objectWithoutProperties$9(props, _excluded$9);
|
|
23669
23671
|
return /*#__PURE__*/React__default.createElement(DefaultLegendContent, otherProps);
|
|
23670
23672
|
}
|
|
23671
23673
|
var EPS$2 = 1;
|
|
23672
23674
|
var Legend = /*#__PURE__*/function (_PureComponent) {
|
|
23673
|
-
_inherits$
|
|
23674
|
-
var _super = _createSuper$
|
|
23675
|
+
_inherits$7(Legend, _PureComponent);
|
|
23676
|
+
var _super = _createSuper$7(Legend);
|
|
23675
23677
|
function Legend() {
|
|
23676
23678
|
var _this;
|
|
23677
|
-
_classCallCheck$
|
|
23679
|
+
_classCallCheck$9(this, Legend);
|
|
23678
23680
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
23679
23681
|
args[_key] = arguments[_key];
|
|
23680
23682
|
}
|
|
23681
23683
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
23682
|
-
_defineProperty$
|
|
23684
|
+
_defineProperty$p(_assertThisInitialized$7(_this), "state", {
|
|
23683
23685
|
boxWidth: -1,
|
|
23684
23686
|
boxHeight: -1
|
|
23685
23687
|
});
|
|
23686
23688
|
return _this;
|
|
23687
23689
|
}
|
|
23688
|
-
_createClass$
|
|
23690
|
+
_createClass$9(Legend, [{
|
|
23689
23691
|
key: "componentDidMount",
|
|
23690
23692
|
value: function componentDidMount() {
|
|
23691
23693
|
this.updateBBox();
|
|
@@ -23760,7 +23762,7 @@ var Legend = /*#__PURE__*/function (_PureComponent) {
|
|
|
23760
23762
|
};
|
|
23761
23763
|
}
|
|
23762
23764
|
}
|
|
23763
|
-
return _objectSpread$
|
|
23765
|
+
return _objectSpread$n(_objectSpread$n({}, hPos), vPos);
|
|
23764
23766
|
}
|
|
23765
23767
|
}, {
|
|
23766
23768
|
key: "updateBBox",
|
|
@@ -23803,7 +23805,7 @@ var Legend = /*#__PURE__*/function (_PureComponent) {
|
|
|
23803
23805
|
wrapperStyle = _this$props2.wrapperStyle,
|
|
23804
23806
|
payloadUniqBy = _this$props2.payloadUniqBy,
|
|
23805
23807
|
payload = _this$props2.payload;
|
|
23806
|
-
var outerStyle = _objectSpread$
|
|
23808
|
+
var outerStyle = _objectSpread$n(_objectSpread$n({
|
|
23807
23809
|
position: 'absolute',
|
|
23808
23810
|
width: width || 'auto',
|
|
23809
23811
|
height: height || 'auto'
|
|
@@ -23814,7 +23816,7 @@ var Legend = /*#__PURE__*/function (_PureComponent) {
|
|
|
23814
23816
|
ref: function ref(node) {
|
|
23815
23817
|
_this2.wrapperNode = node;
|
|
23816
23818
|
}
|
|
23817
|
-
}, renderContent$1(content, _objectSpread$
|
|
23819
|
+
}, renderContent$1(content, _objectSpread$n(_objectSpread$n({}, this.props), {}, {
|
|
23818
23820
|
payload: getUniqPayload$1(payloadUniqBy, payload)
|
|
23819
23821
|
})));
|
|
23820
23822
|
}
|
|
@@ -23837,8 +23839,8 @@ var Legend = /*#__PURE__*/function (_PureComponent) {
|
|
|
23837
23839
|
}]);
|
|
23838
23840
|
return Legend;
|
|
23839
23841
|
}(PureComponent);
|
|
23840
|
-
_defineProperty$
|
|
23841
|
-
_defineProperty$
|
|
23842
|
+
_defineProperty$p(Legend, "displayName", 'Legend');
|
|
23843
|
+
_defineProperty$p(Legend, "defaultProps", {
|
|
23842
23844
|
iconSize: 14,
|
|
23843
23845
|
layout: 'horizontal',
|
|
23844
23846
|
align: 'center',
|
|
@@ -24402,13 +24404,13 @@ function setRafTimeout(callback) {
|
|
|
24402
24404
|
requestAnimationFrame(shouldUpdate);
|
|
24403
24405
|
}
|
|
24404
24406
|
|
|
24405
|
-
function _typeof$
|
|
24406
|
-
function _toArray(arr) { return _arrayWithHoles$
|
|
24407
|
-
function _nonIterableRest$
|
|
24408
|
-
function _unsupportedIterableToArray$
|
|
24409
|
-
function _arrayLikeToArray$
|
|
24407
|
+
function _typeof$o(obj) { "@babel/helpers - typeof"; return _typeof$o = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$o(obj); }
|
|
24408
|
+
function _toArray(arr) { return _arrayWithHoles$b(arr) || _iterableToArray$b(arr) || _unsupportedIterableToArray$i(arr) || _nonIterableRest$b(); }
|
|
24409
|
+
function _nonIterableRest$b() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
24410
|
+
function _unsupportedIterableToArray$i(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$i(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$i(o, minLen); }
|
|
24411
|
+
function _arrayLikeToArray$i(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
24410
24412
|
function _iterableToArray$b(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
24411
|
-
function _arrayWithHoles$
|
|
24413
|
+
function _arrayWithHoles$b(arr) { if (Array.isArray(arr)) return arr; }
|
|
24412
24414
|
function createAnimateManager() {
|
|
24413
24415
|
var currStyle = {};
|
|
24414
24416
|
var handleChange = function handleChange() {
|
|
@@ -24435,7 +24437,7 @@ function createAnimateManager() {
|
|
|
24435
24437
|
setRafTimeout(setStyle.bind(null, restStyles));
|
|
24436
24438
|
return;
|
|
24437
24439
|
}
|
|
24438
|
-
if (_typeof$
|
|
24440
|
+
if (_typeof$o(_style) === 'object') {
|
|
24439
24441
|
currStyle = _style;
|
|
24440
24442
|
handleChange(currStyle);
|
|
24441
24443
|
}
|
|
@@ -24462,12 +24464,12 @@ function createAnimateManager() {
|
|
|
24462
24464
|
};
|
|
24463
24465
|
}
|
|
24464
24466
|
|
|
24465
|
-
function _typeof$
|
|
24466
|
-
function ownKeys$
|
|
24467
|
-
function _objectSpread$
|
|
24468
|
-
function _defineProperty$
|
|
24469
|
-
function _toPropertyKey$
|
|
24470
|
-
function _toPrimitive$
|
|
24467
|
+
function _typeof$n(obj) { "@babel/helpers - typeof"; return _typeof$n = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$n(obj); }
|
|
24468
|
+
function ownKeys$m(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
24469
|
+
function _objectSpread$m(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$m(Object(source), !0).forEach(function (key) { _defineProperty$o(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$m(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
24470
|
+
function _defineProperty$o(obj, key, value) { key = _toPropertyKey$n(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
24471
|
+
function _toPropertyKey$n(arg) { var key = _toPrimitive$n(arg, "string"); return _typeof$n(key) === "symbol" ? key : String(key); }
|
|
24472
|
+
function _toPrimitive$n(input, hint) { if (_typeof$n(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$n(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
24471
24473
|
/* eslint no-console: 0 */
|
|
24472
24474
|
var PREFIX_LIST$1 = ['Webkit', 'Moz', 'O', 'ms'];
|
|
24473
24475
|
var IN_LINE_PREFIX_LIST = ['-webkit-', '-moz-', '-o-', '-ms-'];
|
|
@@ -24499,7 +24501,7 @@ var getDashCase = function getDashCase(name) {
|
|
|
24499
24501
|
*/
|
|
24500
24502
|
var generatePrefixStyle$1 = function generatePrefixStyle(name, value) {
|
|
24501
24503
|
if (IN_COMPATIBLE_PROPERTY.indexOf(name) === -1) {
|
|
24502
|
-
return _defineProperty$
|
|
24504
|
+
return _defineProperty$o({}, name, Number.isNaN(value) ? 0 : value);
|
|
24503
24505
|
}
|
|
24504
24506
|
var isTransition = name === 'transition';
|
|
24505
24507
|
var camelName = name.replace(/(\w)/, function (v) {
|
|
@@ -24510,7 +24512,7 @@ var generatePrefixStyle$1 = function generatePrefixStyle(name, value) {
|
|
|
24510
24512
|
if (isTransition) {
|
|
24511
24513
|
styleVal = value.replace(/(transform|transform-origin)/gim, "".concat(IN_LINE_PREFIX_LIST[i], "$1"));
|
|
24512
24514
|
}
|
|
24513
|
-
return _objectSpread$
|
|
24515
|
+
return _objectSpread$m(_objectSpread$m({}, result), {}, _defineProperty$o({}, property + camelName, styleVal));
|
|
24514
24516
|
}, {});
|
|
24515
24517
|
};
|
|
24516
24518
|
|
|
@@ -24520,7 +24522,7 @@ var generatePrefixStyle$1 = function generatePrefixStyle(name, value) {
|
|
|
24520
24522
|
*/
|
|
24521
24523
|
var mapObject = function mapObject(fn, obj) {
|
|
24522
24524
|
return Object.keys(obj).reduce(function (res, key) {
|
|
24523
|
-
return _objectSpread$
|
|
24525
|
+
return _objectSpread$m(_objectSpread$m({}, res), {}, _defineProperty$o({}, key, fn(key, obj[key])));
|
|
24524
24526
|
}, {});
|
|
24525
24527
|
};
|
|
24526
24528
|
|
|
@@ -24530,7 +24532,7 @@ var mapObject = function mapObject(fn, obj) {
|
|
|
24530
24532
|
*/
|
|
24531
24533
|
var translateStyle = function translateStyle(style) {
|
|
24532
24534
|
return Object.keys(style).reduce(function (res, key) {
|
|
24533
|
-
return _objectSpread$
|
|
24535
|
+
return _objectSpread$m(_objectSpread$m({}, res), generatePrefixStyle$1(key, res[key]));
|
|
24534
24536
|
}, style);
|
|
24535
24537
|
};
|
|
24536
24538
|
var getTransitionVal = function getTransitionVal(props, duration, easing) {
|
|
@@ -24558,16 +24560,16 @@ var warn$1 = function warn(condition, format, a, b, c, d, e, f) {
|
|
|
24558
24560
|
}
|
|
24559
24561
|
};
|
|
24560
24562
|
|
|
24561
|
-
function _slicedToArray$
|
|
24562
|
-
function _nonIterableRest$
|
|
24563
|
-
function _iterableToArrayLimit$
|
|
24564
|
-
function _arrayWithHoles$
|
|
24565
|
-
function _toConsumableArray$a(arr) { return _arrayWithoutHoles$a(arr) || _iterableToArray$a(arr) || _unsupportedIterableToArray$
|
|
24563
|
+
function _slicedToArray$a(arr, i) { return _arrayWithHoles$a(arr) || _iterableToArrayLimit$a(arr, i) || _unsupportedIterableToArray$h(arr, i) || _nonIterableRest$a(); }
|
|
24564
|
+
function _nonIterableRest$a() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
24565
|
+
function _iterableToArrayLimit$a(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
24566
|
+
function _arrayWithHoles$a(arr) { if (Array.isArray(arr)) return arr; }
|
|
24567
|
+
function _toConsumableArray$a(arr) { return _arrayWithoutHoles$a(arr) || _iterableToArray$a(arr) || _unsupportedIterableToArray$h(arr) || _nonIterableSpread$a(); }
|
|
24566
24568
|
function _nonIterableSpread$a() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
24567
|
-
function _unsupportedIterableToArray$
|
|
24569
|
+
function _unsupportedIterableToArray$h(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$h(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$h(o, minLen); }
|
|
24568
24570
|
function _iterableToArray$a(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
24569
|
-
function _arrayWithoutHoles$a(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$
|
|
24570
|
-
function _arrayLikeToArray$
|
|
24571
|
+
function _arrayWithoutHoles$a(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$h(arr); }
|
|
24572
|
+
function _arrayLikeToArray$h(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
24571
24573
|
var ACCURACY = 1e-4;
|
|
24572
24574
|
var cubicBezierFactor = function cubicBezierFactor(c1, c2) {
|
|
24573
24575
|
return [0, 3 * c1, 3 * c2 - 6 * c1, 3 * c1 - 3 * c2 + 1];
|
|
@@ -24643,7 +24645,7 @@ var configBezier = function configBezier() {
|
|
|
24643
24645
|
var _easing$1$split$0$spl = easing[1].split(')')[0].split(',').map(function (x) {
|
|
24644
24646
|
return parseFloat(x);
|
|
24645
24647
|
});
|
|
24646
|
-
var _easing$1$split$0$spl2 = _slicedToArray$
|
|
24648
|
+
var _easing$1$split$0$spl2 = _slicedToArray$a(_easing$1$split$0$spl, 4);
|
|
24647
24649
|
x1 = _easing$1$split$0$spl2[0];
|
|
24648
24650
|
y1 = _easing$1$split$0$spl2[1];
|
|
24649
24651
|
x2 = _easing$1$split$0$spl2[2];
|
|
@@ -24736,22 +24738,22 @@ var configEasing = function configEasing() {
|
|
|
24736
24738
|
return null;
|
|
24737
24739
|
};
|
|
24738
24740
|
|
|
24739
|
-
function _typeof$
|
|
24740
|
-
function _toConsumableArray$9(arr) { return _arrayWithoutHoles$9(arr) || _iterableToArray$9(arr) || _unsupportedIterableToArray$
|
|
24741
|
+
function _typeof$m(obj) { "@babel/helpers - typeof"; return _typeof$m = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$m(obj); }
|
|
24742
|
+
function _toConsumableArray$9(arr) { return _arrayWithoutHoles$9(arr) || _iterableToArray$9(arr) || _unsupportedIterableToArray$g(arr) || _nonIterableSpread$9(); }
|
|
24741
24743
|
function _nonIterableSpread$9() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
24742
24744
|
function _iterableToArray$9(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
24743
|
-
function _arrayWithoutHoles$9(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$
|
|
24744
|
-
function ownKeys$
|
|
24745
|
-
function _objectSpread$
|
|
24746
|
-
function _defineProperty$
|
|
24747
|
-
function _toPropertyKey$
|
|
24748
|
-
function _toPrimitive$
|
|
24749
|
-
function _slicedToArray$
|
|
24750
|
-
function _nonIterableRest$
|
|
24751
|
-
function _unsupportedIterableToArray$
|
|
24752
|
-
function _arrayLikeToArray$
|
|
24753
|
-
function _iterableToArrayLimit$
|
|
24754
|
-
function _arrayWithHoles$
|
|
24745
|
+
function _arrayWithoutHoles$9(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$g(arr); }
|
|
24746
|
+
function ownKeys$l(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
24747
|
+
function _objectSpread$l(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$l(Object(source), !0).forEach(function (key) { _defineProperty$n(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$l(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
24748
|
+
function _defineProperty$n(obj, key, value) { key = _toPropertyKey$m(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
24749
|
+
function _toPropertyKey$m(arg) { var key = _toPrimitive$m(arg, "string"); return _typeof$m(key) === "symbol" ? key : String(key); }
|
|
24750
|
+
function _toPrimitive$m(input, hint) { if (_typeof$m(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$m(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
24751
|
+
function _slicedToArray$9(arr, i) { return _arrayWithHoles$9(arr) || _iterableToArrayLimit$9(arr, i) || _unsupportedIterableToArray$g(arr, i) || _nonIterableRest$9(); }
|
|
24752
|
+
function _nonIterableRest$9() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
24753
|
+
function _unsupportedIterableToArray$g(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$g(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$g(o, minLen); }
|
|
24754
|
+
function _arrayLikeToArray$g(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
24755
|
+
function _iterableToArrayLimit$9(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
24756
|
+
function _arrayWithHoles$9(arr) { if (Array.isArray(arr)) return arr; }
|
|
24755
24757
|
var alpha = function alpha(begin, end, k) {
|
|
24756
24758
|
return begin + (end - begin) * k;
|
|
24757
24759
|
};
|
|
@@ -24769,10 +24771,10 @@ var calStepperVals = function calStepperVals(easing, preVals, steps) {
|
|
|
24769
24771
|
var nextStepVals = mapObject(function (key, val) {
|
|
24770
24772
|
if (needContinue(val)) {
|
|
24771
24773
|
var _easing = easing(val.from, val.to, val.velocity),
|
|
24772
|
-
_easing2 = _slicedToArray$
|
|
24774
|
+
_easing2 = _slicedToArray$9(_easing, 2),
|
|
24773
24775
|
newX = _easing2[0],
|
|
24774
24776
|
newV = _easing2[1];
|
|
24775
|
-
return _objectSpread$
|
|
24777
|
+
return _objectSpread$l(_objectSpread$l({}, val), {}, {
|
|
24776
24778
|
from: newX,
|
|
24777
24779
|
velocity: newV
|
|
24778
24780
|
});
|
|
@@ -24782,7 +24784,7 @@ var calStepperVals = function calStepperVals(easing, preVals, steps) {
|
|
|
24782
24784
|
if (steps < 1) {
|
|
24783
24785
|
return mapObject(function (key, val) {
|
|
24784
24786
|
if (needContinue(val)) {
|
|
24785
|
-
return _objectSpread$
|
|
24787
|
+
return _objectSpread$l(_objectSpread$l({}, val), {}, {
|
|
24786
24788
|
velocity: alpha(val.velocity, nextStepVals[key].velocity, steps),
|
|
24787
24789
|
from: alpha(val.from, nextStepVals[key].from, steps)
|
|
24788
24790
|
});
|
|
@@ -24797,10 +24799,10 @@ var calStepperVals = function calStepperVals(easing, preVals, steps) {
|
|
|
24797
24799
|
var configUpdate = (function (from, to, easing, duration, render) {
|
|
24798
24800
|
var interKeys = getIntersectionKeys(from, to);
|
|
24799
24801
|
var timingStyle = interKeys.reduce(function (res, key) {
|
|
24800
|
-
return _objectSpread$
|
|
24802
|
+
return _objectSpread$l(_objectSpread$l({}, res), {}, _defineProperty$n({}, key, [from[key], to[key]]));
|
|
24801
24803
|
}, {});
|
|
24802
24804
|
var stepperStyle = interKeys.reduce(function (res, key) {
|
|
24803
|
-
return _objectSpread$
|
|
24805
|
+
return _objectSpread$l(_objectSpread$l({}, res), {}, _defineProperty$n({}, key, {
|
|
24804
24806
|
from: from[key],
|
|
24805
24807
|
velocity: 0,
|
|
24806
24808
|
to: to[key]
|
|
@@ -24830,7 +24832,7 @@ var configUpdate = (function (from, to, easing, duration, render) {
|
|
|
24830
24832
|
var steps = deltaTime / easing.dt;
|
|
24831
24833
|
stepperStyle = calStepperVals(easing, stepperStyle, steps);
|
|
24832
24834
|
// get union set and add compatible prefix
|
|
24833
|
-
render(_objectSpread$
|
|
24835
|
+
render(_objectSpread$l(_objectSpread$l(_objectSpread$l({}, from), to), getCurrStyle()));
|
|
24834
24836
|
preTime = now;
|
|
24835
24837
|
if (!shouldStopAnimation()) {
|
|
24836
24838
|
cafId = requestAnimationFrame(update);
|
|
@@ -24848,14 +24850,14 @@ var configUpdate = (function (from, to, easing, duration, render) {
|
|
|
24848
24850
|
}, timingStyle);
|
|
24849
24851
|
|
|
24850
24852
|
// get union set and add compatible prefix
|
|
24851
|
-
render(_objectSpread$
|
|
24853
|
+
render(_objectSpread$l(_objectSpread$l(_objectSpread$l({}, from), to), currStyle));
|
|
24852
24854
|
if (t < 1) {
|
|
24853
24855
|
cafId = requestAnimationFrame(update);
|
|
24854
24856
|
} else {
|
|
24855
24857
|
var finalStyle = mapObject(function (key, val) {
|
|
24856
24858
|
return alpha.apply(void 0, _toConsumableArray$9(val).concat([easing(1)]));
|
|
24857
24859
|
}, timingStyle);
|
|
24858
|
-
render(_objectSpread$
|
|
24860
|
+
render(_objectSpread$l(_objectSpread$l(_objectSpread$l({}, from), to), finalStyle));
|
|
24859
24861
|
}
|
|
24860
24862
|
};
|
|
24861
24863
|
update = easing.isStepper ? stepperUpdate : timingUpdate;
|
|
@@ -24871,37 +24873,37 @@ var configUpdate = (function (from, to, easing, duration, render) {
|
|
|
24871
24873
|
};
|
|
24872
24874
|
});
|
|
24873
24875
|
|
|
24874
|
-
function _typeof$
|
|
24875
|
-
var _excluded$
|
|
24876
|
-
function _objectWithoutProperties$
|
|
24877
|
-
function _objectWithoutPropertiesLoose$
|
|
24878
|
-
function _toConsumableArray$8(arr) { return _arrayWithoutHoles$8(arr) || _iterableToArray$8(arr) || _unsupportedIterableToArray$
|
|
24876
|
+
function _typeof$l(obj) { "@babel/helpers - typeof"; return _typeof$l = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$l(obj); }
|
|
24877
|
+
var _excluded$8 = ["children", "begin", "duration", "attributeName", "easing", "isActive", "steps", "from", "to", "canBegin", "onAnimationEnd", "shouldReAnimate", "onAnimationReStart"];
|
|
24878
|
+
function _objectWithoutProperties$8(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$8(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
24879
|
+
function _objectWithoutPropertiesLoose$8(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
24880
|
+
function _toConsumableArray$8(arr) { return _arrayWithoutHoles$8(arr) || _iterableToArray$8(arr) || _unsupportedIterableToArray$f(arr) || _nonIterableSpread$8(); }
|
|
24879
24881
|
function _nonIterableSpread$8() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
24880
|
-
function _unsupportedIterableToArray$
|
|
24882
|
+
function _unsupportedIterableToArray$f(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$f(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$f(o, minLen); }
|
|
24881
24883
|
function _iterableToArray$8(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
24882
|
-
function _arrayWithoutHoles$8(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$
|
|
24883
|
-
function _arrayLikeToArray$
|
|
24884
|
-
function ownKeys$
|
|
24885
|
-
function _objectSpread$
|
|
24886
|
-
function _defineProperty$
|
|
24887
|
-
function _classCallCheck$
|
|
24888
|
-
function _defineProperties$
|
|
24889
|
-
function _createClass$
|
|
24890
|
-
function _toPropertyKey$
|
|
24891
|
-
function _toPrimitive$
|
|
24892
|
-
function _inherits$
|
|
24893
|
-
function _setPrototypeOf$
|
|
24894
|
-
function _createSuper$
|
|
24895
|
-
function _possibleConstructorReturn$
|
|
24896
|
-
function _assertThisInitialized$
|
|
24897
|
-
function _isNativeReflectConstruct$
|
|
24898
|
-
function _getPrototypeOf$
|
|
24884
|
+
function _arrayWithoutHoles$8(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$f(arr); }
|
|
24885
|
+
function _arrayLikeToArray$f(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
24886
|
+
function ownKeys$k(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
24887
|
+
function _objectSpread$k(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$k(Object(source), !0).forEach(function (key) { _defineProperty$m(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$k(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
24888
|
+
function _defineProperty$m(obj, key, value) { key = _toPropertyKey$l(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
24889
|
+
function _classCallCheck$8(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
24890
|
+
function _defineProperties$8(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey$l(descriptor.key), descriptor); } }
|
|
24891
|
+
function _createClass$8(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$8(Constructor.prototype, protoProps); if (staticProps) _defineProperties$8(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
24892
|
+
function _toPropertyKey$l(arg) { var key = _toPrimitive$l(arg, "string"); return _typeof$l(key) === "symbol" ? key : String(key); }
|
|
24893
|
+
function _toPrimitive$l(input, hint) { if (_typeof$l(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$l(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
24894
|
+
function _inherits$6(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf$6(subClass, superClass); }
|
|
24895
|
+
function _setPrototypeOf$6(o, p) { _setPrototypeOf$6 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$6(o, p); }
|
|
24896
|
+
function _createSuper$6(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$6(); return function _createSuperInternal() { var Super = _getPrototypeOf$6(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$6(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$6(this, result); }; }
|
|
24897
|
+
function _possibleConstructorReturn$6(self, call) { if (call && (_typeof$l(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized$6(self); }
|
|
24898
|
+
function _assertThisInitialized$6(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
24899
|
+
function _isNativeReflectConstruct$6() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
24900
|
+
function _getPrototypeOf$6(o) { _getPrototypeOf$6 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$6(o); }
|
|
24899
24901
|
var Animate = /*#__PURE__*/function (_PureComponent) {
|
|
24900
|
-
_inherits$
|
|
24901
|
-
var _super = _createSuper$
|
|
24902
|
+
_inherits$6(Animate, _PureComponent);
|
|
24903
|
+
var _super = _createSuper$6(Animate);
|
|
24902
24904
|
function Animate(props, context) {
|
|
24903
24905
|
var _this;
|
|
24904
|
-
_classCallCheck$
|
|
24906
|
+
_classCallCheck$8(this, Animate);
|
|
24905
24907
|
_this = _super.call(this, props, context);
|
|
24906
24908
|
var _this$props = _this.props,
|
|
24907
24909
|
isActive = _this$props.isActive,
|
|
@@ -24911,8 +24913,8 @@ var Animate = /*#__PURE__*/function (_PureComponent) {
|
|
|
24911
24913
|
steps = _this$props.steps,
|
|
24912
24914
|
children = _this$props.children,
|
|
24913
24915
|
duration = _this$props.duration;
|
|
24914
|
-
_this.handleStyleChange = _this.handleStyleChange.bind(_assertThisInitialized$
|
|
24915
|
-
_this.changeStyle = _this.changeStyle.bind(_assertThisInitialized$
|
|
24916
|
+
_this.handleStyleChange = _this.handleStyleChange.bind(_assertThisInitialized$6(_this));
|
|
24917
|
+
_this.changeStyle = _this.changeStyle.bind(_assertThisInitialized$6(_this));
|
|
24916
24918
|
if (!isActive || duration <= 0) {
|
|
24917
24919
|
_this.state = {
|
|
24918
24920
|
style: {}
|
|
@@ -24924,7 +24926,7 @@ var Animate = /*#__PURE__*/function (_PureComponent) {
|
|
|
24924
24926
|
style: to
|
|
24925
24927
|
};
|
|
24926
24928
|
}
|
|
24927
|
-
return _possibleConstructorReturn$
|
|
24929
|
+
return _possibleConstructorReturn$6(_this);
|
|
24928
24930
|
}
|
|
24929
24931
|
if (steps && steps.length) {
|
|
24930
24932
|
_this.state = {
|
|
@@ -24935,10 +24937,10 @@ var Animate = /*#__PURE__*/function (_PureComponent) {
|
|
|
24935
24937
|
_this.state = {
|
|
24936
24938
|
style: from
|
|
24937
24939
|
};
|
|
24938
|
-
return _possibleConstructorReturn$
|
|
24940
|
+
return _possibleConstructorReturn$6(_this);
|
|
24939
24941
|
}
|
|
24940
24942
|
_this.state = {
|
|
24941
|
-
style: attributeName ? _defineProperty$
|
|
24943
|
+
style: attributeName ? _defineProperty$m({}, attributeName, from) : from
|
|
24942
24944
|
};
|
|
24943
24945
|
} else {
|
|
24944
24946
|
_this.state = {
|
|
@@ -24947,7 +24949,7 @@ var Animate = /*#__PURE__*/function (_PureComponent) {
|
|
|
24947
24949
|
}
|
|
24948
24950
|
return _this;
|
|
24949
24951
|
}
|
|
24950
|
-
_createClass$
|
|
24952
|
+
_createClass$8(Animate, [{
|
|
24951
24953
|
key: "componentDidMount",
|
|
24952
24954
|
value: function componentDidMount() {
|
|
24953
24955
|
var _this$props2 = this.props,
|
|
@@ -24975,7 +24977,7 @@ var Animate = /*#__PURE__*/function (_PureComponent) {
|
|
|
24975
24977
|
}
|
|
24976
24978
|
if (!isActive) {
|
|
24977
24979
|
var newState = {
|
|
24978
|
-
style: attributeName ? _defineProperty$
|
|
24980
|
+
style: attributeName ? _defineProperty$m({}, attributeName, to) : to
|
|
24979
24981
|
};
|
|
24980
24982
|
if (this.state && style) {
|
|
24981
24983
|
if (attributeName && style[attributeName] !== to || !attributeName && style !== to) {
|
|
@@ -24998,14 +25000,14 @@ var Animate = /*#__PURE__*/function (_PureComponent) {
|
|
|
24998
25000
|
var from = isTriggered || shouldReAnimate ? currentFrom : prevProps.to;
|
|
24999
25001
|
if (this.state && style) {
|
|
25000
25002
|
var _newState = {
|
|
25001
|
-
style: attributeName ? _defineProperty$
|
|
25003
|
+
style: attributeName ? _defineProperty$m({}, attributeName, from) : from
|
|
25002
25004
|
};
|
|
25003
25005
|
if (attributeName && [attributeName] !== from || !attributeName && style !== from) {
|
|
25004
25006
|
// eslint-disable-next-line react/no-did-update-set-state
|
|
25005
25007
|
this.setState(_newState);
|
|
25006
25008
|
}
|
|
25007
25009
|
}
|
|
25008
|
-
this.runAnimation(_objectSpread$
|
|
25010
|
+
this.runAnimation(_objectSpread$k(_objectSpread$k({}, this.props), {}, {
|
|
25009
25011
|
from: from,
|
|
25010
25012
|
begin: 0
|
|
25011
25013
|
}));
|
|
@@ -25088,7 +25090,7 @@ var Animate = /*#__PURE__*/function (_PureComponent) {
|
|
|
25088
25090
|
}), duration]);
|
|
25089
25091
|
}
|
|
25090
25092
|
var transition = getTransitionVal(properties, duration, easing);
|
|
25091
|
-
var newStyle = _objectSpread$
|
|
25093
|
+
var newStyle = _objectSpread$k(_objectSpread$k(_objectSpread$k({}, preItem.style), style), {}, {
|
|
25092
25094
|
transition: transition
|
|
25093
25095
|
});
|
|
25094
25096
|
return [].concat(_toConsumableArray$8(sequence), [newStyle, duration, onAnimationEnd]).filter(identity$9);
|
|
@@ -25120,9 +25122,9 @@ var Animate = /*#__PURE__*/function (_PureComponent) {
|
|
|
25120
25122
|
this.runStepAnimation(props);
|
|
25121
25123
|
return;
|
|
25122
25124
|
}
|
|
25123
|
-
var to = attributeName ? _defineProperty$
|
|
25125
|
+
var to = attributeName ? _defineProperty$m({}, attributeName, propsTo) : propsTo;
|
|
25124
25126
|
var transition = getTransitionVal(Object.keys(to), duration, easing);
|
|
25125
|
-
manager.start([onAnimationStart, begin, _objectSpread$
|
|
25127
|
+
manager.start([onAnimationStart, begin, _objectSpread$k(_objectSpread$k({}, to), {}, {
|
|
25126
25128
|
transition: transition
|
|
25127
25129
|
}), duration, onAnimationEnd]);
|
|
25128
25130
|
}
|
|
@@ -25143,7 +25145,7 @@ var Animate = /*#__PURE__*/function (_PureComponent) {
|
|
|
25143
25145
|
_this$props4.onAnimationEnd;
|
|
25144
25146
|
_this$props4.shouldReAnimate;
|
|
25145
25147
|
_this$props4.onAnimationReStart;
|
|
25146
|
-
var others = _objectWithoutProperties$
|
|
25148
|
+
var others = _objectWithoutProperties$8(_this$props4, _excluded$8);
|
|
25147
25149
|
var count = Children.count(children);
|
|
25148
25150
|
// eslint-disable-next-line react/destructuring-assignment
|
|
25149
25151
|
var stateStyle = translateStyle(this.state.style);
|
|
@@ -25158,8 +25160,8 @@ var Animate = /*#__PURE__*/function (_PureComponent) {
|
|
|
25158
25160
|
_container$props$styl = _container$props.style,
|
|
25159
25161
|
style = _container$props$styl === void 0 ? {} : _container$props$styl,
|
|
25160
25162
|
className = _container$props.className;
|
|
25161
|
-
var res = /*#__PURE__*/cloneElement(container, _objectSpread$
|
|
25162
|
-
style: _objectSpread$
|
|
25163
|
+
var res = /*#__PURE__*/cloneElement(container, _objectSpread$k(_objectSpread$k({}, others), {}, {
|
|
25164
|
+
style: _objectSpread$k(_objectSpread$k({}, style), stateStyle),
|
|
25163
25165
|
className: className
|
|
25164
25166
|
}));
|
|
25165
25167
|
return res;
|
|
@@ -25684,10 +25686,10 @@ var defineProperty$2 = (function() {
|
|
|
25684
25686
|
} catch (e) {}
|
|
25685
25687
|
}());
|
|
25686
25688
|
|
|
25687
|
-
var _defineProperty$
|
|
25689
|
+
var _defineProperty$l = defineProperty$2;
|
|
25688
25690
|
|
|
25689
25691
|
var constant$1 = constant_1,
|
|
25690
|
-
defineProperty$1 = _defineProperty$
|
|
25692
|
+
defineProperty$1 = _defineProperty$l,
|
|
25691
25693
|
identity$7 = identity_1;
|
|
25692
25694
|
|
|
25693
25695
|
/**
|
|
@@ -25864,18 +25866,18 @@ var sortBy_1 = sortBy;
|
|
|
25864
25866
|
/**
|
|
25865
25867
|
* @fileOverview Default Tooltip Content
|
|
25866
25868
|
*/
|
|
25867
|
-
function _typeof$
|
|
25868
|
-
function _slicedToArray$
|
|
25869
|
-
function _nonIterableRest$
|
|
25870
|
-
function _unsupportedIterableToArray$
|
|
25871
|
-
function _arrayLikeToArray$
|
|
25872
|
-
function _iterableToArrayLimit$
|
|
25873
|
-
function _arrayWithHoles$
|
|
25874
|
-
function ownKeys$
|
|
25875
|
-
function _objectSpread$
|
|
25876
|
-
function _defineProperty$
|
|
25877
|
-
function _toPropertyKey$
|
|
25878
|
-
function _toPrimitive$
|
|
25869
|
+
function _typeof$k(obj) { "@babel/helpers - typeof"; return _typeof$k = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$k(obj); }
|
|
25870
|
+
function _slicedToArray$8(arr, i) { return _arrayWithHoles$8(arr) || _iterableToArrayLimit$8(arr, i) || _unsupportedIterableToArray$e(arr, i) || _nonIterableRest$8(); }
|
|
25871
|
+
function _nonIterableRest$8() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
25872
|
+
function _unsupportedIterableToArray$e(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$e(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$e(o, minLen); }
|
|
25873
|
+
function _arrayLikeToArray$e(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
25874
|
+
function _iterableToArrayLimit$8(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
25875
|
+
function _arrayWithHoles$8(arr) { if (Array.isArray(arr)) return arr; }
|
|
25876
|
+
function ownKeys$j(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
25877
|
+
function _objectSpread$j(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$j(Object(source), !0).forEach(function (key) { _defineProperty$k(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$j(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
25878
|
+
function _defineProperty$k(obj, key, value) { key = _toPropertyKey$k(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
25879
|
+
function _toPropertyKey$k(arg) { var key = _toPrimitive$k(arg, "string"); return _typeof$k(key) === "symbol" ? key : String(key); }
|
|
25880
|
+
function _toPrimitive$k(input, hint) { if (_typeof$k(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$k(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
25879
25881
|
function defaultFormatter(value) {
|
|
25880
25882
|
return isArray_1(value) && isNumOrStr(value[0]) && isNumOrStr(value[1]) ? value.join(' ~ ') : value;
|
|
25881
25883
|
}
|
|
@@ -25905,7 +25907,7 @@ var DefaultTooltipContent = function DefaultTooltipContent(props) {
|
|
|
25905
25907
|
if (entry.type === 'none') {
|
|
25906
25908
|
return null;
|
|
25907
25909
|
}
|
|
25908
|
-
var finalItemStyle = _objectSpread$
|
|
25910
|
+
var finalItemStyle = _objectSpread$j({
|
|
25909
25911
|
display: 'block',
|
|
25910
25912
|
paddingTop: 4,
|
|
25911
25913
|
paddingBottom: 4,
|
|
@@ -25919,7 +25921,7 @@ var DefaultTooltipContent = function DefaultTooltipContent(props) {
|
|
|
25919
25921
|
if (finalFormatter && finalValue != null && finalName != null) {
|
|
25920
25922
|
var formatted = finalFormatter(value, name, entry, i, payload);
|
|
25921
25923
|
if (Array.isArray(formatted)) {
|
|
25922
|
-
var _formatted = _slicedToArray$
|
|
25924
|
+
var _formatted = _slicedToArray$8(formatted, 2);
|
|
25923
25925
|
finalValue = _formatted[0];
|
|
25924
25926
|
finalName = _formatted[1];
|
|
25925
25927
|
} else {
|
|
@@ -25951,14 +25953,14 @@ var DefaultTooltipContent = function DefaultTooltipContent(props) {
|
|
|
25951
25953
|
}
|
|
25952
25954
|
return null;
|
|
25953
25955
|
};
|
|
25954
|
-
var finalStyle = _objectSpread$
|
|
25956
|
+
var finalStyle = _objectSpread$j({
|
|
25955
25957
|
margin: 0,
|
|
25956
25958
|
padding: 10,
|
|
25957
25959
|
backgroundColor: '#fff',
|
|
25958
25960
|
border: '1px solid #ccc',
|
|
25959
25961
|
whiteSpace: 'nowrap'
|
|
25960
25962
|
}, contentStyle);
|
|
25961
|
-
var finalLabelStyle = _objectSpread$
|
|
25963
|
+
var finalLabelStyle = _objectSpread$j({
|
|
25962
25964
|
margin: 0
|
|
25963
25965
|
}, labelStyle);
|
|
25964
25966
|
var hasLabel = !isNil_1(label);
|
|
@@ -25999,22 +26001,18 @@ var Global = {
|
|
|
25999
26001
|
}
|
|
26000
26002
|
};
|
|
26001
26003
|
|
|
26002
|
-
function _typeof$
|
|
26003
|
-
function ownKeys$
|
|
26004
|
-
function _objectSpread$
|
|
26005
|
-
function
|
|
26006
|
-
function
|
|
26007
|
-
function
|
|
26008
|
-
function
|
|
26009
|
-
function
|
|
26010
|
-
function
|
|
26011
|
-
function
|
|
26012
|
-
function
|
|
26013
|
-
function
|
|
26014
|
-
function _getPrototypeOf$6(o) { _getPrototypeOf$6 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$6(o); }
|
|
26015
|
-
function _defineProperty$m(obj, key, value) { key = _toPropertyKey$m(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
26016
|
-
function _toPropertyKey$m(arg) { var key = _toPrimitive$m(arg, "string"); return _typeof$m(key) === "symbol" ? key : String(key); }
|
|
26017
|
-
function _toPrimitive$m(input, hint) { if (_typeof$m(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$m(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
26004
|
+
function _typeof$j(obj) { "@babel/helpers - typeof"; return _typeof$j = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$j(obj); }
|
|
26005
|
+
function ownKeys$i(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
26006
|
+
function _objectSpread$i(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$i(Object(source), !0).forEach(function (key) { _defineProperty$j(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$i(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
26007
|
+
function _defineProperty$j(obj, key, value) { key = _toPropertyKey$j(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
26008
|
+
function _toPropertyKey$j(arg) { var key = _toPrimitive$j(arg, "string"); return _typeof$j(key) === "symbol" ? key : String(key); }
|
|
26009
|
+
function _toPrimitive$j(input, hint) { if (_typeof$j(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$j(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
26010
|
+
function _slicedToArray$7(arr, i) { return _arrayWithHoles$7(arr) || _iterableToArrayLimit$7(arr, i) || _unsupportedIterableToArray$d(arr, i) || _nonIterableRest$7(); }
|
|
26011
|
+
function _nonIterableRest$7() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
26012
|
+
function _unsupportedIterableToArray$d(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$d(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$d(o, minLen); }
|
|
26013
|
+
function _arrayLikeToArray$d(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
26014
|
+
function _iterableToArrayLimit$7(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
26015
|
+
function _arrayWithHoles$7(arr) { if (Array.isArray(arr)) return arr; }
|
|
26018
26016
|
var CLS_PREFIX = 'recharts-tooltip-wrapper';
|
|
26019
26017
|
var EPS$1 = 1;
|
|
26020
26018
|
function defaultUniqBy(entry) {
|
|
@@ -26038,204 +26036,7 @@ function renderContent(content, props) {
|
|
|
26038
26036
|
}
|
|
26039
26037
|
return /*#__PURE__*/React__default.createElement(DefaultTooltipContent, props);
|
|
26040
26038
|
}
|
|
26041
|
-
var
|
|
26042
|
-
_inherits$6(Tooltip, _PureComponent);
|
|
26043
|
-
var _super = _createSuper$6(Tooltip);
|
|
26044
|
-
function Tooltip() {
|
|
26045
|
-
var _this;
|
|
26046
|
-
_classCallCheck$8(this, Tooltip);
|
|
26047
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
26048
|
-
args[_key] = arguments[_key];
|
|
26049
|
-
}
|
|
26050
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
26051
|
-
_defineProperty$m(_assertThisInitialized$6(_this), "state", {
|
|
26052
|
-
boxWidth: -1,
|
|
26053
|
-
boxHeight: -1,
|
|
26054
|
-
dismissed: false,
|
|
26055
|
-
dismissedAtCoordinate: {
|
|
26056
|
-
x: 0,
|
|
26057
|
-
y: 0
|
|
26058
|
-
}
|
|
26059
|
-
});
|
|
26060
|
-
_defineProperty$m(_assertThisInitialized$6(_this), "handleKeyDown", function (event) {
|
|
26061
|
-
if (event.key === 'Escape') {
|
|
26062
|
-
_this.setState({
|
|
26063
|
-
dismissed: true,
|
|
26064
|
-
dismissedAtCoordinate: _objectSpread$l(_objectSpread$l({}, _this.state.dismissedAtCoordinate), {}, {
|
|
26065
|
-
x: _this.props.coordinate.x,
|
|
26066
|
-
y: _this.props.coordinate.y
|
|
26067
|
-
})
|
|
26068
|
-
});
|
|
26069
|
-
}
|
|
26070
|
-
});
|
|
26071
|
-
_defineProperty$m(_assertThisInitialized$6(_this), "getTranslate", function (_ref) {
|
|
26072
|
-
var key = _ref.key,
|
|
26073
|
-
tooltipDimension = _ref.tooltipDimension,
|
|
26074
|
-
viewBoxDimension = _ref.viewBoxDimension;
|
|
26075
|
-
var _this$props = _this.props,
|
|
26076
|
-
allowEscapeViewBox = _this$props.allowEscapeViewBox,
|
|
26077
|
-
reverseDirection = _this$props.reverseDirection,
|
|
26078
|
-
coordinate = _this$props.coordinate,
|
|
26079
|
-
offset = _this$props.offset,
|
|
26080
|
-
position = _this$props.position,
|
|
26081
|
-
viewBox = _this$props.viewBox;
|
|
26082
|
-
if (position && isNumber(position[key])) {
|
|
26083
|
-
return position[key];
|
|
26084
|
-
}
|
|
26085
|
-
var negative = coordinate[key] - tooltipDimension - offset;
|
|
26086
|
-
var positive = coordinate[key] + offset;
|
|
26087
|
-
if (allowEscapeViewBox[key]) {
|
|
26088
|
-
return reverseDirection[key] ? negative : positive;
|
|
26089
|
-
}
|
|
26090
|
-
if (reverseDirection[key]) {
|
|
26091
|
-
var _tooltipBoundary = negative;
|
|
26092
|
-
var _viewBoxBoundary = viewBox[key];
|
|
26093
|
-
if (_tooltipBoundary < _viewBoxBoundary) {
|
|
26094
|
-
return Math.max(positive, viewBox[key]);
|
|
26095
|
-
}
|
|
26096
|
-
return Math.max(negative, viewBox[key]);
|
|
26097
|
-
}
|
|
26098
|
-
var tooltipBoundary = positive + tooltipDimension;
|
|
26099
|
-
var viewBoxBoundary = viewBox[key] + viewBoxDimension;
|
|
26100
|
-
if (tooltipBoundary > viewBoxBoundary) {
|
|
26101
|
-
return Math.max(negative, viewBox[key]);
|
|
26102
|
-
}
|
|
26103
|
-
return Math.max(positive, viewBox[key]);
|
|
26104
|
-
});
|
|
26105
|
-
return _this;
|
|
26106
|
-
}
|
|
26107
|
-
_createClass$8(Tooltip, [{
|
|
26108
|
-
key: "componentDidMount",
|
|
26109
|
-
value: function componentDidMount() {
|
|
26110
|
-
this.updateBBox();
|
|
26111
|
-
}
|
|
26112
|
-
}, {
|
|
26113
|
-
key: "componentWillUnmount",
|
|
26114
|
-
value: function componentWillUnmount() {
|
|
26115
|
-
document.removeEventListener('keydown', this.handleKeyDown);
|
|
26116
|
-
}
|
|
26117
|
-
}, {
|
|
26118
|
-
key: "componentDidUpdate",
|
|
26119
|
-
value: function componentDidUpdate() {
|
|
26120
|
-
this.updateBBox();
|
|
26121
|
-
}
|
|
26122
|
-
}, {
|
|
26123
|
-
key: "updateBBox",
|
|
26124
|
-
value: function updateBBox() {
|
|
26125
|
-
var _this$state = this.state,
|
|
26126
|
-
boxWidth = _this$state.boxWidth,
|
|
26127
|
-
boxHeight = _this$state.boxHeight,
|
|
26128
|
-
dismissed = _this$state.dismissed;
|
|
26129
|
-
if (dismissed) {
|
|
26130
|
-
document.removeEventListener('keydown', this.handleKeyDown);
|
|
26131
|
-
if (this.props.coordinate.x !== this.state.dismissedAtCoordinate.x || this.props.coordinate.y !== this.state.dismissedAtCoordinate.y) {
|
|
26132
|
-
this.setState({
|
|
26133
|
-
dismissed: false
|
|
26134
|
-
});
|
|
26135
|
-
}
|
|
26136
|
-
} else {
|
|
26137
|
-
document.addEventListener('keydown', this.handleKeyDown);
|
|
26138
|
-
}
|
|
26139
|
-
if (this.wrapperNode && this.wrapperNode.getBoundingClientRect) {
|
|
26140
|
-
var box = this.wrapperNode.getBoundingClientRect();
|
|
26141
|
-
if (Math.abs(box.width - boxWidth) > EPS$1 || Math.abs(box.height - boxHeight) > EPS$1) {
|
|
26142
|
-
this.setState({
|
|
26143
|
-
boxWidth: box.width,
|
|
26144
|
-
boxHeight: box.height
|
|
26145
|
-
});
|
|
26146
|
-
}
|
|
26147
|
-
} else if (boxWidth !== -1 || boxHeight !== -1) {
|
|
26148
|
-
this.setState({
|
|
26149
|
-
boxWidth: -1,
|
|
26150
|
-
boxHeight: -1
|
|
26151
|
-
});
|
|
26152
|
-
}
|
|
26153
|
-
}
|
|
26154
|
-
}, {
|
|
26155
|
-
key: "render",
|
|
26156
|
-
value: function render() {
|
|
26157
|
-
var _classNames,
|
|
26158
|
-
_this2 = this;
|
|
26159
|
-
var _this$props2 = this.props,
|
|
26160
|
-
payload = _this$props2.payload,
|
|
26161
|
-
isAnimationActive = _this$props2.isAnimationActive,
|
|
26162
|
-
animationDuration = _this$props2.animationDuration,
|
|
26163
|
-
animationEasing = _this$props2.animationEasing,
|
|
26164
|
-
filterNull = _this$props2.filterNull,
|
|
26165
|
-
payloadUniqBy = _this$props2.payloadUniqBy;
|
|
26166
|
-
var finalPayload = getUniqPayload(payloadUniqBy, filterNull && payload && payload.length ? payload.filter(function (entry) {
|
|
26167
|
-
return !isNil_1(entry.value);
|
|
26168
|
-
}) : payload);
|
|
26169
|
-
var hasPayload = finalPayload && finalPayload.length;
|
|
26170
|
-
var _this$props3 = this.props,
|
|
26171
|
-
content = _this$props3.content,
|
|
26172
|
-
viewBox = _this$props3.viewBox,
|
|
26173
|
-
coordinate = _this$props3.coordinate,
|
|
26174
|
-
position = _this$props3.position,
|
|
26175
|
-
active = _this$props3.active,
|
|
26176
|
-
wrapperStyle = _this$props3.wrapperStyle;
|
|
26177
|
-
var outerStyle = _objectSpread$l({
|
|
26178
|
-
pointerEvents: 'none',
|
|
26179
|
-
visibility: !this.state.dismissed && active && hasPayload ? 'visible' : 'hidden',
|
|
26180
|
-
position: 'absolute',
|
|
26181
|
-
top: 0,
|
|
26182
|
-
left: 0
|
|
26183
|
-
}, wrapperStyle);
|
|
26184
|
-
var translateX, translateY;
|
|
26185
|
-
if (position && isNumber(position.x) && isNumber(position.y)) {
|
|
26186
|
-
translateX = position.x;
|
|
26187
|
-
translateY = position.y;
|
|
26188
|
-
} else {
|
|
26189
|
-
var _this$state2 = this.state,
|
|
26190
|
-
boxWidth = _this$state2.boxWidth,
|
|
26191
|
-
boxHeight = _this$state2.boxHeight;
|
|
26192
|
-
if (boxWidth > 0 && boxHeight > 0 && coordinate) {
|
|
26193
|
-
translateX = this.getTranslate({
|
|
26194
|
-
key: 'x',
|
|
26195
|
-
tooltipDimension: boxWidth,
|
|
26196
|
-
viewBoxDimension: viewBox.width
|
|
26197
|
-
});
|
|
26198
|
-
translateY = this.getTranslate({
|
|
26199
|
-
key: 'y',
|
|
26200
|
-
tooltipDimension: boxHeight,
|
|
26201
|
-
viewBoxDimension: viewBox.height
|
|
26202
|
-
});
|
|
26203
|
-
} else {
|
|
26204
|
-
outerStyle.visibility = 'hidden';
|
|
26205
|
-
}
|
|
26206
|
-
}
|
|
26207
|
-
outerStyle = _objectSpread$l(_objectSpread$l({}, translateStyle({
|
|
26208
|
-
transform: this.props.useTranslate3d ? "translate3d(".concat(translateX, "px, ").concat(translateY, "px, 0)") : "translate(".concat(translateX, "px, ").concat(translateY, "px)")
|
|
26209
|
-
})), outerStyle);
|
|
26210
|
-
if (isAnimationActive && active) {
|
|
26211
|
-
outerStyle = _objectSpread$l(_objectSpread$l({}, translateStyle({
|
|
26212
|
-
transition: "transform ".concat(animationDuration, "ms ").concat(animationEasing)
|
|
26213
|
-
})), outerStyle);
|
|
26214
|
-
}
|
|
26215
|
-
var cls = classNames(CLS_PREFIX, (_classNames = {}, _defineProperty$m(_classNames, "".concat(CLS_PREFIX, "-right"), isNumber(translateX) && coordinate && isNumber(coordinate.x) && translateX >= coordinate.x), _defineProperty$m(_classNames, "".concat(CLS_PREFIX, "-left"), isNumber(translateX) && coordinate && isNumber(coordinate.x) && translateX < coordinate.x), _defineProperty$m(_classNames, "".concat(CLS_PREFIX, "-bottom"), isNumber(translateY) && coordinate && isNumber(coordinate.y) && translateY >= coordinate.y), _defineProperty$m(_classNames, "".concat(CLS_PREFIX, "-top"), isNumber(translateY) && coordinate && isNumber(coordinate.y) && translateY < coordinate.y), _classNames));
|
|
26216
|
-
return (
|
|
26217
|
-
/*#__PURE__*/
|
|
26218
|
-
// ESLint is disabled to allow listening to the `Escape` key. Refer to
|
|
26219
|
-
// https://github.com/recharts/recharts/pull/2925
|
|
26220
|
-
// eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
|
|
26221
|
-
React__default.createElement("div", {
|
|
26222
|
-
tabIndex: -1,
|
|
26223
|
-
role: "dialog",
|
|
26224
|
-
className: cls,
|
|
26225
|
-
style: outerStyle,
|
|
26226
|
-
ref: function ref(node) {
|
|
26227
|
-
_this2.wrapperNode = node;
|
|
26228
|
-
}
|
|
26229
|
-
}, renderContent(content, _objectSpread$l(_objectSpread$l({}, this.props), {}, {
|
|
26230
|
-
payload: finalPayload
|
|
26231
|
-
})))
|
|
26232
|
-
);
|
|
26233
|
-
}
|
|
26234
|
-
}]);
|
|
26235
|
-
return Tooltip;
|
|
26236
|
-
}(PureComponent);
|
|
26237
|
-
_defineProperty$m(Tooltip$1, "displayName", 'Tooltip');
|
|
26238
|
-
_defineProperty$m(Tooltip$1, "defaultProps", {
|
|
26039
|
+
var tooltipDefaultProps = {
|
|
26239
26040
|
active: false,
|
|
26240
26041
|
allowEscapeViewBox: {
|
|
26241
26042
|
x: false,
|
|
@@ -26256,6 +26057,9 @@ _defineProperty$m(Tooltip$1, "defaultProps", {
|
|
|
26256
26057
|
x: 0,
|
|
26257
26058
|
y: 0
|
|
26258
26059
|
},
|
|
26060
|
+
// this doesn't exist on TooltipProps
|
|
26061
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
26062
|
+
// @ts-ignore
|
|
26259
26063
|
cursorStyle: {},
|
|
26260
26064
|
separator: ' : ',
|
|
26261
26065
|
wrapperStyle: {},
|
|
@@ -26269,7 +26073,173 @@ _defineProperty$m(Tooltip$1, "defaultProps", {
|
|
|
26269
26073
|
animationDuration: 400,
|
|
26270
26074
|
filterNull: true,
|
|
26271
26075
|
useTranslate3d: false
|
|
26272
|
-
}
|
|
26076
|
+
};
|
|
26077
|
+
var Tooltip$1 = function Tooltip(props) {
|
|
26078
|
+
var _classNames;
|
|
26079
|
+
var _useState = useState(-1),
|
|
26080
|
+
_useState2 = _slicedToArray$7(_useState, 2),
|
|
26081
|
+
boxWidth = _useState2[0],
|
|
26082
|
+
setBoxWidth = _useState2[1];
|
|
26083
|
+
var _useState3 = useState(-1),
|
|
26084
|
+
_useState4 = _slicedToArray$7(_useState3, 2),
|
|
26085
|
+
boxHeight = _useState4[0],
|
|
26086
|
+
setBoxHeight = _useState4[1];
|
|
26087
|
+
var _useState5 = useState(false),
|
|
26088
|
+
_useState6 = _slicedToArray$7(_useState5, 2),
|
|
26089
|
+
dismissed = _useState6[0],
|
|
26090
|
+
setDismissed = _useState6[1];
|
|
26091
|
+
var _useState7 = useState({
|
|
26092
|
+
x: 0,
|
|
26093
|
+
y: 0
|
|
26094
|
+
}),
|
|
26095
|
+
_useState8 = _slicedToArray$7(_useState7, 2),
|
|
26096
|
+
dismissedAtCoordinate = _useState8[0],
|
|
26097
|
+
setDismissedAtCoordinate = _useState8[1];
|
|
26098
|
+
var wrapperNode = useRef();
|
|
26099
|
+
var allowEscapeViewBox = props.allowEscapeViewBox,
|
|
26100
|
+
reverseDirection = props.reverseDirection,
|
|
26101
|
+
coordinate = props.coordinate,
|
|
26102
|
+
offset = props.offset,
|
|
26103
|
+
position = props.position,
|
|
26104
|
+
viewBox = props.viewBox;
|
|
26105
|
+
var handleKeyDown = useCallback(function (event) {
|
|
26106
|
+
if (event.key === 'Escape') {
|
|
26107
|
+
setDismissed(true);
|
|
26108
|
+
setDismissedAtCoordinate(function (prev) {
|
|
26109
|
+
return _objectSpread$i(_objectSpread$i({}, prev), {}, {
|
|
26110
|
+
x: coordinate === null || coordinate === void 0 ? void 0 : coordinate.x,
|
|
26111
|
+
y: coordinate === null || coordinate === void 0 ? void 0 : coordinate.y
|
|
26112
|
+
});
|
|
26113
|
+
});
|
|
26114
|
+
}
|
|
26115
|
+
}, [coordinate === null || coordinate === void 0 ? void 0 : coordinate.x, coordinate === null || coordinate === void 0 ? void 0 : coordinate.y]);
|
|
26116
|
+
useEffect(function () {
|
|
26117
|
+
var updateBBox = function updateBBox() {
|
|
26118
|
+
if (dismissed) {
|
|
26119
|
+
document.removeEventListener('keydown', handleKeyDown);
|
|
26120
|
+
if ((coordinate === null || coordinate === void 0 ? void 0 : coordinate.x) !== dismissedAtCoordinate.x || (coordinate === null || coordinate === void 0 ? void 0 : coordinate.y) !== dismissedAtCoordinate.y) {
|
|
26121
|
+
setDismissed(false);
|
|
26122
|
+
}
|
|
26123
|
+
} else {
|
|
26124
|
+
document.addEventListener('keydown', handleKeyDown);
|
|
26125
|
+
}
|
|
26126
|
+
if (wrapperNode.current && wrapperNode.current.getBoundingClientRect) {
|
|
26127
|
+
var box = wrapperNode.current.getBoundingClientRect();
|
|
26128
|
+
if (Math.abs(box.width - boxWidth) > EPS$1 || Math.abs(box.height - boxHeight) > EPS$1) {
|
|
26129
|
+
setBoxWidth(box.width);
|
|
26130
|
+
setBoxHeight(box.height);
|
|
26131
|
+
}
|
|
26132
|
+
} else if (boxWidth !== -1 || boxHeight !== -1) {
|
|
26133
|
+
setBoxWidth(-1);
|
|
26134
|
+
setBoxHeight(-1);
|
|
26135
|
+
}
|
|
26136
|
+
};
|
|
26137
|
+
updateBBox();
|
|
26138
|
+
return function () {
|
|
26139
|
+
document.removeEventListener('keydown', handleKeyDown);
|
|
26140
|
+
};
|
|
26141
|
+
}, [boxHeight, boxWidth, coordinate, dismissed, dismissedAtCoordinate.x, dismissedAtCoordinate.y, handleKeyDown]);
|
|
26142
|
+
var getTranslate = function getTranslate(_ref) {
|
|
26143
|
+
var key = _ref.key,
|
|
26144
|
+
tooltipDimension = _ref.tooltipDimension,
|
|
26145
|
+
viewBoxDimension = _ref.viewBoxDimension;
|
|
26146
|
+
if (position && isNumber(position[key])) {
|
|
26147
|
+
return position[key];
|
|
26148
|
+
}
|
|
26149
|
+
var negative = coordinate[key] - tooltipDimension - offset;
|
|
26150
|
+
var positive = coordinate[key] + offset;
|
|
26151
|
+
if (allowEscapeViewBox !== null && allowEscapeViewBox !== void 0 && allowEscapeViewBox[key]) {
|
|
26152
|
+
return reverseDirection[key] ? negative : positive;
|
|
26153
|
+
}
|
|
26154
|
+
if (reverseDirection !== null && reverseDirection !== void 0 && reverseDirection[key]) {
|
|
26155
|
+
var _tooltipBoundary = negative;
|
|
26156
|
+
var _viewBoxBoundary = viewBox[key];
|
|
26157
|
+
if (_tooltipBoundary < _viewBoxBoundary) {
|
|
26158
|
+
return Math.max(positive, viewBox[key]);
|
|
26159
|
+
}
|
|
26160
|
+
return Math.max(negative, viewBox[key]);
|
|
26161
|
+
}
|
|
26162
|
+
var tooltipBoundary = positive + tooltipDimension;
|
|
26163
|
+
var viewBoxBoundary = viewBox[key] + viewBoxDimension;
|
|
26164
|
+
if (tooltipBoundary > viewBoxBoundary) {
|
|
26165
|
+
return Math.max(negative, viewBox[key]);
|
|
26166
|
+
}
|
|
26167
|
+
return Math.max(positive, viewBox[key]);
|
|
26168
|
+
};
|
|
26169
|
+
var payload = props.payload,
|
|
26170
|
+
payloadUniqBy = props.payloadUniqBy,
|
|
26171
|
+
filterNull = props.filterNull,
|
|
26172
|
+
active = props.active,
|
|
26173
|
+
wrapperStyle = props.wrapperStyle,
|
|
26174
|
+
useTranslate3d = props.useTranslate3d,
|
|
26175
|
+
isAnimationActive = props.isAnimationActive,
|
|
26176
|
+
animationDuration = props.animationDuration,
|
|
26177
|
+
animationEasing = props.animationEasing;
|
|
26178
|
+
var finalPayload = getUniqPayload(payloadUniqBy, filterNull && payload && payload.length ? payload.filter(function (entry) {
|
|
26179
|
+
return !isNil_1(entry.value);
|
|
26180
|
+
}) : payload);
|
|
26181
|
+
var hasPayload = finalPayload && finalPayload.length;
|
|
26182
|
+
var content = props.content;
|
|
26183
|
+
var outerStyle = _objectSpread$i({
|
|
26184
|
+
pointerEvents: 'none',
|
|
26185
|
+
visibility: !dismissed && active && hasPayload ? 'visible' : 'hidden',
|
|
26186
|
+
position: 'absolute',
|
|
26187
|
+
top: 0,
|
|
26188
|
+
left: 0
|
|
26189
|
+
}, wrapperStyle);
|
|
26190
|
+
var translateX, translateY;
|
|
26191
|
+
if (position && isNumber(position.x) && isNumber(position.y)) {
|
|
26192
|
+
translateX = position.x;
|
|
26193
|
+
translateY = position.y;
|
|
26194
|
+
} else if (boxWidth > 0 && boxHeight > 0 && coordinate) {
|
|
26195
|
+
translateX = getTranslate({
|
|
26196
|
+
key: 'x',
|
|
26197
|
+
tooltipDimension: boxWidth,
|
|
26198
|
+
viewBoxDimension: viewBox.width
|
|
26199
|
+
});
|
|
26200
|
+
translateY = getTranslate({
|
|
26201
|
+
key: 'y',
|
|
26202
|
+
tooltipDimension: boxHeight,
|
|
26203
|
+
viewBoxDimension: viewBox.height
|
|
26204
|
+
});
|
|
26205
|
+
} else {
|
|
26206
|
+
outerStyle.visibility = 'hidden';
|
|
26207
|
+
}
|
|
26208
|
+
outerStyle = _objectSpread$i(_objectSpread$i({}, translateStyle({
|
|
26209
|
+
transform: useTranslate3d ? "translate3d(".concat(translateX, "px, ").concat(translateY, "px, 0)") : "translate(".concat(translateX, "px, ").concat(translateY, "px)")
|
|
26210
|
+
})), outerStyle);
|
|
26211
|
+
if (isAnimationActive && active) {
|
|
26212
|
+
outerStyle = _objectSpread$i(_objectSpread$i({}, translateStyle({
|
|
26213
|
+
transition: "transform ".concat(animationDuration, "ms ").concat(animationEasing)
|
|
26214
|
+
})), outerStyle);
|
|
26215
|
+
}
|
|
26216
|
+
var cls = classNames(CLS_PREFIX, (_classNames = {}, _defineProperty$j(_classNames, "".concat(CLS_PREFIX, "-right"), isNumber(translateX) && coordinate && isNumber(coordinate.x) && translateX >= coordinate.x), _defineProperty$j(_classNames, "".concat(CLS_PREFIX, "-left"), isNumber(translateX) && coordinate && isNumber(coordinate.x) && translateX < coordinate.x), _defineProperty$j(_classNames, "".concat(CLS_PREFIX, "-bottom"), isNumber(translateY) && coordinate && isNumber(coordinate.y) && translateY >= coordinate.y), _defineProperty$j(_classNames, "".concat(CLS_PREFIX, "-top"), isNumber(translateY) && coordinate && isNumber(coordinate.y) && translateY < coordinate.y), _classNames));
|
|
26217
|
+
return (
|
|
26218
|
+
/*#__PURE__*/
|
|
26219
|
+
// ESLint is disabled to allow listening to the `Escape` key. Refer to
|
|
26220
|
+
// https://github.com/recharts/recharts/pull/2925
|
|
26221
|
+
// eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
|
|
26222
|
+
React__default.createElement("div", {
|
|
26223
|
+
tabIndex: -1,
|
|
26224
|
+
role: "dialog",
|
|
26225
|
+
className: cls,
|
|
26226
|
+
style: outerStyle,
|
|
26227
|
+
ref: wrapperNode
|
|
26228
|
+
}, renderContent(content, _objectSpread$i(_objectSpread$i({}, props), {}, {
|
|
26229
|
+
payload: finalPayload
|
|
26230
|
+
})))
|
|
26231
|
+
);
|
|
26232
|
+
};
|
|
26233
|
+
|
|
26234
|
+
// needs to be set so that renderByOrder can find the correct handler function
|
|
26235
|
+
Tooltip$1.displayName = 'Tooltip';
|
|
26236
|
+
|
|
26237
|
+
/**
|
|
26238
|
+
* needs to be set so that renderByOrder can access an have default values for
|
|
26239
|
+
* children.props when there are no props set by the consumer
|
|
26240
|
+
* doesn't work if using default parameters
|
|
26241
|
+
*/
|
|
26242
|
+
Tooltip$1.defaultProps = tooltipDefaultProps;
|
|
26273
26243
|
|
|
26274
26244
|
var root = _root;
|
|
26275
26245
|
|
|
@@ -31839,12 +31809,12 @@ module.exports = exports['default'];
|
|
|
31839
31809
|
|
|
31840
31810
|
var reduceCSSCalc = /*@__PURE__*/getDefaultExportFromCjs(dist.exports);
|
|
31841
31811
|
|
|
31842
|
-
function _typeof$
|
|
31843
|
-
function ownKeys$
|
|
31844
|
-
function _objectSpread$
|
|
31845
|
-
function _defineProperty$
|
|
31846
|
-
function _toPropertyKey$
|
|
31847
|
-
function _toPrimitive$
|
|
31812
|
+
function _typeof$i(obj) { "@babel/helpers - typeof"; return _typeof$i = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$i(obj); }
|
|
31813
|
+
function ownKeys$h(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
31814
|
+
function _objectSpread$h(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$h(Object(source), !0).forEach(function (key) { _defineProperty$i(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$h(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
31815
|
+
function _defineProperty$i(obj, key, value) { key = _toPropertyKey$i(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
31816
|
+
function _toPropertyKey$i(arg) { var key = _toPrimitive$i(arg, "string"); return _typeof$i(key) === "symbol" ? key : String(key); }
|
|
31817
|
+
function _toPrimitive$i(input, hint) { if (_typeof$i(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$i(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
31848
31818
|
function _toConsumableArray$7(arr) { return _arrayWithoutHoles$7(arr) || _iterableToArray$7(arr) || _unsupportedIterableToArray$b(arr) || _nonIterableSpread$7(); }
|
|
31849
31819
|
function _nonIterableSpread$7() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
31850
31820
|
function _unsupportedIterableToArray$b(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$b(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$b(o, minLen); }
|
|
@@ -31912,7 +31882,7 @@ var getStringSize = function getStringSize(text) {
|
|
|
31912
31882
|
}
|
|
31913
31883
|
// Need to use CSS Object Model (CSSOM) to be able to comply with Content Security Policy (CSP)
|
|
31914
31884
|
// https://en.wikipedia.org/wiki/Content_Security_Policy
|
|
31915
|
-
var measurementSpanStyle = _objectSpread$
|
|
31885
|
+
var measurementSpanStyle = _objectSpread$h(_objectSpread$h({}, SPAN_STYLE), style);
|
|
31916
31886
|
Object.keys(measurementSpanStyle).map(function (styleKey) {
|
|
31917
31887
|
measurementSpan.style[styleKey] = measurementSpanStyle[styleKey];
|
|
31918
31888
|
return styleKey;
|
|
@@ -31967,11 +31937,10 @@ var calculateChartCoordinate = function calculateChartCoordinate(event, offset)
|
|
|
31967
31937
|
};
|
|
31968
31938
|
};
|
|
31969
31939
|
|
|
31970
|
-
var _excluded$
|
|
31971
|
-
_excluded2$3 = ["dx", "dy", "angle", "className", "breakAll"];
|
|
31940
|
+
var _excluded$7 = ["dx", "dy", "textAnchor", "verticalAnchor", "scaleToFit", "angle", "lineHeight", "capHeight", "className", "breakAll"];
|
|
31972
31941
|
function _extends$h() { _extends$h = Object.assign ? Object.assign.bind() : 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$h.apply(this, arguments); }
|
|
31973
|
-
function _objectWithoutProperties$
|
|
31974
|
-
function _objectWithoutPropertiesLoose$
|
|
31942
|
+
function _objectWithoutProperties$7(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$7(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
31943
|
+
function _objectWithoutPropertiesLoose$7(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
31975
31944
|
function _slicedToArray$5(arr, i) { return _arrayWithHoles$5(arr) || _iterableToArrayLimit$5(arr, i) || _unsupportedIterableToArray$a(arr, i) || _nonIterableRest$5(); }
|
|
31976
31945
|
function _nonIterableRest$5() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
31977
31946
|
function _unsupportedIterableToArray$a(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$a(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$a(o, minLen); }
|
|
@@ -32125,46 +32094,45 @@ var getWordsByLines = function getWordsByLines(_ref4) {
|
|
|
32125
32094
|
}
|
|
32126
32095
|
return getWordsWithoutCalculate(children);
|
|
32127
32096
|
};
|
|
32128
|
-
var
|
|
32129
|
-
|
|
32130
|
-
|
|
32131
|
-
|
|
32132
|
-
|
|
32133
|
-
|
|
32134
|
-
|
|
32135
|
-
|
|
32136
|
-
|
|
32137
|
-
|
|
32138
|
-
|
|
32139
|
-
|
|
32140
|
-
|
|
32141
|
-
textAnchor = _ref5$textAnchor === void 0 ? 'start' : _ref5$textAnchor,
|
|
32142
|
-
_ref5$verticalAnchor = _ref5.verticalAnchor,
|
|
32143
|
-
verticalAnchor = _ref5$verticalAnchor === void 0 ? 'end' : _ref5$verticalAnchor,
|
|
32144
|
-
_ref5$fill = _ref5.fill,
|
|
32145
|
-
fill = _ref5$fill === void 0 ? DEFAULT_FILL : _ref5$fill,
|
|
32146
|
-
props = _objectWithoutProperties$9(_ref5, _excluded$9);
|
|
32097
|
+
var textDefaultProps = {
|
|
32098
|
+
x: 0,
|
|
32099
|
+
y: 0,
|
|
32100
|
+
lineHeight: '1em',
|
|
32101
|
+
capHeight: '0.71em',
|
|
32102
|
+
// Magic number from d3
|
|
32103
|
+
scaleToFit: false,
|
|
32104
|
+
textAnchor: 'start',
|
|
32105
|
+
verticalAnchor: 'end',
|
|
32106
|
+
// Maintain compat with existing charts / default SVG behavior
|
|
32107
|
+
fill: '#808080'
|
|
32108
|
+
};
|
|
32109
|
+
var Text = function Text(props) {
|
|
32147
32110
|
var wordsByLines = useMemo(function () {
|
|
32148
32111
|
return getWordsByLines({
|
|
32149
32112
|
breakAll: props.breakAll,
|
|
32150
32113
|
children: props.children,
|
|
32151
32114
|
maxLines: props.maxLines,
|
|
32152
|
-
scaleToFit: scaleToFit,
|
|
32115
|
+
scaleToFit: props.scaleToFit,
|
|
32153
32116
|
style: props.style,
|
|
32154
32117
|
width: props.width
|
|
32155
32118
|
});
|
|
32156
|
-
}, [props.breakAll, props.children, props.maxLines, scaleToFit, props.style, props.width]);
|
|
32119
|
+
}, [props.breakAll, props.children, props.maxLines, props.scaleToFit, props.style, props.width]);
|
|
32157
32120
|
var dx = props.dx,
|
|
32158
32121
|
dy = props.dy,
|
|
32122
|
+
textAnchor = props.textAnchor,
|
|
32123
|
+
verticalAnchor = props.verticalAnchor,
|
|
32124
|
+
scaleToFit = props.scaleToFit,
|
|
32159
32125
|
angle = props.angle,
|
|
32126
|
+
lineHeight = props.lineHeight,
|
|
32127
|
+
capHeight = props.capHeight,
|
|
32160
32128
|
className = props.className,
|
|
32161
32129
|
breakAll = props.breakAll,
|
|
32162
|
-
textProps = _objectWithoutProperties$
|
|
32163
|
-
if (!isNumOrStr(
|
|
32130
|
+
textProps = _objectWithoutProperties$7(props, _excluded$7);
|
|
32131
|
+
if (!isNumOrStr(textProps.x) || !isNumOrStr(textProps.y)) {
|
|
32164
32132
|
return null;
|
|
32165
32133
|
}
|
|
32166
|
-
var x =
|
|
32167
|
-
var y =
|
|
32134
|
+
var x = textProps.x + (isNumber(dx) ? dx : 0);
|
|
32135
|
+
var y = textProps.y + (isNumber(dy) ? dy : 0);
|
|
32168
32136
|
var startDy;
|
|
32169
32137
|
switch (verticalAnchor) {
|
|
32170
32138
|
case 'start':
|
|
@@ -32194,7 +32162,7 @@ var Text = function Text(_ref5) {
|
|
|
32194
32162
|
y: y,
|
|
32195
32163
|
className: classNames('recharts-text', className),
|
|
32196
32164
|
textAnchor: textAnchor,
|
|
32197
|
-
fill: fill.includes('url') ?
|
|
32165
|
+
fill: textProps.fill.includes('url') ? textDefaultProps.fill : textProps.fill
|
|
32198
32166
|
}), wordsByLines.map(function (line, index) {
|
|
32199
32167
|
return (
|
|
32200
32168
|
/*#__PURE__*/
|
|
@@ -32207,6 +32175,7 @@ var Text = function Text(_ref5) {
|
|
|
32207
32175
|
);
|
|
32208
32176
|
}));
|
|
32209
32177
|
};
|
|
32178
|
+
Text.defaultProps = textDefaultProps;
|
|
32210
32179
|
|
|
32211
32180
|
var baseIsEqual = _baseIsEqual;
|
|
32212
32181
|
|
|
@@ -38474,7 +38443,7 @@ function getTickValuesFixedDomainFn(_ref7, tickCount) {
|
|
|
38474
38443
|
var getNiceTickValues = memoize(getNiceTickValuesFn);
|
|
38475
38444
|
var getTickValuesFixedDomain = memoize(getTickValuesFixedDomainFn);
|
|
38476
38445
|
|
|
38477
|
-
var _excluded$
|
|
38446
|
+
var _excluded$6 = ["offset", "layout", "width", "dataKey", "data", "dataPointFormatter", "xAxis", "yAxis"];
|
|
38478
38447
|
function _extends$g() { _extends$g = Object.assign ? Object.assign.bind() : 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$g.apply(this, arguments); }
|
|
38479
38448
|
function _slicedToArray$3(arr, i) { return _arrayWithHoles$3(arr) || _iterableToArrayLimit$3(arr, i) || _unsupportedIterableToArray$7(arr, i) || _nonIterableRest$3(); }
|
|
38480
38449
|
function _nonIterableRest$3() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -38482,8 +38451,8 @@ function _unsupportedIterableToArray$7(o, minLen) { if (!o) return; if (typeof o
|
|
|
38482
38451
|
function _arrayLikeToArray$7(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
38483
38452
|
function _iterableToArrayLimit$3(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
38484
38453
|
function _arrayWithHoles$3(arr) { if (Array.isArray(arr)) return arr; }
|
|
38485
|
-
function _objectWithoutProperties$
|
|
38486
|
-
function _objectWithoutPropertiesLoose$
|
|
38454
|
+
function _objectWithoutProperties$6(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$6(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
38455
|
+
function _objectWithoutPropertiesLoose$6(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
38487
38456
|
function ErrorBar(props) {
|
|
38488
38457
|
var offset = props.offset,
|
|
38489
38458
|
layout = props.layout,
|
|
@@ -38493,7 +38462,7 @@ function ErrorBar(props) {
|
|
|
38493
38462
|
dataPointFormatter = props.dataPointFormatter,
|
|
38494
38463
|
xAxis = props.xAxis,
|
|
38495
38464
|
yAxis = props.yAxis,
|
|
38496
|
-
others = _objectWithoutProperties$
|
|
38465
|
+
others = _objectWithoutProperties$6(props, _excluded$6);
|
|
38497
38466
|
var svgProps = filterProps(others);
|
|
38498
38467
|
var errorBars = data.map(function (entry, i) {
|
|
38499
38468
|
var _dataPointFormatter = dataPointFormatter(entry, dataKey),
|
|
@@ -38604,18 +38573,18 @@ ErrorBar.defaultProps = {
|
|
|
38604
38573
|
};
|
|
38605
38574
|
ErrorBar.displayName = 'ErrorBar';
|
|
38606
38575
|
|
|
38607
|
-
function _typeof$
|
|
38576
|
+
function _typeof$h(obj) { "@babel/helpers - typeof"; return _typeof$h = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$h(obj); }
|
|
38608
38577
|
function _toConsumableArray$4(arr) { return _arrayWithoutHoles$4(arr) || _iterableToArray$4(arr) || _unsupportedIterableToArray$6(arr) || _nonIterableSpread$4(); }
|
|
38609
38578
|
function _nonIterableSpread$4() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
38610
38579
|
function _unsupportedIterableToArray$6(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$6(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$6(o, minLen); }
|
|
38611
38580
|
function _iterableToArray$4(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
38612
38581
|
function _arrayWithoutHoles$4(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$6(arr); }
|
|
38613
38582
|
function _arrayLikeToArray$6(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
38614
|
-
function ownKeys$
|
|
38615
|
-
function _objectSpread$
|
|
38616
|
-
function _defineProperty$
|
|
38617
|
-
function _toPropertyKey$
|
|
38618
|
-
function _toPrimitive$
|
|
38583
|
+
function ownKeys$g(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
38584
|
+
function _objectSpread$g(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$g(Object(source), !0).forEach(function (key) { _defineProperty$h(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$g(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
38585
|
+
function _defineProperty$h(obj, key, value) { key = _toPropertyKey$h(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
38586
|
+
function _toPropertyKey$h(arg) { var key = _toPrimitive$h(arg, "string"); return _typeof$h(key) === "symbol" ? key : String(key); }
|
|
38587
|
+
function _toPrimitive$h(input, hint) { if (_typeof$h(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$h(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
38619
38588
|
// TODO: Cause of circular dependency. Needs refactor.
|
|
38620
38589
|
// import { RadiusAxisProps, AngleAxisProps } from '../polar/types';
|
|
38621
38590
|
function getValueByDataKey(obj, dataKey, defaultValue) {
|
|
@@ -38786,7 +38755,7 @@ var getLegendProps = function getLegendProps(_ref2) {
|
|
|
38786
38755
|
};
|
|
38787
38756
|
});
|
|
38788
38757
|
}
|
|
38789
|
-
return _objectSpread$
|
|
38758
|
+
return _objectSpread$g(_objectSpread$g(_objectSpread$g({}, legendItem.props), Legend.getWithHeight(legendItem, legendWidth)), {}, {
|
|
38790
38759
|
payload: legendData,
|
|
38791
38760
|
item: legendItem
|
|
38792
38761
|
});
|
|
@@ -38940,10 +38909,10 @@ var appendOffsetOfLegend = function appendOffsetOfLegend(offset, items, props, l
|
|
|
38940
38909
|
verticalAlign = legendProps.verticalAlign,
|
|
38941
38910
|
layout = legendProps.layout;
|
|
38942
38911
|
if ((layout === 'vertical' || layout === 'horizontal' && verticalAlign === 'middle') && isNumber(offset[align])) {
|
|
38943
|
-
newOffset = _objectSpread$
|
|
38912
|
+
newOffset = _objectSpread$g(_objectSpread$g({}, offset), {}, _defineProperty$h({}, align, newOffset[align] + (box.width || 0)));
|
|
38944
38913
|
}
|
|
38945
38914
|
if ((layout === 'horizontal' || layout === 'vertical' && align === 'center') && isNumber(offset[verticalAlign])) {
|
|
38946
|
-
newOffset = _objectSpread$
|
|
38915
|
+
newOffset = _objectSpread$g(_objectSpread$g({}, offset), {}, _defineProperty$h({}, verticalAlign, newOffset[verticalAlign] + (box.height || 0)));
|
|
38947
38916
|
}
|
|
38948
38917
|
}
|
|
38949
38918
|
return newOffset;
|
|
@@ -39369,14 +39338,14 @@ var getStackGroupsByAxisId = function getStackGroupsByAxisId(data, _items, numer
|
|
|
39369
39338
|
items: [item]
|
|
39370
39339
|
};
|
|
39371
39340
|
}
|
|
39372
|
-
return _objectSpread$
|
|
39341
|
+
return _objectSpread$g(_objectSpread$g({}, result), {}, _defineProperty$h({}, axisId, parentGroup));
|
|
39373
39342
|
}, {});
|
|
39374
39343
|
return Object.keys(stackGroups).reduce(function (result, axisId) {
|
|
39375
39344
|
var group = stackGroups[axisId];
|
|
39376
39345
|
if (group.hasStack) {
|
|
39377
39346
|
group.stackGroups = Object.keys(group.stackGroups).reduce(function (res, stackId) {
|
|
39378
39347
|
var g = group.stackGroups[stackId];
|
|
39379
|
-
return _objectSpread$
|
|
39348
|
+
return _objectSpread$g(_objectSpread$g({}, res), {}, _defineProperty$h({}, stackId, {
|
|
39380
39349
|
numericAxisId: numericAxisId,
|
|
39381
39350
|
cateAxisId: cateAxisId,
|
|
39382
39351
|
items: g.items,
|
|
@@ -39384,7 +39353,7 @@ var getStackGroupsByAxisId = function getStackGroupsByAxisId(data, _items, numer
|
|
|
39384
39353
|
}));
|
|
39385
39354
|
}, {});
|
|
39386
39355
|
}
|
|
39387
|
-
return _objectSpread$
|
|
39356
|
+
return _objectSpread$g(_objectSpread$g({}, result), {}, _defineProperty$h({}, axisId, group));
|
|
39388
39357
|
}, {});
|
|
39389
39358
|
};
|
|
39390
39359
|
|
|
@@ -39598,7 +39567,7 @@ var getTooltipItem = function getTooltipItem(graphicalItem, payload) {
|
|
|
39598
39567
|
formatter = _graphicalItem$props.formatter,
|
|
39599
39568
|
tooltipType = _graphicalItem$props.tooltipType,
|
|
39600
39569
|
chartType = _graphicalItem$props.chartType;
|
|
39601
|
-
return _objectSpread$
|
|
39570
|
+
return _objectSpread$g(_objectSpread$g({}, filterProps(graphicalItem)), {}, {
|
|
39602
39571
|
dataKey: dataKey,
|
|
39603
39572
|
unit: unit,
|
|
39604
39573
|
formatter: formatter,
|
|
@@ -39611,12 +39580,12 @@ var getTooltipItem = function getTooltipItem(graphicalItem, payload) {
|
|
|
39611
39580
|
});
|
|
39612
39581
|
};
|
|
39613
39582
|
|
|
39614
|
-
function _typeof$
|
|
39615
|
-
function ownKeys$
|
|
39616
|
-
function _objectSpread$
|
|
39617
|
-
function _defineProperty$
|
|
39618
|
-
function _toPropertyKey$
|
|
39619
|
-
function _toPrimitive$
|
|
39583
|
+
function _typeof$g(obj) { "@babel/helpers - typeof"; return _typeof$g = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$g(obj); }
|
|
39584
|
+
function ownKeys$f(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
39585
|
+
function _objectSpread$f(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$f(Object(source), !0).forEach(function (key) { _defineProperty$g(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$f(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
39586
|
+
function _defineProperty$g(obj, key, value) { key = _toPropertyKey$g(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
39587
|
+
function _toPropertyKey$g(arg) { var key = _toPrimitive$g(arg, "string"); return _typeof$g(key) === "symbol" ? key : String(key); }
|
|
39588
|
+
function _toPrimitive$g(input, hint) { if (_typeof$g(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$g(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
39620
39589
|
var RADIAN = Math.PI / 180;
|
|
39621
39590
|
var radianToDegree = function radianToDegree(angleInRadian) {
|
|
39622
39591
|
return angleInRadian * 180 / Math.PI;
|
|
@@ -39721,7 +39690,7 @@ var inRangeOfSector = function inRangeOfSector(_ref5, sector) {
|
|
|
39721
39690
|
inRange = formatAngle >= endAngle && formatAngle <= startAngle;
|
|
39722
39691
|
}
|
|
39723
39692
|
if (inRange) {
|
|
39724
|
-
return _objectSpread$
|
|
39693
|
+
return _objectSpread$f(_objectSpread$f({}, sector), {}, {
|
|
39725
39694
|
radius: radius,
|
|
39726
39695
|
angle: reverseFormatAngleOfSetor(formatAngle, sector)
|
|
39727
39696
|
});
|
|
@@ -39729,21 +39698,18 @@ var inRangeOfSector = function inRangeOfSector(_ref5, sector) {
|
|
|
39729
39698
|
return null;
|
|
39730
39699
|
};
|
|
39731
39700
|
|
|
39732
|
-
function _typeof$
|
|
39733
|
-
var _excluded$7 = ["offset"];
|
|
39701
|
+
function _typeof$f(obj) { "@babel/helpers - typeof"; return _typeof$f = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$f(obj); }
|
|
39734
39702
|
function _toConsumableArray$3(arr) { return _arrayWithoutHoles$3(arr) || _iterableToArray$3(arr) || _unsupportedIterableToArray$5(arr) || _nonIterableSpread$3(); }
|
|
39735
39703
|
function _nonIterableSpread$3() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
39736
39704
|
function _unsupportedIterableToArray$5(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$5(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$5(o, minLen); }
|
|
39737
39705
|
function _iterableToArray$3(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
39738
39706
|
function _arrayWithoutHoles$3(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$5(arr); }
|
|
39739
39707
|
function _arrayLikeToArray$5(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
39740
|
-
function
|
|
39741
|
-
function
|
|
39742
|
-
function
|
|
39743
|
-
function
|
|
39744
|
-
function
|
|
39745
|
-
function _toPropertyKey$i(arg) { var key = _toPrimitive$i(arg, "string"); return _typeof$i(key) === "symbol" ? key : String(key); }
|
|
39746
|
-
function _toPrimitive$i(input, hint) { if (_typeof$i(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$i(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
39708
|
+
function ownKeys$e(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
39709
|
+
function _objectSpread$e(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$e(Object(source), !0).forEach(function (key) { _defineProperty$f(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$e(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
39710
|
+
function _defineProperty$f(obj, key, value) { key = _toPropertyKey$f(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
39711
|
+
function _toPropertyKey$f(arg) { var key = _toPrimitive$f(arg, "string"); return _typeof$f(key) === "symbol" ? key : String(key); }
|
|
39712
|
+
function _toPrimitive$f(input, hint) { if (_typeof$f(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$f(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
39747
39713
|
function _extends$f() { _extends$f = Object.assign ? Object.assign.bind() : 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$f.apply(this, arguments); }
|
|
39748
39714
|
var getLabel = function getLabel(props) {
|
|
39749
39715
|
var value = props.value,
|
|
@@ -39888,7 +39854,7 @@ var getAttrsOfCartesianLabel = function getAttrsOfCartesianLabel(props) {
|
|
|
39888
39854
|
textAnchor: 'middle',
|
|
39889
39855
|
verticalAnchor: verticalEnd
|
|
39890
39856
|
};
|
|
39891
|
-
return _objectSpread$
|
|
39857
|
+
return _objectSpread$e(_objectSpread$e({}, attrs), parentViewBox ? {
|
|
39892
39858
|
height: Math.max(y - parentViewBox.y, 0),
|
|
39893
39859
|
width: width
|
|
39894
39860
|
} : {});
|
|
@@ -39900,7 +39866,7 @@ var getAttrsOfCartesianLabel = function getAttrsOfCartesianLabel(props) {
|
|
|
39900
39866
|
textAnchor: 'middle',
|
|
39901
39867
|
verticalAnchor: verticalStart
|
|
39902
39868
|
};
|
|
39903
|
-
return _objectSpread$
|
|
39869
|
+
return _objectSpread$e(_objectSpread$e({}, _attrs), parentViewBox ? {
|
|
39904
39870
|
height: Math.max(parentViewBox.y + parentViewBox.height - (y + height), 0),
|
|
39905
39871
|
width: width
|
|
39906
39872
|
} : {});
|
|
@@ -39912,7 +39878,7 @@ var getAttrsOfCartesianLabel = function getAttrsOfCartesianLabel(props) {
|
|
|
39912
39878
|
textAnchor: horizontalEnd,
|
|
39913
39879
|
verticalAnchor: 'middle'
|
|
39914
39880
|
};
|
|
39915
|
-
return _objectSpread$
|
|
39881
|
+
return _objectSpread$e(_objectSpread$e({}, _attrs2), parentViewBox ? {
|
|
39916
39882
|
width: Math.max(_attrs2.x - parentViewBox.x, 0),
|
|
39917
39883
|
height: height
|
|
39918
39884
|
} : {});
|
|
@@ -39924,7 +39890,7 @@ var getAttrsOfCartesianLabel = function getAttrsOfCartesianLabel(props) {
|
|
|
39924
39890
|
textAnchor: horizontalStart,
|
|
39925
39891
|
verticalAnchor: 'middle'
|
|
39926
39892
|
};
|
|
39927
|
-
return _objectSpread$
|
|
39893
|
+
return _objectSpread$e(_objectSpread$e({}, _attrs3), parentViewBox ? {
|
|
39928
39894
|
width: Math.max(parentViewBox.x + parentViewBox.width - _attrs3.x, 0),
|
|
39929
39895
|
height: height
|
|
39930
39896
|
} : {});
|
|
@@ -39934,7 +39900,7 @@ var getAttrsOfCartesianLabel = function getAttrsOfCartesianLabel(props) {
|
|
|
39934
39900
|
height: height
|
|
39935
39901
|
} : {};
|
|
39936
39902
|
if (position === 'insideLeft') {
|
|
39937
|
-
return _objectSpread$
|
|
39903
|
+
return _objectSpread$e({
|
|
39938
39904
|
x: x + horizontalOffset,
|
|
39939
39905
|
y: y + height / 2,
|
|
39940
39906
|
textAnchor: horizontalStart,
|
|
@@ -39942,7 +39908,7 @@ var getAttrsOfCartesianLabel = function getAttrsOfCartesianLabel(props) {
|
|
|
39942
39908
|
}, sizeAttrs);
|
|
39943
39909
|
}
|
|
39944
39910
|
if (position === 'insideRight') {
|
|
39945
|
-
return _objectSpread$
|
|
39911
|
+
return _objectSpread$e({
|
|
39946
39912
|
x: x + width - horizontalOffset,
|
|
39947
39913
|
y: y + height / 2,
|
|
39948
39914
|
textAnchor: horizontalEnd,
|
|
@@ -39950,7 +39916,7 @@ var getAttrsOfCartesianLabel = function getAttrsOfCartesianLabel(props) {
|
|
|
39950
39916
|
}, sizeAttrs);
|
|
39951
39917
|
}
|
|
39952
39918
|
if (position === 'insideTop') {
|
|
39953
|
-
return _objectSpread$
|
|
39919
|
+
return _objectSpread$e({
|
|
39954
39920
|
x: x + width / 2,
|
|
39955
39921
|
y: y + verticalOffset,
|
|
39956
39922
|
textAnchor: 'middle',
|
|
@@ -39958,7 +39924,7 @@ var getAttrsOfCartesianLabel = function getAttrsOfCartesianLabel(props) {
|
|
|
39958
39924
|
}, sizeAttrs);
|
|
39959
39925
|
}
|
|
39960
39926
|
if (position === 'insideBottom') {
|
|
39961
|
-
return _objectSpread$
|
|
39927
|
+
return _objectSpread$e({
|
|
39962
39928
|
x: x + width / 2,
|
|
39963
39929
|
y: y + height - verticalOffset,
|
|
39964
39930
|
textAnchor: 'middle',
|
|
@@ -39966,7 +39932,7 @@ var getAttrsOfCartesianLabel = function getAttrsOfCartesianLabel(props) {
|
|
|
39966
39932
|
}, sizeAttrs);
|
|
39967
39933
|
}
|
|
39968
39934
|
if (position === 'insideTopLeft') {
|
|
39969
|
-
return _objectSpread$
|
|
39935
|
+
return _objectSpread$e({
|
|
39970
39936
|
x: x + horizontalOffset,
|
|
39971
39937
|
y: y + verticalOffset,
|
|
39972
39938
|
textAnchor: horizontalStart,
|
|
@@ -39974,7 +39940,7 @@ var getAttrsOfCartesianLabel = function getAttrsOfCartesianLabel(props) {
|
|
|
39974
39940
|
}, sizeAttrs);
|
|
39975
39941
|
}
|
|
39976
39942
|
if (position === 'insideTopRight') {
|
|
39977
|
-
return _objectSpread$
|
|
39943
|
+
return _objectSpread$e({
|
|
39978
39944
|
x: x + width - horizontalOffset,
|
|
39979
39945
|
y: y + verticalOffset,
|
|
39980
39946
|
textAnchor: horizontalEnd,
|
|
@@ -39982,7 +39948,7 @@ var getAttrsOfCartesianLabel = function getAttrsOfCartesianLabel(props) {
|
|
|
39982
39948
|
}, sizeAttrs);
|
|
39983
39949
|
}
|
|
39984
39950
|
if (position === 'insideBottomLeft') {
|
|
39985
|
-
return _objectSpread$
|
|
39951
|
+
return _objectSpread$e({
|
|
39986
39952
|
x: x + horizontalOffset,
|
|
39987
39953
|
y: y + height - verticalOffset,
|
|
39988
39954
|
textAnchor: horizontalStart,
|
|
@@ -39990,7 +39956,7 @@ var getAttrsOfCartesianLabel = function getAttrsOfCartesianLabel(props) {
|
|
|
39990
39956
|
}, sizeAttrs);
|
|
39991
39957
|
}
|
|
39992
39958
|
if (position === 'insideBottomRight') {
|
|
39993
|
-
return _objectSpread$
|
|
39959
|
+
return _objectSpread$e({
|
|
39994
39960
|
x: x + width - horizontalOffset,
|
|
39995
39961
|
y: y + height - verticalOffset,
|
|
39996
39962
|
textAnchor: horizontalEnd,
|
|
@@ -39998,14 +39964,14 @@ var getAttrsOfCartesianLabel = function getAttrsOfCartesianLabel(props) {
|
|
|
39998
39964
|
}, sizeAttrs);
|
|
39999
39965
|
}
|
|
40000
39966
|
if (isObject_1(position) && (isNumber(position.x) || isPercent(position.x)) && (isNumber(position.y) || isPercent(position.y))) {
|
|
40001
|
-
return _objectSpread$
|
|
39967
|
+
return _objectSpread$e({
|
|
40002
39968
|
x: x + getPercentValue(position.x, width),
|
|
40003
39969
|
y: y + getPercentValue(position.y, height),
|
|
40004
39970
|
textAnchor: 'end',
|
|
40005
39971
|
verticalAnchor: 'end'
|
|
40006
39972
|
}, sizeAttrs);
|
|
40007
39973
|
}
|
|
40008
|
-
return _objectSpread$
|
|
39974
|
+
return _objectSpread$e({
|
|
40009
39975
|
x: x + width / 2,
|
|
40010
39976
|
y: y + height / 2,
|
|
40011
39977
|
textAnchor: 'middle',
|
|
@@ -40015,13 +39981,7 @@ var getAttrsOfCartesianLabel = function getAttrsOfCartesianLabel(props) {
|
|
|
40015
39981
|
var isPolar = function isPolar(viewBox) {
|
|
40016
39982
|
return 'cx' in viewBox && isNumber(viewBox.cx);
|
|
40017
39983
|
};
|
|
40018
|
-
function Label$3(
|
|
40019
|
-
var _ref4$offset = _ref4.offset,
|
|
40020
|
-
offset = _ref4$offset === void 0 ? 5 : _ref4$offset,
|
|
40021
|
-
restProps = _objectWithoutProperties$7(_ref4, _excluded$7);
|
|
40022
|
-
var props = _objectSpread$h({
|
|
40023
|
-
offset: offset
|
|
40024
|
-
}, restProps);
|
|
39984
|
+
function Label$3(props) {
|
|
40025
39985
|
var viewBox = props.viewBox,
|
|
40026
39986
|
position = props.position,
|
|
40027
39987
|
value = props.value,
|
|
@@ -40058,6 +40018,9 @@ function Label$3(_ref4) {
|
|
|
40058
40018
|
}), label);
|
|
40059
40019
|
}
|
|
40060
40020
|
Label$3.displayName = 'Label';
|
|
40021
|
+
Label$3.defaultProps = {
|
|
40022
|
+
offset: 5
|
|
40023
|
+
};
|
|
40061
40024
|
var parseViewBox = function parseViewBox(props) {
|
|
40062
40025
|
var cx = props.cx,
|
|
40063
40026
|
cy = props.cy,
|
|
@@ -40212,9 +40175,8 @@ function last(array) {
|
|
|
40212
40175
|
|
|
40213
40176
|
var last_1 = last;
|
|
40214
40177
|
|
|
40215
|
-
function _typeof$
|
|
40216
|
-
var _excluded$
|
|
40217
|
-
_excluded2$2 = ["data", "dataKey", "clockWise", "id", "textBreakAll"];
|
|
40178
|
+
function _typeof$e(obj) { "@babel/helpers - typeof"; return _typeof$e = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$e(obj); }
|
|
40179
|
+
var _excluded$5 = ["data", "valueAccessor", "dataKey", "clockWise", "id", "textBreakAll"];
|
|
40218
40180
|
function _toConsumableArray$2(arr) { return _arrayWithoutHoles$2(arr) || _iterableToArray$2(arr) || _unsupportedIterableToArray$4(arr) || _nonIterableSpread$2(); }
|
|
40219
40181
|
function _nonIterableSpread$2() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
40220
40182
|
function _unsupportedIterableToArray$4(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$4(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$4(o, minLen); }
|
|
@@ -40222,26 +40184,26 @@ function _iterableToArray$2(iter) { if (typeof Symbol !== "undefined" && iter[Sy
|
|
|
40222
40184
|
function _arrayWithoutHoles$2(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$4(arr); }
|
|
40223
40185
|
function _arrayLikeToArray$4(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
40224
40186
|
function _extends$e() { _extends$e = Object.assign ? Object.assign.bind() : 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$e.apply(this, arguments); }
|
|
40225
|
-
function ownKeys$
|
|
40226
|
-
function _objectSpread$
|
|
40227
|
-
function _defineProperty$
|
|
40228
|
-
function _toPropertyKey$
|
|
40229
|
-
function _toPrimitive$
|
|
40230
|
-
function _objectWithoutProperties$
|
|
40231
|
-
function _objectWithoutPropertiesLoose$
|
|
40232
|
-
var
|
|
40233
|
-
|
|
40234
|
-
|
|
40235
|
-
|
|
40236
|
-
|
|
40237
|
-
|
|
40238
|
-
|
|
40239
|
-
|
|
40240
|
-
dataKey =
|
|
40241
|
-
clockWise =
|
|
40242
|
-
id =
|
|
40243
|
-
textBreakAll =
|
|
40244
|
-
others = _objectWithoutProperties$
|
|
40187
|
+
function ownKeys$d(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
40188
|
+
function _objectSpread$d(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$d(Object(source), !0).forEach(function (key) { _defineProperty$e(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$d(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
40189
|
+
function _defineProperty$e(obj, key, value) { key = _toPropertyKey$e(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
40190
|
+
function _toPropertyKey$e(arg) { var key = _toPrimitive$e(arg, "string"); return _typeof$e(key) === "symbol" ? key : String(key); }
|
|
40191
|
+
function _toPrimitive$e(input, hint) { if (_typeof$e(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$e(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
40192
|
+
function _objectWithoutProperties$5(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$5(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
40193
|
+
function _objectWithoutPropertiesLoose$5(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
40194
|
+
var defaultProps = {
|
|
40195
|
+
valueAccessor: function valueAccessor(entry) {
|
|
40196
|
+
return isArray_1(entry.value) ? last_1(entry.value) : entry.value;
|
|
40197
|
+
}
|
|
40198
|
+
};
|
|
40199
|
+
function LabelList(props) {
|
|
40200
|
+
var data = props.data,
|
|
40201
|
+
valueAccessor = props.valueAccessor,
|
|
40202
|
+
dataKey = props.dataKey,
|
|
40203
|
+
clockWise = props.clockWise,
|
|
40204
|
+
id = props.id,
|
|
40205
|
+
textBreakAll = props.textBreakAll,
|
|
40206
|
+
others = _objectWithoutProperties$5(props, _excluded$5);
|
|
40245
40207
|
if (!data || !data.length) {
|
|
40246
40208
|
return null;
|
|
40247
40209
|
}
|
|
@@ -40257,7 +40219,7 @@ function LabelList(_ref) {
|
|
|
40257
40219
|
index: index,
|
|
40258
40220
|
value: value,
|
|
40259
40221
|
textBreakAll: textBreakAll,
|
|
40260
|
-
viewBox: Label$3.parseViewBox(isNil_1(clockWise) ? entry : _objectSpread$
|
|
40222
|
+
viewBox: Label$3.parseViewBox(isNil_1(clockWise) ? entry : _objectSpread$d(_objectSpread$d({}, entry), {}, {
|
|
40261
40223
|
clockWise: clockWise
|
|
40262
40224
|
})),
|
|
40263
40225
|
key: "label-".concat(index) // eslint-disable-line react/no-array-index-key
|
|
@@ -40312,14 +40274,9 @@ function renderCallByParent(parentProps, data) {
|
|
|
40312
40274
|
return [implicitLabelList].concat(_toConsumableArray$2(explicitChildren));
|
|
40313
40275
|
}
|
|
40314
40276
|
LabelList.renderCallByParent = renderCallByParent;
|
|
40277
|
+
LabelList.defaultProps = defaultProps;
|
|
40315
40278
|
|
|
40316
|
-
function _typeof$g(obj) { "@babel/helpers - typeof"; return _typeof$g = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$g(obj); }
|
|
40317
40279
|
function _extends$d() { _extends$d = Object.assign ? Object.assign.bind() : 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$d.apply(this, arguments); }
|
|
40318
|
-
function ownKeys$f(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
40319
|
-
function _objectSpread$f(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$f(Object(source), !0).forEach(function (key) { _defineProperty$g(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$f(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
40320
|
-
function _defineProperty$g(obj, key, value) { key = _toPropertyKey$g(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
40321
|
-
function _toPropertyKey$g(arg) { var key = _toPrimitive$g(arg, "string"); return _typeof$g(key) === "symbol" ? key : String(key); }
|
|
40322
|
-
function _toPrimitive$g(input, hint) { if (_typeof$g(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$g(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
40323
40280
|
var getDeltaAngle = function getDeltaAngle(startAngle, endAngle) {
|
|
40324
40281
|
var sign = mathSign(endAngle - startAngle);
|
|
40325
40282
|
var deltaAngle = Math.min(Math.abs(endAngle - startAngle), 359.999);
|
|
@@ -40460,19 +40417,7 @@ var getSectorWithCorner = function getSectorWithCorner(_ref3) {
|
|
|
40460
40417
|
}
|
|
40461
40418
|
return path;
|
|
40462
40419
|
};
|
|
40463
|
-
var
|
|
40464
|
-
cx: 0,
|
|
40465
|
-
cy: 0,
|
|
40466
|
-
innerRadius: 0,
|
|
40467
|
-
outerRadius: 0,
|
|
40468
|
-
startAngle: 0,
|
|
40469
|
-
endAngle: 0,
|
|
40470
|
-
cornerRadius: 0,
|
|
40471
|
-
forceCornerRadius: false,
|
|
40472
|
-
cornerIsExternal: false
|
|
40473
|
-
};
|
|
40474
|
-
var Sector = function Sector(sectorProps) {
|
|
40475
|
-
var props = _objectSpread$f(_objectSpread$f({}, defaultProps$1), sectorProps);
|
|
40420
|
+
var Sector = function Sector(props) {
|
|
40476
40421
|
var cx = props.cx,
|
|
40477
40422
|
cy = props.cy,
|
|
40478
40423
|
innerRadius = props.innerRadius,
|
|
@@ -40518,14 +40463,25 @@ var Sector = function Sector(sectorProps) {
|
|
|
40518
40463
|
role: "img"
|
|
40519
40464
|
}));
|
|
40520
40465
|
};
|
|
40466
|
+
Sector.defaultProps = {
|
|
40467
|
+
cx: 0,
|
|
40468
|
+
cy: 0,
|
|
40469
|
+
innerRadius: 0,
|
|
40470
|
+
outerRadius: 0,
|
|
40471
|
+
startAngle: 0,
|
|
40472
|
+
endAngle: 0,
|
|
40473
|
+
cornerRadius: 0,
|
|
40474
|
+
forceCornerRadius: false,
|
|
40475
|
+
cornerIsExternal: false
|
|
40476
|
+
};
|
|
40521
40477
|
|
|
40522
|
-
function _typeof$
|
|
40478
|
+
function _typeof$d(obj) { "@babel/helpers - typeof"; return _typeof$d = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$d(obj); }
|
|
40523
40479
|
function _extends$c() { _extends$c = Object.assign ? Object.assign.bind() : 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$c.apply(this, arguments); }
|
|
40524
|
-
function ownKeys$
|
|
40525
|
-
function _objectSpread$
|
|
40526
|
-
function _defineProperty$
|
|
40527
|
-
function _toPropertyKey$
|
|
40528
|
-
function _toPrimitive$
|
|
40480
|
+
function ownKeys$c(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
40481
|
+
function _objectSpread$c(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$c(Object(source), !0).forEach(function (key) { _defineProperty$d(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$c(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
40482
|
+
function _defineProperty$d(obj, key, value) { key = _toPropertyKey$d(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
40483
|
+
function _toPropertyKey$d(arg) { var key = _toPrimitive$d(arg, "string"); return _typeof$d(key) === "symbol" ? key : String(key); }
|
|
40484
|
+
function _toPrimitive$d(input, hint) { if (_typeof$d(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$d(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
40529
40485
|
var CURVE_FACTORIES = {
|
|
40530
40486
|
curveBasisClosed: curveBasisClosed,
|
|
40531
40487
|
curveBasisOpen: curveBasisOpen,
|
|
@@ -40565,14 +40521,11 @@ var getCurveFactory = function getCurveFactory(type, layout) {
|
|
|
40565
40521
|
* @return {String} path
|
|
40566
40522
|
*/
|
|
40567
40523
|
var getPath$1 = function getPath(_ref) {
|
|
40568
|
-
var
|
|
40569
|
-
|
|
40570
|
-
_ref$points = _ref.points,
|
|
40571
|
-
points = _ref$points === void 0 ? [] : _ref$points,
|
|
40524
|
+
var type = _ref.type,
|
|
40525
|
+
points = _ref.points,
|
|
40572
40526
|
baseLine = _ref.baseLine,
|
|
40573
40527
|
layout = _ref.layout,
|
|
40574
|
-
|
|
40575
|
-
connectNulls = _ref$connectNulls === void 0 ? false : _ref$connectNulls;
|
|
40528
|
+
connectNulls = _ref.connectNulls;
|
|
40576
40529
|
var curveFactory = getCurveFactory(type, layout);
|
|
40577
40530
|
var formatPoints = connectNulls ? points.filter(function (entry) {
|
|
40578
40531
|
return defined(entry);
|
|
@@ -40583,7 +40536,7 @@ var getPath$1 = function getPath(_ref) {
|
|
|
40583
40536
|
return defined(base);
|
|
40584
40537
|
}) : baseLine;
|
|
40585
40538
|
var areaPoints = formatPoints.map(function (entry, index) {
|
|
40586
|
-
return _objectSpread$
|
|
40539
|
+
return _objectSpread$c(_objectSpread$c({}, entry), {}, {
|
|
40587
40540
|
base: formatBaseLine[index]
|
|
40588
40541
|
});
|
|
40589
40542
|
});
|
|
@@ -40624,8 +40577,12 @@ var Curve = function Curve(props) {
|
|
|
40624
40577
|
ref: pathRef
|
|
40625
40578
|
}));
|
|
40626
40579
|
};
|
|
40580
|
+
Curve.defaultProps = {
|
|
40581
|
+
type: 'linear',
|
|
40582
|
+
points: [],
|
|
40583
|
+
connectNulls: false
|
|
40584
|
+
};
|
|
40627
40585
|
|
|
40628
|
-
function _typeof$e(obj) { "@babel/helpers - typeof"; return _typeof$e = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$e(obj); }
|
|
40629
40586
|
function _extends$b() { _extends$b = Object.assign ? Object.assign.bind() : 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$b.apply(this, arguments); }
|
|
40630
40587
|
function _slicedToArray$2(arr, i) { return _arrayWithHoles$2(arr) || _iterableToArrayLimit$2(arr, i) || _unsupportedIterableToArray$3(arr, i) || _nonIterableRest$2(); }
|
|
40631
40588
|
function _nonIterableRest$2() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -40633,11 +40590,6 @@ function _unsupportedIterableToArray$3(o, minLen) { if (!o) return; if (typeof o
|
|
|
40633
40590
|
function _arrayLikeToArray$3(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
40634
40591
|
function _iterableToArrayLimit$2(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
40635
40592
|
function _arrayWithHoles$2(arr) { if (Array.isArray(arr)) return arr; }
|
|
40636
|
-
function ownKeys$d(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
40637
|
-
function _objectSpread$d(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$d(Object(source), !0).forEach(function (key) { _defineProperty$e(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$d(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
40638
|
-
function _defineProperty$e(obj, key, value) { key = _toPropertyKey$e(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
40639
|
-
function _toPropertyKey$e(arg) { var key = _toPrimitive$e(arg, "string"); return _typeof$e(key) === "symbol" ? key : String(key); }
|
|
40640
|
-
function _toPrimitive$e(input, hint) { if (_typeof$e(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$e(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
40641
40593
|
var getRectanglePath = function getRectanglePath(x, y, width, height, radius) {
|
|
40642
40594
|
var maxRadius = Math.min(Math.abs(width) / 2, Math.abs(height) / 2);
|
|
40643
40595
|
var ySign = height >= 0 ? 1 : -1;
|
|
@@ -40693,29 +40645,13 @@ var isInRectangle = function isInRectangle(point, rect) {
|
|
|
40693
40645
|
}
|
|
40694
40646
|
return false;
|
|
40695
40647
|
};
|
|
40696
|
-
var
|
|
40697
|
-
x: 0,
|
|
40698
|
-
y: 0,
|
|
40699
|
-
width: 0,
|
|
40700
|
-
height: 0,
|
|
40701
|
-
// The radius of border
|
|
40702
|
-
// The radius of four corners when radius is a number
|
|
40703
|
-
// The radius of left-top, right-top, right-bottom, left-bottom when radius is an array
|
|
40704
|
-
radius: 0,
|
|
40705
|
-
isAnimationActive: false,
|
|
40706
|
-
isUpdateAnimationActive: false,
|
|
40707
|
-
animationBegin: 0,
|
|
40708
|
-
animationDuration: 1500,
|
|
40709
|
-
animationEasing: 'ease'
|
|
40710
|
-
};
|
|
40711
|
-
var Rectangle = function Rectangle(rectangleProps) {
|
|
40712
|
-
var props = _objectSpread$d(_objectSpread$d({}, defaultProps), rectangleProps);
|
|
40648
|
+
var Rectangle = function Rectangle(props) {
|
|
40713
40649
|
var pathRef = useRef();
|
|
40714
40650
|
var _useState = useState(-1),
|
|
40715
40651
|
_useState2 = _slicedToArray$2(_useState, 2),
|
|
40716
40652
|
totalLength = _useState2[0],
|
|
40717
40653
|
setTotalLength = _useState2[1];
|
|
40718
|
-
|
|
40654
|
+
useLayoutEffect(function () {
|
|
40719
40655
|
if (pathRef.current && pathRef.current.getTotalLength) {
|
|
40720
40656
|
try {
|
|
40721
40657
|
var pathTotalLength = pathRef.current.getTotalLength();
|
|
@@ -40786,6 +40722,21 @@ var Rectangle = function Rectangle(rectangleProps) {
|
|
|
40786
40722
|
})));
|
|
40787
40723
|
});
|
|
40788
40724
|
};
|
|
40725
|
+
Rectangle.defaultProps = {
|
|
40726
|
+
x: 0,
|
|
40727
|
+
y: 0,
|
|
40728
|
+
width: 0,
|
|
40729
|
+
height: 0,
|
|
40730
|
+
// The radius of border
|
|
40731
|
+
// The radius of four corners when radius is a number
|
|
40732
|
+
// The radius of left-top, right-top, right-bottom, left-bottom when radius is an array
|
|
40733
|
+
radius: 0,
|
|
40734
|
+
isAnimationActive: false,
|
|
40735
|
+
isUpdateAnimationActive: false,
|
|
40736
|
+
animationBegin: 0,
|
|
40737
|
+
animationDuration: 1500,
|
|
40738
|
+
animationEasing: 'ease'
|
|
40739
|
+
};
|
|
40789
40740
|
|
|
40790
40741
|
function _extends$a() { _extends$a = Object.assign ? Object.assign.bind() : 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$a.apply(this, arguments); }
|
|
40791
40742
|
var Dot$1 = function Dot(props) {
|
|
@@ -40805,42 +40756,18 @@ var Dot$1 = function Dot(props) {
|
|
|
40805
40756
|
return null;
|
|
40806
40757
|
};
|
|
40807
40758
|
|
|
40808
|
-
function _typeof$d(obj) { "@babel/helpers - typeof"; return _typeof$d = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$d(obj); }
|
|
40809
|
-
var _excluded$5 = ["x", "y", "top", "left", "width", "height", "className"];
|
|
40810
40759
|
function _extends$9() { _extends$9 = Object.assign ? Object.assign.bind() : 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$9.apply(this, arguments); }
|
|
40811
|
-
function ownKeys$c(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
40812
|
-
function _objectSpread$c(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$c(Object(source), !0).forEach(function (key) { _defineProperty$d(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$c(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
40813
|
-
function _defineProperty$d(obj, key, value) { key = _toPropertyKey$d(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
40814
|
-
function _toPropertyKey$d(arg) { var key = _toPrimitive$d(arg, "string"); return _typeof$d(key) === "symbol" ? key : String(key); }
|
|
40815
|
-
function _toPrimitive$d(input, hint) { if (_typeof$d(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$d(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
40816
|
-
function _objectWithoutProperties$5(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$5(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
40817
|
-
function _objectWithoutPropertiesLoose$5(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
40818
40760
|
var getPath = function getPath(x, y, width, height, top, left) {
|
|
40819
40761
|
return "M".concat(x, ",").concat(top, "v").concat(height, "M").concat(left, ",").concat(y, "h").concat(width);
|
|
40820
40762
|
};
|
|
40821
|
-
var Cross = function Cross(
|
|
40822
|
-
var
|
|
40823
|
-
|
|
40824
|
-
|
|
40825
|
-
|
|
40826
|
-
|
|
40827
|
-
|
|
40828
|
-
|
|
40829
|
-
left = _ref$left === void 0 ? 0 : _ref$left,
|
|
40830
|
-
_ref$width = _ref.width,
|
|
40831
|
-
width = _ref$width === void 0 ? 0 : _ref$width,
|
|
40832
|
-
_ref$height = _ref.height,
|
|
40833
|
-
height = _ref$height === void 0 ? 0 : _ref$height,
|
|
40834
|
-
className = _ref.className,
|
|
40835
|
-
rest = _objectWithoutProperties$5(_ref, _excluded$5);
|
|
40836
|
-
var props = _objectSpread$c({
|
|
40837
|
-
x: x,
|
|
40838
|
-
y: y,
|
|
40839
|
-
top: top,
|
|
40840
|
-
left: left,
|
|
40841
|
-
width: width,
|
|
40842
|
-
height: height
|
|
40843
|
-
}, rest);
|
|
40763
|
+
var Cross = function Cross(props) {
|
|
40764
|
+
var x = props.x,
|
|
40765
|
+
y = props.y,
|
|
40766
|
+
width = props.width,
|
|
40767
|
+
height = props.height,
|
|
40768
|
+
top = props.top,
|
|
40769
|
+
left = props.left,
|
|
40770
|
+
className = props.className;
|
|
40844
40771
|
if (!isNumber(x) || !isNumber(y) || !isNumber(width) || !isNumber(height) || !isNumber(top) || !isNumber(left)) {
|
|
40845
40772
|
return null;
|
|
40846
40773
|
}
|
|
@@ -40849,6 +40776,14 @@ var Cross = function Cross(_ref) {
|
|
|
40849
40776
|
d: getPath(x, y, width, height, top, left)
|
|
40850
40777
|
}));
|
|
40851
40778
|
};
|
|
40779
|
+
Cross.defaultProps = {
|
|
40780
|
+
x: 0,
|
|
40781
|
+
y: 0,
|
|
40782
|
+
top: 0,
|
|
40783
|
+
left: 0,
|
|
40784
|
+
width: 0,
|
|
40785
|
+
height: 0
|
|
40786
|
+
};
|
|
40852
40787
|
|
|
40853
40788
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
40854
40789
|
|
|
@@ -41058,7 +40993,6 @@ var createScale = function createScale(_ref) {
|
|
|
41058
40993
|
isTextActive: false,
|
|
41059
40994
|
isSlideMoving: false,
|
|
41060
40995
|
isTravellerMoving: false,
|
|
41061
|
-
isTravellerFocused: false,
|
|
41062
40996
|
startX: scale(startIndex),
|
|
41063
40997
|
endX: scale(endIndex),
|
|
41064
40998
|
scale: scale,
|
|
@@ -41272,38 +41206,6 @@ var Brush = /*#__PURE__*/function (_PureComponent) {
|
|
|
41272
41206
|
}
|
|
41273
41207
|
});
|
|
41274
41208
|
}
|
|
41275
|
-
}, {
|
|
41276
|
-
key: "handleTravellerMoveKeyboard",
|
|
41277
|
-
value: function handleTravellerMoveKeyboard(direction, id) {
|
|
41278
|
-
var _this2 = this;
|
|
41279
|
-
// scaleValues are a list of coordinates. For example: [65, 250, 435, 620, 805, 990].
|
|
41280
|
-
var _this$state3 = this.state,
|
|
41281
|
-
scaleValues = _this$state3.scaleValues,
|
|
41282
|
-
startX = _this$state3.startX,
|
|
41283
|
-
endX = _this$state3.endX;
|
|
41284
|
-
// currentScaleValue refers to which coordinate the current traveller should be placed at.
|
|
41285
|
-
var currentScaleValue = this.state[id];
|
|
41286
|
-
var currentIndex = scaleValues.indexOf(currentScaleValue);
|
|
41287
|
-
if (currentIndex === -1) {
|
|
41288
|
-
return;
|
|
41289
|
-
}
|
|
41290
|
-
var newIndex = currentIndex + direction;
|
|
41291
|
-
if (newIndex === -1 || newIndex >= scaleValues.length) {
|
|
41292
|
-
return;
|
|
41293
|
-
}
|
|
41294
|
-
var newScaleValue = scaleValues[newIndex];
|
|
41295
|
-
|
|
41296
|
-
// Prevent travellers from being on top of each other or overlapping
|
|
41297
|
-
if (id === 'startX' && newScaleValue >= endX || id === 'endX' && newScaleValue <= startX) {
|
|
41298
|
-
return;
|
|
41299
|
-
}
|
|
41300
|
-
this.setState(_defineProperty$b({}, id, newScaleValue), function () {
|
|
41301
|
-
_this2.props.onChange(_this2.getIndex({
|
|
41302
|
-
startX: _this2.state.startX,
|
|
41303
|
-
endX: _this2.state.endX
|
|
41304
|
-
}));
|
|
41305
|
-
});
|
|
41306
|
-
}
|
|
41307
41209
|
}, {
|
|
41308
41210
|
key: "renderBackground",
|
|
41309
41211
|
value: function renderBackground() {
|
|
@@ -41351,7 +41253,6 @@ var Brush = /*#__PURE__*/function (_PureComponent) {
|
|
|
41351
41253
|
}, {
|
|
41352
41254
|
key: "renderTravellerLayer",
|
|
41353
41255
|
value: function renderTravellerLayer(travellerX, id) {
|
|
41354
|
-
var _this3 = this;
|
|
41355
41256
|
var _this$props7 = this.props,
|
|
41356
41257
|
y = _this$props7.y,
|
|
41357
41258
|
travellerWidth = _this$props7.travellerWidth,
|
|
@@ -41365,31 +41266,11 @@ var Brush = /*#__PURE__*/function (_PureComponent) {
|
|
|
41365
41266
|
height: height
|
|
41366
41267
|
});
|
|
41367
41268
|
return /*#__PURE__*/React__default.createElement(Layer, {
|
|
41368
|
-
tabIndex: 0,
|
|
41369
|
-
role: "slider",
|
|
41370
41269
|
className: "recharts-brush-traveller",
|
|
41371
41270
|
onMouseEnter: this.handleEnterSlideOrTraveller,
|
|
41372
41271
|
onMouseLeave: this.handleLeaveSlideOrTraveller,
|
|
41373
41272
|
onMouseDown: this.travellerDragStartHandlers[id],
|
|
41374
41273
|
onTouchStart: this.travellerDragStartHandlers[id],
|
|
41375
|
-
onKeyDown: function onKeyDown(e) {
|
|
41376
|
-
if (!['ArrowLeft', 'ArrowRight'].includes(e.key)) {
|
|
41377
|
-
return;
|
|
41378
|
-
}
|
|
41379
|
-
e.preventDefault();
|
|
41380
|
-
e.stopPropagation();
|
|
41381
|
-
_this3.handleTravellerMoveKeyboard(e.key === 'ArrowRight' ? 1 : -1, id);
|
|
41382
|
-
},
|
|
41383
|
-
onFocus: function onFocus() {
|
|
41384
|
-
_this3.setState({
|
|
41385
|
-
isTravellerFocused: true
|
|
41386
|
-
});
|
|
41387
|
-
},
|
|
41388
|
-
onBlur: function onBlur() {
|
|
41389
|
-
_this3.setState({
|
|
41390
|
-
isTravellerFocused: false
|
|
41391
|
-
});
|
|
41392
|
-
},
|
|
41393
41274
|
style: {
|
|
41394
41275
|
cursor: 'col-resize'
|
|
41395
41276
|
}
|
|
@@ -41433,9 +41314,9 @@ var Brush = /*#__PURE__*/function (_PureComponent) {
|
|
|
41433
41314
|
height = _this$props9.height,
|
|
41434
41315
|
travellerWidth = _this$props9.travellerWidth,
|
|
41435
41316
|
stroke = _this$props9.stroke;
|
|
41436
|
-
var _this$
|
|
41437
|
-
startX = _this$
|
|
41438
|
-
endX = _this$
|
|
41317
|
+
var _this$state3 = this.state,
|
|
41318
|
+
startX = _this$state3.startX,
|
|
41319
|
+
endX = _this$state3.endX;
|
|
41439
41320
|
var offset = 5;
|
|
41440
41321
|
var attrs = {
|
|
41441
41322
|
pointerEvents: 'none',
|
|
@@ -41467,13 +41348,12 @@ var Brush = /*#__PURE__*/function (_PureComponent) {
|
|
|
41467
41348
|
width = _this$props10.width,
|
|
41468
41349
|
height = _this$props10.height,
|
|
41469
41350
|
alwaysShowText = _this$props10.alwaysShowText;
|
|
41470
|
-
var _this$
|
|
41471
|
-
startX = _this$
|
|
41472
|
-
endX = _this$
|
|
41473
|
-
isTextActive = _this$
|
|
41474
|
-
isSlideMoving = _this$
|
|
41475
|
-
isTravellerMoving = _this$
|
|
41476
|
-
isTravellerFocused = _this$state5.isTravellerFocused;
|
|
41351
|
+
var _this$state4 = this.state,
|
|
41352
|
+
startX = _this$state4.startX,
|
|
41353
|
+
endX = _this$state4.endX,
|
|
41354
|
+
isTextActive = _this$state4.isTextActive,
|
|
41355
|
+
isSlideMoving = _this$state4.isSlideMoving,
|
|
41356
|
+
isTravellerMoving = _this$state4.isTravellerMoving;
|
|
41477
41357
|
if (!data || !data.length || !isNumber(x) || !isNumber(y) || !isNumber(width) || !isNumber(height) || width <= 0 || height <= 0) {
|
|
41478
41358
|
return null;
|
|
41479
41359
|
}
|
|
@@ -41485,7 +41365,7 @@ var Brush = /*#__PURE__*/function (_PureComponent) {
|
|
|
41485
41365
|
onMouseLeave: this.handleLeaveWrapper,
|
|
41486
41366
|
onTouchMove: this.handleTouchMove,
|
|
41487
41367
|
style: style
|
|
41488
|
-
}, this.renderBackground(), isPanoramic && this.renderPanorama(), this.renderSlide(startX, endX), this.renderTravellerLayer(startX, 'startX'), this.renderTravellerLayer(endX, 'endX'), (isTextActive || isSlideMoving || isTravellerMoving ||
|
|
41368
|
+
}, this.renderBackground(), isPanoramic && this.renderPanorama(), this.renderSlide(startX, endX), this.renderTravellerLayer(startX, 'startX'), this.renderTravellerLayer(endX, 'endX'), (isTextActive || isSlideMoving || isTravellerMoving || alwaysShowText) && this.renderText());
|
|
41489
41369
|
}
|
|
41490
41370
|
}], [{
|
|
41491
41371
|
key: "renderDefaultTraveller",
|
|
@@ -41803,7 +41683,7 @@ function every(collection, predicate, guard) {
|
|
|
41803
41683
|
|
|
41804
41684
|
var every_1 = every;
|
|
41805
41685
|
|
|
41806
|
-
var defineProperty = _defineProperty$
|
|
41686
|
+
var defineProperty = _defineProperty$l;
|
|
41807
41687
|
|
|
41808
41688
|
/**
|
|
41809
41689
|
* The base implementation of `assignValue` and `assignMergeValue` without
|
|
@@ -42164,6 +42044,7 @@ _defineProperty$a(Bar, "defaultProps", {
|
|
|
42164
42044
|
legendType: 'rect',
|
|
42165
42045
|
minPointSize: 0,
|
|
42166
42046
|
hide: false,
|
|
42047
|
+
// data of bar
|
|
42167
42048
|
data: [],
|
|
42168
42049
|
layout: 'vertical',
|
|
42169
42050
|
isAnimationActive: !Global.isSsr,
|
|
@@ -45076,11 +44957,10 @@ var AccessibilityManager = /*#__PURE__*/function () {
|
|
|
45076
44957
|
}
|
|
45077
44958
|
var _this$container$getBo = this.container.getBoundingClientRect(),
|
|
45078
44959
|
x = _this$container$getBo.x,
|
|
45079
|
-
y = _this$container$getBo.y
|
|
45080
|
-
height = _this$container$getBo.height;
|
|
44960
|
+
y = _this$container$getBo.y;
|
|
45081
44961
|
var coordinate = this.coordinateList[this.activeIndex].coordinate;
|
|
45082
44962
|
var pageX = x + coordinate;
|
|
45083
|
-
var pageY = y + this.offset.top
|
|
44963
|
+
var pageY = y + this.offset.top;
|
|
45084
44964
|
this.mouseHandlerCallback({
|
|
45085
44965
|
pageX: pageX,
|
|
45086
44966
|
pageY: pageY
|