@galacean/effects-core 2.8.0-alpha.5 → 2.8.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/dist/asset-manager.d.ts +0 -1
- package/dist/{comp-vfx-item.d.ts → components/composition-component.d.ts} +4 -4
- package/dist/components/index.d.ts +1 -0
- package/dist/composition.d.ts +2 -2
- package/dist/downloader.d.ts +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +17117 -17177
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +17118 -17174
- package/dist/index.mjs.map +1 -1
- package/dist/plugins/index.d.ts +0 -2
- package/dist/plugins/particle/particle-system.d.ts +1 -2
- package/dist/plugins/sprite/sprite-item.d.ts +4 -6
- package/dist/plugins/text/text-component-base.d.ts +2 -0
- package/dist/plugins/text/text-item.d.ts +11 -0
- package/dist/plugins/timeline/timeline-asset.d.ts +1 -1
- package/dist/render/index.d.ts +0 -1
- package/dist/utils/index.d.ts +0 -1
- package/dist/vfx-item.d.ts +2 -0
- package/package.json +2 -2
- package/dist/plugins/cal/calculate-loader.d.ts +0 -3
- package/dist/plugins/sprite/sprite-mesh.d.ts +0 -19
- package/dist/render/semantic-map.d.ts +0 -14
- package/dist/utils/hevc-video.d.ts +0 -13
package/dist/plugins/index.d.ts
CHANGED
|
@@ -10,13 +10,11 @@ export * from './interact/interact-item';
|
|
|
10
10
|
export * from './interact/mesh-collider';
|
|
11
11
|
export * from './sprite/sprite-loader';
|
|
12
12
|
export * from './sprite/sprite-item';
|
|
13
|
-
export * from './sprite/sprite-mesh';
|
|
14
13
|
export * from './particle/particle-loader';
|
|
15
14
|
export * from './particle/particle-mesh';
|
|
16
15
|
export * from './particle/particle-vfx-item';
|
|
17
16
|
export * from './particle/particle-system';
|
|
18
17
|
export * from './particle/particle-system-renderer';
|
|
19
|
-
export * from './cal/calculate-loader';
|
|
20
18
|
export * from './shape/build-line';
|
|
21
19
|
export * from './shape/graphics-path';
|
|
22
20
|
export * from './shape/ellipse';
|
|
@@ -183,8 +183,7 @@ export declare class ParticleSystem extends Component implements Maskable {
|
|
|
183
183
|
reset(): void;
|
|
184
184
|
onStart(): void;
|
|
185
185
|
onUpdate(dt: number): void;
|
|
186
|
-
|
|
187
|
-
private update;
|
|
186
|
+
update(delta: number): void;
|
|
188
187
|
drawStencilMask(renderer: Renderer): void;
|
|
189
188
|
onDestroy(): void;
|
|
190
189
|
getParticleBoxes(): {
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import * as spec from '@galacean/effects-specification';
|
|
2
2
|
import type { ColorPlayableAssetData } from '../../animation';
|
|
3
|
-
import { MaskableGraphic } from '../../components';
|
|
4
3
|
import type { Engine } from '../../engine';
|
|
5
|
-
import type { FrameContext } from '../timeline
|
|
6
|
-
import { Playable, PlayableAsset } from '../timeline
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import type { Geometry } from '../../render/geometry';
|
|
4
|
+
import type { FrameContext } from '../timeline';
|
|
5
|
+
import { Playable, PlayableAsset, TrackMixerPlayable, TrackAsset } from '../timeline';
|
|
6
|
+
import type { Geometry } from '../../render';
|
|
7
|
+
import { MaskableGraphic } from '../../components';
|
|
10
8
|
/**
|
|
11
9
|
* 图层元素基础属性, 经过处理后的 spec.SpriteContent.options
|
|
12
10
|
*/
|
|
@@ -10,6 +10,7 @@ import type { TextStyle } from './text-style';
|
|
|
10
10
|
*/
|
|
11
11
|
export interface ITextComponent {
|
|
12
12
|
setOutlineWidth(value: number): void;
|
|
13
|
+
setOutlineEnabled(value: boolean): void;
|
|
13
14
|
setShadowBlur(value: number): void;
|
|
14
15
|
setShadowColor(value: spec.RGBAColorValue): void;
|
|
15
16
|
setShadowOffsetX(value: number): void;
|
|
@@ -49,6 +50,7 @@ export declare class TextComponentBase {
|
|
|
49
50
|
setFontWeight(value: spec.TextWeight): void;
|
|
50
51
|
setFontStyle(value: spec.FontStyle): void;
|
|
51
52
|
setOutlineColor(value: spec.RGBAColorValue): void;
|
|
53
|
+
setOutlineEnabled(value: boolean): void;
|
|
52
54
|
setFontScale(value: number): void;
|
|
53
55
|
setOverflow(overflow: spec.TextOverflow): void;
|
|
54
56
|
protected getFontDesc(size?: number): string;
|
|
@@ -103,8 +103,19 @@ 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;
|
|
106
111
|
setFontSize(value: number): void;
|
|
107
112
|
setOutlineWidth(value: number): void;
|
|
113
|
+
/**
|
|
114
|
+
* 设置是否启用文本描边
|
|
115
|
+
* @param value - 是否启用描边
|
|
116
|
+
* @returns
|
|
117
|
+
*/
|
|
118
|
+
setOutlineEnabled(value: boolean): void;
|
|
108
119
|
setShadowBlur(value: number): void;
|
|
109
120
|
setShadowColor(value: spec.RGBAColorValue): void;
|
|
110
121
|
setShadowOffsetX(value: number): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { TrackAsset } from './track';
|
|
2
2
|
import type { Constructor } from '../../utils';
|
|
3
|
-
import type { SceneBinding } from '../../
|
|
3
|
+
import type { SceneBinding } from '../../components';
|
|
4
4
|
import { EffectsObject } from '../../effects-object';
|
|
5
5
|
export declare class TimelineAsset extends EffectsObject {
|
|
6
6
|
tracks: TrackAsset[];
|
package/dist/render/index.d.ts
CHANGED
package/dist/utils/index.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ export * from './image-data';
|
|
|
5
5
|
export * from './sortable';
|
|
6
6
|
export * from './asserts';
|
|
7
7
|
export * from './text';
|
|
8
|
-
export * from './hevc-video';
|
|
9
8
|
export * from './promise-util';
|
|
10
9
|
export * from './logger';
|
|
11
10
|
export type Immutable<O> = O extends Record<any, any> ? {
|
package/dist/vfx-item.d.ts
CHANGED
|
@@ -184,6 +184,7 @@ export declare class VFXItem extends EffectsObject implements Disposable {
|
|
|
184
184
|
* @returns 一个组件列表,包含所有符合类型的组件
|
|
185
185
|
*/
|
|
186
186
|
getComponents<T extends Component>(classConstructor: Constructor<T>): T[];
|
|
187
|
+
getDescendants(directDescendantsOnly?: boolean, predicate?: (node: VFXItem) => boolean): VFXItem[];
|
|
187
188
|
setParent(vfxItem: VFXItem): void;
|
|
188
189
|
/**
|
|
189
190
|
* 激活或停用 VFXItem
|
|
@@ -289,6 +290,7 @@ export declare class VFXItem extends EffectsObject implements Disposable {
|
|
|
289
290
|
private instantiatePreComposition;
|
|
290
291
|
private resetGUID;
|
|
291
292
|
private gatherPreviousObjectID;
|
|
293
|
+
private getDescendantsInternal;
|
|
292
294
|
}
|
|
293
295
|
export declare namespace Item {
|
|
294
296
|
function is<T extends spec.Item>(item: spec.Item, type: spec.ItemType): item is T;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@galacean/effects-core",
|
|
3
|
-
"version": "2.8.0
|
|
3
|
+
"version": "2.8.0",
|
|
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.
|
|
45
|
+
"@galacean/effects-specification": "2.7.1",
|
|
46
46
|
"@galacean/effects-math": "1.1.0",
|
|
47
47
|
"flatbuffers": "24.3.25",
|
|
48
48
|
"uuid": "9.0.1",
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { Vector3 } from '@galacean/effects-math/es/core/vector3';
|
|
2
|
-
import type * as spec from '@galacean/effects-specification';
|
|
3
|
-
import type { Transform } from '../../transform';
|
|
4
|
-
export type SpriteRenderData = {
|
|
5
|
-
life: number;
|
|
6
|
-
transform: Transform;
|
|
7
|
-
visible?: boolean;
|
|
8
|
-
startSize?: Vector3;
|
|
9
|
-
color?: spec.vec4;
|
|
10
|
-
texOffset?: spec.vec4;
|
|
11
|
-
active?: boolean;
|
|
12
|
-
anchor?: spec.vec3;
|
|
13
|
-
};
|
|
14
|
-
export type SpriteRegionData = {
|
|
15
|
-
color: spec.vec4;
|
|
16
|
-
position: spec.vec3;
|
|
17
|
-
quat: spec.vec4;
|
|
18
|
-
size: spec.vec2;
|
|
19
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { UniformValue } from '../material';
|
|
2
|
-
import type { RenderingData } from '.';
|
|
3
|
-
import type { Disposable } from '../utils';
|
|
4
|
-
export type SemanticFunc = (state: RenderingData) => UniformValue | undefined;
|
|
5
|
-
export type SemanticGetter = UniformValue | SemanticFunc;
|
|
6
|
-
export declare class SemanticMap implements Disposable {
|
|
7
|
-
readonly semantics: Record<string, SemanticGetter>;
|
|
8
|
-
constructor(semantics?: Record<string, SemanticGetter>);
|
|
9
|
-
toObject(): Record<string, SemanticGetter>;
|
|
10
|
-
setSemantic(name: string, value?: SemanticGetter): void;
|
|
11
|
-
getSemanticValue(name: string, state: RenderingData): UniformValue | undefined;
|
|
12
|
-
hasSemanticValue(name: string): boolean;
|
|
13
|
-
dispose(): void;
|
|
14
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
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;
|