@galacean/effects-core 2.8.0-alpha.4 → 2.8.0-alpha.5

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.
@@ -103,11 +103,6 @@ export declare class TextComponent extends MaskableGraphic implements ITextCompo
103
103
  * @param value - 文本框宽度
104
104
  */
105
105
  setTextWidth(value: number): void;
106
- /**
107
- * 设置文本框高度
108
- * @param value - 文本框高度
109
- */
110
- setTextHeight(value: number): void;
111
106
  setFontSize(value: number): void;
112
107
  setOutlineWidth(value: number): void;
113
108
  setShadowBlur(value: number): void;
package/dist/scene.d.ts CHANGED
@@ -72,6 +72,11 @@ export interface SceneLoadOptions {
72
72
  * @default undefined
73
73
  */
74
74
  useCompressedTexture?: boolean;
75
+ /**
76
+ * 是否使用 Hevc 视频
77
+ * @default undefined
78
+ */
79
+ useHevcVideo?: boolean;
75
80
  /**
76
81
  * 渲染分级。
77
82
  * 分级之后,只会加载当前渲染等级的资源。
@@ -0,0 +1,13 @@
1
+ import * as spec from '@galacean/effects-specification';
2
+ /**
3
+ * Check if the browser can play the given HEVC codec.
4
+ * @param codec - The HEVC codec to check.
5
+ * @returns True if the browser can probably or maybe play the codec, false otherwise.
6
+ */
7
+ export declare function canPlayHevcCodec(codec: spec.HevcVideoCodec): boolean;
8
+ /**
9
+ * Parse the given codec string into a HEVC video codec enum value.
10
+ * @param codec - The codec string to parse.
11
+ * @returns The corresponding HEVC video codec enum value, or undefined if the codec is invalid.
12
+ */
13
+ export declare function parseCodec(codec: string): spec.HevcVideoCodec | undefined;
@@ -5,6 +5,7 @@ export * from './image-data';
5
5
  export * from './sortable';
6
6
  export * from './asserts';
7
7
  export * from './text';
8
+ export * from './hevc-video';
8
9
  export * from './promise-util';
9
10
  export * from './logger';
10
11
  export type Immutable<O> = O extends Record<any, any> ? {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galacean/effects-core",
3
- "version": "2.8.0-alpha.4",
3
+ "version": "2.8.0-alpha.5",
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.7.0-alpha.0",
45
+ "@galacean/effects-specification": "2.7.0",
46
46
  "@galacean/effects-math": "1.1.0",
47
47
  "flatbuffers": "24.3.25",
48
48
  "uuid": "9.0.1",