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
116
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.9.6
to
1.9.7
+7
-7
package.json
{
"name": "@leafer/display-module",
"version": "1.9.6",
"version": "1.9.7",
"description": "@leafer/display-module",

@@ -25,11 +25,11 @@ "author": "Chao (Leafer) Wan",

"dependencies": {
"@leafer/helper": "1.9.6",
"@leafer/event": "1.9.6",
"@leafer/math": "1.9.6",
"@leafer/data": "1.9.6",
"@leafer/debug": "1.9.6"
"@leafer/helper": "1.9.7",
"@leafer/event": "1.9.7",
"@leafer/math": "1.9.7",
"@leafer/data": "1.9.7",
"@leafer/debug": "1.9.7"
},
"devDependencies": {
"@leafer/interface": "1.9.6"
"@leafer/interface": "1.9.7"
}
}

@@ -28,4 +28,7 @@ import { LeafBoundsHelper } from '@leafer/helper'

if (data.dim) options.dimOpacity = data.dim === true ? 0.2 : data.dim
else if (data.dimskip) options.dimOpacity && (options.dimOpacity = 0)
if (data.__useDim) {
if (data.dim) options.dimOpacity = data.dim === true ? 0.2 : data.dim
else if (data.bright && !options.topRendering) return options.topList.add(this)
else if (data.dimskip) options.dimOpacity && (options.dimOpacity = 0)
}

@@ -32,0 +35,0 @@ if (data.__single && !this.isBranchLeaf) { // Frame / Box 不能走 single 逻辑渲染组,需用 drawAfterFill 渲染成一个整体, 关联设置 BoxData.__drawAfterFill

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

if (data.bright && !options.topRendering) return options.topList.add(this)
canvas.setWorld(this.__nowWorld = this.__getNowWorld(options))

@@ -18,0 +20,0 @@ canvas.opacity = options.dimOpacity && !data.dimskip ? data.opacity * options.dimOpacity : data.opacity