@netless/slide 1.4.21 → 1.4.22
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/lib/AliTrackLogger.js +1 -1
- package/lib/LocalFileSystem.d.ts +0 -0
- package/lib/LocalFileSystem.js +1 -0
- package/lib/PlayerController.js +1 -1
- package/lib/RenderingTaskManager.js +2 -2
- package/lib/Slide.d.ts +10 -0
- package/lib/Slide.js +2 -2
- package/lib/StateDriveSlide.d.ts +237 -0
- package/lib/StateDriveSlide.js +664 -0
- package/lib/SyncEventQueue.d.ts +13 -0
- package/lib/SyncEventQueue.js +83 -0
- package/lib/Ticker.d.ts +2 -0
- package/lib/Ticker.js +2 -0
- package/lib/global.js +1 -1
- package/lib/waitUntil.d.ts +2 -0
- package/lib/waitUntil.js +56 -0
- package/package.json +2 -2
- package/lib/Slide.js.map +0 -1
- package/lib/typeGuard/SyncEvent.d.ts +0 -10
- package/lib/typeGuard/SyncEvent.js +0 -27
package/lib/AliTrackLogger.js
CHANGED
|
@@ -13,7 +13,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
13
13
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
14
14
|
function step(op) {
|
|
15
15
|
if (f) throw new TypeError("Generator is already executing.");
|
|
16
|
-
while (
|
|
16
|
+
while (_) try {
|
|
17
17
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
18
18
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
19
19
|
switch (op[0]) {
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
package/lib/PlayerController.js
CHANGED
|
@@ -41,7 +41,7 @@ var PlayerConfig = /** @class */ (function () {
|
|
|
41
41
|
Object.defineProperty(PlayerConfig.prototype, "size", {
|
|
42
42
|
get: function () {
|
|
43
43
|
var _a, _b;
|
|
44
|
-
return
|
|
44
|
+
return ((_a = this.player.view) === null || _a === void 0 ? void 0 : _a.width) + "*" + ((_b = this.player.view) === null || _b === void 0 ? void 0 : _b.height);
|
|
45
45
|
},
|
|
46
46
|
set: function (_) { },
|
|
47
47
|
enumerable: false,
|
|
@@ -13,7 +13,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
13
13
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
14
14
|
function step(op) {
|
|
15
15
|
if (f) throw new TypeError("Generator is already executing.");
|
|
16
|
-
while (
|
|
16
|
+
while (_) try {
|
|
17
17
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
18
18
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
19
19
|
switch (op[0]) {
|
|
@@ -95,7 +95,7 @@ var RenderingTaskManager = /** @class */ (function () {
|
|
|
95
95
|
_this.tasks.splice(selfIndex, 1);
|
|
96
96
|
_this.replaceIdleTask();
|
|
97
97
|
}
|
|
98
|
-
_this.eventHub.emit("task-end-"
|
|
98
|
+
_this.eventHub.emit("task-end-" + task.id);
|
|
99
99
|
});
|
|
100
100
|
this.eventHub.on("task-error", function (_a) {
|
|
101
101
|
var task = _a.task;
|
package/lib/Slide.d.ts
CHANGED
|
@@ -166,6 +166,15 @@ export interface ISlideRenderOptions {
|
|
|
166
166
|
* it will use different logic to play page transition animations without screen flickering, but the response time for page transitions will be slower by 200 to 1000 ms.
|
|
167
167
|
*/
|
|
168
168
|
enableNvidiaDetect?: boolean;
|
|
169
|
+
/**
|
|
170
|
+
* 切页动画截图分辨率等级
|
|
171
|
+
* [0] 640 * 360
|
|
172
|
+
* [1] 960 * 540;
|
|
173
|
+
* [2] Normal 1280 * 720; --- default setting for mobile devices.
|
|
174
|
+
* [3] HD 1920 * 1080;
|
|
175
|
+
* [4] 3K 3200 × 1800, greater than 4 is calculated as 4; --- default setting for PC devices.
|
|
176
|
+
*/
|
|
177
|
+
transitionResolutionLevel?: number;
|
|
169
178
|
}
|
|
170
179
|
export interface INavigatorDelegate {
|
|
171
180
|
gotoPage?: (index: number) => void;
|
|
@@ -636,6 +645,7 @@ export declare class Slide extends Slide_base {
|
|
|
636
645
|
private _doDestroy;
|
|
637
646
|
private waitLoadEnd;
|
|
638
647
|
preload(index: number): Promise<void>;
|
|
648
|
+
preloadResource(index: number): Promise<void>;
|
|
639
649
|
/**
|
|
640
650
|
* Destruction method.
|
|
641
651
|
*/
|