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

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

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

@@ -27,3 +27,6 @@ import { ILeaf, ILeaferCanvas, IRenderOptions, IBranchRenderModule } from '@leafer/interface'

canvas.opacity = this.__worldOpacity
canvas.copyWorld(tempCanvas, this.__world, this.__world, this.__.isEraser ? 'destination-out' : this.__.blendMode)
const blendMode = this.__.isEraser ? 'destination-out' : this.__.blendMode
options.matrix ? canvas.copyWorld(tempCanvas, null, null, blendMode) : canvas.copyWorld(tempCanvas, this.__world, this.__world, blendMode)
tempCanvas.recycle()

@@ -30,0 +33,0 @@ } else {

@@ -16,3 +16,9 @@ import { ILeaferCanvas, IRenderOptions, ILeafRenderModule } from '@leafer/interface'

canvas.copyWorldToInner(tempCanvas, this.__world, this.__layout.renderBounds, this.__.isEraser ? 'destination-out' : this.__.blendMode)
const blendMode = this.__.isEraser ? 'destination-out' : this.__.blendMode
if (options.matrix) {
canvas.resetTransform()
canvas.copyWorld(tempCanvas, null, null, blendMode)
} else {
canvas.copyWorldToInner(tempCanvas, this.__world, this.__layout.renderBounds, blendMode)
}
tempCanvas.recycle()

@@ -19,0 +25,0 @@ } else {