@leafer/layout
Advanced tools
+5
-5
| { | ||
| "name": "@leafer/layout", | ||
| "version": "1.5.3", | ||
| "version": "1.6.0", | ||
| "description": "@leafer/layout", | ||
@@ -25,9 +25,9 @@ "author": "Chao (Leafer) Wan", | ||
| "dependencies": { | ||
| "@leafer/math": "1.5.3", | ||
| "@leafer/helper": "1.5.3", | ||
| "@leafer/platform": "1.5.3" | ||
| "@leafer/math": "1.6.0", | ||
| "@leafer/helper": "1.6.0", | ||
| "@leafer/platform": "1.6.0" | ||
| }, | ||
| "devDependencies": { | ||
| "@leafer/interface": "1.5.3" | ||
| "@leafer/interface": "1.6.0" | ||
| } | ||
| } |
@@ -25,2 +25,3 @@ import { ILeaf, ILeafLayout, ILocationType, IBoundsType, IBoundsData, IMatrixData, ILayoutBoundsData, IPointData } from '@leafer/interface' | ||
| public get renderBounds(): IBoundsData { return this._renderBounds || this.boxBounds } | ||
| public set renderBounds(bounds: IBoundsData) { this._renderBounds = bounds } | ||
@@ -106,6 +107,8 @@ public _contentBounds: IBoundsData | ||
| this.leaf = leaf | ||
| this.boxBounds = { x: 0, y: 0, width: 0, height: 0 } | ||
| if (this.leaf.__local) this._localRenderBounds = this._localStrokeBounds = this.leaf.__local | ||
| this.boxChange() | ||
| this.matrixChange() | ||
| if (leaf.__world) { | ||
| this.boxBounds = { x: 0, y: 0, width: 0, height: 0 } | ||
| this.boxChange() | ||
| this.matrixChange() | ||
| } | ||
| } | ||
@@ -112,0 +115,0 @@ |
+1
-0
@@ -11,2 +11,3 @@ import { ILeafLayout, ILeaf, IBoundsData, ILocationType, IMatrixData, IBoundsType, ILayoutBoundsData, IPointData } from '@leafer/interface'; | ||
| get renderBounds(): IBoundsData; | ||
| set renderBounds(bounds: IBoundsData); | ||
| _contentBounds: IBoundsData; | ||
@@ -13,0 +14,0 @@ _strokeBounds: IBoundsData; |
17769
0.99%403
1%+ 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