@soonspacejs/plugin-effect 2.11.8 → 2.11.10

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 CHANGED
@@ -4,8 +4,7 @@ import { ParticleCluster, ParticleClusterOptions } from '@three3d/particle';
4
4
  export * from '@three3d/particle';
5
5
  import { InnerCircleWaveOptions } from './circle-wave';
6
6
  import { InnerCylinderWaveOptions } from './cylinder-wave';
7
- import { WaterMesh, WaterOptions } from './water/index';
8
- import { ISlot } from '@robotlegsjs/signals';
7
+ import { WaterOptions } from './water';
9
8
  export interface FlameOptions extends PluginObjectInfo {
10
9
  magnitude?: number;
11
10
  gain?: number;
@@ -29,7 +28,15 @@ export interface SparklesOptions extends PluginObjectInfo {
29
28
  scalar?: number | [number, number, number] | IVector3;
30
29
  noise?: number | [number, number, number] | IVector3 | Float32Array;
31
30
  }
32
- export type CreateWaterOptions = PluginObjectInfo & WaterOptions;
31
+ export interface CreateWaterOptions extends PluginObjectInfo, Omit<WaterOptions, 'userData'> {
32
+ /**
33
+ * 是否开启水的动画
34
+ * @remarks
35
+ * 如果开启,则会一直触发场景渲染
36
+ * 如果关闭,则不会主动触发场景渲染,但在渲染渲染时仍会有动画效果,只是不会主动触发场景渲染
37
+ */
38
+ animation?: boolean;
39
+ }
33
40
  export interface ContactShadowsOptions extends Omit<PluginObjectInfo, 'scale'> {
34
41
  opacity?: number;
35
42
  width?: number;
@@ -184,10 +191,7 @@ declare class EffectPlugin {
184
191
  * @returns
185
192
  */
186
193
  createBuilds(options: BuildsOptions): PluginObject;
187
- removeEffect(id: PluginObjectInfo['id']): boolean;
188
- waterMeshs: Map<string | number, WaterMesh>;
189
- _waterUpdateHanders: ISlot[];
190
194
  createWater(options: CreateWaterOptions): PluginObject;
191
- removeWater(id: PluginObjectInfo['id']): boolean;
195
+ removeEffect(id: PluginObjectInfo['id']): boolean;
192
196
  }
193
197
  export default EffectPlugin;