@leafer/canvas-miniapp 1.9.4 → 1.9.5

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-miniapp",
3
- "version": "1.9.4",
3
+ "version": "1.9.5",
4
4
  "description": "@leafer/canvas-miniapp",
5
5
  "author": "Chao (Leafer) Wan",
6
6
  "license": "MIT",
@@ -22,13 +22,13 @@
22
22
  "leaferjs"
23
23
  ],
24
24
  "dependencies": {
25
- "@leafer/canvas": "1.9.4",
26
- "@leafer/data": "1.9.4",
27
- "@leafer/event": "1.9.4",
28
- "@leafer/platform": "1.9.4",
29
- "@leafer/debug": "1.9.4"
25
+ "@leafer/canvas": "1.9.5",
26
+ "@leafer/data": "1.9.5",
27
+ "@leafer/event": "1.9.5",
28
+ "@leafer/platform": "1.9.5",
29
+ "@leafer/debug": "1.9.5"
30
30
  },
31
31
  "devDependencies": {
32
- "@leafer/interface": "1.9.4"
32
+ "@leafer/interface": "1.9.5"
33
33
  }
34
34
  }
@@ -67,6 +67,8 @@ export class LeaferCanvas extends LeaferCanvasBase {
67
67
  }
68
68
 
69
69
  public updateViewSize(): void {
70
+ if (this.unreal) return
71
+
70
72
  const { width, height, pixelRatio } = this
71
73
 
72
74
  this.view.width = Math.ceil(width * pixelRatio)
@@ -82,6 +84,8 @@ export class LeaferCanvas extends LeaferCanvasBase {
82
84
 
83
85
 
84
86
  public startAutoLayout(autoBounds: IAutoBounds, listener: IResizeEventListener): void {
87
+ if (this.resizeListener) return
88
+
85
89
  this.resizeListener = listener
86
90
  if (autoBounds) {
87
91
  this.checkSize = this.checkSize.bind(this)