@visactor/vchart 1.13.26 → 1.13.28
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 +9 -10
- package/build/index.js +9 -10
- 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/series/liquid/liquid.js +3 -1
- package/cjs/series/liquid/liquid.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/series/liquid/liquid.js +3 -1
- package/esm/series/liquid/liquid.js.map +1 -1
- package/package.json +16 -16
package/build/index.es.js
CHANGED
|
@@ -28889,6 +28889,8 @@ let ng = !1;
|
|
|
28889
28889
|
try {
|
|
28890
28890
|
ng = !!lynx.createCanvasNG;
|
|
28891
28891
|
} catch (err) {}
|
|
28892
|
+
const requestAnimationFrameBasedSTO = callback => rafBasedSto.call(callback),
|
|
28893
|
+
cancelAnimationFrameBasedSTO = handle => rafBasedSto.clear(handle);
|
|
28892
28894
|
function makeUpCanvas$3(domref, canvasIdLists, canvasMap, freeCanvasIdx, freeCanvasList, offscreen, pixelRatio) {
|
|
28893
28895
|
const dpr = null != pixelRatio ? pixelRatio : SystemInfo.pixelRatio;
|
|
28894
28896
|
if (canvasIdLists.forEach((id, i) => {
|
|
@@ -28919,7 +28921,7 @@ function createImageElement(src, isSvg = !1) {
|
|
|
28919
28921
|
}
|
|
28920
28922
|
let LynxEnvContribution = class extends BaseEnvContribution {
|
|
28921
28923
|
constructor() {
|
|
28922
|
-
super(), this.type = "lynx", this.supportEvent = !0, this.canvasMap = new Map(), this.freeCanvasList = [], this.canvasIdx = 0, this.supportsTouchEvents = !0;
|
|
28924
|
+
super(), this.type = "lynx", this.supportEvent = !0, this.canvasMap = new Map(), this.freeCanvasList = [], this.canvasIdx = 0, this.requestAnimationFrame = requestAnimationFrameBasedSTO, this.cancelAnimationFrame = cancelAnimationFrameBasedSTO, this.supportsTouchEvents = !0;
|
|
28923
28925
|
try {
|
|
28924
28926
|
this.supportsPointerEvents = !!globalThis.PointerEvent, this.supportsMouseEvents = !!globalThis.MouseEvent;
|
|
28925
28927
|
} catch (err) {
|
|
@@ -28928,7 +28930,7 @@ let LynxEnvContribution = class extends BaseEnvContribution {
|
|
|
28928
28930
|
this.applyStyles = !0;
|
|
28929
28931
|
}
|
|
28930
28932
|
configure(service, params) {
|
|
28931
|
-
service.env === this.type && (service.setActiveEnvContribution(this), makeUpCanvas$3(params.domref, params.canvasIdLists, this.canvasMap, params.freeCanvasIdx, this.freeCanvasList, !!params.offscreen, params.pixelRatio));
|
|
28933
|
+
service.env === this.type && (service.setActiveEnvContribution(this), makeUpCanvas$3(params.domref, params.canvasIdLists, this.canvasMap, params.freeCanvasIdx, this.freeCanvasList, !!params.offscreen, params.pixelRatio), "function" == typeof lynx.requestAnimationFrame && "function" == typeof lynx.cancelAnimationFrame ? (this.requestAnimationFrame = lynx.requestAnimationFrame.bind(lynx), this.cancelAnimationFrame = lynx.cancelAnimationFrame.bind(lynx)) : (this.requestAnimationFrame = requestAnimationFrameBasedSTO, this.cancelAnimationFrame = cancelAnimationFrameBasedSTO));
|
|
28932
28934
|
}
|
|
28933
28935
|
getDynamicCanvasCount() {
|
|
28934
28936
|
return this.freeCanvasList.length;
|
|
@@ -28958,14 +28960,10 @@ let LynxEnvContribution = class extends BaseEnvContribution {
|
|
|
28958
28960
|
return SystemInfo.pixelRatio;
|
|
28959
28961
|
}
|
|
28960
28962
|
getRequestAnimationFrame() {
|
|
28961
|
-
return
|
|
28962
|
-
return rafBasedSto.call(callback);
|
|
28963
|
-
};
|
|
28963
|
+
return this.requestAnimationFrame;
|
|
28964
28964
|
}
|
|
28965
28965
|
getCancelAnimationFrame() {
|
|
28966
|
-
return
|
|
28967
|
-
rafBasedSto.clear(h);
|
|
28968
|
-
};
|
|
28966
|
+
return this.cancelAnimationFrame;
|
|
28969
28967
|
}
|
|
28970
28968
|
mapToCanvasPoint(event) {
|
|
28971
28969
|
var _a;
|
|
@@ -63811,7 +63809,7 @@ const registerVChartCore = () => {
|
|
|
63811
63809
|
};
|
|
63812
63810
|
registerVChartCore();
|
|
63813
63811
|
|
|
63814
|
-
const version = "1.13.
|
|
63812
|
+
const version = "1.13.27";
|
|
63815
63813
|
|
|
63816
63814
|
const addVChartProperty = (data, op) => {
|
|
63817
63815
|
const context = op.beforeCall();
|
|
@@ -88893,7 +88891,8 @@ class LiquidSeries extends BaseSeries {
|
|
|
88893
88891
|
}
|
|
88894
88892
|
viewDataUpdate(d) {
|
|
88895
88893
|
super.viewDataUpdate(d);
|
|
88896
|
-
|
|
88894
|
+
const heightRatio = max$1(...this._data.getLatestData().map((d) => d[this._valueField]));
|
|
88895
|
+
this._heightRatio = heightRatio > 1 ? 1 : heightRatio;
|
|
88897
88896
|
}
|
|
88898
88897
|
initMark() {
|
|
88899
88898
|
this._initLiquidOutlineMark();
|
package/build/index.js
CHANGED
|
@@ -28895,6 +28895,8 @@
|
|
|
28895
28895
|
try {
|
|
28896
28896
|
ng = !!lynx.createCanvasNG;
|
|
28897
28897
|
} catch (err) {}
|
|
28898
|
+
const requestAnimationFrameBasedSTO = callback => rafBasedSto.call(callback),
|
|
28899
|
+
cancelAnimationFrameBasedSTO = handle => rafBasedSto.clear(handle);
|
|
28898
28900
|
function makeUpCanvas$3(domref, canvasIdLists, canvasMap, freeCanvasIdx, freeCanvasList, offscreen, pixelRatio) {
|
|
28899
28901
|
const dpr = null != pixelRatio ? pixelRatio : SystemInfo.pixelRatio;
|
|
28900
28902
|
if (canvasIdLists.forEach((id, i) => {
|
|
@@ -28925,7 +28927,7 @@
|
|
|
28925
28927
|
}
|
|
28926
28928
|
let LynxEnvContribution = class extends BaseEnvContribution {
|
|
28927
28929
|
constructor() {
|
|
28928
|
-
super(), this.type = "lynx", this.supportEvent = !0, this.canvasMap = new Map(), this.freeCanvasList = [], this.canvasIdx = 0, this.supportsTouchEvents = !0;
|
|
28930
|
+
super(), this.type = "lynx", this.supportEvent = !0, this.canvasMap = new Map(), this.freeCanvasList = [], this.canvasIdx = 0, this.requestAnimationFrame = requestAnimationFrameBasedSTO, this.cancelAnimationFrame = cancelAnimationFrameBasedSTO, this.supportsTouchEvents = !0;
|
|
28929
28931
|
try {
|
|
28930
28932
|
this.supportsPointerEvents = !!globalThis.PointerEvent, this.supportsMouseEvents = !!globalThis.MouseEvent;
|
|
28931
28933
|
} catch (err) {
|
|
@@ -28934,7 +28936,7 @@
|
|
|
28934
28936
|
this.applyStyles = !0;
|
|
28935
28937
|
}
|
|
28936
28938
|
configure(service, params) {
|
|
28937
|
-
service.env === this.type && (service.setActiveEnvContribution(this), makeUpCanvas$3(params.domref, params.canvasIdLists, this.canvasMap, params.freeCanvasIdx, this.freeCanvasList, !!params.offscreen, params.pixelRatio));
|
|
28939
|
+
service.env === this.type && (service.setActiveEnvContribution(this), makeUpCanvas$3(params.domref, params.canvasIdLists, this.canvasMap, params.freeCanvasIdx, this.freeCanvasList, !!params.offscreen, params.pixelRatio), "function" == typeof lynx.requestAnimationFrame && "function" == typeof lynx.cancelAnimationFrame ? (this.requestAnimationFrame = lynx.requestAnimationFrame.bind(lynx), this.cancelAnimationFrame = lynx.cancelAnimationFrame.bind(lynx)) : (this.requestAnimationFrame = requestAnimationFrameBasedSTO, this.cancelAnimationFrame = cancelAnimationFrameBasedSTO));
|
|
28938
28940
|
}
|
|
28939
28941
|
getDynamicCanvasCount() {
|
|
28940
28942
|
return this.freeCanvasList.length;
|
|
@@ -28964,14 +28966,10 @@
|
|
|
28964
28966
|
return SystemInfo.pixelRatio;
|
|
28965
28967
|
}
|
|
28966
28968
|
getRequestAnimationFrame() {
|
|
28967
|
-
return
|
|
28968
|
-
return rafBasedSto.call(callback);
|
|
28969
|
-
};
|
|
28969
|
+
return this.requestAnimationFrame;
|
|
28970
28970
|
}
|
|
28971
28971
|
getCancelAnimationFrame() {
|
|
28972
|
-
return
|
|
28973
|
-
rafBasedSto.clear(h);
|
|
28974
|
-
};
|
|
28972
|
+
return this.cancelAnimationFrame;
|
|
28975
28973
|
}
|
|
28976
28974
|
mapToCanvasPoint(event) {
|
|
28977
28975
|
var _a;
|
|
@@ -63817,7 +63815,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
63817
63815
|
};
|
|
63818
63816
|
registerVChartCore();
|
|
63819
63817
|
|
|
63820
|
-
const version = "1.13.
|
|
63818
|
+
const version = "1.13.27";
|
|
63821
63819
|
|
|
63822
63820
|
const addVChartProperty = (data, op) => {
|
|
63823
63821
|
const context = op.beforeCall();
|
|
@@ -88899,7 +88897,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
88899
88897
|
}
|
|
88900
88898
|
viewDataUpdate(d) {
|
|
88901
88899
|
super.viewDataUpdate(d);
|
|
88902
|
-
|
|
88900
|
+
const heightRatio = max$1(...this._data.getLatestData().map((d) => d[this._valueField]));
|
|
88901
|
+
this._heightRatio = heightRatio > 1 ? 1 : heightRatio;
|
|
88903
88902
|
}
|
|
88904
88903
|
initMark() {
|
|
88905
88904
|
this._initLiquidOutlineMark();
|