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

@leafer/display-module

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/display-module - npm Package Compare versions

Comparing version
1.0.0-alpha.10
to
1.0.0-alpha.21
+4
-4
package.json
{
"name": "@leafer/display-module",
"version": "1.0.0-alpha.10",
"version": "1.0.0-alpha.21",
"description": "@leafer/display-module",

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

"dependencies": {
"@leafer/event": "1.0.0-alpha.10",
"@leafer/math": "1.0.0-alpha.10"
"@leafer/event": "1.0.0-alpha.21",
"@leafer/math": "1.0.0-alpha.21"
},
"devDependencies": {
"@leafer/interface": "1.0.0-alpha.10"
"@leafer/interface": "1.0.0-alpha.21"
}
}

@@ -5,3 +5,3 @@ import { ILeafBoundsModule } from '@leafer/interface'

const { setByBoundsTimesMatrix } = BoundsHelper
const { toWorld, copyAndSpread } = BoundsHelper

@@ -89,3 +89,3 @@ export const LeafBounds: ILeafBoundsModule = {

setByBoundsTimesMatrix(this.__world, this.__layout.renderBounds, this.__world)
toWorld(this.__layout.renderBounds, this.__world, this.__world)

@@ -95,3 +95,3 @@ if (resize) this.__onUpdateSize()

} else {
setByBoundsTimesMatrix(this.__world, this.__layout.renderBounds, this.__world)
toWorld(this.__layout.renderBounds, this.__world, this.__world)
}

@@ -102,11 +102,11 @@

__updateRelativeBoxBounds(): void {
setByBoundsTimesMatrix(this.__relative, this.__layout.boxBounds, this.__relative)
toWorld(this.__layout.boxBounds, this.__relative, this.__relative)
},
__updateRelativeEventBounds(): void {
setByBoundsTimesMatrix(this.__layout.relativeEventBounds, this.__layout.eventBounds, this.__relative)
toWorld(this.__layout.eventBounds, this.__relative, this.__layout.relativeEventBounds)
},
__updateRelativeRenderBounds(): void {
setByBoundsTimesMatrix(this.__layout.relativeRenderBounds, this.__layout.renderBounds, this.__relative)
toWorld(this.__layout.renderBounds, this.__relative, this.__layout.relativeRenderBounds)
},

@@ -121,4 +121,12 @@

b.height = this.__.height
}
},
__updateEventBounds(): void {
copyAndSpread(this.__layout.eventBounds, this.__layout.boxBounds, this.__layout.eventBoundsSpreadWidth)
},
__updateRenderBounds(): void {
copyAndSpread(this.__layout.renderBounds, this.__layout.eventBounds, this.__layout.renderBoundsSpreadWidth)
},
}