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.
- package/dist/index.mjs +4 -1
- 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
|
};
|