evui 3.3.56 → 3.3.58

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/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  ### Project setup
4
4
  ```
5
- npm install
5
+ npm i -D evui
6
6
  ```
7
7
 
8
8
  ### Compiles library for product
@@ -11,6 +11,9 @@ npm run build:lib
11
11
  ```
12
12
 
13
13
  ### Compiles and hot-reloads for development document project
14
+ - Node 12 is required to run the official documentation locally.
15
+ - We will upload the node version later.
16
+ - DOCUMENT : https://ex-em.github.io/EVUI
14
17
  ```
15
18
  npm run docs
16
19
  ```
@@ -30,11 +33,31 @@ npm run build
30
33
  npm run test:unit
31
34
  ```
32
35
 
33
- ### Lints and fixes files
36
+ ### Use Vue3 Project
34
37
  ```
35
- npm run lint
38
+ // main.ts
39
+ import App from '@/App.vue';
40
+ import EVUI from 'evui';
41
+
42
+ const app = createApp(App);
43
+
44
+ app.use(EVUI);
45
+
46
+ app.mount('#app');
36
47
  ```
37
48
 
49
+ ### Using Message Component
50
+ ```
51
+ // main.ts
52
+ import App from '@/App.vue';
53
+ import { EvMessageBox, EvMessage, EvNotification } from 'evui';
38
54
 
39
- ### Customize configuration
40
- See [Configuration Reference](https://cli.vuejs.org/config/).
55
+ const app = createApp(App);
56
+
57
+ app.use(EVUI);
58
+ app.config.globalProperties.$messagebox = EvMessageBox;
59
+ app.config.globalProperties.$messagex = EvMessage;
60
+ app.config.globalProperties.$notify = EvNotification;
61
+
62
+ app.mount('#app');
63
+ ```
@@ -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.56\"}");
8048
+ module.exports = JSON.parse("{\"a\":\"3.3.58\"}");
8049
8049
 
8050
8050
  /***/ }),
8051
8051
 
@@ -35699,18 +35699,21 @@ var element_line_Line = /*#__PURE__*/function () {
35699
35699
  } // Draw points
35700
35700
 
35701
35701
 
