evui 3.3.54 → 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 +24 -12
- package/dist/evui.common.js.map +1 -1
- package/dist/evui.umd.js +24 -12
- 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/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;
|