@soonspacejs/plugin-effect 2.11.58 → 2.11.62
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 -12
- package/dist/index.esm.js +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Blending } from 'three';
|
|
1
2
|
import SoonSpace, { IVector3, IColor } from 'soonspacejs';
|
|
2
3
|
import type { PluginObject, PluginObjectInfo } from 'soonspacejs/types/Library';
|
|
3
4
|
import { ParticleCluster, ParticleClusterOptions } from '@three3d/particle';
|
|
@@ -19,6 +20,15 @@ export interface SmokeOptions extends PluginObjectInfo {
|
|
|
19
20
|
velocity?: IVector3;
|
|
20
21
|
color?: IColor[];
|
|
21
22
|
}
|
|
23
|
+
export interface Smoke2Options extends PluginObjectInfo {
|
|
24
|
+
imgUrl?: string;
|
|
25
|
+
radius?: number;
|
|
26
|
+
maxLife?: number;
|
|
27
|
+
maxSize?: number;
|
|
28
|
+
rate?: number;
|
|
29
|
+
colors?: IColor[];
|
|
30
|
+
blending?: Blending;
|
|
31
|
+
}
|
|
22
32
|
export interface SparklesOptions extends PluginObjectInfo {
|
|
23
33
|
count?: number;
|
|
24
34
|
speed?: number | Float32Array;
|
|
@@ -123,24 +133,13 @@ declare class EffectPlugin {
|
|
|
123
133
|
* @returns
|
|
124
134
|
*/
|
|
125
135
|
createFlame(params: FlameOptions): PluginObject;
|
|
126
|
-
/**
|
|
127
|
-
* @deprecated
|
|
128
|
-
* @params id
|
|
129
|
-
* @returns
|
|
130
|
-
*/
|
|
131
|
-
removeFlame(id: PluginObjectInfo['id']): boolean;
|
|
132
136
|
/**
|
|
133
137
|
* 创建烟雾
|
|
134
138
|
* @param params
|
|
135
139
|
* @returns
|
|
136
140
|
*/
|
|
137
141
|
createSmoke(params: SmokeOptions): PluginObject;
|
|
138
|
-
|
|
139
|
-
* @deprecated
|
|
140
|
-
* @params id
|
|
141
|
-
* @returns
|
|
142
|
-
*/
|
|
143
|
-
removeSmoke(id: PluginObjectInfo['id']): boolean;
|
|
142
|
+
createSmoke2(params: Smoke2Options): PluginObject;
|
|
144
143
|
/**
|
|
145
144
|
* 创建星星
|
|
146
145
|
* @param params
|