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.10
to
1.9.11
+5
-5
package.json
{
"name": "@leafer-ui/effect",
"version": "1.9.10",
"version": "1.9.11",
"description": "@leafer-ui/effect",

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

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

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

if (shadow.spread) {
const spreadScale = 1 + shadow.spread * 2 / ui.__layout.strokeBounds.width * otherScale * (isInnerShaodw ? -1 : 1)
tempMatrix.set().scaleOfOuter({ x: (outBounds.x + outBounds.width / 2) * canvas.pixelRatio, y: (outBounds.y + outBounds.height / 2) * canvas.pixelRatio }, spreadScale)
const spread = shadow.spread * 2 * otherScale * (isInnerShaodw ? -1 : 1), { width, height } = ui.__layout.strokeBounds
tempMatrix.set().scaleOfOuter({ x: (outBounds.x + outBounds.width / 2) * canvas.pixelRatio, y: (outBounds.y + outBounds.height / 2) * canvas.pixelRatio }, 1 + spread / width, 1 + spread / height)
return tempMatrix

@@ -91,3 +91,2 @@ }

export function drawWorldShadow(canvas: ILeaferCanvas, outBounds: IBoundsData, shape: ICachedShape): void {
const { shapeBounds } = shape

@@ -94,0 +93,0 @@ let from: IBoundsData, to: IBoundsData