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.0-alpha.31
to
1.0.0-bate
+3
-3
package.json
{
"name": "@leafer/layout",
"version": "1.0.0-alpha.31",
"version": "1.0.0-bate",
"description": "@leafer/layout",

@@ -22,7 +22,7 @@ "author": "Chao (Leafer) Wan",

"dependencies": {
"@leafer/math": "1.0.0-alpha.31"
"@leafer/math": "1.0.0-bate"
},
"devDependencies": {
"@leafer/interface": "1.0.0-alpha.31"
"@leafer/interface": "1.0.0-bate"
}
}

@@ -45,7 +45,7 @@ import { ILeaf, ILeafLayout, ILayoutLocationType, ILayoutBoundsType, IBoundsData, IMatrixData, IMatrixDecompositionData } from '@leafer/interface'

public boxBoundsChanged: boolean
public strokeBoundsChanged: boolean
public renderBoundsChanged: boolean
public boxChanged: boolean
public strokeChanged: boolean
public renderChanged: boolean
public localBoxBoundsChanged: boolean
public localBoxChanged: boolean

@@ -64,6 +64,6 @@ // face

public strokeBoundsSpreadWidth: number
public renderBoundsSpreadWidth: number
public shapeStrokeSpreadWidth: number
public shapeRenderSpreadWidth: number
public strokeSpread: number
public renderSpread: number
public shapeStrokeSpread: number
public shapeRenderSpread: number

@@ -75,3 +75,3 @@

this.localRenderBounds = this.localStrokeBounds = leaf.__local
this.boxBoundsChange()
this.boxChange()
}

@@ -101,3 +101,3 @@

public getMatrixDecompositionData(locationType: ILayoutLocationType): IMatrixDecompositionData {
public decomposeTransform(locationType: ILayoutLocationType): IMatrixDecompositionData {
this.checkUpdate()

@@ -177,9 +177,9 @@ return MatrixHelper.decompose(locationType === 'world' ? this.leaf.__world : this.leaf.__local)

public strokeBoundsSpreadCancel(): void {
public spreadStrokeCancel(): void {
const same = this.renderBounds === this.strokeBounds
this.strokeBounds = this.boxBounds
this.localStrokeBounds = this.leaf.__local
if (same) this.renderBoundsSpreadCancel()
if (same) this.spreadRenderCancel()
}
public renderBoundsSpreadCancel(): void {
public spreadRenderCancel(): void {
this.renderBounds = this.strokeBounds

@@ -189,9 +189,9 @@ this.localRenderBounds = this.localStrokeBounds

public strokeBoundsSpread(): void {
public spreadStroke(): void {
const { x, y, width, height } = this.strokeBounds
this.strokeBounds = { x, y, width, height }
this.localStrokeBounds = { x, y, width, height }
if (!this.renderBoundsSpreadWidth) this.renderBoundsSpreadCancel()
if (!this.renderSpread) this.spreadRenderCancel()
}
public renderBoundsSpread(): void {
public spreadRender(): void {
const { x, y, width, height } = this.renderBounds

@@ -205,16 +205,16 @@ this.renderBounds = { x, y, width, height }

public boxBoundsChange(): void {
this.boxBoundsChanged = true
this.localBoxBoundsChanged || this.localBoxBoundsChange()
public boxChange(): void {
this.boxChanged = true
this.localBoxChanged || this.localBoxChange()
this.hitCanvasChanged = true
}
public localBoxBoundsChange(): void {
this.localBoxBoundsChanged = true
public localBoxChange(): void {
this.localBoxChanged = true
this.boundsChanged = true
}
public strokeBoundsChange(): void {
this.strokeBoundsChanged = true
this.strokeBoundsSpreadWidth || (this.strokeBoundsSpreadWidth = 1)
public strokeChange(): void {
this.strokeChanged = true
this.strokeSpread || (this.strokeSpread = 1)
this.boundsChanged = true

@@ -224,5 +224,5 @@ this.hitCanvasChanged = true

public renderBoundsChange(): void {
this.renderBoundsChanged = true
this.renderBoundsSpreadWidth || (this.renderBoundsSpreadWidth = 1)
public renderChange(): void {
this.renderChanged = true
this.renderSpread || (this.renderSpread = 1)
this.boundsChanged = true

@@ -237,3 +237,3 @@ }

this.matrixChanged = true
this.localBoxBoundsChanged || this.localBoxBoundsChange()
this.localBoxChanged || this.localBoxChange()
}

@@ -255,3 +255,3 @@

this.matrixChanged = true
this.localBoxBoundsChanged || this.localBoxBoundsChange()
this.localBoxChanged || this.localBoxChange()
}

@@ -258,0 +258,0 @@