@easyv/charts 1.2.1 → 1.2.2
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/commitlint.config.js +1 -1
- package/lib/components/AnimateData.js +34 -34
- package/lib/components/Axis.js +319 -319
- package/lib/components/Band.js +173 -173
- package/lib/components/Brush.js +201 -201
- package/lib/components/Carousel.js +162 -162
- package/lib/components/Chart.js +109 -109
- package/lib/components/ChartContainer.js +58 -58
- package/lib/components/ConicalGradient.js +243 -243
- package/lib/components/ExtentData.js +45 -45
- package/lib/components/FilterData.js +53 -53
- package/lib/components/Label.js +278 -278
- package/lib/components/Legend.js +154 -154
- package/lib/components/Line.js +181 -181
- package/lib/components/Mapping.js +127 -127
- package/lib/components/Marquee.js +97 -0
- package/lib/components/PieChart.js +1069 -1061
- package/lib/components/StackData.js +45 -45
- package/lib/components/StereoBar.js +336 -336
- package/lib/components/Tooltip.js +155 -155
- package/lib/components/index.js +194 -194
- package/lib/formatter/legend.js +91 -91
- package/lib/hooks/index.js +62 -62
- package/lib/hooks/useAnimateData.js +83 -83
- package/lib/hooks/useAxes.js +130 -130
- package/lib/hooks/useCarouselAxisX.js +179 -179
- package/lib/hooks/useExtentData.js +122 -122
- package/lib/hooks/useFilterData.js +107 -107
- package/lib/hooks/useStackData.js +129 -129
- package/lib/index.js +84 -84
- package/lib/utils/index.js +832 -832
- package/package.json +3 -3
- package/src/components/PieChart.js +468 -277
package/commitlint.config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
module.exports = {extends: ['@commitlint/config-conventional']}
|
|
1
|
+
module.exports = {extends: ['@commitlint/config-conventional']}
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
4
|
-
|
|
5
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "__esModule", {
|
|
8
|
-
value: true
|
|
9
|
-
});
|
|
10
|
-
exports["default"] = void 0;
|
|
11
|
-
|
|
12
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
13
|
-
|
|
14
|
-
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
15
|
-
|
|
16
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
17
|
-
|
|
18
|
-
var _hooks = require("../hooks");
|
|
19
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
4
|
+
|
|
5
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "__esModule", {
|
|
8
|
+
value: true
|
|
9
|
+
});
|
|
10
|
+
exports["default"] = void 0;
|
|
11
|
+
|
|
12
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
13
|
+
|
|
14
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
15
|
+
|
|
16
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
17
|
+
|
|
18
|
+
var _hooks = require("../hooks");
|
|
19
|
+
|
|
20
20
|
/**
|
|
21
21
|
* 用来做图表数据改变(增长)动画(HOC)
|
|
22
|
-
*/
|
|
23
|
-
var _default = function _default(Component) {
|
|
24
|
-
return /*#__PURE__*/(0, _react.memo)(function (_ref) {
|
|
25
|
-
var data = _ref.data,
|
|
26
|
-
_ref$config = _ref.config,
|
|
27
|
-
dataAnimation = _ref$config.dataAnimation,
|
|
28
|
-
config = (0, _objectWithoutProperties2["default"])(_ref$config, ["dataAnimation"]),
|
|
29
|
-
rest = (0, _objectWithoutProperties2["default"])(_ref, ["data", "config"]);
|
|
30
|
-
return /*#__PURE__*/_react["default"].createElement(Component, (0, _extends2["default"])({}, rest, {
|
|
31
|
-
config: config,
|
|
32
|
-
data: (0, _hooks.useAnimateData)(data, dataAnimation)
|
|
33
|
-
}));
|
|
34
|
-
});
|
|
35
|
-
};
|
|
36
|
-
|
|
22
|
+
*/
|
|
23
|
+
var _default = function _default(Component) {
|
|
24
|
+
return /*#__PURE__*/(0, _react.memo)(function (_ref) {
|
|
25
|
+
var data = _ref.data,
|
|
26
|
+
_ref$config = _ref.config,
|
|
27
|
+
dataAnimation = _ref$config.dataAnimation,
|
|
28
|
+
config = (0, _objectWithoutProperties2["default"])(_ref$config, ["dataAnimation"]),
|
|
29
|
+
rest = (0, _objectWithoutProperties2["default"])(_ref, ["data", "config"]);
|
|
30
|
+
return /*#__PURE__*/_react["default"].createElement(Component, (0, _extends2["default"])({}, rest, {
|
|
31
|
+
config: config,
|
|
32
|
+
data: (0, _hooks.useAnimateData)(data, dataAnimation)
|
|
33
|
+
}));
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
|
|
37
37
|
exports["default"] = _default;
|