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