@visactor/vstory 0.0.14 → 0.0.15

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/dist/index.js CHANGED
@@ -25347,10 +25347,8 @@
25347
25347
  _classCallCheck(this, StoryCanvas);
25348
25348
  this._story = story, this._container = params.container;
25349
25349
  var canvas = params.canvas,
25350
- _params$width = params.width,
25351
- width = _params$width === void 0 ? 500 : _params$width,
25352
- _params$height = params.height,
25353
- height = _params$height === void 0 ? 500 : _params$height,
25350
+ width = params.width,
25351
+ height = params.height,
25354
25352
  _params$background = params.background,
25355
25353
  background = _params$background === void 0 ? "transparent" : _params$background,
25356
25354
  _params$layerBackgrou = params.layerBackground,
@@ -25361,7 +25359,7 @@
25361
25359
  scaleX = _params$scaleX === void 0 ? 1 : _params$scaleX,
25362
25360
  _params$scaleY = params.scaleY,
25363
25361
  scaleY = _params$scaleY === void 0 ? 1 : _params$scaleY;
25364
- this._container && this._initCanvasByContainer(width, height, dpr), params.canvas && this._initCanvasByCanvas(canvas, width, height, dpr), this._stage.background = background, this._stage.defaultLayer.setAttributes({
25362
+ this._container && this._initCanvasByContainer(width, height, dpr), params.canvas && this._initCanvasByCanvas(canvas, null != width ? width : 500, null != height ? height : 500, dpr), this._stage.background = background, this._stage.defaultLayer.setAttributes({
25365
25363
  background: layerBackground
25366
25364
  }), this._stage.defaultLayer.scale(scaleX, scaleY);
25367
25365
  }
@@ -26061,7 +26059,7 @@
26061
26059
  }, {
26062
26060
  key: "release",
26063
26061
  value: function release() {
26064
- this._actionProcessor.release(), this._scheduler.release(), this._ticker.removeListener("tick", this.handlerTick), this._ticker = null, globalTickerStore.releaseGlobalTicker();
26062
+ this._actionProcessor.release(), this._scheduler.release(), this._ticker.removeListener("tick", this.handlerTick), this._ticker = null;
26065
26063
  }
26066
26064
  }]);
26067
26065
  }();