evui 3.3.53 → 3.3.55
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 +30 -22
- package/dist/evui.common.js.map +1 -1
- package/dist/evui.umd.js +30 -22
- 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.bar.js +12 -0
- package/src/components/chart/plugins/plugins.interaction.js +6 -10
package/dist/evui.common.js
CHANGED
|
@@ -8045,7 +8045,7 @@ $({ target: 'Number', stat: true }, {
|
|
|
8045
8045
|
/***/ "9224":
|
|
8046
8046
|
/***/ (function(module) {
|
|
8047
8047
|
|
|
8048
|
-
module.exports = JSON.parse("{\"a\":\"3.3.
|
|
8048
|
+
module.exports = JSON.parse("{\"a\":\"3.3.55\"}");
|
|
8049
8049
|
|
|
8050
8050
|
/***/ }),
|
|
8051
8051
|
|
|
@@ -36256,7 +36256,7 @@ var element_bar_Bar = /*#__PURE__*/function () {
|
|
|
36256
36256
|
this.borderRadius = param.borderRadius;
|
|
36257
36257
|
var categoryPoint = null;
|
|
36258
36258
|
this.data.forEach(function (dataItem, index) {
|
|
36259
|
-
var _param$selectLabel, _param$selectLabel$se, _param$selectLabel2, _param$selectLabel2$s;
|
|
36259
|
+
var _param$selectLabel, _param$selectItem, _param$selectLabel$se, _param$selectLabel2, _param$selectLabel2$s, _param$selectItem$sel, _param$selectItem2;
|
|
36260
36260
|
|
|
36261
36261
|
ctx.beginPath();
|
|
36262
36262
|
var item = dataItem;
|
|
@@ -36294,13 +36294,25 @@ var element_bar_Bar = /*#__PURE__*/function () {
|
|
|
36294
36294
|
var barColor = item.dataColor || _this2.color;
|
|
36295
36295
|
var legendHitInfo = param === null || param === void 0 ? void 0 : param.legendHitInfo;
|
|
36296
36296
|
var selectLabelOption = param === null || param === void 0 ? void 0 : (_param$selectLabel = param.selectLabel) === null || _param$selectLabel === void 0 ? void 0 : _param$selectLabel.option;
|
|
36297
|
+
var selectItemOption = param === null || param === void 0 ? void 0 : (_param$selectItem = param.selectItem) === null || _param$selectItem === void 0 ? void 0 : _param$selectItem.option;
|
|
36297
36298
|
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 : [];
|
|
36299
|
+
|
|
36300
|
+
var _ref = (_param$selectItem$sel = param === null || param === void 0 ? void 0 : (_param$selectItem2 = param.selectItem) === null || _param$selectItem2 === void 0 ? void 0 : _param$selectItem2.selected) !== null && _param$selectItem$sel !== void 0 ? _param$selectItem$sel : {},
|
|
36301
|
+
selectedItemDataIndex = _ref.dataIndex,
|
|
36302
|
+
selectedItemSeriesId = _ref.seriesID;
|
|
36303
|
+
|
|
36298
36304
|
var isDownplay = false;
|
|
36299
36305
|
|
|
36300
36306
|
if (legendHitInfo) {
|
|
36301
36307
|
isDownplay = (legendHitInfo === null || legendHitInfo === void 0 ? void 0 : legendHitInfo.sId) !== _this2.sId;
|
|
36302
36308
|
} else if (selectLabelOption !== null && selectLabelOption !== void 0 && selectLabelOption.use && selectLabelOption !== null && selectLabelOption !== void 0 && selectLabelOption.useSeriesOpacity) {
|
|
36303
36309
|
isDownplay = selectedLabelList.length && !selectedLabelList.includes(index);
|
|
36310
|
+
} else if (truthy(selectedItemDataIndex) && selectItemOption !== null && selectItemOption !== void 0 && selectItemOption.useSeriesOpacity) {
|
|
36311
|
+
if (_this2.isExistGrp) {
|
|
36312
|
+
isDownplay = selectedItemDataIndex !== index;
|
|
36313
|
+
} else {
|
|
36314
|
+
isDownplay = selectedItemDataIndex !== index || selectedItemSeriesId !== _this2.sId;
|
|
36315
|
+
}
|
|
36304
36316
|
}
|
|
36305
36317
|
|
|
36306
36318
|
if (typeof barColor !== 'string') {
|
|
@@ -36530,11 +36542,11 @@ var element_bar_Bar = /*#__PURE__*/function () {
|
|
|
36530
36542
|
|
|
36531
36543
|
}, {
|
|
36532
36544
|
key: "drawValueLabels",
|
|
36533
|
-
value: function drawValueLabels(
|
|
36534
|
-
var context =
|
|
36535
|
-
data =
|
|
36536
|
-
positions =
|
|
36537
|
-
isHighlight =
|
|
36545
|
+
value: function drawValueLabels(_ref2) {
|
|
36546
|
+
var context = _ref2.context,
|
|
36547
|
+
data = _ref2.data,
|
|
36548
|
+
positions = _ref2.positions,
|
|
36549
|
+
isHighlight = _ref2.isHighlight;
|
|
36538
36550
|
var isHorizontal = this.isHorizontal;
|
|
36539
36551
|
var _this$showValue = this.showValue,
|
|
36540
36552
|
fontSize = _this$showValue.fontSize,
|
|
@@ -36560,9 +36572,9 @@ var element_bar_Bar = /*#__PURE__*/function () {
|
|
|
36560
36572
|
if (isStacked) {
|
|
36561
36573
|
value = data.o;
|
|
36562
36574
|
} else {
|
|
36563
|
-
var
|
|
36575
|
+
var _ref3;
|
|
36564
36576
|
|
|
36565
|
-
value = (
|
|
36577
|
+
value = (_ref3 = isHorizontal ? data.x : data.y) !== null && _ref3 !== void 0 ? _ref3 : '';
|
|
36566
36578
|
}
|
|
36567
36579
|
|
|
36568
36580
|
var formattedTxt;
|
|
@@ -36651,9 +36663,9 @@ var element_bar_Bar = /*#__PURE__*/function () {
|
|
|
36651
36663
|
}
|
|
36652
36664
|
}, {
|
|
36653
36665
|
key: "drawBar",
|
|
36654
|
-
value: function drawBar(
|
|
36655
|
-
var ctx =
|
|
36656
|
-
positions =
|
|
36666
|
+
value: function drawBar(_ref4) {
|
|
36667
|
+
var ctx = _ref4.ctx,
|
|
36668
|
+
positions = _ref4.positions;
|
|
36657
36669
|
var isHorizontal = this.isHorizontal;
|
|
36658
36670
|
var isStackBar = ('stackIndex' in this);
|
|
36659
36671
|
var isBorderRadius = this.borderRadius && this.borderRadius > 0;
|
|
@@ -42346,25 +42358,26 @@ var plugins_interaction_modules = {
|
|
|
42346
42358
|
};
|
|
42347
42359
|
|
|
42348
42360
|
switch (chartType) {
|
|
42349
|
-
|
|
42361
|
+
default:
|
|
42362
|
+
case 'bar':
|
|
42350
42363
|
{
|
|
42351
42364
|
if (useSelectItem) {
|
|
42352
42365
|
setSelectedItemInfo();
|
|
42353
42366
|
} else if (useSelectLabel) {
|
|
42354
42367
|
setSelectedLabelInfo();
|
|
42355
|
-
} else if (useSelectSeries) {
|
|
42356
|
-
setSelectedSeriesInfo();
|
|
42357
42368
|
}
|
|
42358
42369
|
|
|
42359
42370
|
break;
|
|
42360
42371
|
}
|
|
42361
42372
|
|
|
42362
|
-
case '
|
|
42373
|
+
case 'line':
|
|
42363
42374
|
{
|
|
42364
42375
|
if (useSelectItem) {
|
|
42365
42376
|
setSelectedItemInfo();
|
|
42366
42377
|
} else if (useSelectLabel) {
|
|
42367
42378
|
setSelectedLabelInfo();
|
|
42379
|
+
} else if (useSelectSeries) {
|
|
42380
|
+
setSelectedSeriesInfo();
|
|
42368
42381
|
}
|
|
42369
42382
|
|
|
42370
42383
|
break;
|
|
@@ -42410,9 +42423,6 @@ var plugins_interaction_modules = {
|
|
|
42410
42423
|
|
|
42411
42424
|
break;
|
|
42412
42425
|
}
|
|
42413
|
-
|
|
42414
|
-
default:
|
|
42415
|
-
break;
|
|
42416
42426
|
}
|
|
42417
42427
|
|
|
42418
42428
|
if (typeof _this.listeners.click === 'function') {
|
|
@@ -42932,6 +42942,7 @@ var plugins_interaction_modules = {
|
|
|
42932
42942
|
result.dataIndex = labelIndexList;
|
|
42933
42943
|
|
|
42934
42944
|
switch (chartType) {
|
|
42945
|
+
default:
|
|
42935
42946
|
case 'bar':
|
|
42936
42947
|
case 'line':
|
|
42937
42948
|
{
|
|
@@ -42977,9 +42988,6 @@ var plugins_interaction_modules = {
|
|
|
42977
42988
|
});
|
|
42978
42989
|
break;
|
|
42979
42990
|
}
|
|
42980
|
-
|
|
42981
|
-
default:
|
|
42982
|
-
break;
|
|
42983
42991
|
}
|
|
42984
42992
|
|
|
42985
42993
|
return result;
|