@netless/slide 1.4.2 → 1.4.4
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/README.md +4 -0
- package/lib/AliTrackLogger.js +1 -1
- package/lib/PlayerController.js +1 -1
- package/lib/RenderingTaskManager.js +2 -2
- package/lib/Slide.d.ts +5 -2
- package/lib/Slide.js +1 -1
- package/lib/global.js +2 -1
- package/package.json +2 -2
package/README.md
CHANGED
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 (_) try {
|
|
16
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) 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]) {
|
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 ((_a = this.player.view) === null || _a === void 0 ? void 0 : _a.width
|
|
44
|
+
return "".concat((_a = this.player.view) === null || _a === void 0 ? void 0 : _a.width, "*").concat((_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 (_) try {
|
|
16
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) 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-".concat(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
|
@@ -443,6 +443,8 @@ export declare class Slide extends Slide_base {
|
|
|
443
443
|
private logger;
|
|
444
444
|
private _dispatchIncrId;
|
|
445
445
|
private _receiveIncrId;
|
|
446
|
+
private resizeView;
|
|
447
|
+
private handleViewClick;
|
|
446
448
|
static trackLogger: AliTrackLogger;
|
|
447
449
|
private get dispatchIncrId();
|
|
448
450
|
constructor(initConfig: ISlideConfig);
|
|
@@ -456,7 +458,7 @@ export declare class Slide extends Slide_base {
|
|
|
456
458
|
static handleLogDownload: () => Promise<void>;
|
|
457
459
|
private initPlayer;
|
|
458
460
|
private userInputHandle;
|
|
459
|
-
private
|
|
461
|
+
private _handleViewClick;
|
|
460
462
|
private handleViewTouchStart;
|
|
461
463
|
private handleViewTouchEnd;
|
|
462
464
|
private createController;
|
|
@@ -469,7 +471,7 @@ export declare class Slide extends Slide_base {
|
|
|
469
471
|
* @param height Height value that needs to be updated, unit px.
|
|
470
472
|
*/
|
|
471
473
|
updateFixedFrameSize(width: number, height: number, callback?: () => void): void;
|
|
472
|
-
private
|
|
474
|
+
private _resizeView;
|
|
473
475
|
private receiveSyncHandler;
|
|
474
476
|
/**
|
|
475
477
|
* Set the state of the entire slide, the slide will update the screen with the incoming state.
|
|
@@ -564,6 +566,7 @@ export declare class Slide extends Slide_base {
|
|
|
564
566
|
* @param url Resource URL prefix
|
|
565
567
|
*/
|
|
566
568
|
setResource(taskId: string, url: string): void;
|
|
569
|
+
private flushDebounce;
|
|
567
570
|
private _renderSlide;
|
|
568
571
|
private handlePrevSlide;
|
|
569
572
|
private handleNextSlide;
|