35702
- if (!isBrush && (this.point || useSelectLabel)) {
35702
+ if (!isBrush) {
35703
35703
  ctx.strokeStyle = helpers_util.colorStringToRgba(mainColor, mainColorOpacity);
35704
35704
  var focusStyle = helpers_util.colorStringToRgba(pointFillColor, 1);
35705
35705
  var blurStyle = helpers_util.colorStringToRgba(pointFillColor, pointFillColorOpacity);
35706
35706
  this.data.forEach(function (curr, ix) {
35707
- var isSelectedLabel = selectedLabelIndexList.includes(ix);
35707
+ var _this2$data, _this2$data2;
35708
35708
 
35709
35709
  if (curr.xp === null || curr.yp === null) {
35710
35710
  return;
35711
35711
  }
35712
35712
 
35713
- if (_this2.point || isSelectedLabel) {
35713
+ var isSingle = ((_this2$data = _this2.data[ix - 1]) === null || _this2$data === void 0 ? void 0 : _this2$data.o) === null && ((_this2$data2 = _this2.data[ix + 1]) === null || _this2$data2 === void 0 ? void 0 : _this2$data2.o) === null;
35714
+ var isSelectedLabel = selectedLabelIndexList.includes(ix);
35715
+
35716
+ if (_this2.point || isSingle || isSelectedLabel) {
35714
35717
  ctx.fillStyle = isSelectedLabel && !legendHitInfo ? focusStyle : blurStyle;
35715
35718
  helpers_canvas.drawPoint(ctx, _this2.pointStyle, _this2.pointSize, curr.xp, curr.yp);
35716
35719
  }
@@ -36534,6 +36537,8 @@ var element_bar_Bar = /*#__PURE__*/function () {
36534
36537
  }, {
36535
36538
  key: "findGraphRange",
36536
36539
  value: function findGraphRange(offset) {
36540
+ var _this$range;
36541
+
36537
36542
  var xp = offset[0];
36538
36543
  var yp = offset[1];
36539
36544
  var item = {
@@ -36544,9 +36549,10 @@ var element_bar_Bar = /*#__PURE__*/function () {
36544
36549
  var gdata = this.data;
36545
36550
  var totalCount = gdata.length;
36546
36551
 
36547
- var _this$range = _slicedToArray(this.range, 2),
36548
- min = _this$range[0],
36549
- max = _this$range[1];
36552
+ var _ref4 = (_this$range = this.range) !== null && _this$range !== void 0 ? _this$range : [],
36553
+ _ref5 = _slicedToArray(_ref4, 2),
36554
+ min = _ref5[0],
36555
+ max = _ref5[1];
36550
36556
 
36551
36557
  if (truthyNumber(min) && truthyNumber(max)) {
36552
36558
  totalCount = max - min + 1;
@@ -36590,6 +36596,8 @@ var element_bar_Bar = /*#__PURE__*/function () {
36590
36596
  }, {
36591
36597
  key: "findGraphRangeCount",
36592
36598
  value: function findGraphRangeCount(offset) {
36599
+ var _this$range2;
36600
+
36593
36601
  var xp = offset[0];
36594
36602
  var yp = offset[1];
36595
36603
  var item = {
@@ -36600,9 +36608,10 @@ var element_bar_Bar = /*#__PURE__*/function () {
36600
36608
  var gdata = this.data;
36601
36609
  var totalCount = gdata.length;
36602
36610
 
36603
- var _this$range2 = _slicedToArray(this.range, 2),
36604
- min = _this$range2[0],
36605
- max = _this$range2[1];
36611
+ var _ref6 = (_this$range2 = this.range) !== null && _this$range2 !== void 0 ? _this$range2 : [],
36612
+ _ref7 = _slicedToArray(_ref6, 2),
36613
+ min = _ref7[0],
36614
+ max = _ref7[1];
36606
36615
 
36607
36616
  if (truthyNumber(min) && truthyNumber(max)) {
36608
36617
  totalCount = max - min + 1;
@@ -36647,11 +36656,11 @@ var element_bar_Bar = /*#__PURE__*/function () {
36647
36656
 
36648
36657
  }, {
36649
36658
  key: "drawValueLabels",
36650
- value: function drawValueLabels(_ref4) {
36651
- var context = _ref4.context,
36652
- data = _ref4.data,
36653
- positions = _ref4.positions,
36654
- isHighlight = _ref4.isHighlight;
36659
+ value: function drawValueLabels(_ref8) {
36660
+ var context = _ref8.context,
36661
+ data = _ref8.data,
36662
+ positions = _ref8.positions,
36663
+ isHighlight = _ref8.isHighlight;
36655
36664
  var isHorizontal = this.isHorizontal;
36656
36665
  var _this$showValue = this.showValue,
36657
36666
  fontSize = _this$showValue.fontSize,
@@ -36677,9 +36686,9 @@ var element_bar_Bar = /*#__PURE__*/function () {
36677
36686
  if (isStacked) {
36678
36687
  value = data.o;
36679
36688
  } else {
36680
- var _ref5;
36689
+ var _ref9;
36681
36690
 
36682
- value = (_ref5 = isHorizontal ? data.x : data.y) !== null && _ref5 !== void 0 ? _ref5 : '';
36691
+ value = (_ref9 = isHorizontal ? data.x : data.y) !== null && _ref9 !== void 0 ? _ref9 : '';
36683
36692
  }
36684
36693
 
36685
36694
  var formattedTxt;
@@ -36768,9 +36777,9 @@ var element_bar_Bar = /*#__PURE__*/function () {
36768
36777
  }
36769
36778
  }, {
36770
36779
  key: "drawBar",
36771
- value: function drawBar(_ref6) {
36772
- var ctx = _ref6.ctx,
36773
- positions = _ref6.positions;
36780
+ value: function drawBar(_ref10) {
36781
+ var ctx = _ref10.ctx,
36782
+ positions = _ref10.positions;
36774
36783
  var isHorizontal = this.isHorizontal;
36775
36784
  var isStackBar = ('stackIndex' in this);
36776
36785
  var isBorderRadius = this.borderRadius && this.borderRadius > 0;
@@ -38383,8 +38392,8 @@ var scale_Scale = /*#__PURE__*/function () {
38383
38392
  var range = scrollbarOpt !== null && scrollbarOpt !== void 0 && scrollbarOpt.use ? scrollbarOpt === null || scrollbarOpt === void 0 ? void 0 : scrollbarOpt.range : this.range;
38384
38393
 
38385
38394
  if ((range === null || range === void 0 ? void 0 : range.length) === 2) {
38386
- maxValue = range[1];
38387
- minValue = range[0];
38395
+ maxValue = range[1] > +minMax.max ? +minMax.max : range[1];
38396
+ minValue = range[0] < +minMax.min ? +minMax.min : range[0];
38388
38397
  } else {
38389
38398
  maxValue = minMax.max;
38390
38399
  minValue = minMax.min;
@@ -39498,6 +39507,7 @@ var scale_logarithmic_LogarithmicScale = /*#__PURE__*/function (_Scale) {
39498
39507
 
39499
39508
 
39500
39509
 
39510
+
39501
39511
  var scale_step_StepScale = /*#__PURE__*/function (_Scale) {
39502
39512
  _inherits(StepScale, _Scale);
39503
39513
 
@@ -39534,13 +39544,17 @@ var scale_step_StepScale = /*#__PURE__*/function (_Scale) {
39534
39544
  var range = scrollbarOpt !== null && scrollbarOpt !== void 0 && scrollbarOpt.use ? scrollbarOpt === null || scrollbarOpt === void 0 ? void 0 : scrollbarOpt.range : this.range;
39535
39545
 
39536
39546
  if (range !== null && range !== void 0 && range.length) {
39537
- var _range = _slicedToArray(range, 2);
39547
+ var _range = _slicedToArray(range, 2),
39548
+ min = _range[0],
39549
+ max = _range[1];
39538
39550
 
39539
- minIndex = _range[0];
39540
- maxIndex = _range[1];
39541
- maxValue = this.labels[maxIndex];
39542
- minValue = this.labels[minIndex];
39543
- labelCount = maxIndex - minIndex + 1;
39551
+ if (truthyNumber(min) && truthyNumber(max)) {
39552
+ minIndex = min < minIndex ? minIndex : min;
39553
+ maxIndex = max > maxIndex ? maxIndex : max;
39554
+ maxValue = this.labels[maxIndex];
39555
+ minValue = this.labels[minIndex];
39556
+ labelCount = maxIndex - minIndex + 1;
39557
+ }
39544
39558
  }
39545
39559
 
39546
39560
  var maxWidth = chartRect.chartWidth / (labelCount + 2);
@@ -40111,8 +40125,9 @@ var scale_time_category_TimeCategoryScale = /*#__PURE__*/function (_Scale) {
40111
40125
  ctx.strokeStyle = this.gridLineColor;
40112
40126
  var labelText;
40113
40127
  var labelPoint;
40128
+ var ix;
40114
40129
 
40115
- for (var ix = 0; ix < oriSteps; ix += count) {
40130
+ for (ix = 0; ix < oriSteps; ix += count) {
40116
40131
  var _this$options, _this$options$selectL, _this$options2, _this$options2$select, _selectLabelInfo$data;
40117
40132
 
40118
40133
  ticks[ix] = axisMin + ix * stepValue;
@@ -40176,10 +40191,10 @@ var scale_time_category_TimeCategoryScale = /*#__PURE__*/function (_Scale) {
40176
40191
  ctx.stroke();
40177
40192
  }
40178
40193
 
40179
- if (this.categoryMode && alignToGridLine && count * steps === oriSteps) {
40194
+ if (this.categoryMode && alignToGridLine && ix * count === oriSteps) {
40180
40195
  var diffTime = dayjs_min_default()(labels[1]).diff(dayjs_min_default()(labels[0]));
40181
- var labelLastText = this.getLabelFormat(dayjs_min_default()(labels[labels.length - 1] + diffTime));
40182
- labelCenter = Math.round(startPoint + graphGap * labels.length);
40196
+ var labelLastText = this.getLabelFormat(dayjs_min_default()(ticks[oriSteps - 1] + diffTime));
40197
+ labelCenter = Math.round(startPoint + graphGap * oriSteps);
40183
40198
  linePosition = labelCenter + aliasPixel;
40184
40199
 
40185
40200
  if (this.type === 'x') {
@@ -42236,27 +42251,61 @@ var plugins_scrollbar_module = {
42236
42251
  });
42237
42252
  scrollbarOpt.type = axisOpt === null || axisOpt === void 0 ? void 0 : (_axisOpt$2 = axisOpt[0]) === null || _axisOpt$2 === void 0 ? void 0 : _axisOpt$2.type;
42238
42253
  scrollbarOpt.range = (axisOpt === null || axisOpt === void 0 ? void 0 : (_axisOpt$3 = axisOpt[0]) === null || _axisOpt$3 === void 0 ? void 0 : _axisOpt$3.range) || null;
42239
- scrollbarOpt.interval = null;
42240
42254
  this.createScrollbarLayout(dir);
42241
42255
  this.createScrollbar(dir);
42242
42256
  this.createScrollEvent(dir);
42243
42257
  scrollbarOpt.isInit = true;
42244
42258
  }
42245
42259
  },
42260
+ checkValidRange: function checkValidRange(dir) {
42261
+ var _scrollbarOpt$range;
42262
+
42263
+ var scrollbarOpt = this.scrollbar[dir];
42264
+ var axesType = scrollbarOpt.type;
42265
+
42266
+ if ((_scrollbarOpt$range = scrollbarOpt.range) !== null && _scrollbarOpt$range !== void 0 && _scrollbarOpt$range.length) {
42267
+ var _scrollbarOpt$range2 = _slicedToArray(scrollbarOpt.range, 2),
42268
+ min = _scrollbarOpt$range2[0],
42269
+ max = _scrollbarOpt$range2[1];
42270
+
42271
+ if (!(truthyNumber(min) && truthyNumber(max))) {
42272
+ return true;
42273
+ }
42274
+
42275
+ if (axesType === 'step') {
42276
+ var labels = this.options.type === 'heatMap' ? this.data.labels[dir] : this.data.labels;
42277
+
42278
+ if (min < 0 || max > labels.length - 1) {
42279
+ return true;
42280
+ }
42281
+ } else {
42282
+ var _this$minMax$dir;
42283
+
42284
+ var minMax = (_this$minMax$dir = this.minMax[dir]) === null || _this$minMax$dir === void 0 ? void 0 : _this$minMax$dir[0];
42285
+
42286
+ if (+min < +minMax.min || +max > +minMax.max) {
42287
+ return true;
42288
+ }
42289
+ }
42290
+ }
42291
+
42292
+ return false;
42293
+ },
42246
42294
 
42247
42295
  /**
42248
42296
  * update scrollbar information
42249
42297
  */
42250
- updateScrollbar: function updateScrollbar() {
42251
- this.updateScrollbarInfo('x');
42252
- this.updateScrollbarInfo('y');
42298
+ updateScrollbar: function updateScrollbar(updateData) {
42299
+ this.updateScrollbarInfo('x', updateData);
42300
+ this.updateScrollbarInfo('y', updateData);
42253
42301
  },
42254
42302
 
42255
42303
  /**
42256
42304
  * Updated scrollbar information with updated axis information
42257
42305
  * @param dir axis direction (x | y)
42306
+ * @param updateData is update data
42258
42307
  */
42259
- updateScrollbarInfo: function updateScrollbarInfo(dir) {
42308
+ updateScrollbarInfo: function updateScrollbarInfo(dir, updateData) {
42260
42309
  var _newOpt$, _newOpt$$scrollbar, _newOpt$2, _newOpt$0$scrollbar, _newOpt$3, _newOpt$4, _axisOpt$4, _newOpt$0$scrollbar2;
42261
42310
 
42262
42311
  var _this$options = this.options,
@@ -42275,7 +42324,7 @@ var plugins_scrollbar_module = {
42275
42324
  var axisOpt = dir === 'x' ? this.axesX : this.axesY;
42276
42325
  var isUpdateAxesRange = !lodash_es_isEqual(newOpt === null || newOpt === void 0 ? void 0 : (_newOpt$4 = newOpt[0]) === null || _newOpt$4 === void 0 ? void 0 : _newOpt$4.range, axisOpt === null || axisOpt === void 0 ? void 0 : (_axisOpt$4 = axisOpt[0]) === null || _axisOpt$4 === void 0 ? void 0 : _axisOpt$4.range);
42277
42326
 
42278
- if (isUpdateAxesRange) {
42327
+ if (isUpdateAxesRange || updateData) {
42279
42328
  var _newOpt$5;
42280
42329
 
42281
42330
  this.scrollbar[dir].range = (newOpt === null || newOpt === void 0 ? void 0 : (_newOpt$5 = newOpt[0]) === null || _newOpt$5 === void 0 ? void 0 : _newOpt$5.range) || null;
@@ -42291,10 +42340,18 @@ var plugins_scrollbar_module = {
42291
42340
  var _this$scrollbar$x, _this$scrollbar$x2, _this$scrollbar$y, _this$scrollbar$y2;
42292
42341
 
42293
42342
  if ((_this$scrollbar$x = this.scrollbar.x) !== null && _this$scrollbar$x !== void 0 && _this$scrollbar$x.use && (_this$scrollbar$x2 = this.scrollbar.x) !== null && _this$scrollbar$x2 !== void 0 && _this$scrollbar$x2.isInit) {
42343
+ if (this.checkValidRange('x')) {
42344
+ return;
42345
+ }
42346
+
42294
42347
  this.setScrollbarPosition('x');
42295
42348
  }
42296
42349
 
42297
42350
  if ((_this$scrollbar$y = this.scrollbar.y) !== null && _this$scrollbar$y !== void 0 && _this$scrollbar$y.use && (_this$scrollbar$y2 = this.scrollbar.y) !== null && _this$scrollbar$y2 !== void 0 && _this$scrollbar$y2.isInit) {
42351
+ if (this.checkValidRange('y')) {
42352
+ return;
42353
+ }
42354
+
42298
42355
  this.setScrollbarPosition('y');
42299
42356
  }
42300
42357
  },
@@ -42455,13 +42512,13 @@ var plugins_scrollbar_module = {
42455
42512
  if (scrollbarOpt.showButton) {
42456
42513
  var upBtnDOM = scrollbarDOM.getElementsByClassName('ev-chart-scrollbar-button-up');
42457
42514
  var endPosition = Math.floor(trackSize - thumbSize.size);
42458
- var upBtnOpacity = Math.floor(thumbSize.position) === endPosition ? 0.5 : 1;
42515
+ var upBtnOpacity = Math.floor(thumbSize.position) > endPosition ? 0.5 : 1;
42459
42516
  upBtnDOM[0].style.cssText = "background-color: ".concat(scrollbarOpt.background, ";").concat(upBtnStyle);
42460
42517
  upBtnDOM[0].style.opacity = upBtnOpacity;
42461
42518
  upBtnDOM[0].children[0].style.display = 'block';
42462
42519
  var downBtnDOM = scrollbarDOM.getElementsByClassName('ev-chart-scrollbar-button-down');
42463
42520
  downBtnDOM[0].style.cssText = "background-color: ".concat(scrollbarOpt.background, ";").concat(downBtnStyle);
42464
- downBtnDOM[0].style.opacity = Math.floor(thumbSize.position) === 0 ? 0.5 : 1;
42521
+ downBtnDOM[0].style.opacity = Math.floor(thumbSize.position) < 0 ? 0.5 : 1;
42465
42522
  downBtnDOM[0].children[0].style.display = 'block';
42466
42523
  }
42467
42524
  },
@@ -42474,9 +42531,9 @@ var plugins_scrollbar_module = {
42474
42531
  getScrollbarThumbSize: function getScrollbarThumbSize(dir, trackSize) {
42475
42532
  var scrollbarOpt = this.scrollbar[dir];
42476
42533
 
42477
- var _scrollbarOpt$range = _slicedToArray(scrollbarOpt.range, 2),
42478
- min = _scrollbarOpt$range[0],
42479
- max = _scrollbarOpt$range[1];
42534
+ var _scrollbarOpt$range3 = _slicedToArray(scrollbarOpt.range, 2),
42535
+ min = _scrollbarOpt$range3[0],
42536
+ max = _scrollbarOpt$range3[1];
42480
42537
 
42481
42538
  var axesType = scrollbarOpt.type;
42482
42539
  var thumbSize;
@@ -42493,20 +42550,26 @@ var plugins_scrollbar_module = {
42493
42550
  thumbSize = intervalSize * range;
42494
42551
  thumbPosition = intervalSize * min;
42495
42552
  } else {
42496
- var _this$axesX, _this$axesX$;
42553
+ var _this$minMax$dir2;
42497
42554
 
42498
- var minMax = this.minMax[dir];
42499
- var graphRange = +minMax[0].max - +minMax[0].min;
42555
+ var axisOpt = dir === 'x' ? this.axesX : this.axesY;
42556
+ var minMax = (_this$minMax$dir2 = this.minMax[dir]) === null || _this$minMax$dir2 === void 0 ? void 0 : _this$minMax$dir2[0];
42557
+ var graphRange = +minMax.max - +minMax.min;
42500
42558
 
42501
42559
  var _range = +max - +min;
42502
42560
 
42503
- interval = (_this$axesX = this.axesX) === null || _this$axesX === void 0 ? void 0 : (_this$axesX$ = _this$axesX[0]) === null || _this$axesX$ === void 0 ? void 0 : _this$axesX$.getInterval({
42504
- min: minMax[0].min,
42505
- max: minMax[0].max,
42506
- maxSteps: this.labelRange[dir].max
42507
- });
42561
+ if (axesType === 'time') {
42562
+ var _axisOpt$5, _this$labelRange$dir, _this$labelRange$dir$;
42563
+
42564
+ interval = axisOpt === null || axisOpt === void 0 ? void 0 : (_axisOpt$5 = axisOpt[0]) === null || _axisOpt$5 === void 0 ? void 0 : _axisOpt$5.getInterval({
42565
+ minValue: minMax.min,
42566
+ maxValue: minMax.max,
42567
+ maxSteps: (_this$labelRange$dir = this.labelRange[dir]) === null || _this$labelRange$dir === void 0 ? void 0 : (_this$labelRange$dir$ = _this$labelRange$dir[0]) === null || _this$labelRange$dir$ === void 0 ? void 0 : _this$labelRange$dir$.max
42568
+ });
42569
+ }
42570
+
42508
42571
  steps = Math.ceil(graphRange / interval) + 1;
42509
- startValue = +minMax[0].min;
42572
+ startValue = +minMax.min;
42510
42573
 
42511
42574
  var _intervalSize = trackSize / steps;
42512
42575
 
@@ -42521,9 +42584,7 @@ var plugins_scrollbar_module = {
42521
42584
  scrollbarOpt.interval = interval;
42522
42585
  return {
42523
42586
  size: thumbSize,
42524
- position: thumbPosition,
42525
- background: scrollbarOpt.background,
42526
- radius: scrollbarOpt.radius
42587
+ position: thumbPosition
42527
42588
  };
42528
42589
  },
42529
42590
 
@@ -42836,13 +42897,16 @@ var plugins_scrollbar_module = {
42836
42897
  var scrollbarXDOM = this.scrollbar[dir].dom;
42837
42898
 
42838
42899
  if (scrollbarXDOM) {
42839
- var _this$overlayCanvas2;
42840
-
42841
42900
  scrollbarXDOM.remove();
42842
42901
  this.scrollbar[dir] = {
42843
42902
  isInit: false
42844
42903
  };
42845
- (_this$overlayCanvas2 = this.overlayCanvas) === null || _this$overlayCanvas2 === void 0 ? void 0 : _this$overlayCanvas2.removeEventListener('wheel', this.onScrollbarWheel, false);
42904
+
42905
+ if (dir === 'y') {
42906
+ var _this$overlayCanvas2;
42907
+
42908
+ (_this$overlayCanvas2 = this.overlayCanvas) === null || _this$overlayCanvas2 === void 0 ? void 0 : _this$overlayCanvas2.removeEventListener('wheel', this.onScrollbarWheel, false);
42909
+ }
42846
42910
  }
42847
42911
  }
42848
42912
  };
@@ -43227,6 +43291,8 @@ var plugins_interaction_modules = {
43227
43291
 
43228
43292
  case 'heatMap':
43229
43293
  {
43294
+ var isHorizontal = !!_this.options.horizontal;
43295
+
43230
43296
  if (useSelectItem && useSelectLabel) {
43231
43297
  var useBothAxis = selectLabelOpt.useBothAxis;
43232
43298
 
@@ -43245,7 +43311,16 @@ var plugins_interaction_modules = {
43245
43311
  args.deselected = {
43246
43312
  eventTarget: 'item'
43247
43313
  };
43248
- setSelectedLabelInfo(useBothAxis ? location : null);
43314
+
43315
+ if (!useBothAxis) {
43316
+ var selectLabelAxis = isHorizontal ? 'yAxis' : 'xAxis';
43317
+
43318
+ if (location !== selectLabelAxis) {
43319
+ return;
43320
+ }
43321
+ }
43322
+
43323
+ setSelectedLabelInfo(location, useBothAxis);
43249
43324
  }
43250
43325
  } else if (useSelectItem) {
43251
43326
  setSelectedItemInfo();
@@ -43254,6 +43329,14 @@ var plugins_interaction_modules = {
43254
43329
 
43255
43330
  var _location = _this.getClickedLocation(offset);
43256
43331
 
43332
+ if (!_useBothAxis && _location !== 'chartBackground') {
43333
+ var _selectLabelAxis = isHorizontal ? 'yAxis' : 'xAxis';
43334
+
43335
+ if (_location !== _selectLabelAxis) {
43336
+ return;
43337
+ }
43338
+ }
43339
+
43257
43340
  setSelectedLabelInfo(_useBothAxis ? _location : null);
43258
43341
  }
43259
43342
 
@@ -43849,7 +43932,7 @@ var plugins_interaction_modules = {
43849
43932
  var _this$options$selectL2, _this$options7, _this$defaultSelectIn;
43850
43933
 
43851
43934
  var option = (_this$options$selectL2 = (_this$options7 = this.options) === null || _this$options7 === void 0 ? void 0 : _this$options7.selectLabel) !== null && _this$options$selectL2 !== void 0 ? _this$options$selectL2 : {};
43852
- var before = ((_this$defaultSelectIn = this.defaultSelectInfo) === null || _this$defaultSelectIn === void 0 ? void 0 : _this$defaultSelectIn.targetAxis) === targetAxis ? _objectSpread2(_objectSpread2({}, this.defaultSelectInfo), {}, {
43935
+ var before = targetAxis === null || ((_this$defaultSelectIn = this.defaultSelectInfo) === null || _this$defaultSelectIn === void 0 ? void 0 : _this$defaultSelectIn.targetAxis) === targetAxis ? _objectSpread2(_objectSpread2({}, this.defaultSelectInfo), {}, {
43853
43936
  targetAxis: targetAxis
43854
43937
  }) : {
43855
43938
  dataIndex: [],
@@ -46688,7 +46771,7 @@ var chart_core_EvChart = /*#__PURE__*/function () {
46688
46771
  return;
46689
46772
  }
46690
46773
 
46691
- (_this$updateScrollbar = this.updateScrollbar) === null || _this$updateScrollbar === void 0 ? void 0 : _this$updateScrollbar.call(this);
46774
+ (_this$updateScrollbar = this.updateScrollbar) === null || _this$updateScrollbar === void 0 ? void 0 : _this$updateScrollbar.call(this, updateData);
46692
46775
  this.resetProps();
46693
46776
 
46694
46777
  if (updateSeries) {