@galacean/engine-spine 1.0.0-test.5 → 1.1.0-beta.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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.0-test.5",
2
+ "version": "1.1.0-beta.1",
3
3
  "description": "galacean spine runtime",
4
4
  "name": "@galacean/engine-spine",
5
5
  "main": "dist/main.js",
@@ -7,38 +7,40 @@
7
7
  "module": "dist/module.js",
8
8
  "dependencies": {},
9
9
  "peerDependencies": {
10
- "@galacean/engine": ">=1.0.0"
10
+ "@galacean/engine": ">=1.1.0-beta.0"
11
11
  },
12
12
  "devDependencies": {
13
+ "@babel/core": "^7.22.5",
13
14
  "@babel/plugin-proposal-class-properties": "^7.12.1",
14
15
  "@babel/plugin-proposal-decorators": "^7.12.1",
15
16
  "@babel/plugin-proposal-optional-chaining": "^7.12.1",
16
17
  "@babel/plugin-transform-object-assign": "^7.12.1",
17
18
  "@babel/preset-env": "^7.12.1",
18
19
  "@babel/preset-typescript": "^7.12.1",
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",
23
- "@galacean/engine-toolkit": "^1.0.0-alpha.18",
24
- "@rollup/plugin-terser": "^0.4.3",
25
- "@rollup/plugin-inject": "^4.0.2",
20
+ "@galacean/engine": "^1.1.0-beta.11",
21
+ "@galacean/engine-toolkit": "^1.1.0-beta.0",
26
22
  "@rollup/plugin-babel": "^5.2.1",
27
23
  "@rollup/plugin-commonjs": "^16.0.0",
24
+ "@rollup/plugin-inject": "^4.0.2",
28
25
  "@rollup/plugin-node-resolve": "^10.0.0",
29
26
  "@rollup/plugin-replace": "^2.3.4",
27
+ "@rollup/plugin-terser": "^0.4.3",
28
+ "@swc/core": "^1.3.32",
29
+ "@swc/helpers": "^0.5",
30
+ "cross-env": "^5.2.0",
31
+ "dat.gui": "^0.7.9",
30
32
  "react": "^16.14.0",
31
33
  "react-dom": "^16.14.0",
32
34
  "rollup": "^2.32.0",
33
- "rollup-plugin-terser": "^7.0.2",
34
- "rollup-plugin-version-injector": "^1.3.3",
35
35
  "rollup-plugin-glslify": "^1.2.0",
36
36
  "rollup-plugin-modify": "^3.0.0",
37
37
  "rollup-plugin-serve": "^1.1.0",
38
38
  "rollup-plugin-swc3": "^0.8.0",
39
- "vite": "^4.3.9",
39
+ "rollup-plugin-terser": "^7.0.2",
40
+ "rollup-plugin-version-injector": "^1.3.3",
40
41
  "typescript": "^4.8.4",
41
- "cross-env": "^5.2.0"
42
+ "vite": "^4.3.9",
43
+ "@galacean/engine-lottie": "^1.0.1"
42
44
  },
43
45
  "ci": {
44
46
  "type": "aci",
@@ -60,4 +62,4 @@
60
62
  },
61
63
  "types": "types/index.d.ts",
62
64
  "repository": "https://github.com/johanzhu/engine-spine.git"
63
- }
65
+ }
@@ -0,0 +1,17 @@
1
+ import { Script, Entity } from '@galacean/engine';
2
+ export declare class SpineComponent extends Script {
3
+ private _autoPlay;
4
+ private _scale;
5
+ private _animationName;
6
+ private _resource;
7
+ onStart(): void;
8
+ get animationName(): string;
9
+ set animationName(name: string);
10
+ get resource(): Entity;
11
+ set resource(r: Entity);
12
+ get autoPlay(): boolean;
13
+ set autoPlay(value: boolean);
14
+ get scale(): number;
15
+ set scale(value: number);
16
+ onDestroy(): void;
17
+ }
package/types/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- export { SpineAnimation } from './SpineAnimation';
2
1
  import './SpineLoader';
3
2
  import './AntGSpineLoader';
3
+ export { SpineAnimation } from './SpineAnimation';
4
4
  export { AssetManager } from './spine-core/AssetManager';
5
5
  export { Texture } from './spine-core/Texture';
6
6
  export { TextureAtlas } from './spine-core/TextureAtlas';