@easyv/charts 1.5.9 → 1.5.11
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.
|
@@ -450,7 +450,7 @@ var Chart = /*#__PURE__*/(0, _react.memo)(function (_ref) {
|
|
|
450
450
|
}));
|
|
451
451
|
}), showTooltip && !control && /*#__PURE__*/_react["default"].createElement(_.Indicator, (0, _extends2["default"])({}, indicator, indicatorAttr)), /*#__PURE__*/_react["default"].createElement("foreignObject", {
|
|
452
452
|
style: isVertical ? {
|
|
453
|
-
width: xLineRange + marginRight + marginLeft,
|
|
453
|
+
width: xLineRange + 100 + marginRight + marginLeft,
|
|
454
454
|
height: yLineRange,
|
|
455
455
|
transform: "translateX(".concat(-marginRight, "px)")
|
|
456
456
|
} : {
|
|
@@ -484,6 +484,9 @@ var Component = /*#__PURE__*/(0, _react.memo)(function (_ref5) {
|
|
|
484
484
|
}, [series, arcs, radius]);
|
|
485
485
|
|
|
486
486
|
var onClick = (0, _react.useCallback)(function (e) {
|
|
487
|
+
var _data = arcs[+e.currentTarget.dataset.index].data;
|
|
488
|
+
triggerOnRelative('onClick', _data);
|
|
489
|
+
onEmit('onClick', _data);
|
|
487
490
|
onEvent({
|
|
488
491
|
currentIndex: +e.currentTarget.dataset.index,
|
|
489
492
|
type: "onClick"
|
package/package.json
CHANGED
|
@@ -401,6 +401,9 @@ const Component = memo(
|
|
|
401
401
|
|
|
402
402
|
const onClick = useCallback(
|
|
403
403
|
(e) => {
|
|
404
|
+
const _data = arcs[+e.currentTarget.dataset.index].data;
|
|
405
|
+
triggerOnRelative('onClick',_data);
|
|
406
|
+
onEmit('onClick', _data);
|
|
404
407
|
onEvent({
|
|
405
408
|
currentIndex: +e.currentTarget.dataset.index,
|
|
406
409
|
type: "onClick",
|