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-beta.10
to
1.0.0-beta.11
+4
-4
package.json
{
"name": "@leafer/display-module",
"version": "1.0.0-beta.10",
"version": "1.0.0-beta.11",
"description": "@leafer/display-module",

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

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

@@ -5,4 +5,4 @@ import { ILeafMatrixModule } from '@leafer/interface'

const { defaultMatrix } = MatrixHelper
const { sin, cos } = Math
const defaultWorld = { ...MatrixHelper.defaultMatrix, scaleX: 1, scaleY: 1 }

@@ -13,3 +13,3 @@ export const LeafMatrix: ILeafMatrixModule = {

const pw = this.parent ? this.parent.__world : defaultMatrix
const pw = this.parent ? this.parent.__world : defaultWorld
const r = this.__local

@@ -27,2 +27,5 @@ const w = this.__world

w.f = r.e * pw.b + r.f * pw.d + pw.f
w.scaleX = pw.scaleX * this.__.scaleX
w.scaleY = pw.scaleY * this.__.scaleY
} else {

@@ -35,2 +38,5 @@ w.a = pw.a

w.f = r.e * pw.b + r.f * pw.d + pw.f
w.scaleX = pw.scaleX
w.scaleY = pw.scaleY
}

@@ -37,0 +43,0 @@ },