@leafer/canvas 1.9.7 → 1.9.8

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.7",
3
+ "version": "1.9.8",
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.7",
26
- "@leafer/list": "1.9.7",
27
- "@leafer/math": "1.9.7",
28
- "@leafer/data": "1.9.7",
29
- "@leafer/path": "1.9.7",
30
- "@leafer/debug": "1.9.7",
31
- "@leafer/platform": "1.9.7"
25
+ "@leafer/file": "1.9.8",
26
+ "@leafer/list": "1.9.8",
27
+ "@leafer/math": "1.9.8",
28
+ "@leafer/data": "1.9.8",
29
+ "@leafer/path": "1.9.8",
30
+ "@leafer/debug": "1.9.8",
31
+ "@leafer/platform": "1.9.8"
32
32
  },
33
33
  "devDependencies": {
34
- "@leafer/interface": "1.9.7"
34
+ "@leafer/interface": "1.9.8"
35
35
  }
36
36
  }
@@ -138,7 +138,7 @@ export class LeaferCanvasBase extends Canvas implements ILeaferCanvas {
138
138
  if (parentMatrix) multiplyParent(matrix, parentMatrix, w)
139
139
  pixelScale(matrix, pixelRatio, w)
140
140
 
141
- if (pixelSnap) {
141
+ if (pixelSnap && !matrix.ignorePixelSnap) {
142
142
  if (matrix.half && (matrix.half * pixelRatio) % 2) w.e = round(w.e - 0.5) + 0.5, w.f = round(w.f - 0.5) + 0.5
143
143
  else w.e = round(w.e), w.f = round(w.f)
144
144
  }