@galacean/engine-spine 0.0.0-experimental-2024071102 → 0.0.0-experimental-2024071201

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": "0.0.0-experimental-2024071102",
2
+ "version": "0.0.0-experimental-2024071201",
3
3
  "description": "galacean spine runtime",
4
4
  "name": "@galacean/engine-spine",
5
5
  "main": "dist/main.js",
@@ -31,6 +31,7 @@
31
31
  "@swc/helpers": "^0.5",
32
32
  "@vitejs/plugin-basic-ssl": "^1.1.0",
33
33
  "cross-env": "^5.2.0",
34
+ "cypress": "^13.13.0",
34
35
  "dat.gui": "^0.7.9",
35
36
  "floss": "^5.0.1",
36
37
  "react": "^16.14.0",
@@ -82,10 +82,6 @@ export declare class SpineAnimation extends Renderer {
82
82
  * @internal
83
83
  */
84
84
  update(delta: number): void;
85
- /**
86
- * @internal
87
- */
88
- _updateRendererShaderData(context: any): void;
89
85
  /**
90
86
  * @internal
91
87
  */
@@ -95,8 +91,8 @@ export declare class SpineAnimation extends Renderer {
95
91
  */
96
92
  _updateBounds(worldBounds: BoundingBox): void;
97
93
  /**
98
- * @internal
99
- */
94
+ * @internal
95
+ */
100
96
  _calculateGeneratorBounds(worldBounds: BoundingBox): void;
101
97
  /**
102
98
  * @internal
@@ -129,11 +125,7 @@ export declare class SpineAnimation extends Renderer {
129
125
  /**
130
126
  * @internal
131
127
  */
132
- _onAnimationStart(): void;
133
- /**
134
- * @internal
135
- */
136
- _onTransformChanged(): void;
128
+ _onWorldVolumeChanged(): void;
137
129
  private onAnimationStart;
138
130
  private onAnimationComplete;
139
131
  private _clearMaterialCache;
@@ -147,7 +139,7 @@ export declare enum SpineAnimationUpdateFlags {
147
139
  /** On Animation start play */
148
140
  AnimationVolume = 2,
149
141
  /** On skeleton data asset changed */
150
- AssetVolume = 4
142
+ InitialVolume = 4
151
143
  }
152
144
  /**
153
145
  * @internal
@@ -1,4 +1,4 @@
1
- import { Texture2D, SubPrimitive, Vector3 } from "@galacean/engine";
1
+ import { Texture2D, SubPrimitive, BoundingBox } from "@galacean/engine";
2
2
  import { Skeleton, Color, BlendMode, SkeletonData } from "@esotericsoftware/spine-core";
3
3
  import { SpineAnimation } from "./SpineAnimation";
4
4
  import { AdaptiveTexture } from "./loader/LoaderUtils";
@@ -21,10 +21,7 @@ export declare class SpineGenerator {
21
21
  static tempTexture: AdaptiveTexture | null;
22
22
  static subPrimitivePool: ReturnablePool<SubPrimitive>;
23
23
  static subRenderItemPool: ClearablePool<SubRenderItem>;
24
- bounds: {
25
- min: Vector3;
26
- max: Vector3;
27
- };
24
+ static bounds: BoundingBox;
28
25
  private _clipper;
29
26
  private _subRenderItems;
30
27
  private _separateSlots;
@@ -14,4 +14,3 @@ export declare class AdaptiveTexture extends Texture {
14
14
  dispose(): void;
15
15
  private _convertWrapMode;
16
16
  }
17
- export declare function getUrlExtension(url: string, fileExtension: string): string | null;
@@ -20,6 +20,7 @@ export declare class SpineLoader extends Loader<SkeletonDataResource> {
20
20
  static parseAndAssignSpineAsset(url: string, fileExtension: string | null, bundle: SpineAssetBundle): void;
21
21
  static deriveAndAssignSpineAsset(url: string, fileExtension: string | null, bundle: SpineAssetBundle): void;
22
22
  static verifyFileExtensions(fileExtensions: string | string[], expectArray: boolean): string | string[] | null;
23
+ static getUrlExtension(url: string, fileExtension: string): string | null;
23
24
  load(item: SpineLoadItem, resourceManager: ResourceManager): AssetPromise<SkeletonDataResource>;
24
25
  private _handleEditorAsset;
25
26
  private _handleOriginAsset;