@soonspacejs/plugin-effect 2.11.57 → 2.11.61

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
@@ -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,14 @@ 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
+ blending?: Blending;
30
+ }
22
31
  export interface SparklesOptions extends PluginObjectInfo {
23
32
  count?: number;
24
33
  speed?: number | Float32Array;
@@ -123,24 +132,13 @@ declare class EffectPlugin {
123
132
  * @returns
124
133
  */
125
134
  createFlame(params: FlameOptions): PluginObject;
126
- /**
127
- * @deprecated
128
- * @params id
129
- * @returns
130
- */
131
- removeFlame(id: PluginObjectInfo['id']): boolean;
132
135
  /**
133
136
  * 创建烟雾
134
137
  * @param params
135
138
  * @returns
136
139
  */
137
140
  createSmoke(params: SmokeOptions): PluginObject;
138
- /**
139
- * @deprecated
140
- * @params id
141
- * @returns
142
- */
143
- removeSmoke(id: PluginObjectInfo['id']): boolean;
141
+ createSmoke2(params: Smoke2Options): PluginObject;
144
142
  /**
145
143
  * 创建星星
146
144
  * @param params