@visactor/vchart 2.0.8-alpha.1 → 2.0.8-alpha.3
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 +5 -9
- package/build/index.js +5 -9
- package/build/index.min.js +2 -2
- package/build/tsconfig.tsbuildinfo +1 -1
- package/cjs/chart/base/base-chart.js +1 -1
- package/cjs/chart/base/base-chart.js.map +1 -1
- package/cjs/component/marker/utils.js +1 -1
- package/cjs/component/marker/utils.js.map +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/plugin/chart/resize-zoom/zoom.d.ts +0 -1
- package/cjs/plugin/chart/resize-zoom/zoom.js +1 -3
- package/cjs/plugin/chart/resize-zoom/zoom.js.map +1 -1
- package/esm/chart/base/base-chart.js +1 -1
- package/esm/chart/base/base-chart.js.map +1 -1
- package/esm/component/marker/utils.js +1 -1
- package/esm/component/marker/utils.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/plugin/chart/resize-zoom/zoom.d.ts +0 -1
- package/esm/plugin/chart/resize-zoom/zoom.js +1 -2
- 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.3";
|
|
61294
61294
|
|
|
61295
61295
|
const addVChartProperty = (data, op) => {
|
|
61296
61296
|
const context = op.beforeCall();
|
|
@@ -70005,7 +70005,9 @@ class BaseChart extends CompilableBase {
|
|
|
70005
70005
|
}
|
|
70006
70006
|
}
|
|
70007
70007
|
});
|
|
70008
|
-
const isUnableValue = isNil$1(value) ||
|
|
70008
|
+
const isUnableValue = isNil$1(value) ||
|
|
70009
|
+
!dimensionInfo ||
|
|
70010
|
+
dimensionInfo.every(d => isDiscrete(d.axis.getScale().type) && (isNil$1(d.index) || d.data.every(_data => _data.datum.length === 0)));
|
|
70009
70011
|
if (opt.tooltip !== false) {
|
|
70010
70012
|
const tooltip = this.getComponentsByType(ComponentTypeEnum.tooltip)[0];
|
|
70011
70013
|
if (tooltip === null || tooltip === void 0 ? void 0 : tooltip.getVisible()) {
|
|
@@ -98844,7 +98846,7 @@ function xyLayout(data, startRelativeSeries, endRelativeSeries, relativeSeries,
|
|
|
98844
98846
|
const lines = [];
|
|
98845
98847
|
const dataPoints = data.latestData[0] && data.latestData[0].latestData ? data.latestData[0].latestData : data.latestData;
|
|
98846
98848
|
const xAxisHelper = relativeSeries.getXAxisHelper();
|
|
98847
|
-
const yAxisHelper = relativeSeries.
|
|
98849
|
+
const yAxisHelper = relativeSeries.getYAxisHelper();
|
|
98848
98850
|
const xDomain = xAxisHelper.getScale(0).domain();
|
|
98849
98851
|
const yDomain = yAxisHelper.getScale(0).domain();
|
|
98850
98852
|
const isXExpand = includeFullBand && !xAxisHelper.isContinuous && !!xAxisHelper.getBandwidth;
|
|
@@ -105639,11 +105641,6 @@ class ChartResizeZoomPlugin extends BasePlugin {
|
|
|
105639
105641
|
this.type = 'ChartResizeZoomPlugin';
|
|
105640
105642
|
this._zoom = 1;
|
|
105641
105643
|
this._onWheel = (e) => {
|
|
105642
|
-
if (this._beforeWheel) {
|
|
105643
|
-
if (!this._beforeWheel(e) === false) {
|
|
105644
|
-
return;
|
|
105645
|
-
}
|
|
105646
|
-
}
|
|
105647
105644
|
e.preventDefault();
|
|
105648
105645
|
e.stopImmediatePropagation();
|
|
105649
105646
|
const zoom = Math.pow(1.005, -e.deltaY * Math.pow(16, e.deltaMode) * 0.2 * this._rate);
|
|
@@ -105661,7 +105658,6 @@ class ChartResizeZoomPlugin extends BasePlugin {
|
|
|
105661
105658
|
this._minZoom = (_c = spec.min) !== null && _c !== void 0 ? _c : MIN_ZOOM;
|
|
105662
105659
|
this._maxZoom = (_d = spec.max) !== null && _d !== void 0 ? _d : MAX_ZOOM;
|
|
105663
105660
|
this._rate = (_e = spec.rate) !== null && _e !== void 0 ? _e : 0.1;
|
|
105664
|
-
this._beforeWheel = spec.beforeWheel;
|
|
105665
105661
|
this._container = chart.getContainer();
|
|
105666
105662
|
this._triggerEvent = getDefaultTriggerEventByMode(service.globalInstance.getChart().getOption().mode).zoom;
|
|
105667
105663
|
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.3";
|
|
61300
61300
|
|
|
61301
61301
|
const addVChartProperty = (data, op) => {
|
|
61302
61302
|
const context = op.beforeCall();
|
|
@@ -70011,7 +70011,9 @@
|
|
|
70011
70011
|
}
|
|
70012
70012
|
}
|
|
70013
70013
|
});
|
|
70014
|
-
const isUnableValue = isNil$1(value) ||
|
|
70014
|
+
const isUnableValue = isNil$1(value) ||
|
|
70015
|
+
!dimensionInfo ||
|
|
70016
|
+
dimensionInfo.every(d => isDiscrete(d.axis.getScale().type) && (isNil$1(d.index) || d.data.every(_data => _data.datum.length === 0)));
|
|
70015
70017
|
if (opt.tooltip !== false) {
|
|
70016
70018
|
const tooltip = this.getComponentsByType(ComponentTypeEnum.tooltip)[0];
|
|
70017
70019
|
if (tooltip === null || tooltip === void 0 ? void 0 : tooltip.getVisible()) {
|
|
@@ -98850,7 +98852,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
98850
98852
|
const lines = [];
|
|
98851
98853
|
const dataPoints = data.latestData[0] && data.latestData[0].latestData ? data.latestData[0].latestData : data.latestData;
|
|
98852
98854
|
const xAxisHelper = relativeSeries.getXAxisHelper();
|
|
98853
|
-
const yAxisHelper = relativeSeries.
|
|
98855
|
+
const yAxisHelper = relativeSeries.getYAxisHelper();
|
|
98854
98856
|
const xDomain = xAxisHelper.getScale(0).domain();
|
|
98855
98857
|
const yDomain = yAxisHelper.getScale(0).domain();
|
|
98856
98858
|
const isXExpand = includeFullBand && !xAxisHelper.isContinuous && !!xAxisHelper.getBandwidth;
|
|
@@ -105645,11 +105647,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
105645
105647
|
this.type = 'ChartResizeZoomPlugin';
|
|
105646
105648
|
this._zoom = 1;
|
|
105647
105649
|
this._onWheel = (e) => {
|
|
105648
|
-
if (this._beforeWheel) {
|
|
105649
|
-
if (!this._beforeWheel(e) === false) {
|
|
105650
|
-
return;
|
|
105651
|
-
}
|
|
105652
|
-
}
|
|
105653
105650
|
e.preventDefault();
|
|
105654
105651
|
e.stopImmediatePropagation();
|
|
105655
105652
|
const zoom = Math.pow(1.005, -e.deltaY * Math.pow(16, e.deltaMode) * 0.2 * this._rate);
|
|
@@ -105667,7 +105664,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
105667
105664
|
this._minZoom = (_c = spec.min) !== null && _c !== void 0 ? _c : MIN_ZOOM;
|
|
105668
105665
|
this._maxZoom = (_d = spec.max) !== null && _d !== void 0 ? _d : MAX_ZOOM;
|
|
105669
105666
|
this._rate = (_e = spec.rate) !== null && _e !== void 0 ? _e : 0.1;
|
|
105670
|
-
this._beforeWheel = spec.beforeWheel;
|
|
105671
105667
|
this._container = chart.getContainer();
|
|
105672
105668
|
this._triggerEvent = getDefaultTriggerEventByMode(service.globalInstance.getChart().getOption().mode).zoom;
|
|
105673
105669
|
if (this._container && this._triggerEvent) {
|