@galacean/effects-core 2.0.0-alpha.12 → 2.0.0-alpha.14
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/binary-asset.d.ts +6 -0
- package/dist/comp-vfx-item.d.ts +23 -6
- package/dist/components/component.d.ts +2 -2
- package/dist/composition-source-manager.d.ts +3 -0
- package/dist/composition.d.ts +25 -14
- package/dist/decorators.d.ts +1 -1
- package/dist/engine.d.ts +7 -4
- package/dist/fallback/migration.d.ts +1 -1
- package/dist/gl/create-gl-context.d.ts +2 -1
- package/dist/index.d.ts +5 -4
- package/dist/index.js +9851 -9070
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9832 -9064
- package/dist/index.mjs.map +1 -1
- package/dist/math/bezier.d.ts +15 -0
- package/dist/math/translate.d.ts +3 -2
- package/dist/math/value-getter.d.ts +18 -1
- package/dist/plugin-system.d.ts +1 -1
- package/dist/plugins/cal/animation-mixer-playable.d.ts +1 -1
- package/dist/plugins/cal/animation-playable-output.d.ts +1 -1
- package/dist/plugins/cal/animation-playable.d.ts +2 -1
- package/dist/plugins/cal/calculate-item.d.ts +7 -28
- package/dist/plugins/cal/calculate-vfx-item.d.ts +29 -23
- package/dist/plugins/cal/playable-graph.d.ts +72 -21
- package/dist/plugins/cal/timeline-asset.d.ts +28 -0
- package/dist/plugins/camera/camera-controller-node.d.ts +0 -11
- package/dist/plugins/index.d.ts +5 -1
- package/dist/plugins/interact/click-handler.d.ts +2 -2
- package/dist/plugins/interact/event-system.d.ts +0 -2
- package/dist/plugins/particle/particle-system-renderer.d.ts +1 -1
- package/dist/plugins/particle/particle-system.d.ts +1 -1
- package/dist/plugins/particle/particle-vfx-item.d.ts +7 -3
- package/dist/plugins/plugin.d.ts +6 -6
- package/dist/plugins/sprite/sprite-item.d.ts +13 -7
- package/dist/plugins/timeline/playables/activation-mixer-playable.d.ts +8 -0
- package/dist/plugins/timeline/track.d.ts +72 -0
- package/dist/plugins/timeline/tracks/activation-track.d.ts +6 -0
- package/dist/plugins/timeline/tracks/sprite-color-track.d.ts +3 -0
- package/dist/plugins/timeline/tracks/transform-track.d.ts +3 -0
- package/dist/render/framebuffer.d.ts +1 -1
- package/dist/render/geometry.d.ts +10 -5
- package/dist/render/gpu-capability.d.ts +6 -6
- package/dist/render/renderer.d.ts +2 -1
- package/dist/render/semantic-map.d.ts +1 -1
- package/dist/texture/texture.d.ts +1 -0
- package/dist/ticker.d.ts +2 -2
- package/dist/utils/device.d.ts +1 -0
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/text.d.ts +8 -0
- package/dist/vfx-item.d.ts +27 -44
- package/package.json +2 -2
- package/dist/plugins/cal/track.d.ts +0 -34
- package/dist/utils/timeline-component.d.ts +0 -6
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { ItemEndBehavior } from '@galacean/effects-specification';
|
|
2
|
+
import type { Engine } from '../../engine';
|
|
3
|
+
import type { PlayableGraph } from '../cal/playable-graph';
|
|
4
|
+
import { Playable, PlayableAsset, PlayableOutput } from '../cal/playable-graph';
|
|
5
|
+
/**
|
|
6
|
+
* @since 2.0.0
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
export declare class TrackAsset extends PlayableAsset {
|
|
10
|
+
name: string;
|
|
11
|
+
binding: object;
|
|
12
|
+
trackType: TrackType;
|
|
13
|
+
private clipSeed;
|
|
14
|
+
private clips;
|
|
15
|
+
protected children: TrackAsset[];
|
|
16
|
+
initializeBinding(parentBinding: object): void;
|
|
17
|
+
/**
|
|
18
|
+
* @internal
|
|
19
|
+
*/
|
|
20
|
+
initializeBindingRecursive(parentBinding: object): void;
|
|
21
|
+
createOutput(): PlayableOutput;
|
|
22
|
+
createPlayableGraph(graph: PlayableGraph, runtimeClips: RuntimeClip[]): Playable;
|
|
23
|
+
createMixerPlayableGraph(graph: PlayableGraph, runtimeClips: RuntimeClip[]): Playable;
|
|
24
|
+
compileClips(graph: PlayableGraph, timelineClips: TimelineClip[], runtimeClips: RuntimeClip[]): Playable;
|
|
25
|
+
/**
|
|
26
|
+
* 重写该方法以创建自定义混合器
|
|
27
|
+
*/
|
|
28
|
+
createTrackMixer(graph: PlayableGraph): Playable;
|
|
29
|
+
createPlayable(graph: PlayableGraph): Playable;
|
|
30
|
+
getChildTracks(): TrackAsset[];
|
|
31
|
+
addChild(child: TrackAsset): void;
|
|
32
|
+
createClip<T extends PlayableAsset>(classConstructor: new (engine: Engine) => T, name?: string): TimelineClip;
|
|
33
|
+
getClips(): TimelineClip[];
|
|
34
|
+
findClip(name: string): TimelineClip | undefined;
|
|
35
|
+
addClip(clip: TimelineClip): void;
|
|
36
|
+
private createClipPlayable;
|
|
37
|
+
}
|
|
38
|
+
export declare enum TrackType {
|
|
39
|
+
MasterTrack = 0,
|
|
40
|
+
ObjectTrack = 1
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* @since 2.0.0
|
|
44
|
+
* @internal
|
|
45
|
+
*/
|
|
46
|
+
export declare class TimelineClip {
|
|
47
|
+
id: string;
|
|
48
|
+
name: string;
|
|
49
|
+
start: number;
|
|
50
|
+
duration: number;
|
|
51
|
+
asset: PlayableAsset;
|
|
52
|
+
endBehaviour: ItemEndBehavior;
|
|
53
|
+
constructor();
|
|
54
|
+
toLocalTime(time: number): number;
|
|
55
|
+
}
|
|
56
|
+
export declare class RuntimeClip {
|
|
57
|
+
clip: TimelineClip;
|
|
58
|
+
playable: Playable;
|
|
59
|
+
parentMixer: Playable;
|
|
60
|
+
track: TrackAsset;
|
|
61
|
+
constructor(clip: TimelineClip, clipPlayable: Playable, parentMixer: Playable, track: TrackAsset);
|
|
62
|
+
set enable(value: boolean);
|
|
63
|
+
evaluateAt(localTime: number): void;
|
|
64
|
+
private onClipEnd;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* @since 2.0.0
|
|
68
|
+
* @internal
|
|
69
|
+
*/
|
|
70
|
+
export interface TimelineClipData {
|
|
71
|
+
asset: PlayableAsset;
|
|
72
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { PlayableGraph, Playable } from '../../cal/playable-graph';
|
|
2
|
+
import { TrackAsset } from '../track';
|
|
3
|
+
export declare class ActivationTrack extends TrackAsset {
|
|
4
|
+
initializeBinding(parentBinding: object): void;
|
|
5
|
+
createTrackMixer(graph: PlayableGraph): Playable;
|
|
6
|
+
}
|
|
@@ -42,7 +42,7 @@ export declare class Framebuffer {
|
|
|
42
42
|
getDepthTexture(): Texture | undefined;
|
|
43
43
|
getStencilTexture(): Texture | undefined;
|
|
44
44
|
getColorTextures(): Texture[];
|
|
45
|
-
dispose(
|
|
45
|
+
dispose(options?: {
|
|
46
46
|
depthStencilAttachment?: RenderPassDestroyAttachmentType;
|
|
47
47
|
}): void;
|
|
48
48
|
}
|
|
@@ -24,9 +24,10 @@ export interface GeometryProps {
|
|
|
24
24
|
*/
|
|
25
25
|
maxVertex?: number;
|
|
26
26
|
}
|
|
27
|
-
export interface
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
export interface SkinProps {
|
|
28
|
+
boneNames?: string[];
|
|
29
|
+
rootBoneName?: string;
|
|
30
|
+
inverseBindMatrices?: number[];
|
|
30
31
|
}
|
|
31
32
|
/**
|
|
32
33
|
* Geometry 抽象类
|
|
@@ -39,7 +40,7 @@ export declare abstract class Geometry extends EffectsObject {
|
|
|
39
40
|
/**
|
|
40
41
|
* 子网格数据
|
|
41
42
|
*/
|
|
42
|
-
subMeshes: SubMesh[];
|
|
43
|
+
subMeshes: spec.SubMesh[];
|
|
43
44
|
/**
|
|
44
45
|
* Geometry 创建函数
|
|
45
46
|
*/
|
|
@@ -104,6 +105,10 @@ export declare abstract class Geometry extends EffectsObject {
|
|
|
104
105
|
* 获取当前 Geometry 的 drawcount
|
|
105
106
|
*/
|
|
106
107
|
abstract getDrawCount(): number;
|
|
108
|
+
/**
|
|
109
|
+
* 获取当前 Geometry 关联的蒙皮数据
|
|
110
|
+
*/
|
|
111
|
+
abstract getSkinProps(): SkinProps;
|
|
107
112
|
/**
|
|
108
113
|
* 初始化 GPU 资源
|
|
109
114
|
* @override
|
|
@@ -114,4 +119,4 @@ export declare abstract class Geometry extends EffectsObject {
|
|
|
114
119
|
*/
|
|
115
120
|
flush(): void;
|
|
116
121
|
}
|
|
117
|
-
export declare function generateEmptyTypedArray(type: number): Float32Array |
|
|
122
|
+
export declare function generateEmptyTypedArray(type: number): Float32Array | Int16Array | Int32Array;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { GLType } from '../gl';
|
|
1
2
|
import type { Immutable } from '../utils';
|
|
2
|
-
export type GLType = 'webgl' | 'webgl2';
|
|
3
3
|
export interface GPUCapabilityDetail {
|
|
4
4
|
floatTexture: number;
|
|
5
5
|
halfFloatTexture: number;
|
|
@@ -42,8 +42,8 @@ export declare class GPUCapability {
|
|
|
42
42
|
drawBuffers(gl: WebGLRenderingContext | WebGL2RenderingContext, bufferStates: boolean[]): void;
|
|
43
43
|
setTextureAnisotropic(gl: WebGLRenderingContext | WebGL2RenderingContext, target: GLenum, level: number): void;
|
|
44
44
|
}
|
|
45
|
-
export declare
|
|
46
|
-
NONE
|
|
47
|
-
PVRTC
|
|
48
|
-
ASTC
|
|
49
|
-
}
|
|
45
|
+
export declare enum COMPRESSED_TEXTURE {
|
|
46
|
+
NONE = 0,
|
|
47
|
+
PVRTC = 1,
|
|
48
|
+
ASTC = 2
|
|
49
|
+
}
|
|
@@ -8,8 +8,9 @@ import type { Geometry } from './geometry';
|
|
|
8
8
|
import type { RenderFrame, RenderingData } from './render-frame';
|
|
9
9
|
import type { RenderPassClearAction, RenderPassStoreAction } from './render-pass';
|
|
10
10
|
import type { ShaderLibrary } from './shader';
|
|
11
|
+
import type { GLType } from '../gl';
|
|
11
12
|
export declare class Renderer implements LostHandler, RestoreHandler {
|
|
12
|
-
static create: (canvas: HTMLCanvasElement | OffscreenCanvas, framework:
|
|
13
|
+
static create: (canvas: HTMLCanvasElement | OffscreenCanvas, framework: GLType, renderOptions?: WebGLContextAttributes) => Renderer;
|
|
13
14
|
engine: Engine;
|
|
14
15
|
env: string;
|
|
15
16
|
/**
|
|
@@ -8,7 +8,7 @@ export declare class SemanticMap implements Disposable {
|
|
|
8
8
|
constructor(semantics?: Record<string, SemanticGetter>);
|
|
9
9
|
toObject(): Record<string, SemanticGetter>;
|
|
10
10
|
setSemantic(name: string, value?: SemanticGetter): void;
|
|
11
|
-
getSemanticValue(name: string, state: RenderingData): number | Float32Array |
|
|
11
|
+
getSemanticValue(name: string, state: RenderingData): number | Float32Array | Float64Array | Uint8Array | Uint32Array | Uint16Array | Int8Array | Int16Array | Int32Array | number[] | number[][] | import("@galacean/effects-core").Texture | import("@galacean/effects-math/es/core").Vector2 | import("@galacean/effects-math/es/core").Vector3 | import("@galacean/effects-math/es/core").Vector4 | import("@galacean/effects-math/es/core").Matrix3 | import("@galacean/effects-math/es/core").Matrix4 | import("@galacean/effects-core").Texture[] | import("packages/effects-core/src/material/types").UniformStruct | import("packages/effects-core/src/material/types").UniformStruct[] | SemanticFunc | undefined;
|
|
12
12
|
hasSemanticValue(name: string): boolean;
|
|
13
13
|
dispose(): void;
|
|
14
14
|
}
|
|
@@ -83,3 +83,4 @@ export declare abstract class Texture extends EffectsObject {
|
|
|
83
83
|
}
|
|
84
84
|
export declare function generateHalfFloatTexture(engine: Engine, data: Uint16Array, width: number, height: number): Texture;
|
|
85
85
|
export declare function generateWhiteTexture(engine: Engine): Texture;
|
|
86
|
+
export declare function generateTransparentTexture(engine: Engine): Texture;
|
package/dist/ticker.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export declare class Ticker {
|
|
|
9
9
|
private interval;
|
|
10
10
|
private intervalId;
|
|
11
11
|
private resetTickers;
|
|
12
|
-
private
|
|
12
|
+
private dt;
|
|
13
13
|
constructor(fps?: number);
|
|
14
14
|
/**
|
|
15
15
|
* 获取定时器当前帧更新的时间
|
|
@@ -22,7 +22,7 @@ export declare class Ticker {
|
|
|
22
22
|
setFPS(fps: number): void;
|
|
23
23
|
/**
|
|
24
24
|
* 获取定时器暂停标志位
|
|
25
|
-
* @returns
|
|
25
|
+
* @returns
|
|
26
26
|
*/
|
|
27
27
|
getPaused(): boolean;
|
|
28
28
|
/**
|
package/dist/utils/device.d.ts
CHANGED
package/dist/utils/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export * from './device';
|
|
|
4
4
|
export * from './image-data';
|
|
5
5
|
export * from './sortable';
|
|
6
6
|
export * from './asserts';
|
|
7
|
-
export * from './
|
|
7
|
+
export * from './text';
|
|
8
8
|
export * from './logger';
|
|
9
9
|
export type Immutable<O> = O extends Record<any, any> ? {
|
|
10
10
|
readonly [key in keyof O]: Immutable<O[key]>;
|
package/dist/vfx-item.d.ts
CHANGED
|
@@ -8,11 +8,10 @@ import type { Composition } from './composition';
|
|
|
8
8
|
import { EffectsObject } from './effects-object';
|
|
9
9
|
import type { Engine } from './engine';
|
|
10
10
|
import type { BoundingBoxData, CameraController, HitTestBoxParams, HitTestCustomParams, HitTestSphereParams, HitTestTriangleParams, InteractComponent, ParticleSystem, SpriteComponent } from './plugins';
|
|
11
|
-
import { TimelineComponent } from './plugins';
|
|
12
11
|
import { Transform } from './transform';
|
|
13
12
|
import { type Disposable } from './utils';
|
|
14
|
-
export type VFXItemContent = ParticleSystem | SpriteComponent |
|
|
15
|
-
export type VFXItemConstructor = new (
|
|
13
|
+
export type VFXItemContent = ParticleSystem | SpriteComponent | CameraController | InteractComponent | void | {};
|
|
14
|
+
export type VFXItemConstructor = new (engine: Engine, props: VFXItemProps, composition: Composition) => VFXItem;
|
|
16
15
|
export type VFXItemProps = spec.Item & {
|
|
17
16
|
items: VFXItemProps[];
|
|
18
17
|
startTime: number;
|
|
@@ -23,7 +22,7 @@ export type VFXItemProps = spec.Item & {
|
|
|
23
22
|
/**
|
|
24
23
|
* 所有元素的继承的抽象类
|
|
25
24
|
*/
|
|
26
|
-
export declare class VFXItem
|
|
25
|
+
export declare class VFXItem extends EffectsObject implements Disposable {
|
|
27
26
|
/**
|
|
28
27
|
* 元素绑定的父元素,
|
|
29
28
|
* 1. 当元素没有绑定任何父元素时,parent为空,transform.parentTransform 为 composition.transform
|
|
@@ -31,8 +30,8 @@ export declare class VFXItem<T extends VFXItemContent> extends EffectsObject imp
|
|
|
31
30
|
* 3. 当元素绑定 TreeItem 的node时,parent为treeItem, transform.parentTransform 为 tree.nodes[i].transform(绑定的node节点上的transform)
|
|
32
31
|
* 4. 当元素绑定 TreeItem 本身时,行为表现和绑定 nullItem 相同
|
|
33
32
|
*/
|
|
34
|
-
parent?: VFXItem
|
|
35
|
-
children: VFXItem
|
|
33
|
+
parent?: VFXItem;
|
|
34
|
+
children: VFXItem[];
|
|
36
35
|
/**
|
|
37
36
|
* 元素的变换包含位置、旋转、缩放。
|
|
38
37
|
*/
|
|
@@ -45,10 +44,6 @@ export declare class VFXItem<T extends VFXItemContent> extends EffectsObject imp
|
|
|
45
44
|
* 元素动画的持续时间
|
|
46
45
|
*/
|
|
47
46
|
duration: number;
|
|
48
|
-
/**
|
|
49
|
-
* 元素当前更新归一化时间,开始时为 0,结束时为 1
|
|
50
|
-
*/
|
|
51
|
-
lifetime: number;
|
|
52
47
|
/**
|
|
53
48
|
* 父元素的 id
|
|
54
49
|
*/
|
|
@@ -81,16 +76,9 @@ export declare class VFXItem<T extends VFXItemContent> extends EffectsObject imp
|
|
|
81
76
|
/**
|
|
82
77
|
* 元素创建的数据图层/粒子/模型等
|
|
83
78
|
*/
|
|
84
|
-
_content?:
|
|
85
|
-
|
|
86
|
-
* 元素动画是否延迟播放
|
|
87
|
-
*/
|
|
88
|
-
delaying: boolean;
|
|
89
|
-
/**
|
|
90
|
-
* 元素动画的速度
|
|
91
|
-
*/
|
|
79
|
+
_content?: VFXItemContent;
|
|
80
|
+
reusable: boolean;
|
|
92
81
|
type: spec.ItemType;
|
|
93
|
-
stopped: boolean;
|
|
94
82
|
props: VFXItemProps;
|
|
95
83
|
components: Component[];
|
|
96
84
|
itemBehaviours: ItemBehaviour[];
|
|
@@ -101,31 +89,25 @@ export declare class VFXItem<T extends VFXItemContent> extends EffectsObject imp
|
|
|
101
89
|
*/
|
|
102
90
|
protected visible: boolean;
|
|
103
91
|
/**
|
|
104
|
-
*
|
|
105
|
-
* @protected
|
|
92
|
+
* 元素动画的速度
|
|
106
93
|
*/
|
|
107
|
-
protected _contentVisible: boolean;
|
|
108
94
|
private speed;
|
|
109
|
-
static isComposition(item: VFXItem
|
|
110
|
-
static isSprite(item: VFXItem
|
|
111
|
-
static isParticle(item: VFXItem
|
|
112
|
-
static isNull(item: VFXItem
|
|
113
|
-
static isTree(item: VFXItem
|
|
114
|
-
static isCamera(item: VFXItem
|
|
115
|
-
static isExtraCamera(item: VFXItem
|
|
95
|
+
static isComposition(item: VFXItem): boolean;
|
|
96
|
+
static isSprite(item: VFXItem): boolean;
|
|
97
|
+
static isParticle(item: VFXItem): boolean;
|
|
98
|
+
static isNull(item: VFXItem): boolean;
|
|
99
|
+
static isTree(item: VFXItem): boolean;
|
|
100
|
+
static isCamera(item: VFXItem): boolean;
|
|
101
|
+
static isExtraCamera(item: VFXItem): boolean;
|
|
116
102
|
constructor(engine: Engine, props?: VFXItemProps);
|
|
117
103
|
/**
|
|
118
104
|
* 返回元素创建的数据
|
|
119
105
|
*/
|
|
120
|
-
get content():
|
|
106
|
+
get content(): VFXItemContent;
|
|
121
107
|
/**
|
|
122
108
|
* 播放完成后是否需要再使用,是的话生命周期结束后不会 dispose
|
|
123
109
|
*/
|
|
124
|
-
get
|
|
125
|
-
/**
|
|
126
|
-
* 获取元素生命周期是否开始
|
|
127
|
-
*/
|
|
128
|
-
get lifetimeStarted(): boolean;
|
|
110
|
+
get compositionReusable(): boolean;
|
|
129
111
|
/**
|
|
130
112
|
* 设置元素的动画速度
|
|
131
113
|
* @param speed - 速度
|
|
@@ -146,18 +128,14 @@ export declare class VFXItem<T extends VFXItemContent> extends EffectsObject imp
|
|
|
146
128
|
* @param classConstructor - 要获取的组件类型
|
|
147
129
|
* @returns 查询结果中符合类型的第一个组件
|
|
148
130
|
*/
|
|
149
|
-
getComponent<T extends Component>(classConstructor: new (engine: Engine) => T): T
|
|
131
|
+
getComponent<T extends Component>(classConstructor: new (engine: Engine) => T): T;
|
|
150
132
|
/**
|
|
151
133
|
* 获取某一类型的所有组件
|
|
152
134
|
* @param classConstructor - 要获取的组件
|
|
153
135
|
* @returns 一个组件列表,包含所有符合类型的组件
|
|
154
136
|
*/
|
|
155
137
|
getComponents<T extends Component>(classConstructor: new (engine: Engine) => T): T[];
|
|
156
|
-
setParent(vfxItem: VFXItem
|
|
157
|
-
/**
|
|
158
|
-
* 停止播放元素动画
|
|
159
|
-
*/
|
|
160
|
-
stop(): void;
|
|
138
|
+
setParent(vfxItem: VFXItem): void;
|
|
161
139
|
/**
|
|
162
140
|
* 元素动画结束播放时回调函数
|
|
163
141
|
* @override
|
|
@@ -210,7 +188,12 @@ export declare class VFXItem<T extends VFXItemContent> extends EffectsObject imp
|
|
|
210
188
|
*/
|
|
211
189
|
scale(x: number, y: number, z: number): void;
|
|
212
190
|
/**
|
|
213
|
-
*
|
|
191
|
+
* 设置元素在画布上的像素位置
|
|
192
|
+
* Tips:
|
|
193
|
+
* - 坐标原点在 canvas 左上角,x 正方向水平向右, y 正方向垂直向下
|
|
194
|
+
* - 设置后会覆盖原有的位置信息
|
|
195
|
+
* @param x - x 坐标
|
|
196
|
+
* @param y - y 坐标
|
|
214
197
|
*/
|
|
215
198
|
setPositionByPixel(x: number, y: number): void;
|
|
216
199
|
/**
|
|
@@ -246,7 +229,7 @@ export declare class VFXItem<T extends VFXItemContent> extends EffectsObject imp
|
|
|
246
229
|
* @returns
|
|
247
230
|
*/
|
|
248
231
|
isEnded(now: number): boolean;
|
|
249
|
-
find(name: string): VFXItem
|
|
232
|
+
find(name: string): VFXItem | undefined;
|
|
250
233
|
fromData(data: VFXItemData): void;
|
|
251
234
|
toData(): void;
|
|
252
235
|
translateByPixel(x: number, y: number): void;
|
|
@@ -267,4 +250,4 @@ export declare namespace Item {
|
|
|
267
250
|
* @param props
|
|
268
251
|
* @param composition
|
|
269
252
|
*/
|
|
270
|
-
export declare function createVFXItem(props: VFXItemProps, composition: Composition): VFXItem
|
|
253
|
+
export declare function createVFXItem(props: VFXItemProps, composition: Composition): VFXItem;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@galacean/effects-core",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.14",
|
|
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.0.0-alpha.
|
|
45
|
+
"@galacean/effects-specification": "2.0.0-alpha.16",
|
|
46
46
|
"@galacean/effects-math": "1.1.0",
|
|
47
47
|
"uuid": "9.0.1"
|
|
48
48
|
},
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import type { VFXItem, VFXItemContent } from '../../vfx-item';
|
|
2
|
-
import { Playable, PlayableAsset, PlayableOutput } from './playable-graph';
|
|
3
|
-
/**
|
|
4
|
-
* @since 2.0.0
|
|
5
|
-
* @internal
|
|
6
|
-
*/
|
|
7
|
-
export declare class Track extends PlayableAsset {
|
|
8
|
-
id: string;
|
|
9
|
-
name: string;
|
|
10
|
-
bindingItem: VFXItem<VFXItemContent>;
|
|
11
|
-
private clips;
|
|
12
|
-
private clipSeed;
|
|
13
|
-
createOutput(): PlayableOutput;
|
|
14
|
-
/**
|
|
15
|
-
* 重写该方法以创建自定义混合器
|
|
16
|
-
*/
|
|
17
|
-
createMixerPlayable(): Playable;
|
|
18
|
-
createPlayable(): Playable;
|
|
19
|
-
createClip<T extends Playable>(classConstructor: new () => T, name?: string): TimelineClip;
|
|
20
|
-
getClips(): TimelineClip[];
|
|
21
|
-
findClip(name: string): TimelineClip | undefined;
|
|
22
|
-
private addClip;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* @since 2.0.0
|
|
26
|
-
* @internal
|
|
27
|
-
*/
|
|
28
|
-
export declare class TimelineClip {
|
|
29
|
-
id: string;
|
|
30
|
-
name: string;
|
|
31
|
-
start: number;
|
|
32
|
-
duration: number;
|
|
33
|
-
playable: Playable;
|
|
34
|
-
}
|