@netless/slide 0.6.5 → 0.7.0
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 +5 -0
- package/lib/PlayerController.js +2 -2
- package/lib/RenderingTaskManager.js +1 -1
- package/lib/Slide.js +30 -23
- package/package.json +3 -10
package/README.md
CHANGED
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,
|
|
@@ -125,7 +125,7 @@ var PlayerController = /** @class */ (function () {
|
|
|
125
125
|
PlayerController.prototype.createControllerGUI = function () {
|
|
126
126
|
var gui = new GUI({
|
|
127
127
|
autoPlace: true,
|
|
128
|
-
closed:
|
|
128
|
+
closed: true,
|
|
129
129
|
});
|
|
130
130
|
gui.domElement.style.opacity = ".6";
|
|
131
131
|
gui.domElement.style.transformOrigin = "100% 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;
|