@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.
- package/dist/fallback/migration.d.ts +7 -3
- package/dist/fallback/utils.d.ts +8 -1
- package/dist/fallback.js +429 -5
- package/dist/fallback.js.map +1 -1
- package/dist/fallback.mjs +427 -6
- package/dist/fallback.mjs.map +1 -1
- package/dist/index.js +28 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +29 -2
- package/dist/index.mjs.map +1 -1
- package/dist/src/binary.d.ts +1 -1
- package/dist/src/components.d.ts +4 -3
- package/dist/src/composition.d.ts +5 -1
- package/dist/src/index.d.ts +4 -1
- package/dist/src/item/base-item.d.ts +3 -8
- package/dist/src/item/camera-item.d.ts +1 -1
- package/dist/src/item/composition-item.d.ts +1 -1
- package/dist/src/item/effect-item.d.ts +17 -0
- package/dist/src/item/interact-item.d.ts +2 -2
- package/dist/src/item/model/camera.d.ts +20 -4
- package/dist/src/item/model/light.d.ts +1 -1
- package/dist/src/item/model/material.d.ts +1 -1
- package/dist/src/item/model/mesh.d.ts +1 -1
- package/dist/src/item/model/skybox.d.ts +1 -1
- package/dist/src/item/null-item.d.ts +1 -1
- package/dist/src/item/particle-item.d.ts +2 -2
- package/dist/src/item/particle-shape.d.ts +1 -1
- package/dist/src/item/sprite-item.d.ts +2 -2
- package/dist/src/item/text-item.d.ts +3 -3
- package/dist/src/scene.d.ts +6 -11
- package/dist/src/text.d.ts +1 -1
- package/dist/src/type.d.ts +6 -2
- package/package.json +3 -2
- /package/dist/src/{numberExpression.d.ts → number-expression.d.ts} +0 -0
|
@@ -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 '
|
|
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 '../
|
|
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 '../
|
|
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 '
|
|
6
|
+
import type { ComponentData } from '../components';
|
|
7
7
|
/**
|
|
8
8
|
* 粒子交互行为
|
|
9
9
|
*/
|
|
@@ -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 '../
|
|
4
|
-
import type { ComponentData } from '
|
|
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 '../
|
|
4
|
-
import type { FontStyle, TextAlignment, TextBaseline, TextOverflow, TextWeight } from '
|
|
5
|
-
import type { ComponentData } from '
|
|
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
|
*/
|
package/dist/src/scene.d.ts
CHANGED
|
@@ -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
|
|
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
|
-
*
|
|
98
|
+
* 场景信息
|
|
98
99
|
* 素材信息存放于统一数据结构中
|
|
99
100
|
*/
|
|
100
|
-
export interface
|
|
101
|
+
export interface JSONScene {
|
|
101
102
|
/************** 文件版本不是 Player 版本,应用于文件变更后在 editor/player 中加载时的分类处理 **************/
|
|
102
103
|
/**
|
|
103
104
|
* JSON 版本
|
|
104
105
|
*
|
|
105
|
-
*
|
|
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
|
/**
|
package/dist/src/text.d.ts
CHANGED
package/dist/src/type.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FixedVec3Expression, vec2, vec3, GradientColor, ShapePoints, ShapeSplits, FixedNumberExpression } from './
|
|
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.
|
|
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",
|
|
File without changes
|