@galacean/effects-specification 2.0.0-alpha.21 → 2.0.0-alpha.22

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/es/binary.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { DataPath, DataType, EffectsObjectData } from './components';
1
+ import type { DataType, EffectsObjectData } from './components';
2
2
  import type { RenderLevel } from './type';
3
3
  import type { ValueType } from './number-expression';
4
4
  /**
@@ -29,11 +29,6 @@ export interface BinaryFile extends EffectsObjectData {
29
29
  dataType: DataType.BinaryAsset;
30
30
  renderLevel?: RenderLevel;
31
31
  }
32
- export interface BinaryDataSegment {
33
- buffer: DataPath;
34
- offset: number;
35
- length: number;
36
- }
37
32
  export type BinaryEnv = 'studio' | 'runtime' | 'json';
38
33
  /**
39
34
  * 类型模板,根据 runtime/studio/json 环境区别类型
@@ -1,4 +1,3 @@
1
- import type { BinaryDataSegment } from './binary';
2
1
  import type { Vector2Data } from './item/base-item';
3
2
  export declare enum DataType {
4
3
  VFXItemData = "VFXItemData",
@@ -91,9 +90,9 @@ export interface GeometryData extends EffectsObjectData {
91
90
  */
92
91
  buffer?: string;
93
92
  /**
94
- * 存放 position, uv, normal, indices 的打包数据二进制资产引用
93
+ * 存放 position, uv, normal, indices 的二进制数据,用于序列化二进制数据
95
94
  */
96
- bufferAsset?: BinaryDataSegment;
95
+ binaryData?: Uint8Array;
97
96
  /**
98
97
  * 所有的骨骼名称
99
98
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galacean/effects-specification",
3
- "version": "2.0.0-alpha.21",
3
+ "version": "2.0.0-alpha.22",
4
4
  "description": "Galacean Effects JSON Specification",
5
5
  "module": "./es/index.js",
6
6
  "main": "./es/index.js",