@visactor/vchart 1.13.9-alpha.4 → 1.13.9-alpha.5

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/build/index.es.js CHANGED
@@ -31480,7 +31480,8 @@ let ScrollBar$1 = class ScrollBar extends AbstractComponent {
31480
31480
  const triggers = getEndTriggersOfDrag(),
31481
31481
  obj = "browser" === vglobal.env ? vglobal : this.stage;
31482
31482
  obj.addEventListener("pointermove", this._onSliderPointerMoveWithDelay, {
31483
- capture: !0
31483
+ capture: !0,
31484
+ passive: !0
31484
31485
  }), triggers.forEach(trigger => {
31485
31486
  obj.addEventListener(trigger, this._onSliderPointerUp);
31486
31487
  });
@@ -31501,6 +31502,7 @@ let ScrollBar$1 = class ScrollBar extends AbstractComponent {
31501
31502
  } = this.getSliderRenderBounds();
31502
31503
  return "vertical" === direction ? (currentPos = y, delta = currentPos - this._prePos, currentScrollValue = delta / height) : (currentPos = x, delta = currentPos - this._prePos, currentScrollValue = delta / width), [currentPos, currentScrollValue];
31503
31504
  }, this._onSliderPointerMove = e => {
31505
+ e.preventDefault();
31504
31506
  const {
31505
31507
  stopSliderMovePropagation = !0
31506
31508
  } = this.attribute;
@@ -31509,7 +31511,6 @@ let ScrollBar$1 = class ScrollBar extends AbstractComponent {
31509
31511
  [currentPos, currentScrollValue] = this._computeScrollValue(e);
31510
31512
  this.setScrollRange([preScrollRange[0] + currentScrollValue, preScrollRange[1] + currentScrollValue], !0), this._prePos = currentPos;
31511
31513
  }, this._onSliderPointerMoveWithDelay = 0 === this.attribute.delayTime ? this._onSliderPointerMove : delayMap$3[this.attribute.delayType](this._onSliderPointerMove, this.attribute.delayTime), this._onSliderPointerUp = e => {
31512
- e.preventDefault();
31513
31514
  const {
31514
31515
  range: preRange,
31515
31516
  limitRange = [0, 1]
@@ -31673,7 +31674,8 @@ let ScrollBar$1 = class ScrollBar extends AbstractComponent {
31673
31674
  const triggers = getEndTriggersOfDrag(),
31674
31675
  obj = "browser" === vglobal.env ? vglobal : this.stage;
31675
31676
  obj.removeEventListener("pointermove", this._onSliderPointerMoveWithDelay, {
31676
- capture: !0
31677
+ capture: !0,
31678
+ passive: !1
31677
31679
  }), triggers.forEach(trigger => {
31678
31680
  obj.removeEventListener(trigger, this._onSliderPointerUp);
31679
31681
  });
@@ -39026,17 +39028,20 @@ let DataZoom$1 = class DataZoom extends AbstractComponent {
39026
39028
  }, this.state = {
39027
39029
  start: 0,
39028
39030
  end: 1
39029
- }, this._statePointToData = state => state, this._onHandlerPointerDown = (e, tag) => {
39030
- this._clearDragEvents(), e.stopPropagation(), "start" === tag ? (this._activeTag = DataZoomActiveTag.startHandler, this._activeItem = this._startHandlerMask) : "end" === tag ? (this._activeTag = DataZoomActiveTag.endHandler, this._activeItem = this._endHandlerMask) : "middleRect" === tag ? (this._activeTag = DataZoomActiveTag.middleHandler, this._activeItem = this._middleHandlerRect) : "middleSymbol" === tag ? (this._activeTag = DataZoomActiveTag.middleHandler, this._activeItem = this._middleHandlerSymbol) : "background" === tag && (this._activeTag = DataZoomActiveTag.background, this._activeItem = this._background), this._activeState = !0, this._activeCache.startPos = this.eventPosToStagePos(e), this._activeCache.lastPos = this.eventPosToStagePos(e);
39031
+ }, this._statePointToData = state => state, this._handleTouchMove = e => {
39032
+ this._activeState && e.preventDefault();
39033
+ }, this._onHandlerPointerDown = (e, tag) => {
39034
+ this._clearDragEvents(), "start" === tag ? (this._activeTag = DataZoomActiveTag.startHandler, this._activeItem = this._startHandlerMask) : "end" === tag ? (this._activeTag = DataZoomActiveTag.endHandler, this._activeItem = this._endHandlerMask) : "middleRect" === tag ? (this._activeTag = DataZoomActiveTag.middleHandler, this._activeItem = this._middleHandlerRect) : "middleSymbol" === tag ? (this._activeTag = DataZoomActiveTag.middleHandler, this._activeItem = this._middleHandlerSymbol) : "background" === tag && (this._activeTag = DataZoomActiveTag.background, this._activeItem = this._background), this._activeState = !0, this._activeCache.startPos = this.eventPosToStagePos(e), this._activeCache.lastPos = this.eventPosToStagePos(e);
39031
39035
  const evtTarget = "browser" === vglobal.env ? vglobal : this.stage,
39032
39036
  triggers = getEndTriggersOfDrag();
39033
39037
  evtTarget.addEventListener("pointermove", this._onHandlerPointerMove, {
39034
- capture: !0
39038
+ capture: !0,
39039
+ passive: !1
39035
39040
  }), triggers.forEach(trigger => {
39036
39041
  evtTarget.addEventListener(trigger, this._onHandlerPointerUp);
39037
39042
  });
39038
39043
  }, this._pointerMove = e => {
39039
- e.stopPropagation();
39044
+ e.preventDefault();
39040
39045
  const {
39041
39046
  start: startAttr,
39042
39047
  end: endAttr,
@@ -39053,13 +39058,12 @@ let DataZoom$1 = class DataZoom extends AbstractComponent {
39053
39058
  start: start,
39054
39059
  end: end
39055
39060
  } = this.state;
39056
- this._activeState && (this._activeTag === DataZoomActiveTag.middleHandler ? this.moveZoomWithMiddle((this.state.start + this.state.end) / 2 + dis) : this._activeTag === DataZoomActiveTag.startHandler ? start + dis > end ? (start = end, end = start + dis, this._activeTag = DataZoomActiveTag.endHandler) : start += dis : this._activeTag === DataZoomActiveTag.endHandler && (end + dis < start ? (end = start, start = end + dis, this._activeTag = DataZoomActiveTag.startHandler) : end += dis), this._activeCache.lastPos = pos, brushSelect && this.renderDragMask()), start = Math.min(Math.max(start, 0), 1), end = Math.min(Math.max(end, 0), 1), startAttr === start && endAttr === end || (this.setStateAttr(start, end, !0), realTime && this._dispatchEvent("change", {
39061
+ this._activeState && (this._activeTag === DataZoomActiveTag.middleHandler ? this.moveZoomWithMiddle((this.state.start + this.state.end) / 2 + dis) : this._activeTag === DataZoomActiveTag.startHandler ? start + dis > end ? (start = end, end = start + dis, this._activeTag = DataZoomActiveTag.endHandler) : start += dis : this._activeTag === DataZoomActiveTag.endHandler && (end + dis < start ? (end = start, start = end + dis, this._activeTag = DataZoomActiveTag.startHandler) : end += dis), brushSelect && this.renderDragMask()), start = Math.min(Math.max(start, 0), 1), end = Math.min(Math.max(end, 0), 1), startAttr === start && endAttr === end || (this._activeCache.lastPos = pos, this.setStateAttr(start, end, !0), realTime && this._dispatchEvent("change", {
39057
39062
  start: start,
39058
39063
  end: end,
39059
39064
  tag: this._activeTag
39060
39065
  }));
39061
39066
  }, this._onHandlerPointerMove = 0 === this.attribute.delayTime ? this._pointerMove : delayMap$2[this.attribute.delayType](this._pointerMove, this.attribute.delayTime), this._onHandlerPointerUp = e => {
39062
- e.preventDefault();
39063
39067
  const {
39064
39068
  start: start,
39065
39069
  end: end,
@@ -39093,7 +39097,9 @@ let DataZoom$1 = class DataZoom extends AbstractComponent {
39093
39097
  } = this.attribute;
39094
39098
  this._startHandlerMask && this._startHandlerMask.addEventListener("pointerdown", e => this._onHandlerPointerDown(e, "start")), this._endHandlerMask && this._endHandlerMask.addEventListener("pointerdown", e => this._onHandlerPointerDown(e, "end")), this._middleHandlerSymbol && this._middleHandlerSymbol.addEventListener("pointerdown", e => this._onHandlerPointerDown(e, "middleSymbol")), this._middleHandlerRect && this._middleHandlerRect.addEventListener("pointerdown", e => this._onHandlerPointerDown(e, "middleRect"));
39095
39099
  const selectedTag = brushSelect ? "background" : "middleRect";
39096
- this._selectedBackground && this._selectedBackground.addEventListener("pointerdown", e => this._onHandlerPointerDown(e, selectedTag)), brushSelect && this._background && this._background.addEventListener("pointerdown", e => this._onHandlerPointerDown(e, "background")), brushSelect && this._previewGroup && this._previewGroup.addEventListener("pointerdown", e => this._onHandlerPointerDown(e, "background")), this._selectedPreviewGroup && this._selectedPreviewGroup.addEventListener("pointerdown", e => this._onHandlerPointerDown(e, selectedTag)), "auto" === showDetail && (this.addEventListener("pointerenter", this._onHandlerPointerEnter), this.addEventListener("pointerleave", this._onHandlerPointerLeave));
39100
+ this._selectedBackground && this._selectedBackground.addEventListener("pointerdown", e => this._onHandlerPointerDown(e, selectedTag)), brushSelect && this._background && this._background.addEventListener("pointerdown", e => this._onHandlerPointerDown(e, "background")), brushSelect && this._previewGroup && this._previewGroup.addEventListener("pointerdown", e => this._onHandlerPointerDown(e, "background")), this._selectedPreviewGroup && this._selectedPreviewGroup.addEventListener("pointerdown", e => this._onHandlerPointerDown(e, selectedTag)), "auto" === showDetail && (this.addEventListener("pointerenter", this._onHandlerPointerEnter), this.addEventListener("pointerleave", this._onHandlerPointerLeave)), ("browser" === vglobal.env ? vglobal : this.stage).addEventListener("touchmove", this._handleTouchMove, {
39101
+ passive: !1
39102
+ });
39097
39103
  }
39098
39104
  dragMaskSize() {
39099
39105
  const {
@@ -39128,16 +39134,17 @@ let DataZoom$1 = class DataZoom extends AbstractComponent {
39128
39134
  const evtTarget = "browser" === vglobal.env ? vglobal : this.stage,
39129
39135
  triggers = getEndTriggersOfDrag();
39130
39136
  evtTarget.removeEventListener("pointermove", this._onHandlerPointerMove, {
39131
- capture: !0
39137
+ capture: !0,
39138
+ passive: !1
39132
39139
  }), triggers.forEach(trigger => {
39133
39140
  evtTarget.removeEventListener(trigger, this._onHandlerPointerUp);
39134
39141
  });
39135
39142
  }
39136
39143
  _onHandlerPointerEnter(e) {
39137
- e.stopPropagation(), this._showText = !0, this.renderText();
39144
+ this._showText = !0, this.renderText();
39138
39145
  }
39139
39146
  _onHandlerPointerLeave(e) {
39140
- e.stopPropagation(), this._showText = !1, this.renderText();
39147
+ this._showText = !1, this.renderText();
39141
39148
  }
39142
39149
  backgroundDragZoom(startPos, endPos) {
39143
39150
  const {
@@ -39676,6 +39683,11 @@ let DataZoom$1 = class DataZoom extends AbstractComponent {
39676
39683
  setStatePointToData(callback) {
39677
39684
  isFunction$1(callback) && (this._statePointToData = callback);
39678
39685
  }
39686
+ release(all) {
39687
+ super.release(all), ("browser" === vglobal.env ? vglobal : this.stage).addEventListener("touchmove", this._handleTouchMove, {
39688
+ passive: !1
39689
+ }), this._clearDragEvents();
39690
+ }
39679
39691
  };
39680
39692
  DataZoom$1.defaultAttributes = DEFAULT_DATA_ZOOM_ATTRIBUTES;
39681
39693
 
@@ -42617,7 +42629,7 @@ class Slider extends AbstractComponent {
42617
42629
  } = this.attribute;
42618
42630
  tooltip && tooltip.alwaysShow || (this._tooltipState = null, this._tooltipShape && this._tooltipShape.setAttribute("visible", !1), this._tooltipText && this._tooltipText.setAttribute("visible", !1), this._dispatchTooltipEvent("sliderTooltipHide"));
42619
42631
  }, this._onHandlerPointerdown = e => {
42620
- e.stopPropagation(), this._clearAllDragEvents(), this._isChanging = !0;
42632
+ this._clearAllDragEvents(), this._isChanging = !0;
42621
42633
  const {
42622
42634
  x: x,
42623
42635
  y: y
@@ -42626,13 +42638,14 @@ class Slider extends AbstractComponent {
42626
42638
  const triggers = getEndTriggersOfDrag(),
42627
42639
  obj = "browser" === vglobal.env ? vglobal : this.stage;
42628
42640
  obj.addEventListener("pointermove", this._onHandlerPointerMove, {
42629
- capture: !0
42641
+ capture: !0,
42642
+ passive: !1
42630
42643
  }), triggers.forEach(trigger => {
42631
42644
  obj.addEventListener(trigger, this._onHandlerPointerUp);
42632
42645
  });
42633
42646
  }, this._onHandlerPointerMove = e => {
42634
42647
  var _a, _b;
42635
- e.stopPropagation(), this._isChanging = !0;
42648
+ e.preventDefault(), this._isChanging = !0;
42636
42649
  const {
42637
42650
  railWidth: railWidth,
42638
42651
  railHeight: railHeight,
@@ -42653,9 +42666,11 @@ class Slider extends AbstractComponent {
42653
42666
  currentValue = this.calculateValueByPos(newPos);
42654
42667
  "text" === this._currentHandler.type ? this._updateHandlerText(this._currentHandler, newPos, currentValue) : this._updateHandler(this._currentHandler, newPos, currentValue), this._updateTrack(), this._prePos = currentPos, this._dispatchChangeEvent();
42655
42668
  }, this._onHandlerPointerUp = e => {
42656
- e.preventDefault(), this._isChanging = !1, this._currentHandler = null, this._clearAllDragEvents();
42669
+ this._isChanging = !1, this._currentHandler = null, this._clearAllDragEvents();
42670
+ }, this._handleTouchMove = e => {
42671
+ this._isChanging && e.preventDefault();
42657
42672
  }, this._onTrackPointerdown = e => {
42658
- e.stopPropagation(), this._clearAllDragEvents(), this._isChanging = !0;
42673
+ this._clearAllDragEvents(), this._isChanging = !0;
42659
42674
  const {
42660
42675
  x: x,
42661
42676
  y: y
@@ -42664,12 +42679,13 @@ class Slider extends AbstractComponent {
42664
42679
  const triggers = getEndTriggersOfDrag(),
42665
42680
  obj = "browser" === vglobal.env ? vglobal : this.stage;
42666
42681
  obj.addEventListener("pointermove", this._onTrackPointerMove, {
42667
- capture: !0
42682
+ capture: !0,
42683
+ passive: !1
42668
42684
  }), triggers.forEach(trigger => {
42669
42685
  obj.addEventListener(trigger, this._onTrackPointerUp);
42670
42686
  });
42671
42687
  }, this._onTrackPointerMove = e => {
42672
- e.stopPropagation(), this._isChanging = !0;
42688
+ e.preventDefault(), this._isChanging = !0;
42673
42689
  const {
42674
42690
  railWidth: railWidth,
42675
42691
  railHeight: railHeight,
@@ -42710,9 +42726,9 @@ class Slider extends AbstractComponent {
42710
42726
  }
42711
42727
  this._prePos = currentPos, this._dispatchChangeEvent();
42712
42728
  }, this._onTrackPointerUp = e => {
42713
- e.preventDefault(), this._isChanging = !1, this._clearAllDragEvents();
42729
+ this._isChanging = !1, this._clearAllDragEvents();
42714
42730
  }, this._onRailPointerDown = e => {
42715
- e.stopPropagation(), this._clearAllDragEvents(), this._isChanging = !0;
42731
+ this._clearAllDragEvents(), this._isChanging = !0;
42716
42732
  const {
42717
42733
  railWidth: railWidth,
42718
42734
  railHeight: railHeight,
@@ -43033,7 +43049,9 @@ class Slider extends AbstractComponent {
43033
43049
  slidable: slidable,
43034
43050
  range: range
43035
43051
  } = this.attribute;
43036
- slidable && (this._startHandler && this._startHandler.addEventListener("pointerdown", this._onHandlerPointerdown), this._startHandlerText && this._startHandlerText.addEventListener("pointerdown", this._onHandlerPointerdown), this._endHandler && this._endHandler.addEventListener("pointerdown", this._onHandlerPointerdown), this._endHandlerText && this._endHandlerText.addEventListener("pointerdown", this._onHandlerPointerdown), isObject$2(range) && range.draggableTrack && this._track.addEventListener("pointerdown", this._onTrackPointerdown), this._railContainer.addEventListener("pointerdown", this._onRailPointerDown));
43052
+ slidable && (this._startHandler && this._startHandler.addEventListener("pointerdown", this._onHandlerPointerdown), this._startHandlerText && this._startHandlerText.addEventListener("pointerdown", this._onHandlerPointerdown), this._endHandler && this._endHandler.addEventListener("pointerdown", this._onHandlerPointerdown), this._endHandlerText && this._endHandlerText.addEventListener("pointerdown", this._onHandlerPointerdown), isObject$2(range) && range.draggableTrack && this._track.addEventListener("pointerdown", this._onTrackPointerdown), this._railContainer.addEventListener("pointerdown", this._onRailPointerDown), ("browser" === vglobal.env ? vglobal : this.stage).addEventListener("touchmove", this._handleTouchMove, {
43053
+ passive: !1
43054
+ }));
43037
43055
  }
43038
43056
  _bindTooltipEvents() {
43039
43057
  this.attribute.disableTriggerEvent || (this._mainContainer.addEventListener("pointerenter", this._onTooltipShow), this._mainContainer.addEventListener("pointermove", this._onTooltipUpdate), this._mainContainer.addEventListener("pointerleave", this._onTooltipHide));
@@ -43042,11 +43060,13 @@ class Slider extends AbstractComponent {
43042
43060
  const triggers = getEndTriggersOfDrag(),
43043
43061
  obj = "browser" === vglobal.env ? vglobal : this.stage;
43044
43062
  obj.removeEventListener("pointermove", this._onHandlerPointerMove, {
43045
- capture: !0
43063
+ capture: !0,
43064
+ passive: !1
43046
43065
  }), triggers.forEach(trigger => {
43047
43066
  obj.removeEventListener(trigger, this._onHandlerPointerUp);
43048
43067
  }), obj.removeEventListener("pointermove", this._onTrackPointerMove, {
43049
- capture: !0
43068
+ capture: !0,
43069
+ passive: !1
43050
43070
  }), triggers.forEach(trigger => {
43051
43071
  obj.removeEventListener(trigger, this._onTrackPointerUp);
43052
43072
  });
@@ -43149,6 +43169,11 @@ class Slider extends AbstractComponent {
43149
43169
  endHandler: endHandler
43150
43170
  };
43151
43171
  }
43172
+ release(all) {
43173
+ super.release(all), ("browser" === vglobal.env ? vglobal : this.stage).addEventListener("touchmove", this._handleTouchMove, {
43174
+ passive: !1
43175
+ }), this._clearAllDragEvents();
43176
+ }
43152
43177
  }
43153
43178
  Slider.defaultAttributes = {
43154
43179
  slidable: !0,
@@ -63688,7 +63713,7 @@ const registerVChartCore = () => {
63688
63713
  };
63689
63714
  registerVChartCore();
63690
63715
 
63691
- const version = "1.13.9-alpha.4";
63716
+ const version = "1.13.9-alpha.5";
63692
63717
 
63693
63718
  const addVChartProperty = (data, op) => {
63694
63719
  const context = op.beforeCall();
package/build/index.js CHANGED
@@ -31486,7 +31486,8 @@
31486
31486
  const triggers = getEndTriggersOfDrag(),
31487
31487
  obj = "browser" === vglobal.env ? vglobal : this.stage;
31488
31488
  obj.addEventListener("pointermove", this._onSliderPointerMoveWithDelay, {
31489
- capture: !0
31489
+ capture: !0,
31490
+ passive: !0
31490
31491
  }), triggers.forEach(trigger => {
31491
31492
  obj.addEventListener(trigger, this._onSliderPointerUp);
31492
31493
  });
@@ -31507,6 +31508,7 @@
31507
31508
  } = this.getSliderRenderBounds();
31508
31509
  return "vertical" === direction ? (currentPos = y, delta = currentPos - this._prePos, currentScrollValue = delta / height) : (currentPos = x, delta = currentPos - this._prePos, currentScrollValue = delta / width), [currentPos, currentScrollValue];
31509
31510
  }, this._onSliderPointerMove = e => {
31511
+ e.preventDefault();
31510
31512
  const {
31511
31513
  stopSliderMovePropagation = !0
31512
31514
  } = this.attribute;
@@ -31515,7 +31517,6 @@
31515
31517
  [currentPos, currentScrollValue] = this._computeScrollValue(e);
31516
31518
  this.setScrollRange([preScrollRange[0] + currentScrollValue, preScrollRange[1] + currentScrollValue], !0), this._prePos = currentPos;
31517
31519
  }, this._onSliderPointerMoveWithDelay = 0 === this.attribute.delayTime ? this._onSliderPointerMove : delayMap$3[this.attribute.delayType](this._onSliderPointerMove, this.attribute.delayTime), this._onSliderPointerUp = e => {
31518
- e.preventDefault();
31519
31520
  const {
31520
31521
  range: preRange,
31521
31522
  limitRange = [0, 1]
@@ -31679,7 +31680,8 @@
31679
31680
  const triggers = getEndTriggersOfDrag(),
31680
31681
  obj = "browser" === vglobal.env ? vglobal : this.stage;
31681
31682
  obj.removeEventListener("pointermove", this._onSliderPointerMoveWithDelay, {
31682
- capture: !0
31683
+ capture: !0,
31684
+ passive: !1
31683
31685
  }), triggers.forEach(trigger => {
31684
31686
  obj.removeEventListener(trigger, this._onSliderPointerUp);
31685
31687
  });
@@ -39032,17 +39034,20 @@
39032
39034
  }, this.state = {
39033
39035
  start: 0,
39034
39036
  end: 1
39035
- }, this._statePointToData = state => state, this._onHandlerPointerDown = (e, tag) => {
39036
- this._clearDragEvents(), e.stopPropagation(), "start" === tag ? (this._activeTag = DataZoomActiveTag.startHandler, this._activeItem = this._startHandlerMask) : "end" === tag ? (this._activeTag = DataZoomActiveTag.endHandler, this._activeItem = this._endHandlerMask) : "middleRect" === tag ? (this._activeTag = DataZoomActiveTag.middleHandler, this._activeItem = this._middleHandlerRect) : "middleSymbol" === tag ? (this._activeTag = DataZoomActiveTag.middleHandler, this._activeItem = this._middleHandlerSymbol) : "background" === tag && (this._activeTag = DataZoomActiveTag.background, this._activeItem = this._background), this._activeState = !0, this._activeCache.startPos = this.eventPosToStagePos(e), this._activeCache.lastPos = this.eventPosToStagePos(e);
39037
+ }, this._statePointToData = state => state, this._handleTouchMove = e => {
39038
+ this._activeState && e.preventDefault();
39039
+ }, this._onHandlerPointerDown = (e, tag) => {
39040
+ this._clearDragEvents(), "start" === tag ? (this._activeTag = DataZoomActiveTag.startHandler, this._activeItem = this._startHandlerMask) : "end" === tag ? (this._activeTag = DataZoomActiveTag.endHandler, this._activeItem = this._endHandlerMask) : "middleRect" === tag ? (this._activeTag = DataZoomActiveTag.middleHandler, this._activeItem = this._middleHandlerRect) : "middleSymbol" === tag ? (this._activeTag = DataZoomActiveTag.middleHandler, this._activeItem = this._middleHandlerSymbol) : "background" === tag && (this._activeTag = DataZoomActiveTag.background, this._activeItem = this._background), this._activeState = !0, this._activeCache.startPos = this.eventPosToStagePos(e), this._activeCache.lastPos = this.eventPosToStagePos(e);
39037
39041
  const evtTarget = "browser" === vglobal.env ? vglobal : this.stage,
39038
39042
  triggers = getEndTriggersOfDrag();
39039
39043
  evtTarget.addEventListener("pointermove", this._onHandlerPointerMove, {
39040
- capture: !0
39044
+ capture: !0,
39045
+ passive: !1
39041
39046
  }), triggers.forEach(trigger => {
39042
39047
  evtTarget.addEventListener(trigger, this._onHandlerPointerUp);
39043
39048
  });
39044
39049
  }, this._pointerMove = e => {
39045
- e.stopPropagation();
39050
+ e.preventDefault();
39046
39051
  const {
39047
39052
  start: startAttr,
39048
39053
  end: endAttr,
@@ -39059,13 +39064,12 @@
39059
39064
  start: start,
39060
39065
  end: end
39061
39066
  } = this.state;
39062
- this._activeState && (this._activeTag === DataZoomActiveTag.middleHandler ? this.moveZoomWithMiddle((this.state.start + this.state.end) / 2 + dis) : this._activeTag === DataZoomActiveTag.startHandler ? start + dis > end ? (start = end, end = start + dis, this._activeTag = DataZoomActiveTag.endHandler) : start += dis : this._activeTag === DataZoomActiveTag.endHandler && (end + dis < start ? (end = start, start = end + dis, this._activeTag = DataZoomActiveTag.startHandler) : end += dis), this._activeCache.lastPos = pos, brushSelect && this.renderDragMask()), start = Math.min(Math.max(start, 0), 1), end = Math.min(Math.max(end, 0), 1), startAttr === start && endAttr === end || (this.setStateAttr(start, end, !0), realTime && this._dispatchEvent("change", {
39067
+ this._activeState && (this._activeTag === DataZoomActiveTag.middleHandler ? this.moveZoomWithMiddle((this.state.start + this.state.end) / 2 + dis) : this._activeTag === DataZoomActiveTag.startHandler ? start + dis > end ? (start = end, end = start + dis, this._activeTag = DataZoomActiveTag.endHandler) : start += dis : this._activeTag === DataZoomActiveTag.endHandler && (end + dis < start ? (end = start, start = end + dis, this._activeTag = DataZoomActiveTag.startHandler) : end += dis), brushSelect && this.renderDragMask()), start = Math.min(Math.max(start, 0), 1), end = Math.min(Math.max(end, 0), 1), startAttr === start && endAttr === end || (this._activeCache.lastPos = pos, this.setStateAttr(start, end, !0), realTime && this._dispatchEvent("change", {
39063
39068
  start: start,
39064
39069
  end: end,
39065
39070
  tag: this._activeTag
39066
39071
  }));
39067
39072
  }, this._onHandlerPointerMove = 0 === this.attribute.delayTime ? this._pointerMove : delayMap$2[this.attribute.delayType](this._pointerMove, this.attribute.delayTime), this._onHandlerPointerUp = e => {
39068
- e.preventDefault();
39069
39073
  const {
39070
39074
  start: start,
39071
39075
  end: end,
@@ -39099,7 +39103,9 @@
39099
39103
  } = this.attribute;
39100
39104
  this._startHandlerMask && this._startHandlerMask.addEventListener("pointerdown", e => this._onHandlerPointerDown(e, "start")), this._endHandlerMask && this._endHandlerMask.addEventListener("pointerdown", e => this._onHandlerPointerDown(e, "end")), this._middleHandlerSymbol && this._middleHandlerSymbol.addEventListener("pointerdown", e => this._onHandlerPointerDown(e, "middleSymbol")), this._middleHandlerRect && this._middleHandlerRect.addEventListener("pointerdown", e => this._onHandlerPointerDown(e, "middleRect"));
39101
39105
  const selectedTag = brushSelect ? "background" : "middleRect";
39102
- this._selectedBackground && this._selectedBackground.addEventListener("pointerdown", e => this._onHandlerPointerDown(e, selectedTag)), brushSelect && this._background && this._background.addEventListener("pointerdown", e => this._onHandlerPointerDown(e, "background")), brushSelect && this._previewGroup && this._previewGroup.addEventListener("pointerdown", e => this._onHandlerPointerDown(e, "background")), this._selectedPreviewGroup && this._selectedPreviewGroup.addEventListener("pointerdown", e => this._onHandlerPointerDown(e, selectedTag)), "auto" === showDetail && (this.addEventListener("pointerenter", this._onHandlerPointerEnter), this.addEventListener("pointerleave", this._onHandlerPointerLeave));
39106
+ this._selectedBackground && this._selectedBackground.addEventListener("pointerdown", e => this._onHandlerPointerDown(e, selectedTag)), brushSelect && this._background && this._background.addEventListener("pointerdown", e => this._onHandlerPointerDown(e, "background")), brushSelect && this._previewGroup && this._previewGroup.addEventListener("pointerdown", e => this._onHandlerPointerDown(e, "background")), this._selectedPreviewGroup && this._selectedPreviewGroup.addEventListener("pointerdown", e => this._onHandlerPointerDown(e, selectedTag)), "auto" === showDetail && (this.addEventListener("pointerenter", this._onHandlerPointerEnter), this.addEventListener("pointerleave", this._onHandlerPointerLeave)), ("browser" === vglobal.env ? vglobal : this.stage).addEventListener("touchmove", this._handleTouchMove, {
39107
+ passive: !1
39108
+ });
39103
39109
  }
39104
39110
  dragMaskSize() {
39105
39111
  const {
@@ -39134,16 +39140,17 @@
39134
39140
  const evtTarget = "browser" === vglobal.env ? vglobal : this.stage,
39135
39141
  triggers = getEndTriggersOfDrag();
39136
39142
  evtTarget.removeEventListener("pointermove", this._onHandlerPointerMove, {
39137
- capture: !0
39143
+ capture: !0,
39144
+ passive: !1
39138
39145
  }), triggers.forEach(trigger => {
39139
39146
  evtTarget.removeEventListener(trigger, this._onHandlerPointerUp);
39140
39147
  });
39141
39148
  }
39142
39149
  _onHandlerPointerEnter(e) {
39143
- e.stopPropagation(), this._showText = !0, this.renderText();
39150
+ this._showText = !0, this.renderText();
39144
39151
  }
39145
39152
  _onHandlerPointerLeave(e) {
39146
- e.stopPropagation(), this._showText = !1, this.renderText();
39153
+ this._showText = !1, this.renderText();
39147
39154
  }
39148
39155
  backgroundDragZoom(startPos, endPos) {
39149
39156
  const {
@@ -39682,6 +39689,11 @@
39682
39689
  setStatePointToData(callback) {
39683
39690
  isFunction$1(callback) && (this._statePointToData = callback);
39684
39691
  }
39692
+ release(all) {
39693
+ super.release(all), ("browser" === vglobal.env ? vglobal : this.stage).addEventListener("touchmove", this._handleTouchMove, {
39694
+ passive: !1
39695
+ }), this._clearDragEvents();
39696
+ }
39685
39697
  };
39686
39698
  DataZoom$1.defaultAttributes = DEFAULT_DATA_ZOOM_ATTRIBUTES;
39687
39699
 
@@ -42623,7 +42635,7 @@
42623
42635
  } = this.attribute;
42624
42636
  tooltip && tooltip.alwaysShow || (this._tooltipState = null, this._tooltipShape && this._tooltipShape.setAttribute("visible", !1), this._tooltipText && this._tooltipText.setAttribute("visible", !1), this._dispatchTooltipEvent("sliderTooltipHide"));
42625
42637
  }, this._onHandlerPointerdown = e => {
42626
- e.stopPropagation(), this._clearAllDragEvents(), this._isChanging = !0;
42638
+ this._clearAllDragEvents(), this._isChanging = !0;
42627
42639
  const {
42628
42640
  x: x,
42629
42641
  y: y
@@ -42632,13 +42644,14 @@
42632
42644
  const triggers = getEndTriggersOfDrag(),
42633
42645
  obj = "browser" === vglobal.env ? vglobal : this.stage;
42634
42646
  obj.addEventListener("pointermove", this._onHandlerPointerMove, {
42635
- capture: !0
42647
+ capture: !0,
42648
+ passive: !1
42636
42649
  }), triggers.forEach(trigger => {
42637
42650
  obj.addEventListener(trigger, this._onHandlerPointerUp);
42638
42651
  });
42639
42652
  }, this._onHandlerPointerMove = e => {
42640
42653
  var _a, _b;
42641
- e.stopPropagation(), this._isChanging = !0;
42654
+ e.preventDefault(), this._isChanging = !0;
42642
42655
  const {
42643
42656
  railWidth: railWidth,
42644
42657
  railHeight: railHeight,
@@ -42659,9 +42672,11 @@
42659
42672
  currentValue = this.calculateValueByPos(newPos);
42660
42673
  "text" === this._currentHandler.type ? this._updateHandlerText(this._currentHandler, newPos, currentValue) : this._updateHandler(this._currentHandler, newPos, currentValue), this._updateTrack(), this._prePos = currentPos, this._dispatchChangeEvent();
42661
42674
  }, this._onHandlerPointerUp = e => {
42662
- e.preventDefault(), this._isChanging = !1, this._currentHandler = null, this._clearAllDragEvents();
42675
+ this._isChanging = !1, this._currentHandler = null, this._clearAllDragEvents();
42676
+ }, this._handleTouchMove = e => {
42677
+ this._isChanging && e.preventDefault();
42663
42678
  }, this._onTrackPointerdown = e => {
42664
- e.stopPropagation(), this._clearAllDragEvents(), this._isChanging = !0;
42679
+ this._clearAllDragEvents(), this._isChanging = !0;
42665
42680
  const {
42666
42681
  x: x,
42667
42682
  y: y
@@ -42670,12 +42685,13 @@
42670
42685
  const triggers = getEndTriggersOfDrag(),
42671
42686
  obj = "browser" === vglobal.env ? vglobal : this.stage;
42672
42687
  obj.addEventListener("pointermove", this._onTrackPointerMove, {
42673
- capture: !0
42688
+ capture: !0,
42689
+ passive: !1
42674
42690
  }), triggers.forEach(trigger => {
42675
42691
  obj.addEventListener(trigger, this._onTrackPointerUp);
42676
42692
  });
42677
42693
  }, this._onTrackPointerMove = e => {
42678
- e.stopPropagation(), this._isChanging = !0;
42694
+ e.preventDefault(), this._isChanging = !0;
42679
42695
  const {
42680
42696
  railWidth: railWidth,
42681
42697
  railHeight: railHeight,
@@ -42716,9 +42732,9 @@
42716
42732
  }
42717
42733
  this._prePos = currentPos, this._dispatchChangeEvent();
42718
42734
  }, this._onTrackPointerUp = e => {
42719
- e.preventDefault(), this._isChanging = !1, this._clearAllDragEvents();
42735
+ this._isChanging = !1, this._clearAllDragEvents();
42720
42736
  }, this._onRailPointerDown = e => {
42721
- e.stopPropagation(), this._clearAllDragEvents(), this._isChanging = !0;
42737
+ this._clearAllDragEvents(), this._isChanging = !0;
42722
42738
  const {
42723
42739
  railWidth: railWidth,
42724
42740
  railHeight: railHeight,
@@ -43039,7 +43055,9 @@
43039
43055
  slidable: slidable,
43040
43056
  range: range
43041
43057
  } = this.attribute;
43042
- slidable && (this._startHandler && this._startHandler.addEventListener("pointerdown", this._onHandlerPointerdown), this._startHandlerText && this._startHandlerText.addEventListener("pointerdown", this._onHandlerPointerdown), this._endHandler && this._endHandler.addEventListener("pointerdown", this._onHandlerPointerdown), this._endHandlerText && this._endHandlerText.addEventListener("pointerdown", this._onHandlerPointerdown), isObject$2(range) && range.draggableTrack && this._track.addEventListener("pointerdown", this._onTrackPointerdown), this._railContainer.addEventListener("pointerdown", this._onRailPointerDown));
43058
+ slidable && (this._startHandler && this._startHandler.addEventListener("pointerdown", this._onHandlerPointerdown), this._startHandlerText && this._startHandlerText.addEventListener("pointerdown", this._onHandlerPointerdown), this._endHandler && this._endHandler.addEventListener("pointerdown", this._onHandlerPointerdown), this._endHandlerText && this._endHandlerText.addEventListener("pointerdown", this._onHandlerPointerdown), isObject$2(range) && range.draggableTrack && this._track.addEventListener("pointerdown", this._onTrackPointerdown), this._railContainer.addEventListener("pointerdown", this._onRailPointerDown), ("browser" === vglobal.env ? vglobal : this.stage).addEventListener("touchmove", this._handleTouchMove, {
43059
+ passive: !1
43060
+ }));
43043
43061
  }
43044
43062
  _bindTooltipEvents() {
43045
43063
  this.attribute.disableTriggerEvent || (this._mainContainer.addEventListener("pointerenter", this._onTooltipShow), this._mainContainer.addEventListener("pointermove", this._onTooltipUpdate), this._mainContainer.addEventListener("pointerleave", this._onTooltipHide));
@@ -43048,11 +43066,13 @@
43048
43066
  const triggers = getEndTriggersOfDrag(),
43049
43067
  obj = "browser" === vglobal.env ? vglobal : this.stage;
43050
43068
  obj.removeEventListener("pointermove", this._onHandlerPointerMove, {
43051
- capture: !0
43069
+ capture: !0,
43070
+ passive: !1
43052
43071
  }), triggers.forEach(trigger => {
43053
43072
  obj.removeEventListener(trigger, this._onHandlerPointerUp);
43054
43073
  }), obj.removeEventListener("pointermove", this._onTrackPointerMove, {
43055
- capture: !0
43074
+ capture: !0,
43075
+ passive: !1
43056
43076
  }), triggers.forEach(trigger => {
43057
43077
  obj.removeEventListener(trigger, this._onTrackPointerUp);
43058
43078
  });
@@ -43155,6 +43175,11 @@
43155
43175
  endHandler: endHandler
43156
43176
  };
43157
43177
  }
43178
+ release(all) {
43179
+ super.release(all), ("browser" === vglobal.env ? vglobal : this.stage).addEventListener("touchmove", this._handleTouchMove, {
43180
+ passive: !1
43181
+ }), this._clearAllDragEvents();
43182
+ }
43158
43183
  }
43159
43184
  Slider.defaultAttributes = {
43160
43185
  slidable: !0,
@@ -63694,7 +63719,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
63694
63719
  };
63695
63720
  registerVChartCore();
63696
63721
 
63697
- const version = "1.13.9-alpha.4";
63722
+ const version = "1.13.9-alpha.5";
63698
63723
 
63699
63724
  const addVChartProperty = (data, op) => {
63700
63725
  const context = op.beforeCall();