@galacean/effects-core 1.1.8 → 1.2.0
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/composition.d.ts +16 -6
- package/dist/config.d.ts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +190 -6138
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +190 -6138
- package/dist/index.mjs.map +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/logger.d.ts +22 -0
- package/dist/vfx-item.d.ts +1 -1
- package/package.json +2 -2
- package/dist/polyfill.d.ts +0 -4
package/dist/composition.d.ts
CHANGED
|
@@ -37,9 +37,9 @@ export interface CompositionProps {
|
|
|
37
37
|
reusable?: boolean;
|
|
38
38
|
baseRenderOrder?: number;
|
|
39
39
|
renderer: Renderer;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
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
|
-
|
|
89
|
+
onPlayerPause?: (item: VFXItem<any>) => void;
|
|
89
90
|
/**
|
|
90
91
|
* 单个合成结束时的回调
|
|
91
92
|
*/
|
|
92
|
-
|
|
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';
|