@galacean/effects-core 2.1.0-alpha.10 → 2.1.0-alpha.11
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/comp-vfx-item.d.ts +2 -2
- package/dist/components/post-process-volume.d.ts +7 -10
- package/dist/components/shape-component.d.ts +18 -24
- package/dist/composition.d.ts +5 -0
- package/dist/index.js +256 -227
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +264 -234
- package/dist/index.mjs.map +1 -1
- package/dist/material/material.d.ts +4 -1
- package/dist/plugins/cal/playable-graph.d.ts +3 -0
- package/dist/plugins/interact/interact-item.d.ts +2 -1
- package/dist/plugins/timeline/playables/activation-mixer-playable.d.ts +0 -2
- package/dist/vfx-item.d.ts +22 -22
- package/package.json +2 -2
|
@@ -51,7 +51,6 @@ export interface MaterialProps {
|
|
|
51
51
|
* Material 抽象类
|
|
52
52
|
*/
|
|
53
53
|
export declare abstract class Material extends EffectsObject implements Disposable {
|
|
54
|
-
shader: Shader;
|
|
55
54
|
shaderVariant: ShaderVariant;
|
|
56
55
|
shaderSource: ShaderWithSource;
|
|
57
56
|
stringTags: Record<string, string>;
|
|
@@ -62,11 +61,15 @@ export declare abstract class Material extends EffectsObject implements Disposab
|
|
|
62
61
|
readonly props: MaterialProps;
|
|
63
62
|
protected destroyed: boolean;
|
|
64
63
|
protected initialized: boolean;
|
|
64
|
+
protected shaderDirty: boolean;
|
|
65
|
+
private _shader;
|
|
65
66
|
/**
|
|
66
67
|
*
|
|
67
68
|
* @param props - 材质属性
|
|
68
69
|
*/
|
|
69
70
|
constructor(engine: Engine, props?: MaterialProps);
|
|
71
|
+
get shader(): Shader;
|
|
72
|
+
set shader(value: Shader);
|
|
70
73
|
/******** effects-core 中会调用 引擎必须实现 ***********************/
|
|
71
74
|
/**
|
|
72
75
|
* 设置 Material 的颜色融合开关
|
|
@@ -22,6 +22,7 @@ export declare class PlayableGraph {
|
|
|
22
22
|
export declare class Playable implements Disposable {
|
|
23
23
|
onPlayablePlayFlag: boolean;
|
|
24
24
|
onPlayablePauseFlag: boolean;
|
|
25
|
+
private duration;
|
|
25
26
|
private destroyed;
|
|
26
27
|
private inputs;
|
|
27
28
|
private inputOuputPorts;
|
|
@@ -49,6 +50,8 @@ export declare class Playable implements Disposable {
|
|
|
49
50
|
setInputWeight(inputIndex: number, weight: number): void;
|
|
50
51
|
setTime(time: number): void;
|
|
51
52
|
getTime(): number;
|
|
53
|
+
setDuration(duration: number): void;
|
|
54
|
+
getDuration(): number;
|
|
52
55
|
getPlayState(): PlayState;
|
|
53
56
|
setTraversalMode(mode: PlayableTraversalMode): void;
|
|
54
57
|
getTraversalMode(): PlayableTraversalMode;
|
|
@@ -32,7 +32,6 @@ export declare class InteractComponent extends RendererComponent {
|
|
|
32
32
|
};
|
|
33
33
|
/** 是否响应点击和拖拽交互事件 */
|
|
34
34
|
private _interactive;
|
|
35
|
-
private hasBeenAddedToComposition;
|
|
36
35
|
set interactive(enable: boolean);
|
|
37
36
|
get interactive(): boolean;
|
|
38
37
|
getDragRangeX(): [min: number, max: number];
|
|
@@ -40,6 +39,8 @@ export declare class InteractComponent extends RendererComponent {
|
|
|
40
39
|
getDragRangeY(): [min: number, max: number];
|
|
41
40
|
setDragRangeY(min: number, max: number): void;
|
|
42
41
|
onStart(): void;
|
|
42
|
+
onDisable(): void;
|
|
43
|
+
onEnable(): void;
|
|
43
44
|
onUpdate(dt: number): void;
|
|
44
45
|
render(renderer: Renderer): void;
|
|
45
46
|
onDestroy(): void;
|
|
@@ -2,6 +2,4 @@ import type { FrameContext } from '../../cal/playable-graph';
|
|
|
2
2
|
import { Playable } from '../../cal/playable-graph';
|
|
3
3
|
export declare class ActivationMixerPlayable extends Playable {
|
|
4
4
|
processFrame(context: FrameContext): void;
|
|
5
|
-
private hideRendererComponents;
|
|
6
|
-
private showRendererComponents;
|
|
7
5
|
}
|
package/dist/vfx-item.d.ts
CHANGED
|
@@ -59,10 +59,6 @@ export declare class VFXItem extends EffectsObject implements Disposable {
|
|
|
59
59
|
* 元素动画结束时行为(如何处理元素)
|
|
60
60
|
*/
|
|
61
61
|
endBehavior: spec.EndBehavior;
|
|
62
|
-
/**
|
|
63
|
-
* 元素是否可用
|
|
64
|
-
*/
|
|
65
|
-
ended: boolean;
|
|
66
62
|
/**
|
|
67
63
|
* 元素名称
|
|
68
64
|
*/
|
|
@@ -75,17 +71,19 @@ export declare class VFXItem extends EffectsObject implements Disposable {
|
|
|
75
71
|
* 元素创建的数据图层/粒子/模型等
|
|
76
72
|
*/
|
|
77
73
|
_content?: VFXItemContent;
|
|
78
|
-
reusable: boolean;
|
|
79
74
|
type: spec.ItemType;
|
|
80
75
|
props: VFXItemProps;
|
|
81
76
|
isDuringPlay: boolean;
|
|
82
77
|
components: Component[];
|
|
83
78
|
rendererComponents: RendererComponent[];
|
|
84
79
|
/**
|
|
85
|
-
*
|
|
86
|
-
* @protected
|
|
80
|
+
* 元素是否激活
|
|
87
81
|
*/
|
|
88
|
-
|
|
82
|
+
private active;
|
|
83
|
+
/**
|
|
84
|
+
* 元素组件是否显示,用于批量开关元素组件
|
|
85
|
+
*/
|
|
86
|
+
private visible;
|
|
89
87
|
/**
|
|
90
88
|
* 元素动画的速度
|
|
91
89
|
*/
|
|
@@ -216,24 +214,32 @@ export declare class VFXItem extends EffectsObject implements Disposable {
|
|
|
216
214
|
*/
|
|
217
215
|
getComponents<T extends Component>(classConstructor: Constructor<T>): T[];
|
|
218
216
|
setParent(vfxItem: VFXItem): void;
|
|
219
|
-
/**
|
|
220
|
-
* 元素动画结束播放时回调函数
|
|
221
|
-
* @override
|
|
222
|
-
*/
|
|
223
|
-
onEnd(): void;
|
|
224
217
|
/**
|
|
225
218
|
* 设置元素的透明度
|
|
226
219
|
* @param opacity - 透明度值,范围 [0,1]
|
|
227
220
|
*/
|
|
228
221
|
setOpacity(opacity: number): void;
|
|
229
222
|
/**
|
|
230
|
-
*
|
|
223
|
+
* 激活或停用 VFXItem
|
|
231
224
|
*/
|
|
232
|
-
|
|
225
|
+
setActive(value: boolean): void;
|
|
226
|
+
/**
|
|
227
|
+
* 当前 VFXItem 是否激活
|
|
228
|
+
*/
|
|
229
|
+
get isActive(): boolean;
|
|
233
230
|
/**
|
|
234
|
-
*
|
|
231
|
+
* 设置元素的显隐,该设置会批量开关元素组件
|
|
235
232
|
*/
|
|
236
233
|
setVisible(visible: boolean): void;
|
|
234
|
+
/**
|
|
235
|
+
* 元素组件显隐状态
|
|
236
|
+
*/
|
|
237
|
+
get isVisible(): boolean;
|
|
238
|
+
/**
|
|
239
|
+
* 元素组件显隐状态
|
|
240
|
+
* @deprecated use isVisible instead
|
|
241
|
+
*/
|
|
242
|
+
getVisible(): boolean;
|
|
237
243
|
/**
|
|
238
244
|
* 获取元素变换包括位置、旋转、缩放
|
|
239
245
|
* @param transform 将元素变换拷贝到该对象,并将其作为返回值
|
|
@@ -288,12 +294,6 @@ export declare class VFXItem extends EffectsObject implements Disposable {
|
|
|
288
294
|
* 获取元素当前世界坐标
|
|
289
295
|
*/
|
|
290
296
|
getCurrentPosition(): Vector3;
|
|
291
|
-
/**
|
|
292
|
-
* 是否到达元素的结束时间
|
|
293
|
-
* @param now
|
|
294
|
-
* @returns
|
|
295
|
-
*/
|
|
296
|
-
isEnded(now: number): boolean;
|
|
297
297
|
find(name: string): VFXItem | undefined;
|
|
298
298
|
fromData(data: VFXItemData): void;
|
|
299
299
|
toData(): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@galacean/effects-core",
|
|
3
|
-
"version": "2.1.0-alpha.
|
|
3
|
+
"version": "2.1.0-alpha.11",
|
|
4
4
|
"description": "Galacean Effects runtime core for the web",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"registry": "https://registry.npmjs.org"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@galacean/effects-specification": "2.1.0-alpha.
|
|
45
|
+
"@galacean/effects-specification": "2.1.0-alpha.3",
|
|
46
46
|
"@galacean/effects-math": "1.1.0",
|
|
47
47
|
"flatbuffers": "24.3.25",
|
|
48
48
|
"uuid": "9.0.1",
|