@visactor/vrender 0.13.8-alpha.10 → 0.13.8-alpha.12
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/cjs/common/utils.d.ts +2 -14
- package/cjs/common/utils.js +1 -21
- package/cjs/common/utils.js.map +1 -1
- package/cjs/core/contributions/env/feishu-contribution.js +3 -3
- package/cjs/core/contributions/env/feishu-contribution.js.map +1 -1
- package/cjs/core/contributions/env/lynx-contribution.js +3 -3
- package/cjs/core/contributions/env/lynx-contribution.js.map +1 -1
- package/cjs/core/contributions/env/node-contribution.js +3 -3
- package/cjs/core/contributions/env/node-contribution.js.map +1 -1
- package/cjs/core/contributions/env/wx-contribution.js +3 -3
- package/cjs/core/contributions/env/wx-contribution.js.map +1 -1
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/dist/index.js +9 -42
- package/dist/index.min.js +1 -1
- package/es/common/utils.d.ts +2 -14
- package/es/common/utils.js +0 -22
- package/es/common/utils.js.map +1 -1
- package/es/core/contributions/env/feishu-contribution.js +2 -4
- package/es/core/contributions/env/feishu-contribution.js.map +1 -1
- package/es/core/contributions/env/lynx-contribution.js +2 -4
- package/es/core/contributions/env/lynx-contribution.js.map +1 -1
- package/es/core/contributions/env/node-contribution.js +2 -4
- package/es/core/contributions/env/node-contribution.js.map +1 -1
- package/es/core/contributions/env/wx-contribution.js +2 -4
- package/es/core/contributions/env/wx-contribution.js.map +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/es/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -14275,37 +14275,6 @@
|
|
|
14275
14275
|
}
|
|
14276
14276
|
return attr[key];
|
|
14277
14277
|
}
|
|
14278
|
-
class RafBasedSTO {
|
|
14279
|
-
static TimeOut = 1000 / 60;
|
|
14280
|
-
durations;
|
|
14281
|
-
timeout;
|
|
14282
|
-
lastDate;
|
|
14283
|
-
durationsListThreshold;
|
|
14284
|
-
constructor() {
|
|
14285
|
-
this.durations = [];
|
|
14286
|
-
this.timeout = RafBasedSTO.TimeOut;
|
|
14287
|
-
this.lastDate = 0;
|
|
14288
|
-
this.durationsListThreshold = 30;
|
|
14289
|
-
}
|
|
14290
|
-
call(cb) {
|
|
14291
|
-
this.lastDate = Date.now();
|
|
14292
|
-
return setTimeout(() => {
|
|
14293
|
-
this.appendDuration(Date.now() - this.lastDate);
|
|
14294
|
-
cb(0);
|
|
14295
|
-
}, this.timeout, true);
|
|
14296
|
-
}
|
|
14297
|
-
clear(h) {
|
|
14298
|
-
clearTimeout(h);
|
|
14299
|
-
}
|
|
14300
|
-
appendDuration(d) {
|
|
14301
|
-
this.durations.push(d);
|
|
14302
|
-
if (this.durations.length > this.durationsListThreshold) {
|
|
14303
|
-
this.durations.shift();
|
|
14304
|
-
}
|
|
14305
|
-
this.timeout = Math.max(this.durations.reduce((a, b) => a + b, 0) / this.durations.length, 1000 / 60);
|
|
14306
|
-
}
|
|
14307
|
-
}
|
|
14308
|
-
const rafBasedSto = new RafBasedSTO();
|
|
14309
14278
|
|
|
14310
14279
|
class IncreaseCount extends ACustomAnimate {
|
|
14311
14280
|
fromNumber;
|
|
@@ -29435,12 +29404,12 @@
|
|
|
29435
29404
|
}
|
|
29436
29405
|
getRequestAnimationFrame() {
|
|
29437
29406
|
return function (callback) {
|
|
29438
|
-
return
|
|
29407
|
+
return setTimeout(callback, 1000 / 60, true);
|
|
29439
29408
|
};
|
|
29440
29409
|
}
|
|
29441
29410
|
getCancelAnimationFrame() {
|
|
29442
29411
|
return (h) => {
|
|
29443
|
-
|
|
29412
|
+
clearTimeout(h);
|
|
29444
29413
|
};
|
|
29445
29414
|
}
|
|
29446
29415
|
addEventListener(type, listener, options) {
|
|
@@ -29752,12 +29721,12 @@
|
|
|
29752
29721
|
}
|
|
29753
29722
|
getRequestAnimationFrame() {
|
|
29754
29723
|
return function (callback) {
|
|
29755
|
-
return
|
|
29724
|
+
return setTimeout(callback, 1000 / 60, true);
|
|
29756
29725
|
};
|
|
29757
29726
|
}
|
|
29758
29727
|
getCancelAnimationFrame() {
|
|
29759
29728
|
return (h) => {
|
|
29760
|
-
|
|
29729
|
+
clearTimeout(h);
|
|
29761
29730
|
};
|
|
29762
29731
|
}
|
|
29763
29732
|
addEventListener(type, listener, options) {
|
|
@@ -29878,12 +29847,12 @@
|
|
|
29878
29847
|
}
|
|
29879
29848
|
getRequestAnimationFrame() {
|
|
29880
29849
|
return function (callback) {
|
|
29881
|
-
return
|
|
29850
|
+
return setTimeout(callback, 1000 / 60, true);
|
|
29882
29851
|
};
|
|
29883
29852
|
}
|
|
29884
29853
|
getCancelAnimationFrame() {
|
|
29885
29854
|
return (h) => {
|
|
29886
|
-
|
|
29855
|
+
clearTimeout(h);
|
|
29887
29856
|
};
|
|
29888
29857
|
}
|
|
29889
29858
|
addEventListener(type, listener, options) {
|
|
@@ -29987,12 +29956,12 @@
|
|
|
29987
29956
|
}
|
|
29988
29957
|
getRequestAnimationFrame() {
|
|
29989
29958
|
return function (callback) {
|
|
29990
|
-
return
|
|
29959
|
+
return setTimeout(callback, 1000 / 60, true);
|
|
29991
29960
|
};
|
|
29992
29961
|
}
|
|
29993
29962
|
getCancelAnimationFrame() {
|
|
29994
29963
|
return (h) => {
|
|
29995
|
-
|
|
29964
|
+
clearTimeout(h);
|
|
29996
29965
|
};
|
|
29997
29966
|
}
|
|
29998
29967
|
addEventListener(type, listener, options) {
|
|
@@ -36374,7 +36343,7 @@
|
|
|
36374
36343
|
'rect'
|
|
36375
36344
|
];
|
|
36376
36345
|
|
|
36377
|
-
const version = "0.13.8-alpha.
|
|
36346
|
+
const version = "0.13.8-alpha.12";
|
|
36378
36347
|
|
|
36379
36348
|
exports.ACustomAnimate = ACustomAnimate;
|
|
36380
36349
|
exports.ARC3D_NUMBER_TYPE = ARC3D_NUMBER_TYPE;
|
|
@@ -36515,7 +36484,6 @@
|
|
|
36515
36484
|
exports.RECT3D_NUMBER_TYPE = RECT3D_NUMBER_TYPE;
|
|
36516
36485
|
exports.RECT_NUMBER_TYPE = RECT_NUMBER_TYPE;
|
|
36517
36486
|
exports.RICHTEXT_NUMBER_TYPE = RICHTEXT_NUMBER_TYPE;
|
|
36518
|
-
exports.RafBasedSTO = RafBasedSTO;
|
|
36519
36487
|
exports.Rect = Rect;
|
|
36520
36488
|
exports.Rect3DRender = Rect3DRender;
|
|
36521
36489
|
exports.Rect3d = Rect3d;
|
|
@@ -36658,7 +36626,6 @@
|
|
|
36658
36626
|
exports.pointInterpolationHighPerformance = pointInterpolationHighPerformance;
|
|
36659
36627
|
exports.pointsEqual = pointsEqual;
|
|
36660
36628
|
exports.pointsInterpolation = pointsInterpolation;
|
|
36661
|
-
exports.rafBasedSto = rafBasedSto;
|
|
36662
36629
|
exports.rectFillVisible = rectFillVisible;
|
|
36663
36630
|
exports.rectStrokeVisible = rectStrokeVisible;
|
|
36664
36631
|
exports.recursiveCallBinarySplit = recursiveCallBinarySplit;
|