@soonspacejs/plugin-effect 2.11.5 → 2.11.7
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 +8 -0
- package/dist/index.esm.js +1 -1
- package/dist/water/index.d.ts +52 -0
- package/dist/water/tools.d.ts +3 -0
- package/package.json +3 -3
- package/typings.d.ts +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ 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
9
|
export interface FlameOptions extends PluginObjectInfo {
|
|
8
10
|
magnitude?: number;
|
|
9
11
|
gain?: number;
|
|
@@ -27,6 +29,7 @@ export interface SparklesOptions extends PluginObjectInfo {
|
|
|
27
29
|
scalar?: number | [number, number, number] | IVector3;
|
|
28
30
|
noise?: number | [number, number, number] | IVector3 | Float32Array;
|
|
29
31
|
}
|
|
32
|
+
export type CreateWaterOptions = PluginObjectInfo & WaterOptions;
|
|
30
33
|
export interface ContactShadowsOptions extends Omit<PluginObjectInfo, 'scale'> {
|
|
31
34
|
opacity?: number;
|
|
32
35
|
width?: number;
|
|
@@ -97,6 +100,7 @@ export interface BuildsOptions extends PluginObjectInfo {
|
|
|
97
100
|
}
|
|
98
101
|
declare class EffectPlugin {
|
|
99
102
|
readonly ssp: SoonSpace;
|
|
103
|
+
[x: string]: any;
|
|
100
104
|
/**
|
|
101
105
|
* 天气预设图片
|
|
102
106
|
*/
|
|
@@ -181,5 +185,9 @@ declare class EffectPlugin {
|
|
|
181
185
|
*/
|
|
182
186
|
createBuilds(options: BuildsOptions): PluginObject;
|
|
183
187
|
removeEffect(id: PluginObjectInfo['id']): boolean;
|
|
188
|
+
waterMeshs: Map<string | number, WaterMesh>;
|
|
189
|
+
_waterUpdateHander: ISlot | null;
|
|
190
|
+
createWater(options: CreateWaterOptions): PluginObject;
|
|
191
|
+
removeWater(id: PluginObjectInfo['id']): boolean;
|
|
184
192
|
}
|
|
185
193
|
export default EffectPlugin;
|