@leafer/canvas-miniapp 1.0.0-rc.8 → 1.0.0

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.0.0-rc.8",
3
+ "version": "1.0.0",
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.0.0-rc.8",
26
- "@leafer/data": "1.0.0-rc.8",
27
- "@leafer/event": "1.0.0-rc.8",
28
- "@leafer/platform": "1.0.0-rc.8",
29
- "@leafer/debug": "1.0.0-rc.8"
25
+ "@leafer/canvas": "1.0.0",
26
+ "@leafer/data": "1.0.0",
27
+ "@leafer/event": "1.0.0",
28
+ "@leafer/platform": "1.0.0",
29
+ "@leafer/debug": "1.0.0"
30
30
  },
31
31
  "devDependencies": {
32
- "@leafer/interface": "1.0.0-rc.8"
32
+ "@leafer/interface": "1.0.0"
33
33
  }
34
34
  }
@@ -61,8 +61,8 @@ export class LeaferCanvas extends LeaferCanvasBase {
61
61
  public updateViewSize(): void {
62
62
  const { width, height, pixelRatio } = this
63
63
 
64
- this.view.width = width * pixelRatio
65
- this.view.height = height * pixelRatio
64
+ this.view.width = Math.ceil(width * pixelRatio)
65
+ this.view.height = Math.ceil(height * pixelRatio)
66
66
  }
67
67
 
68
68
  public updateClientBounds(callback?: IFunction): void {