@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 CHANGED
@@ -631,3 +631,8 @@ const slide = new Slide({
631
631
  * 修复触发器动画同步状态不一致问题
632
632
  * 改善切页动画性能
633
633
  * 修改默认渲染分辨率为 1
634
+
635
+ #### 0.7.0
636
+
637
+ * 支持图片滤镜
638
+ * 切页动画支持更多选项
@@ -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 "".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);
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: false,
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-".concat(task.id));
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;