@leafer/math
Advanced tools
+2
-2
| { | ||
| "name": "@leafer/math", | ||
| "version": "1.0.0-beta.9", | ||
| "version": "1.0.0-beta.10", | ||
| "description": "@leafer/math", | ||
@@ -22,4 +22,4 @@ "author": "Chao (Leafer) Wan", | ||
| "devDependencies": { | ||
| "@leafer/interface": "1.0.0-beta.9" | ||
| "@leafer/interface": "1.0.0-beta.10" | ||
| } | ||
| } |
@@ -10,2 +10,3 @@ import { INumberMap } from '@leafer/interface' | ||
| CNAVAS: 'canvas', | ||
| IMAGE: 'image', | ||
@@ -12,0 +13,0 @@ types: {} as INumberMap, |
@@ -52,5 +52,5 @@ import { IMatrix, IMatrixData, IPointData, IMatrixDecompositionData } from '@leafer/interface' | ||
| t.a *= x | ||
| t.b *= x | ||
| t.c *= y | ||
| t.d *= y | ||
| t.c *= x | ||
| t.b *= y | ||
| }, | ||
@@ -57,0 +57,0 @@ |
@@ -39,3 +39,3 @@ import { IPointData, IMatrixData, IRadiusPointData } from '@leafer/interface' | ||
| t.x = center.x + rx * cosR - ry * sinR | ||
| t.y = center.y + rx * sinR - ry * cosR | ||
| t.y = center.y + rx * sinR + ry * cosR | ||
| }, | ||
@@ -42,0 +42,0 @@ |
33268
0.07%870
0.12%