@visactor/vchart 1.13.21 → 1.13.22-alpha.1

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.
Files changed (44) hide show
  1. package/build/es5/index.js +1 -1
  2. package/build/index.es.js +5 -13
  3. package/build/index.js +5 -13
  4. package/build/index.min.js +1 -1
  5. package/build/tsconfig.tsbuildinfo +1 -1
  6. package/cjs/animation/config.js +1 -2
  7. package/cjs/animation/utils.js +2 -1
  8. package/cjs/constant/funnel.js +2 -1
  9. package/cjs/constant/scatter.js +1 -2
  10. package/cjs/core/index.d.ts +1 -1
  11. package/cjs/core/index.js +1 -1
  12. package/cjs/core/index.js.map +1 -1
  13. package/cjs/core/interface.js +2 -1
  14. package/cjs/core/vchart.js +1 -2
  15. package/cjs/env/env.js +1 -1
  16. package/cjs/env/index.js +1 -1
  17. package/cjs/event/bubble.js +1 -1
  18. package/cjs/interaction/config.js +1 -1
  19. package/cjs/interaction/dimension-trigger.js +1 -1
  20. package/cjs/interaction/index.js +1 -1
  21. package/cjs/plugin/chart/scroll/interface.d.ts +1 -0
  22. package/cjs/plugin/chart/scroll/interface.js.map +1 -1
  23. package/cjs/plugin/chart/scroll/scroll.js +3 -9
  24. package/cjs/plugin/chart/scroll/scroll.js.map +1 -1
  25. package/esm/animation/config.js +1 -2
  26. package/esm/animation/utils.js +2 -1
  27. package/esm/constant/funnel.js +2 -1
  28. package/esm/constant/scatter.js +1 -2
  29. package/esm/core/index.d.ts +1 -1
  30. package/esm/core/index.js +1 -1
  31. package/esm/core/index.js.map +1 -1
  32. package/esm/core/interface.js +2 -1
  33. package/esm/core/vchart.js +1 -2
  34. package/esm/env/env.js +1 -1
  35. package/esm/env/index.js +1 -1
  36. package/esm/event/bubble.js +1 -1
  37. package/esm/interaction/config.js +1 -1
  38. package/esm/interaction/dimension-trigger.js +1 -1
  39. package/esm/interaction/index.js +1 -1
  40. package/esm/plugin/chart/scroll/interface.d.ts +1 -0
  41. package/esm/plugin/chart/scroll/interface.js.map +1 -1
  42. package/esm/plugin/chart/scroll/scroll.js +3 -9
  43. package/esm/plugin/chart/scroll/scroll.js.map +1 -1
  44. package/package.json +5 -5
package/build/index.es.js CHANGED
@@ -64288,7 +64288,7 @@ const registerVChartCore = () => {
64288
64288
  };
64289
64289
  registerVChartCore();
64290
64290
 
64291
- const version = "1.13.21";
64291
+ const version = "1.13.22-alpha.1";
64292
64292
 
64293
64293
  const addVChartProperty = (data, op) => {
64294
64294
  const context = op.beforeCall();
@@ -104735,8 +104735,10 @@ class ScrollPlugin extends BasePlugin {
104735
104735
  };
104736
104736
  this.onWheel = (e) => {
104737
104737
  var _a, _b;
104738
- e.preventDefault();
104739
- e.stopPropagation();
104738
+ if (this._spec.preventDefault !== false) {
104739
+ e.preventDefault();
104740
+ e.stopPropagation();
104741
+ }
104740
104742
  const scrollX = e.deltaX;
104741
104743
  const scrollY = e.deltaY;
104742
104744
  const rootMark = this.getRootMark();
@@ -104793,18 +104795,8 @@ class ScrollPlugin extends BasePlugin {
104793
104795
  visible: this._scrollLimit.y.percent < 1
104794
104796
  });
104795
104797
  }
104796
- this.scrollTo({ x: 0, y: 0 });
104797
104798
  }
104798
104799
  onAfterRender() {
104799
- const rootMark = this.getRootMark();
104800
- if (rootMark) {
104801
- if (!this._xScrollComponent) {
104802
- this._updateScrollX(rootMark, 0, 0);
104803
- }
104804
- if (!this._yScrollComponent) {
104805
- this._updateScrollY(rootMark, 0, 0);
104806
- }
104807
- }
104808
104800
  }
104809
104801
  release() {
104810
104802
  var _a;
package/build/index.js CHANGED
@@ -64294,7 +64294,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
64294
64294
  };
64295
64295
  registerVChartCore();
64296
64296
 
64297
- const version = "1.13.21";
64297
+ const version = "1.13.22-alpha.1";
64298
64298
 
64299
64299
  const addVChartProperty = (data, op) => {
64300
64300
  const context = op.beforeCall();
@@ -104741,8 +104741,10 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
104741
104741
  };
104742
104742
  this.onWheel = (e) => {
104743
104743
  var _a, _b;
104744
- e.preventDefault();
104745
- e.stopPropagation();
104744
+ if (this._spec.preventDefault !== false) {
104745
+ e.preventDefault();
104746
+ e.stopPropagation();
104747
+ }
104746
104748
  const scrollX = e.deltaX;
104747
104749
  const scrollY = e.deltaY;
104748
104750
  const rootMark = this.getRootMark();
@@ -104799,18 +104801,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
104799
104801
  visible: this._scrollLimit.y.percent < 1
104800
104802
  });
104801
104803
  }
104802
- this.scrollTo({ x: 0, y: 0 });
104803
104804
  }
104804
104805
  onAfterRender() {
104805
- const rootMark = this.getRootMark();
104806
- if (rootMark) {
104807
- if (!this._xScrollComponent) {
104808
- this._updateScrollX(rootMark, 0, 0);
104809
- }
104810
- if (!this._yScrollComponent) {
104811
- this._updateScrollY(rootMark, 0, 0);
104812
- }
104813
- }
104814
104806
  }
104815
104807
  release() {
104816
104808
  var _a;