@leafer/layout
Advanced tools
+5
-5
| { | ||
| "name": "@leafer/layout", | ||
| "version": "1.0.3", | ||
| "version": "1.0.4", | ||
| "description": "@leafer/layout", | ||
@@ -25,9 +25,9 @@ "author": "Chao (Leafer) Wan", | ||
| "dependencies": { | ||
| "@leafer/math": "1.0.3", | ||
| "@leafer/helper": "1.0.3", | ||
| "@leafer/platform": "1.0.3" | ||
| "@leafer/math": "1.0.4", | ||
| "@leafer/helper": "1.0.4", | ||
| "@leafer/platform": "1.0.4" | ||
| }, | ||
| "devDependencies": { | ||
| "@leafer/interface": "1.0.3" | ||
| "@leafer/interface": "1.0.4" | ||
| } | ||
| } |
@@ -206,3 +206,3 @@ import { ILeaf, ILeafLayout, ILocationType, IBoundsType, IBoundsData, IMatrixData, ILayoutBoundsData, IPointData } from '@leafer/interface' | ||
| const { leaf } = this | ||
| let point: IPointData, matrix: IMatrixData, bounds: IBoundsData = this.getInnerBounds(type) | ||
| let point: IPointData, matrix: IMatrixData, layoutBounds: ILayoutBoundsData, bounds: IBoundsData = this.getInnerBounds(type) | ||
@@ -215,4 +215,5 @@ switch (relative) { | ||
| case 'local': | ||
| const { scaleX, scaleY, rotation, skewX, skewY } = leaf.__ | ||
| layoutBounds = { scaleX, scaleY, rotation, skewX, skewY } as ILayoutBoundsData // 更精准,务必保留 | ||
| point = leaf.getLocalPointByInner(bounds) | ||
| matrix = leaf.__localMatrix | ||
| break | ||
@@ -230,3 +231,3 @@ case 'inner': | ||
| const layoutBounds = MatrixHelper.getLayout(matrix) as ILayoutBoundsData | ||
| if (!layoutBounds) layoutBounds = MatrixHelper.getLayout(matrix) as ILayoutBoundsData | ||
| copy(layoutBounds, bounds) | ||
@@ -233,0 +234,0 @@ PointHelper.copy(layoutBounds, point) |
17487
1.16%398
0.25%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated
Updated