@leafer/canvas
Advanced tools
+9
-9
| { | ||
| "name": "@leafer/canvas", | ||
| "version": "1.9.6", | ||
| "version": "1.9.7", | ||
| "description": "@leafer/canvas", | ||
@@ -25,13 +25,13 @@ "author": "Chao (Leafer) Wan", | ||
| "dependencies": { | ||
| "@leafer/file": "1.9.6", | ||
| "@leafer/list": "1.9.6", | ||
| "@leafer/math": "1.9.6", | ||
| "@leafer/data": "1.9.6", | ||
| "@leafer/path": "1.9.6", | ||
| "@leafer/debug": "1.9.6", | ||
| "@leafer/platform": "1.9.6" | ||
| "@leafer/file": "1.9.7", | ||
| "@leafer/list": "1.9.7", | ||
| "@leafer/math": "1.9.7", | ||
| "@leafer/data": "1.9.7", | ||
| "@leafer/path": "1.9.7", | ||
| "@leafer/debug": "1.9.7", | ||
| "@leafer/platform": "1.9.7" | ||
| }, | ||
| "devDependencies": { | ||
| "@leafer/interface": "1.9.6" | ||
| "@leafer/interface": "1.9.7" | ||
| } | ||
| } |
@@ -9,3 +9,3 @@ import { IBounds, ILeaferCanvas, ICanvasStrokeOptions, ILeaferCanvasConfig, IWindingRuleData, IExportOptions, IMatrixData, IBoundsData, IAutoBounds, IScreenSizeData, IResizeEventListener, IMatrixWithBoundsData, IPointData, InnerId, ICanvasManager, IWindingRule, IBlendMode, IExportImageType, IExportFileType, IBlob, ICursorType, ILeaferCanvasView, IRadiusPointData, IObject, IMatrixWithOptionHalfData } from '@leafer/interface' | ||
| const { copy, multiplyParent } = MatrixHelper, { round } = Math, tempPixelBounds = new Bounds(), tempPixelBounds2 = new Bounds() | ||
| const { copy, multiplyParent, pixelScale } = MatrixHelper, { round } = Math, tempPixelBounds = new Bounds(), tempPixelBounds2 = new Bounds() | ||
| const minSize: IScreenSizeData = { width: 1, height: 1, pixelRatio: 1 } | ||
@@ -140,10 +140,4 @@ | ||
| if (parentMatrix) multiplyParent(matrix, parentMatrix, w) | ||
| pixelScale(matrix, pixelRatio, w) | ||
| w.a = matrix.a * pixelRatio | ||
| w.b = matrix.b * pixelRatio | ||
| w.c = matrix.c * pixelRatio | ||
| w.d = matrix.d * pixelRatio | ||
| w.e = matrix.e * pixelRatio | ||
| w.f = matrix.f * pixelRatio | ||
| if (pixelSnap) { | ||
@@ -150,0 +144,0 @@ 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 |
34960
-0.46%672
-0.74%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated
Updated
Updated
Updated
Updated
Updated