@galacean/effects-specification 2.0.0-alpha.0 → 2.0.0-alpha.2

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.
@@ -1,7 +1,7 @@
1
1
  import type { BaseItem, ItemEndBehavior } from '../base-item';
2
2
  import type { BinaryEnv } from '../../binary';
3
3
  import type { SkyboxCubeTexturePointer } from './binary';
4
- import type { ItemType } from 'src/type';
4
+ import type { ItemType } from '../../type';
5
5
  import type { ComponentData, DataPath } from '../../components';
6
6
  export interface SkyboxOptions<T extends BinaryEnv> {
7
7
  renderable: boolean;
@@ -1,5 +1,5 @@
1
1
  import type { SizeOverLifetime, RotationOverLifetime, PositionOverLifetime, ColorOverLifetime, ItemType } from '../type';
2
- import type { RGBAColorValue } from '../numberExpression';
2
+ import type { RGBAColorValue } from '../number-expression';
3
3
  import type { BaseItem } from './base-item';
4
4
  import type { ComponentData, DataPath, EffectsObjectData } from '../components';
5
5
  /**
@@ -1,9 +1,9 @@
1
1
  import type { ItemType, RendererOptions, TextureSheetAnimation, BlendingMode, SplitParameter } from '../type';
2
- import type { FixedNumberExpression, NumberExpression, GradientColor, vec3, FixedVec3Expression, ColorExpression, FunctionExpression } from '../numberExpression';
2
+ import type { FixedNumberExpression, NumberExpression, GradientColor, vec3, FixedVec3Expression, ColorExpression, FunctionExpression } from '../number-expression';
3
3
  import type { BaseItem, ItemEndBehavior } from './base-item';
4
4
  import type { ParticleShape } from './particle-shape';
5
5
  import type { DistortionFilterParams } from './filter-item';
6
- import type { ComponentData } from 'src/components';
6
+ import type { ComponentData } from '../components';
7
7
  /**
8
8
  * 粒子交互行为
9
9
  */
@@ -1,5 +1,5 @@
1
1
  import type { ShapeType } from '../type';
2
- import type { NumberExpression, vec3 } from '../numberExpression';
2
+ import type { NumberExpression, vec3 } from '../number-expression';
3
3
  export declare enum ShapeArcMode {
4
4
  /**
5
5
  * 随机
@@ -1,7 +1,7 @@
1
1
  import type { BaseItem, ItemEndBehavior } from './base-item';
2
2
  import type { SizeOverLifetime, RotationOverLifetime, PositionOverLifetime, ColorOverLifetime, ItemType, TextureSheetAnimation, RendererOptions, SplitParameter, InteractBehavior } from '../type';
3
- import type { RGBAColorValue } from '../numberExpression';
4
- import type { ComponentData } from 'src/components';
3
+ import type { RGBAColorValue } from '../number-expression';
4
+ import type { ComponentData } from '../components';
5
5
  /**
6
6
  * 图层元素
7
7
  */
@@ -1,8 +1,8 @@
1
1
  import type { BaseItem, ItemEndBehavior } from './base-item';
2
2
  import type { SizeOverLifetime, RotationOverLifetime, PositionOverLifetime, ColorOverLifetime, ItemType, TextureSheetAnimation, RendererOptions, InteractBehavior } from '../type';
3
- import type { RGBAColorValue } from '../numberExpression';
4
- import type { FontStyle, TextAlignment, TextBaseline, TextOverflow, TextWeight } from 'src/text';
5
- import type { ComponentData } from 'src/components';
3
+ import type { RGBAColorValue } from '../number-expression';
4
+ import type { FontStyle, TextAlignment, TextBaseline, TextOverflow, TextWeight } from '../text';
5
+ import type { ComponentData } from '../components';
6
6
  /**
7
7
  * 文本元素
8
8
  */
@@ -7,10 +7,11 @@ import type { BinaryFile } from './binary';
7
7
  import type { ComponentData, GeometryData, MaterialData, ShaderData } from './components';
8
8
  import type { VFXItemData } from './vfx-item-data';
9
9
  /**
10
- * 场景信息
10
+ * runtime 2.0 之前的场景信息
11
11
  * 素材信息存放于统一数据结构中
12
+ * @deprecated
12
13
  */
13
- export interface JSONScene {
14
+ export interface JSONSceneLegacy {
14
15
  /************** 文件版本不是 Player 版本,应用于文件变更后在 editor/player 中加载时的分类处理 **************/
15
16
  /**
16
17
  * JSON 版本
@@ -94,21 +95,15 @@ export interface JSONScene {
94
95
  */
95
96
  export type SceneRequire = 'filter';
96
97
  /**
97
- * 2.0 场景信息
98
+ * 场景信息
98
99
  * 素材信息存放于统一数据结构中
99
100
  */
100
- export interface JSONSceneVersion3 {
101
+ export interface JSONScene {
101
102
  /************** 文件版本不是 Player 版本,应用于文件变更后在 editor/player 中加载时的分类处理 **************/
102
103
  /**
103
104
  * JSON 版本
104
105
  *
105
- * 1.1 增加数据模板
106
- * 1.2 增加 anchor
107
- * 1.3 增加二进制文件格式
108
- * 1.5 增加 Spine 数据
109
- * 2.0 改造升级
110
- * 2.1 增加文本元素
111
- * 2.2 数据类型兼容
106
+ * 3.0 EC 改造
112
107
  */
113
108
  version: string;
114
109
  /**
@@ -1,4 +1,4 @@
1
- import type { RGBAColor } from './numberExpression';
1
+ import type { RGBAColor } from './number-expression';
2
2
  export interface StringTemplate {
3
3
  fonts: FontBase[];
4
4
  texts: Text[];
@@ -1,4 +1,4 @@
1
- import type { FixedVec3Expression, vec2, vec3, GradientColor, ShapePoints, ShapeSplits, FixedNumberExpression } from './numberExpression';
1
+ import type { FixedVec3Expression, vec2, vec3, GradientColor, ShapePoints, ShapeSplits, FixedNumberExpression } from './number-expression';
2
2
  /**
3
3
  * 播放器版本
4
4
  */
@@ -539,7 +539,11 @@ export declare enum ItemType {
539
539
  /**
540
540
  * 天空盒元素
541
541
  */
542
- skybox = "skybox"
542
+ skybox = "skybox",
543
+ /**
544
+ * 特效元素
545
+ */
546
+ effect = "effect"
543
547
  }
544
548
  /**
545
549
  * 渲染模式
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galacean/effects-specification",
3
- "version": "2.0.0-alpha.0",
3
+ "version": "2.0.0-alpha.2",
4
4
  "description": "Galacean Effects JSON Specification",
5
5
  "module": "./dist/index.mjs",
6
6
  "main": "./dist/index.js",
@@ -60,7 +60,8 @@
60
60
  "rollup": "^2.70.1",
61
61
  "rollup-plugin-livereload": "^2.0.5",
62
62
  "rollup-plugin-serve": "^1.1.0",
63
- "typescript": "^4.6.2"
63
+ "typescript": "^4.6.2",
64
+ "uuid": "9.0.1"
64
65
  },
65
66
  "author": "Ant Group CO., Ltd.",
66
67
  "license": "MIT",