@galacean/effects-core 2.8.0-alpha.4 → 2.8.0-alpha.6
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/{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/index.d.ts +0 -1
- package/dist/index.js +16822 -16840
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16823 -16839
- 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/timeline/timeline-asset.d.ts +1 -1
- package/dist/render/index.d.ts +0 -1
- package/dist/scene.d.ts +5 -0
- 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/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
|
*/
|
|
@@ -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/scene.d.ts
CHANGED
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-alpha.
|
|
3
|
+
"version": "2.8.0-alpha.6",
|
|
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
|
-
}
|