evui 3.4.106 → 3.4.107

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.
@@ -11164,7 +11164,7 @@ module.exports = exports;
11164
11164
  /***/ "9224":
11165
11165
  /***/ (function(module) {
11166
11166
 
11167
- module.exports = JSON.parse("{\"a\":\"3.4.106\"}");
11167
+ module.exports = JSON.parse("{\"a\":\"3.4.107\"}");
11168
11168
 
11169
11169
  /***/ }),
11170
11170
 
@@ -50272,17 +50272,28 @@ var plugins_interaction_modules = {
50272
50272
  }
50273
50273
 
50274
50274
  var setSelectedItemInfo = function setSelectedItemInfo() {
50275
- var hitInfo = _this.getItemByPosition(offset, false);
50275
+ var hitInfo = _this.findHitItem(offset); // 실제 클릭된 아이템의 정보 추출 (hitId가 있으면 해당 아이템, 없으면 첫 번째 아이템)
50276
50276
 
50277
- args.label = hitInfo.label;
50278
- args.value = hitInfo.value;
50279
- args.seriesId = hitInfo.sId;
50280
- args.dataIndex = hitInfo.maxIndex;
50281
- args.acc = hitInfo.acc;
50277
+
50278
+ var hitItemId = hitInfo.hitId || Object.keys(hitInfo.items)[0];
50279
+ var hitItem = hitInfo.items[hitItemId];
50280
+
50281
+ if (hitItem) {
50282
+ var _hitItem$data, _hitItem$data2, _hitItem$data3, _hitItem$data4;
50283
+
50284
+ args.label = ((_hitItem$data = hitItem.data) === null || _hitItem$data === void 0 ? void 0 : _hitItem$data.x) || ((_hitItem$data2 = hitItem.data) === null || _hitItem$data2 === void 0 ? void 0 : _hitItem$data2.y);
50285
+ args.value = (_hitItem$data3 = hitItem.data) === null || _hitItem$data3 === void 0 ? void 0 : _hitItem$data3.o;
50286
+ args.seriesId = hitItemId;
50287
+ args.dataIndex = hitItem.index;
50288
+ args.acc = (_hitItem$data4 = hitItem.data) === null || _hitItem$data4 === void 0 ? void 0 : _hitItem$data4.acc;
50289
+ }
50282
50290
  };
50283
50291
 
50284
50292
  var setSelectedLabelInfo = function setSelectedLabelInfo(targetAxis) {
50285
- var itemHitInfo = _this.getItemByPosition(offset, false);
50293
+ var hitInfo = _this.findHitItem(offset);
50294
+
50295
+ var hitItemId = hitInfo.hitId || Object.keys(hitInfo.items)[0];
50296
+ var hitItem = hitInfo.items[hitItemId];
50286
50297
 
50287
50298
  var _this$getLabelInfoByP = _this.getLabelInfoByPosition(offset, targetAxis),
50288
50299
  clickedLabelIndex = _this$getLabelInfoByP.labelIndex;
@@ -50291,28 +50302,38 @@ var plugins_interaction_modules = {
50291
50302
  dataIndexList = _this$regulateSelecte.dataIndex;
50292
50303
 
50293
50304
  _this.defaultSelectInfo = _this.getSelectedLabelInfoWithLabelData(dataIndexList, targetAxis);
50294
- args.label = itemHitInfo.label;
50295
- args.seriesId = itemHitInfo.sId;
50296
- args.value = itemHitInfo.value;
50297
- args.acc = itemHitInfo.acc;
50298
- args.dataIndex = itemHitInfo.maxIndex;
50305
+
50306
+ if (hitItem) {
50307
+ var _hitItem$data5, _hitItem$data6, _hitItem$data7, _hitItem$data8;
50308
+
50309
+ args.label = ((_hitItem$data5 = hitItem.data) === null || _hitItem$data5 === void 0 ? void 0 : _hitItem$data5.x) || ((_hitItem$data6 = hitItem.data) === null || _hitItem$data6 === void 0 ? void 0 : _hitItem$data6.y);
50310
+ args.seriesId = hitItemId;
50311
+ args.value = (_hitItem$data7 = hitItem.data) === null || _hitItem$data7 === void 0 ? void 0 : _hitItem$data7.o;
50312
+ args.acc = (_hitItem$data8 = hitItem.data) === null || _hitItem$data8 === void 0 ? void 0 : _hitItem$data8.acc;
50313
+ args.dataIndex = hitItem.index;
50314
+ }
50299
50315
  };
50300
50316
 
50301
50317
  var setSelectedSeriesInfo = function setSelectedSeriesInfo() {
50302
- var itemHitInfo = _this.getItemByPosition(offset, false);
50318
+ var hitInfo = _this.findHitItem(offset);
50303
50319
 
50304
- var hitInfo = _this.getSeriesInfoByPosition(offset);
50320
+ var hitItemId = hitInfo.hitId || Object.keys(hitInfo.items)[0];
50321
+ var hitItem = hitInfo.items[hitItemId];
50305
50322
 
50306
- if (hitInfo.sId !== null) {
50307
- var _allSelectedList$seri;
50323
+ var seriesHitInfo = _this.getSeriesInfoByPosition(offset);
50308
50324
 
50309
- var allSelectedList = _this.updateSelectedSeriesInfo(hitInfo.sId, true);
50325
+ if (seriesHitInfo.sId !== null) {
50326
+ var allSelectedList = _this.updateSelectedSeriesInfo(seriesHitInfo.sId, true);
50310
50327
 
50311
- args.label = itemHitInfo.label;
50312
- args.value = itemHitInfo.value;
50313
- args.seriesId = (_allSelectedList$seri = allSelectedList.seriesId) === null || _allSelectedList$seri === void 0 ? void 0 : _allSelectedList$seri.at(0);
50314
- args.acc = itemHitInfo.acc;
50315
- args.dataIndex = itemHitInfo.maxIndex;
50328
+ if (hitItem) {
50329
+ var _hitItem$data9, _hitItem$data10, _hitItem$data11, _allSelectedList$seri, _hitItem$data12;
50330
+
50331
+ args.label = ((_hitItem$data9 = hitItem.data) === null || _hitItem$data9 === void 0 ? void 0 : _hitItem$data9.x) || ((_hitItem$data10 = hitItem.data) === null || _hitItem$data10 === void 0 ? void 0 : _hitItem$data10.y);
50332
+ args.value = (_hitItem$data11 = hitItem.data) === null || _hitItem$data11 === void 0 ? void 0 : _hitItem$data11.o;
50333
+ args.seriesId = (_allSelectedList$seri = allSelectedList.seriesId) === null || _allSelectedList$seri === void 0 ? void 0 : _allSelectedList$seri.at(0);
50334
+ args.acc = (_hitItem$data12 = hitItem.data) === null || _hitItem$data12 === void 0 ? void 0 : _hitItem$data12.acc;
50335
+ args.dataIndex = hitItem.index;
50336
+ }
50316
50337
  }
50317
50338
  };
50318
50339