@galacean/effects-specification 2.7.0-alpha.0 → 2.7.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/es/assets.d.ts +16 -0
- package/es/assets.js +11 -0
- package/es/item/sprite-item.d.ts +0 -4
- package/es/scene.d.ts +3 -3
- package/es/type.d.ts +4 -0
- package/package.json +1 -1
package/es/assets.d.ts
CHANGED
|
@@ -33,6 +33,16 @@ export declare enum MultimediaType {
|
|
|
33
33
|
video = "video",
|
|
34
34
|
audio = "audio"
|
|
35
35
|
}
|
|
36
|
+
export declare enum HevcVideoCodec {
|
|
37
|
+
L30 = "hev1.1.0.L30.B0",
|
|
38
|
+
L60 = "hev1.1.0.L60.B0",
|
|
39
|
+
L63 = "hev1.1.0.L63.B0",
|
|
40
|
+
L90 = "hev1.1.0.L90.B0",
|
|
41
|
+
L93 = "hev1.1.0.L93.B0",
|
|
42
|
+
L120 = "hev1.1.0.L120.B0",
|
|
43
|
+
L150 = "hev1.1.0.L150.B0",
|
|
44
|
+
L180 = "hev1.1.0.L180.B0"
|
|
45
|
+
}
|
|
36
46
|
export interface TemplateContent {
|
|
37
47
|
/**
|
|
38
48
|
* 当 template 宽高和 image 不相同时,会对 template 进行缩放,使其和 image 相同。
|
|
@@ -69,6 +79,12 @@ export interface Image extends AssetBase {
|
|
|
69
79
|
*/
|
|
70
80
|
mipmap?: boolean;
|
|
71
81
|
}
|
|
82
|
+
export interface VideoInfo extends AssetBase {
|
|
83
|
+
hevc?: {
|
|
84
|
+
url: string;
|
|
85
|
+
codec: HevcVideoCodec;
|
|
86
|
+
};
|
|
87
|
+
}
|
|
72
88
|
/**
|
|
73
89
|
* 模板贴图属性
|
|
74
90
|
*/
|
package/es/assets.js
CHANGED
|
@@ -16,3 +16,14 @@ export var MultimediaType;
|
|
|
16
16
|
MultimediaType["video"] = "video";
|
|
17
17
|
MultimediaType["audio"] = "audio";
|
|
18
18
|
})(MultimediaType || (MultimediaType = {}));
|
|
19
|
+
export var HevcVideoCodec;
|
|
20
|
+
(function (HevcVideoCodec) {
|
|
21
|
+
HevcVideoCodec["L30"] = "hev1.1.0.L30.B0";
|
|
22
|
+
HevcVideoCodec["L60"] = "hev1.1.0.L60.B0";
|
|
23
|
+
HevcVideoCodec["L63"] = "hev1.1.0.L63.B0";
|
|
24
|
+
HevcVideoCodec["L90"] = "hev1.1.0.L90.B0";
|
|
25
|
+
HevcVideoCodec["L93"] = "hev1.1.0.L93.B0";
|
|
26
|
+
HevcVideoCodec["L120"] = "hev1.1.0.L120.B0";
|
|
27
|
+
HevcVideoCodec["L150"] = "hev1.1.0.L150.B0";
|
|
28
|
+
HevcVideoCodec["L180"] = "hev1.1.0.L180.B0";
|
|
29
|
+
})(HevcVideoCodec || (HevcVideoCodec = {}));
|
package/es/item/sprite-item.d.ts
CHANGED
package/es/scene.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import type { BinaryFile } from './binary';
|
|
|
7
7
|
import type { ComponentData } from './components';
|
|
8
8
|
import type { VFXItemData } from './vfx-item-data';
|
|
9
9
|
import type { AnimationClipData } from './animation-clip-data';
|
|
10
|
-
import type { AssetBase, ImageSource } from './assets';
|
|
10
|
+
import type { AssetBase, ImageSource, VideoInfo } from './assets';
|
|
11
11
|
import type { RenderSettings } from './render-settings';
|
|
12
12
|
import type { EffectsObjectData } from './effects-object-data';
|
|
13
13
|
import type { MaterialData } from './material-data';
|
|
@@ -34,7 +34,7 @@ export declare enum JSONSceneVersion {
|
|
|
34
34
|
'3_3' = "3.3",// 指向型蒙版、图片/文字蒙版
|
|
35
35
|
'3_4' = "3.4",// 动画状态机
|
|
36
36
|
'3_5' = "3.5",// 网格形状变化动画、矢量图形填充/描边渐变色
|
|
37
|
-
'3_6' = "3.6",// KTX2
|
|
37
|
+
'3_6' = "3.6",// 支持 KTX2 纹理、H265 视频格式、文本增强
|
|
38
38
|
'LATEST' = "3.6"
|
|
39
39
|
}
|
|
40
40
|
/**
|
|
@@ -168,7 +168,7 @@ export interface JSONScene {
|
|
|
168
168
|
* 视频资源
|
|
169
169
|
* @since 2.0.0
|
|
170
170
|
*/
|
|
171
|
-
videos?:
|
|
171
|
+
videos?: VideoInfo[];
|
|
172
172
|
/**
|
|
173
173
|
* 音频资源
|
|
174
174
|
* @since 2.0.0
|
package/es/type.d.ts
CHANGED