@soonspacejs/plugin-effect 2.3.20 → 2.4.2

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,5 +1,5 @@
1
1
  import SoonSpace, { IVector3, IColor } from 'soonspacejs';
2
- import { PluginObjectInfo } from 'soonspacejs/src/Library';
2
+ import { PluginObjectInfo } from 'soonspacejs/types/Library';
3
3
  export interface FlameInfo extends PluginObjectInfo {
4
4
  magnitude?: number;
5
5
  gain?: number;
@@ -14,6 +14,22 @@ export interface SmokeInfo extends PluginObjectInfo {
14
14
  velocity?: IVector3;
15
15
  color?: IColor[];
16
16
  }
17
+ export interface SparklesInfo extends PluginObjectInfo {
18
+ /** Number of particles (default: 100) */
19
+ count?: number;
20
+ /** Speed of particles (default: 1) */
21
+ speed?: number | Float32Array;
22
+ /** Opacity of particles (default: 1) */
23
+ opacity?: number | Float32Array;
24
+ /** Color of particles (default: 100) */
25
+ color?: IColor | Float32Array;
26
+ /** Size of particles (default: randomized between 0 and 1) */
27
+ size?: number | Float32Array;
28
+ /** The space the particles occupy (default: 1) */
29
+ scalar?: number | [number, number, number] | IVector3;
30
+ /** Movement factor (default: 1) */
31
+ noise?: number | [number, number, number] | IVector3 | Float32Array;
32
+ }
17
33
  export interface LensFlareInfo extends PluginObjectInfo {
18
34
  imgUrl?: string;
19
35
  color?: IColor;
@@ -46,5 +62,6 @@ export default class EffectPlugin {
46
62
  * @param param
47
63
  */
48
64
  createLensFlare(param: LensFlareInfo): import("../../../soonspacejs/src/Library/PluginObject").PluginObject;
65
+ createSparkles(param: SparklesInfo): import("../../../soonspacejs/src/Library/PluginObject").PluginObject;
49
66
  removeEffect(id: PluginObjectInfo['id']): boolean;
50
67
  }