@galacean/effects-core 2.8.9 → 2.9.0-alpha.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.
- package/dist/animation/animation-clip.d.ts +2 -0
- package/dist/animation/animation-events.d.ts +29 -0
- package/dist/animation/index.d.ts +1 -0
- package/dist/asset-manager.d.ts +2 -0
- package/dist/asset-service.d.ts +0 -1
- package/dist/camera.d.ts +2 -16
- package/dist/components/base-render-component.d.ts +5 -8
- package/dist/components/component.d.ts +4 -0
- package/dist/components/composition-component.d.ts +26 -6
- package/dist/components/frame-component.d.ts +19 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/mesh-component.d.ts +5 -11
- package/dist/components/renderer-component.d.ts +18 -2
- package/dist/components/shape-component.d.ts +2 -6
- package/dist/composition/scene-ticking.d.ts +4 -0
- package/dist/composition.d.ts +8 -5
- package/dist/culling/bounding-box.d.ts +114 -0
- package/dist/engine.d.ts +2 -1
- package/dist/events/types.d.ts +11 -0
- package/dist/fallback/migration.d.ts +9 -8
- package/dist/fallback/utils.d.ts +0 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +23738 -21775
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +23732 -21775
- package/dist/index.mjs.map +1 -1
- package/dist/material/mask-ref-manager.d.ts +1 -16
- package/dist/material/types.d.ts +14 -2
- package/dist/math/index.d.ts +6 -0
- package/dist/math/shape/circle.d.ts +196 -0
- package/dist/{plugins → math}/shape/graphics-path.d.ts +29 -1
- package/dist/{plugins → math}/shape/shape-path.d.ts +28 -0
- package/dist/math/utils.d.ts +20 -0
- package/dist/plugins/animation-graph/graph-context.d.ts +2 -0
- package/dist/plugins/animation-graph/graph-instance.d.ts +2 -0
- package/dist/plugins/animation-graph/nodes/animation-clip-node.d.ts +1 -0
- package/dist/plugins/index.d.ts +0 -6
- package/dist/plugins/interact/mesh-collider.d.ts +28 -5
- package/dist/plugins/particle/particle-system-renderer.d.ts +0 -2
- package/dist/plugins/particle/particle-system.d.ts +4 -3
- package/dist/plugins/particle/particle-vfx-item.d.ts +2 -3
- package/dist/plugins/text/text-component-base.d.ts +50 -14
- package/dist/plugins/text/text-item.d.ts +52 -52
- package/dist/plugins/text/text-layout.d.ts +4 -5
- package/dist/plugins/timeline/playable.d.ts +2 -1
- package/dist/plugins/timeline/timeline-asset.d.ts +1 -5
- package/dist/plugins/timeline/track.d.ts +0 -3
- package/dist/precompositions/index.d.ts +2 -0
- package/dist/precompositions/precomposition-manager.d.ts +13 -0
- package/dist/precompositions/precomposition.d.ts +7 -0
- package/dist/render/graphics.d.ts +136 -0
- package/dist/render/index.d.ts +1 -0
- package/dist/render/render-frame.d.ts +1 -2
- package/dist/scene-loader.d.ts +3 -0
- package/dist/scene.d.ts +0 -1
- package/dist/vfx-item.d.ts +11 -7
- package/package.json +2 -2
- /package/dist/{plugins → math}/shape/build-adaptive-bezier.d.ts +0 -0
- /package/dist/{plugins → math}/shape/build-line.d.ts +0 -0
- /package/dist/{plugins → math}/shape/ellipse.d.ts +0 -0
- /package/dist/{plugins → math}/shape/point-data.d.ts +0 -0
- /package/dist/{plugins → math}/shape/point-like.d.ts +0 -0
- /package/dist/{plugins → math}/shape/point.d.ts +0 -0
- /package/dist/{plugins → math}/shape/poly-star.d.ts +0 -0
- /package/dist/{plugins → math}/shape/polygon.d.ts +0 -0
- /package/dist/{plugins → math}/shape/rectangle.d.ts +0 -0
- /package/dist/{plugins → math}/shape/shape-primitive.d.ts +0 -0
- /package/dist/{plugins → math}/shape/triangle.d.ts +0 -0
- /package/dist/{plugins → math}/shape/triangulate.d.ts +0 -0
|
@@ -3,15 +3,15 @@ import { MaskableGraphic } from '../../components';
|
|
|
3
3
|
import type { Engine } from '../../engine';
|
|
4
4
|
import { TextLayout } from './text-layout';
|
|
5
5
|
import { TextStyle } from './text-style';
|
|
6
|
-
import type { ITextComponent } from './text-component-base';
|
|
7
6
|
import { TextComponentBase } from './text-component-base';
|
|
7
|
+
import type { Renderer } from '../../render/renderer';
|
|
8
8
|
export declare const DEFAULT_FONTS: string[];
|
|
9
9
|
export interface TextComponent extends TextComponentBase {
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
12
|
* @since 2.0.0
|
|
13
13
|
*/
|
|
14
|
-
export declare class TextComponent extends MaskableGraphic
|
|
14
|
+
export declare class TextComponent extends MaskableGraphic {
|
|
15
15
|
isDirty: boolean;
|
|
16
16
|
/**
|
|
17
17
|
* 文本行数
|
|
@@ -31,25 +31,21 @@ export declare class TextComponent extends MaskableGraphic implements ITextCompo
|
|
|
31
31
|
* 每一行文本的最大宽度
|
|
32
32
|
*/
|
|
33
33
|
protected maxLineWidth: number;
|
|
34
|
-
/**
|
|
35
|
-
* 初始文本宽度,用于计算缩放比例
|
|
36
|
-
*/
|
|
37
|
-
private baseTextWidth;
|
|
38
|
-
/**
|
|
39
|
-
* 初始 `transform.size.x`,用于按比例更新显示宽度
|
|
40
|
-
*/
|
|
41
|
-
private baseScaleX;
|
|
42
|
-
private getDefaultProps;
|
|
43
34
|
constructor(engine: Engine);
|
|
44
35
|
onUpdate(dt: number): void;
|
|
36
|
+
render(renderer: Renderer): void;
|
|
45
37
|
onDestroy(): void;
|
|
46
38
|
fromData(data: spec.TextComponentData): void;
|
|
47
39
|
private resetState;
|
|
48
|
-
setText(value: string): void;
|
|
49
40
|
/**
|
|
50
41
|
* 根据配置更新文本样式和布局
|
|
51
42
|
*/
|
|
52
43
|
updateWithOptions(options: spec.TextContentOptions): void;
|
|
44
|
+
/**
|
|
45
|
+
* 获取文本行数
|
|
46
|
+
* @param text - 文本内容
|
|
47
|
+
* @returns 行数
|
|
48
|
+
*/
|
|
53
49
|
getLineCount(text: string): number;
|
|
54
50
|
/**
|
|
55
51
|
* 设置行高
|
|
@@ -57,46 +53,8 @@ export declare class TextComponent extends MaskableGraphic implements ITextCompo
|
|
|
57
53
|
* @param value - 行高像素值
|
|
58
54
|
*/
|
|
59
55
|
setLineHeight(value: number): void;
|
|
60
|
-
/**
|
|
61
|
-
* 设置字重
|
|
62
|
-
* @param value - 字重类型
|
|
63
|
-
* @returns
|
|
64
|
-
*/
|
|
65
|
-
setFontWeight(value: spec.TextWeight): void;
|
|
66
|
-
/**
|
|
67
|
-
* 设置字体样式
|
|
68
|
-
* @param value 设置字体样式
|
|
69
|
-
* @default "normal"
|
|
70
|
-
* @returns
|
|
71
|
-
*/
|
|
72
|
-
setFontStyle(value: spec.FontStyle): void;
|
|
73
|
-
/**
|
|
74
|
-
* 设置文本水平布局
|
|
75
|
-
* @param value - 布局选项
|
|
76
|
-
* @returns
|
|
77
|
-
*/
|
|
78
|
-
setTextAlign(value: spec.TextAlignment): void;
|
|
79
|
-
/**
|
|
80
|
-
* 设置文本颜色
|
|
81
|
-
* @param value - 颜色内容
|
|
82
|
-
* @returns
|
|
83
|
-
*/
|
|
84
|
-
setTextColor(value: spec.RGBAColorValue): void;
|
|
85
|
-
/**
|
|
86
|
-
* 设置外描边文本颜色
|
|
87
|
-
* @param value - 颜色内容
|
|
88
|
-
* @returns
|
|
89
|
-
*/
|
|
90
|
-
setOutlineColor(value: spec.RGBAColorValue): void;
|
|
91
|
-
/**
|
|
92
|
-
* 设置字体清晰度
|
|
93
|
-
* @param value - 字体清晰度
|
|
94
|
-
* @returns
|
|
95
|
-
*/
|
|
96
|
-
setFontScale(value: number): void;
|
|
97
56
|
/**
|
|
98
57
|
* 更新文本
|
|
99
|
-
* @returns
|
|
100
58
|
*/
|
|
101
59
|
protected updateTexture(flipY?: boolean): void;
|
|
102
60
|
renderText(options: spec.TextContentOptions): void;
|
|
@@ -115,7 +73,7 @@ export declare class TextComponent extends MaskableGraphic implements ITextCompo
|
|
|
115
73
|
padT: number;
|
|
116
74
|
padB: number;
|
|
117
75
|
};
|
|
118
|
-
|
|
76
|
+
setAutoResize(value: spec.TextSizeMode): void;
|
|
119
77
|
/**
|
|
120
78
|
* 设置文本框宽度
|
|
121
79
|
* 手动设置宽度时会自动关闭 `autoWidth`
|
|
@@ -128,16 +86,58 @@ export declare class TextComponent extends MaskableGraphic implements ITextCompo
|
|
|
128
86
|
* @param value - 文本框高度
|
|
129
87
|
*/
|
|
130
88
|
setTextHeight(value: number): void;
|
|
89
|
+
/**
|
|
90
|
+
* 设置字体大小
|
|
91
|
+
* @param value - 字体大小
|
|
92
|
+
* @default 40
|
|
93
|
+
*/
|
|
131
94
|
setFontSize(value: number): void;
|
|
95
|
+
/**
|
|
96
|
+
* 设置描边宽度
|
|
97
|
+
* @param value - 描边宽度
|
|
98
|
+
* @default 0
|
|
99
|
+
*/
|
|
132
100
|
setOutlineWidth(value: number): void;
|
|
133
101
|
/**
|
|
134
102
|
* 设置是否启用文本描边
|
|
135
103
|
* @param value - 是否启用描边
|
|
136
|
-
* @returns
|
|
137
104
|
*/
|
|
138
105
|
setOutlineEnabled(value: boolean): void;
|
|
106
|
+
/**
|
|
107
|
+
* 设置阴影模糊度
|
|
108
|
+
* @param value - 阴影模糊度
|
|
109
|
+
* @default 0
|
|
110
|
+
*/
|
|
139
111
|
setShadowBlur(value: number): void;
|
|
112
|
+
/**
|
|
113
|
+
* 设置阴影颜色
|
|
114
|
+
* > setupShadow 使用 outlineColor 作为阴影颜色,更新 shadowColor 不影响阴影颜色
|
|
115
|
+
* @param value - 阴影颜色
|
|
116
|
+
* @returns
|
|
117
|
+
*/
|
|
140
118
|
setShadowColor(value: spec.RGBAColorValue): void;
|
|
119
|
+
/**
|
|
120
|
+
* 设置阴影偏移 X
|
|
121
|
+
* @param value - 阴影偏移值
|
|
122
|
+
* @returns
|
|
123
|
+
*/
|
|
141
124
|
setShadowOffsetX(value: number): void;
|
|
125
|
+
/**
|
|
126
|
+
* 设置阴影偏移 Y
|
|
127
|
+
* @param value - 阴影偏移值
|
|
128
|
+
* @returns
|
|
129
|
+
*/
|
|
142
130
|
setShadowOffsetY(value: number): void;
|
|
131
|
+
/**
|
|
132
|
+
* 计算文本在当前样式与布局规则下的建议宽度(逻辑像素)。
|
|
133
|
+
*
|
|
134
|
+
* 说明:
|
|
135
|
+
* - 使用 Canvas 2D 的 measureText,并按当前实现的逐字符排版规则累加宽度(与 updateTexture 保持一致)。
|
|
136
|
+
* - 结果为"逻辑宽度"(已除去 fontScale,并扣除 fontOffset),可直接写回 options.textWidth。
|
|
137
|
+
* - 通过 padding 追加少量冗余像素,用于降低边缘裁切风险。
|
|
138
|
+
*
|
|
139
|
+
* @returns 文本宽度(>= 0)
|
|
140
|
+
*/
|
|
141
|
+
getTextWidth(): number;
|
|
142
|
+
private getDefaultProps;
|
|
143
143
|
}
|
|
@@ -8,15 +8,14 @@ export declare class TextLayout implements BaseLayout {
|
|
|
8
8
|
overflow: spec.TextOverflow;
|
|
9
9
|
width: number;
|
|
10
10
|
height: number;
|
|
11
|
-
/**
|
|
12
|
-
* 自适应宽高开关
|
|
13
|
-
*/
|
|
14
|
-
autoWidth: boolean;
|
|
15
|
-
maxTextWidth: number;
|
|
16
11
|
/**
|
|
17
12
|
* 行高
|
|
18
13
|
*/
|
|
19
14
|
lineHeight: number;
|
|
15
|
+
/**
|
|
16
|
+
* 自动宽高模式
|
|
17
|
+
*/
|
|
18
|
+
autoResize: spec.TextSizeMode;
|
|
20
19
|
constructor(options: spec.TextContentOptions);
|
|
21
20
|
update(options: spec.TextContentOptions): void;
|
|
22
21
|
/**
|
|
@@ -14,13 +14,9 @@ export declare class TimelineAsset extends EffectsObject {
|
|
|
14
14
|
private addSubTracksRecursive;
|
|
15
15
|
}
|
|
16
16
|
export declare class TimelineInstance {
|
|
17
|
-
private time;
|
|
18
17
|
private clips;
|
|
19
|
-
private masterTrackInstances;
|
|
20
18
|
constructor(timelineAsset: TimelineAsset, sceneBindings: SceneBinding[]);
|
|
21
|
-
|
|
22
|
-
getTime(): number;
|
|
23
|
-
evaluate(deltaTime: number): void;
|
|
19
|
+
evaluate(time: number, deltaTime: number): void;
|
|
24
20
|
compileTracks(tracks: TrackAsset[], sceneBindings: SceneBinding[]): void;
|
|
25
21
|
private tickTrack;
|
|
26
22
|
private updateTrackAnimatedObject;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as spec from '@galacean/effects-specification';
|
|
2
2
|
import { Playable, PlayableAsset, PlayableOutput } from './playable';
|
|
3
|
-
import { ParticleSystem } from '../particle/particle-system';
|
|
4
3
|
import type { Constructor } from '../../utils';
|
|
5
4
|
import { TrackMixerPlayable } from './playables';
|
|
6
5
|
/**
|
|
@@ -56,10 +55,8 @@ export declare class RuntimeClip {
|
|
|
56
55
|
clip: TimelineClip;
|
|
57
56
|
playable: Playable;
|
|
58
57
|
parentMixer: TrackMixerPlayable;
|
|
59
|
-
private particleSystem;
|
|
60
58
|
constructor(clip: TimelineClip, clipPlayable: Playable, parentMixer: TrackMixerPlayable);
|
|
61
59
|
set enable(value: boolean);
|
|
62
|
-
getParticleSystem(): ParticleSystem;
|
|
63
60
|
evaluateAt(localTime: number): void;
|
|
64
61
|
}
|
|
65
62
|
/**
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Composition } from '../composition';
|
|
2
|
+
import { VFXItem } from '../vfx-item';
|
|
3
|
+
import type { Precomposition } from './precomposition';
|
|
4
|
+
export declare class PrecompositionManager {
|
|
5
|
+
/**
|
|
6
|
+
* 从预合成数据实例化一棵 VFXItem 树。
|
|
7
|
+
* 可挂载到现有合成的节点下。
|
|
8
|
+
* @param precomposition 预合成数据
|
|
9
|
+
* @param composition 目标合成
|
|
10
|
+
* @returns 实例化生成的根 VFXItem,其子树包含指定合成的所有元素
|
|
11
|
+
*/
|
|
12
|
+
static instantiate(precomposition: Precomposition, composition: Composition): VFXItem;
|
|
13
|
+
}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { Color } from '@galacean/effects-math/es/core/color';
|
|
2
|
+
import { Matrix3 } from '@galacean/effects-math/es/core/matrix3';
|
|
3
|
+
import type { Engine } from '../engine';
|
|
4
|
+
export declare class Graphics {
|
|
5
|
+
private engine;
|
|
6
|
+
private geometry;
|
|
7
|
+
private material;
|
|
8
|
+
private graphicsPath;
|
|
9
|
+
private vertices;
|
|
10
|
+
private colors;
|
|
11
|
+
private indices;
|
|
12
|
+
private lineStyle;
|
|
13
|
+
private transformStack;
|
|
14
|
+
private currentTransform;
|
|
15
|
+
private get currentVertexCount();
|
|
16
|
+
private get currentIndexCount();
|
|
17
|
+
constructor(engine: Engine);
|
|
18
|
+
/**
|
|
19
|
+
* 清空缓冲区,准备新的绘制批次
|
|
20
|
+
*/
|
|
21
|
+
begin(): void;
|
|
22
|
+
/**
|
|
23
|
+
* 将当前变换压入栈,并设置新的变换
|
|
24
|
+
* @param transform - 新的变换矩阵(会与当前变换相乘)
|
|
25
|
+
*/
|
|
26
|
+
pushTransform(transform: Matrix3): void;
|
|
27
|
+
/**
|
|
28
|
+
* 恢复上一个变换
|
|
29
|
+
*/
|
|
30
|
+
popTransform(): void;
|
|
31
|
+
/**
|
|
32
|
+
* 刷新并渲染所有累积的绘制命令
|
|
33
|
+
*/
|
|
34
|
+
end(): void;
|
|
35
|
+
/**
|
|
36
|
+
* 线段顶点按顺序连接 (p0-p1, p1-p2, p2-p3, ...)
|
|
37
|
+
* @param points - 点数组,格式 [x1,y1,x2,y2,...],至少需要2个点(4个数值)
|
|
38
|
+
* @param color - 线条颜色,范围 0-1
|
|
39
|
+
* @param thickness - 线宽(像素)
|
|
40
|
+
*/
|
|
41
|
+
drawLines(points: number[], color?: Color, thickness?: number): void;
|
|
42
|
+
/**
|
|
43
|
+
* 绘制单条线段
|
|
44
|
+
* @param x1 - 起点x
|
|
45
|
+
* @param y1 - 起点y
|
|
46
|
+
* @param x2 - 终点x
|
|
47
|
+
* @param y2 - 终点y
|
|
48
|
+
* @param color - 线条颜色
|
|
49
|
+
* @param thickness - 线宽
|
|
50
|
+
*/
|
|
51
|
+
drawLine(x1: number, y1: number, x2: number, y2: number, color?: Color, thickness?: number): void;
|
|
52
|
+
/**
|
|
53
|
+
* 绘制贝塞尔曲线
|
|
54
|
+
* @param x1 - 起点x
|
|
55
|
+
* @param y1 - 起点y
|
|
56
|
+
* @param x2 - 控制点1x
|
|
57
|
+
* @param y2 - 控制点1y
|
|
58
|
+
* @param x3 - 控制点2x
|
|
59
|
+
* @param y3 - 控制点2y
|
|
60
|
+
* @param x4 - 终点x
|
|
61
|
+
* @param y4 - 终点y
|
|
62
|
+
* @param color - 线条颜色
|
|
63
|
+
* @param thickness - 线宽
|
|
64
|
+
*/
|
|
65
|
+
drawBezier(x1: number, y1: number, x2: number, y2: number, x3: number, y3: number, x4: number, y4: number, color?: Color, thickness?: number): void;
|
|
66
|
+
/**
|
|
67
|
+
* 绘制三角形边框
|
|
68
|
+
* @param x1 - 顶点1x
|
|
69
|
+
* @param y1 - 顶点1y
|
|
70
|
+
* @param x2 - 顶点2x
|
|
71
|
+
* @param y2 - 顶点2y
|
|
72
|
+
* @param x3 - 顶点3x
|
|
73
|
+
* @param y3 - 顶点3y
|
|
74
|
+
* @param color - 线条颜色
|
|
75
|
+
* @param thickness - 线宽
|
|
76
|
+
*/
|
|
77
|
+
drawTriangle(x1: number, y1: number, x2: number, y2: number, x3: number, y3: number, color?: Color, thickness?: number): void;
|
|
78
|
+
/**
|
|
79
|
+
* 绘制矩形边框
|
|
80
|
+
* @param x - 矩形左下角 X 坐标
|
|
81
|
+
* @param y - 矩形左下角 Y 坐标
|
|
82
|
+
* @param width - 矩形宽度
|
|
83
|
+
* @param height - 矩形高度
|
|
84
|
+
* @param color - 矩形颜色
|
|
85
|
+
*/
|
|
86
|
+
drawRectangle(x: number, y: number, width: number, height: number, color?: Color, thickness?: number): void;
|
|
87
|
+
/**
|
|
88
|
+
* 绘制圆形边框
|
|
89
|
+
* @param cx - 圆心x
|
|
90
|
+
* @param cy - 圆心y
|
|
91
|
+
* @param radius - 半径
|
|
92
|
+
* @param color - 线条颜色
|
|
93
|
+
* @param thickness - 线宽
|
|
94
|
+
*/
|
|
95
|
+
drawCircle(cx: number, cy: number, radius: number, color?: Color, thickness?: number): void;
|
|
96
|
+
/**
|
|
97
|
+
* 绘制填充三角形
|
|
98
|
+
* @param x1 - 顶点1x
|
|
99
|
+
* @param y1 - 顶点1y
|
|
100
|
+
* @param x2 - 顶点2x
|
|
101
|
+
* @param y2 - 顶点2y
|
|
102
|
+
* @param x3 - 顶点3x
|
|
103
|
+
* @param y3 - 顶点3y
|
|
104
|
+
* @param color - 填充颜色
|
|
105
|
+
*/
|
|
106
|
+
fillTriangle(x1: number, y1: number, x2: number, y2: number, x3: number, y3: number, color?: Color): void;
|
|
107
|
+
/**
|
|
108
|
+
* 绘制填充矩形
|
|
109
|
+
* @param x - 矩形左下角 X 坐标
|
|
110
|
+
* @param y - 矩形左下角 Y 坐标
|
|
111
|
+
* @param width - 矩形宽度
|
|
112
|
+
* @param height - 矩形高度
|
|
113
|
+
* @param color - 矩形颜色
|
|
114
|
+
*/
|
|
115
|
+
fillRectangle(x: number, y: number, width: number, height: number, color?: Color): void;
|
|
116
|
+
/**
|
|
117
|
+
* 绘制填充圆形
|
|
118
|
+
* @param cx - 圆心x
|
|
119
|
+
* @param cy - 圆心y
|
|
120
|
+
* @param radius - 半径
|
|
121
|
+
* @param color - 填充颜色
|
|
122
|
+
*/
|
|
123
|
+
fillCircle(cx: number, cy: number, radius: number, color?: Color): void;
|
|
124
|
+
dispose(): void;
|
|
125
|
+
private buildShape;
|
|
126
|
+
private buildShapeLine;
|
|
127
|
+
private applyTransformAndColor;
|
|
128
|
+
/**
|
|
129
|
+
* 应用自定义变换到点
|
|
130
|
+
* @param x - 点的 x 坐标
|
|
131
|
+
* @param y - 点的 y 坐标
|
|
132
|
+
* @param result - 变换结果存储数组
|
|
133
|
+
* @param offset - 存储数组的偏移位置
|
|
134
|
+
*/
|
|
135
|
+
private applyTransform;
|
|
136
|
+
}
|
package/dist/render/index.d.ts
CHANGED
|
@@ -61,7 +61,7 @@ export declare class RenderFrame implements Disposable {
|
|
|
61
61
|
/**
|
|
62
62
|
* 当前使用的全部 RenderPass
|
|
63
63
|
*/
|
|
64
|
-
|
|
64
|
+
renderPasses: RenderPass[];
|
|
65
65
|
/**
|
|
66
66
|
* 渲染时的相机
|
|
67
67
|
*/
|
|
@@ -82,7 +82,6 @@ export declare class RenderFrame implements Disposable {
|
|
|
82
82
|
private postProcessingEnabled;
|
|
83
83
|
private enableHDR;
|
|
84
84
|
constructor(options: RenderFrameOptions);
|
|
85
|
-
get renderPasses(): RenderPass[];
|
|
86
85
|
get isDisposed(): boolean;
|
|
87
86
|
/**
|
|
88
87
|
* 设置 RenderPasses 参数,此函数每帧调用一次
|
package/dist/scene-loader.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { Composition } from './composition';
|
|
2
2
|
import type { Engine } from './engine';
|
|
3
3
|
import type { Scene, SceneLoadOptions } from './scene';
|
|
4
|
+
/**
|
|
5
|
+
* @hidden
|
|
6
|
+
*/
|
|
4
7
|
export declare class SceneLoader {
|
|
5
8
|
static load(scene: Scene.LoadType, engine: Engine, options?: SceneLoadOptions): Promise<Composition>;
|
|
6
9
|
private static createComposition;
|
package/dist/scene.d.ts
CHANGED
package/dist/vfx-item.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Vector3 } from '@galacean/effects-math/es/core/vector3';
|
|
2
2
|
import * as spec from '@galacean/effects-specification';
|
|
3
3
|
import type { Component } from './components';
|
|
4
|
-
import { Composition } from './composition';
|
|
4
|
+
import type { Composition } from './composition';
|
|
5
5
|
import { EffectsObject } from './effects-object';
|
|
6
6
|
import type { Engine } from './engine';
|
|
7
7
|
import type { EventEmitterListener, EventEmitterOptions, ItemEvent } from './events';
|
|
@@ -49,10 +49,18 @@ export declare class VFXItem extends EffectsObject implements Disposable {
|
|
|
49
49
|
* @deprecated 2.7.0 Please use `getInstanceId` instead
|
|
50
50
|
*/
|
|
51
51
|
id: string;
|
|
52
|
+
/**
|
|
53
|
+
* 元素类型
|
|
54
|
+
*/
|
|
52
55
|
type: spec.ItemType;
|
|
56
|
+
/**
|
|
57
|
+
* @deprecated 2.9.0 Please use `defination` instead
|
|
58
|
+
*/
|
|
53
59
|
props: spec.VFXItemData;
|
|
60
|
+
/**
|
|
61
|
+
* 元素绑定的组件列表
|
|
62
|
+
*/
|
|
54
63
|
components: Component[];
|
|
55
|
-
isDuringPlay: boolean;
|
|
56
64
|
/**
|
|
57
65
|
* 元素是否激活
|
|
58
66
|
*/
|
|
@@ -64,9 +72,6 @@ export declare class VFXItem extends EffectsObject implements Disposable {
|
|
|
64
72
|
private listIndex;
|
|
65
73
|
private isEnabled;
|
|
66
74
|
private eventProcessor;
|
|
67
|
-
/**
|
|
68
|
-
* 合成属性
|
|
69
|
-
*/
|
|
70
75
|
private _composition;
|
|
71
76
|
/**
|
|
72
77
|
*
|
|
@@ -127,6 +132,7 @@ export declare class VFXItem extends EffectsObject implements Disposable {
|
|
|
127
132
|
set composition(value: Composition);
|
|
128
133
|
/**
|
|
129
134
|
* 播放完成后是否需要再使用,是的话生命周期结束后不会 dispose
|
|
135
|
+
* @deprecated
|
|
130
136
|
*/
|
|
131
137
|
get compositionReusable(): boolean;
|
|
132
138
|
/**
|
|
@@ -287,8 +293,6 @@ export declare class VFXItem extends EffectsObject implements Disposable {
|
|
|
287
293
|
*/
|
|
288
294
|
dispose(): void;
|
|
289
295
|
private resetChildrenParent;
|
|
290
|
-
private instantiatePreComposition;
|
|
291
|
-
private resetGUID;
|
|
292
296
|
private gatherPreviousObjectID;
|
|
293
297
|
private getDescendantsInternal;
|
|
294
298
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@galacean/effects-core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.9.0-alpha.1",
|
|
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.
|
|
45
|
+
"@galacean/effects-specification": "2.8.0-alpha.0",
|
|
46
46
|
"@galacean/effects-math": "1.1.0",
|
|
47
47
|
"flatbuffers": "24.3.25",
|
|
48
48
|
"uuid": "9.0.1",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|