@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.
- package/dist/asset-manager.d.ts +1 -0
- package/dist/downloader.d.ts +1 -1
- package/dist/index.js +434 -373
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +433 -374
- package/dist/index.mjs.map +1 -1
- package/dist/plugins/text/text-item.d.ts +0 -5
- package/dist/scene.d.ts +5 -0
- package/dist/utils/hevc-video.d.ts +13 -0
- package/dist/utils/index.d.ts +1 -0
- package/package.json +2 -2
|
@@ -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
|
@@ -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;
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -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.
|
|
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
|
|
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",
|