@galacean/effects-core 2.6.0-alpha.0 → 2.6.0-alpha.1
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/composition.d.ts +0 -1
- package/dist/events/types.d.ts +2 -1
- package/dist/index.js +148 -76
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +148 -77
- package/dist/index.mjs.map +1 -1
- package/dist/plugins/animation-graph/nodes/index.d.ts +2 -1
- package/dist/plugins/animation-graph/nodes/layer-blend-node.d.ts +27 -0
- package/dist/plugins/animation-graph/pose.d.ts +1 -0
- package/dist/plugins/particle/particle-system.d.ts +0 -3
- package/dist/vfx-item.d.ts +0 -5
- package/package.json +2 -2
- /package/dist/plugins/animation-graph/nodes/{blend-1d-node.d.ts → blend-node.d.ts} +0 -0
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
export * from './animation-clip-node';
|
|
2
2
|
export * from './apply-additive-node';
|
|
3
|
-
export * from './blend-
|
|
3
|
+
export * from './blend-node';
|
|
4
4
|
export * from './bool-nodes';
|
|
5
5
|
export * from './const-value-nodes';
|
|
6
6
|
export * from './control-parameter-nodes';
|
|
7
|
+
export * from './layer-blend-node';
|
|
7
8
|
export * from './operator-nodes';
|
|
8
9
|
export * from './state-machine-node';
|
|
9
10
|
export * from './state-node';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as spec from '@galacean/effects-specification';
|
|
2
|
+
import type { GraphContext, InstantiationContext } from '../graph-context';
|
|
3
|
+
import { PoseResult } from '../pose-result';
|
|
4
|
+
import type { FloatValueNode } from '../graph-node';
|
|
5
|
+
import { GraphNodeData, PoseNode } from '../graph-node';
|
|
6
|
+
type LayerData = Required<spec.LayerData>;
|
|
7
|
+
interface Layer {
|
|
8
|
+
inputNode: PoseNode | null;
|
|
9
|
+
weightValueNode: FloatValueNode | null;
|
|
10
|
+
weight: number;
|
|
11
|
+
}
|
|
12
|
+
export declare class LayerBlendNodeData extends GraphNodeData {
|
|
13
|
+
baseNodeIndex: number;
|
|
14
|
+
layerDatas: LayerData[];
|
|
15
|
+
instantiate(context: InstantiationContext): void;
|
|
16
|
+
load(data: spec.LayerBlendNodeData): void;
|
|
17
|
+
}
|
|
18
|
+
export declare class LayerBlendNode extends PoseNode {
|
|
19
|
+
baseLayerNode: PoseNode | null;
|
|
20
|
+
layers: Layer[];
|
|
21
|
+
private layerNodeResult;
|
|
22
|
+
protected initializeInternal(context: GraphContext): void;
|
|
23
|
+
protected shutdownInternal(context: GraphContext): void;
|
|
24
|
+
evaluate(context: GraphContext, result: PoseResult): PoseResult;
|
|
25
|
+
private updateLayers;
|
|
26
|
+
}
|
|
27
|
+
export {};
|
|
@@ -10,7 +10,6 @@ import type { Maskable } from '../../material';
|
|
|
10
10
|
import { MaskMode, MaskProcessor } from '../../material';
|
|
11
11
|
import type { ShapeGenerator, ShapeParticle } from '../../shape';
|
|
12
12
|
import { Texture } from '../../texture';
|
|
13
|
-
import { Transform } from '../../transform';
|
|
14
13
|
import type { BoundingBoxSphere, HitTestCustomParams } from '../interact/click-handler';
|
|
15
14
|
import { Burst } from './burst';
|
|
16
15
|
import type { Point } from './particle-mesh';
|
|
@@ -178,8 +177,6 @@ export declare class ParticleSystem extends Component implements Maskable {
|
|
|
178
177
|
private updateEmitterTransform;
|
|
179
178
|
private addParticle;
|
|
180
179
|
setVisible(visible: boolean): void;
|
|
181
|
-
setOpacity(opacity: number): void;
|
|
182
|
-
setParentTransform(transform: Transform): void;
|
|
183
180
|
getTextures(): Texture[];
|
|
184
181
|
startEmit(): void;
|
|
185
182
|
stop(): void;
|
package/dist/vfx-item.d.ts
CHANGED
|
@@ -212,11 +212,6 @@ export declare class VFXItem extends EffectsObject implements Disposable {
|
|
|
212
212
|
*/
|
|
213
213
|
getComponents<T extends Component>(classConstructor: Constructor<T>): T[];
|
|
214
214
|
setParent(vfxItem: VFXItem): void;
|
|
215
|
-
/**
|
|
216
|
-
* 设置元素的透明度
|
|
217
|
-
* @param opacity - 透明度值,范围 [0,1]
|
|
218
|
-
*/
|
|
219
|
-
setOpacity(opacity: number): void;
|
|
220
215
|
/**
|
|
221
216
|
* 激活或停用 VFXItem
|
|
222
217
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@galacean/effects-core",
|
|
3
|
-
"version": "2.6.0-alpha.
|
|
3
|
+
"version": "2.6.0-alpha.1",
|
|
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.5.0-alpha.
|
|
45
|
+
"@galacean/effects-specification": "2.5.0-alpha.3",
|
|
46
46
|
"@galacean/effects-math": "1.1.0",
|
|
47
47
|
"flatbuffers": "24.3.25",
|
|
48
48
|
"uuid": "9.0.1",
|
|
File without changes
|