@galacean/engine-spine 0.0.0-experimental-engine-spine-2025509 → 0.0.0-experimental-engine-spine-20250613
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/README.md +67 -43
- package/dist/browser.js +1 -1
- package/dist/main.js +11750 -1
- package/dist/main.js.map +1 -1
- package/dist/miniprogram.js +11751 -0
- package/dist/module.js +11637 -1
- package/dist/module.js.map +1 -1
- package/package.json +95 -27
- package/types/index.d.ts +3 -9
- package/types/renderer/SpineAnimationRenderer.d.ts +5 -0
package/package.json
CHANGED
|
@@ -1,45 +1,79 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.0.0-experimental-engine-spine-
|
|
2
|
+
"version": "0.0.0-experimental-engine-spine-20250613",
|
|
3
3
|
"description": "galacean spine runtime",
|
|
4
4
|
"name": "@galacean/engine-spine",
|
|
5
5
|
"main": "dist/main.js",
|
|
6
6
|
"browser": "dist/browser.js",
|
|
7
7
|
"module": "dist/module.js",
|
|
8
|
-
"
|
|
8
|
+
"packageManager": "pnpm@9.3.0",
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"@esotericsoftware/spine-core": "~4.2.66"
|
|
11
|
+
},
|
|
9
12
|
"peerDependencies": {
|
|
10
|
-
"@galacean/engine": ">=1.
|
|
13
|
+
"@galacean/engine": ">=1.5.0"
|
|
11
14
|
},
|
|
12
15
|
"devDependencies": {
|
|
13
|
-
"@babel/core": "^7.
|
|
14
|
-
"@babel/plugin-proposal-class-properties": "^7.
|
|
15
|
-
"@babel/plugin-proposal-decorators": "^7.
|
|
16
|
-
"@babel/plugin-proposal-optional-chaining": "^7.
|
|
17
|
-
"@babel/plugin-transform-
|
|
18
|
-
"@babel/
|
|
19
|
-
"@babel/preset-
|
|
20
|
-
"@
|
|
21
|
-
"@galacean/engine
|
|
22
|
-
"@
|
|
16
|
+
"@babel/core": "^7.26.0",
|
|
17
|
+
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
18
|
+
"@babel/plugin-proposal-decorators": "^7.25.9",
|
|
19
|
+
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
|
|
20
|
+
"@babel/plugin-transform-class-properties": "^7.25.9",
|
|
21
|
+
"@babel/plugin-transform-object-assign": "^7.25.9",
|
|
22
|
+
"@babel/preset-env": "^7.26.0",
|
|
23
|
+
"@babel/preset-typescript": "^7.26.0",
|
|
24
|
+
"@galacean/engine": "^1.5.0",
|
|
25
|
+
"@galacean/engine-toolkit": "beta",
|
|
26
|
+
"@rollup/plugin-babel": "^5.3.1",
|
|
23
27
|
"@rollup/plugin-commonjs": "^16.0.0",
|
|
24
|
-
"@rollup/plugin-inject": "^4.0.
|
|
28
|
+
"@rollup/plugin-inject": "^4.0.4",
|
|
25
29
|
"@rollup/plugin-node-resolve": "^10.0.0",
|
|
26
|
-
"@rollup/plugin-replace": "^2.
|
|
27
|
-
"@rollup/plugin-terser": "^0.4.
|
|
28
|
-
"@swc/core": "^1.3
|
|
29
|
-
"@swc/helpers": "^0.5",
|
|
30
|
-
"
|
|
30
|
+
"@rollup/plugin-replace": "^2.4.2",
|
|
31
|
+
"@rollup/plugin-terser": "^0.4.4",
|
|
32
|
+
"@swc/core": "^1.9.3",
|
|
33
|
+
"@swc/helpers": "^0.5.15",
|
|
34
|
+
"@types/chai": "^4.3.20",
|
|
35
|
+
"@types/jest": "^29.5.14",
|
|
36
|
+
"@types/node": "^20.17.9",
|
|
37
|
+
"@vitejs/plugin-basic-ssl": "^1.2.0",
|
|
38
|
+
"babel-core": "^6.26.3",
|
|
39
|
+
"babel-jest": "^29.7.0",
|
|
40
|
+
"chai": "^4.5.0",
|
|
41
|
+
"chai-spies": "^1.1.0",
|
|
42
|
+
"cross-env": "^5.2.1",
|
|
43
|
+
"cypress": "^13.16.0",
|
|
44
|
+
"cypress-recurse": "^1.35.3",
|
|
31
45
|
"dat.gui": "^0.7.9",
|
|
46
|
+
"jest": "^29.7.0",
|
|
47
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
48
|
+
"jest-webgl-canvas-mock": "^2.5.3",
|
|
49
|
+
"nock": "^13.5.6",
|
|
50
|
+
"odiff-bin": "^3.2.0",
|
|
32
51
|
"react": "^16.14.0",
|
|
33
52
|
"react-dom": "^16.14.0",
|
|
34
|
-
"
|
|
35
|
-
"rollup
|
|
53
|
+
"regenerator-runtime": "^0.14.1",
|
|
54
|
+
"rollup": "^2.79.2",
|
|
55
|
+
"rollup-plugin-glslify": "^1.3.1",
|
|
36
56
|
"rollup-plugin-modify": "^3.0.0",
|
|
37
|
-
"rollup-plugin-serve": "^1.1.
|
|
38
|
-
"rollup-plugin-swc3": "^0.
|
|
57
|
+
"rollup-plugin-serve": "^1.1.1",
|
|
58
|
+
"rollup-plugin-swc3": "^0.12.1",
|
|
39
59
|
"rollup-plugin-terser": "^7.0.2",
|
|
40
60
|
"rollup-plugin-version-injector": "^1.3.3",
|
|
41
|
-
"
|
|
42
|
-
"
|
|
61
|
+
"sass": "^1.81.1",
|
|
62
|
+
"sinon": "^18.0.1",
|
|
63
|
+
"ts-jest": "^29.2.5",
|
|
64
|
+
"ts-node": "^10.9.2",
|
|
65
|
+
"tsconfig-paths": "^4.2.0",
|
|
66
|
+
"typescript": "^5.5.3",
|
|
67
|
+
"vite": "^5.3.4",
|
|
68
|
+
"husky": "^8.0.3",
|
|
69
|
+
"lint-staged": "^10.5.4",
|
|
70
|
+
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
71
|
+
"@typescript-eslint/parser": "^6.21.0",
|
|
72
|
+
"eslint": "^8.57.1",
|
|
73
|
+
"eslint-config-prettier": "^8.10.0",
|
|
74
|
+
"eslint-plugin-prettier": "^5.2.1",
|
|
75
|
+
"@commitlint/cli": "^11.0.0",
|
|
76
|
+
"@commitlint/config-conventional": "^11.0.0"
|
|
43
77
|
},
|
|
44
78
|
"ci": {
|
|
45
79
|
"type": "aci",
|
|
@@ -49,15 +83,49 @@
|
|
|
49
83
|
"types",
|
|
50
84
|
"dist"
|
|
51
85
|
],
|
|
86
|
+
"jest": {
|
|
87
|
+
"runner": "jest-runner",
|
|
88
|
+
"testEnvironment": "jsdom",
|
|
89
|
+
"testEnvironmentOptions": {
|
|
90
|
+
"url": "https://mdn.alipayobjects.com/",
|
|
91
|
+
"userAgent": "Agent/007"
|
|
92
|
+
},
|
|
93
|
+
"preset": "ts-jest",
|
|
94
|
+
"collectCoverage": true,
|
|
95
|
+
"testRegex": "(/tests/.*\\.(test|spec))\\.ts?$",
|
|
96
|
+
"collectCoverageFrom": [
|
|
97
|
+
"src/**/*.ts"
|
|
98
|
+
],
|
|
99
|
+
"transform": {
|
|
100
|
+
"^.+\\.js$": "babel-jest",
|
|
101
|
+
"^.+\\.ts$": "ts-jest"
|
|
102
|
+
},
|
|
103
|
+
"transformIgnorePatterns": [
|
|
104
|
+
"node_modules/(?!(.*@esotericsoftware/spine-core.*))"
|
|
105
|
+
],
|
|
106
|
+
"setupFilesAfterEnv": [
|
|
107
|
+
"./jest.setup.ts",
|
|
108
|
+
"jest-webgl-canvas-mock"
|
|
109
|
+
]
|
|
110
|
+
},
|
|
52
111
|
"scripts": {
|
|
53
112
|
"example": "vite",
|
|
54
113
|
"test": "jest",
|
|
55
|
-
"test
|
|
114
|
+
"test:cov": "jest --coverage",
|
|
115
|
+
"test:debug": "cross-env DEBUG_MODE=1 jest",
|
|
116
|
+
"e2e:case": "vite serve ./e2e/.dev --config ./e2e/.dev/vite.config.js",
|
|
117
|
+
"e2e": "cypress run --browser chrome --headless",
|
|
118
|
+
"e2e:debug": "cypress open",
|
|
56
119
|
"dev": "rollup -cw",
|
|
57
120
|
"build": "npm run b:types && cross-env BUILD_TYPE=ALL rollup -c",
|
|
121
|
+
"build:watch": "npm run b:types && cross-env BUILD_TYPE=ALL rollup -c --watch",
|
|
58
122
|
"ci": "npm run lint && npm run test-cov",
|
|
59
123
|
"lint": "eslint src --fix --ext .ts,.tsx",
|
|
60
|
-
"b:types": "tsc
|
|
124
|
+
"b:types": "tsc",
|
|
125
|
+
"prepare": "husky install"
|
|
126
|
+
},
|
|
127
|
+
"lint-staged": {
|
|
128
|
+
"*.{ts,tsx}": ["eslint --fix"]
|
|
61
129
|
},
|
|
62
130
|
"types": "types/index.d.ts",
|
|
63
131
|
"repository": "https://github.com/johanzhu/engine-spine.git"
|
package/types/index.d.ts
CHANGED
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export { AssetManager } from "./spine-core/AssetManager";
|
|
5
|
-
export { Texture } from "./spine-core/Texture";
|
|
6
|
-
export { TextureAtlas } from "./spine-core/TextureAtlas";
|
|
7
|
-
export { AtlasAttachmentLoader } from "./spine-core/AtlasAttachmentLoader";
|
|
8
|
-
export { SkeletonJson } from "./spine-core/SkeletonJson";
|
|
9
|
-
export { SkeletonBinary } from "./spine-core/SkeletonBinary";
|
|
1
|
+
export * from "@esotericsoftware/spine-core";
|
|
2
|
+
export * from "./loader/index";
|
|
3
|
+
export * from "./renderer/index";
|
|
10
4
|
export declare const version = "__buildVersion";
|
|
@@ -30,6 +30,11 @@ export declare class SpineAnimationRenderer extends Renderer {
|
|
|
30
30
|
* Contains the default animation name to be played, whether this animation should loop, the default skin name.
|
|
31
31
|
*/
|
|
32
32
|
readonly defaultConfig: SpineAnimationDefaultConfig;
|
|
33
|
+
/**
|
|
34
|
+
* Hook function called after animation applied and before building render primitive.
|
|
35
|
+
* This allows custom logic to be executed after animation state is applied but before buffer upload.
|
|
36
|
+
*/
|
|
37
|
+
onBeforeBuildPrimitive?: () => void;
|
|
33
38
|
/** @internal */
|
|
34
39
|
_primitive: Primitive;
|
|
35
40
|
/** @internal */
|