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
116
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.0.0-beta.12
to
1.0.0-beta.15
+10
types/index.d.ts
import { ILeaferCanvas, IRenderOptions } from '@leafer/interface';
import { IUI, ICachedShape } from '@leafer-ui/interface';
declare function shadow(ui: IUI, current: ILeaferCanvas, shape: ICachedShape, _options: IRenderOptions): void;
declare function innerShadow(ui: IUI, current: ILeaferCanvas, shape: ICachedShape, _options: IRenderOptions): void;
declare function blur(ui: IUI, current: ILeaferCanvas, origin: ILeaferCanvas): void;
export { blur, innerShadow, shadow };
+13
-3
{
"name": "@leafer-ui/effect",
"version": "1.0.0-beta.12",
"version": "1.0.0-beta.15",
"description": "@leafer-ui/effect",

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

"main": "src/index.ts",
"types": "types/index.d.ts",
"files": [
"src"
"src",
"types",
"dist"
],

@@ -21,3 +24,10 @@ "repository": {

"leaferjs"
]
],
"dependencies": {
"@leafer/core": "1.0.0-beta.15"
},
"devDependencies": {
"@leafer/interface": "1.0.0-beta.15",
"@leafer-ui/interface": "1.0.0-beta.15"
}
}

@@ -48,3 +48,7 @@ import { IBoundsData, ILeaferCanvas, IMatrixWithBoundsData, IOffsetBoundsData, IRenderOptions } from '@leafer/interface'

current.copyWorldToInner(other, copyBounds as IMatrixWithBoundsData, __layout.renderBounds, item.blendMode)
if (ui.__hasMirror) {
current.copyWorldByReset(other, copyBounds, __world, item.blendMode)
} else {
current.copyWorldToInner(other, copyBounds as IMatrixWithBoundsData, __layout.renderBounds, item.blendMode)
}

@@ -51,0 +55,0 @@ if (end && index < end) other.clear()

@@ -47,3 +47,7 @@ import { IBoundsData, ILeaferCanvas, IMatrixWithBoundsData, IOffsetBoundsData, IRenderOptions } from '@leafer/interface'

current.copyWorldToInner(other, copyBounds as IMatrixWithBoundsData, __layout.renderBounds, item.blendMode)
if (ui.__hasMirror) {
current.copyWorldByReset(other, copyBounds, __world, item.blendMode)
} else {
current.copyWorldToInner(other, copyBounds as IMatrixWithBoundsData, __layout.renderBounds, item.blendMode)
}

@@ -50,0 +54,0 @@ if (end && index < end) other.clear()