@melonjs/spine-plugin 1.5.0 → 2.0.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/CHANGELOG.md +46 -0
- package/LICENSE +1 -1
- package/README.md +72 -25
- package/build/AssetManager.d.ts +74 -0
- package/build/AssetManager.d.ts.map +1 -0
- package/build/SkeletonRenderer.d.ts +75 -0
- package/build/SkeletonRenderer.d.ts.map +1 -0
- package/build/Spine.d.ts +320 -0
- package/build/Spine.d.ts.map +1 -0
- package/build/SpineBatcher.d.ts +35 -0
- package/build/SpineBatcher.d.ts.map +1 -0
- package/build/SpinePlugin.d.ts +12 -0
- package/build/SpinePlugin.d.ts.map +1 -0
- package/build/index.d.ts +3 -0
- package/build/index.d.ts.map +1 -0
- package/build/index.js +16174 -0
- package/build/index.js.map +7 -0
- package/package.json +72 -77
- package/dist/@melonjs/spine-plugin.d.ts +0 -4410
- package/dist/@melonjs/spine-plugin.js +0 -15798
- package/src/AssetManager.js +0 -129
- package/src/SkeletonRenderer.js +0 -220
- package/src/SpinePlugin.js +0 -24
- package/src/index.js +0 -459
|
@@ -1,4410 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @classdesc
|
|
3
|
-
* a Spine 4.x plugin implementation for melonJS
|
|
4
|
-
* @augments plugin.BasePlugin
|
|
5
|
-
*/
|
|
6
|
-
export class SpinePlugin extends plugin.BasePlugin {
|
|
7
|
-
constructor();
|
|
8
|
-
assetManager: AssetManager;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* @classdesc
|
|
12
|
-
* An renderable object to render Spine animated skeleton.
|
|
13
|
-
* @augments Renderable
|
|
14
|
-
*/
|
|
15
|
-
declare class Spine extends Renderable {
|
|
16
|
-
/**
|
|
17
|
-
* @param {number} x - the x coordinates of the Spine object
|
|
18
|
-
* @param {number} y - the y coordinates of the Spine object
|
|
19
|
-
* @param {object} settings - Configuration parameters for the Spine object
|
|
20
|
-
* @param {number} [settings.atlasFile] - the name of the atlasFile to be used to create this spine animation
|
|
21
|
-
* @param {number} [settings.jsonFile] - the name of the atlasFile to be used to create this spine animation
|
|
22
|
-
* @param {number} [settings.mixTime = 0.2] - the default mix duration to use when no mix duration has been defined between two animations.
|
|
23
|
-
* @example
|
|
24
|
-
* import * as Spine from '@melonjs/spine-plugin';
|
|
25
|
-
* import * as me from 'melonjs';
|
|
26
|
-
*
|
|
27
|
-
* // prepare/declare assets for the preloader
|
|
28
|
-
* const DataManifest = [
|
|
29
|
-
* {
|
|
30
|
-
* "name": "alien-ess.json",
|
|
31
|
-
* "type": "spine",
|
|
32
|
-
* "src": "data/spine/alien-ess.json"
|
|
33
|
-
* },
|
|
34
|
-
* {
|
|
35
|
-
* "name": "alien.atlas",
|
|
36
|
-
* "type": "spine",
|
|
37
|
-
* "src": "data/spine/alien.atlas"
|
|
38
|
-
* },
|
|
39
|
-
* ]
|
|
40
|
-
*
|
|
41
|
-
* // create a new Spine Renderable
|
|
42
|
-
* let spineAlien = new Spine(100, 100, {atlasFile: "alien.atlas", jsonFile: "alien-ess.json"});
|
|
43
|
-
*
|
|
44
|
-
* // set default animation
|
|
45
|
-
* spineAlien.setAnimation(0, "death", true);
|
|
46
|
-
*
|
|
47
|
-
* // add it to the game world
|
|
48
|
-
* me.game.world.addChild(spineAlien);
|
|
49
|
-
*/
|
|
50
|
-
constructor(x: number, y: number, settings: {
|
|
51
|
-
atlasFile?: number | undefined;
|
|
52
|
-
jsonFile?: number | undefined;
|
|
53
|
-
mixTime?: number | undefined;
|
|
54
|
-
});
|
|
55
|
-
runtime: {
|
|
56
|
-
__proto__: null;
|
|
57
|
-
AlphaTimeline: typeof AlphaTimeline;
|
|
58
|
-
Animation: typeof Animation;
|
|
59
|
-
AnimationState: typeof AnimationState;
|
|
60
|
-
AnimationStateAdapter: typeof AnimationStateAdapter;
|
|
61
|
-
AnimationStateData: typeof AnimationStateData;
|
|
62
|
-
AssetManager: {
|
|
63
|
-
new (context: any, pathPrefix?: string, downloader?: Downloader): {
|
|
64
|
-
pathPrefix: string;
|
|
65
|
-
assets: {};
|
|
66
|
-
errors: {};
|
|
67
|
-
toLoad: number;
|
|
68
|
-
loaded: number;
|
|
69
|
-
textureLoader: any;
|
|
70
|
-
downloader: Downloader;
|
|
71
|
-
start(path: any): string;
|
|
72
|
-
success(callback: any, path: any, asset: any): void;
|
|
73
|
-
error(callback: any, path: any, message: any): void;
|
|
74
|
-
loadAll(): Promise<any>;
|
|
75
|
-
setRawDataURI(path: any, data: any): void;
|
|
76
|
-
loadBinary(path: any, success?: () => void, error?: () => void): void;
|
|
77
|
-
loadText(path: any, success?: () => void, error?: () => void): void;
|
|
78
|
-
loadJson(path: any, success?: () => void, error?: () => void): void;
|
|
79
|
-
loadTexture(path: any, success?: () => void, error?: () => void): void;
|
|
80
|
-
loadTextureAtlas(path: any, success: (() => void) | undefined, error: (() => void) | undefined, fileAlias: any): void;
|
|
81
|
-
get(path: any): any;
|
|
82
|
-
require(path: any): any;
|
|
83
|
-
remove(path: any): any;
|
|
84
|
-
removeAll(): void;
|
|
85
|
-
isLoadingComplete(): boolean;
|
|
86
|
-
getToLoad(): number;
|
|
87
|
-
getLoaded(): number;
|
|
88
|
-
dispose(): void;
|
|
89
|
-
hasErrors(): boolean;
|
|
90
|
-
getErrors(): {};
|
|
91
|
-
};
|
|
92
|
-
};
|
|
93
|
-
AssetManagerBase: typeof AssetManagerBase;
|
|
94
|
-
AtlasAttachmentLoader: typeof AtlasAttachmentLoader;
|
|
95
|
-
Attachment: typeof Attachment;
|
|
96
|
-
AttachmentTimeline: typeof AttachmentTimeline;
|
|
97
|
-
BinaryInput: typeof BinaryInput;
|
|
98
|
-
readonly BlendMode: any;
|
|
99
|
-
Bone: typeof Bone;
|
|
100
|
-
BoneData: typeof BoneData;
|
|
101
|
-
BoundingBoxAttachment: typeof BoundingBoxAttachment;
|
|
102
|
-
CURRENT: number;
|
|
103
|
-
CameraController: typeof CameraController;
|
|
104
|
-
ClippingAttachment: typeof ClippingAttachment;
|
|
105
|
-
Color: typeof Color;
|
|
106
|
-
Color2Attribute: typeof Color2Attribute;
|
|
107
|
-
ColorAttribute: typeof ColorAttribute;
|
|
108
|
-
ConstraintData: typeof ConstraintData;
|
|
109
|
-
CurveTimeline: typeof CurveTimeline;
|
|
110
|
-
CurveTimeline1: typeof CurveTimeline1;
|
|
111
|
-
CurveTimeline2: typeof CurveTimeline2;
|
|
112
|
-
DebugUtils: typeof DebugUtils;
|
|
113
|
-
DeformTimeline: typeof DeformTimeline;
|
|
114
|
-
Downloader: typeof Downloader;
|
|
115
|
-
DrawOrderTimeline: typeof DrawOrderTimeline;
|
|
116
|
-
Event: typeof Event;
|
|
117
|
-
EventData: typeof EventData;
|
|
118
|
-
EventQueue: typeof EventQueue;
|
|
119
|
-
EventTimeline: typeof EventTimeline;
|
|
120
|
-
readonly EventType: any;
|
|
121
|
-
FIRST: number;
|
|
122
|
-
FakeTexture: typeof FakeTexture;
|
|
123
|
-
GLTexture: typeof GLTexture;
|
|
124
|
-
HOLD_FIRST: number;
|
|
125
|
-
HOLD_MIX: number;
|
|
126
|
-
HOLD_SUBSEQUENT: number;
|
|
127
|
-
IkConstraint: typeof IkConstraint;
|
|
128
|
-
IkConstraintData: typeof IkConstraintData;
|
|
129
|
-
IkConstraintTimeline: typeof IkConstraintTimeline;
|
|
130
|
-
Input: typeof Input;
|
|
131
|
-
IntSet: typeof IntSet;
|
|
132
|
-
Interpolation: typeof Interpolation;
|
|
133
|
-
LoadingScreen: typeof LoadingScreen;
|
|
134
|
-
M00: number;
|
|
135
|
-
M01: number;
|
|
136
|
-
M02: number;
|
|
137
|
-
M03: number;
|
|
138
|
-
M10: number;
|
|
139
|
-
M11: number;
|
|
140
|
-
M12: number;
|
|
141
|
-
M13: number;
|
|
142
|
-
M20: number;
|
|
143
|
-
M21: number;
|
|
144
|
-
M22: number;
|
|
145
|
-
M23: number;
|
|
146
|
-
M30: number;
|
|
147
|
-
M31: number;
|
|
148
|
-
M32: number;
|
|
149
|
-
M33: number;
|
|
150
|
-
ManagedWebGLRenderingContext: typeof ManagedWebGLRenderingContext;
|
|
151
|
-
MathUtils: typeof MathUtils;
|
|
152
|
-
Matrix4: typeof Matrix4;
|
|
153
|
-
Mesh: typeof Mesh;
|
|
154
|
-
MeshAttachment: typeof MeshAttachment;
|
|
155
|
-
readonly MixBlend: any;
|
|
156
|
-
readonly MixDirection: any;
|
|
157
|
-
OrthoCamera: typeof OrthoCamera;
|
|
158
|
-
PathAttachment: typeof PathAttachment;
|
|
159
|
-
PathConstraint: typeof PathConstraint;
|
|
160
|
-
PathConstraintData: typeof PathConstraintData;
|
|
161
|
-
PathConstraintMixTimeline: typeof PathConstraintMixTimeline;
|
|
162
|
-
PathConstraintPositionTimeline: typeof PathConstraintPositionTimeline;
|
|
163
|
-
PathConstraintSpacingTimeline: typeof PathConstraintSpacingTimeline;
|
|
164
|
-
PointAttachment: typeof PointAttachment;
|
|
165
|
-
PolygonBatcher: typeof PolygonBatcher;
|
|
166
|
-
Pool: typeof Pool;
|
|
167
|
-
Position2Attribute: typeof Position2Attribute;
|
|
168
|
-
Position3Attribute: typeof Position3Attribute;
|
|
169
|
-
readonly PositionMode: any;
|
|
170
|
-
Pow: typeof Pow;
|
|
171
|
-
PowOut: typeof PowOut;
|
|
172
|
-
RGB2Timeline: typeof RGB2Timeline;
|
|
173
|
-
RGBA2Timeline: typeof RGBA2Timeline;
|
|
174
|
-
RGBATimeline: typeof RGBATimeline;
|
|
175
|
-
RGBTimeline: typeof RGBTimeline;
|
|
176
|
-
RegionAttachment: typeof RegionAttachment;
|
|
177
|
-
readonly ResizeMode: any;
|
|
178
|
-
readonly RotateMode: any;
|
|
179
|
-
RotateTimeline: typeof RotateTimeline;
|
|
180
|
-
SETUP: number;
|
|
181
|
-
SUBSEQUENT: number;
|
|
182
|
-
ScaleTimeline: typeof ScaleTimeline;
|
|
183
|
-
ScaleXTimeline: typeof ScaleXTimeline;
|
|
184
|
-
ScaleYTimeline: typeof ScaleYTimeline;
|
|
185
|
-
SceneRenderer: typeof SceneRenderer;
|
|
186
|
-
SequenceTimeline: typeof SequenceTimeline;
|
|
187
|
-
Shader: typeof Shader;
|
|
188
|
-
ShapeRenderer: typeof ShapeRenderer;
|
|
189
|
-
readonly ShapeType: any;
|
|
190
|
-
ShearTimeline: typeof ShearTimeline;
|
|
191
|
-
ShearXTimeline: typeof ShearXTimeline;
|
|
192
|
-
ShearYTimeline: typeof ShearYTimeline;
|
|
193
|
-
Skeleton: typeof Skeleton;
|
|
194
|
-
SkeletonBinary: typeof SkeletonBinary;
|
|
195
|
-
SkeletonBounds: typeof SkeletonBounds;
|
|
196
|
-
SkeletonClipping: typeof SkeletonClipping;
|
|
197
|
-
SkeletonData: typeof SkeletonData;
|
|
198
|
-
SkeletonDebugRenderer: typeof SkeletonDebugRenderer;
|
|
199
|
-
SkeletonJson: typeof SkeletonJson;
|
|
200
|
-
SkeletonRenderer: {
|
|
201
|
-
new (context: any, twoColorTint?: boolean): {
|
|
202
|
-
premultipliedAlpha: boolean;
|
|
203
|
-
tempColor: Color;
|
|
204
|
-
tempColor2: Color;
|
|
205
|
-
vertexSize: number;
|
|
206
|
-
twoColorTint: boolean;
|
|
207
|
-
renderable: Renderable;
|
|
208
|
-
clipper: SkeletonClipping;
|
|
209
|
-
temp: Vector2;
|
|
210
|
-
temp2: Vector2;
|
|
211
|
-
temp3: Color;
|
|
212
|
-
temp4: Color;
|
|
213
|
-
vertices: any[] | Float32Array;
|
|
214
|
-
draw(batcher: any, skeleton: any, slotRangeStart?: number, slotRangeEnd?: number, transformer?: null): void;
|
|
215
|
-
};
|
|
216
|
-
QUAD_TRIANGLES: number[];
|
|
217
|
-
};
|
|
218
|
-
Skin: typeof Skin;
|
|
219
|
-
SkinEntry: typeof SkinEntry;
|
|
220
|
-
Slot: typeof Slot;
|
|
221
|
-
SlotData: typeof SlotData;
|
|
222
|
-
readonly SpacingMode: any;
|
|
223
|
-
SpineCanvas: typeof SpineCanvas;
|
|
224
|
-
StringSet: typeof StringSet;
|
|
225
|
-
TexCoordAttribute: typeof TexCoordAttribute;
|
|
226
|
-
Texture: typeof Texture;
|
|
227
|
-
TextureAtlas: typeof TextureAtlas;
|
|
228
|
-
TextureAtlasPage: typeof TextureAtlasPage;
|
|
229
|
-
TextureAtlasRegion: typeof TextureAtlasRegion;
|
|
230
|
-
readonly TextureFilter: any;
|
|
231
|
-
TextureRegion: typeof TextureRegion;
|
|
232
|
-
readonly TextureWrap: any;
|
|
233
|
-
TimeKeeper: typeof TimeKeeper;
|
|
234
|
-
Timeline: typeof Timeline;
|
|
235
|
-
Touch: typeof Touch;
|
|
236
|
-
TrackEntry: typeof TrackEntry;
|
|
237
|
-
TransformConstraint: typeof TransformConstraint;
|
|
238
|
-
TransformConstraintData: typeof TransformConstraintData;
|
|
239
|
-
TransformConstraintTimeline: typeof TransformConstraintTimeline;
|
|
240
|
-
readonly TransformMode: any;
|
|
241
|
-
TranslateTimeline: typeof TranslateTimeline;
|
|
242
|
-
TranslateXTimeline: typeof TranslateXTimeline;
|
|
243
|
-
TranslateYTimeline: typeof TranslateYTimeline;
|
|
244
|
-
Triangulator: typeof Triangulator;
|
|
245
|
-
Utils: typeof Utils;
|
|
246
|
-
Vector2: typeof Vector2;
|
|
247
|
-
Vector3: typeof Vector3;
|
|
248
|
-
VertexAttachment: typeof VertexAttachment;
|
|
249
|
-
VertexAttribute: typeof VertexAttribute;
|
|
250
|
-
readonly VertexAttributeType: any;
|
|
251
|
-
WindowedMean: typeof WindowedMean;
|
|
252
|
-
} | {
|
|
253
|
-
__proto__: null;
|
|
254
|
-
AlphaTimeline: typeof AlphaTimeline;
|
|
255
|
-
Animation: typeof Animation;
|
|
256
|
-
AnimationState: typeof AnimationState;
|
|
257
|
-
AnimationStateAdapter: typeof AnimationStateAdapter;
|
|
258
|
-
AnimationStateData: typeof AnimationStateData;
|
|
259
|
-
AssetManager: {
|
|
260
|
-
new (pathPrefix?: string, downloader?: Downloader): {
|
|
261
|
-
pathPrefix: string;
|
|
262
|
-
assets: {};
|
|
263
|
-
errors: {};
|
|
264
|
-
toLoad: number;
|
|
265
|
-
loaded: number;
|
|
266
|
-
textureLoader: any;
|
|
267
|
-
downloader: Downloader;
|
|
268
|
-
start(path: any): string;
|
|
269
|
-
success(callback: any, path: any, asset: any): void;
|
|
270
|
-
error(callback: any, path: any, message: any): void;
|
|
271
|
-
loadAll(): Promise<any>;
|
|
272
|
-
setRawDataURI(path: any, data: any): void;
|
|
273
|
-
loadBinary(path: any, success?: () => void, error?: () => void): void;
|
|
274
|
-
loadText(path: any, success?: () => void, error?: () => void): void;
|
|
275
|
-
loadJson(path: any, success?: () => void, error?: () => void): void;
|
|
276
|
-
loadTexture(path: any, success?: () => void, error?: () => void): void;
|
|
277
|
-
loadTextureAtlas(path: any, success: (() => void) | undefined, error: (() => void) | undefined, fileAlias: any): void;
|
|
278
|
-
get(path: any): any;
|
|
279
|
-
require(path: any): any;
|
|
280
|
-
remove(path: any): any;
|
|
281
|
-
removeAll(): void;
|
|
282
|
-
isLoadingComplete(): boolean;
|
|
283
|
-
getToLoad(): number;
|
|
284
|
-
getLoaded(): number;
|
|
285
|
-
dispose(): void;
|
|
286
|
-
hasErrors(): boolean;
|
|
287
|
-
getErrors(): {};
|
|
288
|
-
};
|
|
289
|
-
};
|
|
290
|
-
AssetManagerBase: typeof AssetManagerBase;
|
|
291
|
-
AtlasAttachmentLoader: typeof AtlasAttachmentLoader;
|
|
292
|
-
Attachment: typeof Attachment;
|
|
293
|
-
AttachmentTimeline: typeof AttachmentTimeline;
|
|
294
|
-
BinaryInput: typeof BinaryInput;
|
|
295
|
-
readonly BlendMode: any;
|
|
296
|
-
Bone: typeof Bone;
|
|
297
|
-
BoneData: typeof BoneData;
|
|
298
|
-
BoundingBoxAttachment: typeof BoundingBoxAttachment;
|
|
299
|
-
CURRENT: number;
|
|
300
|
-
CanvasTexture: typeof CanvasTexture;
|
|
301
|
-
ClippingAttachment: typeof ClippingAttachment;
|
|
302
|
-
Color: typeof Color;
|
|
303
|
-
ConstraintData: typeof ConstraintData;
|
|
304
|
-
CurveTimeline: typeof CurveTimeline;
|
|
305
|
-
CurveTimeline1: typeof CurveTimeline1;
|
|
306
|
-
CurveTimeline2: typeof CurveTimeline2;
|
|
307
|
-
DebugUtils: typeof DebugUtils;
|
|
308
|
-
DeformTimeline: typeof DeformTimeline;
|
|
309
|
-
Downloader: typeof Downloader;
|
|
310
|
-
DrawOrderTimeline: typeof DrawOrderTimeline;
|
|
311
|
-
Event: typeof Event;
|
|
312
|
-
EventData: typeof EventData;
|
|
313
|
-
EventQueue: typeof EventQueue;
|
|
314
|
-
EventTimeline: typeof EventTimeline;
|
|
315
|
-
readonly EventType: any;
|
|
316
|
-
FIRST: number;
|
|
317
|
-
FakeTexture: typeof FakeTexture;
|
|
318
|
-
HOLD_FIRST: number;
|
|
319
|
-
HOLD_MIX: number;
|
|
320
|
-
HOLD_SUBSEQUENT: number;
|
|
321
|
-
IkConstraint: typeof IkConstraint;
|
|
322
|
-
IkConstraintData: typeof IkConstraintData;
|
|
323
|
-
IkConstraintTimeline: typeof IkConstraintTimeline;
|
|
324
|
-
IntSet: typeof IntSet;
|
|
325
|
-
Interpolation: typeof Interpolation;
|
|
326
|
-
MathUtils: typeof MathUtils;
|
|
327
|
-
MeshAttachment: typeof MeshAttachment;
|
|
328
|
-
readonly MixBlend: any;
|
|
329
|
-
readonly MixDirection: any;
|
|
330
|
-
PathAttachment: typeof PathAttachment;
|
|
331
|
-
PathConstraint: typeof PathConstraint;
|
|
332
|
-
PathConstraintData: typeof PathConstraintData;
|
|
333
|
-
PathConstraintMixTimeline: typeof PathConstraintMixTimeline;
|
|
334
|
-
PathConstraintPositionTimeline: typeof PathConstraintPositionTimeline;
|
|
335
|
-
PathConstraintSpacingTimeline: typeof PathConstraintSpacingTimeline;
|
|
336
|
-
PointAttachment: typeof PointAttachment;
|
|
337
|
-
Pool: typeof Pool;
|
|
338
|
-
readonly PositionMode: any;
|
|
339
|
-
Pow: typeof Pow;
|
|
340
|
-
PowOut: typeof PowOut;
|
|
341
|
-
RGB2Timeline: typeof RGB2Timeline;
|
|
342
|
-
RGBA2Timeline: typeof RGBA2Timeline;
|
|
343
|
-
RGBATimeline: typeof RGBATimeline;
|
|
344
|
-
RGBTimeline: typeof RGBTimeline;
|
|
345
|
-
RegionAttachment: typeof RegionAttachment;
|
|
346
|
-
readonly RotateMode: any;
|
|
347
|
-
RotateTimeline: typeof RotateTimeline;
|
|
348
|
-
SETUP: number;
|
|
349
|
-
SUBSEQUENT: number;
|
|
350
|
-
ScaleTimeline: typeof ScaleTimeline;
|
|
351
|
-
ScaleXTimeline: typeof ScaleXTimeline;
|
|
352
|
-
ScaleYTimeline: typeof ScaleYTimeline;
|
|
353
|
-
SequenceTimeline: typeof SequenceTimeline;
|
|
354
|
-
ShearTimeline: typeof ShearTimeline;
|
|
355
|
-
ShearXTimeline: typeof ShearXTimeline;
|
|
356
|
-
ShearYTimeline: typeof ShearYTimeline;
|
|
357
|
-
Skeleton: typeof Skeleton;
|
|
358
|
-
SkeletonBinary: typeof SkeletonBinary;
|
|
359
|
-
SkeletonBounds: typeof SkeletonBounds;
|
|
360
|
-
SkeletonClipping: typeof SkeletonClipping;
|
|
361
|
-
SkeletonData: typeof SkeletonData;
|
|
362
|
-
SkeletonJson: typeof SkeletonJson;
|
|
363
|
-
SkeletonRenderer: {
|
|
364
|
-
new (context: any): {
|
|
365
|
-
triangleRendering: boolean;
|
|
366
|
-
debugRendering: boolean;
|
|
367
|
-
vertices: any[] | Float32Array;
|
|
368
|
-
tempColor: Color;
|
|
369
|
-
ctx: any;
|
|
370
|
-
draw(skeleton: any): void;
|
|
371
|
-
drawImages(skeleton: any): void;
|
|
372
|
-
drawTriangles(skeleton: any): void;
|
|
373
|
-
drawTriangle(img: any, x0: any, y0: any, u0: any, v0: any, x1: any, y1: any, u1: any, v1: any, x2: any, y2: any, u2: any, v2: any): void;
|
|
374
|
-
computeRegionVertices(slot: any, region: any, pma: any): any[] | Float32Array;
|
|
375
|
-
computeMeshVertices(slot: any, mesh: any, pma: any): any[] | Float32Array;
|
|
376
|
-
};
|
|
377
|
-
QUAD_TRIANGLES: number[];
|
|
378
|
-
VERTEX_SIZE: number;
|
|
379
|
-
};
|
|
380
|
-
Skin: typeof Skin;
|
|
381
|
-
SkinEntry: typeof SkinEntry;
|
|
382
|
-
Slot: typeof Slot;
|
|
383
|
-
SlotData: typeof SlotData;
|
|
384
|
-
readonly SpacingMode: any;
|
|
385
|
-
StringSet: typeof StringSet;
|
|
386
|
-
Texture: typeof Texture;
|
|
387
|
-
TextureAtlas: typeof TextureAtlas;
|
|
388
|
-
TextureAtlasPage: typeof TextureAtlasPage;
|
|
389
|
-
TextureAtlasRegion: typeof TextureAtlasRegion;
|
|
390
|
-
readonly TextureFilter: any;
|
|
391
|
-
TextureRegion: typeof TextureRegion;
|
|
392
|
-
readonly TextureWrap: any;
|
|
393
|
-
TimeKeeper: typeof TimeKeeper;
|
|
394
|
-
Timeline: typeof Timeline;
|
|
395
|
-
TrackEntry: typeof TrackEntry;
|
|
396
|
-
TransformConstraint: typeof TransformConstraint;
|
|
397
|
-
TransformConstraintData: typeof TransformConstraintData;
|
|
398
|
-
TransformConstraintTimeline: typeof TransformConstraintTimeline;
|
|
399
|
-
readonly TransformMode: any;
|
|
400
|
-
TranslateTimeline: typeof TranslateTimeline;
|
|
401
|
-
TranslateXTimeline: typeof TranslateXTimeline;
|
|
402
|
-
TranslateYTimeline: typeof TranslateYTimeline;
|
|
403
|
-
Triangulator: typeof Triangulator;
|
|
404
|
-
Utils: typeof Utils;
|
|
405
|
-
Vector2: typeof Vector2;
|
|
406
|
-
VertexAttachment: typeof VertexAttachment;
|
|
407
|
-
WindowedMean: typeof WindowedMean;
|
|
408
|
-
};
|
|
409
|
-
skeleton: any;
|
|
410
|
-
plugin: plugin.BasePlugin;
|
|
411
|
-
renderer: any;
|
|
412
|
-
animationState: any;
|
|
413
|
-
skeletonRenderer: SkeletonRenderer;
|
|
414
|
-
root: any;
|
|
415
|
-
boneOffset: Vector2;
|
|
416
|
-
boneSize: Vector2;
|
|
417
|
-
isSpineFlipped: {
|
|
418
|
-
x: boolean;
|
|
419
|
-
y: boolean;
|
|
420
|
-
};
|
|
421
|
-
/**
|
|
422
|
-
* Stores settings and other state for the playback of the current animation (if any).
|
|
423
|
-
* @type {TrackEntry}
|
|
424
|
-
* @see http://en.esotericsoftware.com/spine-api-reference#TrackEntry
|
|
425
|
-
* @see setAnimation
|
|
426
|
-
* @default undefined
|
|
427
|
-
* @example
|
|
428
|
-
* // set a default animation to "run"
|
|
429
|
-
* this.setAnimation(0, "run", true);
|
|
430
|
-
* ...
|
|
431
|
-
* ...
|
|
432
|
-
* // pause the animation
|
|
433
|
-
* this.currentTrack.timeScale = 0;
|
|
434
|
-
* ...
|
|
435
|
-
* ...
|
|
436
|
-
* // resume the animation
|
|
437
|
-
* this.currentTrack.timeScale = 1;
|
|
438
|
-
*/
|
|
439
|
-
currentTrack: TrackEntry;
|
|
440
|
-
mixTime: number;
|
|
441
|
-
jsonFile: number | undefined;
|
|
442
|
-
atlasFile: number | undefined;
|
|
443
|
-
set debugRendering(arg: boolean);
|
|
444
|
-
/**
|
|
445
|
-
* Whether to enabler the debug mode when rendering the spine object
|
|
446
|
-
* @default false
|
|
447
|
-
* @type {boolean}
|
|
448
|
-
*/
|
|
449
|
-
get debugRendering(): boolean;
|
|
450
|
-
/**
|
|
451
|
-
* set and load the given skeleton atlas and json definition files
|
|
452
|
-
* (use this if you did not specify any json or atlas through the constructor)
|
|
453
|
-
* @param {number} [atlasFile] - the name of the atlasFile to be used to create this spine animation
|
|
454
|
-
* @param {number} [jsonFile] - the name of the atlasFile to be used to create this spine animation
|
|
455
|
-
* @example
|
|
456
|
-
* // create a new Spine Renderable
|
|
457
|
-
* let spineAlien = new Spine(100, 100);
|
|
458
|
-
*
|
|
459
|
-
* // set the skeleton
|
|
460
|
-
* spineAlien.setSkeleton("alien.atlas", "alien-ess.json");
|
|
461
|
-
*
|
|
462
|
-
* // set default animation
|
|
463
|
-
* spineAlien.setAnimation(0, "death", true);
|
|
464
|
-
*
|
|
465
|
-
* // add it to the game world
|
|
466
|
-
* me.game.world.addChild(spineAlien);
|
|
467
|
-
*/
|
|
468
|
-
setSkeleton(atlasFile?: number | undefined, jsonFile?: number | undefined): void;
|
|
469
|
-
/**
|
|
470
|
-
* flip the Spine skeleton on the horizontal axis (around its center)
|
|
471
|
-
* @param {boolean} [flip=true] - `true` to flip this Spine object.
|
|
472
|
-
* @returns {Spine} Reference to this object for method chaining
|
|
473
|
-
*/
|
|
474
|
-
flipX(flip?: boolean | undefined): Spine;
|
|
475
|
-
isDirty: boolean | undefined;
|
|
476
|
-
/**
|
|
477
|
-
* flip the Spine skeleton on the vertical axis (around its center)
|
|
478
|
-
* @param {boolean} [flip=true] - `true` to flip this Spine object.
|
|
479
|
-
* @returns {Spine} Reference to this object for method chaining
|
|
480
|
-
*/
|
|
481
|
-
flipY(flip?: boolean | undefined): Spine;
|
|
482
|
-
/**
|
|
483
|
-
* Rotate this Spine object by the specified angle (in radians).
|
|
484
|
-
* @param {number} angle - The angle to rotate (in radians)
|
|
485
|
-
* @param {Vector2d|ObservableVector2d} [v] - an optional point to rotate around
|
|
486
|
-
* @returns {Spine} Reference to this object for method chaining
|
|
487
|
-
*/
|
|
488
|
-
rotate(angle: number, v?: Vector2d | ObservableVector2d): Spine;
|
|
489
|
-
/**
|
|
490
|
-
* scale the Spine object around his anchor point. Scaling actually applies changes
|
|
491
|
-
* to the currentTransform member wich is used by the renderer to scale the object
|
|
492
|
-
* when rendering. It does not scale the object itself. For example if the renderable
|
|
493
|
-
* is an image, the image.width and image.height properties are unaltered but the currentTransform
|
|
494
|
-
* member will be changed.
|
|
495
|
-
* @param {number} x - a number representing the abscissa of the scaling vector.
|
|
496
|
-
* @param {number} [y=x] - a number representing the ordinate of the scaling vector.
|
|
497
|
-
* @returns {Spine} Reference to this object for method chaining
|
|
498
|
-
*/
|
|
499
|
-
scale(x: number, y?: number | undefined): Spine;
|
|
500
|
-
/**
|
|
501
|
-
* update the bounding box for this spine object.
|
|
502
|
-
* (this will automatically update the bounds of the entire skeleton animation)
|
|
503
|
-
* @param {boolean} [absolute=true] - update the bounds size and position in (world) absolute coordinates
|
|
504
|
-
* @returns {Bounds} this shape bounding box Rectangle object
|
|
505
|
-
*/
|
|
506
|
-
updateBounds(absolute?: boolean | undefined): Bounds;
|
|
507
|
-
/**
|
|
508
|
-
* update function (automatically called by melonJS).
|
|
509
|
-
* @param {number} dt - time since the last update in milliseconds.
|
|
510
|
-
* @returns {boolean} true if the renderable is dirty
|
|
511
|
-
*/
|
|
512
|
-
update(dt: number): boolean;
|
|
513
|
-
/**
|
|
514
|
-
* draw this spine object
|
|
515
|
-
* @param {CanvasRenderer|WebGLRenderer} renderer - a renderer instance
|
|
516
|
-
* @param {Camera2d} [viewport] - the viewport to (re)draw
|
|
517
|
-
*/
|
|
518
|
-
draw(renderer: CanvasRenderer | WebGLRenderer): void;
|
|
519
|
-
/**
|
|
520
|
-
* Sets the current animation for a track, discarding any queued animations.
|
|
521
|
-
* @param {number} [track_index] - If the formerly current track entry was never applied to a skeleton, it is replaced (not mixed from). In either case trackEnd determines when the track is cleared.
|
|
522
|
-
* @param {number} [index] - the animation index
|
|
523
|
-
* @param {boolean} [loop= false] - If true, the animation will repeat. If false it will not, instead its last frame is applied if played beyond its duration.
|
|
524
|
-
* @returns {TrackEntry} A track entry to allow further customization of animation playback. References to the track entry must not be kept after the dispose event occurs.
|
|
525
|
-
*/
|
|
526
|
-
setAnimationByIndex(track_index?: number | undefined, index?: number | undefined, loop?: boolean | undefined): TrackEntry;
|
|
527
|
-
/**
|
|
528
|
-
* Sets the current animation for a track, discarding any queued animations.
|
|
529
|
-
* @param {number} [track_index] - If the formerly current track entry was never applied to a skeleton, it is replaced (not mixed from). In either case trackEnd determines when the track is cleared.
|
|
530
|
-
* @param {string} [name] - the animation name
|
|
531
|
-
* @param {boolean} [loop= false] - If true, the animation will repeat. If false it will not, instead its last frame is applied if played beyond its duration.
|
|
532
|
-
* @returns {TrackEntry} A track entry to allow further customization of animation playback. References to the track entry must not be kept after the dispose event occurs.
|
|
533
|
-
* @example
|
|
534
|
-
* // set the current animation
|
|
535
|
-
* spineAlien.setAnimation(0, "death", true);
|
|
536
|
-
*/
|
|
537
|
-
setAnimation(track_index?: number | undefined, name?: string | undefined, loop?: boolean | undefined): TrackEntry;
|
|
538
|
-
/**
|
|
539
|
-
* return true if the given animation name is the current running animation for the current track.
|
|
540
|
-
* @name isCurrentAnimation
|
|
541
|
-
* @param {string} name - animation name
|
|
542
|
-
* @returns {boolean}
|
|
543
|
-
* @example
|
|
544
|
-
* if (!this.isCurrentAnimation("death")) {
|
|
545
|
-
* // do something funny...
|
|
546
|
-
* }
|
|
547
|
-
*/
|
|
548
|
-
isCurrentAnimation(name: string): boolean;
|
|
549
|
-
/**
|
|
550
|
-
* Adds an animation to be played after the current or last queued animation for a track, and sets the track entry's mixDuration.
|
|
551
|
-
* @param {number} [delay=0] - If > 0, sets delay. If <= 0, the delay set is the duration of the previous track entry minus any mix duration plus the specified `delay` (ie the mix ends at (`delay` = 0) or before (`delay` < 0) the previous track entry duration). If the previous entry is looping, its next loop completion is used instead of its duration.
|
|
552
|
-
* @return {TrackEntry} A track entry to allow further customization of animation playback. References to the track entry must not be kept after the dispose} event occurs.
|
|
553
|
-
*/
|
|
554
|
-
addAnimationByIndex(track_index: any, index: any, loop?: boolean, delay?: number | undefined): TrackEntry;
|
|
555
|
-
addAnimationByName(track_index: any, animationName: any, loop?: boolean, delay?: number): void;
|
|
556
|
-
getSpinePosition(): Vector2d;
|
|
557
|
-
setSpineSize(width: any, height: any): void;
|
|
558
|
-
width: any;
|
|
559
|
-
height: any;
|
|
560
|
-
getSpineSize(): {
|
|
561
|
-
width: any;
|
|
562
|
-
height: any;
|
|
563
|
-
};
|
|
564
|
-
/**
|
|
565
|
-
* Set the default mix duration to use when no mix duration has been defined between two animations.
|
|
566
|
-
* @param {number} mixTime
|
|
567
|
-
*/
|
|
568
|
-
setDefaultMixTime(mixTime: number): void;
|
|
569
|
-
/**
|
|
570
|
-
* Sets a mix duration by animation name.
|
|
571
|
-
*/
|
|
572
|
-
setTransitionMixTime(firstAnimation: any, secondAnimation: any, mixTime: any): void;
|
|
573
|
-
/**
|
|
574
|
-
* Sets a skin by name.
|
|
575
|
-
* @param {string} skinName
|
|
576
|
-
* @example
|
|
577
|
-
* // create a new Spine Renderable
|
|
578
|
-
* let spineAlien = new Spine(100, 100, {atlasFile: "mix-and-match-pma.atlas", jsonFile: "mix-and-match-pro.json"});
|
|
579
|
-
*
|
|
580
|
-
* // set default animation
|
|
581
|
-
* spineAlien.setAnimation(0, "dance", true);
|
|
582
|
-
*
|
|
583
|
-
* // set default skin
|
|
584
|
-
* spineAlien.setSkinByName("full-skins/girl");
|
|
585
|
-
*
|
|
586
|
-
* // add it to the game world
|
|
587
|
-
* me.game.world.addChild(spineAlien);
|
|
588
|
-
*/
|
|
589
|
-
setSkinByName(skinName: string): void;
|
|
590
|
-
/**
|
|
591
|
-
* Reset this slot to the setup pose.
|
|
592
|
-
*/
|
|
593
|
-
setToSetupPose(): void;
|
|
594
|
-
}
|
|
595
|
-
import { plugin } from 'melonjs';
|
|
596
|
-
/**
|
|
597
|
-
* @classdesc
|
|
598
|
-
* An Asset Manager class to load spine assets
|
|
599
|
-
*/
|
|
600
|
-
declare class AssetManager {
|
|
601
|
-
/**
|
|
602
|
-
* @param {CanvasRenderer|WebGLRenderer} renderer - a melonJS renderer instance
|
|
603
|
-
* @param {string} [pathPrefix=""] - a default path prefix for assets location
|
|
604
|
-
*/
|
|
605
|
-
constructor(renderer: CanvasRenderer | WebGLRenderer, pathPrefix?: string | undefined);
|
|
606
|
-
asset_manager: {
|
|
607
|
-
pathPrefix: string;
|
|
608
|
-
assets: {};
|
|
609
|
-
errors: {};
|
|
610
|
-
toLoad: number;
|
|
611
|
-
loaded: number;
|
|
612
|
-
textureLoader: any;
|
|
613
|
-
downloader: Downloader;
|
|
614
|
-
start(path: any): string;
|
|
615
|
-
success(callback: any, path: any, asset: any): void;
|
|
616
|
-
error(callback: any, path: any, message: any): void;
|
|
617
|
-
loadAll(): Promise<any>;
|
|
618
|
-
setRawDataURI(path: any, data: any): void;
|
|
619
|
-
loadBinary(path: any, success?: () => void, error?: () => void): void;
|
|
620
|
-
loadText(path: any, success?: () => void, error?: () => void): void;
|
|
621
|
-
loadJson(path: any, success?: () => void, error?: () => void): void;
|
|
622
|
-
loadTexture(path: any, success?: () => void, error?: () => void): void;
|
|
623
|
-
loadTextureAtlas(path: any, success: (() => void) | undefined, error: (() => void) | undefined, fileAlias: any): void;
|
|
624
|
-
get(path: any): any;
|
|
625
|
-
require(path: any): any;
|
|
626
|
-
remove(path: any): any;
|
|
627
|
-
removeAll(): void;
|
|
628
|
-
isLoadingComplete(): boolean;
|
|
629
|
-
getToLoad(): number;
|
|
630
|
-
getLoaded(): number;
|
|
631
|
-
dispose(): void;
|
|
632
|
-
hasErrors(): boolean;
|
|
633
|
-
getErrors(): {};
|
|
634
|
-
} | {
|
|
635
|
-
pathPrefix: string;
|
|
636
|
-
assets: {};
|
|
637
|
-
errors: {};
|
|
638
|
-
toLoad: number;
|
|
639
|
-
loaded: number;
|
|
640
|
-
textureLoader: any;
|
|
641
|
-
downloader: Downloader;
|
|
642
|
-
start(path: any): string;
|
|
643
|
-
success(callback: any, path: any, asset: any): void;
|
|
644
|
-
error(callback: any, path: any, message: any): void;
|
|
645
|
-
loadAll(): Promise<any>;
|
|
646
|
-
setRawDataURI(path: any, data: any): void;
|
|
647
|
-
loadBinary(path: any, success?: () => void, error?: () => void): void;
|
|
648
|
-
loadText(path: any, success?: () => void, error?: () => void): void;
|
|
649
|
-
loadJson(path: any, success?: () => void, error?: () => void): void;
|
|
650
|
-
loadTexture(path: any, success?: () => void, error?: () => void): void;
|
|
651
|
-
loadTextureAtlas(path: any, success: (() => void) | undefined, error: (() => void) | undefined, fileAlias: any): void;
|
|
652
|
-
get(path: any): any;
|
|
653
|
-
require(path: any): any;
|
|
654
|
-
remove(path: any): any;
|
|
655
|
-
removeAll(): void;
|
|
656
|
-
isLoadingComplete(): boolean;
|
|
657
|
-
getToLoad(): number;
|
|
658
|
-
getLoaded(): number;
|
|
659
|
-
dispose(): void;
|
|
660
|
-
hasErrors(): boolean;
|
|
661
|
-
getErrors(): {};
|
|
662
|
-
};
|
|
663
|
-
pathPrefix: string;
|
|
664
|
-
/**
|
|
665
|
-
* set a default path prefix for assets location
|
|
666
|
-
* @see loadAsset
|
|
667
|
-
* @param {string} pathPrefix
|
|
668
|
-
*/
|
|
669
|
-
setPrefix(pathPrefix: string): void;
|
|
670
|
-
/**
|
|
671
|
-
* define all spine assets to be loaded
|
|
672
|
-
* @see setPrefix
|
|
673
|
-
* @see loadAll
|
|
674
|
-
* @param {string} atlas
|
|
675
|
-
* @param {string} skel
|
|
676
|
-
* @example
|
|
677
|
-
* // "manually" load spine assets
|
|
678
|
-
* Spine.assetManager.setPrefix("data/spine/");
|
|
679
|
-
* Spine.assetManager.loadAsset("alien.atlas", "alien-ess.json");
|
|
680
|
-
* await Spine.assetManager.loadAll();
|
|
681
|
-
*/
|
|
682
|
-
loadAsset(atlas: string, skel: string): void;
|
|
683
|
-
/**
|
|
684
|
-
* load the given texture atlas
|
|
685
|
-
* @param {string} atlas
|
|
686
|
-
*/
|
|
687
|
-
loadTextureAtlas(atlas: string, onload: any, onerror: any): void;
|
|
688
|
-
/**
|
|
689
|
-
* load the given skeleton .skel file
|
|
690
|
-
* @param {string} skel
|
|
691
|
-
*/
|
|
692
|
-
loadBinary(skel: string, onload: any, onerror: any): void;
|
|
693
|
-
/**
|
|
694
|
-
* load the given skeleton binary file
|
|
695
|
-
* @param {string} skel
|
|
696
|
-
*/
|
|
697
|
-
loadText(skel: string, onload: any, onerror: any): void;
|
|
698
|
-
/**
|
|
699
|
-
* load all defined spine assets
|
|
700
|
-
* @see loadAsset
|
|
701
|
-
*/
|
|
702
|
-
loadAll(): Promise<any>;
|
|
703
|
-
/**
|
|
704
|
-
* get the loaded skeleton data
|
|
705
|
-
* @param {string} path
|
|
706
|
-
*/
|
|
707
|
-
require(path: string): any;
|
|
708
|
-
}
|
|
709
|
-
/******************************************************************************
|
|
710
|
-
* Spine Runtimes License Agreement
|
|
711
|
-
* Last updated July 28, 2023. Replaces all prior versions.
|
|
712
|
-
*
|
|
713
|
-
* Copyright (c) 2013-2023, Esoteric Software LLC
|
|
714
|
-
*
|
|
715
|
-
* Integration of the Spine Runtimes into software or otherwise creating
|
|
716
|
-
* derivative works of the Spine Runtimes is permitted under the terms and
|
|
717
|
-
* conditions of Section 2 of the Spine Editor License Agreement:
|
|
718
|
-
* http://esotericsoftware.com/spine-editor-license
|
|
719
|
-
*
|
|
720
|
-
* Otherwise, it is permitted to integrate the Spine Runtimes into software or
|
|
721
|
-
* otherwise create derivative works of the Spine Runtimes (collectively,
|
|
722
|
-
* "Products"), provided that each user of the Products must obtain their own
|
|
723
|
-
* Spine Editor license and redistribution of the Products in any form must
|
|
724
|
-
* include this license and copyright notice.
|
|
725
|
-
*
|
|
726
|
-
* THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
|
|
727
|
-
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
728
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
729
|
-
* DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
|
|
730
|
-
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
731
|
-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
|
|
732
|
-
* BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
|
|
733
|
-
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
734
|
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
|
|
735
|
-
* SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
736
|
-
*****************************************************************************/
|
|
737
|
-
declare class Renderable {
|
|
738
|
-
constructor(vertices: any, numVertices: any, numFloats: any);
|
|
739
|
-
vertices: any;
|
|
740
|
-
numVertices: any;
|
|
741
|
-
numFloats: any;
|
|
742
|
-
}
|
|
743
|
-
/** Changes a bone's local {@link Bone#shearX} and {@link Bone#shearY}. */
|
|
744
|
-
declare class AlphaTimeline extends CurveTimeline1 {
|
|
745
|
-
slotIndex: any;
|
|
746
|
-
apply(skeleton: any, lastTime: any, time: any, events: any, alpha: any, blend: any, direction: any): void;
|
|
747
|
-
}
|
|
748
|
-
/******************************************************************************
|
|
749
|
-
* Spine Runtimes License Agreement
|
|
750
|
-
* Last updated July 28, 2023. Replaces all prior versions.
|
|
751
|
-
*
|
|
752
|
-
* Copyright (c) 2013-2023, Esoteric Software LLC
|
|
753
|
-
*
|
|
754
|
-
* Integration of the Spine Runtimes into software or otherwise creating
|
|
755
|
-
* derivative works of the Spine Runtimes is permitted under the terms and
|
|
756
|
-
* conditions of Section 2 of the Spine Editor License Agreement:
|
|
757
|
-
* http://esotericsoftware.com/spine-editor-license
|
|
758
|
-
*
|
|
759
|
-
* Otherwise, it is permitted to integrate the Spine Runtimes into software or
|
|
760
|
-
* otherwise create derivative works of the Spine Runtimes (collectively,
|
|
761
|
-
* "Products"), provided that each user of the Products must obtain their own
|
|
762
|
-
* Spine Editor license and redistribution of the Products in any form must
|
|
763
|
-
* include this license and copyright notice.
|
|
764
|
-
*
|
|
765
|
-
* THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
|
|
766
|
-
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
767
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
768
|
-
* DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
|
|
769
|
-
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
770
|
-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
|
|
771
|
-
* BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
|
|
772
|
-
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
773
|
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
|
|
774
|
-
* SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
775
|
-
*****************************************************************************/
|
|
776
|
-
/** A simple container for a list of timelines and a name. */
|
|
777
|
-
declare class Animation {
|
|
778
|
-
constructor(name: any, timelines: any, duration: any);
|
|
779
|
-
timelines: any[];
|
|
780
|
-
timelineIds: StringSet;
|
|
781
|
-
name: any;
|
|
782
|
-
duration: any;
|
|
783
|
-
setTimelines(timelines: any): void;
|
|
784
|
-
hasTimeline(ids: any): boolean;
|
|
785
|
-
/** Applies all the animation's timelines to the specified skeleton.
|
|
786
|
-
*
|
|
787
|
-
* See Timeline {@link Timeline#apply(Skeleton, float, float, Array, float, MixBlend, MixDirection)}.
|
|
788
|
-
* @param loop If true, the animation repeats after {@link #getDuration()}.
|
|
789
|
-
* @param events May be null to ignore fired events. */
|
|
790
|
-
apply(skeleton: any, lastTime: any, time: any, loop: any, events: any, alpha: any, blend: any, direction: any): void;
|
|
791
|
-
}
|
|
792
|
-
/******************************************************************************
|
|
793
|
-
* Spine Runtimes License Agreement
|
|
794
|
-
* Last updated July 28, 2023. Replaces all prior versions.
|
|
795
|
-
*
|
|
796
|
-
* Copyright (c) 2013-2023, Esoteric Software LLC
|
|
797
|
-
*
|
|
798
|
-
* Integration of the Spine Runtimes into software or otherwise creating
|
|
799
|
-
* derivative works of the Spine Runtimes is permitted under the terms and
|
|
800
|
-
* conditions of Section 2 of the Spine Editor License Agreement:
|
|
801
|
-
* http://esotericsoftware.com/spine-editor-license
|
|
802
|
-
*
|
|
803
|
-
* Otherwise, it is permitted to integrate the Spine Runtimes into software or
|
|
804
|
-
* otherwise create derivative works of the Spine Runtimes (collectively,
|
|
805
|
-
* "Products"), provided that each user of the Products must obtain their own
|
|
806
|
-
* Spine Editor license and redistribution of the Products in any form must
|
|
807
|
-
* include this license and copyright notice.
|
|
808
|
-
*
|
|
809
|
-
* THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
|
|
810
|
-
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
811
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
812
|
-
* DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
|
|
813
|
-
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
814
|
-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
|
|
815
|
-
* BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
|
|
816
|
-
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
817
|
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
|
|
818
|
-
* SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
819
|
-
*****************************************************************************/
|
|
820
|
-
/** Applies animations over time, queues animations for later playback, mixes (crossfading) between animations, and applies
|
|
821
|
-
* multiple animations on top of each other (layering).
|
|
822
|
-
*
|
|
823
|
-
* See [Applying Animations](http://esotericsoftware.com/spine-applying-animations/) in the Spine Runtimes Guide. */
|
|
824
|
-
declare class AnimationState {
|
|
825
|
-
static emptyAnimation(): Animation;
|
|
826
|
-
constructor(data: any);
|
|
827
|
-
/** The list of tracks that currently have animations, which may contain null entries. */
|
|
828
|
-
tracks: any[];
|
|
829
|
-
/** Multiplier for the delta time when the animation state is updated, causing time for all animations and mixes to play slower
|
|
830
|
-
* or faster. Defaults to 1.
|
|
831
|
-
*
|
|
832
|
-
* See TrackEntry {@link TrackEntry#timeScale} for affecting a single animation. */
|
|
833
|
-
timeScale: number;
|
|
834
|
-
unkeyedState: number;
|
|
835
|
-
events: any[];
|
|
836
|
-
listeners: any[];
|
|
837
|
-
queue: EventQueue;
|
|
838
|
-
propertyIDs: StringSet;
|
|
839
|
-
animationsChanged: boolean;
|
|
840
|
-
trackEntryPool: Pool;
|
|
841
|
-
data: any;
|
|
842
|
-
/** Increments each track entry {@link TrackEntry#trackTime()}, setting queued animations as current if needed. */
|
|
843
|
-
update(delta: any): void;
|
|
844
|
-
/** Returns true when all mixing from entries are complete. */
|
|
845
|
-
updateMixingFrom(to: any, delta: any): any;
|
|
846
|
-
/** Poses the skeleton using the track entry animations. There are no side effects other than invoking listeners, so the
|
|
847
|
-
* animation state can be applied to multiple skeletons to pose them identically.
|
|
848
|
-
* @returns True if any animations were applied. */
|
|
849
|
-
apply(skeleton: any): boolean;
|
|
850
|
-
applyMixingFrom(to: any, skeleton: any, blend: any): number;
|
|
851
|
-
applyAttachmentTimeline(timeline: any, skeleton: any, time: any, blend: any, attachments: any): void;
|
|
852
|
-
setAttachment(skeleton: any, slot: any, attachmentName: any, attachments: any): void;
|
|
853
|
-
applyRotateTimeline(timeline: any, skeleton: any, time: any, alpha: any, blend: any, timelinesRotation: any, i: any, firstFrame: any): void;
|
|
854
|
-
queueEvents(entry: any, animationTime: any): void;
|
|
855
|
-
/** Removes all animations from all tracks, leaving skeletons in their current pose.
|
|
856
|
-
*
|
|
857
|
-
* It may be desired to use {@link AnimationState#setEmptyAnimation()} to mix the skeletons back to the setup pose,
|
|
858
|
-
* rather than leaving them in their current pose. */
|
|
859
|
-
clearTracks(): void;
|
|
860
|
-
/** Removes all animations from the track, leaving skeletons in their current pose.
|
|
861
|
-
*
|
|
862
|
-
* It may be desired to use {@link AnimationState#setEmptyAnimation()} to mix the skeletons back to the setup pose,
|
|
863
|
-
* rather than leaving them in their current pose. */
|
|
864
|
-
clearTrack(trackIndex: any): void;
|
|
865
|
-
setCurrent(index: any, current: any, interrupt: any): void;
|
|
866
|
-
/** Sets an animation by name.
|
|
867
|
-
*
|
|
868
|
-
* See {@link #setAnimationWith()}. */
|
|
869
|
-
setAnimation(trackIndex: any, animationName: any, loop?: boolean): any;
|
|
870
|
-
/** Sets the current animation for a track, discarding any queued animations. If the formerly current track entry was never
|
|
871
|
-
* applied to a skeleton, it is replaced (not mixed from).
|
|
872
|
-
* @param loop If true, the animation will repeat. If false it will not, instead its last frame is applied if played beyond its
|
|
873
|
-
* duration. In either case {@link TrackEntry#trackEnd} determines when the track is cleared.
|
|
874
|
-
* @returns A track entry to allow further customization of animation playback. References to the track entry must not be kept
|
|
875
|
-
* after the {@link AnimationStateListener#dispose()} event occurs. */
|
|
876
|
-
setAnimationWith(trackIndex: any, animation: any, loop?: boolean): any;
|
|
877
|
-
/** Queues an animation by name.
|
|
878
|
-
*
|
|
879
|
-
* See {@link #addAnimationWith()}. */
|
|
880
|
-
addAnimation(trackIndex: any, animationName: any, loop?: boolean, delay?: number): any;
|
|
881
|
-
/** Adds an animation to be played after the current or last queued animation for a track. If the track is empty, it is
|
|
882
|
-
* equivalent to calling {@link #setAnimationWith()}.
|
|
883
|
-
* @param delay If > 0, sets {@link TrackEntry#delay}. If <= 0, the delay set is the duration of the previous track entry
|
|
884
|
-
* minus any mix duration (from the {@link AnimationStateData}) plus the specified `delay` (ie the mix
|
|
885
|
-
* ends at (`delay` = 0) or before (`delay` < 0) the previous track entry duration). If the
|
|
886
|
-
* previous entry is looping, its next loop completion is used instead of its duration.
|
|
887
|
-
* @returns A track entry to allow further customization of animation playback. References to the track entry must not be kept
|
|
888
|
-
* after the {@link AnimationStateListener#dispose()} event occurs. */
|
|
889
|
-
addAnimationWith(trackIndex: any, animation: any, loop?: boolean, delay?: number): any;
|
|
890
|
-
/** Sets an empty animation for a track, discarding any queued animations, and sets the track entry's
|
|
891
|
-
* {@link TrackEntry#mixduration}. An empty animation has no timelines and serves as a placeholder for mixing in or out.
|
|
892
|
-
*
|
|
893
|
-
* Mixing out is done by setting an empty animation with a mix duration using either {@link #setEmptyAnimation()},
|
|
894
|
-
* {@link #setEmptyAnimations()}, or {@link #addEmptyAnimation()}. Mixing to an empty animation causes
|
|
895
|
-
* the previous animation to be applied less and less over the mix duration. Properties keyed in the previous animation
|
|
896
|
-
* transition to the value from lower tracks or to the setup pose value if no lower tracks key the property. A mix duration of
|
|
897
|
-
* 0 still mixes out over one frame.
|
|
898
|
-
*
|
|
899
|
-
* Mixing in is done by first setting an empty animation, then adding an animation using
|
|
900
|
-
* {@link #addAnimation()} and on the returned track entry, set the
|
|
901
|
-
* {@link TrackEntry#setMixDuration()}. Mixing from an empty animation causes the new animation to be applied more and
|
|
902
|
-
* more over the mix duration. Properties keyed in the new animation transition from the value from lower tracks or from the
|
|
903
|
-
* setup pose value if no lower tracks key the property to the value keyed in the new animation. */
|
|
904
|
-
setEmptyAnimation(trackIndex: any, mixDuration?: number): any;
|
|
905
|
-
/** Adds an empty animation to be played after the current or last queued animation for a track, and sets the track entry's
|
|
906
|
-
* {@link TrackEntry#mixDuration}. If the track is empty, it is equivalent to calling
|
|
907
|
-
* {@link #setEmptyAnimation()}.
|
|
908
|
-
*
|
|
909
|
-
* See {@link #setEmptyAnimation()}.
|
|
910
|
-
* @param delay If > 0, sets {@link TrackEntry#delay}. If <= 0, the delay set is the duration of the previous track entry
|
|
911
|
-
* minus any mix duration plus the specified `delay` (ie the mix ends at (`delay` = 0) or
|
|
912
|
-
* before (`delay` < 0) the previous track entry duration). If the previous entry is looping, its next
|
|
913
|
-
* loop completion is used instead of its duration.
|
|
914
|
-
* @return A track entry to allow further customization of animation playback. References to the track entry must not be kept
|
|
915
|
-
* after the {@link AnimationStateListener#dispose()} event occurs. */
|
|
916
|
-
addEmptyAnimation(trackIndex: any, mixDuration?: number, delay?: number): any;
|
|
917
|
-
/** Sets an empty animation for every track, discarding any queued animations, and mixes to it over the specified mix
|
|
918
|
-
* duration. */
|
|
919
|
-
setEmptyAnimations(mixDuration?: number): void;
|
|
920
|
-
expandToIndex(index: any): any;
|
|
921
|
-
/** @param last May be null. */
|
|
922
|
-
trackEntry(trackIndex: any, animation: any, loop: any, last: any): any;
|
|
923
|
-
/** Removes the {@link TrackEntry#getNext() next entry} and all entries after it for the specified entry. */
|
|
924
|
-
clearNext(entry: any): void;
|
|
925
|
-
_animationsChanged(): void;
|
|
926
|
-
computeHold(entry: any): void;
|
|
927
|
-
/** Returns the track entry for the animation currently playing on the track, or null if no animation is currently playing. */
|
|
928
|
-
getCurrent(trackIndex: any): any;
|
|
929
|
-
/** Adds a listener to receive events for all track entries. */
|
|
930
|
-
addListener(listener: any): void;
|
|
931
|
-
/** Removes the listener added with {@link #addListener()}. */
|
|
932
|
-
removeListener(listener: any): void;
|
|
933
|
-
/** Removes all listeners added with {@link #addListener()}. */
|
|
934
|
-
clearListeners(): void;
|
|
935
|
-
/** Discards all listener notifications that have not yet been delivered. This can be useful to call from an
|
|
936
|
-
* {@link AnimationStateListener} when it is known that further notifications that may have been already queued for delivery
|
|
937
|
-
* are not wanted because new animations are being set. */
|
|
938
|
-
clearListenerNotifications(): void;
|
|
939
|
-
}
|
|
940
|
-
declare namespace AnimationState {
|
|
941
|
-
let _emptyAnimation: Animation;
|
|
942
|
-
}
|
|
943
|
-
declare class AnimationStateAdapter {
|
|
944
|
-
start(entry: any): void;
|
|
945
|
-
interrupt(entry: any): void;
|
|
946
|
-
end(entry: any): void;
|
|
947
|
-
dispose(entry: any): void;
|
|
948
|
-
complete(entry: any): void;
|
|
949
|
-
event(entry: any, event: any): void;
|
|
950
|
-
}
|
|
951
|
-
/******************************************************************************
|
|
952
|
-
* Spine Runtimes License Agreement
|
|
953
|
-
* Last updated July 28, 2023. Replaces all prior versions.
|
|
954
|
-
*
|
|
955
|
-
* Copyright (c) 2013-2023, Esoteric Software LLC
|
|
956
|
-
*
|
|
957
|
-
* Integration of the Spine Runtimes into software or otherwise creating
|
|
958
|
-
* derivative works of the Spine Runtimes is permitted under the terms and
|
|
959
|
-
* conditions of Section 2 of the Spine Editor License Agreement:
|
|
960
|
-
* http://esotericsoftware.com/spine-editor-license
|
|
961
|
-
*
|
|
962
|
-
* Otherwise, it is permitted to integrate the Spine Runtimes into software or
|
|
963
|
-
* otherwise create derivative works of the Spine Runtimes (collectively,
|
|
964
|
-
* "Products"), provided that each user of the Products must obtain their own
|
|
965
|
-
* Spine Editor license and redistribution of the Products in any form must
|
|
966
|
-
* include this license and copyright notice.
|
|
967
|
-
*
|
|
968
|
-
* THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
|
|
969
|
-
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
970
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
971
|
-
* DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
|
|
972
|
-
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
973
|
-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
|
|
974
|
-
* BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
|
|
975
|
-
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
976
|
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
|
|
977
|
-
* SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
978
|
-
*****************************************************************************/
|
|
979
|
-
/** Stores mix (crossfade) durations to be applied when {@link AnimationState} animations are changed. */
|
|
980
|
-
declare class AnimationStateData {
|
|
981
|
-
constructor(skeletonData: any);
|
|
982
|
-
animationToMixTime: {};
|
|
983
|
-
/** The mix duration to use when no mix duration has been defined between two animations. */
|
|
984
|
-
defaultMix: number;
|
|
985
|
-
skeletonData: any;
|
|
986
|
-
/** Sets a mix duration by animation name.
|
|
987
|
-
*
|
|
988
|
-
* See {@link #setMixWith()}. */
|
|
989
|
-
setMix(fromName: any, toName: any, duration: any): void;
|
|
990
|
-
/** Sets the mix duration when changing from the specified animation to the other.
|
|
991
|
-
*
|
|
992
|
-
* See {@link TrackEntry#mixDuration}. */
|
|
993
|
-
setMixWith(from: any, to: any, duration: any): void;
|
|
994
|
-
/** Returns the mix duration to use when changing from the specified animation to the other, or the {@link #defaultMix} if
|
|
995
|
-
* no mix duration has been set. */
|
|
996
|
-
getMix(from: any, to: any): any;
|
|
997
|
-
}
|
|
998
|
-
declare class Downloader {
|
|
999
|
-
callbacks: {};
|
|
1000
|
-
rawDataUris: {};
|
|
1001
|
-
dataUriToString(dataUri: any): any;
|
|
1002
|
-
base64ToUint8Array(base64: any): Uint8Array;
|
|
1003
|
-
dataUriToUint8Array(dataUri: any): Uint8Array;
|
|
1004
|
-
downloadText(url: any, success: any, error: any): void;
|
|
1005
|
-
downloadJson(url: any, success: any, error: any): void;
|
|
1006
|
-
downloadBinary(url: any, success: any, error: any): void;
|
|
1007
|
-
start(url: any, success: any, error: any): true | undefined;
|
|
1008
|
-
finish(url: any, status: any, data: any): void;
|
|
1009
|
-
}
|
|
1010
|
-
/******************************************************************************
|
|
1011
|
-
* Spine Runtimes License Agreement
|
|
1012
|
-
* Last updated July 28, 2023. Replaces all prior versions.
|
|
1013
|
-
*
|
|
1014
|
-
* Copyright (c) 2013-2023, Esoteric Software LLC
|
|
1015
|
-
*
|
|
1016
|
-
* Integration of the Spine Runtimes into software or otherwise creating
|
|
1017
|
-
* derivative works of the Spine Runtimes is permitted under the terms and
|
|
1018
|
-
* conditions of Section 2 of the Spine Editor License Agreement:
|
|
1019
|
-
* http://esotericsoftware.com/spine-editor-license
|
|
1020
|
-
*
|
|
1021
|
-
* Otherwise, it is permitted to integrate the Spine Runtimes into software or
|
|
1022
|
-
* otherwise create derivative works of the Spine Runtimes (collectively,
|
|
1023
|
-
* "Products"), provided that each user of the Products must obtain their own
|
|
1024
|
-
* Spine Editor license and redistribution of the Products in any form must
|
|
1025
|
-
* include this license and copyright notice.
|
|
1026
|
-
*
|
|
1027
|
-
* THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
|
|
1028
|
-
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
1029
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
1030
|
-
* DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
|
|
1031
|
-
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
1032
|
-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
|
|
1033
|
-
* BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
|
|
1034
|
-
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
1035
|
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
|
|
1036
|
-
* SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1037
|
-
*****************************************************************************/
|
|
1038
|
-
declare class AssetManagerBase {
|
|
1039
|
-
constructor(textureLoader: any, pathPrefix?: string, downloader?: Downloader);
|
|
1040
|
-
pathPrefix: string;
|
|
1041
|
-
assets: {};
|
|
1042
|
-
errors: {};
|
|
1043
|
-
toLoad: number;
|
|
1044
|
-
loaded: number;
|
|
1045
|
-
textureLoader: any;
|
|
1046
|
-
downloader: Downloader;
|
|
1047
|
-
start(path: any): string;
|
|
1048
|
-
success(callback: any, path: any, asset: any): void;
|
|
1049
|
-
error(callback: any, path: any, message: any): void;
|
|
1050
|
-
loadAll(): Promise<any>;
|
|
1051
|
-
setRawDataURI(path: any, data: any): void;
|
|
1052
|
-
loadBinary(path: any, success?: () => void, error?: () => void): void;
|
|
1053
|
-
loadText(path: any, success?: () => void, error?: () => void): void;
|
|
1054
|
-
loadJson(path: any, success?: () => void, error?: () => void): void;
|
|
1055
|
-
loadTexture(path: any, success?: () => void, error?: () => void): void;
|
|
1056
|
-
loadTextureAtlas(path: any, success: (() => void) | undefined, error: (() => void) | undefined, fileAlias: any): void;
|
|
1057
|
-
get(path: any): any;
|
|
1058
|
-
require(path: any): any;
|
|
1059
|
-
remove(path: any): any;
|
|
1060
|
-
removeAll(): void;
|
|
1061
|
-
isLoadingComplete(): boolean;
|
|
1062
|
-
getToLoad(): number;
|
|
1063
|
-
getLoaded(): number;
|
|
1064
|
-
dispose(): void;
|
|
1065
|
-
hasErrors(): boolean;
|
|
1066
|
-
getErrors(): {};
|
|
1067
|
-
}
|
|
1068
|
-
/******************************************************************************
|
|
1069
|
-
* Spine Runtimes License Agreement
|
|
1070
|
-
* Last updated July 28, 2023. Replaces all prior versions.
|
|
1071
|
-
*
|
|
1072
|
-
* Copyright (c) 2013-2023, Esoteric Software LLC
|
|
1073
|
-
*
|
|
1074
|
-
* Integration of the Spine Runtimes into software or otherwise creating
|
|
1075
|
-
* derivative works of the Spine Runtimes is permitted under the terms and
|
|
1076
|
-
* conditions of Section 2 of the Spine Editor License Agreement:
|
|
1077
|
-
* http://esotericsoftware.com/spine-editor-license
|
|
1078
|
-
*
|
|
1079
|
-
* Otherwise, it is permitted to integrate the Spine Runtimes into software or
|
|
1080
|
-
* otherwise create derivative works of the Spine Runtimes (collectively,
|
|
1081
|
-
* "Products"), provided that each user of the Products must obtain their own
|
|
1082
|
-
* Spine Editor license and redistribution of the Products in any form must
|
|
1083
|
-
* include this license and copyright notice.
|
|
1084
|
-
*
|
|
1085
|
-
* THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
|
|
1086
|
-
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
1087
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
1088
|
-
* DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
|
|
1089
|
-
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
1090
|
-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
|
|
1091
|
-
* BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
|
|
1092
|
-
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
1093
|
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
|
|
1094
|
-
* SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1095
|
-
*****************************************************************************/
|
|
1096
|
-
/** An {@link AttachmentLoader} that configures attachments using texture regions from an {@link TextureAtlas}.
|
|
1097
|
-
*
|
|
1098
|
-
* See [Loading skeleton data](http://esotericsoftware.com/spine-loading-skeleton-data#JSON-and-binary-data) in the
|
|
1099
|
-
* Spine Runtimes Guide. */
|
|
1100
|
-
declare class AtlasAttachmentLoader {
|
|
1101
|
-
constructor(atlas: any);
|
|
1102
|
-
atlas: any;
|
|
1103
|
-
loadSequence(name: any, basePath: any, sequence: any): void;
|
|
1104
|
-
newRegionAttachment(skin: any, name: any, path: any, sequence: any): RegionAttachment;
|
|
1105
|
-
newMeshAttachment(skin: any, name: any, path: any, sequence: any): MeshAttachment;
|
|
1106
|
-
newBoundingBoxAttachment(skin: any, name: any): BoundingBoxAttachment;
|
|
1107
|
-
newPathAttachment(skin: any, name: any): PathAttachment;
|
|
1108
|
-
newPointAttachment(skin: any, name: any): PointAttachment;
|
|
1109
|
-
newClippingAttachment(skin: any, name: any): ClippingAttachment;
|
|
1110
|
-
}
|
|
1111
|
-
/******************************************************************************
|
|
1112
|
-
* Spine Runtimes License Agreement
|
|
1113
|
-
* Last updated July 28, 2023. Replaces all prior versions.
|
|
1114
|
-
*
|
|
1115
|
-
* Copyright (c) 2013-2023, Esoteric Software LLC
|
|
1116
|
-
*
|
|
1117
|
-
* Integration of the Spine Runtimes into software or otherwise creating
|
|
1118
|
-
* derivative works of the Spine Runtimes is permitted under the terms and
|
|
1119
|
-
* conditions of Section 2 of the Spine Editor License Agreement:
|
|
1120
|
-
* http://esotericsoftware.com/spine-editor-license
|
|
1121
|
-
*
|
|
1122
|
-
* Otherwise, it is permitted to integrate the Spine Runtimes into software or
|
|
1123
|
-
* otherwise create derivative works of the Spine Runtimes (collectively,
|
|
1124
|
-
* "Products"), provided that each user of the Products must obtain their own
|
|
1125
|
-
* Spine Editor license and redistribution of the Products in any form must
|
|
1126
|
-
* include this license and copyright notice.
|
|
1127
|
-
*
|
|
1128
|
-
* THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
|
|
1129
|
-
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
1130
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
1131
|
-
* DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
|
|
1132
|
-
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
1133
|
-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
|
|
1134
|
-
* BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
|
|
1135
|
-
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
1136
|
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
|
|
1137
|
-
* SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1138
|
-
*****************************************************************************/
|
|
1139
|
-
/** The base class for all attachments. */
|
|
1140
|
-
declare class Attachment {
|
|
1141
|
-
constructor(name: any);
|
|
1142
|
-
name: any;
|
|
1143
|
-
}
|
|
1144
|
-
/** Changes a slot's {@link Slot#attachment}. */
|
|
1145
|
-
declare class AttachmentTimeline extends Timeline {
|
|
1146
|
-
slotIndex: any;
|
|
1147
|
-
attachmentNames: any[];
|
|
1148
|
-
/** Sets the time in seconds and the attachment name for the specified key frame. */
|
|
1149
|
-
setFrame(frame: any, time: any, attachmentName: any): void;
|
|
1150
|
-
apply(skeleton: any, lastTime: any, time: any, events: any, alpha: any, blend: any, direction: any): void;
|
|
1151
|
-
setAttachment(skeleton: any, slot: any, attachmentName: any): void;
|
|
1152
|
-
}
|
|
1153
|
-
declare class BinaryInput {
|
|
1154
|
-
constructor(data: any, strings?: any[], index?: number, buffer?: DataView);
|
|
1155
|
-
strings: any[];
|
|
1156
|
-
index: number;
|
|
1157
|
-
buffer: DataView;
|
|
1158
|
-
readByte(): number;
|
|
1159
|
-
readUnsignedByte(): number;
|
|
1160
|
-
readShort(): number;
|
|
1161
|
-
readInt32(): number;
|
|
1162
|
-
readInt(optimizePositive: any): number;
|
|
1163
|
-
readStringRef(): any;
|
|
1164
|
-
readString(): string | null;
|
|
1165
|
-
readFloat(): number;
|
|
1166
|
-
readBoolean(): boolean;
|
|
1167
|
-
}
|
|
1168
|
-
/******************************************************************************
|
|
1169
|
-
* Spine Runtimes License Agreement
|
|
1170
|
-
* Last updated July 28, 2023. Replaces all prior versions.
|
|
1171
|
-
*
|
|
1172
|
-
* Copyright (c) 2013-2023, Esoteric Software LLC
|
|
1173
|
-
*
|
|
1174
|
-
* Integration of the Spine Runtimes into software or otherwise creating
|
|
1175
|
-
* derivative works of the Spine Runtimes is permitted under the terms and
|
|
1176
|
-
* conditions of Section 2 of the Spine Editor License Agreement:
|
|
1177
|
-
* http://esotericsoftware.com/spine-editor-license
|
|
1178
|
-
*
|
|
1179
|
-
* Otherwise, it is permitted to integrate the Spine Runtimes into software or
|
|
1180
|
-
* otherwise create derivative works of the Spine Runtimes (collectively,
|
|
1181
|
-
* "Products"), provided that each user of the Products must obtain their own
|
|
1182
|
-
* Spine Editor license and redistribution of the Products in any form must
|
|
1183
|
-
* include this license and copyright notice.
|
|
1184
|
-
*
|
|
1185
|
-
* THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
|
|
1186
|
-
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
1187
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
1188
|
-
* DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
|
|
1189
|
-
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
1190
|
-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
|
|
1191
|
-
* BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
|
|
1192
|
-
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
1193
|
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
|
|
1194
|
-
* SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1195
|
-
*****************************************************************************/
|
|
1196
|
-
/** Stores a bone's current pose.
|
|
1197
|
-
*
|
|
1198
|
-
* A bone has a local transform which is used to compute its world transform. A bone also has an applied transform, which is a
|
|
1199
|
-
* local transform that can be applied to compute the world transform. The local transform and applied transform may differ if a
|
|
1200
|
-
* constraint or application code modifies the world transform after it was computed from the local transform. */
|
|
1201
|
-
declare class Bone {
|
|
1202
|
-
/** @param parent May be null. */
|
|
1203
|
-
constructor(data: any, skeleton: any, parent: any);
|
|
1204
|
-
/** The parent bone, or null if this is the root bone. */
|
|
1205
|
-
parent: any;
|
|
1206
|
-
/** The immediate children of this bone. */
|
|
1207
|
-
children: any[];
|
|
1208
|
-
/** The local x translation. */
|
|
1209
|
-
x: number;
|
|
1210
|
-
/** The local y translation. */
|
|
1211
|
-
y: number;
|
|
1212
|
-
/** The local rotation in degrees, counter clockwise. */
|
|
1213
|
-
rotation: number;
|
|
1214
|
-
/** The local scaleX. */
|
|
1215
|
-
scaleX: number;
|
|
1216
|
-
/** The local scaleY. */
|
|
1217
|
-
scaleY: number;
|
|
1218
|
-
/** The local shearX. */
|
|
1219
|
-
shearX: number;
|
|
1220
|
-
/** The local shearY. */
|
|
1221
|
-
shearY: number;
|
|
1222
|
-
/** The applied local x translation. */
|
|
1223
|
-
ax: number;
|
|
1224
|
-
/** The applied local y translation. */
|
|
1225
|
-
ay: number;
|
|
1226
|
-
/** The applied local rotation in degrees, counter clockwise. */
|
|
1227
|
-
arotation: number;
|
|
1228
|
-
/** The applied local scaleX. */
|
|
1229
|
-
ascaleX: number;
|
|
1230
|
-
/** The applied local scaleY. */
|
|
1231
|
-
ascaleY: number;
|
|
1232
|
-
/** The applied local shearX. */
|
|
1233
|
-
ashearX: number;
|
|
1234
|
-
/** The applied local shearY. */
|
|
1235
|
-
ashearY: number;
|
|
1236
|
-
/** Part of the world transform matrix for the X axis. If changed, {@link #updateAppliedTransform()} should be called. */
|
|
1237
|
-
a: number;
|
|
1238
|
-
/** Part of the world transform matrix for the Y axis. If changed, {@link #updateAppliedTransform()} should be called. */
|
|
1239
|
-
b: number;
|
|
1240
|
-
/** Part of the world transform matrix for the X axis. If changed, {@link #updateAppliedTransform()} should be called. */
|
|
1241
|
-
c: number;
|
|
1242
|
-
/** Part of the world transform matrix for the Y axis. If changed, {@link #updateAppliedTransform()} should be called. */
|
|
1243
|
-
d: number;
|
|
1244
|
-
/** The world X position. If changed, {@link #updateAppliedTransform()} should be called. */
|
|
1245
|
-
worldY: number;
|
|
1246
|
-
/** The world Y position. If changed, {@link #updateAppliedTransform()} should be called. */
|
|
1247
|
-
worldX: number;
|
|
1248
|
-
sorted: boolean;
|
|
1249
|
-
active: boolean;
|
|
1250
|
-
data: any;
|
|
1251
|
-
skeleton: any;
|
|
1252
|
-
/** Returns false when the bone has not been computed because {@link BoneData#skinRequired} is true and the
|
|
1253
|
-
* {@link Skeleton#skin active skin} does not {@link Skin#bones contain} this bone. */
|
|
1254
|
-
isActive(): boolean;
|
|
1255
|
-
/** Computes the world transform using the parent bone and this bone's local applied transform. */
|
|
1256
|
-
update(): void;
|
|
1257
|
-
/** Computes the world transform using the parent bone and this bone's local transform.
|
|
1258
|
-
*
|
|
1259
|
-
* See {@link #updateWorldTransformWith()}. */
|
|
1260
|
-
updateWorldTransform(): void;
|
|
1261
|
-
/** Computes the world transform using the parent bone and the specified local transform. The applied transform is set to the
|
|
1262
|
-
* specified local transform. Child bones are not updated.
|
|
1263
|
-
*
|
|
1264
|
-
* See [World transforms](http://esotericsoftware.com/spine-runtime-skeletons#World-transforms) in the Spine
|
|
1265
|
-
* Runtimes Guide. */
|
|
1266
|
-
updateWorldTransformWith(x: any, y: any, rotation: any, scaleX: any, scaleY: any, shearX: any, shearY: any): void;
|
|
1267
|
-
/** Sets this bone's local transform to the setup pose. */
|
|
1268
|
-
setToSetupPose(): void;
|
|
1269
|
-
/** The world rotation for the X axis, calculated using {@link #a} and {@link #c}. */
|
|
1270
|
-
getWorldRotationX(): number;
|
|
1271
|
-
/** The world rotation for the Y axis, calculated using {@link #b} and {@link #d}. */
|
|
1272
|
-
getWorldRotationY(): number;
|
|
1273
|
-
/** The magnitude (always positive) of the world scale X, calculated using {@link #a} and {@link #c}. */
|
|
1274
|
-
getWorldScaleX(): number;
|
|
1275
|
-
/** The magnitude (always positive) of the world scale Y, calculated using {@link #b} and {@link #d}. */
|
|
1276
|
-
getWorldScaleY(): number;
|
|
1277
|
-
/** Computes the applied transform values from the world transform.
|
|
1278
|
-
*
|
|
1279
|
-
* If the world transform is modified (by a constraint, {@link #rotateWorld(float)}, etc) then this method should be called so
|
|
1280
|
-
* the applied transform matches the world transform. The applied transform may be needed by other code (eg to apply other
|
|
1281
|
-
* constraints).
|
|
1282
|
-
*
|
|
1283
|
-
* Some information is ambiguous in the world transform, such as -1,-1 scale versus 180 rotation. The applied transform after
|
|
1284
|
-
* calling this method is equivalent to the local transform used to compute the world transform, but may not be identical. */
|
|
1285
|
-
updateAppliedTransform(): void;
|
|
1286
|
-
/** Transforms a point from world coordinates to the bone's local coordinates. */
|
|
1287
|
-
worldToLocal(world: any): any;
|
|
1288
|
-
/** Transforms a point from the bone's local coordinates to world coordinates. */
|
|
1289
|
-
localToWorld(local: any): any;
|
|
1290
|
-
/** Transforms a world rotation to a local rotation. */
|
|
1291
|
-
worldToLocalRotation(worldRotation: any): number;
|
|
1292
|
-
/** Transforms a local rotation to a world rotation. */
|
|
1293
|
-
localToWorldRotation(localRotation: any): number;
|
|
1294
|
-
/** Rotates the world transform the specified amount.
|
|
1295
|
-
* <p>
|
|
1296
|
-
* After changes are made to the world transform, {@link #updateAppliedTransform()} should be called and {@link #update()} will
|
|
1297
|
-
* need to be called on any child bones, recursively. */
|
|
1298
|
-
rotateWorld(degrees: any): void;
|
|
1299
|
-
}
|
|
1300
|
-
/******************************************************************************
|
|
1301
|
-
* Spine Runtimes License Agreement
|
|
1302
|
-
* Last updated July 28, 2023. Replaces all prior versions.
|
|
1303
|
-
*
|
|
1304
|
-
* Copyright (c) 2013-2023, Esoteric Software LLC
|
|
1305
|
-
*
|
|
1306
|
-
* Integration of the Spine Runtimes into software or otherwise creating
|
|
1307
|
-
* derivative works of the Spine Runtimes is permitted under the terms and
|
|
1308
|
-
* conditions of Section 2 of the Spine Editor License Agreement:
|
|
1309
|
-
* http://esotericsoftware.com/spine-editor-license
|
|
1310
|
-
*
|
|
1311
|
-
* Otherwise, it is permitted to integrate the Spine Runtimes into software or
|
|
1312
|
-
* otherwise create derivative works of the Spine Runtimes (collectively,
|
|
1313
|
-
* "Products"), provided that each user of the Products must obtain their own
|
|
1314
|
-
* Spine Editor license and redistribution of the Products in any form must
|
|
1315
|
-
* include this license and copyright notice.
|
|
1316
|
-
*
|
|
1317
|
-
* THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
|
|
1318
|
-
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
1319
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
1320
|
-
* DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
|
|
1321
|
-
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
1322
|
-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
|
|
1323
|
-
* BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
|
|
1324
|
-
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
1325
|
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
|
|
1326
|
-
* SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1327
|
-
*****************************************************************************/
|
|
1328
|
-
/** Stores the setup pose for a {@link Bone}. */
|
|
1329
|
-
declare class BoneData {
|
|
1330
|
-
constructor(index: any, name: any, parent: any);
|
|
1331
|
-
/** The index of the bone in {@link Skeleton#getBones()}. */
|
|
1332
|
-
index: any;
|
|
1333
|
-
/** @returns May be null. */
|
|
1334
|
-
parent: any;
|
|
1335
|
-
/** The bone's length. */
|
|
1336
|
-
length: number;
|
|
1337
|
-
/** The local x translation. */
|
|
1338
|
-
x: number;
|
|
1339
|
-
/** The local y translation. */
|
|
1340
|
-
y: number;
|
|
1341
|
-
/** The local rotation. */
|
|
1342
|
-
rotation: number;
|
|
1343
|
-
/** The local scaleX. */
|
|
1344
|
-
scaleX: number;
|
|
1345
|
-
/** The local scaleY. */
|
|
1346
|
-
scaleY: number;
|
|
1347
|
-
/** The local shearX. */
|
|
1348
|
-
shearX: number;
|
|
1349
|
-
/** The local shearX. */
|
|
1350
|
-
shearY: number;
|
|
1351
|
-
/** The transform mode for how parent world transforms affect this bone. */
|
|
1352
|
-
transformMode: any;
|
|
1353
|
-
/** When true, {@link Skeleton#updateWorldTransform()} only updates this bone if the {@link Skeleton#skin} contains this
|
|
1354
|
-
* bone.
|
|
1355
|
-
* @see Skin#bones */
|
|
1356
|
-
skinRequired: boolean;
|
|
1357
|
-
/** The color of the bone as it was in Spine. Available only when nonessential data was exported. Bones are not usually
|
|
1358
|
-
* rendered at runtime. */
|
|
1359
|
-
color: Color;
|
|
1360
|
-
name: any;
|
|
1361
|
-
}
|
|
1362
|
-
/******************************************************************************
|
|
1363
|
-
* Spine Runtimes License Agreement
|
|
1364
|
-
* Last updated July 28, 2023. Replaces all prior versions.
|
|
1365
|
-
*
|
|
1366
|
-
* Copyright (c) 2013-2023, Esoteric Software LLC
|
|
1367
|
-
*
|
|
1368
|
-
* Integration of the Spine Runtimes into software or otherwise creating
|
|
1369
|
-
* derivative works of the Spine Runtimes is permitted under the terms and
|
|
1370
|
-
* conditions of Section 2 of the Spine Editor License Agreement:
|
|
1371
|
-
* http://esotericsoftware.com/spine-editor-license
|
|
1372
|
-
*
|
|
1373
|
-
* Otherwise, it is permitted to integrate the Spine Runtimes into software or
|
|
1374
|
-
* otherwise create derivative works of the Spine Runtimes (collectively,
|
|
1375
|
-
* "Products"), provided that each user of the Products must obtain their own
|
|
1376
|
-
* Spine Editor license and redistribution of the Products in any form must
|
|
1377
|
-
* include this license and copyright notice.
|
|
1378
|
-
*
|
|
1379
|
-
* THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
|
|
1380
|
-
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
1381
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
1382
|
-
* DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
|
|
1383
|
-
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
1384
|
-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
|
|
1385
|
-
* BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
|
|
1386
|
-
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
1387
|
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
|
|
1388
|
-
* SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1389
|
-
*****************************************************************************/
|
|
1390
|
-
/** An attachment with vertices that make up a polygon. Can be used for hit detection, creating physics bodies, spawning particle
|
|
1391
|
-
* effects, and more.
|
|
1392
|
-
*
|
|
1393
|
-
* See {@link SkeletonBounds} and [Bounding Boxes](http://esotericsoftware.com/spine-bounding-boxes) in the Spine User
|
|
1394
|
-
* Guide. */
|
|
1395
|
-
declare class BoundingBoxAttachment extends VertexAttachment {
|
|
1396
|
-
color: Color;
|
|
1397
|
-
copy(): BoundingBoxAttachment;
|
|
1398
|
-
}
|
|
1399
|
-
/******************************************************************************
|
|
1400
|
-
* Spine Runtimes License Agreement
|
|
1401
|
-
* Last updated July 28, 2023. Replaces all prior versions.
|
|
1402
|
-
*
|
|
1403
|
-
* Copyright (c) 2013-2023, Esoteric Software LLC
|
|
1404
|
-
*
|
|
1405
|
-
* Integration of the Spine Runtimes into software or otherwise creating
|
|
1406
|
-
* derivative works of the Spine Runtimes is permitted under the terms and
|
|
1407
|
-
* conditions of Section 2 of the Spine Editor License Agreement:
|
|
1408
|
-
* http://esotericsoftware.com/spine-editor-license
|
|
1409
|
-
*
|
|
1410
|
-
* Otherwise, it is permitted to integrate the Spine Runtimes into software or
|
|
1411
|
-
* otherwise create derivative works of the Spine Runtimes (collectively,
|
|
1412
|
-
* "Products"), provided that each user of the Products must obtain their own
|
|
1413
|
-
* Spine Editor license and redistribution of the Products in any form must
|
|
1414
|
-
* include this license and copyright notice.
|
|
1415
|
-
*
|
|
1416
|
-
* THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
|
|
1417
|
-
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
1418
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
1419
|
-
* DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
|
|
1420
|
-
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
1421
|
-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
|
|
1422
|
-
* BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
|
|
1423
|
-
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
1424
|
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
|
|
1425
|
-
* SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1426
|
-
*****************************************************************************/
|
|
1427
|
-
declare class CameraController {
|
|
1428
|
-
constructor(canvas: any, camera: any);
|
|
1429
|
-
canvas: any;
|
|
1430
|
-
camera: any;
|
|
1431
|
-
}
|
|
1432
|
-
/******************************************************************************
|
|
1433
|
-
* Spine Runtimes License Agreement
|
|
1434
|
-
* Last updated July 28, 2023. Replaces all prior versions.
|
|
1435
|
-
*
|
|
1436
|
-
* Copyright (c) 2013-2023, Esoteric Software LLC
|
|
1437
|
-
*
|
|
1438
|
-
* Integration of the Spine Runtimes into software or otherwise creating
|
|
1439
|
-
* derivative works of the Spine Runtimes is permitted under the terms and
|
|
1440
|
-
* conditions of Section 2 of the Spine Editor License Agreement:
|
|
1441
|
-
* http://esotericsoftware.com/spine-editor-license
|
|
1442
|
-
*
|
|
1443
|
-
* Otherwise, it is permitted to integrate the Spine Runtimes into software or
|
|
1444
|
-
* otherwise create derivative works of the Spine Runtimes (collectively,
|
|
1445
|
-
* "Products"), provided that each user of the Products must obtain their own
|
|
1446
|
-
* Spine Editor license and redistribution of the Products in any form must
|
|
1447
|
-
* include this license and copyright notice.
|
|
1448
|
-
*
|
|
1449
|
-
* THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
|
|
1450
|
-
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
1451
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
1452
|
-
* DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
|
|
1453
|
-
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
1454
|
-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
|
|
1455
|
-
* BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
|
|
1456
|
-
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
1457
|
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
|
|
1458
|
-
* SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1459
|
-
*****************************************************************************/
|
|
1460
|
-
/** An attachment with vertices that make up a polygon used for clipping the rendering of other attachments. */
|
|
1461
|
-
declare class ClippingAttachment extends VertexAttachment {
|
|
1462
|
-
/** Clipping is performed between the clipping polygon's slot and the end slot. Returns null if clipping is done until the end of
|
|
1463
|
-
* the skeleton's rendering. */
|
|
1464
|
-
endSlot: any;
|
|
1465
|
-
/** The color of the clipping polygon as it was in Spine. Available only when nonessential data was exported. Clipping polygons
|
|
1466
|
-
* are not usually rendered at runtime. */
|
|
1467
|
-
color: Color;
|
|
1468
|
-
copy(): ClippingAttachment;
|
|
1469
|
-
}
|
|
1470
|
-
declare class Color {
|
|
1471
|
-
static rgba8888ToColor(color: any, value: any): void;
|
|
1472
|
-
static rgb888ToColor(color: any, value: any): void;
|
|
1473
|
-
static fromString(hex: any): Color;
|
|
1474
|
-
constructor(r?: number, g?: number, b?: number, a?: number);
|
|
1475
|
-
r: number;
|
|
1476
|
-
g: number;
|
|
1477
|
-
b: number;
|
|
1478
|
-
a: number;
|
|
1479
|
-
set(r: any, g: any, b: any, a: any): this;
|
|
1480
|
-
setFromColor(c: any): this;
|
|
1481
|
-
setFromString(hex: any): this;
|
|
1482
|
-
add(r: any, g: any, b: any, a: any): this;
|
|
1483
|
-
clamp(): this;
|
|
1484
|
-
}
|
|
1485
|
-
declare namespace Color {
|
|
1486
|
-
let WHITE: Color;
|
|
1487
|
-
let RED: Color;
|
|
1488
|
-
let GREEN: Color;
|
|
1489
|
-
let BLUE: Color;
|
|
1490
|
-
let MAGENTA: Color;
|
|
1491
|
-
}
|
|
1492
|
-
declare class Color2Attribute extends VertexAttribute {
|
|
1493
|
-
constructor();
|
|
1494
|
-
}
|
|
1495
|
-
declare class ColorAttribute extends VertexAttribute {
|
|
1496
|
-
constructor();
|
|
1497
|
-
}
|
|
1498
|
-
/******************************************************************************
|
|
1499
|
-
* Spine Runtimes License Agreement
|
|
1500
|
-
* Last updated July 28, 2023. Replaces all prior versions.
|
|
1501
|
-
*
|
|
1502
|
-
* Copyright (c) 2013-2023, Esoteric Software LLC
|
|
1503
|
-
*
|
|
1504
|
-
* Integration of the Spine Runtimes into software or otherwise creating
|
|
1505
|
-
* derivative works of the Spine Runtimes is permitted under the terms and
|
|
1506
|
-
* conditions of Section 2 of the Spine Editor License Agreement:
|
|
1507
|
-
* http://esotericsoftware.com/spine-editor-license
|
|
1508
|
-
*
|
|
1509
|
-
* Otherwise, it is permitted to integrate the Spine Runtimes into software or
|
|
1510
|
-
* otherwise create derivative works of the Spine Runtimes (collectively,
|
|
1511
|
-
* "Products"), provided that each user of the Products must obtain their own
|
|
1512
|
-
* Spine Editor license and redistribution of the Products in any form must
|
|
1513
|
-
* include this license and copyright notice.
|
|
1514
|
-
*
|
|
1515
|
-
* THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
|
|
1516
|
-
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
1517
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
1518
|
-
* DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
|
|
1519
|
-
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
1520
|
-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
|
|
1521
|
-
* BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
|
|
1522
|
-
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
1523
|
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
|
|
1524
|
-
* SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1525
|
-
*****************************************************************************/
|
|
1526
|
-
/** The base class for all constraint datas. */
|
|
1527
|
-
declare class ConstraintData {
|
|
1528
|
-
constructor(name: any, order: any, skinRequired: any);
|
|
1529
|
-
name: any;
|
|
1530
|
-
order: any;
|
|
1531
|
-
skinRequired: any;
|
|
1532
|
-
}
|
|
1533
|
-
/** The base class for timelines that use interpolation between key frame values. */
|
|
1534
|
-
declare class CurveTimeline extends Timeline {
|
|
1535
|
-
constructor(frameCount: any, bezierCount: any, propertyIds: any);
|
|
1536
|
-
curves: any[] | Float32Array;
|
|
1537
|
-
/** Sets the specified key frame to linear interpolation. */
|
|
1538
|
-
setLinear(frame: any): void;
|
|
1539
|
-
/** Sets the specified key frame to stepped interpolation. */
|
|
1540
|
-
setStepped(frame: any): void;
|
|
1541
|
-
/** Shrinks the storage for Bezier curves, for use when <code>bezierCount</code> (specified in the constructor) was larger
|
|
1542
|
-
* than the actual number of Bezier curves. */
|
|
1543
|
-
shrink(bezierCount: any): void;
|
|
1544
|
-
/** Stores the segments for the specified Bezier curve. For timelines that modify multiple values, there may be more than
|
|
1545
|
-
* one curve per frame.
|
|
1546
|
-
* @param bezier The ordinal of this Bezier curve for this timeline, between 0 and <code>bezierCount - 1</code> (specified
|
|
1547
|
-
* in the constructor), inclusive.
|
|
1548
|
-
* @param frame Between 0 and <code>frameCount - 1</code>, inclusive.
|
|
1549
|
-
* @param value The index of the value for this frame that this curve is used for.
|
|
1550
|
-
* @param time1 The time for the first key.
|
|
1551
|
-
* @param value1 The value for the first key.
|
|
1552
|
-
* @param cx1 The time for the first Bezier handle.
|
|
1553
|
-
* @param cy1 The value for the first Bezier handle.
|
|
1554
|
-
* @param cx2 The time of the second Bezier handle.
|
|
1555
|
-
* @param cy2 The value for the second Bezier handle.
|
|
1556
|
-
* @param time2 The time for the second key.
|
|
1557
|
-
* @param value2 The value for the second key. */
|
|
1558
|
-
setBezier(bezier: any, frame: any, value: any, time1: any, value1: any, cx1: any, cy1: any, cx2: any, cy2: any, time2: any, value2: any): void;
|
|
1559
|
-
/** Returns the Bezier interpolated value for the specified time.
|
|
1560
|
-
* @param frameIndex The index into {@link #getFrames()} for the values of the frame before <code>time</code>.
|
|
1561
|
-
* @param valueOffset The offset from <code>frameIndex</code> to the value this curve is used for.
|
|
1562
|
-
* @param i The index of the Bezier segments. See {@link #getCurveType(int)}. */
|
|
1563
|
-
getBezierValue(time: any, frameIndex: any, valueOffset: any, i: any): any;
|
|
1564
|
-
}
|
|
1565
|
-
declare class CurveTimeline1 extends CurveTimeline {
|
|
1566
|
-
/** Sets the time and value for the specified frame.
|
|
1567
|
-
* @param frame Between 0 and <code>frameCount</code>, inclusive.
|
|
1568
|
-
* @param time The frame time in seconds. */
|
|
1569
|
-
setFrame(frame: any, time: any, value: any): void;
|
|
1570
|
-
/** Returns the interpolated value for the specified time. */
|
|
1571
|
-
getCurveValue(time: any): any;
|
|
1572
|
-
}
|
|
1573
|
-
/** The base class for a {@link CurveTimeline} which sets two properties. */
|
|
1574
|
-
declare class CurveTimeline2 extends CurveTimeline {
|
|
1575
|
-
/** @param bezierCount The maximum number of Bezier curves. See {@link #shrink(int)}.
|
|
1576
|
-
* @param propertyIds Unique identifiers for the properties the timeline modifies. */
|
|
1577
|
-
constructor(frameCount: any, bezierCount: any, propertyId1: any, propertyId2: any);
|
|
1578
|
-
/** Sets the time and values for the specified frame.
|
|
1579
|
-
* @param frame Between 0 and <code>frameCount</code>, inclusive.
|
|
1580
|
-
* @param time The frame time in seconds. */
|
|
1581
|
-
setFrame(frame: any, time: any, value1: any, value2: any): void;
|
|
1582
|
-
}
|
|
1583
|
-
declare class DebugUtils {
|
|
1584
|
-
static logBones(skeleton: any): void;
|
|
1585
|
-
}
|
|
1586
|
-
/** Changes a slot's {@link Slot#deform} to deform a {@link VertexAttachment}. */
|
|
1587
|
-
declare class DeformTimeline extends CurveTimeline {
|
|
1588
|
-
constructor(frameCount: any, bezierCount: any, slotIndex: any, attachment: any);
|
|
1589
|
-
slotIndex: any;
|
|
1590
|
-
attachment: any;
|
|
1591
|
-
vertices: any[];
|
|
1592
|
-
/** Sets the time in seconds and the vertices for the specified key frame.
|
|
1593
|
-
* @param vertices Vertex positions for an unweighted VertexAttachment, or deform offsets if it has weights. */
|
|
1594
|
-
setFrame(frame: any, time: any, vertices: any): void;
|
|
1595
|
-
getCurvePercent(time: any, frame: any): any;
|
|
1596
|
-
apply(skeleton: any, lastTime: any, time: any, firedEvents: any, alpha: any, blend: any, direction: any): void;
|
|
1597
|
-
}
|
|
1598
|
-
/** Changes a skeleton's {@link Skeleton#drawOrder}. */
|
|
1599
|
-
declare class DrawOrderTimeline extends Timeline {
|
|
1600
|
-
constructor(frameCount: any);
|
|
1601
|
-
drawOrders: any[];
|
|
1602
|
-
/** Sets the time in seconds and the draw order for the specified key frame.
|
|
1603
|
-
* @param drawOrder For each slot in {@link Skeleton#slots}, the index of the new draw order. May be null to use setup pose
|
|
1604
|
-
* draw order. */
|
|
1605
|
-
setFrame(frame: any, time: any, drawOrder: any): void;
|
|
1606
|
-
apply(skeleton: any, lastTime: any, time: any, firedEvents: any, alpha: any, blend: any, direction: any): void;
|
|
1607
|
-
}
|
|
1608
|
-
declare namespace DrawOrderTimeline {
|
|
1609
|
-
let propertyIds: string[];
|
|
1610
|
-
}
|
|
1611
|
-
/******************************************************************************
|
|
1612
|
-
* Spine Runtimes License Agreement
|
|
1613
|
-
* Last updated July 28, 2023. Replaces all prior versions.
|
|
1614
|
-
*
|
|
1615
|
-
* Copyright (c) 2013-2023, Esoteric Software LLC
|
|
1616
|
-
*
|
|
1617
|
-
* Integration of the Spine Runtimes into software or otherwise creating
|
|
1618
|
-
* derivative works of the Spine Runtimes is permitted under the terms and
|
|
1619
|
-
* conditions of Section 2 of the Spine Editor License Agreement:
|
|
1620
|
-
* http://esotericsoftware.com/spine-editor-license
|
|
1621
|
-
*
|
|
1622
|
-
* Otherwise, it is permitted to integrate the Spine Runtimes into software or
|
|
1623
|
-
* otherwise create derivative works of the Spine Runtimes (collectively,
|
|
1624
|
-
* "Products"), provided that each user of the Products must obtain their own
|
|
1625
|
-
* Spine Editor license and redistribution of the Products in any form must
|
|
1626
|
-
* include this license and copyright notice.
|
|
1627
|
-
*
|
|
1628
|
-
* THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
|
|
1629
|
-
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
1630
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
1631
|
-
* DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
|
|
1632
|
-
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
1633
|
-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
|
|
1634
|
-
* BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
|
|
1635
|
-
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
1636
|
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
|
|
1637
|
-
* SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1638
|
-
*****************************************************************************/
|
|
1639
|
-
/** Stores the current pose values for an {@link Event}.
|
|
1640
|
-
*
|
|
1641
|
-
* See Timeline {@link Timeline#apply()},
|
|
1642
|
-
* AnimationStateListener {@link AnimationStateListener#event()}, and
|
|
1643
|
-
* [Events](http://esotericsoftware.com/spine-events) in the Spine User Guide. */
|
|
1644
|
-
declare class Event {
|
|
1645
|
-
constructor(time: any, data: any);
|
|
1646
|
-
intValue: number;
|
|
1647
|
-
floatValue: number;
|
|
1648
|
-
stringValue: any;
|
|
1649
|
-
time: any;
|
|
1650
|
-
volume: number;
|
|
1651
|
-
balance: number;
|
|
1652
|
-
data: any;
|
|
1653
|
-
}
|
|
1654
|
-
/******************************************************************************
|
|
1655
|
-
* Spine Runtimes License Agreement
|
|
1656
|
-
* Last updated July 28, 2023. Replaces all prior versions.
|
|
1657
|
-
*
|
|
1658
|
-
* Copyright (c) 2013-2023, Esoteric Software LLC
|
|
1659
|
-
*
|
|
1660
|
-
* Integration of the Spine Runtimes into software or otherwise creating
|
|
1661
|
-
* derivative works of the Spine Runtimes is permitted under the terms and
|
|
1662
|
-
* conditions of Section 2 of the Spine Editor License Agreement:
|
|
1663
|
-
* http://esotericsoftware.com/spine-editor-license
|
|
1664
|
-
*
|
|
1665
|
-
* Otherwise, it is permitted to integrate the Spine Runtimes into software or
|
|
1666
|
-
* otherwise create derivative works of the Spine Runtimes (collectively,
|
|
1667
|
-
* "Products"), provided that each user of the Products must obtain their own
|
|
1668
|
-
* Spine Editor license and redistribution of the Products in any form must
|
|
1669
|
-
* include this license and copyright notice.
|
|
1670
|
-
*
|
|
1671
|
-
* THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
|
|
1672
|
-
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
1673
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
1674
|
-
* DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
|
|
1675
|
-
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
1676
|
-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
|
|
1677
|
-
* BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
|
|
1678
|
-
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
1679
|
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
|
|
1680
|
-
* SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1681
|
-
*****************************************************************************/
|
|
1682
|
-
/** Stores the setup pose values for an {@link Event}.
|
|
1683
|
-
*
|
|
1684
|
-
* See [Events](http://esotericsoftware.com/spine-events) in the Spine User Guide. */
|
|
1685
|
-
declare class EventData {
|
|
1686
|
-
constructor(name: any);
|
|
1687
|
-
intValue: number;
|
|
1688
|
-
floatValue: number;
|
|
1689
|
-
stringValue: any;
|
|
1690
|
-
audioPath: any;
|
|
1691
|
-
volume: number;
|
|
1692
|
-
balance: number;
|
|
1693
|
-
name: any;
|
|
1694
|
-
}
|
|
1695
|
-
declare class EventQueue {
|
|
1696
|
-
constructor(animState: any);
|
|
1697
|
-
objects: any[];
|
|
1698
|
-
drainDisabled: boolean;
|
|
1699
|
-
animState: any;
|
|
1700
|
-
start(entry: any): void;
|
|
1701
|
-
interrupt(entry: any): void;
|
|
1702
|
-
end(entry: any): void;
|
|
1703
|
-
dispose(entry: any): void;
|
|
1704
|
-
complete(entry: any): void;
|
|
1705
|
-
event(entry: any, event: any): void;
|
|
1706
|
-
drain(): void;
|
|
1707
|
-
clear(): void;
|
|
1708
|
-
}
|
|
1709
|
-
/** Fires an {@link Event} when specific animation times are reached. */
|
|
1710
|
-
declare class EventTimeline extends Timeline {
|
|
1711
|
-
constructor(frameCount: any);
|
|
1712
|
-
events: any[];
|
|
1713
|
-
/** Sets the time in seconds and the event for the specified key frame. */
|
|
1714
|
-
setFrame(frame: any, event: any): void;
|
|
1715
|
-
/** Fires events for frames > `lastTime` and <= `time`. */
|
|
1716
|
-
apply(skeleton: any, lastTime: any, time: any, firedEvents: any, alpha: any, blend: any, direction: any): void;
|
|
1717
|
-
}
|
|
1718
|
-
declare namespace EventTimeline {
|
|
1719
|
-
let propertyIds_1: string[];
|
|
1720
|
-
export { propertyIds_1 as propertyIds };
|
|
1721
|
-
}
|
|
1722
|
-
declare class FakeTexture extends Texture {
|
|
1723
|
-
setFilters(minFilter: any, magFilter: any): void;
|
|
1724
|
-
setWraps(uWrap: any, vWrap: any): void;
|
|
1725
|
-
dispose(): void;
|
|
1726
|
-
}
|
|
1727
|
-
/******************************************************************************
|
|
1728
|
-
* Spine Runtimes License Agreement
|
|
1729
|
-
* Last updated July 28, 2023. Replaces all prior versions.
|
|
1730
|
-
*
|
|
1731
|
-
* Copyright (c) 2013-2023, Esoteric Software LLC
|
|
1732
|
-
*
|
|
1733
|
-
* Integration of the Spine Runtimes into software or otherwise creating
|
|
1734
|
-
* derivative works of the Spine Runtimes is permitted under the terms and
|
|
1735
|
-
* conditions of Section 2 of the Spine Editor License Agreement:
|
|
1736
|
-
* http://esotericsoftware.com/spine-editor-license
|
|
1737
|
-
*
|
|
1738
|
-
* Otherwise, it is permitted to integrate the Spine Runtimes into software or
|
|
1739
|
-
* otherwise create derivative works of the Spine Runtimes (collectively,
|
|
1740
|
-
* "Products"), provided that each user of the Products must obtain their own
|
|
1741
|
-
* Spine Editor license and redistribution of the Products in any form must
|
|
1742
|
-
* include this license and copyright notice.
|
|
1743
|
-
*
|
|
1744
|
-
* THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
|
|
1745
|
-
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
1746
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
1747
|
-
* DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
|
|
1748
|
-
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
1749
|
-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
|
|
1750
|
-
* BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
|
|
1751
|
-
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
1752
|
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
|
|
1753
|
-
* SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1754
|
-
*****************************************************************************/
|
|
1755
|
-
declare class GLTexture extends Texture {
|
|
1756
|
-
static validateMagFilter(magFilter: any): any;
|
|
1757
|
-
static usesMipMaps(filter: any): boolean;
|
|
1758
|
-
constructor(context: any, image: any, useMipMaps?: boolean);
|
|
1759
|
-
texture: any;
|
|
1760
|
-
boundUnit: number;
|
|
1761
|
-
useMipMaps: boolean;
|
|
1762
|
-
context: ManagedWebGLRenderingContext;
|
|
1763
|
-
setFilters(minFilter: any, magFilter: any): void;
|
|
1764
|
-
setWraps(uWrap: any, vWrap: any): void;
|
|
1765
|
-
update(useMipMaps: any): void;
|
|
1766
|
-
restore(): void;
|
|
1767
|
-
bind(unit?: number): void;
|
|
1768
|
-
unbind(): void;
|
|
1769
|
-
dispose(): void;
|
|
1770
|
-
}
|
|
1771
|
-
declare namespace GLTexture {
|
|
1772
|
-
let DISABLE_UNPACK_PREMULTIPLIED_ALPHA_WEBGL: boolean;
|
|
1773
|
-
}
|
|
1774
|
-
/******************************************************************************
|
|
1775
|
-
* Spine Runtimes License Agreement
|
|
1776
|
-
* Last updated July 28, 2023. Replaces all prior versions.
|
|
1777
|
-
*
|
|
1778
|
-
* Copyright (c) 2013-2023, Esoteric Software LLC
|
|
1779
|
-
*
|
|
1780
|
-
* Integration of the Spine Runtimes into software or otherwise creating
|
|
1781
|
-
* derivative works of the Spine Runtimes is permitted under the terms and
|
|
1782
|
-
* conditions of Section 2 of the Spine Editor License Agreement:
|
|
1783
|
-
* http://esotericsoftware.com/spine-editor-license
|
|
1784
|
-
*
|
|
1785
|
-
* Otherwise, it is permitted to integrate the Spine Runtimes into software or
|
|
1786
|
-
* otherwise create derivative works of the Spine Runtimes (collectively,
|
|
1787
|
-
* "Products"), provided that each user of the Products must obtain their own
|
|
1788
|
-
* Spine Editor license and redistribution of the Products in any form must
|
|
1789
|
-
* include this license and copyright notice.
|
|
1790
|
-
*
|
|
1791
|
-
* THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
|
|
1792
|
-
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
1793
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
1794
|
-
* DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
|
|
1795
|
-
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
1796
|
-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
|
|
1797
|
-
* BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
|
|
1798
|
-
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
1799
|
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
|
|
1800
|
-
* SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1801
|
-
*****************************************************************************/
|
|
1802
|
-
/** Stores the current pose for an IK constraint. An IK constraint adjusts the rotation of 1 or 2 constrained bones so the tip of
|
|
1803
|
-
* the last bone is as close to the target bone as possible.
|
|
1804
|
-
*
|
|
1805
|
-
* See [IK constraints](http://esotericsoftware.com/spine-ik-constraints) in the Spine User Guide. */
|
|
1806
|
-
declare class IkConstraint {
|
|
1807
|
-
constructor(data: any, skeleton: any);
|
|
1808
|
-
/** Controls the bend direction of the IK bones, either 1 or -1. */
|
|
1809
|
-
bendDirection: any;
|
|
1810
|
-
/** When true and only a single bone is being constrained, if the target is too close, the bone is scaled to reach it. */
|
|
1811
|
-
compress: any;
|
|
1812
|
-
/** When true, if the target is out of range, the parent bone is scaled to reach it. If more than one bone is being constrained
|
|
1813
|
-
* and the parent bone has local nonuniform scale, stretch is not applied. */
|
|
1814
|
-
stretch: any;
|
|
1815
|
-
/** A percentage (0-1) that controls the mix between the constrained and unconstrained rotations. */
|
|
1816
|
-
mix: any;
|
|
1817
|
-
/** For two bone IK, the distance from the maximum reach of the bones that rotation will slow. */
|
|
1818
|
-
softness: any;
|
|
1819
|
-
active: boolean;
|
|
1820
|
-
data: any;
|
|
1821
|
-
bones: any[];
|
|
1822
|
-
target: any;
|
|
1823
|
-
isActive(): boolean;
|
|
1824
|
-
update(): void;
|
|
1825
|
-
/** Applies 1 bone IK. The target is specified in the world coordinate system. */
|
|
1826
|
-
apply1(bone: any, targetX: any, targetY: any, compress: any, stretch: any, uniform: any, alpha: any): void;
|
|
1827
|
-
/** Applies 2 bone IK. The target is specified in the world coordinate system.
|
|
1828
|
-
* @param child A direct descendant of the parent bone. */
|
|
1829
|
-
apply2(parent: any, child: any, targetX: any, targetY: any, bendDir: any, stretch: any, uniform: any, softness: any, alpha: any): void;
|
|
1830
|
-
}
|
|
1831
|
-
/******************************************************************************
|
|
1832
|
-
* Spine Runtimes License Agreement
|
|
1833
|
-
* Last updated July 28, 2023. Replaces all prior versions.
|
|
1834
|
-
*
|
|
1835
|
-
* Copyright (c) 2013-2023, Esoteric Software LLC
|
|
1836
|
-
*
|
|
1837
|
-
* Integration of the Spine Runtimes into software or otherwise creating
|
|
1838
|
-
* derivative works of the Spine Runtimes is permitted under the terms and
|
|
1839
|
-
* conditions of Section 2 of the Spine Editor License Agreement:
|
|
1840
|
-
* http://esotericsoftware.com/spine-editor-license
|
|
1841
|
-
*
|
|
1842
|
-
* Otherwise, it is permitted to integrate the Spine Runtimes into software or
|
|
1843
|
-
* otherwise create derivative works of the Spine Runtimes (collectively,
|
|
1844
|
-
* "Products"), provided that each user of the Products must obtain their own
|
|
1845
|
-
* Spine Editor license and redistribution of the Products in any form must
|
|
1846
|
-
* include this license and copyright notice.
|
|
1847
|
-
*
|
|
1848
|
-
* THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
|
|
1849
|
-
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
1850
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
1851
|
-
* DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
|
|
1852
|
-
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
1853
|
-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
|
|
1854
|
-
* BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
|
|
1855
|
-
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
1856
|
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
|
|
1857
|
-
* SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1858
|
-
*****************************************************************************/
|
|
1859
|
-
/** Stores the setup pose for an {@link IkConstraint}.
|
|
1860
|
-
* <p>
|
|
1861
|
-
* See [IK constraints](http://esotericsoftware.com/spine-ik-constraints) in the Spine User Guide. */
|
|
1862
|
-
declare class IkConstraintData extends ConstraintData {
|
|
1863
|
-
constructor(name: any);
|
|
1864
|
-
set target(arg: any);
|
|
1865
|
-
get target(): any;
|
|
1866
|
-
_target: any;
|
|
1867
|
-
/** The bones that are constrained by this IK constraint. */
|
|
1868
|
-
bones: any[];
|
|
1869
|
-
/** Controls the bend direction of the IK bones, either 1 or -1. */
|
|
1870
|
-
bendDirection: number;
|
|
1871
|
-
/** When true and only a single bone is being constrained, if the target is too close, the bone is scaled to reach it. */
|
|
1872
|
-
compress: boolean;
|
|
1873
|
-
/** When true, if the target is out of range, the parent bone is scaled to reach it. If more than one bone is being constrained
|
|
1874
|
-
* and the parent bone has local nonuniform scale, stretch is not applied. */
|
|
1875
|
-
stretch: boolean;
|
|
1876
|
-
/** When true, only a single bone is being constrained, and {@link #getCompress()} or {@link #getStretch()} is used, the bone
|
|
1877
|
-
* is scaled on both the X and Y axes. */
|
|
1878
|
-
uniform: boolean;
|
|
1879
|
-
/** A percentage (0-1) that controls the mix between the constrained and unconstrained rotations. */
|
|
1880
|
-
mix: number;
|
|
1881
|
-
/** For two bone IK, the distance from the maximum reach of the bones that rotation will slow. */
|
|
1882
|
-
softness: number;
|
|
1883
|
-
}
|
|
1884
|
-
/** Changes an IK constraint's {@link IkConstraint#mix}, {@link IkConstraint#softness},
|
|
1885
|
-
* {@link IkConstraint#bendDirection}, {@link IkConstraint#stretch}, and {@link IkConstraint#compress}. */
|
|
1886
|
-
declare class IkConstraintTimeline extends CurveTimeline {
|
|
1887
|
-
/** The index of the IK constraint slot in {@link Skeleton#ikConstraints} that will be changed. */
|
|
1888
|
-
ikConstraintIndex: any;
|
|
1889
|
-
/** Sets the time in seconds, mix, softness, bend direction, compress, and stretch for the specified key frame. */
|
|
1890
|
-
setFrame(frame: any, time: any, mix: any, softness: any, bendDirection: any, compress: any, stretch: any): void;
|
|
1891
|
-
apply(skeleton: any, lastTime: any, time: any, firedEvents: any, alpha: any, blend: any, direction: any): void;
|
|
1892
|
-
}
|
|
1893
|
-
/******************************************************************************
|
|
1894
|
-
* Spine Runtimes License Agreement
|
|
1895
|
-
* Last updated July 28, 2023. Replaces all prior versions.
|
|
1896
|
-
*
|
|
1897
|
-
* Copyright (c) 2013-2023, Esoteric Software LLC
|
|
1898
|
-
*
|
|
1899
|
-
* Integration of the Spine Runtimes into software or otherwise creating
|
|
1900
|
-
* derivative works of the Spine Runtimes is permitted under the terms and
|
|
1901
|
-
* conditions of Section 2 of the Spine Editor License Agreement:
|
|
1902
|
-
* http://esotericsoftware.com/spine-editor-license
|
|
1903
|
-
*
|
|
1904
|
-
* Otherwise, it is permitted to integrate the Spine Runtimes into software or
|
|
1905
|
-
* otherwise create derivative works of the Spine Runtimes (collectively,
|
|
1906
|
-
* "Products"), provided that each user of the Products must obtain their own
|
|
1907
|
-
* Spine Editor license and redistribution of the Products in any form must
|
|
1908
|
-
* include this license and copyright notice.
|
|
1909
|
-
*
|
|
1910
|
-
* THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
|
|
1911
|
-
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
1912
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
1913
|
-
* DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
|
|
1914
|
-
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
1915
|
-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
|
|
1916
|
-
* BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
|
|
1917
|
-
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
1918
|
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
|
|
1919
|
-
* SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1920
|
-
*****************************************************************************/
|
|
1921
|
-
declare class Input {
|
|
1922
|
-
constructor(element: any);
|
|
1923
|
-
mouseX: number;
|
|
1924
|
-
mouseY: number;
|
|
1925
|
-
buttonDown: boolean;
|
|
1926
|
-
touch0: Touch | null;
|
|
1927
|
-
touch1: Touch | null;
|
|
1928
|
-
initialPinchDistance: number;
|
|
1929
|
-
listeners: any[];
|
|
1930
|
-
eventListeners: any[];
|
|
1931
|
-
element: any;
|
|
1932
|
-
setupCallbacks(element: any): void;
|
|
1933
|
-
addListener(listener: any): void;
|
|
1934
|
-
removeListener(listener: any): void;
|
|
1935
|
-
}
|
|
1936
|
-
/******************************************************************************
|
|
1937
|
-
* Spine Runtimes License Agreement
|
|
1938
|
-
* Last updated July 28, 2023. Replaces all prior versions.
|
|
1939
|
-
*
|
|
1940
|
-
* Copyright (c) 2013-2023, Esoteric Software LLC
|
|
1941
|
-
*
|
|
1942
|
-
* Integration of the Spine Runtimes into software or otherwise creating
|
|
1943
|
-
* derivative works of the Spine Runtimes is permitted under the terms and
|
|
1944
|
-
* conditions of Section 2 of the Spine Editor License Agreement:
|
|
1945
|
-
* http://esotericsoftware.com/spine-editor-license
|
|
1946
|
-
*
|
|
1947
|
-
* Otherwise, it is permitted to integrate the Spine Runtimes into software or
|
|
1948
|
-
* otherwise create derivative works of the Spine Runtimes (collectively,
|
|
1949
|
-
* "Products"), provided that each user of the Products must obtain their own
|
|
1950
|
-
* Spine Editor license and redistribution of the Products in any form must
|
|
1951
|
-
* include this license and copyright notice.
|
|
1952
|
-
*
|
|
1953
|
-
* THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
|
|
1954
|
-
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
1955
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
1956
|
-
* DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
|
|
1957
|
-
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
1958
|
-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
|
|
1959
|
-
* BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
|
|
1960
|
-
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
1961
|
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
|
|
1962
|
-
* SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1963
|
-
*****************************************************************************/
|
|
1964
|
-
declare class IntSet {
|
|
1965
|
-
array: any[];
|
|
1966
|
-
add(value: any): boolean;
|
|
1967
|
-
contains(value: any): boolean;
|
|
1968
|
-
remove(value: any): void;
|
|
1969
|
-
clear(): void;
|
|
1970
|
-
}
|
|
1971
|
-
declare class Interpolation {
|
|
1972
|
-
apply(start: any, end: any, a: any): any;
|
|
1973
|
-
}
|
|
1974
|
-
declare class LoadingScreen {
|
|
1975
|
-
constructor(renderer: any);
|
|
1976
|
-
logo: GLTexture | null;
|
|
1977
|
-
spinner: GLTexture | null;
|
|
1978
|
-
angle: number;
|
|
1979
|
-
fadeOut: number;
|
|
1980
|
-
fadeIn: number;
|
|
1981
|
-
timeKeeper: TimeKeeper;
|
|
1982
|
-
backgroundColor: Color;
|
|
1983
|
-
tempColor: Color;
|
|
1984
|
-
renderer: any;
|
|
1985
|
-
dispose(): void;
|
|
1986
|
-
draw(complete?: boolean): void;
|
|
1987
|
-
}
|
|
1988
|
-
/******************************************************************************
|
|
1989
|
-
* Spine Runtimes License Agreement
|
|
1990
|
-
* Last updated July 28, 2023. Replaces all prior versions.
|
|
1991
|
-
*
|
|
1992
|
-
* Copyright (c) 2013-2023, Esoteric Software LLC
|
|
1993
|
-
*
|
|
1994
|
-
* Integration of the Spine Runtimes into software or otherwise creating
|
|
1995
|
-
* derivative works of the Spine Runtimes is permitted under the terms and
|
|
1996
|
-
* conditions of Section 2 of the Spine Editor License Agreement:
|
|
1997
|
-
* http://esotericsoftware.com/spine-editor-license
|
|
1998
|
-
*
|
|
1999
|
-
* Otherwise, it is permitted to integrate the Spine Runtimes into software or
|
|
2000
|
-
* otherwise create derivative works of the Spine Runtimes (collectively,
|
|
2001
|
-
* "Products"), provided that each user of the Products must obtain their own
|
|
2002
|
-
* Spine Editor license and redistribution of the Products in any form must
|
|
2003
|
-
* include this license and copyright notice.
|
|
2004
|
-
*
|
|
2005
|
-
* THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
|
|
2006
|
-
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
2007
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
2008
|
-
* DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
|
|
2009
|
-
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
2010
|
-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
|
|
2011
|
-
* BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
|
|
2012
|
-
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
2013
|
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
|
|
2014
|
-
* SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
2015
|
-
*****************************************************************************/
|
|
2016
|
-
/******************************************************************************
|
|
2017
|
-
* Spine Runtimes License Agreement
|
|
2018
|
-
* Last updated July 28, 2023. Replaces all prior versions.
|
|
2019
|
-
*
|
|
2020
|
-
* Copyright (c) 2013-2023, Esoteric Software LLC
|
|
2021
|
-
*
|
|
2022
|
-
* Integration of the Spine Runtimes into software or otherwise creating
|
|
2023
|
-
* derivative works of the Spine Runtimes is permitted under the terms and
|
|
2024
|
-
* conditions of Section 2 of the Spine Editor License Agreement:
|
|
2025
|
-
* http://esotericsoftware.com/spine-editor-license
|
|
2026
|
-
*
|
|
2027
|
-
* Otherwise, it is permitted to integrate the Spine Runtimes into software or
|
|
2028
|
-
* otherwise create derivative works of the Spine Runtimes (collectively,
|
|
2029
|
-
* "Products"), provided that each user of the Products must obtain their own
|
|
2030
|
-
* Spine Editor license and redistribution of the Products in any form must
|
|
2031
|
-
* include this license and copyright notice.
|
|
2032
|
-
*
|
|
2033
|
-
* THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
|
|
2034
|
-
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
2035
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
2036
|
-
* DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
|
|
2037
|
-
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
2038
|
-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
|
|
2039
|
-
* BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
|
|
2040
|
-
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
2041
|
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
|
|
2042
|
-
* SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
2043
|
-
*****************************************************************************/
|
|
2044
|
-
declare class ManagedWebGLRenderingContext {
|
|
2045
|
-
constructor(canvasOrContext: any, contextConfig?: {
|
|
2046
|
-
alpha: string;
|
|
2047
|
-
});
|
|
2048
|
-
restorables: any[];
|
|
2049
|
-
gl: any;
|
|
2050
|
-
canvas: any;
|
|
2051
|
-
addRestorable(restorable: any): void;
|
|
2052
|
-
removeRestorable(restorable: any): void;
|
|
2053
|
-
}
|
|
2054
|
-
declare class MathUtils {
|
|
2055
|
-
static clamp(value: any, min: any, max: any): any;
|
|
2056
|
-
static cosDeg(degrees: any): number;
|
|
2057
|
-
static sinDeg(degrees: any): number;
|
|
2058
|
-
static signum(value: any): 0 | 1 | -1;
|
|
2059
|
-
static toInt(x: any): number;
|
|
2060
|
-
static cbrt(x: any): number;
|
|
2061
|
-
static randomTriangular(min: any, max: any): any;
|
|
2062
|
-
static randomTriangularWith(min: any, max: any, mode: any): any;
|
|
2063
|
-
static isPowerOfTwo(value: any): any;
|
|
2064
|
-
}
|
|
2065
|
-
declare namespace MathUtils {
|
|
2066
|
-
export let PI: number;
|
|
2067
|
-
export let PI2: number;
|
|
2068
|
-
export let radiansToDegrees: number;
|
|
2069
|
-
import radDeg = radiansToDegrees;
|
|
2070
|
-
export { radDeg };
|
|
2071
|
-
export let degreesToRadians: number;
|
|
2072
|
-
import degRad = degreesToRadians;
|
|
2073
|
-
export { degRad };
|
|
2074
|
-
}
|
|
2075
|
-
declare class Matrix4 {
|
|
2076
|
-
temp: Float32Array;
|
|
2077
|
-
values: Float32Array;
|
|
2078
|
-
set(values: any): this;
|
|
2079
|
-
transpose(): this;
|
|
2080
|
-
identity(): this;
|
|
2081
|
-
invert(): this;
|
|
2082
|
-
determinant(): number;
|
|
2083
|
-
translate(x: any, y: any, z: any): this;
|
|
2084
|
-
copy(): Matrix4;
|
|
2085
|
-
projection(near: any, far: any, fovy: any, aspectRatio: any): this;
|
|
2086
|
-
ortho2d(x: any, y: any, width: any, height: any): this;
|
|
2087
|
-
ortho(left: any, right: any, bottom: any, top: any, near: any, far: any): this;
|
|
2088
|
-
multiply(matrix: any): this;
|
|
2089
|
-
multiplyLeft(matrix: any): this;
|
|
2090
|
-
lookAt(position: any, direction: any, up: any): this;
|
|
2091
|
-
}
|
|
2092
|
-
declare namespace Matrix4 {
|
|
2093
|
-
let xAxis: Vector3;
|
|
2094
|
-
let yAxis: Vector3;
|
|
2095
|
-
let zAxis: Vector3;
|
|
2096
|
-
let tmpMatrix: Matrix4;
|
|
2097
|
-
}
|
|
2098
|
-
/******************************************************************************
|
|
2099
|
-
* Spine Runtimes License Agreement
|
|
2100
|
-
* Last updated July 28, 2023. Replaces all prior versions.
|
|
2101
|
-
*
|
|
2102
|
-
* Copyright (c) 2013-2023, Esoteric Software LLC
|
|
2103
|
-
*
|
|
2104
|
-
* Integration of the Spine Runtimes into software or otherwise creating
|
|
2105
|
-
* derivative works of the Spine Runtimes is permitted under the terms and
|
|
2106
|
-
* conditions of Section 2 of the Spine Editor License Agreement:
|
|
2107
|
-
* http://esotericsoftware.com/spine-editor-license
|
|
2108
|
-
*
|
|
2109
|
-
* Otherwise, it is permitted to integrate the Spine Runtimes into software or
|
|
2110
|
-
* otherwise create derivative works of the Spine Runtimes (collectively,
|
|
2111
|
-
* "Products"), provided that each user of the Products must obtain their own
|
|
2112
|
-
* Spine Editor license and redistribution of the Products in any form must
|
|
2113
|
-
* include this license and copyright notice.
|
|
2114
|
-
*
|
|
2115
|
-
* THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
|
|
2116
|
-
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
2117
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
2118
|
-
* DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
|
|
2119
|
-
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
2120
|
-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
|
|
2121
|
-
* BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
|
|
2122
|
-
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
2123
|
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
|
|
2124
|
-
* SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
2125
|
-
*****************************************************************************/
|
|
2126
|
-
declare class Mesh {
|
|
2127
|
-
constructor(context: any, attributes: any, maxVertices: any, maxIndices: any);
|
|
2128
|
-
getAttributes(): any;
|
|
2129
|
-
maxVertices(): number;
|
|
2130
|
-
numVertices(): number;
|
|
2131
|
-
setVerticesLength(length: any): void;
|
|
2132
|
-
dirtyVertices: boolean;
|
|
2133
|
-
verticesLength: number;
|
|
2134
|
-
getVertices(): Float32Array;
|
|
2135
|
-
maxIndices(): number;
|
|
2136
|
-
numIndices(): number;
|
|
2137
|
-
setIndicesLength(length: any): void;
|
|
2138
|
-
dirtyIndices: boolean;
|
|
2139
|
-
indicesLength: number;
|
|
2140
|
-
getIndices(): Uint16Array;
|
|
2141
|
-
getVertexSizeInFloats(): number;
|
|
2142
|
-
attributes: any;
|
|
2143
|
-
verticesBuffer: any;
|
|
2144
|
-
indicesBuffer: any;
|
|
2145
|
-
elementsPerVertex: number;
|
|
2146
|
-
context: ManagedWebGLRenderingContext;
|
|
2147
|
-
vertices: Float32Array;
|
|
2148
|
-
indices: Uint16Array;
|
|
2149
|
-
setVertices(vertices: any): void;
|
|
2150
|
-
setIndices(indices: any): void;
|
|
2151
|
-
draw(shader: any, primitiveType: any): void;
|
|
2152
|
-
drawWithOffset(shader: any, primitiveType: any, offset: any, count: any): void;
|
|
2153
|
-
bind(shader: any): void;
|
|
2154
|
-
unbind(shader: any): void;
|
|
2155
|
-
update(): void;
|
|
2156
|
-
restore(): void;
|
|
2157
|
-
dispose(): void;
|
|
2158
|
-
}
|
|
2159
|
-
/******************************************************************************
|
|
2160
|
-
* Spine Runtimes License Agreement
|
|
2161
|
-
* Last updated July 28, 2023. Replaces all prior versions.
|
|
2162
|
-
*
|
|
2163
|
-
* Copyright (c) 2013-2023, Esoteric Software LLC
|
|
2164
|
-
*
|
|
2165
|
-
* Integration of the Spine Runtimes into software or otherwise creating
|
|
2166
|
-
* derivative works of the Spine Runtimes is permitted under the terms and
|
|
2167
|
-
* conditions of Section 2 of the Spine Editor License Agreement:
|
|
2168
|
-
* http://esotericsoftware.com/spine-editor-license
|
|
2169
|
-
*
|
|
2170
|
-
* Otherwise, it is permitted to integrate the Spine Runtimes into software or
|
|
2171
|
-
* otherwise create derivative works of the Spine Runtimes (collectively,
|
|
2172
|
-
* "Products"), provided that each user of the Products must obtain their own
|
|
2173
|
-
* Spine Editor license and redistribution of the Products in any form must
|
|
2174
|
-
* include this license and copyright notice.
|
|
2175
|
-
*
|
|
2176
|
-
* THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
|
|
2177
|
-
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
2178
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
2179
|
-
* DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
|
|
2180
|
-
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
2181
|
-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
|
|
2182
|
-
* BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
|
|
2183
|
-
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
2184
|
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
|
|
2185
|
-
* SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
2186
|
-
*****************************************************************************/
|
|
2187
|
-
/** An attachment that displays a textured mesh. A mesh has hull vertices and internal vertices within the hull. Holes are not
|
|
2188
|
-
* supported. Each vertex has UVs (texture coordinates) and triangles are used to map an image on to the mesh.
|
|
2189
|
-
*
|
|
2190
|
-
* See [Mesh attachments](http://esotericsoftware.com/spine-meshes) in the Spine User Guide. */
|
|
2191
|
-
declare class MeshAttachment extends VertexAttachment {
|
|
2192
|
-
constructor(name: any, path: any);
|
|
2193
|
-
region: any;
|
|
2194
|
-
/** The UV pair for each vertex, normalized within the texture region. */
|
|
2195
|
-
regionUVs: any[];
|
|
2196
|
-
/** The UV pair for each vertex, normalized within the entire texture.
|
|
2197
|
-
*
|
|
2198
|
-
* See {@link #updateUVs}. */
|
|
2199
|
-
uvs: any[];
|
|
2200
|
-
/** Triplets of vertex indices which describe the mesh's triangulation. */
|
|
2201
|
-
triangles: any[];
|
|
2202
|
-
/** The color to tint the mesh. */
|
|
2203
|
-
color: Color;
|
|
2204
|
-
/** The width of the mesh's image. Available only when nonessential data was exported. */
|
|
2205
|
-
width: number;
|
|
2206
|
-
/** The height of the mesh's image. Available only when nonessential data was exported. */
|
|
2207
|
-
height: number;
|
|
2208
|
-
/** The number of entries at the beginning of {@link #vertices} that make up the mesh hull. */
|
|
2209
|
-
hullLength: number;
|
|
2210
|
-
/** Vertex index pairs describing edges for controling triangulation. Mesh triangles will never cross edges. Only available if
|
|
2211
|
-
* nonessential data was exported. Triangulation is not performed at runtime. */
|
|
2212
|
-
edges: any[];
|
|
2213
|
-
parentMesh: any;
|
|
2214
|
-
sequence: any;
|
|
2215
|
-
tempColor: Color;
|
|
2216
|
-
path: any;
|
|
2217
|
-
/** Calculates {@link #uvs} using the {@link #regionUVs} and region. Must be called if the region, the region's properties, or
|
|
2218
|
-
* the {@link #regionUVs} are changed. */
|
|
2219
|
-
updateRegion(): void;
|
|
2220
|
-
/** The parent mesh if this is a linked mesh, else null. A linked mesh shares the {@link #bones}, {@link #vertices},
|
|
2221
|
-
* {@link #regionUVs}, {@link #triangles}, {@link #hullLength}, {@link #edges}, {@link #width}, and {@link #height} with the
|
|
2222
|
-
* parent mesh, but may have a different {@link #name} or {@link #path} (and therefore a different texture). */
|
|
2223
|
-
getParentMesh(): any;
|
|
2224
|
-
/** @param parentMesh May be null. */
|
|
2225
|
-
setParentMesh(parentMesh: any): void;
|
|
2226
|
-
copy(): MeshAttachment;
|
|
2227
|
-
computeWorldVertices(slot: any, start: any, count: any, worldVertices: any, offset: any, stride: any): void;
|
|
2228
|
-
/** Returns a new mesh with the {@link #parentMesh} set to this mesh's parent mesh, if any, else to this mesh. **/
|
|
2229
|
-
newLinkedMesh(): MeshAttachment;
|
|
2230
|
-
}
|
|
2231
|
-
/******************************************************************************
|
|
2232
|
-
* Spine Runtimes License Agreement
|
|
2233
|
-
* Last updated July 28, 2023. Replaces all prior versions.
|
|
2234
|
-
*
|
|
2235
|
-
* Copyright (c) 2013-2023, Esoteric Software LLC
|
|
2236
|
-
*
|
|
2237
|
-
* Integration of the Spine Runtimes into software or otherwise creating
|
|
2238
|
-
* derivative works of the Spine Runtimes is permitted under the terms and
|
|
2239
|
-
* conditions of Section 2 of the Spine Editor License Agreement:
|
|
2240
|
-
* http://esotericsoftware.com/spine-editor-license
|
|
2241
|
-
*
|
|
2242
|
-
* Otherwise, it is permitted to integrate the Spine Runtimes into software or
|
|
2243
|
-
* otherwise create derivative works of the Spine Runtimes (collectively,
|
|
2244
|
-
* "Products"), provided that each user of the Products must obtain their own
|
|
2245
|
-
* Spine Editor license and redistribution of the Products in any form must
|
|
2246
|
-
* include this license and copyright notice.
|
|
2247
|
-
*
|
|
2248
|
-
* THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
|
|
2249
|
-
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
2250
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
2251
|
-
* DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
|
|
2252
|
-
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
2253
|
-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
|
|
2254
|
-
* BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
|
|
2255
|
-
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
2256
|
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
|
|
2257
|
-
* SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
2258
|
-
*****************************************************************************/
|
|
2259
|
-
declare class OrthoCamera {
|
|
2260
|
-
constructor(viewportWidth: any, viewportHeight: any);
|
|
2261
|
-
position: Vector3;
|
|
2262
|
-
direction: Vector3;
|
|
2263
|
-
up: Vector3;
|
|
2264
|
-
near: number;
|
|
2265
|
-
far: number;
|
|
2266
|
-
zoom: number;
|
|
2267
|
-
viewportWidth: any;
|
|
2268
|
-
viewportHeight: any;
|
|
2269
|
-
projectionView: Matrix4;
|
|
2270
|
-
inverseProjectionView: Matrix4;
|
|
2271
|
-
projection: Matrix4;
|
|
2272
|
-
view: Matrix4;
|
|
2273
|
-
update(): void;
|
|
2274
|
-
screenToWorld(screenCoords: any, screenWidth: any, screenHeight: any): any;
|
|
2275
|
-
worldToScreen(worldCoords: any, screenWidth: any, screenHeight: any): any;
|
|
2276
|
-
setViewport(viewportWidth: any, viewportHeight: any): void;
|
|
2277
|
-
}
|
|
2278
|
-
/******************************************************************************
|
|
2279
|
-
* Spine Runtimes License Agreement
|
|
2280
|
-
* Last updated July 28, 2023. Replaces all prior versions.
|
|
2281
|
-
*
|
|
2282
|
-
* Copyright (c) 2013-2023, Esoteric Software LLC
|
|
2283
|
-
*
|
|
2284
|
-
* Integration of the Spine Runtimes into software or otherwise creating
|
|
2285
|
-
* derivative works of the Spine Runtimes is permitted under the terms and
|
|
2286
|
-
* conditions of Section 2 of the Spine Editor License Agreement:
|
|
2287
|
-
* http://esotericsoftware.com/spine-editor-license
|
|
2288
|
-
*
|
|
2289
|
-
* Otherwise, it is permitted to integrate the Spine Runtimes into software or
|
|
2290
|
-
* otherwise create derivative works of the Spine Runtimes (collectively,
|
|
2291
|
-
* "Products"), provided that each user of the Products must obtain their own
|
|
2292
|
-
* Spine Editor license and redistribution of the Products in any form must
|
|
2293
|
-
* include this license and copyright notice.
|
|
2294
|
-
*
|
|
2295
|
-
* THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
|
|
2296
|
-
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
2297
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
2298
|
-
* DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
|
|
2299
|
-
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
2300
|
-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
|
|
2301
|
-
* BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
|
|
2302
|
-
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
2303
|
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
|
|
2304
|
-
* SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
2305
|
-
*****************************************************************************/
|
|
2306
|
-
/** An attachment whose vertices make up a composite Bezier curve.
|
|
2307
|
-
*
|
|
2308
|
-
* See {@link PathConstraint} and [Paths](http://esotericsoftware.com/spine-paths) in the Spine User Guide. */
|
|
2309
|
-
declare class PathAttachment extends VertexAttachment {
|
|
2310
|
-
/** The lengths along the path in the setup pose from the start of the path to the end of each Bezier curve. */
|
|
2311
|
-
lengths: any[];
|
|
2312
|
-
/** If true, the start and end knots are connected. */
|
|
2313
|
-
closed: boolean;
|
|
2314
|
-
/** If true, additional calculations are performed to make calculating positions along the path more accurate. If false, fewer
|
|
2315
|
-
* calculations are performed but calculating positions along the path is less accurate. */
|
|
2316
|
-
constantSpeed: boolean;
|
|
2317
|
-
/** The color of the path as it was in Spine. Available only when nonessential data was exported. Paths are not usually
|
|
2318
|
-
* rendered at runtime. */
|
|
2319
|
-
color: Color;
|
|
2320
|
-
copy(): PathAttachment;
|
|
2321
|
-
}
|
|
2322
|
-
/******************************************************************************
|
|
2323
|
-
* Spine Runtimes License Agreement
|
|
2324
|
-
* Last updated July 28, 2023. Replaces all prior versions.
|
|
2325
|
-
*
|
|
2326
|
-
* Copyright (c) 2013-2023, Esoteric Software LLC
|
|
2327
|
-
*
|
|
2328
|
-
* Integration of the Spine Runtimes into software or otherwise creating
|
|
2329
|
-
* derivative works of the Spine Runtimes is permitted under the terms and
|
|
2330
|
-
* conditions of Section 2 of the Spine Editor License Agreement:
|
|
2331
|
-
* http://esotericsoftware.com/spine-editor-license
|
|
2332
|
-
*
|
|
2333
|
-
* Otherwise, it is permitted to integrate the Spine Runtimes into software or
|
|
2334
|
-
* otherwise create derivative works of the Spine Runtimes (collectively,
|
|
2335
|
-
* "Products"), provided that each user of the Products must obtain their own
|
|
2336
|
-
* Spine Editor license and redistribution of the Products in any form must
|
|
2337
|
-
* include this license and copyright notice.
|
|
2338
|
-
*
|
|
2339
|
-
* THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
|
|
2340
|
-
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
2341
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
2342
|
-
* DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
|
|
2343
|
-
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
2344
|
-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
|
|
2345
|
-
* BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
|
|
2346
|
-
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
2347
|
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
|
|
2348
|
-
* SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
2349
|
-
*****************************************************************************/
|
|
2350
|
-
/** Stores the current pose for a path constraint. A path constraint adjusts the rotation, translation, and scale of the
|
|
2351
|
-
* constrained bones so they follow a {@link PathAttachment}.
|
|
2352
|
-
*
|
|
2353
|
-
* See [Path constraints](http://esotericsoftware.com/spine-path-constraints) in the Spine User Guide. */
|
|
2354
|
-
declare class PathConstraint {
|
|
2355
|
-
constructor(data: any, skeleton: any);
|
|
2356
|
-
/** The position along the path. */
|
|
2357
|
-
position: any;
|
|
2358
|
-
/** The spacing between bones. */
|
|
2359
|
-
spacing: any;
|
|
2360
|
-
mixRotate: any;
|
|
2361
|
-
mixX: any;
|
|
2362
|
-
mixY: any;
|
|
2363
|
-
spaces: any[];
|
|
2364
|
-
positions: any[];
|
|
2365
|
-
world: any[];
|
|
2366
|
-
curves: any[];
|
|
2367
|
-
lengths: any[];
|
|
2368
|
-
segments: any[];
|
|
2369
|
-
active: boolean;
|
|
2370
|
-
data: any;
|
|
2371
|
-
bones: any[];
|
|
2372
|
-
target: any;
|
|
2373
|
-
isActive(): boolean;
|
|
2374
|
-
update(): void;
|
|
2375
|
-
computeWorldPositions(path: any, spacesCount: any, tangents: any): any;
|
|
2376
|
-
addBeforePosition(p: any, temp: any, i: any, out: any, o: any): void;
|
|
2377
|
-
addAfterPosition(p: any, temp: any, i: any, out: any, o: any): void;
|
|
2378
|
-
addCurvePosition(p: any, x1: any, y1: any, cx1: any, cy1: any, cx2: any, cy2: any, x2: any, y2: any, out: any, o: any, tangents: any): void;
|
|
2379
|
-
}
|
|
2380
|
-
declare namespace PathConstraint {
|
|
2381
|
-
let NONE: number;
|
|
2382
|
-
let BEFORE: number;
|
|
2383
|
-
let AFTER: number;
|
|
2384
|
-
let epsilon: number;
|
|
2385
|
-
}
|
|
2386
|
-
/******************************************************************************
|
|
2387
|
-
* Spine Runtimes License Agreement
|
|
2388
|
-
* Last updated July 28, 2023. Replaces all prior versions.
|
|
2389
|
-
*
|
|
2390
|
-
* Copyright (c) 2013-2023, Esoteric Software LLC
|
|
2391
|
-
*
|
|
2392
|
-
* Integration of the Spine Runtimes into software or otherwise creating
|
|
2393
|
-
* derivative works of the Spine Runtimes is permitted under the terms and
|
|
2394
|
-
* conditions of Section 2 of the Spine Editor License Agreement:
|
|
2395
|
-
* http://esotericsoftware.com/spine-editor-license
|
|
2396
|
-
*
|
|
2397
|
-
* Otherwise, it is permitted to integrate the Spine Runtimes into software or
|
|
2398
|
-
* otherwise create derivative works of the Spine Runtimes (collectively,
|
|
2399
|
-
* "Products"), provided that each user of the Products must obtain their own
|
|
2400
|
-
* Spine Editor license and redistribution of the Products in any form must
|
|
2401
|
-
* include this license and copyright notice.
|
|
2402
|
-
*
|
|
2403
|
-
* THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
|
|
2404
|
-
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
2405
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
2406
|
-
* DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
|
|
2407
|
-
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
2408
|
-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
|
|
2409
|
-
* BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
|
|
2410
|
-
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
2411
|
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
|
|
2412
|
-
* SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
2413
|
-
*****************************************************************************/
|
|
2414
|
-
/** Stores the setup pose for a {@link PathConstraint}.
|
|
2415
|
-
*
|
|
2416
|
-
* See [path constraints](http://esotericsoftware.com/spine-path-constraints) in the Spine User Guide. */
|
|
2417
|
-
declare class PathConstraintData extends ConstraintData {
|
|
2418
|
-
constructor(name: any);
|
|
2419
|
-
set target(arg: any);
|
|
2420
|
-
get target(): any;
|
|
2421
|
-
_target: any;
|
|
2422
|
-
/** The bones that will be modified by this path constraint. */
|
|
2423
|
-
bones: any[];
|
|
2424
|
-
/** The mode for positioning the first bone on the path. */
|
|
2425
|
-
positionMode: any;
|
|
2426
|
-
/** The mode for positioning the bones after the first bone on the path. */
|
|
2427
|
-
spacingMode: any;
|
|
2428
|
-
/** The mode for adjusting the rotation of the bones. */
|
|
2429
|
-
rotateMode: any;
|
|
2430
|
-
/** An offset added to the constrained bone rotation. */
|
|
2431
|
-
offsetRotation: number;
|
|
2432
|
-
/** The position along the path. */
|
|
2433
|
-
position: number;
|
|
2434
|
-
/** The spacing between bones. */
|
|
2435
|
-
spacing: number;
|
|
2436
|
-
mixRotate: number;
|
|
2437
|
-
mixX: number;
|
|
2438
|
-
mixY: number;
|
|
2439
|
-
}
|
|
2440
|
-
/** Changes a transform constraint's {@link PathConstraint#getMixRotate()}, {@link PathConstraint#getMixX()}, and
|
|
2441
|
-
* {@link PathConstraint#getMixY()}. */
|
|
2442
|
-
declare class PathConstraintMixTimeline extends CurveTimeline {
|
|
2443
|
-
/** The index of the path constraint slot in {@link Skeleton#getPathConstraints()} that will be changed. */
|
|
2444
|
-
pathConstraintIndex: any;
|
|
2445
|
-
setFrame(frame: any, time: any, mixRotate: any, mixX: any, mixY: any): void;
|
|
2446
|
-
apply(skeleton: any, lastTime: any, time: any, firedEvents: any, alpha: any, blend: any, direction: any): void;
|
|
2447
|
-
}
|
|
2448
|
-
/** Changes a path constraint's {@link PathConstraint#position}. */
|
|
2449
|
-
declare class PathConstraintPositionTimeline extends CurveTimeline1 {
|
|
2450
|
-
/** The index of the path constraint slot in {@link Skeleton#pathConstraints} that will be changed. */
|
|
2451
|
-
pathConstraintIndex: any;
|
|
2452
|
-
apply(skeleton: any, lastTime: any, time: any, firedEvents: any, alpha: any, blend: any, direction: any): void;
|
|
2453
|
-
}
|
|
2454
|
-
/** Changes a path constraint's {@link PathConstraint#spacing}. */
|
|
2455
|
-
declare class PathConstraintSpacingTimeline extends CurveTimeline1 {
|
|
2456
|
-
/** The index of the path constraint slot in {@link Skeleton#getPathConstraints()} that will be changed. */
|
|
2457
|
-
pathConstraintIndex: any;
|
|
2458
|
-
apply(skeleton: any, lastTime: any, time: any, firedEvents: any, alpha: any, blend: any, direction: any): void;
|
|
2459
|
-
}
|
|
2460
|
-
/******************************************************************************
|
|
2461
|
-
* Spine Runtimes License Agreement
|
|
2462
|
-
* Last updated July 28, 2023. Replaces all prior versions.
|
|
2463
|
-
*
|
|
2464
|
-
* Copyright (c) 2013-2023, Esoteric Software LLC
|
|
2465
|
-
*
|
|
2466
|
-
* Integration of the Spine Runtimes into software or otherwise creating
|
|
2467
|
-
* derivative works of the Spine Runtimes is permitted under the terms and
|
|
2468
|
-
* conditions of Section 2 of the Spine Editor License Agreement:
|
|
2469
|
-
* http://esotericsoftware.com/spine-editor-license
|
|
2470
|
-
*
|
|
2471
|
-
* Otherwise, it is permitted to integrate the Spine Runtimes into software or
|
|
2472
|
-
* otherwise create derivative works of the Spine Runtimes (collectively,
|
|
2473
|
-
* "Products"), provided that each user of the Products must obtain their own
|
|
2474
|
-
* Spine Editor license and redistribution of the Products in any form must
|
|
2475
|
-
* include this license and copyright notice.
|
|
2476
|
-
*
|
|
2477
|
-
* THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
|
|
2478
|
-
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
2479
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
2480
|
-
* DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
|
|
2481
|
-
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
2482
|
-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
|
|
2483
|
-
* BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
|
|
2484
|
-
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
2485
|
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
|
|
2486
|
-
* SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
2487
|
-
*****************************************************************************/
|
|
2488
|
-
/** An attachment which is a single point and a rotation. This can be used to spawn projectiles, particles, etc. A bone can be
|
|
2489
|
-
* used in similar ways, but a PointAttachment is slightly less expensive to compute and can be hidden, shown, and placed in a
|
|
2490
|
-
* skin.
|
|
2491
|
-
*
|
|
2492
|
-
* See [Point Attachments](http://esotericsoftware.com/spine-point-attachments) in the Spine User Guide. */
|
|
2493
|
-
declare class PointAttachment extends VertexAttachment {
|
|
2494
|
-
x: number;
|
|
2495
|
-
y: number;
|
|
2496
|
-
rotation: number;
|
|
2497
|
-
/** The color of the point attachment as it was in Spine. Available only when nonessential data was exported. Point attachments
|
|
2498
|
-
* are not usually rendered at runtime. */
|
|
2499
|
-
color: Color;
|
|
2500
|
-
computeWorldPosition(bone: any, point: any): any;
|
|
2501
|
-
computeWorldRotation(bone: any): number;
|
|
2502
|
-
copy(): PointAttachment;
|
|
2503
|
-
}
|
|
2504
|
-
declare class PolygonBatcher {
|
|
2505
|
-
static getAndResetGlobalDrawCalls(): number;
|
|
2506
|
-
constructor(context: any, twoColorTint?: boolean, maxVertices?: number);
|
|
2507
|
-
drawCalls: number;
|
|
2508
|
-
isDrawing: boolean;
|
|
2509
|
-
shader: any;
|
|
2510
|
-
lastTexture: any;
|
|
2511
|
-
verticesLength: number;
|
|
2512
|
-
indicesLength: number;
|
|
2513
|
-
cullWasEnabled: boolean;
|
|
2514
|
-
context: ManagedWebGLRenderingContext;
|
|
2515
|
-
mesh: Mesh;
|
|
2516
|
-
srcColorBlend: any;
|
|
2517
|
-
srcAlphaBlend: any;
|
|
2518
|
-
dstBlend: any;
|
|
2519
|
-
begin(shader: any): void;
|
|
2520
|
-
setBlendMode(blendMode: any, premultipliedAlpha: any): void;
|
|
2521
|
-
draw(texture: any, vertices: any, indices: any): void;
|
|
2522
|
-
flush(): void;
|
|
2523
|
-
end(): void;
|
|
2524
|
-
getDrawCalls(): number;
|
|
2525
|
-
dispose(): void;
|
|
2526
|
-
}
|
|
2527
|
-
declare namespace PolygonBatcher {
|
|
2528
|
-
let disableCulling: boolean;
|
|
2529
|
-
let globalDrawCalls: number;
|
|
2530
|
-
let blendModesGL: {
|
|
2531
|
-
srcRgb: number;
|
|
2532
|
-
srcRgbPma: number;
|
|
2533
|
-
dstRgb: number;
|
|
2534
|
-
srcAlpha: number;
|
|
2535
|
-
}[];
|
|
2536
|
-
}
|
|
2537
|
-
declare class Pool {
|
|
2538
|
-
constructor(instantiator: any);
|
|
2539
|
-
items: any[];
|
|
2540
|
-
instantiator: any;
|
|
2541
|
-
obtain(): any;
|
|
2542
|
-
free(item: any): void;
|
|
2543
|
-
freeAll(items: any): void;
|
|
2544
|
-
clear(): void;
|
|
2545
|
-
}
|
|
2546
|
-
declare class Position2Attribute extends VertexAttribute {
|
|
2547
|
-
constructor();
|
|
2548
|
-
}
|
|
2549
|
-
declare class Position3Attribute extends VertexAttribute {
|
|
2550
|
-
constructor();
|
|
2551
|
-
}
|
|
2552
|
-
declare class Pow extends Interpolation {
|
|
2553
|
-
constructor(power: any);
|
|
2554
|
-
power: any;
|
|
2555
|
-
applyInternal(a: any): number;
|
|
2556
|
-
}
|
|
2557
|
-
declare class PowOut extends Pow {
|
|
2558
|
-
}
|
|
2559
|
-
/** Changes a slot's {@link Slot#color} and {@link Slot#darkColor} for two color tinting. */
|
|
2560
|
-
declare class RGB2Timeline extends CurveTimeline {
|
|
2561
|
-
slotIndex: any;
|
|
2562
|
-
/** Sets the time in seconds, light, and dark colors for the specified key frame. */
|
|
2563
|
-
setFrame(frame: any, time: any, r: any, g: any, b: any, r2: any, g2: any, b2: any): void;
|
|
2564
|
-
apply(skeleton: any, lastTime: any, time: any, events: any, alpha: any, blend: any, direction: any): void;
|
|
2565
|
-
}
|
|
2566
|
-
/** Changes a slot's {@link Slot#color} and {@link Slot#darkColor} for two color tinting. */
|
|
2567
|
-
declare class RGBA2Timeline extends CurveTimeline {
|
|
2568
|
-
slotIndex: any;
|
|
2569
|
-
/** Sets the time in seconds, light, and dark colors for the specified key frame. */
|
|
2570
|
-
setFrame(frame: any, time: any, r: any, g: any, b: any, a: any, r2: any, g2: any, b2: any): void;
|
|
2571
|
-
apply(skeleton: any, lastTime: any, time: any, events: any, alpha: any, blend: any, direction: any): void;
|
|
2572
|
-
}
|
|
2573
|
-
/** Changes a slot's {@link Slot#color}. */
|
|
2574
|
-
declare class RGBATimeline extends CurveTimeline {
|
|
2575
|
-
slotIndex: any;
|
|
2576
|
-
/** Sets the time in seconds, red, green, blue, and alpha for the specified key frame. */
|
|
2577
|
-
setFrame(frame: any, time: any, r: any, g: any, b: any, a: any): void;
|
|
2578
|
-
apply(skeleton: any, lastTime: any, time: any, events: any, alpha: any, blend: any, direction: any): void;
|
|
2579
|
-
}
|
|
2580
|
-
/** Changes a slot's {@link Slot#color}. */
|
|
2581
|
-
declare class RGBTimeline extends CurveTimeline {
|
|
2582
|
-
slotIndex: any;
|
|
2583
|
-
/** Sets the time in seconds, red, green, blue, and alpha for the specified key frame. */
|
|
2584
|
-
setFrame(frame: any, time: any, r: any, g: any, b: any): void;
|
|
2585
|
-
apply(skeleton: any, lastTime: any, time: any, events: any, alpha: any, blend: any, direction: any): void;
|
|
2586
|
-
}
|
|
2587
|
-
/******************************************************************************
|
|
2588
|
-
* Spine Runtimes License Agreement
|
|
2589
|
-
* Last updated July 28, 2023. Replaces all prior versions.
|
|
2590
|
-
*
|
|
2591
|
-
* Copyright (c) 2013-2023, Esoteric Software LLC
|
|
2592
|
-
*
|
|
2593
|
-
* Integration of the Spine Runtimes into software or otherwise creating
|
|
2594
|
-
* derivative works of the Spine Runtimes is permitted under the terms and
|
|
2595
|
-
* conditions of Section 2 of the Spine Editor License Agreement:
|
|
2596
|
-
* http://esotericsoftware.com/spine-editor-license
|
|
2597
|
-
*
|
|
2598
|
-
* Otherwise, it is permitted to integrate the Spine Runtimes into software or
|
|
2599
|
-
* otherwise create derivative works of the Spine Runtimes (collectively,
|
|
2600
|
-
* "Products"), provided that each user of the Products must obtain their own
|
|
2601
|
-
* Spine Editor license and redistribution of the Products in any form must
|
|
2602
|
-
* include this license and copyright notice.
|
|
2603
|
-
*
|
|
2604
|
-
* THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
|
|
2605
|
-
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
2606
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
2607
|
-
* DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
|
|
2608
|
-
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
2609
|
-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
|
|
2610
|
-
* BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
|
|
2611
|
-
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
2612
|
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
|
|
2613
|
-
* SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
2614
|
-
*****************************************************************************/
|
|
2615
|
-
/** An attachment that displays a textured quadrilateral.
|
|
2616
|
-
*
|
|
2617
|
-
* See [Region attachments](http://esotericsoftware.com/spine-regions) in the Spine User Guide. */
|
|
2618
|
-
declare class RegionAttachment extends Attachment {
|
|
2619
|
-
constructor(name: any, path: any);
|
|
2620
|
-
/** The local x translation. */
|
|
2621
|
-
x: number;
|
|
2622
|
-
/** The local y translation. */
|
|
2623
|
-
y: number;
|
|
2624
|
-
/** The local scaleX. */
|
|
2625
|
-
scaleX: number;
|
|
2626
|
-
/** The local scaleY. */
|
|
2627
|
-
scaleY: number;
|
|
2628
|
-
/** The local rotation. */
|
|
2629
|
-
rotation: number;
|
|
2630
|
-
/** The width of the region attachment in Spine. */
|
|
2631
|
-
width: number;
|
|
2632
|
-
/** The height of the region attachment in Spine. */
|
|
2633
|
-
height: number;
|
|
2634
|
-
/** The color to tint the region attachment. */
|
|
2635
|
-
color: Color;
|
|
2636
|
-
region: any;
|
|
2637
|
-
sequence: any;
|
|
2638
|
-
/** For each of the 4 vertices, a pair of <code>x,y</code> values that is the local position of the vertex.
|
|
2639
|
-
*
|
|
2640
|
-
* See {@link #updateOffset()}. */
|
|
2641
|
-
offset: any[] | Float32Array;
|
|
2642
|
-
uvs: any[] | Float32Array;
|
|
2643
|
-
tempColor: Color;
|
|
2644
|
-
path: any;
|
|
2645
|
-
/** Calculates the {@link #offset} using the region settings. Must be called after changing region settings. */
|
|
2646
|
-
updateRegion(): void;
|
|
2647
|
-
/** Transforms the attachment's four vertices to world coordinates. If the attachment has a {@link #sequence}, the region may
|
|
2648
|
-
* be changed.
|
|
2649
|
-
* <p>
|
|
2650
|
-
* See <a href="http://esotericsoftware.com/spine-runtime-skeletons#World-transforms">World transforms</a> in the Spine
|
|
2651
|
-
* Runtimes Guide.
|
|
2652
|
-
* @param worldVertices The output world vertices. Must have a length >= <code>offset</code> + 8.
|
|
2653
|
-
* @param offset The <code>worldVertices</code> index to begin writing values.
|
|
2654
|
-
* @param stride The number of <code>worldVertices</code> entries between the value pairs written. */
|
|
2655
|
-
computeWorldVertices(slot: any, worldVertices: any, offset: any, stride: any): void;
|
|
2656
|
-
copy(): RegionAttachment;
|
|
2657
|
-
}
|
|
2658
|
-
declare namespace RegionAttachment {
|
|
2659
|
-
let X1: number;
|
|
2660
|
-
let Y1: number;
|
|
2661
|
-
let C1R: number;
|
|
2662
|
-
let C1G: number;
|
|
2663
|
-
let C1B: number;
|
|
2664
|
-
let C1A: number;
|
|
2665
|
-
let U1: number;
|
|
2666
|
-
let V1: number;
|
|
2667
|
-
let X2: number;
|
|
2668
|
-
let Y2: number;
|
|
2669
|
-
let C2R: number;
|
|
2670
|
-
let C2G: number;
|
|
2671
|
-
let C2B: number;
|
|
2672
|
-
let C2A: number;
|
|
2673
|
-
let U2: number;
|
|
2674
|
-
let V2: number;
|
|
2675
|
-
let X3: number;
|
|
2676
|
-
let Y3: number;
|
|
2677
|
-
let C3R: number;
|
|
2678
|
-
let C3G: number;
|
|
2679
|
-
let C3B: number;
|
|
2680
|
-
let C3A: number;
|
|
2681
|
-
let U3: number;
|
|
2682
|
-
let V3: number;
|
|
2683
|
-
let X4: number;
|
|
2684
|
-
let Y4: number;
|
|
2685
|
-
let C4R: number;
|
|
2686
|
-
let C4G: number;
|
|
2687
|
-
let C4B: number;
|
|
2688
|
-
let C4A: number;
|
|
2689
|
-
let U4: number;
|
|
2690
|
-
let V4: number;
|
|
2691
|
-
}
|
|
2692
|
-
/** Changes a bone's local {@link Bone#rotation}. */
|
|
2693
|
-
declare class RotateTimeline extends CurveTimeline1 {
|
|
2694
|
-
boneIndex: any;
|
|
2695
|
-
apply(skeleton: any, lastTime: any, time: any, events: any, alpha: any, blend: any, direction: any): void;
|
|
2696
|
-
}
|
|
2697
|
-
/** Changes a bone's local {@link Bone#scaleX)} and {@link Bone#scaleY}. */
|
|
2698
|
-
declare class ScaleTimeline extends CurveTimeline2 {
|
|
2699
|
-
constructor(frameCount: any, bezierCount: any, boneIndex: any);
|
|
2700
|
-
boneIndex: any;
|
|
2701
|
-
apply(skeleton: any, lastTime: any, time: any, events: any, alpha: any, blend: any, direction: any): void;
|
|
2702
|
-
}
|
|
2703
|
-
/** Changes a bone's local {@link Bone#scaleX)} and {@link Bone#scaleY}. */
|
|
2704
|
-
declare class ScaleXTimeline extends CurveTimeline1 {
|
|
2705
|
-
boneIndex: any;
|
|
2706
|
-
apply(skeleton: any, lastTime: any, time: any, events: any, alpha: any, blend: any, direction: any): void;
|
|
2707
|
-
}
|
|
2708
|
-
/** Changes a bone's local {@link Bone#scaleX)} and {@link Bone#scaleY}. */
|
|
2709
|
-
declare class ScaleYTimeline extends CurveTimeline1 {
|
|
2710
|
-
boneIndex: any;
|
|
2711
|
-
apply(skeleton: any, lastTime: any, time: any, events: any, alpha: any, blend: any, direction: any): void;
|
|
2712
|
-
}
|
|
2713
|
-
declare class SceneRenderer {
|
|
2714
|
-
constructor(canvas: any, context: any, twoColorTint?: boolean);
|
|
2715
|
-
twoColorTint: boolean;
|
|
2716
|
-
activeRenderer: PolygonBatcher | ShapeRenderer | SkeletonDebugRenderer | null;
|
|
2717
|
-
canvas: any;
|
|
2718
|
-
context: ManagedWebGLRenderingContext;
|
|
2719
|
-
camera: OrthoCamera;
|
|
2720
|
-
batcherShader: Shader;
|
|
2721
|
-
batcher: PolygonBatcher;
|
|
2722
|
-
shapesShader: Shader;
|
|
2723
|
-
shapes: ShapeRenderer;
|
|
2724
|
-
skeletonRenderer: {
|
|
2725
|
-
premultipliedAlpha: boolean;
|
|
2726
|
-
tempColor: Color;
|
|
2727
|
-
tempColor2: Color;
|
|
2728
|
-
vertexSize: number;
|
|
2729
|
-
twoColorTint: boolean;
|
|
2730
|
-
renderable: Renderable;
|
|
2731
|
-
clipper: SkeletonClipping;
|
|
2732
|
-
temp: Vector2;
|
|
2733
|
-
temp2: Vector2;
|
|
2734
|
-
temp3: Color;
|
|
2735
|
-
temp4: Color;
|
|
2736
|
-
vertices: any[] | Float32Array;
|
|
2737
|
-
draw(batcher: any, skeleton: any, slotRangeStart?: number, slotRangeEnd?: number, transformer?: null): void;
|
|
2738
|
-
};
|
|
2739
|
-
skeletonDebugRenderer: SkeletonDebugRenderer;
|
|
2740
|
-
dispose(): void;
|
|
2741
|
-
begin(): void;
|
|
2742
|
-
drawSkeleton(skeleton: any, premultipliedAlpha?: boolean, slotRangeStart?: number, slotRangeEnd?: number, transform?: null): void;
|
|
2743
|
-
drawSkeletonDebug(skeleton: any, premultipliedAlpha: boolean | undefined, ignoredBones: any): void;
|
|
2744
|
-
drawTexture(texture: any, x: any, y: any, width: any, height: any, color: any): void;
|
|
2745
|
-
drawTextureUV(texture: any, x: any, y: any, width: any, height: any, u: any, v: any, u2: any, v2: any, color: any): void;
|
|
2746
|
-
drawTextureRotated(texture: any, x: any, y: any, width: any, height: any, pivotX: any, pivotY: any, angle: any, color: any): void;
|
|
2747
|
-
drawRegion(region: any, x: any, y: any, width: any, height: any, color: any): void;
|
|
2748
|
-
line(x: any, y: any, x2: any, y2: any, color: any, color2: any): void;
|
|
2749
|
-
triangle(filled: any, x: any, y: any, x2: any, y2: any, x3: any, y3: any, color: any, color2: any, color3: any): void;
|
|
2750
|
-
quad(filled: any, x: any, y: any, x2: any, y2: any, x3: any, y3: any, x4: any, y4: any, color: any, color2: any, color3: any, color4: any): void;
|
|
2751
|
-
rect(filled: any, x: any, y: any, width: any, height: any, color: any): void;
|
|
2752
|
-
rectLine(filled: any, x1: any, y1: any, x2: any, y2: any, width: any, color: any): void;
|
|
2753
|
-
polygon(polygonVertices: any, offset: any, count: any, color: any): void;
|
|
2754
|
-
circle(filled: any, x: any, y: any, radius: any, color: any, segments?: number): void;
|
|
2755
|
-
curve(x1: any, y1: any, cx1: any, cy1: any, cx2: any, cy2: any, x2: any, y2: any, segments: any, color: any): void;
|
|
2756
|
-
end(): void;
|
|
2757
|
-
resize(resizeMode: any): void;
|
|
2758
|
-
enableRenderer(renderer: any): void;
|
|
2759
|
-
}
|
|
2760
|
-
/** Changes a slot's {@link Slot#getSequenceIndex()} for an attachment's {@link Sequence}. */
|
|
2761
|
-
declare class SequenceTimeline extends Timeline {
|
|
2762
|
-
constructor(frameCount: any, slotIndex: any, attachment: any);
|
|
2763
|
-
slotIndex: any;
|
|
2764
|
-
attachment: any;
|
|
2765
|
-
getSlotIndex(): any;
|
|
2766
|
-
getAttachment(): any;
|
|
2767
|
-
/** Sets the time, mode, index, and frame time for the specified frame.
|
|
2768
|
-
* @param frame Between 0 and <code>frameCount</code>, inclusive.
|
|
2769
|
-
* @param time Seconds between frames. */
|
|
2770
|
-
setFrame(frame: any, time: any, mode: any, index: any, delay: any): void;
|
|
2771
|
-
apply(skeleton: any, lastTime: any, time: any, events: any, alpha: any, blend: any, direction: any): void;
|
|
2772
|
-
}
|
|
2773
|
-
declare namespace SequenceTimeline {
|
|
2774
|
-
let ENTRIES: number;
|
|
2775
|
-
let MODE: number;
|
|
2776
|
-
let DELAY: number;
|
|
2777
|
-
}
|
|
2778
|
-
/******************************************************************************
|
|
2779
|
-
* Spine Runtimes License Agreement
|
|
2780
|
-
* Last updated July 28, 2023. Replaces all prior versions.
|
|
2781
|
-
*
|
|
2782
|
-
* Copyright (c) 2013-2023, Esoteric Software LLC
|
|
2783
|
-
*
|
|
2784
|
-
* Integration of the Spine Runtimes into software or otherwise creating
|
|
2785
|
-
* derivative works of the Spine Runtimes is permitted under the terms and
|
|
2786
|
-
* conditions of Section 2 of the Spine Editor License Agreement:
|
|
2787
|
-
* http://esotericsoftware.com/spine-editor-license
|
|
2788
|
-
*
|
|
2789
|
-
* Otherwise, it is permitted to integrate the Spine Runtimes into software or
|
|
2790
|
-
* otherwise create derivative works of the Spine Runtimes (collectively,
|
|
2791
|
-
* "Products"), provided that each user of the Products must obtain their own
|
|
2792
|
-
* Spine Editor license and redistribution of the Products in any form must
|
|
2793
|
-
* include this license and copyright notice.
|
|
2794
|
-
*
|
|
2795
|
-
* THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
|
|
2796
|
-
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
2797
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
2798
|
-
* DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
|
|
2799
|
-
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
2800
|
-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
|
|
2801
|
-
* BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
|
|
2802
|
-
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
2803
|
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
|
|
2804
|
-
* SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
2805
|
-
*****************************************************************************/
|
|
2806
|
-
declare class Shader {
|
|
2807
|
-
static newColoredTextured(context: any): Shader;
|
|
2808
|
-
static newTwoColoredTextured(context: any): Shader;
|
|
2809
|
-
static newColored(context: any): Shader;
|
|
2810
|
-
constructor(context: any, vertexShader: any, fragmentShader: any);
|
|
2811
|
-
getProgram(): any;
|
|
2812
|
-
getVertexShader(): any;
|
|
2813
|
-
getFragmentShader(): any;
|
|
2814
|
-
getVertexShaderSource(): any;
|
|
2815
|
-
getFragmentSource(): any;
|
|
2816
|
-
vertexShader: any;
|
|
2817
|
-
fragmentShader: any;
|
|
2818
|
-
vs: any;
|
|
2819
|
-
fs: any;
|
|
2820
|
-
program: any;
|
|
2821
|
-
tmp2x2: Float32Array;
|
|
2822
|
-
tmp3x3: Float32Array;
|
|
2823
|
-
tmp4x4: Float32Array;
|
|
2824
|
-
vsSource: any;
|
|
2825
|
-
fsSource: any;
|
|
2826
|
-
context: ManagedWebGLRenderingContext;
|
|
2827
|
-
compile(): void;
|
|
2828
|
-
compileShader(type: any, source: any): any;
|
|
2829
|
-
compileProgram(vs: any, fs: any): any;
|
|
2830
|
-
restore(): void;
|
|
2831
|
-
bind(): void;
|
|
2832
|
-
unbind(): void;
|
|
2833
|
-
setUniformi(uniform: any, value: any): void;
|
|
2834
|
-
setUniformf(uniform: any, value: any): void;
|
|
2835
|
-
setUniform2f(uniform: any, value: any, value2: any): void;
|
|
2836
|
-
setUniform3f(uniform: any, value: any, value2: any, value3: any): void;
|
|
2837
|
-
setUniform4f(uniform: any, value: any, value2: any, value3: any, value4: any): void;
|
|
2838
|
-
setUniform2x2f(uniform: any, value: any): void;
|
|
2839
|
-
setUniform3x3f(uniform: any, value: any): void;
|
|
2840
|
-
setUniform4x4f(uniform: any, value: any): void;
|
|
2841
|
-
getUniformLocation(uniform: any): any;
|
|
2842
|
-
getAttributeLocation(attribute: any): any;
|
|
2843
|
-
dispose(): void;
|
|
2844
|
-
}
|
|
2845
|
-
declare namespace Shader {
|
|
2846
|
-
let MVP_MATRIX: string;
|
|
2847
|
-
let POSITION: string;
|
|
2848
|
-
let COLOR: string;
|
|
2849
|
-
let COLOR2: string;
|
|
2850
|
-
let TEXCOORDS: string;
|
|
2851
|
-
let SAMPLER: string;
|
|
2852
|
-
}
|
|
2853
|
-
/******************************************************************************
|
|
2854
|
-
* Spine Runtimes License Agreement
|
|
2855
|
-
* Last updated July 28, 2023. Replaces all prior versions.
|
|
2856
|
-
*
|
|
2857
|
-
* Copyright (c) 2013-2023, Esoteric Software LLC
|
|
2858
|
-
*
|
|
2859
|
-
* Integration of the Spine Runtimes into software or otherwise creating
|
|
2860
|
-
* derivative works of the Spine Runtimes is permitted under the terms and
|
|
2861
|
-
* conditions of Section 2 of the Spine Editor License Agreement:
|
|
2862
|
-
* http://esotericsoftware.com/spine-editor-license
|
|
2863
|
-
*
|
|
2864
|
-
* Otherwise, it is permitted to integrate the Spine Runtimes into software or
|
|
2865
|
-
* otherwise create derivative works of the Spine Runtimes (collectively,
|
|
2866
|
-
* "Products"), provided that each user of the Products must obtain their own
|
|
2867
|
-
* Spine Editor license and redistribution of the Products in any form must
|
|
2868
|
-
* include this license and copyright notice.
|
|
2869
|
-
*
|
|
2870
|
-
* THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
|
|
2871
|
-
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
2872
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
2873
|
-
* DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
|
|
2874
|
-
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
2875
|
-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
|
|
2876
|
-
* BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
|
|
2877
|
-
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
2878
|
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
|
|
2879
|
-
* SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
2880
|
-
*****************************************************************************/
|
|
2881
|
-
declare class ShapeRenderer {
|
|
2882
|
-
constructor(context: any, maxVertices?: number);
|
|
2883
|
-
isDrawing: boolean;
|
|
2884
|
-
shapeType: any;
|
|
2885
|
-
color: Color;
|
|
2886
|
-
shader: any;
|
|
2887
|
-
vertexIndex: number;
|
|
2888
|
-
tmp: Vector2;
|
|
2889
|
-
context: ManagedWebGLRenderingContext;
|
|
2890
|
-
mesh: Mesh;
|
|
2891
|
-
srcColorBlend: any;
|
|
2892
|
-
srcAlphaBlend: any;
|
|
2893
|
-
dstBlend: any;
|
|
2894
|
-
begin(shader: any): void;
|
|
2895
|
-
setBlendMode(srcColorBlend: any, srcAlphaBlend: any, dstBlend: any): void;
|
|
2896
|
-
setColor(color: any): void;
|
|
2897
|
-
setColorWith(r: any, g: any, b: any, a: any): void;
|
|
2898
|
-
point(x: any, y: any, color: any): void;
|
|
2899
|
-
line(x: any, y: any, x2: any, y2: any, color: any): void;
|
|
2900
|
-
triangle(filled: any, x: any, y: any, x2: any, y2: any, x3: any, y3: any, color: any, color2: any, color3: any): void;
|
|
2901
|
-
quad(filled: any, x: any, y: any, x2: any, y2: any, x3: any, y3: any, x4: any, y4: any, color: any, color2: any, color3: any, color4: any): void;
|
|
2902
|
-
rect(filled: any, x: any, y: any, width: any, height: any, color: any): void;
|
|
2903
|
-
rectLine(filled: any, x1: any, y1: any, x2: any, y2: any, width: any, color: any): void;
|
|
2904
|
-
x(x: any, y: any, size: any): void;
|
|
2905
|
-
polygon(polygonVertices: any, offset: any, count: any, color: any): void;
|
|
2906
|
-
circle(filled: any, x: any, y: any, radius: any, color: any, segments?: number): void;
|
|
2907
|
-
curve(x1: any, y1: any, cx1: any, cy1: any, cx2: any, cy2: any, x2: any, y2: any, segments: any, color: any): void;
|
|
2908
|
-
vertex(x: any, y: any, color: any): void;
|
|
2909
|
-
end(): void;
|
|
2910
|
-
flush(): void;
|
|
2911
|
-
check(shapeType: any, numVertices: any): void;
|
|
2912
|
-
dispose(): void;
|
|
2913
|
-
}
|
|
2914
|
-
/** Changes a bone's local {@link Bone#shearX} and {@link Bone#shearY}. */
|
|
2915
|
-
declare class ShearTimeline extends CurveTimeline2 {
|
|
2916
|
-
constructor(frameCount: any, bezierCount: any, boneIndex: any);
|
|
2917
|
-
boneIndex: any;
|
|
2918
|
-
apply(skeleton: any, lastTime: any, time: any, events: any, alpha: any, blend: any, direction: any): void;
|
|
2919
|
-
}
|
|
2920
|
-
/** Changes a bone's local {@link Bone#shearX} and {@link Bone#shearY}. */
|
|
2921
|
-
declare class ShearXTimeline extends CurveTimeline1 {
|
|
2922
|
-
boneIndex: any;
|
|
2923
|
-
apply(skeleton: any, lastTime: any, time: any, events: any, alpha: any, blend: any, direction: any): void;
|
|
2924
|
-
}
|
|
2925
|
-
/** Changes a bone's local {@link Bone#shearX} and {@link Bone#shearY}. */
|
|
2926
|
-
declare class ShearYTimeline extends CurveTimeline1 {
|
|
2927
|
-
boneIndex: any;
|
|
2928
|
-
apply(skeleton: any, lastTime: any, time: any, events: any, alpha: any, blend: any, direction: any): void;
|
|
2929
|
-
}
|
|
2930
|
-
/******************************************************************************
|
|
2931
|
-
* Spine Runtimes License Agreement
|
|
2932
|
-
* Last updated July 28, 2023. Replaces all prior versions.
|
|
2933
|
-
*
|
|
2934
|
-
* Copyright (c) 2013-2023, Esoteric Software LLC
|
|
2935
|
-
*
|
|
2936
|
-
* Integration of the Spine Runtimes into software or otherwise creating
|
|
2937
|
-
* derivative works of the Spine Runtimes is permitted under the terms and
|
|
2938
|
-
* conditions of Section 2 of the Spine Editor License Agreement:
|
|
2939
|
-
* http://esotericsoftware.com/spine-editor-license
|
|
2940
|
-
*
|
|
2941
|
-
* Otherwise, it is permitted to integrate the Spine Runtimes into software or
|
|
2942
|
-
* otherwise create derivative works of the Spine Runtimes (collectively,
|
|
2943
|
-
* "Products"), provided that each user of the Products must obtain their own
|
|
2944
|
-
* Spine Editor license and redistribution of the Products in any form must
|
|
2945
|
-
* include this license and copyright notice.
|
|
2946
|
-
*
|
|
2947
|
-
* THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
|
|
2948
|
-
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
2949
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
2950
|
-
* DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
|
|
2951
|
-
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
2952
|
-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
|
|
2953
|
-
* BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
|
|
2954
|
-
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
2955
|
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
|
|
2956
|
-
* SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
2957
|
-
*****************************************************************************/
|
|
2958
|
-
/** Stores the current pose for a skeleton.
|
|
2959
|
-
*
|
|
2960
|
-
* See [Instance objects](http://esotericsoftware.com/spine-runtime-architecture#Instance-objects) in the Spine Runtimes Guide. */
|
|
2961
|
-
declare class Skeleton {
|
|
2962
|
-
constructor(data: any);
|
|
2963
|
-
set scaleY(arg: number);
|
|
2964
|
-
get scaleY(): number;
|
|
2965
|
-
_scaleY: number;
|
|
2966
|
-
/** The list of bones and constraints, sorted in the order they should be updated, as computed by {@link #updateCache()}. */
|
|
2967
|
-
_updateCache: any[];
|
|
2968
|
-
/** The skeleton's current skin. May be null. */
|
|
2969
|
-
skin: any;
|
|
2970
|
-
/** Scales the entire skeleton on the X axis. This affects all bones, even if the bone's transform mode disallows scale
|
|
2971
|
-
* inheritance. */
|
|
2972
|
-
scaleX: number;
|
|
2973
|
-
/** Sets the skeleton X position, which is added to the root bone worldX position. */
|
|
2974
|
-
x: number;
|
|
2975
|
-
/** Sets the skeleton Y position, which is added to the root bone worldY position. */
|
|
2976
|
-
y: number;
|
|
2977
|
-
data: any;
|
|
2978
|
-
bones: any[];
|
|
2979
|
-
slots: any[];
|
|
2980
|
-
drawOrder: any[];
|
|
2981
|
-
ikConstraints: any[];
|
|
2982
|
-
transformConstraints: any[];
|
|
2983
|
-
pathConstraints: any[];
|
|
2984
|
-
color: Color;
|
|
2985
|
-
/** Caches information about bones and constraints. Must be called if the {@link #getSkin()} is modified or if bones,
|
|
2986
|
-
* constraints, or weighted path attachments are added or removed. */
|
|
2987
|
-
updateCache(): void;
|
|
2988
|
-
sortIkConstraint(constraint: any): void;
|
|
2989
|
-
sortPathConstraint(constraint: any): void;
|
|
2990
|
-
sortTransformConstraint(constraint: any): void;
|
|
2991
|
-
sortPathConstraintAttachment(skin: any, slotIndex: any, slotBone: any): void;
|
|
2992
|
-
sortPathConstraintAttachmentWith(attachment: any, slotBone: any): void;
|
|
2993
|
-
sortBone(bone: any): void;
|
|
2994
|
-
sortReset(bones: any): void;
|
|
2995
|
-
/** Updates the world transform for each bone and applies all constraints.
|
|
2996
|
-
*
|
|
2997
|
-
* See [World transforms](http://esotericsoftware.com/spine-runtime-skeletons#World-transforms) in the Spine
|
|
2998
|
-
* Runtimes Guide. */
|
|
2999
|
-
updateWorldTransform(): void;
|
|
3000
|
-
updateWorldTransformWith(parent: any): void;
|
|
3001
|
-
/** Sets the bones, constraints, and slots to their setup pose values. */
|
|
3002
|
-
setToSetupPose(): void;
|
|
3003
|
-
/** Sets the bones and constraints to their setup pose values. */
|
|
3004
|
-
setBonesToSetupPose(): void;
|
|
3005
|
-
/** Sets the slots and draw order to their setup pose values. */
|
|
3006
|
-
setSlotsToSetupPose(): void;
|
|
3007
|
-
/** @returns May return null. */
|
|
3008
|
-
getRootBone(): any;
|
|
3009
|
-
/** @returns May be null. */
|
|
3010
|
-
findBone(boneName: any): any;
|
|
3011
|
-
/** Finds a slot by comparing each slot's name. It is more efficient to cache the results of this method than to call it
|
|
3012
|
-
* repeatedly.
|
|
3013
|
-
* @returns May be null. */
|
|
3014
|
-
findSlot(slotName: any): any;
|
|
3015
|
-
/** Sets a skin by name.
|
|
3016
|
-
*
|
|
3017
|
-
* See {@link #setSkin()}. */
|
|
3018
|
-
setSkinByName(skinName: any): void;
|
|
3019
|
-
/** Sets the skin used to look up attachments before looking in the {@link SkeletonData#defaultSkin default skin}. If the
|
|
3020
|
-
* skin is changed, {@link #updateCache()} is called.
|
|
3021
|
-
*
|
|
3022
|
-
* Attachments from the new skin are attached if the corresponding attachment from the old skin was attached. If there was no
|
|
3023
|
-
* old skin, each slot's setup mode attachment is attached from the new skin.
|
|
3024
|
-
*
|
|
3025
|
-
* After changing the skin, the visible attachments can be reset to those attached in the setup pose by calling
|
|
3026
|
-
* {@link #setSlotsToSetupPose()}. Also, often {@link AnimationState#apply()} is called before the next time the
|
|
3027
|
-
* skeleton is rendered to allow any attachment keys in the current animation(s) to hide or show attachments from the new skin.
|
|
3028
|
-
* @param newSkin May be null. */
|
|
3029
|
-
setSkin(newSkin: any): void;
|
|
3030
|
-
/** Finds an attachment by looking in the {@link #skin} and {@link SkeletonData#defaultSkin} using the slot name and attachment
|
|
3031
|
-
* name.
|
|
3032
|
-
*
|
|
3033
|
-
* See {@link #getAttachment()}.
|
|
3034
|
-
* @returns May be null. */
|
|
3035
|
-
getAttachmentByName(slotName: any, attachmentName: any): any;
|
|
3036
|
-
/** Finds an attachment by looking in the {@link #skin} and {@link SkeletonData#defaultSkin} using the slot index and
|
|
3037
|
-
* attachment name. First the skin is checked and if the attachment was not found, the default skin is checked.
|
|
3038
|
-
*
|
|
3039
|
-
* See [Runtime skins](http://esotericsoftware.com/spine-runtime-skins) in the Spine Runtimes Guide.
|
|
3040
|
-
* @returns May be null. */
|
|
3041
|
-
getAttachment(slotIndex: any, attachmentName: any): any;
|
|
3042
|
-
/** A convenience method to set an attachment by finding the slot with {@link #findSlot()}, finding the attachment with
|
|
3043
|
-
* {@link #getAttachment()}, then setting the slot's {@link Slot#attachment}.
|
|
3044
|
-
* @param attachmentName May be null to clear the slot's attachment. */
|
|
3045
|
-
setAttachment(slotName: any, attachmentName: any): void;
|
|
3046
|
-
/** Finds an IK constraint by comparing each IK constraint's name. It is more efficient to cache the results of this method
|
|
3047
|
-
* than to call it repeatedly.
|
|
3048
|
-
* @return May be null. */
|
|
3049
|
-
findIkConstraint(constraintName: any): any;
|
|
3050
|
-
/** Finds a transform constraint by comparing each transform constraint's name. It is more efficient to cache the results of
|
|
3051
|
-
* this method than to call it repeatedly.
|
|
3052
|
-
* @return May be null. */
|
|
3053
|
-
findTransformConstraint(constraintName: any): any;
|
|
3054
|
-
/** Finds a path constraint by comparing each path constraint's name. It is more efficient to cache the results of this method
|
|
3055
|
-
* than to call it repeatedly.
|
|
3056
|
-
* @return May be null. */
|
|
3057
|
-
findPathConstraint(constraintName: any): any;
|
|
3058
|
-
/** Returns the axis aligned bounding box (AABB) of the region and mesh attachments for the current pose as `{ x: number, y: number, width: number, height: number }`.
|
|
3059
|
-
* Note that this method will create temporary objects which can add to garbage collection pressure. Use `getBounds()` if garbage collection is a concern. */
|
|
3060
|
-
getBoundsRect(): {
|
|
3061
|
-
x: number;
|
|
3062
|
-
y: number;
|
|
3063
|
-
width: number;
|
|
3064
|
-
height: number;
|
|
3065
|
-
};
|
|
3066
|
-
/** Returns the axis aligned bounding box (AABB) of the region and mesh attachments for the current pose.
|
|
3067
|
-
* @param offset An output value, the distance from the skeleton origin to the bottom left corner of the AABB.
|
|
3068
|
-
* @param size An output value, the width and height of the AABB.
|
|
3069
|
-
* @param temp Working memory to temporarily store attachments' computed world vertices. */
|
|
3070
|
-
getBounds(offset: any, size: any, temp?: any[]): void;
|
|
3071
|
-
}
|
|
3072
|
-
declare namespace Skeleton {
|
|
3073
|
-
let yDown: boolean;
|
|
3074
|
-
}
|
|
3075
|
-
/******************************************************************************
|
|
3076
|
-
* Spine Runtimes License Agreement
|
|
3077
|
-
* Last updated July 28, 2023. Replaces all prior versions.
|
|
3078
|
-
*
|
|
3079
|
-
* Copyright (c) 2013-2023, Esoteric Software LLC
|
|
3080
|
-
*
|
|
3081
|
-
* Integration of the Spine Runtimes into software or otherwise creating
|
|
3082
|
-
* derivative works of the Spine Runtimes is permitted under the terms and
|
|
3083
|
-
* conditions of Section 2 of the Spine Editor License Agreement:
|
|
3084
|
-
* http://esotericsoftware.com/spine-editor-license
|
|
3085
|
-
*
|
|
3086
|
-
* Otherwise, it is permitted to integrate the Spine Runtimes into software or
|
|
3087
|
-
* otherwise create derivative works of the Spine Runtimes (collectively,
|
|
3088
|
-
* "Products"), provided that each user of the Products must obtain their own
|
|
3089
|
-
* Spine Editor license and redistribution of the Products in any form must
|
|
3090
|
-
* include this license and copyright notice.
|
|
3091
|
-
*
|
|
3092
|
-
* THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
|
|
3093
|
-
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
3094
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
3095
|
-
* DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
|
|
3096
|
-
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
3097
|
-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
|
|
3098
|
-
* BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
|
|
3099
|
-
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
3100
|
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
|
|
3101
|
-
* SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
3102
|
-
*****************************************************************************/
|
|
3103
|
-
/** Loads skeleton data in the Spine binary format.
|
|
3104
|
-
*
|
|
3105
|
-
* See [Spine binary format](http://esotericsoftware.com/spine-binary-format) and
|
|
3106
|
-
* [JSON and binary data](http://esotericsoftware.com/spine-loading-skeleton-data#JSON-and-binary-data) in the Spine
|
|
3107
|
-
* Runtimes Guide. */
|
|
3108
|
-
declare class SkeletonBinary {
|
|
3109
|
-
constructor(attachmentLoader: any);
|
|
3110
|
-
/** Scales bone positions, image sizes, and translations as they are loaded. This allows different size images to be used at
|
|
3111
|
-
* runtime than were used in Spine.
|
|
3112
|
-
*
|
|
3113
|
-
* See [Scaling](http://esotericsoftware.com/spine-loading-skeleton-data#Scaling) in the Spine Runtimes Guide. */
|
|
3114
|
-
scale: number;
|
|
3115
|
-
linkedMeshes: any[];
|
|
3116
|
-
attachmentLoader: any;
|
|
3117
|
-
readSkeletonData(binary: any): SkeletonData;
|
|
3118
|
-
readSkin(input: any, skeletonData: any, defaultSkin: any, nonessential: any): Skin | null;
|
|
3119
|
-
readAttachment(input: any, skeletonData: any, skin: any, slotIndex: any, attachmentName: any, nonessential: any): any;
|
|
3120
|
-
readSequence(input: any): Sequence | null;
|
|
3121
|
-
readVertices(input: any, vertexCount: any): Vertices;
|
|
3122
|
-
readFloatArray(input: any, n: any, scale: any): any[];
|
|
3123
|
-
readShortArray(input: any): any[];
|
|
3124
|
-
readAnimation(input: any, name: any, skeletonData: any): Animation;
|
|
3125
|
-
}
|
|
3126
|
-
/******************************************************************************
|
|
3127
|
-
* Spine Runtimes License Agreement
|
|
3128
|
-
* Last updated July 28, 2023. Replaces all prior versions.
|
|
3129
|
-
*
|
|
3130
|
-
* Copyright (c) 2013-2023, Esoteric Software LLC
|
|
3131
|
-
*
|
|
3132
|
-
* Integration of the Spine Runtimes into software or otherwise creating
|
|
3133
|
-
* derivative works of the Spine Runtimes is permitted under the terms and
|
|
3134
|
-
* conditions of Section 2 of the Spine Editor License Agreement:
|
|
3135
|
-
* http://esotericsoftware.com/spine-editor-license
|
|
3136
|
-
*
|
|
3137
|
-
* Otherwise, it is permitted to integrate the Spine Runtimes into software or
|
|
3138
|
-
* otherwise create derivative works of the Spine Runtimes (collectively,
|
|
3139
|
-
* "Products"), provided that each user of the Products must obtain their own
|
|
3140
|
-
* Spine Editor license and redistribution of the Products in any form must
|
|
3141
|
-
* include this license and copyright notice.
|
|
3142
|
-
*
|
|
3143
|
-
* THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
|
|
3144
|
-
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
3145
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
3146
|
-
* DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
|
|
3147
|
-
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
3148
|
-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
|
|
3149
|
-
* BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
|
|
3150
|
-
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
3151
|
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
|
|
3152
|
-
* SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
3153
|
-
*****************************************************************************/
|
|
3154
|
-
/** Collects each visible {@link BoundingBoxAttachment} and computes the world vertices for its polygon. The polygon vertices are
|
|
3155
|
-
* provided along with convenience methods for doing hit detection. */
|
|
3156
|
-
declare class SkeletonBounds {
|
|
3157
|
-
/** The left edge of the axis aligned bounding box. */
|
|
3158
|
-
minX: number;
|
|
3159
|
-
/** The bottom edge of the axis aligned bounding box. */
|
|
3160
|
-
minY: number;
|
|
3161
|
-
/** The right edge of the axis aligned bounding box. */
|
|
3162
|
-
maxX: number;
|
|
3163
|
-
/** The top edge of the axis aligned bounding box. */
|
|
3164
|
-
maxY: number;
|
|
3165
|
-
/** The visible bounding boxes. */
|
|
3166
|
-
boundingBoxes: any[];
|
|
3167
|
-
/** The world vertices for the bounding box polygons. */
|
|
3168
|
-
polygons: any[];
|
|
3169
|
-
polygonPool: Pool;
|
|
3170
|
-
/** Clears any previous polygons, finds all visible bounding box attachments, and computes the world vertices for each bounding
|
|
3171
|
-
* box's polygon.
|
|
3172
|
-
* @param updateAabb If true, the axis aligned bounding box containing all the polygons is computed. If false, the
|
|
3173
|
-
* SkeletonBounds AABB methods will always return true. */
|
|
3174
|
-
update(skeleton: any, updateAabb: any): void;
|
|
3175
|
-
aabbCompute(): void;
|
|
3176
|
-
/** Returns true if the axis aligned bounding box contains the point. */
|
|
3177
|
-
aabbContainsPoint(x: any, y: any): boolean;
|
|
3178
|
-
/** Returns true if the axis aligned bounding box intersects the line segment. */
|
|
3179
|
-
aabbIntersectsSegment(x1: any, y1: any, x2: any, y2: any): boolean;
|
|
3180
|
-
/** Returns true if the axis aligned bounding box intersects the axis aligned bounding box of the specified bounds. */
|
|
3181
|
-
aabbIntersectsSkeleton(bounds: any): boolean;
|
|
3182
|
-
/** Returns the first bounding box attachment that contains the point, or null. When doing many checks, it is usually more
|
|
3183
|
-
* efficient to only call this method if {@link #aabbContainsPoint(float, float)} returns true. */
|
|
3184
|
-
containsPoint(x: any, y: any): any;
|
|
3185
|
-
/** Returns true if the polygon contains the point. */
|
|
3186
|
-
containsPointPolygon(polygon: any, x: any, y: any): boolean;
|
|
3187
|
-
/** Returns the first bounding box attachment that contains any part of the line segment, or null. When doing many checks, it
|
|
3188
|
-
* is usually more efficient to only call this method if {@link #aabbIntersectsSegment()} returns
|
|
3189
|
-
* true. */
|
|
3190
|
-
intersectsSegment(x1: any, y1: any, x2: any, y2: any): any;
|
|
3191
|
-
/** Returns true if the polygon contains any part of the line segment. */
|
|
3192
|
-
intersectsSegmentPolygon(polygon: any, x1: any, y1: any, x2: any, y2: any): boolean;
|
|
3193
|
-
/** Returns the polygon for the specified bounding box, or null. */
|
|
3194
|
-
getPolygon(boundingBox: any): any;
|
|
3195
|
-
/** The width of the axis aligned bounding box. */
|
|
3196
|
-
getWidth(): number;
|
|
3197
|
-
/** The height of the axis aligned bounding box. */
|
|
3198
|
-
getHeight(): number;
|
|
3199
|
-
}
|
|
3200
|
-
/******************************************************************************
|
|
3201
|
-
* Spine Runtimes License Agreement
|
|
3202
|
-
* Last updated July 28, 2023. Replaces all prior versions.
|
|
3203
|
-
*
|
|
3204
|
-
* Copyright (c) 2013-2023, Esoteric Software LLC
|
|
3205
|
-
*
|
|
3206
|
-
* Integration of the Spine Runtimes into software or otherwise creating
|
|
3207
|
-
* derivative works of the Spine Runtimes is permitted under the terms and
|
|
3208
|
-
* conditions of Section 2 of the Spine Editor License Agreement:
|
|
3209
|
-
* http://esotericsoftware.com/spine-editor-license
|
|
3210
|
-
*
|
|
3211
|
-
* Otherwise, it is permitted to integrate the Spine Runtimes into software or
|
|
3212
|
-
* otherwise create derivative works of the Spine Runtimes (collectively,
|
|
3213
|
-
* "Products"), provided that each user of the Products must obtain their own
|
|
3214
|
-
* Spine Editor license and redistribution of the Products in any form must
|
|
3215
|
-
* include this license and copyright notice.
|
|
3216
|
-
*
|
|
3217
|
-
* THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
|
|
3218
|
-
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
3219
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
3220
|
-
* DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
|
|
3221
|
-
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
3222
|
-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
|
|
3223
|
-
* BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
|
|
3224
|
-
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
3225
|
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
|
|
3226
|
-
* SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
3227
|
-
*****************************************************************************/
|
|
3228
|
-
declare class SkeletonClipping {
|
|
3229
|
-
static makeClockwise(polygon: any): void;
|
|
3230
|
-
triangulator: Triangulator;
|
|
3231
|
-
clippingPolygon: any[];
|
|
3232
|
-
clipOutput: any[];
|
|
3233
|
-
clippedVertices: any[];
|
|
3234
|
-
clippedTriangles: any[];
|
|
3235
|
-
scratch: any[];
|
|
3236
|
-
clipAttachment: any;
|
|
3237
|
-
clippingPolygons: any[] | null;
|
|
3238
|
-
clipStart(slot: any, clip: any): number;
|
|
3239
|
-
clipEndWithSlot(slot: any): void;
|
|
3240
|
-
clipEnd(): void;
|
|
3241
|
-
isClipping(): boolean;
|
|
3242
|
-
clipTriangles(vertices: any, verticesLength: any, triangles: any, trianglesLength: any, uvs: any, light: any, dark: any, twoColor: any): void;
|
|
3243
|
-
/** Clips the input triangle against the convex, clockwise clipping area. If the triangle lies entirely within the clipping
|
|
3244
|
-
* area, false is returned. The clipping area must duplicate the first vertex at the end of the vertices list. */
|
|
3245
|
-
clip(x1: any, y1: any, x2: any, y2: any, x3: any, y3: any, clippingArea: any, output: any): boolean;
|
|
3246
|
-
}
|
|
3247
|
-
/******************************************************************************
|
|
3248
|
-
* Spine Runtimes License Agreement
|
|
3249
|
-
* Last updated July 28, 2023. Replaces all prior versions.
|
|
3250
|
-
*
|
|
3251
|
-
* Copyright (c) 2013-2023, Esoteric Software LLC
|
|
3252
|
-
*
|
|
3253
|
-
* Integration of the Spine Runtimes into software or otherwise creating
|
|
3254
|
-
* derivative works of the Spine Runtimes is permitted under the terms and
|
|
3255
|
-
* conditions of Section 2 of the Spine Editor License Agreement:
|
|
3256
|
-
* http://esotericsoftware.com/spine-editor-license
|
|
3257
|
-
*
|
|
3258
|
-
* Otherwise, it is permitted to integrate the Spine Runtimes into software or
|
|
3259
|
-
* otherwise create derivative works of the Spine Runtimes (collectively,
|
|
3260
|
-
* "Products"), provided that each user of the Products must obtain their own
|
|
3261
|
-
* Spine Editor license and redistribution of the Products in any form must
|
|
3262
|
-
* include this license and copyright notice.
|
|
3263
|
-
*
|
|
3264
|
-
* THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
|
|
3265
|
-
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
3266
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
3267
|
-
* DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
|
|
3268
|
-
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
3269
|
-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
|
|
3270
|
-
* BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
|
|
3271
|
-
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
3272
|
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
|
|
3273
|
-
* SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
3274
|
-
*****************************************************************************/
|
|
3275
|
-
/** Stores the setup pose and all of the stateless data for a skeleton.
|
|
3276
|
-
*
|
|
3277
|
-
* See [Data objects](http://esotericsoftware.com/spine-runtime-architecture#Data-objects) in the Spine Runtimes
|
|
3278
|
-
* Guide. */
|
|
3279
|
-
declare class SkeletonData {
|
|
3280
|
-
/** The skeleton's name, which by default is the name of the skeleton data file, if possible. May be null. */
|
|
3281
|
-
name: any;
|
|
3282
|
-
/** The skeleton's bones, sorted parent first. The root bone is always the first bone. */
|
|
3283
|
-
bones: any[];
|
|
3284
|
-
/** The skeleton's slots. */
|
|
3285
|
-
slots: any[];
|
|
3286
|
-
skins: any[];
|
|
3287
|
-
/** The skeleton's default skin. By default this skin contains all attachments that were not in a skin in Spine.
|
|
3288
|
-
*
|
|
3289
|
-
* See {@link Skeleton#getAttachmentByName()}.
|
|
3290
|
-
* May be null. */
|
|
3291
|
-
defaultSkin: any;
|
|
3292
|
-
/** The skeleton's events. */
|
|
3293
|
-
events: any[];
|
|
3294
|
-
/** The skeleton's animations. */
|
|
3295
|
-
animations: any[];
|
|
3296
|
-
/** The skeleton's IK constraints. */
|
|
3297
|
-
ikConstraints: any[];
|
|
3298
|
-
/** The skeleton's transform constraints. */
|
|
3299
|
-
transformConstraints: any[];
|
|
3300
|
-
/** The skeleton's path constraints. */
|
|
3301
|
-
pathConstraints: any[];
|
|
3302
|
-
/** The X coordinate of the skeleton's axis aligned bounding box in the setup pose. */
|
|
3303
|
-
x: number;
|
|
3304
|
-
/** The Y coordinate of the skeleton's axis aligned bounding box in the setup pose. */
|
|
3305
|
-
y: number;
|
|
3306
|
-
/** The width of the skeleton's axis aligned bounding box in the setup pose. */
|
|
3307
|
-
width: number;
|
|
3308
|
-
/** The height of the skeleton's axis aligned bounding box in the setup pose. */
|
|
3309
|
-
height: number;
|
|
3310
|
-
/** The Spine version used to export the skeleton data, or null. */
|
|
3311
|
-
version: any;
|
|
3312
|
-
/** The skeleton data hash. This value will change if any of the skeleton data has changed. May be null. */
|
|
3313
|
-
hash: any;
|
|
3314
|
-
/** The dopesheet FPS in Spine. Available only when nonessential data was exported. */
|
|
3315
|
-
fps: number;
|
|
3316
|
-
/** The path to the images directory as defined in Spine. Available only when nonessential data was exported. May be null. */
|
|
3317
|
-
imagesPath: any;
|
|
3318
|
-
/** The path to the audio directory as defined in Spine. Available only when nonessential data was exported. May be null. */
|
|
3319
|
-
audioPath: any;
|
|
3320
|
-
/** Finds a bone by comparing each bone's name. It is more efficient to cache the results of this method than to call it
|
|
3321
|
-
* multiple times.
|
|
3322
|
-
* @returns May be null. */
|
|
3323
|
-
findBone(boneName: any): any;
|
|
3324
|
-
/** Finds a slot by comparing each slot's name. It is more efficient to cache the results of this method than to call it
|
|
3325
|
-
* multiple times.
|
|
3326
|
-
* @returns May be null. */
|
|
3327
|
-
findSlot(slotName: any): any;
|
|
3328
|
-
/** Finds a skin by comparing each skin's name. It is more efficient to cache the results of this method than to call it
|
|
3329
|
-
* multiple times.
|
|
3330
|
-
* @returns May be null. */
|
|
3331
|
-
findSkin(skinName: any): any;
|
|
3332
|
-
/** Finds an event by comparing each events's name. It is more efficient to cache the results of this method than to call it
|
|
3333
|
-
* multiple times.
|
|
3334
|
-
* @returns May be null. */
|
|
3335
|
-
findEvent(eventDataName: any): any;
|
|
3336
|
-
/** Finds an animation by comparing each animation's name. It is more efficient to cache the results of this method than to
|
|
3337
|
-
* call it multiple times.
|
|
3338
|
-
* @returns May be null. */
|
|
3339
|
-
findAnimation(animationName: any): any;
|
|
3340
|
-
/** Finds an IK constraint by comparing each IK constraint's name. It is more efficient to cache the results of this method
|
|
3341
|
-
* than to call it multiple times.
|
|
3342
|
-
* @return May be null. */
|
|
3343
|
-
findIkConstraint(constraintName: any): any;
|
|
3344
|
-
/** Finds a transform constraint by comparing each transform constraint's name. It is more efficient to cache the results of
|
|
3345
|
-
* this method than to call it multiple times.
|
|
3346
|
-
* @return May be null. */
|
|
3347
|
-
findTransformConstraint(constraintName: any): any;
|
|
3348
|
-
/** Finds a path constraint by comparing each path constraint's name. It is more efficient to cache the results of this method
|
|
3349
|
-
* than to call it multiple times.
|
|
3350
|
-
* @return May be null. */
|
|
3351
|
-
findPathConstraint(constraintName: any): any;
|
|
3352
|
-
}
|
|
3353
|
-
/******************************************************************************
|
|
3354
|
-
* Spine Runtimes License Agreement
|
|
3355
|
-
* Last updated July 28, 2023. Replaces all prior versions.
|
|
3356
|
-
*
|
|
3357
|
-
* Copyright (c) 2013-2023, Esoteric Software LLC
|
|
3358
|
-
*
|
|
3359
|
-
* Integration of the Spine Runtimes into software or otherwise creating
|
|
3360
|
-
* derivative works of the Spine Runtimes is permitted under the terms and
|
|
3361
|
-
* conditions of Section 2 of the Spine Editor License Agreement:
|
|
3362
|
-
* http://esotericsoftware.com/spine-editor-license
|
|
3363
|
-
*
|
|
3364
|
-
* Otherwise, it is permitted to integrate the Spine Runtimes into software or
|
|
3365
|
-
* otherwise create derivative works of the Spine Runtimes (collectively,
|
|
3366
|
-
* "Products"), provided that each user of the Products must obtain their own
|
|
3367
|
-
* Spine Editor license and redistribution of the Products in any form must
|
|
3368
|
-
* include this license and copyright notice.
|
|
3369
|
-
*
|
|
3370
|
-
* THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
|
|
3371
|
-
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
3372
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
3373
|
-
* DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
|
|
3374
|
-
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
3375
|
-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
|
|
3376
|
-
* BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
|
|
3377
|
-
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
3378
|
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
|
|
3379
|
-
* SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
3380
|
-
*****************************************************************************/
|
|
3381
|
-
declare class SkeletonDebugRenderer {
|
|
3382
|
-
constructor(context: any);
|
|
3383
|
-
boneLineColor: Color;
|
|
3384
|
-
boneOriginColor: Color;
|
|
3385
|
-
attachmentLineColor: Color;
|
|
3386
|
-
triangleLineColor: Color;
|
|
3387
|
-
pathColor: Color;
|
|
3388
|
-
clipColor: Color;
|
|
3389
|
-
aabbColor: Color;
|
|
3390
|
-
drawBones: boolean;
|
|
3391
|
-
drawRegionAttachments: boolean;
|
|
3392
|
-
drawBoundingBoxes: boolean;
|
|
3393
|
-
drawMeshHull: boolean;
|
|
3394
|
-
drawMeshTriangles: boolean;
|
|
3395
|
-
drawPaths: boolean;
|
|
3396
|
-
drawSkeletonXY: boolean;
|
|
3397
|
-
drawClipping: boolean;
|
|
3398
|
-
premultipliedAlpha: boolean;
|
|
3399
|
-
scale: number;
|
|
3400
|
-
boneWidth: number;
|
|
3401
|
-
bounds: SkeletonBounds;
|
|
3402
|
-
temp: any[];
|
|
3403
|
-
vertices: any[] | Float32Array;
|
|
3404
|
-
context: ManagedWebGLRenderingContext;
|
|
3405
|
-
draw(shapes: any, skeleton: any, ignoredBones: any): void;
|
|
3406
|
-
dispose(): void;
|
|
3407
|
-
}
|
|
3408
|
-
declare namespace SkeletonDebugRenderer {
|
|
3409
|
-
export let LIGHT_GRAY: Color;
|
|
3410
|
-
let GREEN_1: Color;
|
|
3411
|
-
export { GREEN_1 as GREEN };
|
|
3412
|
-
}
|
|
3413
|
-
/******************************************************************************
|
|
3414
|
-
* Spine Runtimes License Agreement
|
|
3415
|
-
* Last updated July 28, 2023. Replaces all prior versions.
|
|
3416
|
-
*
|
|
3417
|
-
* Copyright (c) 2013-2023, Esoteric Software LLC
|
|
3418
|
-
*
|
|
3419
|
-
* Integration of the Spine Runtimes into software or otherwise creating
|
|
3420
|
-
* derivative works of the Spine Runtimes is permitted under the terms and
|
|
3421
|
-
* conditions of Section 2 of the Spine Editor License Agreement:
|
|
3422
|
-
* http://esotericsoftware.com/spine-editor-license
|
|
3423
|
-
*
|
|
3424
|
-
* Otherwise, it is permitted to integrate the Spine Runtimes into software or
|
|
3425
|
-
* otherwise create derivative works of the Spine Runtimes (collectively,
|
|
3426
|
-
* "Products"), provided that each user of the Products must obtain their own
|
|
3427
|
-
* Spine Editor license and redistribution of the Products in any form must
|
|
3428
|
-
* include this license and copyright notice.
|
|
3429
|
-
*
|
|
3430
|
-
* THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
|
|
3431
|
-
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
3432
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
3433
|
-
* DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
|
|
3434
|
-
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
3435
|
-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
|
|
3436
|
-
* BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
|
|
3437
|
-
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
3438
|
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
|
|
3439
|
-
* SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
3440
|
-
*****************************************************************************/
|
|
3441
|
-
/** Loads skeleton data in the Spine JSON format.
|
|
3442
|
-
*
|
|
3443
|
-
* See [Spine JSON format](http://esotericsoftware.com/spine-json-format) and
|
|
3444
|
-
* [JSON and binary data](http://esotericsoftware.com/spine-loading-skeleton-data#JSON-and-binary-data) in the Spine
|
|
3445
|
-
* Runtimes Guide. */
|
|
3446
|
-
declare class SkeletonJson {
|
|
3447
|
-
constructor(attachmentLoader: any);
|
|
3448
|
-
/** Scales bone positions, image sizes, and translations as they are loaded. This allows different size images to be used at
|
|
3449
|
-
* runtime than were used in Spine.
|
|
3450
|
-
*
|
|
3451
|
-
* See [Scaling](http://esotericsoftware.com/spine-loading-skeleton-data#Scaling) in the Spine Runtimes Guide. */
|
|
3452
|
-
scale: number;
|
|
3453
|
-
linkedMeshes: any[];
|
|
3454
|
-
attachmentLoader: any;
|
|
3455
|
-
readSkeletonData(json: any): SkeletonData;
|
|
3456
|
-
readAttachment(map: any, skin: any, slotIndex: any, name: any, skeletonData: any): any;
|
|
3457
|
-
readSequence(map: any): Sequence | null;
|
|
3458
|
-
readVertices(map: any, attachment: any, verticesLength: any): void;
|
|
3459
|
-
readAnimation(map: any, name: any, skeletonData: any): void;
|
|
3460
|
-
}
|
|
3461
|
-
declare class Vector2 {
|
|
3462
|
-
constructor(x?: number, y?: number);
|
|
3463
|
-
x: number;
|
|
3464
|
-
y: number;
|
|
3465
|
-
set(x: any, y: any): this;
|
|
3466
|
-
length(): number;
|
|
3467
|
-
normalize(): this;
|
|
3468
|
-
}
|
|
3469
|
-
/** Stores attachments by slot index and attachment name.
|
|
3470
|
-
*
|
|
3471
|
-
* See SkeletonData {@link SkeletonData#defaultSkin}, Skeleton {@link Skeleton#skin}, and
|
|
3472
|
-
* [Runtime skins](http://esotericsoftware.com/spine-runtime-skins) in the Spine Runtimes Guide. */
|
|
3473
|
-
declare class Skin {
|
|
3474
|
-
constructor(name: any);
|
|
3475
|
-
attachments: any[];
|
|
3476
|
-
bones: any[];
|
|
3477
|
-
constraints: any[];
|
|
3478
|
-
name: any;
|
|
3479
|
-
/** Adds an attachment to the skin for the specified slot index and name. */
|
|
3480
|
-
setAttachment(slotIndex: any, name: any, attachment: any): void;
|
|
3481
|
-
/** Adds all attachments, bones, and constraints from the specified skin to this skin. */
|
|
3482
|
-
addSkin(skin: any): void;
|
|
3483
|
-
/** Adds all bones and constraints and copies of all attachments from the specified skin to this skin. Mesh attachments are not
|
|
3484
|
-
* copied, instead a new linked mesh is created. The attachment copies can be modified without affecting the originals. */
|
|
3485
|
-
copySkin(skin: any): void;
|
|
3486
|
-
/** Returns the attachment for the specified slot index and name, or null. */
|
|
3487
|
-
getAttachment(slotIndex: any, name: any): any;
|
|
3488
|
-
/** Removes the attachment in the skin for the specified slot index and name, if any. */
|
|
3489
|
-
removeAttachment(slotIndex: any, name: any): void;
|
|
3490
|
-
/** Returns all attachments in this skin. */
|
|
3491
|
-
getAttachments(): any[];
|
|
3492
|
-
/** Returns all attachments in this skin for the specified slot index. */
|
|
3493
|
-
getAttachmentsForSlot(slotIndex: any, attachments: any): void;
|
|
3494
|
-
/** Clears all attachments, bones, and constraints. */
|
|
3495
|
-
clear(): void;
|
|
3496
|
-
/** Attach each attachment in this skin if the corresponding attachment in the old skin is currently attached. */
|
|
3497
|
-
attachAll(skeleton: any, oldSkin: any): void;
|
|
3498
|
-
}
|
|
3499
|
-
/******************************************************************************
|
|
3500
|
-
* Spine Runtimes License Agreement
|
|
3501
|
-
* Last updated July 28, 2023. Replaces all prior versions.
|
|
3502
|
-
*
|
|
3503
|
-
* Copyright (c) 2013-2023, Esoteric Software LLC
|
|
3504
|
-
*
|
|
3505
|
-
* Integration of the Spine Runtimes into software or otherwise creating
|
|
3506
|
-
* derivative works of the Spine Runtimes is permitted under the terms and
|
|
3507
|
-
* conditions of Section 2 of the Spine Editor License Agreement:
|
|
3508
|
-
* http://esotericsoftware.com/spine-editor-license
|
|
3509
|
-
*
|
|
3510
|
-
* Otherwise, it is permitted to integrate the Spine Runtimes into software or
|
|
3511
|
-
* otherwise create derivative works of the Spine Runtimes (collectively,
|
|
3512
|
-
* "Products"), provided that each user of the Products must obtain their own
|
|
3513
|
-
* Spine Editor license and redistribution of the Products in any form must
|
|
3514
|
-
* include this license and copyright notice.
|
|
3515
|
-
*
|
|
3516
|
-
* THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
|
|
3517
|
-
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
3518
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
3519
|
-
* DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
|
|
3520
|
-
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
3521
|
-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
|
|
3522
|
-
* BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
|
|
3523
|
-
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
3524
|
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
|
|
3525
|
-
* SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
3526
|
-
*****************************************************************************/
|
|
3527
|
-
/** Stores an entry in the skin consisting of the slot index, name, and attachment **/
|
|
3528
|
-
declare class SkinEntry {
|
|
3529
|
-
constructor(slotIndex: number | undefined, name: any, attachment: any);
|
|
3530
|
-
slotIndex: number;
|
|
3531
|
-
name: any;
|
|
3532
|
-
attachment: any;
|
|
3533
|
-
}
|
|
3534
|
-
/******************************************************************************
|
|
3535
|
-
* Spine Runtimes License Agreement
|
|
3536
|
-
* Last updated July 28, 2023. Replaces all prior versions.
|
|
3537
|
-
*
|
|
3538
|
-
* Copyright (c) 2013-2023, Esoteric Software LLC
|
|
3539
|
-
*
|
|
3540
|
-
* Integration of the Spine Runtimes into software or otherwise creating
|
|
3541
|
-
* derivative works of the Spine Runtimes is permitted under the terms and
|
|
3542
|
-
* conditions of Section 2 of the Spine Editor License Agreement:
|
|
3543
|
-
* http://esotericsoftware.com/spine-editor-license
|
|
3544
|
-
*
|
|
3545
|
-
* Otherwise, it is permitted to integrate the Spine Runtimes into software or
|
|
3546
|
-
* otherwise create derivative works of the Spine Runtimes (collectively,
|
|
3547
|
-
* "Products"), provided that each user of the Products must obtain their own
|
|
3548
|
-
* Spine Editor license and redistribution of the Products in any form must
|
|
3549
|
-
* include this license and copyright notice.
|
|
3550
|
-
*
|
|
3551
|
-
* THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
|
|
3552
|
-
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
3553
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
3554
|
-
* DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
|
|
3555
|
-
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
3556
|
-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
|
|
3557
|
-
* BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
|
|
3558
|
-
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
3559
|
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
|
|
3560
|
-
* SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
3561
|
-
*****************************************************************************/
|
|
3562
|
-
/** Stores a slot's current pose. Slots organize attachments for {@link Skeleton#drawOrder} purposes and provide a place to store
|
|
3563
|
-
* state for an attachment. State cannot be stored in an attachment itself because attachments are stateless and may be shared
|
|
3564
|
-
* across multiple skeletons. */
|
|
3565
|
-
declare class Slot {
|
|
3566
|
-
constructor(data: any, bone: any);
|
|
3567
|
-
/** The dark color used to tint the slot's attachment for two color tinting, or null if two color tinting is not used. The dark
|
|
3568
|
-
* color's alpha is not used. */
|
|
3569
|
-
darkColor: Color | null;
|
|
3570
|
-
attachment: any;
|
|
3571
|
-
attachmentState: number;
|
|
3572
|
-
/** The index of the texture region to display when the slot's attachment has a {@link Sequence}. -1 represents the
|
|
3573
|
-
* {@link Sequence#getSetupIndex()}. */
|
|
3574
|
-
sequenceIndex: number;
|
|
3575
|
-
/** Values to deform the slot's attachment. For an unweighted mesh, the entries are local positions for each vertex. For a
|
|
3576
|
-
* weighted mesh, the entries are an offset for each vertex which will be added to the mesh's local vertex positions.
|
|
3577
|
-
*
|
|
3578
|
-
* See {@link VertexAttachment#computeWorldVertices()} and {@link DeformTimeline}. */
|
|
3579
|
-
deform: any[];
|
|
3580
|
-
data: any;
|
|
3581
|
-
bone: any;
|
|
3582
|
-
color: Color;
|
|
3583
|
-
/** The skeleton this slot belongs to. */
|
|
3584
|
-
getSkeleton(): any;
|
|
3585
|
-
/** The current attachment for the slot, or null if the slot has no attachment. */
|
|
3586
|
-
getAttachment(): any;
|
|
3587
|
-
/** Sets the slot's attachment and, if the attachment changed, resets {@link #sequenceIndex} and clears the {@link #deform}.
|
|
3588
|
-
* The deform is not cleared if the old attachment has the same {@link VertexAttachment#getTimelineAttachment()} as the
|
|
3589
|
-
* specified attachment. */
|
|
3590
|
-
setAttachment(attachment: any): void;
|
|
3591
|
-
/** Sets this slot to the setup pose. */
|
|
3592
|
-
setToSetupPose(): void;
|
|
3593
|
-
}
|
|
3594
|
-
/******************************************************************************
|
|
3595
|
-
* Spine Runtimes License Agreement
|
|
3596
|
-
* Last updated July 28, 2023. Replaces all prior versions.
|
|
3597
|
-
*
|
|
3598
|
-
* Copyright (c) 2013-2023, Esoteric Software LLC
|
|
3599
|
-
*
|
|
3600
|
-
* Integration of the Spine Runtimes into software or otherwise creating
|
|
3601
|
-
* derivative works of the Spine Runtimes is permitted under the terms and
|
|
3602
|
-
* conditions of Section 2 of the Spine Editor License Agreement:
|
|
3603
|
-
* http://esotericsoftware.com/spine-editor-license
|
|
3604
|
-
*
|
|
3605
|
-
* Otherwise, it is permitted to integrate the Spine Runtimes into software or
|
|
3606
|
-
* otherwise create derivative works of the Spine Runtimes (collectively,
|
|
3607
|
-
* "Products"), provided that each user of the Products must obtain their own
|
|
3608
|
-
* Spine Editor license and redistribution of the Products in any form must
|
|
3609
|
-
* include this license and copyright notice.
|
|
3610
|
-
*
|
|
3611
|
-
* THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
|
|
3612
|
-
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
3613
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
3614
|
-
* DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
|
|
3615
|
-
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
3616
|
-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
|
|
3617
|
-
* BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
|
|
3618
|
-
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
3619
|
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
|
|
3620
|
-
* SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
3621
|
-
*****************************************************************************/
|
|
3622
|
-
/** Stores the setup pose for a {@link Slot}. */
|
|
3623
|
-
declare class SlotData {
|
|
3624
|
-
constructor(index: any, name: any, boneData: any);
|
|
3625
|
-
/** The index of the slot in {@link Skeleton#getSlots()}. */
|
|
3626
|
-
index: any;
|
|
3627
|
-
/** The color used to tint the slot's attachment. If {@link #getDarkColor()} is set, this is used as the light color for two
|
|
3628
|
-
* color tinting. */
|
|
3629
|
-
color: Color;
|
|
3630
|
-
/** The dark color used to tint the slot's attachment for two color tinting, or null if two color tinting is not used. The dark
|
|
3631
|
-
* color's alpha is not used. */
|
|
3632
|
-
darkColor: any;
|
|
3633
|
-
/** The name of the attachment that is visible for this slot in the setup pose, or null if no attachment is visible. */
|
|
3634
|
-
attachmentName: any;
|
|
3635
|
-
/** The blend mode for drawing the slot's attachment. */
|
|
3636
|
-
blendMode: any;
|
|
3637
|
-
name: any;
|
|
3638
|
-
boneData: any;
|
|
3639
|
-
}
|
|
3640
|
-
/******************************************************************************
|
|
3641
|
-
* Spine Runtimes License Agreement
|
|
3642
|
-
* Last updated July 28, 2023. Replaces all prior versions.
|
|
3643
|
-
*
|
|
3644
|
-
* Copyright (c) 2013-2023, Esoteric Software LLC
|
|
3645
|
-
*
|
|
3646
|
-
* Integration of the Spine Runtimes into software or otherwise creating
|
|
3647
|
-
* derivative works of the Spine Runtimes is permitted under the terms and
|
|
3648
|
-
* conditions of Section 2 of the Spine Editor License Agreement:
|
|
3649
|
-
* http://esotericsoftware.com/spine-editor-license
|
|
3650
|
-
*
|
|
3651
|
-
* Otherwise, it is permitted to integrate the Spine Runtimes into software or
|
|
3652
|
-
* otherwise create derivative works of the Spine Runtimes (collectively,
|
|
3653
|
-
* "Products"), provided that each user of the Products must obtain their own
|
|
3654
|
-
* Spine Editor license and redistribution of the Products in any form must
|
|
3655
|
-
* include this license and copyright notice.
|
|
3656
|
-
*
|
|
3657
|
-
* THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
|
|
3658
|
-
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
3659
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
3660
|
-
* DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
|
|
3661
|
-
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
3662
|
-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
|
|
3663
|
-
* BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
|
|
3664
|
-
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
3665
|
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
|
|
3666
|
-
* SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
3667
|
-
*****************************************************************************/
|
|
3668
|
-
/** Manages the life-cycle and WebGL context of a {@link SpineCanvasApp}. The app loads
|
|
3669
|
-
* assets and initializes itself, then updates and renders its state at the screen refresh rate. */
|
|
3670
|
-
declare class SpineCanvas {
|
|
3671
|
-
/** Constructs a new spine canvas, rendering to the provided HTML canvas. */
|
|
3672
|
-
constructor(canvas: any, config: any);
|
|
3673
|
-
config: any;
|
|
3674
|
-
/** Tracks the current time, delta, and other time related statistics. */
|
|
3675
|
-
time: TimeKeeper;
|
|
3676
|
-
disposed: boolean;
|
|
3677
|
-
htmlCanvas: any;
|
|
3678
|
-
context: ManagedWebGLRenderingContext;
|
|
3679
|
-
renderer: SceneRenderer;
|
|
3680
|
-
gl: any;
|
|
3681
|
-
assetManager: {
|
|
3682
|
-
pathPrefix: string;
|
|
3683
|
-
assets: {};
|
|
3684
|
-
errors: {};
|
|
3685
|
-
toLoad: number;
|
|
3686
|
-
loaded: number;
|
|
3687
|
-
textureLoader: any;
|
|
3688
|
-
downloader: Downloader;
|
|
3689
|
-
start(path: any): string;
|
|
3690
|
-
success(callback: any, path: any, asset: any): void;
|
|
3691
|
-
error(callback: any, path: any, message: any): void;
|
|
3692
|
-
loadAll(): Promise<any>;
|
|
3693
|
-
setRawDataURI(path: any, data: any): void;
|
|
3694
|
-
loadBinary(path: any, success?: () => void, error?: () => void): void;
|
|
3695
|
-
loadText(path: any, success?: () => void, error?: () => void): void;
|
|
3696
|
-
loadJson(path: any, success?: () => void, error?: () => void): void;
|
|
3697
|
-
loadTexture(path: any, success?: () => void, error?: () => void): void;
|
|
3698
|
-
loadTextureAtlas(path: any, success: (() => void) | undefined, error: (() => void) | undefined, fileAlias: any): void;
|
|
3699
|
-
get(path: any): any;
|
|
3700
|
-
require(path: any): any;
|
|
3701
|
-
remove(path: any): any;
|
|
3702
|
-
removeAll(): void;
|
|
3703
|
-
isLoadingComplete(): boolean;
|
|
3704
|
-
getToLoad(): number;
|
|
3705
|
-
getLoaded(): number;
|
|
3706
|
-
dispose(): void;
|
|
3707
|
-
hasErrors(): boolean;
|
|
3708
|
-
getErrors(): {};
|
|
3709
|
-
};
|
|
3710
|
-
input: Input;
|
|
3711
|
-
/** Clears the canvas with the given color. The color values are given in the range [0,1]. */
|
|
3712
|
-
clear(r: any, g: any, b: any, a: any): void;
|
|
3713
|
-
/** Disposes the app, so the update() and render() functions are no longer called. Calls the dispose() callback.*/
|
|
3714
|
-
dispose(): void;
|
|
3715
|
-
}
|
|
3716
|
-
declare class StringSet {
|
|
3717
|
-
entries: {};
|
|
3718
|
-
size: number;
|
|
3719
|
-
add(value: any): boolean;
|
|
3720
|
-
addAll(values: any): boolean;
|
|
3721
|
-
contains(value: any): any;
|
|
3722
|
-
clear(): void;
|
|
3723
|
-
}
|
|
3724
|
-
declare class TexCoordAttribute extends VertexAttribute {
|
|
3725
|
-
constructor(unit?: number);
|
|
3726
|
-
}
|
|
3727
|
-
/******************************************************************************
|
|
3728
|
-
* Spine Runtimes License Agreement
|
|
3729
|
-
* Last updated July 28, 2023. Replaces all prior versions.
|
|
3730
|
-
*
|
|
3731
|
-
* Copyright (c) 2013-2023, Esoteric Software LLC
|
|
3732
|
-
*
|
|
3733
|
-
* Integration of the Spine Runtimes into software or otherwise creating
|
|
3734
|
-
* derivative works of the Spine Runtimes is permitted under the terms and
|
|
3735
|
-
* conditions of Section 2 of the Spine Editor License Agreement:
|
|
3736
|
-
* http://esotericsoftware.com/spine-editor-license
|
|
3737
|
-
*
|
|
3738
|
-
* Otherwise, it is permitted to integrate the Spine Runtimes into software or
|
|
3739
|
-
* otherwise create derivative works of the Spine Runtimes (collectively,
|
|
3740
|
-
* "Products"), provided that each user of the Products must obtain their own
|
|
3741
|
-
* Spine Editor license and redistribution of the Products in any form must
|
|
3742
|
-
* include this license and copyright notice.
|
|
3743
|
-
*
|
|
3744
|
-
* THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
|
|
3745
|
-
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
3746
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
3747
|
-
* DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
|
|
3748
|
-
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
3749
|
-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
|
|
3750
|
-
* BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
|
|
3751
|
-
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
3752
|
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
|
|
3753
|
-
* SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
3754
|
-
*****************************************************************************/
|
|
3755
|
-
declare class Texture {
|
|
3756
|
-
constructor(image: any);
|
|
3757
|
-
_image: any;
|
|
3758
|
-
getImage(): any;
|
|
3759
|
-
}
|
|
3760
|
-
/******************************************************************************
|
|
3761
|
-
* Spine Runtimes License Agreement
|
|
3762
|
-
* Last updated July 28, 2023. Replaces all prior versions.
|
|
3763
|
-
*
|
|
3764
|
-
* Copyright (c) 2013-2023, Esoteric Software LLC
|
|
3765
|
-
*
|
|
3766
|
-
* Integration of the Spine Runtimes into software or otherwise creating
|
|
3767
|
-
* derivative works of the Spine Runtimes is permitted under the terms and
|
|
3768
|
-
* conditions of Section 2 of the Spine Editor License Agreement:
|
|
3769
|
-
* http://esotericsoftware.com/spine-editor-license
|
|
3770
|
-
*
|
|
3771
|
-
* Otherwise, it is permitted to integrate the Spine Runtimes into software or
|
|
3772
|
-
* otherwise create derivative works of the Spine Runtimes (collectively,
|
|
3773
|
-
* "Products"), provided that each user of the Products must obtain their own
|
|
3774
|
-
* Spine Editor license and redistribution of the Products in any form must
|
|
3775
|
-
* include this license and copyright notice.
|
|
3776
|
-
*
|
|
3777
|
-
* THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
|
|
3778
|
-
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
3779
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
3780
|
-
* DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
|
|
3781
|
-
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
3782
|
-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
|
|
3783
|
-
* BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
|
|
3784
|
-
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
3785
|
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
|
|
3786
|
-
* SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
3787
|
-
*****************************************************************************/
|
|
3788
|
-
declare class TextureAtlas {
|
|
3789
|
-
constructor(atlasText: any);
|
|
3790
|
-
pages: any[];
|
|
3791
|
-
regions: any[];
|
|
3792
|
-
findRegion(name: any): any;
|
|
3793
|
-
setTextures(assetManager: any, pathPrefix?: string): void;
|
|
3794
|
-
dispose(): void;
|
|
3795
|
-
}
|
|
3796
|
-
declare class TextureAtlasPage {
|
|
3797
|
-
constructor(name: any);
|
|
3798
|
-
minFilter: any;
|
|
3799
|
-
magFilter: any;
|
|
3800
|
-
uWrap: any;
|
|
3801
|
-
vWrap: any;
|
|
3802
|
-
texture: any;
|
|
3803
|
-
width: number;
|
|
3804
|
-
height: number;
|
|
3805
|
-
pma: boolean;
|
|
3806
|
-
regions: any[];
|
|
3807
|
-
name: any;
|
|
3808
|
-
setTexture(texture: any): void;
|
|
3809
|
-
}
|
|
3810
|
-
declare class TextureAtlasRegion extends TextureRegion {
|
|
3811
|
-
constructor(page: any, name: any);
|
|
3812
|
-
x: number;
|
|
3813
|
-
y: number;
|
|
3814
|
-
index: number;
|
|
3815
|
-
names: any;
|
|
3816
|
-
values: any;
|
|
3817
|
-
page: any;
|
|
3818
|
-
name: any;
|
|
3819
|
-
}
|
|
3820
|
-
declare class TextureRegion {
|
|
3821
|
-
u: number;
|
|
3822
|
-
v: number;
|
|
3823
|
-
u2: number;
|
|
3824
|
-
v2: number;
|
|
3825
|
-
width: number;
|
|
3826
|
-
height: number;
|
|
3827
|
-
degrees: number;
|
|
3828
|
-
offsetX: number;
|
|
3829
|
-
offsetY: number;
|
|
3830
|
-
originalWidth: number;
|
|
3831
|
-
originalHeight: number;
|
|
3832
|
-
}
|
|
3833
|
-
declare class TimeKeeper {
|
|
3834
|
-
maxDelta: number;
|
|
3835
|
-
framesPerSecond: number;
|
|
3836
|
-
delta: number;
|
|
3837
|
-
totalTime: number;
|
|
3838
|
-
lastTime: number;
|
|
3839
|
-
frameCount: number;
|
|
3840
|
-
frameTime: number;
|
|
3841
|
-
update(): void;
|
|
3842
|
-
}
|
|
3843
|
-
/** The interface for all timelines. */
|
|
3844
|
-
declare class Timeline {
|
|
3845
|
-
static search1(frames: any, time: any): number;
|
|
3846
|
-
static search(frames: any, time: any, step: any): number;
|
|
3847
|
-
constructor(frameCount: any, propertyIds: any);
|
|
3848
|
-
propertyIds: any;
|
|
3849
|
-
frames: any[] | Float32Array;
|
|
3850
|
-
getPropertyIds(): any;
|
|
3851
|
-
getFrameEntries(): number;
|
|
3852
|
-
getFrameCount(): number;
|
|
3853
|
-
getDuration(): any;
|
|
3854
|
-
}
|
|
3855
|
-
declare class Touch {
|
|
3856
|
-
constructor(identifier: any, x: any, y: any);
|
|
3857
|
-
identifier: any;
|
|
3858
|
-
x: any;
|
|
3859
|
-
y: any;
|
|
3860
|
-
}
|
|
3861
|
-
/** Stores settings and other state for the playback of an animation on an {@link AnimationState} track.
|
|
3862
|
-
*
|
|
3863
|
-
* References to a track entry must not be kept after the {@link AnimationStateListener#dispose()} event occurs. */
|
|
3864
|
-
declare class TrackEntry {
|
|
3865
|
-
/** The animation to apply for this track entry. */
|
|
3866
|
-
animation: any;
|
|
3867
|
-
previous: any;
|
|
3868
|
-
/** The animation queued to start after this animation, or null. `next` makes up a linked list. */
|
|
3869
|
-
next: any;
|
|
3870
|
-
/** The track entry for the previous animation when mixing from the previous animation to this animation, or null if no
|
|
3871
|
-
* mixing is currently occuring. When mixing from multiple animations, `mixingFrom` makes up a linked list. */
|
|
3872
|
-
mixingFrom: any;
|
|
3873
|
-
/** The track entry for the next animation when mixing from this animation to the next animation, or null if no mixing is
|
|
3874
|
-
* currently occuring. When mixing to multiple animations, `mixingTo` makes up a linked list. */
|
|
3875
|
-
mixingTo: any;
|
|
3876
|
-
/** The listener for events generated by this track entry, or null.
|
|
3877
|
-
*
|
|
3878
|
-
* A track entry returned from {@link AnimationState#setAnimation()} is already the current animation
|
|
3879
|
-
* for the track, so the track entry listener {@link AnimationStateListener#start()} will not be called. */
|
|
3880
|
-
listener: any;
|
|
3881
|
-
/** The index of the track where this track entry is either current or queued.
|
|
3882
|
-
*
|
|
3883
|
-
* See {@link AnimationState#getCurrent()}. */
|
|
3884
|
-
trackIndex: number;
|
|
3885
|
-
/** If true, the animation will repeat. If false it will not, instead its last frame is applied if played beyond its
|
|
3886
|
-
* duration. */
|
|
3887
|
-
loop: boolean;
|
|
3888
|
-
/** If true, when mixing from the previous animation to this animation, the previous animation is applied as normal instead
|
|
3889
|
-
* of being mixed out.
|
|
3890
|
-
*
|
|
3891
|
-
* When mixing between animations that key the same property, if a lower track also keys that property then the value will
|
|
3892
|
-
* briefly dip toward the lower track value during the mix. This happens because the first animation mixes from 100% to 0%
|
|
3893
|
-
* while the second animation mixes from 0% to 100%. Setting `holdPrevious` to true applies the first animation
|
|
3894
|
-
* at 100% during the mix so the lower track value is overwritten. Such dipping does not occur on the lowest track which
|
|
3895
|
-
* keys the property, only when a higher track also keys the property.
|
|
3896
|
-
*
|
|
3897
|
-
* Snapping will occur if `holdPrevious` is true and this animation does not key all the same properties as the
|
|
3898
|
-
* previous animation. */
|
|
3899
|
-
holdPrevious: boolean;
|
|
3900
|
-
reverse: boolean;
|
|
3901
|
-
shortestRotation: boolean;
|
|
3902
|
-
/** When the mix percentage ({@link #mixTime} / {@link #mixDuration}) is less than the
|
|
3903
|
-
* `eventThreshold`, event timelines are applied while this animation is being mixed out. Defaults to 0, so event
|
|
3904
|
-
* timelines are not applied while this animation is being mixed out. */
|
|
3905
|
-
eventThreshold: number;
|
|
3906
|
-
/** When the mix percentage ({@link #mixtime} / {@link #mixDuration}) is less than the
|
|
3907
|
-
* `attachmentThreshold`, attachment timelines are applied while this animation is being mixed out. Defaults to
|
|
3908
|
-
* 0, so attachment timelines are not applied while this animation is being mixed out. */
|
|
3909
|
-
attachmentThreshold: number;
|
|
3910
|
-
/** When the mix percentage ({@link #mixTime} / {@link #mixDuration}) is less than the
|
|
3911
|
-
* `drawOrderThreshold`, draw order timelines are applied while this animation is being mixed out. Defaults to 0,
|
|
3912
|
-
* so draw order timelines are not applied while this animation is being mixed out. */
|
|
3913
|
-
drawOrderThreshold: number;
|
|
3914
|
-
/** Seconds when this animation starts, both initially and after looping. Defaults to 0.
|
|
3915
|
-
*
|
|
3916
|
-
* When changing the `animationStart` time, it often makes sense to set {@link #animationLast} to the same
|
|
3917
|
-
* value to prevent timeline keys before the start time from triggering. */
|
|
3918
|
-
animationStart: number;
|
|
3919
|
-
/** Seconds for the last frame of this animation. Non-looping animations won't play past this time. Looping animations will
|
|
3920
|
-
* loop back to {@link #animationStart} at this time. Defaults to the animation {@link Animation#duration}. */
|
|
3921
|
-
animationEnd: number;
|
|
3922
|
-
/** The time in seconds this animation was last applied. Some timelines use this for one-time triggers. Eg, when this
|
|
3923
|
-
* animation is applied, event timelines will fire all events between the `animationLast` time (exclusive) and
|
|
3924
|
-
* `animationTime` (inclusive). Defaults to -1 to ensure triggers on frame 0 happen the first time this animation
|
|
3925
|
-
* is applied. */
|
|
3926
|
-
animationLast: number;
|
|
3927
|
-
nextAnimationLast: number;
|
|
3928
|
-
/** Seconds to postpone playing the animation. When this track entry is the current track entry, `delay`
|
|
3929
|
-
* postpones incrementing the {@link #trackTime}. When this track entry is queued, `delay` is the time from
|
|
3930
|
-
* the start of the previous animation to when this track entry will become the current track entry (ie when the previous
|
|
3931
|
-
* track entry {@link TrackEntry#trackTime} >= this track entry's `delay`).
|
|
3932
|
-
*
|
|
3933
|
-
* {@link #timeScale} affects the delay. */
|
|
3934
|
-
delay: number;
|
|
3935
|
-
/** Current time in seconds this track entry has been the current track entry. The track time determines
|
|
3936
|
-
* {@link #animationTime}. The track time can be set to start the animation at a time other than 0, without affecting
|
|
3937
|
-
* looping. */
|
|
3938
|
-
trackTime: number;
|
|
3939
|
-
trackLast: number;
|
|
3940
|
-
nextTrackLast: number;
|
|
3941
|
-
/** The track time in seconds when this animation will be removed from the track. Defaults to the highest possible float
|
|
3942
|
-
* value, meaning the animation will be applied until a new animation is set or the track is cleared. If the track end time
|
|
3943
|
-
* is reached, no other animations are queued for playback, and mixing from any previous animations is complete, then the
|
|
3944
|
-
* properties keyed by the animation are set to the setup pose and the track is cleared.
|
|
3945
|
-
*
|
|
3946
|
-
* It may be desired to use {@link AnimationState#addEmptyAnimation()} rather than have the animation
|
|
3947
|
-
* abruptly cease being applied. */
|
|
3948
|
-
trackEnd: number;
|
|
3949
|
-
/** Multiplier for the delta time when this track entry is updated, causing time for this animation to pass slower or
|
|
3950
|
-
* faster. Defaults to 1.
|
|
3951
|
-
*
|
|
3952
|
-
* {@link #mixTime} is not affected by track entry time scale, so {@link #mixDuration} may need to be adjusted to
|
|
3953
|
-
* match the animation speed.
|
|
3954
|
-
*
|
|
3955
|
-
* When using {@link AnimationState#addAnimation()} with a `delay` <= 0, note the
|
|
3956
|
-
* {@link #delay} is set using the mix duration from the {@link AnimationStateData}, assuming time scale to be 1. If
|
|
3957
|
-
* the time scale is not 1, the delay may need to be adjusted.
|
|
3958
|
-
*
|
|
3959
|
-
* See AnimationState {@link AnimationState#timeScale} for affecting all animations. */
|
|
3960
|
-
timeScale: number;
|
|
3961
|
-
/** Values < 1 mix this animation with the skeleton's current pose (usually the pose resulting from lower tracks). Defaults
|
|
3962
|
-
* to 1, which overwrites the skeleton's current pose with this animation.
|
|
3963
|
-
*
|
|
3964
|
-
* Typically track 0 is used to completely pose the skeleton, then alpha is used on higher tracks. It doesn't make sense to
|
|
3965
|
-
* use alpha on track 0 if the skeleton pose is from the last frame render. */
|
|
3966
|
-
alpha: number;
|
|
3967
|
-
/** Seconds from 0 to the {@link #getMixDuration()} when mixing from the previous animation to this animation. May be
|
|
3968
|
-
* slightly more than `mixDuration` when the mix is complete. */
|
|
3969
|
-
mixTime: number;
|
|
3970
|
-
/** Seconds for mixing from the previous animation to this animation. Defaults to the value provided by AnimationStateData
|
|
3971
|
-
* {@link AnimationStateData#getMix()} based on the animation before this animation (if any).
|
|
3972
|
-
*
|
|
3973
|
-
* A mix duration of 0 still mixes out over one frame to provide the track entry being mixed out a chance to revert the
|
|
3974
|
-
* properties it was animating.
|
|
3975
|
-
*
|
|
3976
|
-
* The `mixDuration` can be set manually rather than use the value from
|
|
3977
|
-
* {@link AnimationStateData#getMix()}. In that case, the `mixDuration` can be set for a new
|
|
3978
|
-
* track entry only before {@link AnimationState#update(float)} is first called.
|
|
3979
|
-
*
|
|
3980
|
-
* When using {@link AnimationState#addAnimation()} with a `delay` <= 0, note the
|
|
3981
|
-
* {@link #delay} is set using the mix duration from the {@link AnimationStateData}, not a mix duration set
|
|
3982
|
-
* afterward. */
|
|
3983
|
-
mixDuration: number;
|
|
3984
|
-
interruptAlpha: number;
|
|
3985
|
-
totalAlpha: number;
|
|
3986
|
-
/** Controls how properties keyed in the animation are mixed with lower tracks. Defaults to {@link MixBlend#replace}, which
|
|
3987
|
-
* replaces the values from the lower tracks with the animation values. {@link MixBlend#add} adds the animation values to
|
|
3988
|
-
* the values from the lower tracks.
|
|
3989
|
-
*
|
|
3990
|
-
* The `mixBlend` can be set for a new track entry only before {@link AnimationState#apply()} is first
|
|
3991
|
-
* called. */
|
|
3992
|
-
mixBlend: any;
|
|
3993
|
-
timelineMode: any[];
|
|
3994
|
-
timelineHoldMix: any[];
|
|
3995
|
-
timelinesRotation: any[];
|
|
3996
|
-
reset(): void;
|
|
3997
|
-
/** Uses {@link #trackTime} to compute the `animationTime`, which is between {@link #animationStart}
|
|
3998
|
-
* and {@link #animationEnd}. When the `trackTime` is 0, the `animationTime` is equal to the
|
|
3999
|
-
* `animationStart` time. */
|
|
4000
|
-
getAnimationTime(): number;
|
|
4001
|
-
setAnimationLast(animationLast: any): void;
|
|
4002
|
-
/** Returns true if at least one loop has been completed.
|
|
4003
|
-
*
|
|
4004
|
-
* See {@link AnimationStateListener#complete()}. */
|
|
4005
|
-
isComplete(): boolean;
|
|
4006
|
-
/** Resets the rotation directions for mixing this entry's rotate timelines. This can be useful to avoid bones rotating the
|
|
4007
|
-
* long way around when using {@link #alpha} and starting animations on other tracks.
|
|
4008
|
-
*
|
|
4009
|
-
* Mixing with {@link MixBlend#replace} involves finding a rotation between two others, which has two possible solutions:
|
|
4010
|
-
* the short way or the long way around. The two rotations likely change over time, so which direction is the short or long
|
|
4011
|
-
* way also changes. If the short way was always chosen, bones would flip to the other side when that direction became the
|
|
4012
|
-
* long way. TrackEntry chooses the short way the first time it is applied and remembers that direction. */
|
|
4013
|
-
resetRotationDirections(): void;
|
|
4014
|
-
getTrackComplete(): number;
|
|
4015
|
-
}
|
|
4016
|
-
/******************************************************************************
|
|
4017
|
-
* Spine Runtimes License Agreement
|
|
4018
|
-
* Last updated July 28, 2023. Replaces all prior versions.
|
|
4019
|
-
*
|
|
4020
|
-
* Copyright (c) 2013-2023, Esoteric Software LLC
|
|
4021
|
-
*
|
|
4022
|
-
* Integration of the Spine Runtimes into software or otherwise creating
|
|
4023
|
-
* derivative works of the Spine Runtimes is permitted under the terms and
|
|
4024
|
-
* conditions of Section 2 of the Spine Editor License Agreement:
|
|
4025
|
-
* http://esotericsoftware.com/spine-editor-license
|
|
4026
|
-
*
|
|
4027
|
-
* Otherwise, it is permitted to integrate the Spine Runtimes into software or
|
|
4028
|
-
* otherwise create derivative works of the Spine Runtimes (collectively,
|
|
4029
|
-
* "Products"), provided that each user of the Products must obtain their own
|
|
4030
|
-
* Spine Editor license and redistribution of the Products in any form must
|
|
4031
|
-
* include this license and copyright notice.
|
|
4032
|
-
*
|
|
4033
|
-
* THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
|
|
4034
|
-
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
4035
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
4036
|
-
* DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
|
|
4037
|
-
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
4038
|
-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
|
|
4039
|
-
* BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
|
|
4040
|
-
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
4041
|
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
|
|
4042
|
-
* SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
4043
|
-
*****************************************************************************/
|
|
4044
|
-
/** Stores the current pose for a transform constraint. A transform constraint adjusts the world transform of the constrained
|
|
4045
|
-
* bones to match that of the target bone.
|
|
4046
|
-
*
|
|
4047
|
-
* See [Transform constraints](http://esotericsoftware.com/spine-transform-constraints) in the Spine User Guide. */
|
|
4048
|
-
declare class TransformConstraint {
|
|
4049
|
-
constructor(data: any, skeleton: any);
|
|
4050
|
-
mixRotate: any;
|
|
4051
|
-
mixX: any;
|
|
4052
|
-
mixY: any;
|
|
4053
|
-
mixScaleX: any;
|
|
4054
|
-
mixScaleY: any;
|
|
4055
|
-
mixShearY: any;
|
|
4056
|
-
temp: Vector2;
|
|
4057
|
-
active: boolean;
|
|
4058
|
-
data: any;
|
|
4059
|
-
bones: any[];
|
|
4060
|
-
target: any;
|
|
4061
|
-
isActive(): boolean;
|
|
4062
|
-
update(): void;
|
|
4063
|
-
applyAbsoluteWorld(): void;
|
|
4064
|
-
applyRelativeWorld(): void;
|
|
4065
|
-
applyAbsoluteLocal(): void;
|
|
4066
|
-
applyRelativeLocal(): void;
|
|
4067
|
-
}
|
|
4068
|
-
/******************************************************************************
|
|
4069
|
-
* Spine Runtimes License Agreement
|
|
4070
|
-
* Last updated July 28, 2023. Replaces all prior versions.
|
|
4071
|
-
*
|
|
4072
|
-
* Copyright (c) 2013-2023, Esoteric Software LLC
|
|
4073
|
-
*
|
|
4074
|
-
* Integration of the Spine Runtimes into software or otherwise creating
|
|
4075
|
-
* derivative works of the Spine Runtimes is permitted under the terms and
|
|
4076
|
-
* conditions of Section 2 of the Spine Editor License Agreement:
|
|
4077
|
-
* http://esotericsoftware.com/spine-editor-license
|
|
4078
|
-
*
|
|
4079
|
-
* Otherwise, it is permitted to integrate the Spine Runtimes into software or
|
|
4080
|
-
* otherwise create derivative works of the Spine Runtimes (collectively,
|
|
4081
|
-
* "Products"), provided that each user of the Products must obtain their own
|
|
4082
|
-
* Spine Editor license and redistribution of the Products in any form must
|
|
4083
|
-
* include this license and copyright notice.
|
|
4084
|
-
*
|
|
4085
|
-
* THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
|
|
4086
|
-
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
4087
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
4088
|
-
* DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
|
|
4089
|
-
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
4090
|
-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
|
|
4091
|
-
* BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
|
|
4092
|
-
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
4093
|
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
|
|
4094
|
-
* SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
4095
|
-
*****************************************************************************/
|
|
4096
|
-
/** Stores the setup pose for a {@link TransformConstraint}.
|
|
4097
|
-
*
|
|
4098
|
-
* See [Transform constraints](http://esotericsoftware.com/spine-transform-constraints) in the Spine User Guide. */
|
|
4099
|
-
declare class TransformConstraintData extends ConstraintData {
|
|
4100
|
-
constructor(name: any);
|
|
4101
|
-
set target(arg: any);
|
|
4102
|
-
get target(): any;
|
|
4103
|
-
_target: any;
|
|
4104
|
-
/** The bones that will be modified by this transform constraint. */
|
|
4105
|
-
bones: any[];
|
|
4106
|
-
mixRotate: number;
|
|
4107
|
-
mixX: number;
|
|
4108
|
-
mixY: number;
|
|
4109
|
-
mixScaleX: number;
|
|
4110
|
-
mixScaleY: number;
|
|
4111
|
-
mixShearY: number;
|
|
4112
|
-
/** An offset added to the constrained bone rotation. */
|
|
4113
|
-
offsetRotation: number;
|
|
4114
|
-
/** An offset added to the constrained bone X translation. */
|
|
4115
|
-
offsetX: number;
|
|
4116
|
-
/** An offset added to the constrained bone Y translation. */
|
|
4117
|
-
offsetY: number;
|
|
4118
|
-
/** An offset added to the constrained bone scaleX. */
|
|
4119
|
-
offsetScaleX: number;
|
|
4120
|
-
/** An offset added to the constrained bone scaleY. */
|
|
4121
|
-
offsetScaleY: number;
|
|
4122
|
-
/** An offset added to the constrained bone shearY. */
|
|
4123
|
-
offsetShearY: number;
|
|
4124
|
-
relative: boolean;
|
|
4125
|
-
local: boolean;
|
|
4126
|
-
}
|
|
4127
|
-
/** Changes a transform constraint's {@link TransformConstraint#rotateMix}, {@link TransformConstraint#translateMix},
|
|
4128
|
-
* {@link TransformConstraint#scaleMix}, and {@link TransformConstraint#shearMix}. */
|
|
4129
|
-
declare class TransformConstraintTimeline extends CurveTimeline {
|
|
4130
|
-
/** The index of the transform constraint slot in {@link Skeleton#transformConstraints} that will be changed. */
|
|
4131
|
-
transformConstraintIndex: any;
|
|
4132
|
-
/** The time in seconds, rotate mix, translate mix, scale mix, and shear mix for the specified key frame. */
|
|
4133
|
-
setFrame(frame: any, time: any, mixRotate: any, mixX: any, mixY: any, mixScaleX: any, mixScaleY: any, mixShearY: any): void;
|
|
4134
|
-
apply(skeleton: any, lastTime: any, time: any, firedEvents: any, alpha: any, blend: any, direction: any): void;
|
|
4135
|
-
}
|
|
4136
|
-
/** Changes a bone's local {@link Bone#x} and {@link Bone#y}. */
|
|
4137
|
-
declare class TranslateTimeline extends CurveTimeline2 {
|
|
4138
|
-
constructor(frameCount: any, bezierCount: any, boneIndex: any);
|
|
4139
|
-
boneIndex: any;
|
|
4140
|
-
apply(skeleton: any, lastTime: any, time: any, events: any, alpha: any, blend: any, direction: any): void;
|
|
4141
|
-
}
|
|
4142
|
-
/** Changes a bone's local {@link Bone#x}. */
|
|
4143
|
-
declare class TranslateXTimeline extends CurveTimeline1 {
|
|
4144
|
-
boneIndex: any;
|
|
4145
|
-
apply(skeleton: any, lastTime: any, time: any, events: any, alpha: any, blend: any, direction: any): void;
|
|
4146
|
-
}
|
|
4147
|
-
/** Changes a bone's local {@link Bone#x}. */
|
|
4148
|
-
declare class TranslateYTimeline extends CurveTimeline1 {
|
|
4149
|
-
boneIndex: any;
|
|
4150
|
-
apply(skeleton: any, lastTime: any, time: any, events: any, alpha: any, blend: any, direction: any): void;
|
|
4151
|
-
}
|
|
4152
|
-
/******************************************************************************
|
|
4153
|
-
* Spine Runtimes License Agreement
|
|
4154
|
-
* Last updated July 28, 2023. Replaces all prior versions.
|
|
4155
|
-
*
|
|
4156
|
-
* Copyright (c) 2013-2023, Esoteric Software LLC
|
|
4157
|
-
*
|
|
4158
|
-
* Integration of the Spine Runtimes into software or otherwise creating
|
|
4159
|
-
* derivative works of the Spine Runtimes is permitted under the terms and
|
|
4160
|
-
* conditions of Section 2 of the Spine Editor License Agreement:
|
|
4161
|
-
* http://esotericsoftware.com/spine-editor-license
|
|
4162
|
-
*
|
|
4163
|
-
* Otherwise, it is permitted to integrate the Spine Runtimes into software or
|
|
4164
|
-
* otherwise create derivative works of the Spine Runtimes (collectively,
|
|
4165
|
-
* "Products"), provided that each user of the Products must obtain their own
|
|
4166
|
-
* Spine Editor license and redistribution of the Products in any form must
|
|
4167
|
-
* include this license and copyright notice.
|
|
4168
|
-
*
|
|
4169
|
-
* THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
|
|
4170
|
-
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
4171
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
4172
|
-
* DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
|
|
4173
|
-
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
4174
|
-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
|
|
4175
|
-
* BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
|
|
4176
|
-
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
4177
|
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
|
|
4178
|
-
* SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
4179
|
-
*****************************************************************************/
|
|
4180
|
-
declare class Triangulator {
|
|
4181
|
-
static isConcave(index: any, vertexCount: any, vertices: any, indices: any): boolean;
|
|
4182
|
-
static positiveArea(p1x: any, p1y: any, p2x: any, p2y: any, p3x: any, p3y: any): boolean;
|
|
4183
|
-
static winding(p1x: any, p1y: any, p2x: any, p2y: any, p3x: any, p3y: any): 1 | -1;
|
|
4184
|
-
convexPolygons: any[];
|
|
4185
|
-
convexPolygonsIndices: any[];
|
|
4186
|
-
indicesArray: any[];
|
|
4187
|
-
isConcaveArray: any[];
|
|
4188
|
-
triangles: any[];
|
|
4189
|
-
polygonPool: Pool;
|
|
4190
|
-
polygonIndicesPool: Pool;
|
|
4191
|
-
triangulate(verticesArray: any): any[];
|
|
4192
|
-
decompose(verticesArray: any, triangles: any): any[];
|
|
4193
|
-
}
|
|
4194
|
-
declare class Utils {
|
|
4195
|
-
static arrayCopy(source: any, sourceStart: any, dest: any, destStart: any, numElements: any): void;
|
|
4196
|
-
static arrayFill(array: any, fromIndex: any, toIndex: any, value: any): void;
|
|
4197
|
-
static setArraySize(array: any, size: any, value?: number): any;
|
|
4198
|
-
static ensureArrayCapacity(array: any, size: any, value?: number): any;
|
|
4199
|
-
static newArray(size: any, defaultValue: any): any[];
|
|
4200
|
-
static newFloatArray(size: any): any[] | Float32Array;
|
|
4201
|
-
static newShortArray(size: any): any[] | Int16Array;
|
|
4202
|
-
static toFloatArray(array: any): any;
|
|
4203
|
-
static toSinglePrecision(value: any): any;
|
|
4204
|
-
static webkit602BugfixHelper(alpha: any, blend: any): void;
|
|
4205
|
-
static contains(array: any, element: any, identity?: boolean): boolean;
|
|
4206
|
-
static enumValue(type: any, name: any): any;
|
|
4207
|
-
}
|
|
4208
|
-
declare namespace Utils {
|
|
4209
|
-
let SUPPORTS_TYPED_ARRAYS: boolean;
|
|
4210
|
-
}
|
|
4211
|
-
/******************************************************************************
|
|
4212
|
-
* Spine Runtimes License Agreement
|
|
4213
|
-
* Last updated July 28, 2023. Replaces all prior versions.
|
|
4214
|
-
*
|
|
4215
|
-
* Copyright (c) 2013-2023, Esoteric Software LLC
|
|
4216
|
-
*
|
|
4217
|
-
* Integration of the Spine Runtimes into software or otherwise creating
|
|
4218
|
-
* derivative works of the Spine Runtimes is permitted under the terms and
|
|
4219
|
-
* conditions of Section 2 of the Spine Editor License Agreement:
|
|
4220
|
-
* http://esotericsoftware.com/spine-editor-license
|
|
4221
|
-
*
|
|
4222
|
-
* Otherwise, it is permitted to integrate the Spine Runtimes into software or
|
|
4223
|
-
* otherwise create derivative works of the Spine Runtimes (collectively,
|
|
4224
|
-
* "Products"), provided that each user of the Products must obtain their own
|
|
4225
|
-
* Spine Editor license and redistribution of the Products in any form must
|
|
4226
|
-
* include this license and copyright notice.
|
|
4227
|
-
*
|
|
4228
|
-
* THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
|
|
4229
|
-
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
4230
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
4231
|
-
* DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
|
|
4232
|
-
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
4233
|
-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
|
|
4234
|
-
* BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
|
|
4235
|
-
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
4236
|
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
|
|
4237
|
-
* SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
4238
|
-
*****************************************************************************/
|
|
4239
|
-
declare class Vector3 {
|
|
4240
|
-
constructor(x?: number, y?: number, z?: number);
|
|
4241
|
-
x: number;
|
|
4242
|
-
y: number;
|
|
4243
|
-
z: number;
|
|
4244
|
-
setFrom(v: any): this;
|
|
4245
|
-
set(x: any, y: any, z: any): this;
|
|
4246
|
-
add(v: any): this;
|
|
4247
|
-
sub(v: any): this;
|
|
4248
|
-
scale(s: any): this;
|
|
4249
|
-
normalize(): this;
|
|
4250
|
-
cross(v: any): this;
|
|
4251
|
-
multiply(matrix: any): this;
|
|
4252
|
-
project(matrix: any): this;
|
|
4253
|
-
dot(v: any): number;
|
|
4254
|
-
length(): number;
|
|
4255
|
-
distance(v: any): number;
|
|
4256
|
-
}
|
|
4257
|
-
/** Base class for an attachment with vertices that are transformed by one or more bones and can be deformed by a slot's
|
|
4258
|
-
* {@link Slot#deform}. */
|
|
4259
|
-
declare class VertexAttachment extends Attachment {
|
|
4260
|
-
/** The unique ID for this attachment. */
|
|
4261
|
-
id: number;
|
|
4262
|
-
/** The bones which affect the {@link #getVertices()}. The array entries are, for each vertex, the number of bones affecting
|
|
4263
|
-
* the vertex followed by that many bone indices, which is the index of the bone in {@link Skeleton#bones}. Will be null
|
|
4264
|
-
* if this attachment has no weights. */
|
|
4265
|
-
bones: any;
|
|
4266
|
-
/** The vertex positions in the bone's coordinate system. For a non-weighted attachment, the values are `x,y`
|
|
4267
|
-
* entries for each vertex. For a weighted attachment, the values are `x,y,weight` entries for each bone affecting
|
|
4268
|
-
* each vertex. */
|
|
4269
|
-
vertices: any[];
|
|
4270
|
-
/** The maximum number of world vertex values that can be output by
|
|
4271
|
-
* {@link #computeWorldVertices()} using the `count` parameter. */
|
|
4272
|
-
worldVerticesLength: number;
|
|
4273
|
-
/** Timelines for the timeline attachment are also applied to this attachment.
|
|
4274
|
-
* May be null if no attachment-specific timelines should be applied. */
|
|
4275
|
-
timelineAttachment: this;
|
|
4276
|
-
/** Transforms the attachment's local {@link #vertices} to world coordinates. If the slot's {@link Slot#deform} is
|
|
4277
|
-
* not empty, it is used to deform the vertices.
|
|
4278
|
-
*
|
|
4279
|
-
* See [World transforms](http://esotericsoftware.com/spine-runtime-skeletons#World-transforms) in the Spine
|
|
4280
|
-
* Runtimes Guide.
|
|
4281
|
-
* @param start The index of the first {@link #vertices} value to transform. Each vertex has 2 values, x and y.
|
|
4282
|
-
* @param count The number of world vertex values to output. Must be <= {@link #worldVerticesLength} - `start`.
|
|
4283
|
-
* @param worldVertices The output world vertices. Must have a length >= `offset` + `count` *
|
|
4284
|
-
* `stride` / 2.
|
|
4285
|
-
* @param offset The `worldVertices` index to begin writing values.
|
|
4286
|
-
* @param stride The number of `worldVertices` entries between the value pairs written. */
|
|
4287
|
-
computeWorldVertices(slot: any, start: any, count: any, worldVertices: any, offset: any, stride: any): void;
|
|
4288
|
-
/** Does not copy id (generated) or name (set on construction). **/
|
|
4289
|
-
copyTo(attachment: any): void;
|
|
4290
|
-
}
|
|
4291
|
-
declare namespace VertexAttachment {
|
|
4292
|
-
let nextID: number;
|
|
4293
|
-
}
|
|
4294
|
-
declare class VertexAttribute {
|
|
4295
|
-
constructor(name: any, type: any, numElements: any);
|
|
4296
|
-
name: any;
|
|
4297
|
-
type: any;
|
|
4298
|
-
numElements: any;
|
|
4299
|
-
}
|
|
4300
|
-
declare class WindowedMean {
|
|
4301
|
-
constructor(windowSize?: number);
|
|
4302
|
-
addedValues: number;
|
|
4303
|
-
lastValue: number;
|
|
4304
|
-
mean: number;
|
|
4305
|
-
dirty: boolean;
|
|
4306
|
-
values: any[];
|
|
4307
|
-
hasEnoughData(): boolean;
|
|
4308
|
-
addValue(value: any): void;
|
|
4309
|
-
getMean(): number;
|
|
4310
|
-
}
|
|
4311
|
-
/******************************************************************************
|
|
4312
|
-
* Spine Runtimes License Agreement
|
|
4313
|
-
* Last updated July 28, 2023. Replaces all prior versions.
|
|
4314
|
-
*
|
|
4315
|
-
* Copyright (c) 2013-2023, Esoteric Software LLC
|
|
4316
|
-
*
|
|
4317
|
-
* Integration of the Spine Runtimes into software or otherwise creating
|
|
4318
|
-
* derivative works of the Spine Runtimes is permitted under the terms and
|
|
4319
|
-
* conditions of Section 2 of the Spine Editor License Agreement:
|
|
4320
|
-
* http://esotericsoftware.com/spine-editor-license
|
|
4321
|
-
*
|
|
4322
|
-
* Otherwise, it is permitted to integrate the Spine Runtimes into software or
|
|
4323
|
-
* otherwise create derivative works of the Spine Runtimes (collectively,
|
|
4324
|
-
* "Products"), provided that each user of the Products must obtain their own
|
|
4325
|
-
* Spine Editor license and redistribution of the Products in any form must
|
|
4326
|
-
* include this license and copyright notice.
|
|
4327
|
-
*
|
|
4328
|
-
* THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
|
|
4329
|
-
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
4330
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
4331
|
-
* DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
|
|
4332
|
-
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
4333
|
-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
|
|
4334
|
-
* BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
|
|
4335
|
-
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
4336
|
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
|
|
4337
|
-
* SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
4338
|
-
*****************************************************************************/
|
|
4339
|
-
declare class CanvasTexture extends Texture {
|
|
4340
|
-
setFilters(minFilter: any, magFilter: any): void;
|
|
4341
|
-
setWraps(uWrap: any, vWrap: any): void;
|
|
4342
|
-
dispose(): void;
|
|
4343
|
-
}
|
|
4344
|
-
declare class SkeletonRenderer {
|
|
4345
|
-
constructor(runtime: any);
|
|
4346
|
-
skeletonRenderer: any;
|
|
4347
|
-
runtime: any;
|
|
4348
|
-
tintColor: Color$1;
|
|
4349
|
-
tempColor: Color$1;
|
|
4350
|
-
debugRendering: boolean;
|
|
4351
|
-
clipper: SkeletonClipping;
|
|
4352
|
-
clippingVertices: any[];
|
|
4353
|
-
clippingMask: Polygon;
|
|
4354
|
-
draw(renderer: any, skeleton: any): void;
|
|
4355
|
-
drawTriangle(renderer: any, img: any, x0: any, y0: any, u0: any, v0: any, x1: any, y1: any, u1: any, v1: any, x2: any, y2: any, u2: any, v2: any): void;
|
|
4356
|
-
computeMeshVertices(slot: any, mesh: any, pma: boolean | undefined, vertexSize: any): void;
|
|
4357
|
-
}
|
|
4358
|
-
import { Vector2d } from 'melonjs';
|
|
4359
|
-
/******************************************************************************
|
|
4360
|
-
* Spine Runtimes License Agreement
|
|
4361
|
-
* Last updated July 28, 2023. Replaces all prior versions.
|
|
4362
|
-
*
|
|
4363
|
-
* Copyright (c) 2013-2023, Esoteric Software LLC
|
|
4364
|
-
*
|
|
4365
|
-
* Integration of the Spine Runtimes into software or otherwise creating
|
|
4366
|
-
* derivative works of the Spine Runtimes is permitted under the terms and
|
|
4367
|
-
* conditions of Section 2 of the Spine Editor License Agreement:
|
|
4368
|
-
* http://esotericsoftware.com/spine-editor-license
|
|
4369
|
-
*
|
|
4370
|
-
* Otherwise, it is permitted to integrate the Spine Runtimes into software or
|
|
4371
|
-
* otherwise create derivative works of the Spine Runtimes (collectively,
|
|
4372
|
-
* "Products"), provided that each user of the Products must obtain their own
|
|
4373
|
-
* Spine Editor license and redistribution of the Products in any form must
|
|
4374
|
-
* include this license and copyright notice.
|
|
4375
|
-
*
|
|
4376
|
-
* THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
|
|
4377
|
-
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
4378
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
4379
|
-
* DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
|
|
4380
|
-
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
4381
|
-
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
|
|
4382
|
-
* BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
|
|
4383
|
-
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
4384
|
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
|
|
4385
|
-
* SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
4386
|
-
*****************************************************************************/
|
|
4387
|
-
declare class Sequence {
|
|
4388
|
-
static nextID(): number;
|
|
4389
|
-
constructor(count: any);
|
|
4390
|
-
id: number;
|
|
4391
|
-
start: number;
|
|
4392
|
-
digits: number;
|
|
4393
|
-
/** The index of the region to show for the setup pose. */
|
|
4394
|
-
setupIndex: number;
|
|
4395
|
-
regions: any[];
|
|
4396
|
-
copy(): Sequence;
|
|
4397
|
-
apply(slot: any, attachment: any): void;
|
|
4398
|
-
getPath(basePath: any, index: any): any;
|
|
4399
|
-
}
|
|
4400
|
-
declare namespace Sequence {
|
|
4401
|
-
let _nextID: number;
|
|
4402
|
-
}
|
|
4403
|
-
declare class Vertices {
|
|
4404
|
-
constructor(bones?: null, vertices?: null);
|
|
4405
|
-
bones: any;
|
|
4406
|
-
vertices: any;
|
|
4407
|
-
}
|
|
4408
|
-
import { Color as Color$1 } from 'melonjs';
|
|
4409
|
-
import { Polygon } from 'melonjs';
|
|
4410
|
-
export { Spine as default };
|