canvas-editor-engine 2.1.30 → 2.1.31

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.
Files changed (2) hide show
  1. package/dist/index.mjs +4 -1
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -2088,7 +2088,10 @@ var ResizeService = function() {
2088
2088
  }
2089
2089
  ResizeService.prototype.resize = function(ctx, size) {
2090
2090
  var currentRender = this.throughHistoryService.current();
2091
- var state = currentRender.stateValue;
2091
+ var state = currentRender === null || currentRender === void 0 ? void 0 : currentRender.stateValue;
2092
+ if (!state) {
2093
+ return console.warn("No state");
2094
+ }
2092
2095
  this.appConfig.CANVAS_SIZE = size;
2093
2096
  this.updateCanvas(ctx, state);
2094
2097
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "canvas-editor-engine",
3
- "version": "2.1.30",
3
+ "version": "2.1.31",
4
4
  "description": "CanvasEditorEngine library, use: [typescript] [canvas]",
5
5
  "main": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",