@leafer-ui/effect 1.0.0-beta.6 → 1.0.0-beta.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leafer-ui/effect",
3
- "version": "1.0.0-beta.6",
3
+ "version": "1.0.0-beta.8",
4
4
  "description": "@leafer-ui/effect",
5
5
  "author": "Chao (Leafer) Wan",
6
6
  "license": "MIT",
@@ -1,4 +1,4 @@
1
- import { IBoundsData, ILeaferCanvas, IMatrixWithBoundsData, IOffsetBoundsData } from '@leafer/interface'
1
+ import { IBoundsData, ILeaferCanvas, IMatrixWithBoundsData, IOffsetBoundsData, IRenderOptions } from '@leafer/interface'
2
2
  import { BoundsHelper } from '@leafer/core'
3
3
 
4
4
  import { IUI, ICachedShape } from '@leafer-ui/interface'
@@ -9,7 +9,7 @@ import { drawWorldShadow } from './Shadow'
9
9
  const { toOffsetOutBounds } = BoundsHelper
10
10
  const offsetOutBounds = {} as IOffsetBoundsData
11
11
 
12
- export function innerShadow(ui: IUI, current: ILeaferCanvas, shape: ICachedShape): void {
12
+ export function innerShadow(ui: IUI, current: ILeaferCanvas, shape: ICachedShape, _options: IRenderOptions): void {
13
13
 
14
14
  let copyBounds: IBoundsData, spreadScale: number
15
15
 
package/src/Shadow.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { IBoundsData, ILeaferCanvas, IMatrixWithBoundsData, IOffsetBoundsData } from '@leafer/interface'
1
+ import { IBoundsData, ILeaferCanvas, IMatrixWithBoundsData, IOffsetBoundsData, IRenderOptions } from '@leafer/interface'
2
2
  import { BoundsHelper, Platform } from '@leafer/core'
3
3
 
4
4
  import { IUI, ICachedShape } from '@leafer-ui/interface'
@@ -8,7 +8,7 @@ const { copy, toOffsetOutBounds } = BoundsHelper
8
8
  const tempBounds = {} as IBoundsData
9
9
  const offsetOutBounds = {} as IOffsetBoundsData
10
10
 
11
- export function shadow(ui: IUI, current: ILeaferCanvas, shape: ICachedShape): void {
11
+ export function shadow(ui: IUI, current: ILeaferCanvas, shape: ICachedShape, _options: IRenderOptions): void {
12
12
 
13
13
  let copyBounds: IBoundsData, spreadScale: number
14
14