@soonspacejs/plugin-effect 2.11.8 → 2.11.9
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/dist/index.d.ts +11 -2
- package/dist/index.esm.js +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -29,7 +29,15 @@ export interface SparklesOptions extends PluginObjectInfo {
|
|
|
29
29
|
scalar?: number | [number, number, number] | IVector3;
|
|
30
30
|
noise?: number | [number, number, number] | IVector3 | Float32Array;
|
|
31
31
|
}
|
|
32
|
-
export
|
|
32
|
+
export interface CreateWaterOptions extends PluginObjectInfo, Omit<WaterOptions, 'userData'> {
|
|
33
|
+
/**
|
|
34
|
+
* 是否开启水的动画
|
|
35
|
+
* @remarks
|
|
36
|
+
* 如果开启,则会一直触发场景渲染
|
|
37
|
+
* 如果关闭,则不会主动触发场景渲染,但在渲染渲染时仍会有动画效果,只是不会主动触发场景渲染
|
|
38
|
+
*/
|
|
39
|
+
animation?: boolean;
|
|
40
|
+
}
|
|
33
41
|
export interface ContactShadowsOptions extends Omit<PluginObjectInfo, 'scale'> {
|
|
34
42
|
opacity?: number;
|
|
35
43
|
width?: number;
|
|
@@ -186,7 +194,8 @@ declare class EffectPlugin {
|
|
|
186
194
|
createBuilds(options: BuildsOptions): PluginObject;
|
|
187
195
|
removeEffect(id: PluginObjectInfo['id']): boolean;
|
|
188
196
|
waterMeshs: Map<string | number, WaterMesh>;
|
|
189
|
-
|
|
197
|
+
_waterUpdateHander: ISlot | null;
|
|
198
|
+
_waterAnimationHander: ISlot | null;
|
|
190
199
|
createWater(options: CreateWaterOptions): PluginObject;
|
|
191
200
|
removeWater(id: PluginObjectInfo['id']): boolean;
|
|
192
201
|
}
|