@leafer/canvas 1.9.0 → 1.9.1

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",
3
- "version": "1.9.0",
3
+ "version": "1.9.1",
4
4
  "description": "@leafer/canvas",
5
5
  "author": "Chao (Leafer) Wan",
6
6
  "license": "MIT",
@@ -22,15 +22,15 @@
22
22
  "leaferjs"
23
23
  ],
24
24
  "dependencies": {
25
- "@leafer/file": "1.9.0",
26
- "@leafer/list": "1.9.0",
27
- "@leafer/math": "1.9.0",
28
- "@leafer/data": "1.9.0",
29
- "@leafer/path": "1.9.0",
30
- "@leafer/debug": "1.9.0",
31
- "@leafer/platform": "1.9.0"
25
+ "@leafer/file": "1.9.1",
26
+ "@leafer/list": "1.9.1",
27
+ "@leafer/math": "1.9.1",
28
+ "@leafer/data": "1.9.1",
29
+ "@leafer/path": "1.9.1",
30
+ "@leafer/debug": "1.9.1",
31
+ "@leafer/platform": "1.9.1"
32
32
  },
33
33
  "devDependencies": {
34
- "@leafer/interface": "1.9.0"
34
+ "@leafer/interface": "1.9.1"
35
35
  }
36
36
  }
@@ -61,7 +61,7 @@ export class LeaferCanvasBase extends Canvas implements ILeaferCanvas {
61
61
  const { width, height, pixelRatio } = config
62
62
  this.autoLayout = !width || !height
63
63
 
64
- this.size.pixelRatio = pixelRatio | Platform.devicePixelRatio
64
+ this.size.pixelRatio = pixelRatio || Platform.devicePixelRatio
65
65
  this.config = config
66
66
 
67
67
  this.init()