@galacean/effects-specification 2.0.0-alpha.15 → 2.0.0-alpha.17
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/es/composition.d.ts +11 -43
- package/es/item/model/skybox.d.ts +7 -1
- package/es/scene.d.ts +2 -2
- package/package.json +1 -1
package/es/composition.d.ts
CHANGED
|
@@ -70,10 +70,7 @@ export declare enum CompositionEndBehavior {
|
|
|
70
70
|
*/
|
|
71
71
|
freeze = 4
|
|
72
72
|
}
|
|
73
|
-
|
|
74
|
-
* 合成信息
|
|
75
|
-
*/
|
|
76
|
-
export interface Composition {
|
|
73
|
+
interface CompositionBase {
|
|
77
74
|
/**
|
|
78
75
|
* 合成ID
|
|
79
76
|
*/
|
|
@@ -99,10 +96,6 @@ export interface Composition {
|
|
|
99
96
|
* 合成相机信息
|
|
100
97
|
*/
|
|
101
98
|
camera: CameraOptions;
|
|
102
|
-
/**
|
|
103
|
-
* 元素信息
|
|
104
|
-
*/
|
|
105
|
-
items: Item[];
|
|
106
99
|
/**
|
|
107
100
|
* 合成视窗预览大小
|
|
108
101
|
* 如果没有提供,默认为 player 的 container 大小
|
|
@@ -115,48 +108,22 @@ export interface Composition {
|
|
|
115
108
|
fallbackImage?: string;
|
|
116
109
|
}
|
|
117
110
|
/**
|
|
118
|
-
*
|
|
111
|
+
* 合成信息
|
|
119
112
|
*/
|
|
120
|
-
export interface
|
|
121
|
-
/**
|
|
122
|
-
* 合成ID
|
|
123
|
-
*/
|
|
124
|
-
id: string;
|
|
125
|
-
/**
|
|
126
|
-
* 合成名称
|
|
127
|
-
*/
|
|
128
|
-
name: string;
|
|
129
|
-
/**
|
|
130
|
-
* 合成持续时间
|
|
131
|
-
*/
|
|
132
|
-
duration: number;
|
|
133
|
-
/**
|
|
134
|
-
* 合成开始播放的时间,单位妙
|
|
135
|
-
* @default 0
|
|
136
|
-
*/
|
|
137
|
-
startTime?: number;
|
|
138
|
-
/**
|
|
139
|
-
* 合成结束行为
|
|
140
|
-
*/
|
|
141
|
-
endBehavior: CompositionEndBehavior;
|
|
113
|
+
export interface Composition extends CompositionBase {
|
|
142
114
|
/**
|
|
143
|
-
*
|
|
115
|
+
* 元素信息
|
|
144
116
|
*/
|
|
145
|
-
|
|
117
|
+
items: Item[];
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* 合成数据
|
|
121
|
+
*/
|
|
122
|
+
export interface CompositionData extends CompositionBase {
|
|
146
123
|
/**
|
|
147
124
|
* 元素信息
|
|
148
125
|
*/
|
|
149
126
|
items: DataPath[];
|
|
150
|
-
/**
|
|
151
|
-
* 合成视窗预览大小
|
|
152
|
-
* 如果没有提供,默认为 player 的 container 大小
|
|
153
|
-
* @default [0,0]
|
|
154
|
-
*/
|
|
155
|
-
previewSize?: [width: number, height: number];
|
|
156
|
-
/**
|
|
157
|
-
* 降级图
|
|
158
|
-
*/
|
|
159
|
-
fallbackImage?: string;
|
|
160
127
|
/**
|
|
161
128
|
* 时间轴资产(TimelineAssetData)
|
|
162
129
|
*/
|
|
@@ -176,3 +143,4 @@ export interface SceneBindingData {
|
|
|
176
143
|
*/
|
|
177
144
|
value: DataPath;
|
|
178
145
|
}
|
|
146
|
+
export {};
|
|
@@ -2,8 +2,14 @@ import type { BaseItem, ItemEndBehavior } from '../base-item';
|
|
|
2
2
|
import type { BinaryEnv } from '../../binary';
|
|
3
3
|
import type { SkyboxCubeTexturePointer } from './binary';
|
|
4
4
|
import type { ItemType } from '../../type';
|
|
5
|
-
import type { ComponentData, DataPath } from '../../components';
|
|
5
|
+
import type { ComponentData, DataPath, Vector4Data } from '../../components';
|
|
6
6
|
export interface SkyboxOptions<T extends BinaryEnv> {
|
|
7
|
+
/**
|
|
8
|
+
* 环境光旋转
|
|
9
|
+
* UI显示"环境光旋转"
|
|
10
|
+
* @default { x: 0, y: 0, z: 0, w: 0 }
|
|
11
|
+
*/
|
|
12
|
+
rotation: Vector4Data;
|
|
7
13
|
renderable: boolean;
|
|
8
14
|
intensity: number;
|
|
9
15
|
reflectionsIntensity: number;
|
package/es/scene.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Composition } from './composition';
|
|
1
|
+
import type { Composition, CompositionData } from './composition';
|
|
2
2
|
import type { SpineResource } from './item/spine-item';
|
|
3
3
|
import type { PlayerVersion, Shape } from './type';
|
|
4
4
|
import type { TemplateImage, Image, CompressedImage, TextureDefine } from './image';
|
|
@@ -126,7 +126,7 @@ export interface JSONScene {
|
|
|
126
126
|
/**
|
|
127
127
|
* 渲染所需合成列表
|
|
128
128
|
*/
|
|
129
|
-
compositions:
|
|
129
|
+
compositions: CompositionData[];
|
|
130
130
|
/******************************** 以下皆为可复用信息,加载在对应 Manager 中 *******************************/
|
|
131
131
|
/**
|
|
132
132
|
* 贴图信息
|