@galacean/effects-specification 2.7.0 → 2.7.1

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/assets.d.ts CHANGED
@@ -81,7 +81,7 @@ export interface Image extends AssetBase {
81
81
  }
82
82
  export interface VideoInfo extends AssetBase {
83
83
  hevc?: {
84
- url: string | HTMLVideoElement;
84
+ url: string;
85
85
  codec: HevcVideoCodec;
86
86
  };
87
87
  }
package/es/type.d.ts CHANGED
@@ -205,7 +205,7 @@ export interface TextureSheetAnimation {
205
205
  /**
206
206
  * 图层帧动画是否循环播放
207
207
  */
208
- loop: boolean;
208
+ loop?: boolean;
209
209
  }
210
210
  /**
211
211
  * 精灵图坐标属性
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galacean/effects-specification",
3
- "version": "2.7.0",
3
+ "version": "2.7.1",
4
4
  "description": "Galacean Effects JSON Specification",
5
5
  "module": "./es/index.js",
6
6
  "main": "./es/index.js",
@@ -15,6 +15,17 @@
15
15
  "types": "./es/index.d.ts"
16
16
  }
17
17
  },
18
+ "scripts": {
19
+ "prebuild": "pnpm clean",
20
+ "build": "pnpm 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": "rimraf es/**",
26
+ "prepare": "husky install",
27
+ "prepublishOnly": "npm run build"
28
+ },
18
29
  "browserslist": [
19
30
  "iOS 9"
20
31
  ],
@@ -37,14 +48,5 @@
37
48
  "publishConfig": {
38
49
  "access": "public",
39
50
  "registry": "https://registry.npmjs.org"
40
- },
41
- "scripts": {
42
- "prebuild": "pnpm clean",
43
- "build": "pnpm 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": "rimraf es/**"
49
51
  }
50
- }
52
+ }