@esotericsoftware/spine-core 4.1.25 → 4.1.28

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.
Files changed (91) hide show
  1. package/README.md +1 -1
  2. package/dist/Animation.d.ts +382 -0
  3. package/dist/Animation.js +2052 -0
  4. package/dist/AnimationState.d.ts +398 -0
  5. package/dist/AnimationState.js +1096 -0
  6. package/dist/AnimationStateData.d.ts +51 -0
  7. package/dist/AnimationStateData.js +70 -0
  8. package/dist/AssetManagerBase.d.ts +75 -0
  9. package/dist/AssetManagerBase.js +320 -0
  10. package/dist/AtlasAttachmentLoader.d.ts +53 -0
  11. package/dist/AtlasAttachmentLoader.js +92 -0
  12. package/dist/Bone.d.ts +138 -0
  13. package/dist/Bone.js +336 -0
  14. package/dist/BoneData.d.ts +72 -0
  15. package/dist/BoneData.js +80 -0
  16. package/dist/ConstraintData.d.ts +35 -0
  17. package/dist/ConstraintData.js +37 -0
  18. package/dist/Event.d.ts +44 -0
  19. package/dist/Event.js +48 -0
  20. package/dist/EventData.d.ts +41 -0
  21. package/dist/EventData.js +43 -0
  22. package/dist/IkConstraint.d.ts +64 -0
  23. package/dist/IkConstraint.js +303 -0
  24. package/dist/IkConstraintData.d.ts +56 -0
  25. package/dist/IkConstraintData.js +63 -0
  26. package/dist/PathConstraint.d.ts +71 -0
  27. package/dist/PathConstraint.js +476 -0
  28. package/dist/PathConstraintData.d.ts +82 -0
  29. package/dist/PathConstraintData.js +91 -0
  30. package/dist/Skeleton.d.ts +163 -0
  31. package/dist/Skeleton.js +588 -0
  32. package/dist/SkeletonBinary.d.ts +68 -0
  33. package/dist/SkeletonBinary.js +1172 -0
  34. package/dist/SkeletonBounds.d.ts +77 -0
  35. package/dist/SkeletonBounds.js +219 -0
  36. package/dist/SkeletonClipping.d.ts +50 -0
  37. package/dist/SkeletonClipping.js +326 -0
  38. package/dist/SkeletonData.d.ts +114 -0
  39. package/dist/SkeletonData.js +190 -0
  40. package/dist/SkeletonJson.d.ts +53 -0
  41. package/dist/SkeletonJson.js +1027 -0
  42. package/dist/Skin.d.ts +71 -0
  43. package/dist/Skin.js +201 -0
  44. package/dist/Slot.d.ts +69 -0
  45. package/dist/Slot.js +93 -0
  46. package/dist/SlotData.d.ts +57 -0
  47. package/dist/SlotData.js +64 -0
  48. package/dist/Texture.d.ts +69 -0
  49. package/dist/Texture.js +73 -0
  50. package/dist/TextureAtlas.d.ts +68 -0
  51. package/dist/TextureAtlas.js +267 -0
  52. package/dist/TransformConstraint.d.ts +60 -0
  53. package/dist/TransformConstraint.js +247 -0
  54. package/dist/TransformConstraintData.d.ts +62 -0
  55. package/dist/TransformConstraintData.js +69 -0
  56. package/dist/Triangulator.d.ts +43 -0
  57. package/dist/Triangulator.js +244 -0
  58. package/dist/Updatable.d.ts +37 -0
  59. package/dist/Updatable.js +30 -0
  60. package/dist/Utils.d.ts +168 -0
  61. package/dist/Utils.js +404 -0
  62. package/dist/attachments/Attachment.d.ts +72 -0
  63. package/dist/attachments/Attachment.js +147 -0
  64. package/dist/attachments/AttachmentLoader.d.ts +54 -0
  65. package/dist/attachments/AttachmentLoader.js +30 -0
  66. package/dist/attachments/BoundingBoxAttachment.d.ts +40 -0
  67. package/dist/attachments/BoundingBoxAttachment.js +48 -0
  68. package/dist/attachments/ClippingAttachment.d.ts +42 -0
  69. package/dist/attachments/ClippingAttachment.js +51 -0
  70. package/dist/attachments/HasTextureRegion.d.ts +44 -0
  71. package/dist/attachments/HasTextureRegion.js +30 -0
  72. package/dist/attachments/MeshAttachment.d.ts +79 -0
  73. package/dist/attachments/MeshAttachment.js +188 -0
  74. package/dist/attachments/PathAttachment.d.ts +47 -0
  75. package/dist/attachments/PathAttachment.js +59 -0
  76. package/dist/attachments/PointAttachment.d.ts +48 -0
  77. package/dist/attachments/PointAttachment.js +66 -0
  78. package/dist/attachments/RegionAttachment.d.ts +110 -0
  79. package/dist/attachments/RegionAttachment.js +213 -0
  80. package/dist/attachments/Sequence.d.ts +55 -0
  81. package/dist/attachments/Sequence.js +91 -0
  82. package/dist/attachments/index.d.ts +8 -0
  83. package/dist/attachments/index.js +9 -0
  84. package/dist/iife/spine-core.js +10708 -0
  85. package/dist/iife/spine-core.js.map +7 -0
  86. package/dist/iife/spine-core.min.js +2 -0
  87. package/dist/index.d.ts +39 -0
  88. package/dist/index.js +40 -0
  89. package/dist/polyfills.d.ts +29 -0
  90. package/dist/polyfills.js +39 -0
  91. package/package.json +1 -1
