You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@leafer/layout

Package Overview
Dependencies
Maintainers
1
Versions
116
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@leafer/layout - npm Package Compare versions

Comparing version
1.5.3
to
1.6.0
+5
-5
package.json
{
"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 @@

@@ -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;