@galacean/effects-specification 2.0.1 → 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.
- package/es/item/spine-item.d.ts +5 -1
- package/package.json +14 -12
package/es/item/spine-item.d.ts
CHANGED
|
@@ -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.
|
|
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
|
+
}
|