@galacean/engine-spine 1.0.0-beta.0 → 1.0.0-test.0
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/browser.js +1 -1
- package/dist/main.js +8745 -1
- package/dist/main.js.map +1 -0
- package/dist/miniprogram.js +8745 -0
- package/dist/module.js +8733 -1
- package/dist/module.js.map +1 -1
- package/package.json +21 -9
- package/types/SpineAnimation.d.ts +9 -6
- package/types/SpineMaterial.d.ts +6 -0
- package/types/spine-core/TextureAtlas.d.ts +0 -1
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.0.0-
|
|
2
|
+
"version": "1.0.0-test.0",
|
|
3
3
|
"description": "galacean spine runtime",
|
|
4
4
|
"name": "@galacean/engine-spine",
|
|
5
5
|
"main": "dist/main.js",
|
|
@@ -16,18 +16,29 @@
|
|
|
16
16
|
"@babel/plugin-transform-object-assign": "^7.12.1",
|
|
17
17
|
"@babel/preset-env": "^7.12.1",
|
|
18
18
|
"@babel/preset-typescript": "^7.12.1",
|
|
19
|
-
"@
|
|
19
|
+
"@babel/core": "^7.22.5",
|
|
20
|
+
"@swc/core": "^1.3.32",
|
|
21
|
+
"@swc/helpers": "^0.5",
|
|
22
|
+
"@galacean/engine": "1.0.0-beta.15",
|
|
20
23
|
"@galacean/engine-toolkit": "^1.0.0-alpha.18",
|
|
21
|
-
"@
|
|
22
|
-
"@
|
|
24
|
+
"@rollup/plugin-terser": "^0.4.3",
|
|
25
|
+
"@rollup/plugin-inject": "^4.0.2",
|
|
23
26
|
"@rollup/plugin-babel": "^5.2.1",
|
|
24
27
|
"@rollup/plugin-commonjs": "^16.0.0",
|
|
25
28
|
"@rollup/plugin-node-resolve": "^10.0.0",
|
|
29
|
+
"@rollup/plugin-replace": "^2.3.4",
|
|
30
|
+
"react": "^16.14.0",
|
|
31
|
+
"react-dom": "^16.14.0",
|
|
26
32
|
"rollup": "^2.32.0",
|
|
27
33
|
"rollup-plugin-terser": "^7.0.2",
|
|
28
34
|
"rollup-plugin-version-injector": "^1.3.3",
|
|
29
|
-
"
|
|
30
|
-
"
|
|
35
|
+
"rollup-plugin-glslify": "^1.2.0",
|
|
36
|
+
"rollup-plugin-modify": "^3.0.0",
|
|
37
|
+
"rollup-plugin-serve": "^1.1.0",
|
|
38
|
+
"rollup-plugin-swc3": "^0.8.0",
|
|
39
|
+
"vite": "^4.3.9",
|
|
40
|
+
"typescript": "^4.8.4",
|
|
41
|
+
"cross-env": "^5.2.0"
|
|
31
42
|
},
|
|
32
43
|
"ci": {
|
|
33
44
|
"type": "aci",
|
|
@@ -42,10 +53,11 @@
|
|
|
42
53
|
"test": "jest",
|
|
43
54
|
"test-cov": "jest --coverage",
|
|
44
55
|
"dev": "rollup -cw",
|
|
45
|
-
"build": "
|
|
56
|
+
"build": "npm run b:types && cross-env BUILD_TYPE=ALL rollup -c",
|
|
46
57
|
"ci": "npm run lint && npm run test-cov",
|
|
47
58
|
"lint": "eslint src --fix --ext .ts,.tsx",
|
|
48
59
|
"b:types": "tsc --emitDeclarationOnly"
|
|
49
60
|
},
|
|
50
|
-
"types": "types/index.d.ts"
|
|
51
|
-
|
|
61
|
+
"types": "types/index.d.ts",
|
|
62
|
+
"repository": "https://github.com/johanzhu/engine-spine.git"
|
|
63
|
+
}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import { Skeleton } from
|
|
2
|
-
import { SkeletonData } from
|
|
3
|
-
import { AnimationState } from
|
|
4
|
-
import { MeshGenerator } from
|
|
5
|
-
import { SpineRenderSetting } from
|
|
6
|
-
import { Script, Entity, Texture2D } from
|
|
1
|
+
import { Skeleton } from "./spine-core/Skeleton";
|
|
2
|
+
import { SkeletonData } from "./spine-core/SkeletonData";
|
|
3
|
+
import { AnimationState } from "./spine-core/AnimationState";
|
|
4
|
+
import { MeshGenerator } from "./core/MeshGenerator";
|
|
5
|
+
import { SpineRenderSetting } from "./types";
|
|
6
|
+
import { Script, Entity, Texture2D, Material, Engine } from "@galacean/engine";
|
|
7
7
|
export declare class SpineAnimation extends Script {
|
|
8
|
+
/** Spine 材质 */
|
|
9
|
+
private static _defaultMaterial;
|
|
10
|
+
static getDefaultMaterial(engine: Engine): Material;
|
|
8
11
|
private _skeletonData;
|
|
9
12
|
private _skeleton;
|
|
10
13
|
private _state;
|