@galacean/effects-core 2.3.0 → 2.3.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.
@@ -6,9 +6,6 @@ import type { Scene, SceneLoadOptions } from './scene';
6
6
  import type { VFXItemConstructor } from './vfx-item';
7
7
  export declare const pluginLoaderMap: Record<string, PluginConstructor>;
8
8
  export declare const defaultPlugins: string[];
9
- export type PrecompileOptions = {
10
- [key: string]: any;
11
- };
12
9
  /**
13
10
  * 注册 plugin
14
11
  * @param name
@@ -29,7 +26,7 @@ export declare class PluginSystem {
29
26
  assets: spec.AssetBase[];
30
27
  loadedAssets: unknown[];
31
28
  }[]>;
32
- precompile(compositions: spec.CompositionData[], renderer: Renderer, options?: PrecompileOptions): void;
29
+ precompile(compositions: spec.CompositionData[], renderer: Renderer): void;
33
30
  loadResources(scene: Scene, options: SceneLoadOptions): Promise<unknown[]>;
34
31
  private callStatic;
35
32
  }
@@ -3,7 +3,6 @@ import type { Scene, SceneLoadOptions } from '../scene';
3
3
  import type { VFXItem } from '../vfx-item';
4
4
  import type { RenderFrame, Renderer } from '../render';
5
5
  import type { Composition } from '../composition';
6
- import type { PrecompileOptions } from '../plugin-system';
7
6
  export interface Plugin {
8
7
  /**
9
8
  * plugin 的数组内排序,按照升序排列
@@ -16,7 +15,7 @@ export interface Plugin {
16
15
  * @param json
17
16
  * @param player
18
17
  */
19
- precompile: (compositions: spec.CompositionData[], renderer: Renderer, options?: PrecompileOptions) => void;
18
+ precompile: (compositions: spec.CompositionData[], renderer: Renderer) => void;
20
19
  /**
21
20
  * 合成创建时调用,用于触发元素在合成创建时的回调
22
21
  * @param composition
@@ -128,7 +127,7 @@ export declare abstract class AbstractPlugin implements Plugin {
128
127
  * @param json
129
128
  * @param player
130
129
  */
131
- precompile(compositions: spec.CompositionData[], renderer: Renderer, options?: PrecompileOptions): void;
130
+ precompile(compositions: spec.CompositionData[], renderer: Renderer): void;
132
131
  onCompositionConstructed(composition: Composition, scene: Scene): void;
133
132
  onCompositionItemLifeBegin(composition: Composition, item: VFXItem): void;
134
133
  onCompositionItemLifeEnd(composition: Composition, item: VFXItem): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galacean/effects-core",
3
- "version": "2.3.0",
3
+ "version": "2.3.2",
4
4
  "description": "Galacean Effects runtime core for the web",
5
5
  "module": "./dist/index.mjs",
6
6
  "main": "./dist/index.js",