@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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.0-beta.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
- "@galacean/engine": "^1.0.0-beta.0",
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
- "@pika/react": "^16.13.1",
22
- "@pika/react-dom": "^16.13.1",
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
- "vite": "1.0.0-rc.5",
30
- "vite-plugin-react": "^3.0.0"
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": "rollup -c rollup.config.js && npm run b:types",
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 './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 } from '@galacean/engine';
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;
@@ -0,0 +1,6 @@
1
+ import { Engine, Material } from "@galacean/engine";
2
+ export declare class SpineMaterial extends Material {
3
+ private static _spineVS;
4
+ private static _spineFS;
5
+ constructor(engine: Engine);
6
+ }
@@ -25,7 +25,6 @@ export declare class TextureAtlasRegion extends TextureRegion {
25
25
  x: number;
26
26
  y: number;
27
27
  index: number;
28
- rotate: boolean;
29
28
  degrees: number;
30
29
  texture: Texture;
31
30
  }