@leafer-ui/effect
Advanced tools
+5
-5
| { | ||
| "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" | ||
| } | ||
| } |
+2
-3
@@ -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 |
9474
0.33%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated