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

@leafer-ui/effect

Package Overview
Dependencies
Maintainers
1
Versions
115
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@leafer-ui/effect - npm Package Compare versions

Comparing version
1.9.9
to
1.9.10
+5
-5
package.json
{
"name": "@leafer-ui/effect",
"version": "1.9.9",
"version": "1.9.10",
"description": "@leafer-ui/effect",

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

"dependencies": {
"@leafer/core": "1.9.9",
"@leafer-ui/draw": "1.9.9"
"@leafer/core": "1.9.10",
"@leafer-ui/draw": "1.9.10"
},
"devDependencies": {
"@leafer/interface": "1.9.9",
"@leafer-ui/interface": "1.9.9"
"@leafer/interface": "1.9.10",
"@leafer-ui/interface": "1.9.10"
}
}

@@ -8,3 +8,3 @@ import { IBoundsData, IFourNumber, ILeaferCanvas, IMatrixData, IOffsetBoundsData } from '@leafer/interface'

const { copy, move, toOffsetOutBounds } = BoundsHelper, { max } = Math
const { copy, move, toOffsetOutBounds } = BoundsHelper, { max, abs } = Math
const tempBounds = {} as IBoundsData, tempMatrix = new Matrix()

@@ -71,3 +71,4 @@ const offsetOutBounds = {} as IOffsetBoundsData

shadow.forEach(item => {
x = item.x || 0, y = item.y || 0, spread = item.spread || 0, blur = (item.blur || 0) * 1.5
x = item.x || 0, y = item.y || 0, blur = (item.blur || 0) * 1.5, spread = abs(item.spread || 0) // must abs spread
top = max(top, spread + blur - y)

@@ -74,0 +75,0 @@ right = max(right, spread + blur + x)