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
117
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.0.3
to
1.0.4
+5
-5
package.json
{
"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)