@soonspacejs/plugin-effect 2.3.16 → 2.3.17

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
@@ -14,11 +14,37 @@ export interface SmokeInfo extends PluginObjectInfo {
14
14
  velocity?: IVector3;
15
15
  color?: IColor[];
16
16
  }
17
+ export interface LensFlareInfo extends PluginObjectInfo {
18
+ imgUrl?: string;
19
+ color?: IColor;
20
+ size?: number;
21
+ }
17
22
  export default class EffectPlugin {
18
23
  readonly ssp: SoonSpace;
19
24
  constructor(ssp: SoonSpace);
25
+ /**
26
+ * 创建火焰
27
+ * @param param
28
+ * @returns
29
+ */
20
30
  createFlame(param: FlameInfo): import("../../../soonspacejs/src/Library/PluginObject").PluginObject;
31
+ /**
32
+ * @deprecated
33
+ * @param id
34
+ * @returns
35
+ */
21
36
  removeFlame(id: PluginObjectInfo['id']): boolean;
22
37
  createSmoke(param: SmokeInfo): import("../../../soonspacejs/src/Library/PluginObject").PluginObject;
38
+ /**
39
+ * @deprecated
40
+ * @param id
41
+ * @returns
42
+ */
23
43
  removeSmoke(id: PluginObjectInfo['id']): boolean;
44
+ /**
45
+ * 创建镜头光晕
46
+ * @param param
47
+ */
48
+ createLensFlare(param: LensFlareInfo): import("../../../soonspacejs/src/Library/PluginObject").PluginObject;
49
+ removeEffect(id: PluginObjectInfo['id']): boolean;
24
50
  }