@leafer-ui/effect
Advanced tools
| 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() |
+5
-1
@@ -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() |
7921
14.35%8
14.29%115
13.86%1
Infinity%2
Infinity%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added