@leafer/display-module
Advanced tools
+4
-4
| { | ||
| "name": "@leafer/display-module", | ||
| "version": "1.0.0-beta.10", | ||
| "version": "1.0.0-beta.11", | ||
| "description": "@leafer/display-module", | ||
@@ -22,8 +22,8 @@ "author": "Chao (Leafer) Wan", | ||
| "dependencies": { | ||
| "@leafer/event": "1.0.0-beta.10", | ||
| "@leafer/math": "1.0.0-beta.10" | ||
| "@leafer/event": "1.0.0-beta.11", | ||
| "@leafer/math": "1.0.0-beta.11" | ||
| }, | ||
| "devDependencies": { | ||
| "@leafer/interface": "1.0.0-beta.10" | ||
| "@leafer/interface": "1.0.0-beta.11" | ||
| } | ||
| } |
@@ -5,4 +5,4 @@ import { ILeafMatrixModule } from '@leafer/interface' | ||
| const { defaultMatrix } = MatrixHelper | ||
| const { sin, cos } = Math | ||
| const defaultWorld = { ...MatrixHelper.defaultMatrix, scaleX: 1, scaleY: 1 } | ||
@@ -13,3 +13,3 @@ export const LeafMatrix: ILeafMatrixModule = { | ||
| const pw = this.parent ? this.parent.__world : defaultMatrix | ||
| const pw = this.parent ? this.parent.__world : defaultWorld | ||
| const r = this.__local | ||
@@ -27,2 +27,5 @@ const w = this.__world | ||
| w.f = r.e * pw.b + r.f * pw.d + pw.f | ||
| w.scaleX = pw.scaleX * this.__.scaleX | ||
| w.scaleY = pw.scaleY * this.__.scaleY | ||
| } else { | ||
@@ -35,2 +38,5 @@ w.a = pw.a | ||
| w.f = r.e * pw.b + r.f * pw.d + pw.f | ||
| w.scaleX = pw.scaleX | ||
| w.scaleY = pw.scaleY | ||
| } | ||
@@ -37,0 +43,0 @@ }, |
19073
1.09%416
0.97%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated