@galacean/effects-specification 2.7.0-alpha.0 → 2.7.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/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 | HTMLVideoElement;
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 = {}));
@@ -79,8 +79,4 @@ export interface SpriteContent {
79
79
  * 图层组件属性
80
80
  */
81
81
  export interface SpriteComponentData extends ComponentData, SpriteContent {
82
- /**
83
- * 图层帧动画是否循环播放
84
- */
85
- loop?: boolean;
86
82
  }
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?: AssetBase[];
171
+ videos?: VideoInfo[];
172
172
  /**
173
173
  * 音频资源
174
174
  * @since 2.0.0
package/es/type.d.ts CHANGED
@@ -202,6 +202,10 @@ export interface TextureSheetAnimation {
202
202
  * 帧动画开关
203
203
  */
204
204
  animate: boolean;
205
+ /**
206
+ * 图层帧动画是否循环播放
207
+ */
208
+ loop: boolean;
205
209
  }
206
210
  /**
207
211
  * 精灵图坐标属性
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galacean/effects-specification",
3
- "version": "2.7.0-alpha.0",
3
+ "version": "2.7.0",
4
4
  "description": "Galacean Effects JSON Specification",
5
5
  "module": "./es/index.js",
6
6
  "main": "./es/index.js",
@@ -15,17 +15,6 @@
15
15
  "types": "./es/index.d.ts"
16
16
  }
17
17
  },
18
- "scripts": {
19
- "prebuild": "pnpm clean",
20
- "build": "pnpm build:lib",
21
- "build:lib": "tsc -b tsconfig.build.json",
22
- "lint": "eslint src --ext .ts,.mjs",
23
- "lint:fix": "eslint src --fix --quiet --ext .ts,.mjs",
24
- "check:ts": "tsc -b tsconfig.check.json",
25
- "clean": "rimraf es/**",
26
- "prepare": "husky install",
27
- "prepublishOnly": "npm run build"
28
- },
29
18
  "browserslist": [
30
19
  "iOS 9"
31
20
  ],
@@ -48,5 +37,14 @@
48
37
  "publishConfig": {
49
38
  "access": "public",
50
39
  "registry": "https://registry.npmjs.org"
40
+ },
41
+ "scripts": {
42
+ "prebuild": "pnpm clean",
43
+ "build": "pnpm build:lib",
44
+ "build:lib": "tsc -b tsconfig.build.json",
45
+ "lint": "eslint src --ext .ts,.mjs",
46
+ "lint:fix": "eslint src --fix --quiet --ext .ts,.mjs",
47
+ "check:ts": "tsc -b tsconfig.check.json",
48
+ "clean": "rimraf es/**"
51
49
  }
52
- }
50
+ }