evui 3.3.30 → 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 +18 -14
- package/dist/evui.common.js.map +1 -1
- package/dist/evui.umd.js +18 -14
- 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/element/element.line.js +1 -1
- package/src/components/chart/plugins/plugins.interaction.js +14 -12
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
|
|
|
@@ -34933,6 +34933,8 @@ var element_line_Line = /*#__PURE__*/function () {
|
|
|
34933
34933
|
var _selectLabel$selected,
|
|
34934
34934
|
_selectLabel$selected2,
|
|
34935
34935
|
_selectSeries$option,
|
|
34936
|
+
_selectSeries$selecte,
|
|
34937
|
+
_selectSeries$selecte2,
|
|
34936
34938
|
_this2 = this;
|
|
34937
34939
|
|
|
34938
34940
|
if (!this.show) {
|
|
@@ -34955,10 +34957,10 @@ var element_line_Line = /*#__PURE__*/function () {
|
|
|
34955
34957
|
|
|
34956
34958
|
if (legendHitInfo) {
|
|
34957
34959
|
extent = this.extent[(legendHitInfo === null || legendHitInfo === void 0 ? void 0 : legendHitInfo.sId) === this.sId ? 'highlight' : 'downplay'];
|
|
34958
|
-
} else if (selectSeries !== null && selectSeries !== void 0 && (_selectSeries$option = selectSeries.option) !== null && _selectSeries$option !== void 0 && _selectSeries$option.use) {
|
|
34959
|
-
var _selectSeries$
|
|
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;
|
|
34960
34962
|
|
|
34961
|
-
var isSelectedSeries = selectSeries === null || selectSeries === void 0 ? void 0 : (_selectSeries$
|
|
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);
|
|
34962
34964
|
extent = this.extent[isSelectedSeries ? 'highlight' : 'downplay'];
|
|
34963
34965
|
} else if (useSelectLabel && selectedLabelIndexList.length) {
|
|
34964
34966
|
extent = this.extent.downplay;
|
|
@@ -41377,34 +41379,36 @@ var plugins_interaction_modules = {
|
|
|
41377
41379
|
var seriesName = _ref2.seriesName,
|
|
41378
41380
|
value = _ref2.value,
|
|
41379
41381
|
itemData = _ref2.itemData;
|
|
41380
|
-
var
|
|
41381
|
-
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;
|
|
41382
41386
|
var formattedTxt = value;
|
|
41383
41387
|
|
|
41384
41388
|
if (tooltipValueFormatter) {
|
|
41385
|
-
if (
|
|
41389
|
+
if (opt.type === 'pie') {
|
|
41386
41390
|
formattedTxt = tooltipValueFormatter({
|
|
41387
41391
|
value: value,
|
|
41388
41392
|
name: seriesName,
|
|
41389
|
-
percentage: itemData.percentage
|
|
41393
|
+
percentage: itemData === null || itemData === void 0 ? void 0 : itemData.percentage
|
|
41390
41394
|
});
|
|
41391
|
-
} else if (
|
|
41395
|
+
} else if (opt.type === 'heatMap') {
|
|
41392
41396
|
formattedTxt = tooltipValueFormatter({
|
|
41393
|
-
x: itemData.x,
|
|
41394
|
-
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,
|
|
41395
41399
|
value: value > -1 ? value : 'error'
|
|
41396
41400
|
});
|
|
41397
41401
|
} else {
|
|
41398
41402
|
formattedTxt = tooltipValueFormatter({
|
|
41399
|
-
x:
|
|
41400
|
-
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,
|
|
41401
41405
|
name: seriesName
|
|
41402
41406
|
});
|
|
41403
41407
|
}
|
|
41404
41408
|
}
|
|
41405
41409
|
|
|
41406
41410
|
if (value && (!tooltipValueFormatter || typeof formattedTxt !== 'string')) {
|
|
41407
|
-
if (
|
|
41411
|
+
if (opt.type === 'heatMap') {
|
|
41408
41412
|
formattedTxt = value < 0 ? 'error' : numberWithComma(value);
|
|
41409
41413
|
} else {
|
|
41410
41414
|
formattedTxt = numberWithComma(value);
|