@visactor/vrender-components 0.16.2-alpha.1 → 0.16.3-alpha.0

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/index.js CHANGED
@@ -2818,26 +2818,41 @@
2818
2818
  key: "supportEvent",
2819
2819
  get: function get() {
2820
2820
  return this._env || this.setEnv("browser"), this.envContribution.supportEvent;
2821
+ },
2822
+ set: function set(support) {
2823
+ this._env || this.setEnv("browser"), this.envContribution.supportEvent = support;
2821
2824
  }
2822
2825
  }, {
2823
2826
  key: "supportsTouchEvents",
2824
2827
  get: function get() {
2825
2828
  return this._env || this.setEnv("browser"), this.envContribution.supportsTouchEvents;
2829
+ },
2830
+ set: function set(support) {
2831
+ this._env || this.setEnv("browser"), this.envContribution.supportsTouchEvents = support;
2826
2832
  }
2827
2833
  }, {
2828
2834
  key: "supportsPointerEvents",
2829
2835
  get: function get() {
2830
2836
  return this._env || this.setEnv("browser"), this.envContribution.supportsPointerEvents;
2837
+ },
2838
+ set: function set(support) {
2839
+ this._env || this.setEnv("browser"), this.envContribution.supportsPointerEvents = support;
2831
2840
  }
2832
2841
  }, {
2833
2842
  key: "supportsMouseEvents",
2834
2843
  get: function get() {
2835
2844
  return this._env || this.setEnv("browser"), this.envContribution.supportsMouseEvents;
2845
+ },
2846
+ set: function set(support) {
2847
+ this._env || this.setEnv("browser"), this.envContribution.supportsMouseEvents = support;
2836
2848
  }
2837
2849
  }, {
2838
2850
  key: "applyStyles",
2839
2851
  get: function get() {
2840
2852
  return this._env || this.setEnv("browser"), this.envContribution.applyStyles;
2853
+ },
2854
+ set: function set(support) {
2855
+ this._env || this.setEnv("browser"), this.envContribution.applyStyles = support;
2841
2856
  }
2842
2857
  }, {
2843
2858
  key: "bindContribution",
@@ -25713,6 +25728,7 @@
25713
25728
  };
25714
25729
  this._statePointToData = state => state;
25715
25730
  this._onHandlerPointerDown = (e, tag) => {
25731
+ e.stopPropagation();
25716
25732
  if (tag === 'start') {
25717
25733
  this._activeTag = DataZoomActiveTag.startHandler;
25718
25734
  this._activeItem = this._startHandler;
@@ -25738,6 +25754,7 @@
25738
25754
  this._activeCache.lastPos = this.eventPosToStagePos(e);
25739
25755
  };
25740
25756
  this._onHandlerPointerMove = (e) => {
25757
+ e.stopPropagation();
25741
25758
  const { start, end, brushSelect } = this.attribute;
25742
25759
  const pos = this.eventPosToStagePos(e);
25743
25760
  const { attPos, max } = this._layoutCache;
@@ -25869,6 +25886,7 @@
25869
25886
  };
25870
25887
  }
25871
25888
  _onHandlerPointerUp(e) {
25889
+ e.preventDefault();
25872
25890
  const { start, end, brushSelect } = this.attribute;
25873
25891
  if (this._activeState) {
25874
25892
  if (this._activeTag === DataZoomActiveTag.background) {
@@ -25888,10 +25906,12 @@
25888
25906
  }
25889
25907
  }
25890
25908
  _onHandlerPointerEnter(e) {
25909
+ e.stopPropagation();
25891
25910
  this._showText = true;
25892
25911
  this.renderText();
25893
25912
  }
25894
25913
  _onHandlerPointerLeave(e) {
25914
+ e.stopPropagation();
25895
25915
  this._showText = false;
25896
25916
  this.renderText();
25897
25917
  }
@@ -30154,6 +30174,7 @@
30154
30174
  if (this._outOfInteractiveRange(e)) {
30155
30175
  return;
30156
30176
  }
30177
+ e.stopPropagation();
30157
30178
  const brushMoved = (_b = (_a = this.attribute) === null || _a === void 0 ? void 0 : _a.brushMoved) !== null && _b !== void 0 ? _b : true;
30158
30179
  this._activeMoveState = brushMoved && this._isPosInBrushMask(e);
30159
30180
  this._activeDrawState = !this._activeMoveState;
@@ -30164,11 +30185,13 @@
30164
30185
  if (this._outOfInteractiveRange(e)) {
30165
30186
  return;
30166
30187
  }
30188
+ e.stopPropagation();
30167
30189
  this._activeDrawState && this._drawing(e);
30168
30190
  this._activeMoveState && this._moving(e);
30169
30191
  };
30170
30192
  this._onBrushEnd = (e) => {
30171
30193
  var _a;
30194
+ e.preventDefault();
30172
30195
  const { removeOnClick = true } = this.attribute;
30173
30196
  if (this._activeDrawState && !this._isDrawedBeforeEnd && removeOnClick) {
30174
30197
  this._container.incrementalClearChild();
@@ -30951,7 +30974,7 @@
30951
30974
  }
30952
30975
  };
30953
30976
 
30954
- const version = "0.16.2-alpha.1";
30977
+ const version = "0.16.3-alpha.0";
30955
30978
 
30956
30979
  exports.AbstractComponent = AbstractComponent;
30957
30980
  exports.ArcInfo = ArcInfo;