@leafer/canvas-web 1.0.5 → 1.0.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leafer/canvas-web",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "@leafer/canvas-web",
5
5
  "author": "Chao (Leafer) Wan",
6
6
  "license": "MIT",
@@ -22,9 +22,9 @@
22
22
  "leaferjs"
23
23
  ],
24
24
  "dependencies": {
25
- "@leafer/core": "1.0.5"
25
+ "@leafer/core": "1.0.6"
26
26
  },
27
27
  "devDependencies": {
28
- "@leafer/interface": "1.0.5"
28
+ "@leafer/interface": "1.0.6"
29
29
  }
30
30
  }
@@ -198,7 +198,7 @@ export class LeaferCanvas extends LeaferCanvasBase {
198
198
  const oldSize = {} as IScreenSizeData
199
199
  DataHelper.copyAttrs(oldSize, this, canvasSizeAttrs)
200
200
  this.resize(size)
201
- if (this.width !== undefined) this.resizeListener(new ResizeEvent(size, oldSize))
201
+ if (this.resizeListener && this.width !== undefined) this.resizeListener(new ResizeEvent(size, oldSize))
202
202
  }
203
203
 
204
204