evui 3.4.109 → 3.4.110
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 -10
- package/dist/evui.common.js.map +1 -1
- package/dist/evui.umd.js +18 -10
- 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 +7 -2
- package/src/components/chart/element/element.bar.time.js +2 -1
- package/src/components/chart/plugins/plugins.tooltip.js +2 -1
package/dist/evui.common.js
CHANGED
|
@@ -11164,7 +11164,7 @@ module.exports = exports;
|
|
|
11164
11164
|
/***/ "9224":
|
|
11165
11165
|
/***/ (function(module) {
|
|
11166
11166
|
|
|
11167
|
-
module.exports = JSON.parse("{\"a\":\"3.4.
|
|
11167
|
+
module.exports = JSON.parse("{\"a\":\"3.4.110\"}");
|
|
11168
11168
|
|
|
11169
11169
|
/***/ }),
|
|
11170
11170
|
|
|
@@ -42779,7 +42779,8 @@ var element_bar_Bar = /*#__PURE__*/function () {
|
|
|
42779
42779
|
w: w
|
|
42780
42780
|
},
|
|
42781
42781
|
isHighlight: false,
|
|
42782
|
-
textColor: item.dataTextColor
|
|
42782
|
+
textColor: item.dataTextColor,
|
|
42783
|
+
index: i
|
|
42783
42784
|
});
|
|
42784
42785
|
} // 좌표 및 인덱스 정보 세팅 (툴팁/hover용)
|
|
42785
42786
|
|
|
@@ -42804,13 +42805,14 @@ var element_bar_Bar = /*#__PURE__*/function () {
|
|
|
42804
42805
|
* Draw item highlight
|
|
42805
42806
|
* @param {object} item object for drawing series data
|
|
42806
42807
|
* @param {CanvasRenderingContext2D} context canvas context
|
|
42808
|
+
* @param {number} index label index
|
|
42807
42809
|
*
|
|
42808
42810
|
* @returns {undefined}
|
|
42809
42811
|
*/
|
|
42810
42812
|
|
|
42811
42813
|
}, {
|
|
42812
42814
|
key: "itemHighlight",
|
|
42813
|
-
value: function itemHighlight(item, context) {
|
|
42815
|
+
value: function itemHighlight(item, context, index) {
|
|
42814
42816
|
var showValue = this.showValue;
|
|
42815
42817
|
var gdata = item.data;
|
|
42816
42818
|
var ctx = context;
|
|
@@ -42860,7 +42862,8 @@ var element_bar_Bar = /*#__PURE__*/function () {
|
|
|
42860
42862
|
w: w
|
|
42861
42863
|
},
|
|
42862
42864
|
isHighlight: true,
|
|
42863
|
-
textColor: item.data.dataTextColor || item.dataTextColor
|
|
42865
|
+
textColor: item.data.dataTextColor || item.dataTextColor,
|
|
42866
|
+
index: index
|
|
42864
42867
|
});
|
|
42865
42868
|
}
|
|
42866
42869
|
|
|
@@ -42985,6 +42988,7 @@ var element_bar_Bar = /*#__PURE__*/function () {
|
|
|
42985
42988
|
* @param positions series value positions
|
|
42986
42989
|
* @param isHighlight draw label with highlight effect
|
|
42987
42990
|
* @param textColor data text color
|
|
42991
|
+
* @param index label index
|
|
42988
42992
|
*/
|
|
42989
42993
|
|
|
42990
42994
|
}, {
|
|
@@ -42994,7 +42998,8 @@ var element_bar_Bar = /*#__PURE__*/function () {
|
|
|
42994
42998
|
data = _ref4.data,
|
|
42995
42999
|
positions = _ref4.positions,
|
|
42996
43000
|
isHighlight = _ref4.isHighlight,
|
|
42997
|
-
textColor = _ref4.textColor
|
|
43001
|
+
textColor = _ref4.textColor,
|
|
43002
|
+
index = _ref4.index;
|
|
42998
43003
|
var isHorizontal = this.isHorizontal;
|
|
42999
43004
|
var _this$showValue = this.showValue,
|
|
43000
43005
|
fontSize = _this$showValue.fontSize,
|
|
@@ -43029,7 +43034,8 @@ var element_bar_Bar = /*#__PURE__*/function () {
|
|
|
43029
43034
|
|
|
43030
43035
|
if (formatter) {
|
|
43031
43036
|
formattedTxt = formatter(value, {
|
|
43032
|
-
label: isHorizontal ? data.y : data.x
|
|
43037
|
+
label: isHorizontal ? data.y : data.x,
|
|
43038
|
+
index: index
|
|
43033
43039
|
});
|
|
43034
43040
|
}
|
|
43035
43041
|
|
|
@@ -43385,7 +43391,7 @@ var element_bar_time_TimeBar = /*#__PURE__*/function (_Bar) {
|
|
|
43385
43391
|
this.chartRect = chartRect;
|
|
43386
43392
|
this.labelOffset = labelOffset;
|
|
43387
43393
|
this.borderRadius = param.borderRadius;
|
|
43388
|
-
this.data.forEach(function (item) {
|
|
43394
|
+
this.data.forEach(function (item, index) {
|
|
43389
43395
|
ctx.beginPath();
|
|
43390
43396
|
|
|
43391
43397
|
if (isHorizontal) {
|
|
@@ -43465,7 +43471,8 @@ var element_bar_time_TimeBar = /*#__PURE__*/function (_Bar) {
|
|
|
43465
43471
|
h: h,
|
|
43466
43472
|
w: w
|
|
43467
43473
|
},
|
|
43468
|
-
isHighlight: false
|
|
43474
|
+
isHighlight: false,
|
|
43475
|
+
index: index
|
|
43469
43476
|
});
|
|
43470
43477
|
}
|
|
43471
43478
|
}
|
|
@@ -52549,7 +52556,8 @@ var plugins_tooltip_modules = {
|
|
|
52549
52556
|
data: hitInfoItems[sId].data,
|
|
52550
52557
|
color: hitInfoItems[sId].color,
|
|
52551
52558
|
name: hitInfoItems[sId].name,
|
|
52552
|
-
dataId: hitInfoItems[sId].id
|
|
52559
|
+
dataId: hitInfoItems[sId].id,
|
|
52560
|
+
index: hitInfoItems[sId].index
|
|
52553
52561
|
});
|
|
52554
52562
|
});
|
|
52555
52563
|
var userCustomTooltipBody = helpers_util.htmlToElement(opt === null || opt === void 0 ? void 0 : (_opt$formatter3 = opt.formatter) === null || _opt$formatter3 === void 0 ? void 0 : _opt$formatter3.html(seriesList));
|
|
@@ -52599,7 +52607,7 @@ var plugins_tooltip_modules = {
|
|
|
52599
52607
|
|
|
52600
52608
|
Object.keys(hitInfo.items).forEach(function (sId) {
|
|
52601
52609
|
var series = _this2.seriesList[sId];
|
|
52602
|
-
series.itemHighlight(hitInfo.items[sId], ctx);
|
|
52610
|
+
series.itemHighlight(hitInfo.items[sId], ctx, hitInfo.items[sId].index);
|
|
52603
52611
|
|
|
52604
52612
|
if (helpers_util.isDoughnutHole(series.type)) {
|
|
52605
52613
|
_this2.drawDoughnutHole(ctx);
|