@@ -0,0 +1,68 @@
1
+ /******************************************************************************
2
+ * Spine Runtimes License Agreement
3
+ * Last updated September 24, 2021. Replaces all prior versions.
4
+ *
5
+ * Copyright (c) 2013-2021, Esoteric Software LLC
6
+ *
7
+ * Integration of the Spine Runtimes into software or otherwise creating
8
+ * derivative works of the Spine Runtimes is permitted under the terms and
9
+ * conditions of Section 2 of the Spine Editor License Agreement:
10
+ * http://esotericsoftware.com/spine-editor-license
11
+ *
12
+ * Otherwise, it is permitted to integrate the Spine Runtimes into software
13
+ * or otherwise create derivative works of the Spine Runtimes (collectively,
14
+ * "Products"), provided that each user of the Products must obtain their own
15
+ * Spine Editor license and redistribution of the Products in any form must
16
+ * include this license and copyright notice.
17
+ *
18
+ * THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
19
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21
+ * DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
22
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
24
+ * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
25
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27
+ * THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
+ *****************************************************************************/
29
+ import { AttachmentLoader } from "./attachments/AttachmentLoader";
30
+ import { SkeletonData } from "./SkeletonData";
31
+ /** Loads skeleton data in the Spine binary format.
32
+ *
33
+ * See [Spine binary format](http://esotericsoftware.com/spine-binary-format) and
34
+ * [JSON and binary data](http://esotericsoftware.com/spine-loading-skeleton-data#JSON-and-binary-data) in the Spine
35
+ * Runtimes Guide. */
36
+ export declare class SkeletonBinary {
37
+ /** Scales bone positions, image sizes, and translations as they are loaded. This allows different size images to be used at
38
+ * runtime than were used in Spine.
39
+ *
40
+ * See [Scaling](http://esotericsoftware.com/spine-loading-skeleton-data#Scaling) in the Spine Runtimes Guide. */
41
+ scale: number;
42
+ attachmentLoader: AttachmentLoader;
43
+ private linkedMeshes;
44
+ constructor(attachmentLoader: AttachmentLoader);
45
+ readSkeletonData(binary: Uint8Array): SkeletonData;
46
+ private readSkin;
47
+ private readAttachment;
48
+ private readSequence;
49
+ private readVertices;
50
+ private readFloatArray;
51
+ private readShortArray;
52
+ private readAnimation;
53
+ }
54
+ export declare class BinaryInput {
55
+ strings: string[];
56
+ private index;
57
+ private buffer;
58
+ constructor(data: Uint8Array, strings?: string[], index?: number, buffer?: DataView);
59
+ readByte(): number;
60
+ readUnsignedByte(): number;
61
+ readShort(): number;
62
+ readInt32(): number;
63
+ readInt(optimizePositive: boolean): number;
64
+ readStringRef(): string | null;
65
+ readString(): string | null;
66
+ readFloat(): number;
67
+ readBoolean(): boolean;
68
+ }