@easyv/charts 1.5.3 → 1.5.4
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/lib/components/PieChart.js +14 -11
- package/package.json +1 -1
- package/src/components/PieChart.js +4 -2
|
@@ -316,18 +316,20 @@ var Component = /*#__PURE__*/(0, _react.memo)(function (_ref5) {
|
|
|
316
316
|
_ref5$config$animatio = _ref5$config.animation,
|
|
317
317
|
on = _ref5$config$animatio.on,
|
|
318
318
|
_ref5$config$animatio2 = _ref5$config$animatio.current,
|
|
319
|
-
_ref5$config$animatio3 = _ref5$config$animatio2.
|
|
320
|
-
|
|
321
|
-
_ref5$config$animatio4 = _ref5$config$animatio2.
|
|
322
|
-
|
|
323
|
-
_ref5$config$animatio5 = _ref5$config$animatio2.
|
|
324
|
-
|
|
319
|
+
_ref5$config$animatio3 = _ref5$config$animatio2.widthen,
|
|
320
|
+
widthen = _ref5$config$animatio3 === void 0 ? 0 : _ref5$config$animatio3,
|
|
321
|
+
_ref5$config$animatio4 = _ref5$config$animatio2.heighten,
|
|
322
|
+
heighten = _ref5$config$animatio4 === void 0 ? 0 : _ref5$config$animatio4,
|
|
323
|
+
_ref5$config$animatio5 = _ref5$config$animatio2.opacity,
|
|
324
|
+
opacity = _ref5$config$animatio5 === void 0 ? 0 : _ref5$config$animatio5,
|
|
325
|
+
_ref5$config$animatio6 = _ref5$config$animatio2.width,
|
|
326
|
+
radiusWidthAdd = _ref5$config$animatio6 === void 0 ? 0 : _ref5$config$animatio6,
|
|
325
327
|
animateColor = _ref5$config$animatio2.color,
|
|
326
328
|
animateCTS = _ref5$config$animatio2.textStyle,
|
|
327
|
-
_ref5$config$
|
|
328
|
-
gap = _ref5$config$
|
|
329
|
-
_ref5$config$
|
|
330
|
-
rotate = _ref5$config$
|
|
329
|
+
_ref5$config$animatio7 = _ref5$config$animatio2.gap,
|
|
330
|
+
gap = _ref5$config$animatio7 === void 0 ? 0 : _ref5$config$animatio7,
|
|
331
|
+
_ref5$config$animatio8 = _ref5$config$animatio.rotate,
|
|
332
|
+
rotate = _ref5$config$animatio8 === void 0 ? 0 : _ref5$config$animatio8,
|
|
331
333
|
_ref5$config$tooltip = _ref5$config.tooltip,
|
|
332
334
|
tooltip = _ref5$config$tooltip === void 0 ? {} : _ref5$config$tooltip,
|
|
333
335
|
config = _ref5.config,
|
|
@@ -701,8 +703,9 @@ var Component = /*#__PURE__*/(0, _react.memo)(function (_ref5) {
|
|
|
701
703
|
var prev = index == prevIndex.current;
|
|
702
704
|
var offset = current ? y : prev ? 1 - y : 0;
|
|
703
705
|
var fillOpacity = animateColor ? 1 : current ? opacity / 100 : 1;
|
|
706
|
+
var deltaWidthen = offset * widthen;
|
|
704
707
|
var deltaHeighten = offset * heighten;
|
|
705
|
-
var path = arc.innerRadius(innerRadius +
|
|
708
|
+
var path = arc.innerRadius(innerRadius + deltaWidthen).outerRadius(outerRadius + deltaHeighten + deltaWidthen)(value);
|
|
706
709
|
var pie = (0, _utils.getColorList)(series.color);
|
|
707
710
|
var currentPie = animateColor ? (0, _utils.getColorList)(animateColor) : (0, _utils.getColorList)(series.color);
|
|
708
711
|
var textPath = "",
|
package/package.json
CHANGED
|
@@ -272,6 +272,7 @@ const Component = memo(
|
|
|
272
272
|
animation: {
|
|
273
273
|
on,
|
|
274
274
|
current: {
|
|
275
|
+
widthen = 0,
|
|
275
276
|
heighten = 0,
|
|
276
277
|
opacity = 0,
|
|
277
278
|
width: radiusWidthAdd = 0,
|
|
@@ -679,10 +680,11 @@ const Component = memo(
|
|
|
679
680
|
: current
|
|
680
681
|
? opacity / 100
|
|
681
682
|
: 1;
|
|
683
|
+
const deltaWidthen = offset * widthen;
|
|
682
684
|
const deltaHeighten = offset * heighten;
|
|
683
685
|
const path = arc
|
|
684
|
-
.innerRadius(innerRadius +
|
|
685
|
-
.outerRadius(outerRadius + deltaHeighten)(value);
|
|
686
|
+
.innerRadius(innerRadius + deltaWidthen)
|
|
687
|
+
.outerRadius(outerRadius + deltaHeighten + deltaWidthen)(value);
|
|
686
688
|
const pie = getColorList(series.color);
|
|
687
689
|
const currentPie = animateColor
|
|
688
690
|
? getColorList(animateColor)
|