evui 3.4.105 → 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.105\"}");
11167
+ module.exports = JSON.parse("{\"a\":\"3.4.107\"}");
11168
11168
 
11169
11169
  /***/ }),
11170
11170
 
@@ -50123,10 +50123,10 @@ var plugins_interaction_modules = {
50123
50123
  */
50124
50124
  createEventFunctions: function createEventFunctions() {
50125
50125
  var _this = this,
50126
- _this$options5,
50127
- _this$options5$toolti,
50128
50126
  _this$options6,
50129
- _this$options6$toolti;
50127
+ _this$options6$toolti,
50128
+ _this$options7,
50129
+ _this$options7$toolti;
50130
50130
 
50131
50131
  /**
50132
50132
  * To show tooltip and item highlighting, add event listener on mousemove
@@ -50248,23 +50248,126 @@ var plugins_interaction_modules = {
50248
50248
 
50249
50249
 
50250
50250
  this.onDblClick = function (e) {
50251
- var selectItem = _this.options.selectItem;
50252
50251
  var args = {
50253
50252
  e: e
50254
50253
  };
50255
50254
 
50256
50255
  var offset = _this.getMousePosition(e);
50257
50256
 
50258
- var hitInfo = _this.getItemByPosition(offset, selectItem.useApproximateValue);
50257
+ var _this$options3 = _this.options,
50258
+ chartType = _this$options3.type,
50259
+ selectItemOpt = _this$options3.selectItem,
50260
+ selectLabelOpt = _this$options3.selectLabel,
50261
+ selectSeriesOpt = _this$options3.selectSeries;
50262
+ var useSelectItem = (selectItemOpt === null || selectItemOpt === void 0 ? void 0 : selectItemOpt.use) && (selectItemOpt === null || selectItemOpt === void 0 ? void 0 : selectItemOpt.useClick);
50263
+ var useSelectLabel = (selectLabelOpt === null || selectLabelOpt === void 0 ? void 0 : selectLabelOpt.use) && (selectLabelOpt === null || selectLabelOpt === void 0 ? void 0 : selectLabelOpt.useClick);
50264
+ var useSelectSeries = (selectSeriesOpt === null || selectSeriesOpt === void 0 ? void 0 : selectSeriesOpt.use) && (selectSeriesOpt === null || selectSeriesOpt === void 0 ? void 0 : selectSeriesOpt.useClick);
50259
50265
 
50260
- if (hitInfo.label !== null) {
50261
- _this.render(hitInfo);
50266
+ if (useSelectItem) {
50267
+ args.eventTarget = 'item';
50268
+ } else if (useSelectLabel) {
50269
+ args.eventTarget = 'label';
50270
+ } else if (useSelectSeries) {
50271
+ args.eventTarget = 'series';
50262
50272
  }
50263
50273
 
50264
- args.label = hitInfo.label;
50265
- args.value = hitInfo.value;
50266
- args.seriesId = hitInfo.sId;
50267
- args.acc = hitInfo.acc;
50274
+ var setSelectedItemInfo = function setSelectedItemInfo() {
50275
+ var hitInfo = _this.findHitItem(offset); // 실제 클릭된 아이템의 정보 추출 (hitId가 있으면 해당 아이템, 없으면 첫 번째 아이템)
50276
+
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
+ }
50290
+ };
50291
+
50292
+ var setSelectedLabelInfo = function setSelectedLabelInfo(targetAxis) {
50293
+ var hitInfo = _this.findHitItem(offset);
50294
+
50295
+ var hitItemId = hitInfo.hitId || Object.keys(hitInfo.items)[0];
50296
+ var hitItem = hitInfo.items[hitItemId];
50297
+
50298
+ var _this$getLabelInfoByP = _this.getLabelInfoByPosition(offset, targetAxis),
50299
+ clickedLabelIndex = _this$getLabelInfoByP.labelIndex;
50300
+
50301
+ var _this$regulateSelecte = _this.regulateSelectedLabelInfo(clickedLabelIndex, targetAxis),
50302
+ dataIndexList = _this$regulateSelecte.dataIndex;
50303
+
50304
+ _this.defaultSelectInfo = _this.getSelectedLabelInfoWithLabelData(dataIndexList, targetAxis);
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
+ }
50315
+ };
50316
+
50317
+ var setSelectedSeriesInfo = function setSelectedSeriesInfo() {
50318
+ var hitInfo = _this.findHitItem(offset);
50319
+
50320
+ var hitItemId = hitInfo.hitId || Object.keys(hitInfo.items)[0];
50321
+ var hitItem = hitInfo.items[hitItemId];
50322
+
50323
+ var seriesHitInfo = _this.getSeriesInfoByPosition(offset);
50324
+
50325
+ if (seriesHitInfo.sId !== null) {
50326
+ var allSelectedList = _this.updateSelectedSeriesInfo(seriesHitInfo.sId, true);
50327
+
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
+ }
50337
+ }
50338
+ };
50339
+
50340
+ switch (chartType) {
50341
+ case 'bar':
50342
+ {
50343
+ if (useSelectLabel) {
50344
+ setSelectedLabelInfo(_this.options.horizontal ? 'yAxis' : 'xAxis');
50345
+ } else {
50346
+ setSelectedItemInfo();
50347
+ }
50348
+
50349
+ break;
50350
+ }
50351
+
50352
+ case 'line':
50353
+ {
50354
+ if (useSelectItem) {
50355
+ setSelectedItemInfo();
50356
+ } else if (useSelectLabel) {
50357
+ setSelectedLabelInfo();
50358
+ } else if (useSelectSeries) {
50359
+ setSelectedSeriesInfo();
50360
+ }
50361
+
50362
+ break;
50363
+ }
50364
+
50365
+ default:
50366
+ {
50367
+ setSelectedItemInfo();
50368
+ break;
50369
+ }
50370
+ }
50268
50371
 
50269
50372
  if (typeof _this.listeners['dbl-click'] === 'function') {
50270
50373
  _this.listeners['dbl-click'](args);
@@ -50289,11 +50392,11 @@ var plugins_interaction_modules = {
50289
50392
 
50290
50393
  var offset = _this.getMousePosition(e);
50291
50394
 
50292
- var _this$options3 = _this.options,
50293
- chartType = _this$options3.type,
50294
- selectItemOpt = _this$options3.selectItem,
50295
- selectLabelOpt = _this$options3.selectLabel,
50296
- selectSeriesOpt = _this$options3.selectSeries;
50395
+ var _this$options4 = _this.options,
50396
+ chartType = _this$options4.type,
50397
+ selectItemOpt = _this$options4.selectItem,
50398
+ selectLabelOpt = _this$options4.selectLabel,
50399
+ selectSeriesOpt = _this$options4.selectSeries;
50297
50400
  var useSelectItem = (selectItemOpt === null || selectItemOpt === void 0 ? void 0 : selectItemOpt.use) && (selectItemOpt === null || selectItemOpt === void 0 ? void 0 : selectItemOpt.useClick);
50298
50401
  var useSelectLabel = (selectLabelOpt === null || selectLabelOpt === void 0 ? void 0 : selectLabelOpt.use) && (selectLabelOpt === null || selectLabelOpt === void 0 ? void 0 : selectLabelOpt.useClick);
50299
50402
  var useSelectSeries = (selectSeriesOpt === null || selectSeriesOpt === void 0 ? void 0 : selectSeriesOpt.use) && (selectSeriesOpt === null || selectSeriesOpt === void 0 ? void 0 : selectSeriesOpt.useClick);
@@ -50319,11 +50422,11 @@ var plugins_interaction_modules = {
50319
50422
  var setSelectedLabelInfo = function setSelectedLabelInfo(targetAxis) {
50320
50423
  var itemHitInfo = _this.getItemByPosition(offset, false);
50321
50424
 
50322
- var _this$getLabelInfoByP = _this.getLabelInfoByPosition(offset, targetAxis),
50323
- clickedLabelIndex = _this$getLabelInfoByP.labelIndex;
50425
+ var _this$getLabelInfoByP2 = _this.getLabelInfoByPosition(offset, targetAxis),
50426
+ clickedLabelIndex = _this$getLabelInfoByP2.labelIndex;
50324
50427
 
50325
- var _this$regulateSelecte = _this.regulateSelectedLabelInfo(clickedLabelIndex, targetAxis),
50326
- dataIndexList = _this$regulateSelecte.dataIndex;
50428
+ var _this$regulateSelecte2 = _this.regulateSelectedLabelInfo(clickedLabelIndex, targetAxis),
50429
+ dataIndexList = _this$regulateSelecte2.dataIndex;
50327
50430
 
50328
50431
  _this.defaultSelectInfo = _this.getSelectedLabelInfoWithLabelData(dataIndexList, targetAxis);
50329
50432
 
@@ -50344,7 +50447,7 @@ var plugins_interaction_modules = {
50344
50447
  var hitInfo = _this.getSeriesInfoByPosition(offset);
50345
50448
 
50346
50449
  if (hitInfo.sId !== null) {
50347
- var allSelectedList = _this.updateSelectedSeriesInfo(hitInfo.sId);
50450
+ var allSelectedList = _this.updateSelectedSeriesInfo(hitInfo.sId, false);
50348
50451
 
50349
50452
  _this.defaultSelectInfo.seriesId = allSelectedList.seriesId;
50350
50453
  args.selected = _objectSpread2({
@@ -50505,9 +50608,9 @@ var plugins_interaction_modules = {
50505
50608
 
50506
50609
 
50507
50610
  this.onMouseDown = function (e) {
50508
- var _this$options4 = _this.options,
50509
- dragSelection = _this$options4.dragSelection,
50510
- type = _this$options4.type;
50611
+ var _this$options5 = _this.options,
50612
+ dragSelection = _this$options5.dragSelection,
50613
+ type = _this$options5.type;
50511
50614
 
50512
50615
  if (dragSelection.use && (type === 'scatter' || type === 'line' || type === 'heatMap')) {
50513
50616
  _this.removeSelectionArea();
@@ -50535,13 +50638,13 @@ var plugins_interaction_modules = {
50535
50638
  }
50536
50639
  };
50537
50640
 
50538
- if ((_this$options5 = this.options) !== null && _this$options5 !== void 0 && (_this$options5$toolti = _this$options5.tooltip) !== null && _this$options5$toolti !== void 0 && _this$options5$toolti.useScrollbar) {
50641
+ if ((_this$options6 = this.options) !== null && _this$options6 !== void 0 && (_this$options6$toolti = _this$options6.tooltip) !== null && _this$options6$toolti !== void 0 && _this$options6$toolti.useScrollbar) {
50539
50642
  this.overlayCanvas.addEventListener('wheel', this.onWheel, {
50540
50643
  passive: false
50541
50644
  });
50542
50645
  }
50543
50646
 
50544
- if ((_this$options6 = this.options) !== null && _this$options6 !== void 0 && (_this$options6$toolti = _this$options6.tooltip) !== null && _this$options6$toolti !== void 0 && _this$options6$toolti.throttledMove) {
50647
+ if ((_this$options7 = this.options) !== null && _this$options7 !== void 0 && (_this$options7$toolti = _this$options7.tooltip) !== null && _this$options7$toolti !== void 0 && _this$options7$toolti.throttledMove) {
50545
50648
  this.onMouseMove = utils_throttle(this.onMouseMove, 30);
50546
50649
  }
50547
50650
 
@@ -50825,9 +50928,9 @@ var plugins_interaction_modules = {
50825
50928
  }
50826
50929
  }
50827
50930
  } else if (location === 'xAxis' || location === 'yAxis') {
50828
- var _this$options7 = this.options,
50829
- axesX = _this$options7.axesX,
50830
- axesY = _this$options7.axesY;
50931
+ var _this$options8 = this.options,
50932
+ axesX = _this$options8.axesX,
50933
+ axesY = _this$options8.axesY;
50831
50934
 
50832
50935
  var setCurMouseLabelVal = function setCurMouseLabelVal(axes, labelIdx, labelVal) {
50833
50936
  curMouseTargetVal.labelIdx = labelIdx;
@@ -51266,10 +51369,10 @@ var plugins_interaction_modules = {
51266
51369
  getSelectedLabelInfoWithLabelData: function getSelectedLabelInfoWithLabelData(labelIndexList, targetAxis) {
51267
51370
  var _this4 = this;
51268
51371
 
51269
- var _this$options8 = this.options,
51270
- selectLabelOpt = _this$options8.selectLabel,
51271
- chartType = _this$options8.type,
51272
- horizontal = _this$options8.horizontal;
51372
+ var _this$options9 = this.options,
51373
+ selectLabelOpt = _this$options9.selectLabel,
51374
+ chartType = _this$options9.type,
51375
+ horizontal = _this$options9.horizontal;
51273
51376
  var result = lodash_es_cloneDeep(this.defaultSelectInfo);
51274
51377
  result.dataIndex = labelIndexList;
51275
51378
 
@@ -51332,9 +51435,9 @@ var plugins_interaction_modules = {
51332
51435
  * @returns after {number[]} '[0, 1 ...]' result Label index List
51333
51436
  */
51334
51437
  regulateSelectedLabelInfo: function regulateSelectedLabelInfo(labelIndex, targetAxis) {
51335
- var _this$options$selectL2, _this$options9, _this$defaultSelectIn;
51438
+ var _this$options$selectL2, _this$options10, _this$defaultSelectIn;
51336
51439
 
51337
- var option = (_this$options$selectL2 = (_this$options9 = this.options) === null || _this$options9 === void 0 ? void 0 : _this$options9.selectLabel) !== null && _this$options$selectL2 !== void 0 ? _this$options$selectL2 : {};
51440
+ var option = (_this$options$selectL2 = (_this$options10 = this.options) === null || _this$options10 === void 0 ? void 0 : _this$options10.selectLabel) !== null && _this$options$selectL2 !== void 0 ? _this$options$selectL2 : {};
51338
51441
  var before = targetAxis === null || ((_this$defaultSelectIn = this.defaultSelectInfo) === null || _this$defaultSelectIn === void 0 ? void 0 : _this$defaultSelectIn.targetAxis) === targetAxis ? _objectSpread2(_objectSpread2({}, this.defaultSelectInfo), {}, {
51339
51442
  targetAxis: targetAxis
51340
51443
  }) : {
@@ -51364,20 +51467,28 @@ var plugins_interaction_modules = {
51364
51467
  /**
51365
51468
  * Add or delete selected series Index,according to policy and option
51366
51469
  * @param seriesId {number}
51470
+ * @param keepSelection {boolean}
51367
51471
  * @returns after {number[]} '[0, 1 ...]' result series Id List
51368
51472
  */
51369
- updateSelectedSeriesInfo: function updateSelectedSeriesInfo(seriesId) {
51370
- var _this$options$selectS, _this$options10, _this$defaultSelectIn2;
51473
+ updateSelectedSeriesInfo: function updateSelectedSeriesInfo(seriesId, keepSelection) {
51474
+ var _this$options$selectS, _this$options11, _this$defaultSelectIn2;
51371
51475
 
51372
- var option = (_this$options$selectS = (_this$options10 = this.options) === null || _this$options10 === void 0 ? void 0 : _this$options10.selectSeries) !== null && _this$options$selectS !== void 0 ? _this$options$selectS : {};
51476
+ var option = (_this$options$selectS = (_this$options11 = this.options) === null || _this$options11 === void 0 ? void 0 : _this$options11.selectSeries) !== null && _this$options$selectS !== void 0 ? _this$options$selectS : {};
51373
51477
  var before = (_this$defaultSelectIn2 = this.defaultSelectInfo) !== null && _this$defaultSelectIn2 !== void 0 ? _this$defaultSelectIn2 : {
51374
51478
  seriesId: []
51375
51479
  };
51480
+
51481
+ if (typeof before.seriesId === 'string') {
51482
+ before.seriesId = [before.seriesId];
51483
+ }
51484
+
51376
51485
  var after = lodash_es_cloneDeep(before);
51377
51486
 
51378
51487
  if (before.seriesId.includes(seriesId)) {
51379
- var idx = before.seriesId.indexOf(seriesId);
51380
- after.seriesId.splice(idx, 1);
51488
+ if (!keepSelection) {
51489
+ var idx = before.seriesId.indexOf(seriesId);
51490
+ after.seriesId.splice(idx, 1);
51491
+ }
51381
51492
  } else if (seriesId) {
51382
51493
  after.seriesId.push(seriesId);
51383
51494
 
@@ -55702,6 +55813,42 @@ var DEFAULT_DATA = {
55702
55813
  labels: [],
55703
55814
  data: {}
55704
55815
  };
55816
+
55817
+ var useWidgetClickEvent = function useWidgetClickEvent() {
55818
+ var timer = null;
55819
+ var clickCount = 0;
55820
+ var Delay = 200;
55821
+
55822
+ var clickEventCallback = function clickEventCallback(callback) {
55823
+ clickCount++;
55824
+
55825
+ if (clickCount === 1) {
55826
+ timer = setTimeout(function () {
55827
+ if (clickCount === 1) {
55828
+ callback();
55829
+ }
55830
+
55831
+ clickCount = 0;
55832
+ }, Delay);
55833
+ }
55834
+ };
55835
+
55836
+ var dblClickEventCallback = function dblClickEventCallback(callback) {
55837
+ if (timer) {
55838
+ clearTimeout(timer);
55839
+ timer = null;
55840
+ }
55841
+
55842
+ callback();
55843
+ clickCount = 0;
55844
+ };
55845
+
55846
+ return {
55847
+ clickEventCallback: clickEventCallback,
55848
+ dblClickEventCallback: dblClickEventCallback
55849
+ };
55850
+ };
55851
+
55705
55852
  var chart_uses_useModel = function useModel(injectGroupSelectedLabel, injectGroupHoveredLabel) {
55706
55853
  var _props$selectedLabel;
55707
55854
 
@@ -55735,13 +55882,14 @@ var chart_uses_useModel = function useModel(injectGroupSelectedLabel, injectGrou
55735
55882
  var selectItemInfo = lodash_es_cloneDeep(props.selectedItem);
55736
55883
  var selectLabelInfo = lodash_es_cloneDeep((_props$selectedLabel = props.selectedLabel) !== null && _props$selectedLabel !== void 0 ? _props$selectedLabel : injectGroupSelectedLabel === null || injectGroupSelectedLabel === void 0 ? void 0 : injectGroupSelectedLabel.value);
55737
55884
  var selectSeriesInfo = lodash_es_cloneDeep(props.selectedSeries);
55885
+
55886
+ var _useWidgetClickEvent = useWidgetClickEvent(),
55887
+ clickEventCallback = _useWidgetClickEvent.clickEventCallback,
55888
+ dblClickEventCallback = _useWidgetClickEvent.dblClickEventCallback;
55889
+
55738
55890
  var eventListeners = {
55739
55891
  click: function () {
55740
55892
  var _click = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(e) {
55741
- var _e$selected, _e$deselected;
55742
-
55743
- var _ref, seriesId, dataIndex, eventTarget, targetAxis, _ref2, deselectedEventTarget;
55744
-
55745
55893
  return regeneratorRuntime.wrap(function _callee$(_context) {
55746
55894
  while (1) {
55747
55895
  switch (_context.prev = _context.next) {
@@ -55750,59 +55898,73 @@ var chart_uses_useModel = function useModel(injectGroupSelectedLabel, injectGrou
55750
55898
  return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["nextTick"])();
55751
55899
 
55752
55900
  case 2:
55753
- _ref = (_e$selected = e === null || e === void 0 ? void 0 : e.selected) !== null && _e$selected !== void 0 ? _e$selected : {}, seriesId = _ref.seriesId, dataIndex = _ref.dataIndex, eventTarget = _ref.eventTarget, targetAxis = _ref.targetAxis;
55754
- _ref2 = (_e$deselected = e === null || e === void 0 ? void 0 : e.deselected) !== null && _e$deselected !== void 0 ? _e$deselected : {}, deselectedEventTarget = _ref2.eventTarget;
55755
- _context.t0 = eventTarget;
55756
- _context.next = _context.t0 === 'item' ? 7 : _context.t0 === 'label' ? 9 : _context.t0 === 'series' ? 11 : 13;
55757
- break;
55758
-
55759
- case 7:
55760
- if (seriesId !== null) {
55761
- emit('update:selectedItem', {
55762
- seriesID: seriesId,
55763
- dataIndex: dataIndex
55764
- });
55765
-
55766
- if (deselectedEventTarget === 'label') {
55767
- emit('update:selectedLabel', {
55768
- dataIndex: []
55769
- });
55770
- }
55771
- } else {
55772
- emit('update:selectedItem', null);
55773
- }
55774
-
55775
- return _context.abrupt("break", 14);
55776
-
55777
- case 9:
55778
- if (injectGroupSelectedLabel !== null && injectGroupSelectedLabel !== void 0 && injectGroupSelectedLabel.value) {
55779
- injectGroupSelectedLabel.value.dataIndex = dataIndex;
55780
- } else {
55781
- emit('update:selectedLabel', {
55782
- dataIndex: dataIndex,
55783
- targetAxis: targetAxis
55784
- });
55785
-
55786
- if (deselectedEventTarget === 'item') {
55787
- emit('update:selectedItem', null);
55901
+ clickEventCallback(function () {
55902
+ var _e$selected, _e$deselected;
55903
+
55904
+ var _ref = (_e$selected = e === null || e === void 0 ? void 0 : e.selected) !== null && _e$selected !== void 0 ? _e$selected : {},
55905
+ seriesId = _ref.seriesId,
55906
+ dataIndex = _ref.dataIndex,
55907
+ eventTarget = _ref.eventTarget,
55908
+ targetAxis = _ref.targetAxis;
55909
+
55910
+ var _ref2 = (_e$deselected = e === null || e === void 0 ? void 0 : e.deselected) !== null && _e$deselected !== void 0 ? _e$deselected : {},
55911
+ deselectedEventTarget = _ref2.eventTarget;
55912
+
55913
+ switch (eventTarget) {
55914
+ case 'item':
55915
+ {
55916
+ if (seriesId !== null) {
55917
+ emit('update:selectedItem', {
55918
+ seriesID: seriesId,
55919
+ dataIndex: dataIndex
55920
+ });
55921
+
55922
+ if (deselectedEventTarget === 'label') {
55923
+ emit('update:selectedLabel', {
55924
+ dataIndex: []
55925
+ });
55926
+ }
55927
+ } else {
55928
+ emit('update:selectedItem', null);
55929
+ }
55930
+
55931
+ break;
55932
+ }
55933
+
55934
+ case 'label':
55935
+ {
55936
+ if (injectGroupSelectedLabel !== null && injectGroupSelectedLabel !== void 0 && injectGroupSelectedLabel.value) {
55937
+ injectGroupSelectedLabel.value.dataIndex = dataIndex;
55938
+ } else {
55939
+ emit('update:selectedLabel', {
55940
+ dataIndex: dataIndex,
55941
+ targetAxis: targetAxis
55942
+ });
55943
+
55944
+ if (deselectedEventTarget === 'item') {
55945
+ emit('update:selectedItem', null);
55946
+ }
55947
+ }
55948
+
55949
+ break;
55950
+ }
55951
+
55952
+ case 'series':
55953
+ {
55954
+ emit('update:selectedSeries', {
55955
+ seriesId: seriesId
55956
+ });
55957
+ break;
55958
+ }
55959
+
55960
+ default:
55961
+ break;
55788
55962
  }
55789
- }
55790
-
55791
- return _context.abrupt("break", 14);
55792
55963
 
55793
- case 11:
55794
- emit('update:selectedSeries', {
55795
- seriesId: seriesId
55964
+ emit('click', e);
55796
55965
  });
55797
- return _context.abrupt("break", 14);
55798
-
55799
- case 13:
55800
- return _context.abrupt("break", 14);
55801
-
55802
- case 14:
55803
- emit('click', e);
55804
55966
 
55805
- case 15:
55967
+ case 3:
55806
55968
  case "end":
55807
55969
  return _context.stop();
55808
55970
  }
@@ -55826,7 +55988,24 @@ var chart_uses_useModel = function useModel(injectGroupSelectedLabel, injectGrou
55826
55988
  return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["nextTick"])();
55827
55989
 
55828
55990
  case 2:
55829
- emit('dbl-click', e);
55991
+ dblClickEventCallback(function () {
55992
+ var eventTarget = e.eventTarget;
55993
+
55994
+ switch (eventTarget) {
55995
+ case 'series':
55996
+ {
55997
+ emit('update:selectedSeries', {
55998
+ seriesId: e.seriesId ? [e.seriesId] : []
55999
+ });
56000
+ break;
56001
+ }
56002
+
56003
+ default:
56004
+ break;
56005
+ }
56006
+
56007
+ emit('dbl-click', e);
56008
+ });
55830
56009
 
55831
56010
  case 3:
55832
56011
  case "end":