evui 3.3.28 → 3.3.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/evui.common.js +200 -167
- package/dist/evui.common.js.map +1 -1
- package/dist/evui.umd.js +200 -167
- package/dist/evui.umd.js.map +1 -1
- package/dist/evui.umd.min.js +1 -1
- package/dist/evui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/chart/chart.core.js +50 -41
- package/src/components/chart/element/element.bar.js +10 -6
- package/src/components/chart/element/element.line.js +37 -26
- package/src/components/chart/element/element.pie.js +2 -3
- package/src/components/chart/element/element.scatter.js +8 -15
- package/src/components/chart/helpers/helpers.constant.js +1 -0
- package/src/components/chart/plugins/plugins.interaction.js +54 -44
- package/src/components/chart/plugins/plugins.legend.js +8 -27
- package/src/components/chart/plugins/plugins.pie.js +6 -2
- package/src/components/chart/scale/scale.js +5 -1
- package/src/components/chart/scale/scale.step.js +7 -5
- package/src/components/chart/scale/scale.time.category.js +3 -2
package/dist/evui.common.js
CHANGED
|
@@ -7940,7 +7940,7 @@ $({ target: 'Number', stat: true }, {
|
|
|
7940
7940
|
/***/ "9224":
|
|
7941
7941
|
/***/ (function(module) {
|
|
7942
7942
|
|
|
7943
|
-
module.exports = JSON.parse("{\"a\":\"3.3.
|
|
7943
|
+
module.exports = JSON.parse("{\"a\":\"3.3.31\"}");
|
|
7944
7944
|
|
|
7945
7945
|
/***/ }),
|
|
7946
7946
|
|
|
@@ -34473,7 +34473,8 @@ var AXIS_OPTION = {
|
|
|
34473
34473
|
fontFamily: 'Roboto',
|
|
34474
34474
|
fontWeight: 400,
|
|
34475
34475
|
fitWidth: false,
|
|
34476
|
-
fitDir: 'right'
|
|
34476
|
+
fitDir: 'right',
|
|
34477
|
+
alignToGridLine: false
|
|
34477
34478
|
},
|
|
34478
34479
|
title: {
|
|
34479
34480
|
use: false,
|
|
@@ -34899,7 +34900,6 @@ var element_line_Line = /*#__PURE__*/function () {
|
|
|
34899
34900
|
});
|
|
34900
34901
|
this.type = 'line';
|
|
34901
34902
|
this.sId = sId;
|
|
34902
|
-
this.state = 'normal';
|
|
34903
34903
|
this.extent = {
|
|
34904
34904
|
downplay: {
|
|
34905
34905
|
opacity: 0.1,
|
|
@@ -34930,7 +34930,11 @@ var element_line_Line = /*#__PURE__*/function () {
|
|
|
34930
34930
|
_createClass(Line, [{
|
|
34931
34931
|
key: "draw",
|
|
34932
34932
|
value: function draw(param) {
|
|
34933
|
-
var
|
|
34933
|
+
var _selectLabel$selected,
|
|
34934
|
+
_selectLabel$selected2,
|
|
34935
|
+
_selectSeries$option,
|
|
34936
|
+
_selectSeries$selecte,
|
|
34937
|
+
_selectSeries$selecte2,
|
|
34934
34938
|
_this2 = this;
|
|
34935
34939
|
|
|
34936
34940
|
if (!this.show) {
|
|
@@ -34941,24 +34945,39 @@ var element_line_Line = /*#__PURE__*/function () {
|
|
|
34941
34945
|
chartRect = param.chartRect,
|
|
34942
34946
|
labelOffset = param.labelOffset,
|
|
34943
34947
|
axesSteps = param.axesSteps,
|
|
34944
|
-
selectLabel = param.selectLabel
|
|
34945
|
-
|
|
34946
|
-
|
|
34947
|
-
|
|
34948
|
-
var
|
|
34949
|
-
var
|
|
34950
|
-
var
|
|
34951
|
-
|
|
34948
|
+
selectLabel = param.selectLabel,
|
|
34949
|
+
selectSeries = param.selectSeries,
|
|
34950
|
+
legendHitInfo = param.legendHitInfo; // about selectLabel
|
|
34951
|
+
|
|
34952
|
+
var selectLabelOption = selectLabel === null || selectLabel === void 0 ? void 0 : selectLabel.option;
|
|
34953
|
+
var useSelectLabel = (selectLabelOption === null || selectLabelOption === void 0 ? void 0 : selectLabelOption.use) && (selectLabelOption === null || selectLabelOption === void 0 ? void 0 : selectLabelOption.useSeriesOpacity);
|
|
34954
|
+
var selectedLabelIndexList = (_selectLabel$selected = selectLabel === null || selectLabel === void 0 ? void 0 : (_selectLabel$selected2 = selectLabel.selected) === null || _selectLabel$selected2 === void 0 ? void 0 : _selectLabel$selected2.dataIndex) !== null && _selectLabel$selected !== void 0 ? _selectLabel$selected : []; // set Style
|
|
34955
|
+
|
|
34956
|
+
var extent;
|
|
34957
|
+
|
|
34958
|
+
if (legendHitInfo) {
|
|
34959
|
+
extent = this.extent[(legendHitInfo === null || legendHitInfo === void 0 ? void 0 : legendHitInfo.sId) === this.sId ? 'highlight' : 'downplay'];
|
|
34960
|
+
} else if (selectSeries !== null && selectSeries !== void 0 && (_selectSeries$option = selectSeries.option) !== null && _selectSeries$option !== void 0 && _selectSeries$option.use && selectSeries !== null && selectSeries !== void 0 && (_selectSeries$selecte = selectSeries.selected) !== null && _selectSeries$selecte !== void 0 && (_selectSeries$selecte2 = _selectSeries$selecte.seriesId) !== null && _selectSeries$selecte2 !== void 0 && _selectSeries$selecte2.length) {
|
|
34961
|
+
var _selectSeries$selecte3, _selectSeries$selecte4;
|
|
34962
|
+
|
|
34963
|
+
var isSelectedSeries = selectSeries === null || selectSeries === void 0 ? void 0 : (_selectSeries$selecte3 = selectSeries.selected) === null || _selectSeries$selecte3 === void 0 ? void 0 : (_selectSeries$selecte4 = _selectSeries$selecte3.seriesId) === null || _selectSeries$selecte4 === void 0 ? void 0 : _selectSeries$selecte4.includes(this.sId);
|
|
34964
|
+
extent = this.extent[isSelectedSeries ? 'highlight' : 'downplay'];
|
|
34965
|
+
} else if (useSelectLabel && selectedLabelIndexList.length) {
|
|
34966
|
+
extent = this.extent.downplay;
|
|
34967
|
+
} else {
|
|
34968
|
+
extent = this.extent.normal;
|
|
34969
|
+
}
|
|
34952
34970
|
|
|
34953
34971
|
var getOpacity = function getOpacity(colorStr) {
|
|
34954
|
-
|
|
34955
|
-
return _this2.state === 'downplay' || isExistSelectedLabel ? 0.1 : noneDownplayOpacity;
|
|
34972
|
+
return colorStr.includes('rgba') ? helpers_util.getOpacity(colorStr) : extent.opacity;
|
|
34956
34973
|
};
|
|
34957
34974
|
|
|
34958
34975
|
var mainColor = this.color;
|
|
34959
34976
|
var mainColorOpacity = getOpacity(mainColor);
|
|
34960
34977
|
var pointFillColor = this.pointFill;
|
|
34961
34978
|
var pointFillColorOpacity = getOpacity(pointFillColor);
|
|
34979
|
+
var fillOpacity = getOpacity(mainColor) * this.fillOpacity;
|
|
34980
|
+
var lineWidth = this.lineWidth * extent.lineWidth;
|
|
34962
34981
|
ctx.beginPath();
|
|
34963
34982
|
ctx.save();
|
|
34964
34983
|
ctx.lineJoin = 'round';
|
|
@@ -35061,19 +35080,23 @@ var element_line_Line = /*#__PURE__*/function () {
|
|
|
35061
35080
|
}
|
|
35062
35081
|
});
|
|
35063
35082
|
ctx.fill();
|
|
35064
|
-
}
|
|
35083
|
+
} // Draw points
|
|
35084
|
+
|
|
35065
35085
|
|
|
35066
|
-
if (this.point ||
|
|
35086
|
+
if (this.point || useSelectLabel) {
|
|
35067
35087
|
ctx.strokeStyle = helpers_util.colorStringToRgba(mainColor, mainColorOpacity);
|
|
35068
35088
|
var focusStyle = helpers_util.colorStringToRgba(pointFillColor, 1);
|
|
35069
35089
|
var blurStyle = helpers_util.colorStringToRgba(pointFillColor, pointFillColorOpacity);
|
|
35070
|
-
this.data.forEach(function (curr,
|
|
35071
|
-
|
|
35072
|
-
ctx.fillStyle = isExistSelectedLabel && selectedLabel.dataIndex.includes(i) ? focusStyle : blurStyle;
|
|
35090
|
+
this.data.forEach(function (curr, ix) {
|
|
35091
|
+
var isSelectedLabel = selectedLabelIndexList.includes(ix);
|
|
35073
35092
|
|
|
35074
|
-
|
|
35075
|
-
|
|
35076
|
-
|
|
35093
|
+
if (curr.xp === null || curr.yp === null) {
|
|
35094
|
+
return;
|
|
35095
|
+
}
|
|
35096
|
+
|
|
35097
|
+
if (_this2.point || isSelectedLabel) {
|
|
35098
|
+
ctx.fillStyle = isSelectedLabel && !legendHitInfo ? focusStyle : blurStyle;
|
|
35099
|
+
helpers_canvas.drawPoint(ctx, _this2.pointStyle, _this2.pointSize, curr.xp, curr.yp);
|
|
35077
35100
|
}
|
|
35078
35101
|
});
|
|
35079
35102
|
}
|
|
@@ -35368,22 +35391,17 @@ var element_scatter_Scatter = /*#__PURE__*/function () {
|
|
|
35368
35391
|
|
|
35369
35392
|
var getOpacity = function getOpacity(colorStr, dataIndex) {
|
|
35370
35393
|
var noneDownplayOpacity = colorStr.includes('rgba') ? helpers_util.getOpacity(colorStr) : 1;
|
|
35371
|
-
var
|
|
35372
|
-
var selectInfo = param.selectInfo
|
|
35373
|
-
|
|
35374
|
-
if (selectInfo) {
|
|
35375
|
-
var isSelectedData = (selectInfo === null || selectInfo === void 0 ? void 0 : selectInfo.seriesID) === _this2.sId && (selectInfo === null || selectInfo === void 0 ? void 0 : selectInfo.dataIndex) === dataIndex;
|
|
35394
|
+
var isDownplay = false;
|
|
35395
|
+
var selectInfo = param.selectInfo,
|
|
35396
|
+
legendHitInfo = param.legendHitInfo;
|
|
35376
35397
|
|
|
35377
|
-
|
|
35378
|
-
|
|
35379
|
-
|
|
35380
|
-
|
|
35381
|
-
}
|
|
35382
|
-
} else {
|
|
35383
|
-
resultOpacity = _this2.state === 'downplay' ? 0.1 : noneDownplayOpacity;
|
|
35398
|
+
if (legendHitInfo) {
|
|
35399
|
+
isDownplay = legendHitInfo.sId !== _this2.sId;
|
|
35400
|
+
} else if (selectInfo) {
|
|
35401
|
+
isDownplay = (selectInfo === null || selectInfo === void 0 ? void 0 : selectInfo.seriesID) !== _this2.sId || (selectInfo === null || selectInfo === void 0 ? void 0 : selectInfo.dataIndex) !== dataIndex;
|
|
35384
35402
|
}
|
|
35385
35403
|
|
|
35386
|
-
return
|
|
35404
|
+
return isDownplay ? 0.1 : noneDownplayOpacity;
|
|
35387
35405
|
};
|
|
35388
35406
|
|
|
35389
35407
|
this.data.forEach(function (curr, idx) {
|
|
@@ -35606,7 +35624,7 @@ var element_bar_Bar = /*#__PURE__*/function () {
|
|
|
35606
35624
|
this.borderRadius = param.borderRadius;
|
|
35607
35625
|
var categoryPoint = null;
|
|
35608
35626
|
this.data.forEach(function (dataItem, index) {
|
|
35609
|
-
var _param$selectLabel$se;
|
|
35627
|
+
var _param$selectLabel, _param$selectLabel$se, _param$selectLabel2, _param$selectLabel2$s;
|
|
35610
35628
|
|
|
35611
35629
|
ctx.beginPath();
|
|
35612
35630
|
var item = dataItem;
|
|
@@ -35642,11 +35660,16 @@ var element_bar_Bar = /*#__PURE__*/function () {
|
|
|
35642
35660
|
}
|
|
35643
35661
|
|
|
35644
35662
|
var barColor = item.dataColor || _this2.color;
|
|
35645
|
-
var
|
|
35646
|
-
var
|
|
35647
|
-
|
|
35648
|
-
|
|
35649
|
-
|
|
35663
|
+
var legendHitInfo = param === null || param === void 0 ? void 0 : param.legendHitInfo;
|
|
35664
|
+
var selectLabelOption = param === null || param === void 0 ? void 0 : (_param$selectLabel = param.selectLabel) === null || _param$selectLabel === void 0 ? void 0 : _param$selectLabel.option;
|
|
35665
|
+
var selectedLabelList = (_param$selectLabel$se = param === null || param === void 0 ? void 0 : (_param$selectLabel2 = param.selectLabel) === null || _param$selectLabel2 === void 0 ? void 0 : (_param$selectLabel2$s = _param$selectLabel2.selected) === null || _param$selectLabel2$s === void 0 ? void 0 : _param$selectLabel2$s.dataIndex) !== null && _param$selectLabel$se !== void 0 ? _param$selectLabel$se : [];
|
|
35666
|
+
var isDownplay = false;
|
|
35667
|
+
|
|
35668
|
+
if (legendHitInfo) {
|
|
35669
|
+
isDownplay = (legendHitInfo === null || legendHitInfo === void 0 ? void 0 : legendHitInfo.sId) !== _this2.sId;
|
|
35670
|
+
} else if (selectLabelOption !== null && selectLabelOption !== void 0 && selectLabelOption.use && selectLabelOption !== null && selectLabelOption !== void 0 && selectLabelOption.useSeriesOpacity) {
|
|
35671
|
+
isDownplay = selectedLabelList.length && !selectedLabelList.includes(index);
|
|
35672
|
+
}
|
|
35650
35673
|
|
|
35651
35674
|
if (typeof barColor !== 'string') {
|
|
35652
35675
|
ctx.fillStyle = helpers_canvas.createGradient(ctx, isHorizontal, {
|
|
@@ -36392,7 +36415,6 @@ var element_pie_Pie = /*#__PURE__*/function () {
|
|
|
36392
36415
|
this.doughnutHoleSize = 0;
|
|
36393
36416
|
this.startAngle = 0;
|
|
36394
36417
|
this.endAngle = 0;
|
|
36395
|
-
this.state = null;
|
|
36396
36418
|
this.ctx = null;
|
|
36397
36419
|
this.isSelect = false;
|
|
36398
36420
|
}
|
|
@@ -36416,7 +36438,7 @@ var element_pie_Pie = /*#__PURE__*/function () {
|
|
|
36416
36438
|
var radius = this.isSelect ? this.radius + 5 : this.radius;
|
|
36417
36439
|
var color = this.color;
|
|
36418
36440
|
var noneDownplayOpacity = color.includes('rgba') ? helpers_util.getOpacity(color) : 1;
|
|
36419
|
-
var opacity = this.
|
|
36441
|
+
var opacity = this.isDownplay ? 0.1 : noneDownplayOpacity;
|
|
36420
36442
|
ctx.beginPath();
|
|
36421
36443
|
slice.moveTo(this.centerX, this.centerY);
|
|
36422
36444
|
slice.arc(this.centerX, this.centerY, radius, this.startAngle, this.endAngle);
|
|
@@ -36489,7 +36511,7 @@ var element_pie_Pie = /*#__PURE__*/function () {
|
|
|
36489
36511
|
}, {
|
|
36490
36512
|
key: "itemHighlight",
|
|
36491
36513
|
value: function itemHighlight(item, context) {
|
|
36492
|
-
var _this$showValue2;
|
|
36514
|
+
var _item$data, _this$showValue2;
|
|
36493
36515
|
|
|
36494
36516
|
var ctx = context;
|
|
36495
36517
|
var radius = this.isSelect ? this.radius + 5 : this.radius;
|
|
@@ -36497,7 +36519,7 @@ var element_pie_Pie = /*#__PURE__*/function () {
|
|
|
36497
36519
|
ctx.shadowOffsetX = 0;
|
|
36498
36520
|
ctx.shadowOffsetY = 0;
|
|
36499
36521
|
ctx.shadowBlur = 4;
|
|
36500
|
-
var color = item.data.dataColor || this.color;
|
|
36522
|
+
var color = (item === null || item === void 0 ? void 0 : (_item$data = item.data) === null || _item$data === void 0 ? void 0 : _item$data.dataColor) || this.color;
|
|
36501
36523
|
ctx.fillStyle = color;
|
|
36502
36524
|
ctx.shadowColor = color;
|
|
36503
36525
|
ctx.beginPath();
|
|
@@ -37494,7 +37516,11 @@ var scale_Scale = /*#__PURE__*/function () {
|
|
|
37494
37516
|
numberOfSteps = Math.round(graphRange / interval);
|
|
37495
37517
|
|
|
37496
37518
|
if (maxValue === 1) {
|
|
37497
|
-
if (
|
|
37519
|
+
if (!this.decimalPoint) {
|
|
37520
|
+
interval = 1;
|
|
37521
|
+
numberOfSteps = 1;
|
|
37522
|
+
maxSteps = 1;
|
|
37523
|
+
} else if (maxSteps > 2) {
|
|
37498
37524
|
interval = 0.2;
|
|
37499
37525
|
numberOfSteps = 5;
|
|
37500
37526
|
maxSteps = 5;
|
|
@@ -38539,6 +38565,7 @@ var scale_logarithmic_LogarithmicScale = /*#__PURE__*/function (_Scale) {
|
|
|
38539
38565
|
|
|
38540
38566
|
|
|
38541
38567
|
|
|
38568
|
+
|
|
38542
38569
|
var scale_step_StepScale = /*#__PURE__*/function (_Scale) {
|
|
38543
38570
|
_inherits(StepScale, _Scale);
|
|
38544
38571
|
|
|
@@ -38565,7 +38592,7 @@ var scale_step_StepScale = /*#__PURE__*/function (_Scale) {
|
|
|
38565
38592
|
_createClass(StepScale, [{
|
|
38566
38593
|
key: "calculateScaleRange",
|
|
38567
38594
|
value: function calculateScaleRange(minMax, chartRect) {
|
|
38568
|
-
var stepMinMax = this.
|
|
38595
|
+
var stepMinMax = this.labelStyle.alignToGridLine ? minMax : helpers_util.getStringMinMax(this.labels);
|
|
38569
38596
|
var maxValue = stepMinMax.max;
|
|
38570
38597
|
var minValue = stepMinMax.min;
|
|
38571
38598
|
var maxWidth = chartRect.chartWidth / (this.labels.length + 2);
|
|
@@ -38589,8 +38616,11 @@ var scale_step_StepScale = /*#__PURE__*/function (_Scale) {
|
|
|
38589
38616
|
value: function calculateSteps(range) {
|
|
38590
38617
|
var numberOfSteps = this.labels.length;
|
|
38591
38618
|
var interval = 1;
|
|
38619
|
+
var isNumbersArray = this.labels.every(function (label) {
|
|
38620
|
+
return !isNaN(label);
|
|
38621
|
+
});
|
|
38592
38622
|
|
|
38593
|
-
if (this.
|
|
38623
|
+
if (this.labelStyle.alignToGridLine && isNumbersArray) {
|
|
38594
38624
|
var maxSteps = range.maxSteps;
|
|
38595
38625
|
|
|
38596
38626
|
if (maxSteps > 2) {
|
|
@@ -38678,6 +38708,7 @@ var scale_step_StepScale = /*#__PURE__*/function (_Scale) {
|
|
|
38678
38708
|
}
|
|
38679
38709
|
|
|
38680
38710
|
var labelGap = (endPoint - startPoint) / labels.length;
|
|
38711
|
+
var alignToGridLine = this.labelStyle.alignToGridLine;
|
|
38681
38712
|
var labelCenter = null;
|
|
38682
38713
|
var linePosition = null;
|
|
38683
38714
|
ctx.beginPath();
|
|
@@ -38707,7 +38738,7 @@ var scale_step_StepScale = /*#__PURE__*/function (_Scale) {
|
|
|
38707
38738
|
var _this$options3, _this$options3$select, _this$options4;
|
|
38708
38739
|
|
|
38709
38740
|
labelPoint = this.position === 'top' ? offsetPoint - 10 : offsetPoint + 10;
|
|
38710
|
-
var xPoint =
|
|
38741
|
+
var xPoint = alignToGridLine ? labelCenter : labelCenter + labelGap / 2;
|
|
38711
38742
|
ctx.fillText(labelText, xPoint, labelPoint);
|
|
38712
38743
|
|
|
38713
38744
|
if (!isBlurredLabel && (_this$options3 = this.options) !== null && _this$options3 !== void 0 && (_this$options3$select = _this$options3.selectItem) !== null && _this$options3$select !== void 0 && _this$options3$select.showLabelTip && hitInfo !== null && hitInfo !== void 0 && hitInfo.label && !((_this$options4 = this.options) !== null && _this$options4 !== void 0 && _this$options4.horizontal)) {
|
|
@@ -38738,7 +38769,7 @@ var scale_step_StepScale = /*#__PURE__*/function (_Scale) {
|
|
|
38738
38769
|
}
|
|
38739
38770
|
} else {
|
|
38740
38771
|
labelPoint = this.position === 'left' ? offsetPoint - 10 : offsetPoint + 10;
|
|
38741
|
-
var yPoint =
|
|
38772
|
+
var yPoint = alignToGridLine ? labelCenter : labelCenter + labelGap / 2;
|
|
38742
38773
|
ctx.fillText(labelText, labelPoint, yPoint);
|
|
38743
38774
|
|
|
38744
38775
|
if (index > 0 && this.showGrid) {
|
|
@@ -38750,7 +38781,7 @@ var scale_step_StepScale = /*#__PURE__*/function (_Scale) {
|
|
|
38750
38781
|
ctx.stroke();
|
|
38751
38782
|
}
|
|
38752
38783
|
|
|
38753
|
-
if (
|
|
38784
|
+
if (alignToGridLine && index === this.labels.length) {
|
|
38754
38785
|
var labelLastText = +labels[labels.length - 1] + (+labels[1] - +labels[0]);
|
|
38755
38786
|
|
|
38756
38787
|
if (isNaN(labelLastText)) {
|
|
@@ -39091,9 +39122,10 @@ var scale_time_category_TimeCategoryScale = /*#__PURE__*/function (_Scale) {
|
|
|
39091
39122
|
return;
|
|
39092
39123
|
}
|
|
39093
39124
|
|
|
39125
|
+
var alignToGridLine = this.labelStyle.alignToGridLine;
|
|
39094
39126
|
var graphGap = (endPoint - startPoint) / (labels.length || 1);
|
|
39095
39127
|
|
|
39096
|
-
if (this.categoryMode && !
|
|
39128
|
+
if (this.categoryMode && !alignToGridLine) {
|
|
39097
39129
|
startPoint += Math.ceil(graphGap / 2) - 2;
|
|
39098
39130
|
}
|
|
39099
39131
|
|
|
@@ -39167,7 +39199,7 @@ var scale_time_category_TimeCategoryScale = /*#__PURE__*/function (_Scale) {
|
|
|
39167
39199
|
ctx.stroke();
|
|
39168
39200
|
}
|
|
39169
39201
|
|
|
39170
|
-
if (this.categoryMode &&
|
|
39202
|
+
if (this.categoryMode && alignToGridLine && count * steps === oriSteps) {
|
|
39171
39203
|
var diffTime = dayjs_min_default()(labels[1]).diff(dayjs_min_default()(labels[0]));
|
|
39172
39204
|
var labelLastText = this.getLabelFormat(dayjs_min_default()(labels[labels.length - 1] + diffTime));
|
|
39173
39205
|
labelCenter = Math.round(startPoint + graphGap * labels.length);
|
|
@@ -39274,7 +39306,6 @@ var plugins_title_modules = {
|
|
|
39274
39306
|
|
|
39275
39307
|
|
|
39276
39308
|
|
|
39277
|
-
|
|
39278
39309
|
var plugins_legend_modules = {
|
|
39279
39310
|
/**
|
|
39280
39311
|
* Create legend DOM
|
|
@@ -39498,8 +39529,6 @@ var plugins_legend_modules = {
|
|
|
39498
39529
|
|
|
39499
39530
|
|
|
39500
39531
|
this.onLegendBoxOver = function (e) {
|
|
39501
|
-
var _this3$defaultSelectI, _this3$defaultSelectI2;
|
|
39502
|
-
|
|
39503
39532
|
var type = e.target.dataset.type;
|
|
39504
39533
|
var targetDOM;
|
|
39505
39534
|
|
|
@@ -39513,19 +39542,10 @@ var plugins_legend_modules = {
|
|
|
39513
39542
|
|
|
39514
39543
|
var nameDOM = targetDOM.getElementsByClassName('ev-chart-legend-name')[0];
|
|
39515
39544
|
var targetId = nameDOM.series.sId;
|
|
39516
|
-
var
|
|
39517
|
-
|
|
39518
|
-
|
|
39519
|
-
|
|
39520
|
-
});
|
|
39521
|
-
var hitInfo = null;
|
|
39522
|
-
|
|
39523
|
-
if (helpers_util.isPieType(_this3.options.type)) {
|
|
39524
|
-
hitInfo = {
|
|
39525
|
-
sId: targetId,
|
|
39526
|
-
type: _this3.options.type
|
|
39527
|
-
};
|
|
39528
|
-
}
|
|
39545
|
+
var legendHitInfo = {
|
|
39546
|
+
sId: targetId,
|
|
39547
|
+
type: _this3.options.type
|
|
39548
|
+
};
|
|
39529
39549
|
|
|
39530
39550
|
_this3.update({
|
|
39531
39551
|
updateSeries: false,
|
|
@@ -39533,7 +39553,9 @@ var plugins_legend_modules = {
|
|
|
39533
39553
|
update: false,
|
|
39534
39554
|
keepDomain: false
|
|
39535
39555
|
},
|
|
39536
|
-
hitInfo:
|
|
39556
|
+
hitInfo: {
|
|
39557
|
+
legend: legendHitInfo
|
|
39558
|
+
}
|
|
39537
39559
|
});
|
|
39538
39560
|
};
|
|
39539
39561
|
/**
|
|
@@ -39544,23 +39566,14 @@ var plugins_legend_modules = {
|
|
|
39544
39566
|
|
|
39545
39567
|
|
|
39546
39568
|
this.onLegendBoxLeave = function () {
|
|
39547
|
-
var _this3$defaultSelectI3, _this3$defaultSelectI4;
|
|
39548
|
-
|
|
39549
|
-
var selectSeriesOption = _this3.options.selectSeries;
|
|
39550
|
-
var selectedList = (_this3$defaultSelectI3 = (_this3$defaultSelectI4 = _this3.defaultSelectInfo) === null || _this3$defaultSelectI4 === void 0 ? void 0 : _this3$defaultSelectI4.seriesId) !== null && _this3$defaultSelectI3 !== void 0 ? _this3$defaultSelectI3 : [];
|
|
39551
|
-
Object.values(_this3.seriesList).forEach(function (series) {
|
|
39552
|
-
if (selectSeriesOption.use && selectedList.length) {
|
|
39553
|
-
series.state = selectedList.includes(series.sId) ? 'highlight' : 'downplay';
|
|
39554
|
-
} else {
|
|
39555
|
-
series.state = 'normal';
|
|
39556
|
-
}
|
|
39557
|
-
});
|
|
39558
|
-
|
|
39559
39569
|
_this3.update({
|
|
39560
39570
|
updateSeries: false,
|
|
39561
39571
|
updateSelTip: {
|
|
39562
39572
|
update: false,
|
|
39563
39573
|
keepDomain: false
|
|
39574
|
+
},
|
|
39575
|
+
hitInfo: {
|
|
39576
|
+
legend: null
|
|
39564
39577
|
}
|
|
39565
39578
|
});
|
|
39566
39579
|
};
|
|
@@ -39784,6 +39797,8 @@ var plugins_legend_modules = {
|
|
|
39784
39797
|
while (legendDOM.hasChildNodes()) {
|
|
39785
39798
|
legendDOM.removeChild(legendDOM.firstChild);
|
|
39786
39799
|
}
|
|
39800
|
+
|
|
39801
|
+
this.seriesInfo.count = 0;
|
|
39787
39802
|
},
|
|
39788
39803
|
|
|
39789
39804
|
/**
|
|
@@ -40859,9 +40874,6 @@ var es_object_from_entries = __webpack_require__("c1f9");
|
|
|
40859
40874
|
|
|
40860
40875
|
|
|
40861
40876
|
|
|
40862
|
-
|
|
40863
|
-
|
|
40864
|
-
|
|
40865
40877
|
var plugins_interaction_modules = {
|
|
40866
40878
|
/**
|
|
40867
40879
|
* Hide legend components by manipulating css
|
|
@@ -41367,34 +41379,36 @@ var plugins_interaction_modules = {
|
|
|
41367
41379
|
var seriesName = _ref2.seriesName,
|
|
41368
41380
|
value = _ref2.value,
|
|
41369
41381
|
itemData = _ref2.itemData;
|
|
41370
|
-
var
|
|
41371
|
-
var
|
|
41382
|
+
var opt = this.options;
|
|
41383
|
+
var isHorizontal = !!opt.horizontal;
|
|
41384
|
+
var tooltipOpt = opt.tooltip;
|
|
41385
|
+
var tooltipValueFormatter = typeof (tooltipOpt === null || tooltipOpt === void 0 ? void 0 : tooltipOpt.formatter) === 'function' ? tooltipOpt === null || tooltipOpt === void 0 ? void 0 : tooltipOpt.formatter : tooltipOpt === null || tooltipOpt === void 0 ? void 0 : (_tooltipOpt$formatter = tooltipOpt.formatter) === null || _tooltipOpt$formatter === void 0 ? void 0 : _tooltipOpt$formatter.value;
|
|
41372
41386
|
var formattedTxt = value;
|
|
41373
41387
|
|
|
41374
41388
|
if (tooltipValueFormatter) {
|
|
41375
|
-
if (
|
|
41389
|
+
if (opt.type === 'pie') {
|
|
41376
41390
|
formattedTxt = tooltipValueFormatter({
|
|
41377
41391
|
value: value,
|
|
41378
41392
|
name: seriesName,
|
|
41379
|
-
percentage: itemData.percentage
|
|
41393
|
+
percentage: itemData === null || itemData === void 0 ? void 0 : itemData.percentage
|
|
41380
41394
|
});
|
|
41381
|
-
} else if (
|
|
41395
|
+
} else if (opt.type === 'heatMap') {
|
|
41382
41396
|
formattedTxt = tooltipValueFormatter({
|
|
41383
|
-
x: itemData.x,
|
|
41384
|
-
y: itemData.y,
|
|
41397
|
+
x: itemData === null || itemData === void 0 ? void 0 : itemData.x,
|
|
41398
|
+
y: itemData === null || itemData === void 0 ? void 0 : itemData.y,
|
|
41385
41399
|
value: value > -1 ? value : 'error'
|
|
41386
41400
|
});
|
|
41387
41401
|
} else {
|
|
41388
41402
|
formattedTxt = tooltipValueFormatter({
|
|
41389
|
-
x:
|
|
41390
|
-
y:
|
|
41403
|
+
x: isHorizontal ? value : itemData === null || itemData === void 0 ? void 0 : itemData.x,
|
|
41404
|
+
y: isHorizontal ? itemData === null || itemData === void 0 ? void 0 : itemData.y : value,
|
|
41391
41405
|
name: seriesName
|
|
41392
41406
|
});
|
|
41393
41407
|
}
|
|
41394
41408
|
}
|
|
41395
41409
|
|
|
41396
41410
|
if (value && (!tooltipValueFormatter || typeof formattedTxt !== 'string')) {
|
|
41397
|
-
if (
|
|
41411
|
+
if (opt.type === 'heatMap') {
|
|
41398
41412
|
formattedTxt = value < 0 ? 'error' : numberWithComma(value);
|
|
41399
41413
|
} else {
|
|
41400
41414
|
formattedTxt = numberWithComma(value);
|
|
@@ -41411,38 +41425,60 @@ var plugins_interaction_modules = {
|
|
|
41411
41425
|
addNotHitInfo: function addNotHitInfo(hitInfo) {
|
|
41412
41426
|
var _hitInfo$items, _hitInfo$items$hitIte, _hitInfo$items$hitIte2, _hitInfo$items2, _hitInfo$items2$hitIt, _hitInfo$items2$hitIt2;
|
|
41413
41427
|
|
|
41428
|
+
var ctx = this.tooltipCtx;
|
|
41414
41429
|
var isHorizontal = !!this.options.horizontal;
|
|
41415
41430
|
var hitItemId = Object.keys(hitInfo.items)[0];
|
|
41416
41431
|
var hitItemData = isHorizontal ? (_hitInfo$items = hitInfo.items) === null || _hitInfo$items === void 0 ? void 0 : (_hitInfo$items$hitIte = _hitInfo$items[hitItemId]) === null || _hitInfo$items$hitIte === void 0 ? void 0 : (_hitInfo$items$hitIte2 = _hitInfo$items$hitIte.data) === null || _hitInfo$items$hitIte2 === void 0 ? void 0 : _hitInfo$items$hitIte2.y : (_hitInfo$items2 = hitInfo.items) === null || _hitInfo$items2 === void 0 ? void 0 : (_hitInfo$items2$hitIt = _hitInfo$items2[hitItemId]) === null || _hitInfo$items2$hitIt === void 0 ? void 0 : (_hitInfo$items2$hitIt2 = _hitInfo$items2$hitIt.data) === null || _hitInfo$items2$hitIt2 === void 0 ? void 0 : _hitInfo$items2$hitIt2.x;
|
|
41432
|
+
var maxSeriesName = '';
|
|
41433
|
+
var maxValueTxt = '';
|
|
41417
41434
|
var sIds = Object.keys(this.seriesList);
|
|
41418
41435
|
|
|
41419
41436
|
for (var ix = 0; ix < sIds.length; ix++) {
|
|
41420
41437
|
var sId = sIds[ix];
|
|
41421
41438
|
var series = this.seriesList[sId];
|
|
41422
|
-
var hasData = series.data.find(function (data) {
|
|
41423
|
-
return isHorizontal ? (data === null || data === void 0 ? void 0 : data.y) === hitItemData : (data === null || data === void 0 ? void 0 : data.x) === hitItemData;
|
|
41424
|
-
});
|
|
41425
41439
|
|
|
41426
|
-
if (
|
|
41427
|
-
var
|
|
41428
|
-
|
|
41429
|
-
|
|
41430
|
-
|
|
41431
|
-
item.axis = {
|
|
41432
|
-
x: series.xAxisIndex,
|
|
41433
|
-
y: series.yAxisIndex
|
|
41434
|
-
};
|
|
41435
|
-
item.index = isHorizontal ? series.yAxisIndex : series.xAxisIndex;
|
|
41436
|
-
item.data = hasData;
|
|
41437
|
-
item.data.formatted = this.getFormattedTooltipValue({
|
|
41440
|
+
if (series !== null && series !== void 0 && series.show) {
|
|
41441
|
+
var hasData = series.data.find(function (data) {
|
|
41442
|
+
return isHorizontal ? (data === null || data === void 0 ? void 0 : data.y) === hitItemData : (data === null || data === void 0 ? void 0 : data.x) === hitItemData;
|
|
41443
|
+
});
|
|
41444
|
+
var formattedValue = this.getFormattedTooltipValue({
|
|
41438
41445
|
seriesName: series.name,
|
|
41439
|
-
value: hasData.o,
|
|
41440
|
-
|
|
41441
|
-
y: hasData.y
|
|
41446
|
+
value: hasData === null || hasData === void 0 ? void 0 : hasData.o,
|
|
41447
|
+
itemData: hasData
|
|
41442
41448
|
});
|
|
41443
|
-
|
|
41449
|
+
|
|
41450
|
+
if (hasData && !hitInfo.items[sId]) {
|
|
41451
|
+
var item = {};
|
|
41452
|
+
item.color = series.color;
|
|
41453
|
+
item.hit = false;
|
|
41454
|
+
item.name = series.name;
|
|
41455
|
+
item.axis = {
|
|
41456
|
+
x: series.xAxisIndex,
|
|
41457
|
+
y: series.yAxisIndex
|
|
41458
|
+
};
|
|
41459
|
+
item.index = isHorizontal ? series.yAxisIndex : series.xAxisIndex;
|
|
41460
|
+
item.data = hasData;
|
|
41461
|
+
item.data.formatted = formattedValue;
|
|
41462
|
+
hitInfo.items[sId] = item;
|
|
41463
|
+
}
|
|
41464
|
+
|
|
41465
|
+
var maxSeriesNameWidth = ctx ? ctx.measureText(maxSeriesName).width : 1;
|
|
41466
|
+
var seriesNameWidth = ctx ? ctx.measureText(series.name).width : 1;
|
|
41467
|
+
|
|
41468
|
+
if (maxSeriesNameWidth < seriesNameWidth) {
|
|
41469
|
+
maxSeriesName = series.name;
|
|
41470
|
+
}
|
|
41471
|
+
|
|
41472
|
+
var maxValueWidth = ctx ? ctx.measureText(maxValueTxt).width : 1;
|
|
41473
|
+
var valueWidth = ctx ? ctx.measureText("".concat(formattedValue)).width : 1;
|
|
41474
|
+
|
|
41475
|
+
if (maxValueWidth < valueWidth) {
|
|
41476
|
+
maxValueTxt = "".concat(formattedValue);
|
|
41477
|
+
}
|
|
41444
41478
|
}
|
|
41445
41479
|
}
|
|
41480
|
+
|
|
41481
|
+
hitInfo.maxTip = [maxSeriesName, maxValueTxt];
|
|
41446
41482
|
},
|
|
41447
41483
|
|
|
41448
41484
|
/**
|
|
@@ -41531,17 +41567,6 @@ var plugins_interaction_modules = {
|
|
|
41531
41567
|
seriesId: []
|
|
41532
41568
|
};
|
|
41533
41569
|
}
|
|
41534
|
-
|
|
41535
|
-
var selectedList = this.defaultSelectInfo.seriesId;
|
|
41536
|
-
Object.values(this.seriesList).forEach(function (series) {
|
|
41537
|
-
if (!selectedList.length) {
|
|
41538
|
-
series.state = 'normal';
|
|
41539
|
-
} else if (selectedList.includes(series.sId)) {
|
|
41540
|
-
series.state = 'highlight';
|
|
41541
|
-
} else {
|
|
41542
|
-
series.state = 'downplay';
|
|
41543
|
-
}
|
|
41544
|
-
});
|
|
41545
41570
|
}
|
|
41546
41571
|
},
|
|
41547
41572
|
|
|
@@ -42517,7 +42542,10 @@ var plugins_pie_modules = {
|
|
|
42517
42542
|
ctx.stroke();
|
|
42518
42543
|
}
|
|
42519
42544
|
|
|
42520
|
-
|
|
42545
|
+
var selectInfo = hitInfo.selectInfo,
|
|
42546
|
+
legendHitInfo = hitInfo.legendHitInfo;
|
|
42547
|
+
series.isSelect = (selectInfo === null || selectInfo === void 0 ? void 0 : selectInfo.sId) === slice.id;
|
|
42548
|
+
series.isDownplay = legendHitInfo && legendHitInfo.sId !== slice.id;
|
|
42521
42549
|
series.type = isDoughnut ? 'doughnut' : 'pie';
|
|
42522
42550
|
series.centerX = centerX;
|
|
42523
42551
|
series.centerY = centerY;
|
|
@@ -42622,7 +42650,10 @@ var plugins_pie_modules = {
|
|
|
42622
42650
|
ctx.stroke();
|
|
42623
42651
|
}
|
|
42624
42652
|
|
|
42625
|
-
|
|
42653
|
+
var selectInfo = hitInfo.selectInfo,
|
|
42654
|
+
legendHitInfo = hitInfo.legendHitInfo;
|
|
42655
|
+
series.isSelect = (selectInfo === null || selectInfo === void 0 ? void 0 : selectInfo.sId) === slice.id;
|
|
42656
|
+
series.isDownplay = legendHitInfo && legendHitInfo.sId !== slice.id;
|
|
42626
42657
|
series.type = 'sunburst';
|
|
42627
42658
|
series.centerX = centerX;
|
|
42628
42659
|
series.centerY = centerY;
|
|
@@ -43317,7 +43348,6 @@ var element_tip_modules = {
|
|
|
43317
43348
|
|
|
43318
43349
|
|
|
43319
43350
|
|
|
43320
|
-
|
|
43321
43351
|
|
|
43322
43352
|
|
|
43323
43353
|
var chart_core_EvChart = /*#__PURE__*/function () {
|
|
@@ -43479,7 +43509,7 @@ var chart_core_EvChart = /*#__PURE__*/function () {
|
|
|
43479
43509
|
this.axesSteps = this.calculateSteps();
|
|
43480
43510
|
this.drawAxis(hitInfo);
|
|
43481
43511
|
this.drawSeries(hitInfo);
|
|
43482
|
-
this.drawTip(
|
|
43512
|
+
this.drawTip();
|
|
43483
43513
|
|
|
43484
43514
|
if (this.bufferCanvas) {
|
|
43485
43515
|
this.displayCtx.drawImage(this.bufferCanvas, 0, 0);
|
|
@@ -43487,7 +43517,7 @@ var chart_core_EvChart = /*#__PURE__*/function () {
|
|
|
43487
43517
|
}
|
|
43488
43518
|
/**
|
|
43489
43519
|
* Draw each series
|
|
43490
|
-
* @param {any} [hitInfo=undefined]
|
|
43520
|
+
* @param {any} [hitInfo=undefined] legend mouseover callback (object or undefined)
|
|
43491
43521
|
*
|
|
43492
43522
|
* @returns {undefined}
|
|
43493
43523
|
*/
|
|
@@ -43541,12 +43571,17 @@ var chart_core_EvChart = /*#__PURE__*/function () {
|
|
|
43541
43571
|
case 'line':
|
|
43542
43572
|
case 'heatMap':
|
|
43543
43573
|
{
|
|
43544
|
-
|
|
43574
|
+
var legendHitInfo = hitInfo === null || hitInfo === void 0 ? void 0 : hitInfo.legend;
|
|
43575
|
+
series.draw(_objectSpread2({
|
|
43576
|
+
legendHitInfo: legendHitInfo
|
|
43577
|
+
}, opt));
|
|
43545
43578
|
break;
|
|
43546
43579
|
}
|
|
43547
43580
|
|
|
43548
43581
|
case 'bar':
|
|
43549
43582
|
{
|
|
43583
|
+
var _legendHitInfo = hitInfo === null || hitInfo === void 0 ? void 0 : hitInfo.legend;
|
|
43584
|
+
|
|
43550
43585
|
var _this$options3 = this.options,
|
|
43551
43586
|
thickness = _this$options3.thickness,
|
|
43552
43587
|
cPadRatio = _this$options3.cPadRatio,
|
|
@@ -43556,7 +43591,8 @@ var chart_core_EvChart = /*#__PURE__*/function () {
|
|
|
43556
43591
|
cPadRatio: cPadRatio,
|
|
43557
43592
|
borderRadius: borderRadius,
|
|
43558
43593
|
showSeriesCount: showSeriesCount,
|
|
43559
|
-
showIndex: showIndex
|
|
43594
|
+
showIndex: showIndex,
|
|
43595
|
+
legendHitInfo: _legendHitInfo
|
|
43560
43596
|
}, opt));
|
|
43561
43597
|
|
|
43562
43598
|
if (series.show) {
|
|
@@ -43568,16 +43604,24 @@ var chart_core_EvChart = /*#__PURE__*/function () {
|
|
|
43568
43604
|
|
|
43569
43605
|
case 'pie':
|
|
43570
43606
|
{
|
|
43571
|
-
var
|
|
43607
|
+
var _this$lastHitInfo, _this$defaultSelectIt;
|
|
43572
43608
|
|
|
43573
|
-
var selectInfo = (
|
|
43609
|
+
var selectInfo = (_this$lastHitInfo = this.lastHitInfo) !== null && _this$lastHitInfo !== void 0 ? _this$lastHitInfo : {
|
|
43574
43610
|
sId: (_this$defaultSelectIt = this.defaultSelectItemInfo) === null || _this$defaultSelectIt === void 0 ? void 0 : _this$defaultSelectIt.seriesID
|
|
43575
43611
|
};
|
|
43576
43612
|
|
|
43613
|
+
var _legendHitInfo2 = hitInfo === null || hitInfo === void 0 ? void 0 : hitInfo.legend;
|
|
43614
|
+
|
|
43577
43615
|
if (this.options.sunburst) {
|
|
43578
|
-
this.drawSunburst(
|
|
43616
|
+
this.drawSunburst({
|
|
43617
|
+
selectInfo: selectInfo,
|
|
43618
|
+
legendHitInfo: _legendHitInfo2
|
|
43619
|
+
});
|
|
43579
43620
|
} else {
|
|
43580
|
-
this.drawPie(
|
|
43621
|
+
this.drawPie({
|
|
43622
|
+
selectInfo: selectInfo,
|
|
43623
|
+
legendHitInfo: _legendHitInfo2
|
|
43624
|
+
});
|
|
43581
43625
|
}
|
|
43582
43626
|
|
|
43583
43627
|
if (this.options.doughnutHoleSize > 0) {
|
|
@@ -43589,34 +43633,30 @@ var chart_core_EvChart = /*#__PURE__*/function () {
|
|
|
43589
43633
|
|
|
43590
43634
|
case 'scatter':
|
|
43591
43635
|
{
|
|
43636
|
+
var _legendHitInfo3 = hitInfo === null || hitInfo === void 0 ? void 0 : hitInfo.legend;
|
|
43637
|
+
|
|
43638
|
+
var _selectInfo = void 0;
|
|
43639
|
+
|
|
43592
43640
|
if (selectItem.use && selectItem.useSeriesOpacity) {
|
|
43593
|
-
var
|
|
43594
|
-
|
|
43595
|
-
|
|
43596
|
-
|
|
43597
|
-
|
|
43598
|
-
|
|
43599
|
-
|
|
43600
|
-
};
|
|
43601
|
-
} else {
|
|
43602
|
-
opt.selectInfo = null;
|
|
43603
|
-
}
|
|
43604
|
-
} else if ((_this$lastHitInfo = this.lastHitInfo) !== null && _this$lastHitInfo !== void 0 && _this$lastHitInfo.maxIndex || ((_this$lastHitInfo2 = this.lastHitInfo) === null || _this$lastHitInfo2 === void 0 ? void 0 : _this$lastHitInfo2.maxIndex) === 0) {
|
|
43605
|
-
opt.selectInfo = {
|
|
43606
|
-
seriesID: this.lastHitInfo.sId,
|
|
43607
|
-
dataIndex: this.lastHitInfo.maxIndex
|
|
43608
|
-
};
|
|
43609
|
-
} else if ((_this$defaultSelectIt2 = this.defaultSelectItemInfo) !== null && _this$defaultSelectIt2 !== void 0 && _this$defaultSelectIt2.dataIndex || ((_this$defaultSelectIt3 = this.defaultSelectItemInfo) === null || _this$defaultSelectIt3 === void 0 ? void 0 : _this$defaultSelectIt3.dataIndex) === 0) {
|
|
43610
|
-
opt.selectInfo = {
|
|
43611
|
-
seriesID: this.defaultSelectItemInfo.seriesID,
|
|
43612
|
-
dataIndex: this.defaultSelectItemInfo.dataIndex
|
|
43641
|
+
var lastHitInfo = this.lastHitInfo;
|
|
43642
|
+
var defaultSelectInfo = this.defaultSelectItemInfo;
|
|
43643
|
+
|
|
43644
|
+
if (lastHitInfo !== null && lastHitInfo !== void 0 && lastHitInfo.maxIndex || (lastHitInfo === null || lastHitInfo === void 0 ? void 0 : lastHitInfo.maxIndex) === 0) {
|
|
43645
|
+
_selectInfo = {
|
|
43646
|
+
seriesID: lastHitInfo.sId,
|
|
43647
|
+
dataIndex: lastHitInfo.maxIndex
|
|
43613
43648
|
};
|
|
43649
|
+
} else if (defaultSelectInfo !== null && defaultSelectInfo !== void 0 && defaultSelectInfo.dataIndex || (defaultSelectInfo === null || defaultSelectInfo === void 0 ? void 0 : defaultSelectInfo.dataIndex) === 0) {
|
|
43650
|
+
_selectInfo = _objectSpread2({}, defaultSelectInfo);
|
|
43614
43651
|
} else {
|
|
43615
|
-
|
|
43652
|
+
_selectInfo = null;
|
|
43616
43653
|
}
|
|
43617
43654
|
}
|
|
43618
43655
|
|
|
43619
|
-
series.draw(
|
|
43656
|
+
series.draw(_objectSpread2({
|
|
43657
|
+
legendHitInfo: _legendHitInfo3,
|
|
43658
|
+
selectInfo: _selectInfo
|
|
43659
|
+
}, opt));
|
|
43620
43660
|
break;
|
|
43621
43661
|
}
|
|
43622
43662
|
|
|
@@ -43630,21 +43670,14 @@ var chart_core_EvChart = /*#__PURE__*/function () {
|
|
|
43630
43670
|
}
|
|
43631
43671
|
/**
|
|
43632
43672
|
* Draw Tip with hitInfo and defaultSelectItemInfo
|
|
43633
|
-
* @param hitInfo
|
|
43634
43673
|
*/
|
|
43635
43674
|
|
|
43636
43675
|
}, {
|
|
43637
43676
|
key: "drawTip",
|
|
43638
|
-
value: function drawTip(
|
|
43639
|
-
if (helpers_util.isPieType(hitInfo === null || hitInfo === void 0 ? void 0 : hitInfo.type)) {
|
|
43640
|
-
return;
|
|
43641
|
-
}
|
|
43642
|
-
|
|
43677
|
+
value: function drawTip() {
|
|
43643
43678
|
var tipLocationInfo;
|
|
43644
43679
|
|
|
43645
|
-
if (
|
|
43646
|
-
tipLocationInfo = hitInfo;
|
|
43647
|
-
} else if (this.lastHitInfo) {
|
|
43680
|
+
if (this.lastHitInfo) {
|
|
43648
43681
|
tipLocationInfo = this.lastHitInfo;
|
|
43649
43682
|
} else if (this.defaultSelectItemInfo) {
|
|
43650
43683
|
tipLocationInfo = this.getItem(this.defaultSelectItemInfo, false);
|