@galacean/effects-specification 2.0.0 → 2.0.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.
@@ -116,4 +116,8 @@ export interface ModelLightComponentData extends ComponentData {
116
116
  * @default 45度
117
117
  */
118
118
  outerConeAngle?: number;
119
+ /**
120
+ * 跟随相机
121
+ */
122
+ followCamera?: boolean;
119
123
  }
@@ -37,5 +37,9 @@ export declare enum RenderMode3D {
37
37
  /**
38
38
  * 自发光
39
39
  */
40
- emissive = "emissive"
40
+ emissive = "emissive",
41
+ /**
42
+ * 漫反射
43
+ */
44
+ diffuse = "diffuse"
41
45
  }
@@ -39,4 +39,8 @@ export var RenderMode3D;
39
39
  * 自发光
40
40
  */
41
41
  RenderMode3D["emissive"] = "emissive";
42
+ /**
43
+ * 漫反射
44
+ */
45
+ RenderMode3D["diffuse"] = "diffuse";
42
46
  })(RenderMode3D || (RenderMode3D = {}));
@@ -1,6 +1,6 @@
1
1
  import type { BinaryPointer } from '../binary';
2
2
  import type { ComponentData, DataPath, DataType } from '../components';
3
- import type { SizeOverLifetime, RotationOverLifetime, PositionOverLifetime, ColorOverLifetime, RendererOptions, ItemType } from '../type';
3
+ import type { SizeOverLifetime, RotationOverLifetime, PositionOverLifetime, ColorOverLifetime, RendererOptions, ItemType, MaskMode, RenderMode } from '../type';
4
4
  import type { BaseItem, EndBehavior } from './base-item';
5
5
  /**
6
6
  * 插件元素
@@ -114,4 +114,8 @@ export interface SpineComponent extends ComponentData {
114
114
  images: DataPath[];
115
115
  skeletonType: skeletonFileType;
116
116
  };
117
+ renderer?: {
118
+ renderMode: RenderMode;
119
+ maskMode: MaskMode;
120
+ };
117
121
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galacean/effects-specification",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
4
4
  "description": "Galacean Effects JSON Specification",
5
5
  "module": "./es/index.js",
6
6
  "main": "./es/index.js",
@@ -15,6 +15,18 @@
15
15
  "types": "./es/index.d.ts"
16
16
  }
17
17
  },
18
+ "scripts": {
19
+ "prebuild": "npm run clean:all",
20
+ "build": "npm run build:lib",
21
+ "build:lib": "tsc -b tsconfig.build.json",
22
+ "lint": "eslint src --ext .ts,.mjs",
23
+ "lint:fix": "eslint src --fix --quiet --ext .ts,.mjs",
24
+ "check:ts": "tsc -b tsconfig.check.json",
25
+ "clean:all": "npm run clean:lib",
26
+ "clean:lib": "rimraf es/**",
27
+ "prepare": "husky install",
28
+ "prepublishOnly": "npm run build"
29
+ },
18
30
  "browserslist": [
19
31
  "iOS 9"
20
32
  ],
@@ -37,15 +49,5 @@
37
49
  "publishConfig": {
38
50
  "access": "public",
39
51
  "registry": "https://registry.npmjs.org"
40
- },
41
- "scripts": {
42
- "prebuild": "npm run clean:all",
43
- "build": "npm run build:lib",
44
- "build:lib": "tsc -b tsconfig.build.json",
45
- "lint": "eslint src --ext .ts,.mjs",
46
- "lint:fix": "eslint src --fix --quiet --ext .ts,.mjs",
47
- "check:ts": "tsc -b tsconfig.check.json",
48
- "clean:all": "npm run clean:lib",
49
- "clean:lib": "rimraf es/**"
50
52
  }
51
- }
53
+ }