@visactor/vchart 2.0.8-alpha.0 → 2.0.8-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.
- package/build/es5/index.js +1 -1
- package/build/index.es.js +7 -1
- package/build/index.js +7 -1
- package/build/index.min.js +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/cjs/core/index.d.ts +1 -1
- package/cjs/core/index.js +1 -1
- package/cjs/core/index.js.map +1 -1
- package/cjs/core/interface.js +1 -1
- package/cjs/core/util.js +1 -1
- package/cjs/data/initialize.js +1 -1
- package/cjs/data/register.js +1 -1
- package/cjs/plugin/chart/resize-zoom/zoom.d.ts +1 -0
- package/cjs/plugin/chart/resize-zoom/zoom.js +3 -1
- package/cjs/plugin/chart/resize-zoom/zoom.js.map +1 -1
- package/esm/core/index.d.ts +1 -1
- package/esm/core/index.js +1 -1
- package/esm/core/index.js.map +1 -1
- package/esm/core/interface.js +1 -1
- package/esm/core/util.js +1 -1
- package/esm/data/initialize.js +1 -1
- package/esm/data/register.js +1 -1
- package/esm/plugin/chart/resize-zoom/zoom.d.ts +1 -0
- package/esm/plugin/chart/resize-zoom/zoom.js +2 -1
- package/esm/plugin/chart/resize-zoom/zoom.js.map +1 -1
- package/package.json +5 -5
package/build/index.es.js
CHANGED
|
@@ -61290,7 +61290,7 @@ const lookup = (data, opt) => {
|
|
|
61290
61290
|
});
|
|
61291
61291
|
};
|
|
61292
61292
|
|
|
61293
|
-
const version = "2.0.8-alpha.
|
|
61293
|
+
const version = "2.0.8-alpha.1";
|
|
61294
61294
|
|
|
61295
61295
|
const addVChartProperty = (data, op) => {
|
|
61296
61296
|
const context = op.beforeCall();
|
|
@@ -105639,6 +105639,11 @@ class ChartResizeZoomPlugin extends BasePlugin {
|
|
|
105639
105639
|
this.type = 'ChartResizeZoomPlugin';
|
|
105640
105640
|
this._zoom = 1;
|
|
105641
105641
|
this._onWheel = (e) => {
|
|
105642
|
+
if (this._beforeWheel) {
|
|
105643
|
+
if (!this._beforeWheel(e) === false) {
|
|
105644
|
+
return;
|
|
105645
|
+
}
|
|
105646
|
+
}
|
|
105642
105647
|
e.preventDefault();
|
|
105643
105648
|
e.stopImmediatePropagation();
|
|
105644
105649
|
const zoom = Math.pow(1.005, -e.deltaY * Math.pow(16, e.deltaMode) * 0.2 * this._rate);
|
|
@@ -105656,6 +105661,7 @@ class ChartResizeZoomPlugin extends BasePlugin {
|
|
|
105656
105661
|
this._minZoom = (_c = spec.min) !== null && _c !== void 0 ? _c : MIN_ZOOM;
|
|
105657
105662
|
this._maxZoom = (_d = spec.max) !== null && _d !== void 0 ? _d : MAX_ZOOM;
|
|
105658
105663
|
this._rate = (_e = spec.rate) !== null && _e !== void 0 ? _e : 0.1;
|
|
105664
|
+
this._beforeWheel = spec.beforeWheel;
|
|
105659
105665
|
this._container = chart.getContainer();
|
|
105660
105666
|
this._triggerEvent = getDefaultTriggerEventByMode(service.globalInstance.getChart().getOption().mode).zoom;
|
|
105661
105667
|
if (this._container && this._triggerEvent) {
|
package/build/index.js
CHANGED
|
@@ -61296,7 +61296,7 @@
|
|
|
61296
61296
|
});
|
|
61297
61297
|
};
|
|
61298
61298
|
|
|
61299
|
-
const version = "2.0.8-alpha.
|
|
61299
|
+
const version = "2.0.8-alpha.1";
|
|
61300
61300
|
|
|
61301
61301
|
const addVChartProperty = (data, op) => {
|
|
61302
61302
|
const context = op.beforeCall();
|
|
@@ -105645,6 +105645,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
105645
105645
|
this.type = 'ChartResizeZoomPlugin';
|
|
105646
105646
|
this._zoom = 1;
|
|
105647
105647
|
this._onWheel = (e) => {
|
|
105648
|
+
if (this._beforeWheel) {
|
|
105649
|
+
if (!this._beforeWheel(e) === false) {
|
|
105650
|
+
return;
|
|
105651
|
+
}
|
|
105652
|
+
}
|
|
105648
105653
|
e.preventDefault();
|
|
105649
105654
|
e.stopImmediatePropagation();
|
|
105650
105655
|
const zoom = Math.pow(1.005, -e.deltaY * Math.pow(16, e.deltaMode) * 0.2 * this._rate);
|
|
@@ -105662,6 +105667,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
105662
105667
|
this._minZoom = (_c = spec.min) !== null && _c !== void 0 ? _c : MIN_ZOOM;
|
|
105663
105668
|
this._maxZoom = (_d = spec.max) !== null && _d !== void 0 ? _d : MAX_ZOOM;
|
|
105664
105669
|
this._rate = (_e = spec.rate) !== null && _e !== void 0 ? _e : 0.1;
|
|
105670
|
+
this._beforeWheel = spec.beforeWheel;
|
|
105665
105671
|
this._container = chart.getContainer();
|
|
105666
105672
|
this._triggerEvent = getDefaultTriggerEventByMode(service.globalInstance.getChart().getOption().mode).zoom;
|
|
105667
105673
|
if (this._container && this._triggerEvent) {
|