@galacean/effects-specification 2.5.0-alpha.2 → 2.5.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.
@@ -2,6 +2,7 @@ export declare enum NodeDataType {
2
2
  AnimationClipNodeData = "AnimationClipNodeData",
3
3
  BlendNodeData = "BlendNodeData",
4
4
  ApplyAdditiveNodeData = "ApplyAdditiveNodeData",
5
+ LayerBlendNodeData = "LayerBlendNodeData",
5
6
  StateMachineNodeData = "StateMachineNodeData",
6
7
  TransitionNodeData = "TransitionNodeData",
7
8
  StateNodeData = "StateNodeData",
@@ -44,6 +45,14 @@ export interface ApplyAdditiveNodeData extends GraphNodeData {
44
45
  additiveNodeIndex: number;
45
46
  inputParameterValueNodeIndex: number;
46
47
  }
48
+ export interface LayerData {
49
+ inputNodeIndex?: number;
50
+ weightValueNodeIndex?: number;
51
+ }
52
+ export interface LayerBlendNodeData extends GraphNodeData {
53
+ baseNodeIndex?: number;
54
+ layerDatas?: LayerData[];
55
+ }
47
56
  export interface AndNodeData extends GraphNodeData {
48
57
  type: NodeDataType.AndNodeData;
49
58
  conditionNodeIndices: number[];
@@ -3,6 +3,7 @@ export var NodeDataType;
3
3
  NodeDataType["AnimationClipNodeData"] = "AnimationClipNodeData";
4
4
  NodeDataType["BlendNodeData"] = "BlendNodeData";
5
5
  NodeDataType["ApplyAdditiveNodeData"] = "ApplyAdditiveNodeData";
6
+ NodeDataType["LayerBlendNodeData"] = "LayerBlendNodeData";
6
7
  NodeDataType["StateMachineNodeData"] = "StateMachineNodeData";
7
8
  NodeDataType["TransitionNodeData"] = "TransitionNodeData";
8
9
  NodeDataType["StateNodeData"] = "StateNodeData";
@@ -1,4 +1,4 @@
1
- import type { DataPath } from './components';
1
+ import type { ComponentData, DataPath } from './components';
2
2
  import type { Item } from './item';
3
3
  import type { EndBehavior } from './item/base-item';
4
4
  export declare enum CameraClipMode {
@@ -86,6 +86,7 @@ export interface Composition extends CompositionBase {
86
86
  }
87
87
  /**
88
88
  * 合成数据
89
+ * @deprecated Please use CompositionBase instead
89
90
  */
90
91
  export interface CompositionData extends CompositionBase {
91
92
  /**
@@ -101,6 +102,23 @@ export interface CompositionData extends CompositionBase {
101
102
  */
102
103
  sceneBindings: SceneBindingData[];
103
104
  }
105
+ /**
106
+ * 合成组件数据
107
+ */
108
+ export interface CompositionComponentData extends ComponentData {
109
+ /**
110
+ * 元素信息
111
+ */
112
+ items: DataPath[];
113
+ /**
114
+ * 时间轴资产(TimelineAssetData)
115
+ */
116
+ timelineAsset: DataPath;
117
+ /**
118
+ * 轨道的场景绑定
119
+ */
120
+ sceneBindings: SceneBindingData[];
121
+ }
104
122
  export interface SceneBindingData {
105
123
  /**
106
124
  * 绑定的轨道资产(TrackAssetData)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galacean/effects-specification",
3
- "version": "2.5.0-alpha.2",
3
+ "version": "2.5.0",
4
4
  "description": "Galacean Effects JSON Specification",
5
5
  "module": "./es/index.js",
6
6
  "main": "./es/index.js",