@galacean/effects-core 1.1.8 → 1.2.1

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.
@@ -98,6 +98,10 @@ export declare class AssetManager implements Disposable {
98
98
  * @default 10
99
99
  */
100
100
  private timeout;
101
+ /**
102
+ * 场景加载的超时定时器
103
+ */
104
+ private timers;
101
105
  /**
102
106
  * 构造函数
103
107
  * @param options - 场景加载参数
@@ -123,6 +127,7 @@ export declare class AssetManager implements Disposable {
123
127
  private processTextures;
124
128
  private loadJSON;
125
129
  private loadBins;
130
+ private removeTimer;
126
131
  /**
127
132
  * 销毁方法
128
133
  */
@@ -37,9 +37,9 @@ export interface CompositionProps {
37
37
  reusable?: boolean;
38
38
  baseRenderOrder?: number;
39
39
  renderer: Renderer;
40
- handlePlayerPause?: (item: VFXItem<any>) => void;
41
- handleMessageItem?: (item: MessageItem) => void;
42
- handleEnd?: (composition: Composition) => void;
40
+ onPlayerPause?: (item: VFXItem<any>) => void;
41
+ onMessageItem?: (item: MessageItem) => void;
42
+ onEnd?: (composition: Composition) => void;
43
43
  event?: EventSystem;
44
44
  width: number;
45
45
  height: number;
@@ -84,12 +84,17 @@ export declare class Composition implements Disposable, LostHandler {
84
84
  keepResource: boolean;
85
85
  /**
86
86
  * 合成结束行为是 spec.END_BEHAVIOR_PAUSE 或 spec.END_BEHAVIOR_PAUSE_AND_DESTROY 时执行的回调
87
+ * @internal
87
88
  */
88
- handlePlayerPause?: (item: VFXItem<any>) => void;
89
+ onPlayerPause?: (item: VFXItem<any>) => void;
89
90
  /**
90
91
  * 单个合成结束时的回调
91
92
  */
92
- handleEnd?: (composition: Composition) => void;
93
+ onEnd?: (composition: Composition) => void;
94
+ /**
95
+ * 合成中消息元素创建/销毁时触发的回调
96
+ */
97
+ onMessageItem?: (item: MessageItem) => void;
93
98
  /**
94
99
  * 合成id
95
100
  */
@@ -171,12 +176,17 @@ export declare class Composition implements Disposable, LostHandler {
171
176
  private readonly globalVolume;
172
177
  private readonly texInfo;
173
178
  private readonly postLoaders;
174
- private readonly handleMessageItem?;
175
179
  /**
176
180
  * Composition 构造函数
177
181
  * @param props - composition 的创建参数
178
182
  */
179
183
  constructor(props: CompositionProps, scene: Scene);
184
+ /**
185
+ * 合成结束回调
186
+ * @param {(composition: Composition) => void} func
187
+ * @deprecated since 2.0 - use `onEnd` instead
188
+ */
189
+ set handleEnd(func: (composition: Composition) => void);
180
190
  /**
181
191
  * 获取场景中的纹理数组
182
192
  */
package/dist/config.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  export declare const RUNTIME_ENV = "runtime_env";
2
- export declare const LOG_TYPE = "galacean-effects";
3
2
  export declare const RENDER_PREFER_LOOKUP_TEXTURE = "lookup_texture";
4
3
  export declare const TEMPLATE_USE_OFFSCREEN_CANVAS = "offscreen_canvas";
5
4
  export declare const POST_PROCESS_SETTINGS = "post_process_settings";
package/dist/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- import './polyfill';
2
1
  export * as spec from '@galacean/effects-specification';
3
2
  export { getStandardJSON, getStandardImage, getStandardComposition, getStandardItem, } from '@galacean/effects-specification/dist/fallback';
4
3
  export * as math from '@galacean/effects-math/es/core/index';