@galacean/engine-spine 0.0.0-experimental-2024071801 → 0.0.0-experimental-2024071901
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 +7 -5
- package/dist/browser.js +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/miniprogram.js +1 -1
- package/dist/module.js +1 -1
- package/dist/module.js.map +1 -1
- package/package.json +1 -1
- package/types/src/SpineAnimationRenderer.d.ts +21 -21
package/package.json
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { Skeleton, SkeletonData, AnimationState, AnimationStateData } from "@esotericsoftware/spine-core";
|
|
2
2
|
import { Buffer, Renderer, Entity, Material, Engine, BoundingBox, Primitive, SubPrimitive } from "@galacean/engine";
|
|
3
3
|
import { SkeletonDataResource } from "./loader/SkeletonDataResource";
|
|
4
|
+
/**
|
|
5
|
+
* Spine animation renderer, capable of rendering spine animations and providing functions for animation and skeleton manipulation.
|
|
6
|
+
*/
|
|
4
7
|
export declare class SpineAnimationRenderer extends Renderer {
|
|
5
8
|
private static _defaultMaterial;
|
|
6
9
|
private static _spineGenerator;
|
|
@@ -42,9 +45,9 @@ export declare class SpineAnimationRenderer extends Renderer {
|
|
|
42
45
|
private _skeleton;
|
|
43
46
|
private _state;
|
|
44
47
|
/**
|
|
45
|
-
*
|
|
46
|
-
* This property allows you to switch between different animations at runtime.
|
|
48
|
+
* Spine resource of current spine animation.This property allows you to switch between different animations at runtime.
|
|
47
49
|
*/
|
|
50
|
+
get resource(): SkeletonDataResource;
|
|
48
51
|
set resource(value: SkeletonDataResource);
|
|
49
52
|
/**
|
|
50
53
|
* Provides access to `AnimationState` which controls animation playback on a skeleton.
|
|
@@ -57,6 +60,9 @@ export declare class SpineAnimationRenderer extends Renderer {
|
|
|
57
60
|
* and change spine attachment to customize character appearances dynamically during runtime.
|
|
58
61
|
*/
|
|
59
62
|
get skeleton(): Skeleton;
|
|
63
|
+
/**
|
|
64
|
+
* @internal
|
|
65
|
+
*/
|
|
60
66
|
constructor(entity: Entity);
|
|
61
67
|
/**
|
|
62
68
|
* Separate slot by slot name. This will add a new sub primitive, and new materials.
|
|
@@ -142,25 +148,23 @@ export declare enum RendererUpdateFlags {
|
|
|
142
148
|
*/
|
|
143
149
|
export declare class SpineRenderSetting {
|
|
144
150
|
/**
|
|
145
|
-
* The spacing between z layers.
|
|
151
|
+
* The spacing between z layers @defaultValue `0.01`
|
|
146
152
|
*/
|
|
147
153
|
zSpacing: number;
|
|
148
154
|
/**
|
|
149
|
-
* Whether to use clipping
|
|
155
|
+
* Whether to use clipping @defaultValue `true`
|
|
150
156
|
*/
|
|
151
157
|
useClipping: boolean;
|
|
152
158
|
/**
|
|
153
159
|
* Creates an instance of SpineRenderSetting.
|
|
154
|
-
* @param {number} [zSpacing=0.01] - The spacing between z layers.
|
|
155
|
-
* @param {boolean} [useClipping=true] - Whether to use clipping.
|
|
156
160
|
*/
|
|
157
161
|
constructor(
|
|
158
162
|
/**
|
|
159
|
-
* The spacing between z layers.
|
|
163
|
+
* The spacing between z layers @defaultValue `0.01`
|
|
160
164
|
*/
|
|
161
165
|
zSpacing?: number,
|
|
162
166
|
/**
|
|
163
|
-
* Whether to use clipping
|
|
167
|
+
* Whether to use clipping @defaultValue `true`
|
|
164
168
|
*/
|
|
165
169
|
useClipping?: boolean);
|
|
166
170
|
}
|
|
@@ -171,43 +175,39 @@ export declare class SpineRenderSetting {
|
|
|
171
175
|
*/
|
|
172
176
|
export declare class DefaultState {
|
|
173
177
|
/**
|
|
174
|
-
* The default scale of the animation
|
|
178
|
+
* The default scale of the animation @defaultValue `1`
|
|
175
179
|
*/
|
|
176
180
|
scale: number;
|
|
177
181
|
/**
|
|
178
|
-
* Whether the default animation should loop.
|
|
182
|
+
* Whether the default animation should loop @defaultValue `true. The default animation should loop`
|
|
179
183
|
*/
|
|
180
184
|
loop: boolean;
|
|
181
185
|
/**
|
|
182
|
-
* The name of the default animation.
|
|
186
|
+
* The name of the default animation @defaultValue `null. Do not play any animation by default`
|
|
183
187
|
*/
|
|
184
188
|
animationName: string | null;
|
|
185
189
|
/**
|
|
186
|
-
* The name of the default skin
|
|
190
|
+
* The name of the default skin @defaultValue `default`
|
|
187
191
|
*/
|
|
188
192
|
skinName: string;
|
|
189
193
|
/**
|
|
190
|
-
* Creates an instance of DefaultState
|
|
191
|
-
* @param {number} [scale=1] - The default scale of the animation.
|
|
192
|
-
* @param {boolean} [loop=false] - Whether the default animation should loop.
|
|
193
|
-
* @param {string | null} [animationName=null] - The name of the default animation.
|
|
194
|
-
* @param {string} [skinName="default"] - The name of the default skin.
|
|
194
|
+
* Creates an instance of DefaultState
|
|
195
195
|
*/
|
|
196
196
|
constructor(
|
|
197
197
|
/**
|
|
198
|
-
* The default scale of the animation
|
|
198
|
+
* The default scale of the animation @defaultValue `1`
|
|
199
199
|
*/
|
|
200
200
|
scale?: number,
|
|
201
201
|
/**
|
|
202
|
-
* Whether the default animation should loop.
|
|
202
|
+
* Whether the default animation should loop @defaultValue `true. The default animation should loop`
|
|
203
203
|
*/
|
|
204
204
|
loop?: boolean,
|
|
205
205
|
/**
|
|
206
|
-
* The name of the default animation.
|
|
206
|
+
* The name of the default animation @defaultValue `null. Do not play any animation by default`
|
|
207
207
|
*/
|
|
208
208
|
animationName?: string | null,
|
|
209
209
|
/**
|
|
210
|
-
* The name of the default skin
|
|
210
|
+
* The name of the default skin @defaultValue `default`
|
|
211
211
|
*/
|
|
212
212
|
skinName?: string);
|
|
213
213
|
}
|