@esotericsoftware/spine-core 4.1.24 → 4.1.25

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 (90) hide show
  1. package/package.json +1 -1
  2. package/dist/Animation.d.ts +0 -382
  3. package/dist/Animation.js +0 -2052
  4. package/dist/AnimationState.d.ts +0 -398
  5. package/dist/AnimationState.js +0 -1096
  6. package/dist/AnimationStateData.d.ts +0 -51
  7. package/dist/AnimationStateData.js +0 -70
  8. package/dist/AssetManagerBase.d.ts +0 -75
  9. package/dist/AssetManagerBase.js +0 -320
  10. package/dist/AtlasAttachmentLoader.d.ts +0 -53
  11. package/dist/AtlasAttachmentLoader.js +0 -95
  12. package/dist/Bone.d.ts +0 -138
  13. package/dist/Bone.js +0 -336
  14. package/dist/BoneData.d.ts +0 -72
  15. package/dist/BoneData.js +0 -80
  16. package/dist/ConstraintData.d.ts +0 -35
  17. package/dist/ConstraintData.js +0 -37
  18. package/dist/Event.d.ts +0 -44
  19. package/dist/Event.js +0 -48
  20. package/dist/EventData.d.ts +0 -41
  21. package/dist/EventData.js +0 -43
  22. package/dist/IkConstraint.d.ts +0 -64
  23. package/dist/IkConstraint.js +0 -296
  24. package/dist/IkConstraintData.d.ts +0 -56
  25. package/dist/IkConstraintData.js +0 -63
  26. package/dist/PathConstraint.d.ts +0 -71
  27. package/dist/PathConstraint.js +0 -476
  28. package/dist/PathConstraintData.d.ts +0 -82
  29. package/dist/PathConstraintData.js +0 -91
  30. package/dist/Skeleton.d.ts +0 -160
  31. package/dist/Skeleton.js +0 -580
  32. package/dist/SkeletonBinary.d.ts +0 -68
  33. package/dist/SkeletonBinary.js +0 -1172
  34. package/dist/SkeletonBounds.d.ts +0 -77
  35. package/dist/SkeletonBounds.js +0 -219
  36. package/dist/SkeletonClipping.d.ts +0 -50
  37. package/dist/SkeletonClipping.js +0 -326
  38. package/dist/SkeletonData.d.ts +0 -114
  39. package/dist/SkeletonData.js +0 -190
  40. package/dist/SkeletonJson.d.ts +0 -53
  41. package/dist/SkeletonJson.js +0 -1027
  42. package/dist/Skin.d.ts +0 -71
  43. package/dist/Skin.js +0 -201
  44. package/dist/Slot.d.ts +0 -69
  45. package/dist/Slot.js +0 -93
  46. package/dist/SlotData.d.ts +0 -57
  47. package/dist/SlotData.js +0 -64
  48. package/dist/Texture.d.ts +0 -69
  49. package/dist/Texture.js +0 -73
  50. package/dist/TextureAtlas.d.ts +0 -67
  51. package/dist/TextureAtlas.js +0 -263
  52. package/dist/TransformConstraint.d.ts +0 -60
  53. package/dist/TransformConstraint.js +0 -247
  54. package/dist/TransformConstraintData.d.ts +0 -62
  55. package/dist/TransformConstraintData.js +0 -69
  56. package/dist/Triangulator.d.ts +0 -43
  57. package/dist/Triangulator.js +0 -244
  58. package/dist/Updatable.d.ts +0 -37
  59. package/dist/Updatable.js +0 -30
  60. package/dist/Utils.d.ts +0 -168
  61. package/dist/Utils.js +0 -404
  62. package/dist/attachments/Attachment.d.ts +0 -72
  63. package/dist/attachments/Attachment.js +0 -147
  64. package/dist/attachments/AttachmentLoader.d.ts +0 -54
  65. package/dist/attachments/AttachmentLoader.js +0 -30
  66. package/dist/attachments/BoundingBoxAttachment.d.ts +0 -40
  67. package/dist/attachments/BoundingBoxAttachment.js +0 -48
  68. package/dist/attachments/ClippingAttachment.d.ts +0 -42
  69. package/dist/attachments/ClippingAttachment.js +0 -51
  70. package/dist/attachments/HasTextureRegion.d.ts +0 -44
  71. package/dist/attachments/HasTextureRegion.js +0 -30
  72. package/dist/attachments/MeshAttachment.d.ts +0 -79
  73. package/dist/attachments/MeshAttachment.js +0 -188
  74. package/dist/attachments/PathAttachment.d.ts +0 -47
  75. package/dist/attachments/PathAttachment.js +0 -59
  76. package/dist/attachments/PointAttachment.d.ts +0 -48
  77. package/dist/attachments/PointAttachment.js +0 -66
  78. package/dist/attachments/RegionAttachment.d.ts +0 -111
  79. package/dist/attachments/RegionAttachment.js +0 -215
  80. package/dist/attachments/Sequence.d.ts +0 -55
  81. package/dist/attachments/Sequence.js +0 -91
  82. package/dist/attachments/index.d.ts +0 -8
  83. package/dist/attachments/index.js +0 -9
  84. package/dist/iife/spine-core.js +0 -9192
  85. package/dist/iife/spine-core.js.map +0 -7
  86. package/dist/iife/spine-core.min.js +0 -2
  87. package/dist/index.d.ts +0 -39
  88. package/dist/index.js +0 -40
  89. package/dist/polyfills.d.ts +0 -29
  90. package/dist/polyfills.js +0 -39
@@ -1,91 +0,0 @@
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 { Utils } from "../Utils";
30
- export class Sequence {
31
- constructor(count) {
32
- this.id = Sequence.nextID();
33
- this.start = 0;
34
- this.digits = 0;
35
- /** The index of the region to show for the setup pose. */
36
- this.setupIndex = 0;
37
- this.regions = new Array(count);
38
- }
39
- copy() {
40
- let copy = new Sequence(this.regions.length);
41
- Utils.arrayCopy(this.regions, 0, copy.regions, 0, this.regions.length);
42
- copy.start = this.start;
43
- copy.digits = this.digits;
44
- copy.setupIndex = this.setupIndex;
45
- return copy;
46
- }
47
- apply(slot, attachment) {
48
- let index = slot.sequenceIndex;
49
- if (index == -1)
50
- index = this.setupIndex;
51
- if (index >= this.regions.length)
52
- index = this.regions.length - 1;
53
- let region = this.regions[index];
54
- if (attachment.region != region) {
55
- attachment.region = region;
56
- attachment.updateRegion();
57
- }
58
- }
59
- getPath(basePath, index) {
60
- let result = basePath;
61
- let frame = (this.start + index).toString();
62
- for (let i = this.digits - frame.length; i > 0; i--)
63
- result += "0";
64
- result += frame;
65
- return result;
66
- }
67
- static nextID() {
68
- return Sequence._nextID++;
69
- }
70
- }
71
- Sequence._nextID = 0;
72
- export var SequenceMode;
73
- (function (SequenceMode) {
74
- SequenceMode[SequenceMode["hold"] = 0] = "hold";
75
- SequenceMode[SequenceMode["once"] = 1] = "once";
76
- SequenceMode[SequenceMode["loop"] = 2] = "loop";
77
- SequenceMode[SequenceMode["pingpong"] = 3] = "pingpong";
78
- SequenceMode[SequenceMode["onceReverse"] = 4] = "onceReverse";
79
- SequenceMode[SequenceMode["loopReverse"] = 5] = "loopReverse";
80
- SequenceMode[SequenceMode["pingpongReverse"] = 6] = "pingpongReverse";
81
- })(SequenceMode || (SequenceMode = {}));
82
- export const SequenceModeValues = [
83
- SequenceMode.hold,
84
- SequenceMode.once,
85
- SequenceMode.loop,
86
- SequenceMode.pingpong,
87
- SequenceMode.onceReverse,
88
- SequenceMode.loopReverse,
89
- SequenceMode.pingpongReverse
90
- ];
91
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU2VxdWVuY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvYXR0YWNobWVudHMvU2VxdWVuY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OzsrRUEyQitFO0FBSy9FLE9BQU8sRUFBRSxLQUFLLEVBQUUsTUFBTSxVQUFVLENBQUM7QUFHakMsTUFBTSxPQUFPLFFBQVE7SUFVcEIsWUFBYSxLQUFhO1FBUDFCLE9BQUUsR0FBRyxRQUFRLENBQUMsTUFBTSxFQUFFLENBQUM7UUFFdkIsVUFBSyxHQUFHLENBQUMsQ0FBQztRQUNWLFdBQU0sR0FBRyxDQUFDLENBQUM7UUFDWCwwREFBMEQ7UUFDMUQsZUFBVSxHQUFHLENBQUMsQ0FBQztRQUdkLElBQUksQ0FBQyxPQUFPLEdBQUcsSUFBSSxLQUFLLENBQWdCLEtBQUssQ0FBQyxDQUFDO0lBQ2hELENBQUM7SUFFRCxJQUFJO1FBQ0gsSUFBSSxJQUFJLEdBQUcsSUFBSSxRQUFRLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxNQUFNLENBQUMsQ0FBQztRQUM3QyxLQUFLLENBQUMsU0FBUyxDQUFDLElBQUksQ0FBQyxPQUFPLEVBQUUsQ0FBQyxFQUFFLElBQUksQ0FBQyxPQUFPLEVBQUUsQ0FBQyxFQUFFLElBQUksQ0FBQyxPQUFPLENBQUMsTUFBTSxDQUFDLENBQUM7UUFDdkUsSUFBSSxDQUFDLEtBQUssR0FBRyxJQUFJLENBQUMsS0FBSyxDQUFDO1FBQ3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EdBQUcsQ0FBQztRQUNmLE1BQU0sSUFBSSxLQUFLLENBQUM7UUFDaEIsT0FBTyxNQUFNLENBQUM7SUFDZixDQUFDO0lBRU8sTUFBTSxDQUFDLE1BQU07UUFDcEIsT0FBTyxRQUFRLENBQUMsT0FBTyxFQUFFLENBQUM7SUFDM0IsQ0FBQzs7QUE1Q2MsZ0JBQU8sR0FBRyxDQUFDLENBQUM7QUErQzVCLE1BQU0sQ0FBTixJQUFZLFlBUVg7QUFSRCxXQUFZLFlBQVk7SUFDdkIsK0NBQVEsQ0FBQTtJQUNSLCtDQUFRLENBQUE7SUFDUiwrQ0FBUSxDQUFBO0lBQ1IsdURBQVksQ0FBQTtJQUNaLDZEQUFlLENBQUE7SUFDZiw2REFBZSxDQUFBO0lBQ2YscUVBQW1CLENBQUE7QUFDcEIsQ0FBQyxFQVJXLFlBQVksS0FBWixZQUFZLFFBUXZCO0FBRUQsTUFBTSxDQUFDLE1BQU0sa0JBQWtCLEdBQUc7SUFDakMsWUFBWSxDQUFDLElBQUk7SUFDakIsWUFBWSxDQUFDLElBQUk7SUFDakIsWUFBWSxDQUFDLElBQUk7SUFDakIsWUFBWSxDQUFDLFFBQVE7SUFDckIsWUFBWSxDQUFDLFdBQVc7SUFDeEIsWUFBWSxDQUFDLFdBQVc7SUFDeEIsWUFBWSxDQUFDLGVBQWU7Q0FDNUIsQ0FBQyJ9
@@ -1,8 +0,0 @@
1
- export * from './Attachment';
2
- export * from './AttachmentLoader';
3
- export * from './BoundingBoxAttachment';
4
- export * from './ClippingAttachment';
5
- export * from './MeshAttachment';
6
- export * from './PathAttachment';
7
- export * from './PointAttachment';
8
- export * from './RegionAttachment';
@@ -1,9 +0,0 @@
1
- export * from './Attachment';
2
- export * from './AttachmentLoader';
3
- export * from './BoundingBoxAttachment';
4
- export * from './ClippingAttachment';
5
- export * from './MeshAttachment';
6
- export * from './PathAttachment';
7
- export * from './PointAttachment';
8
- export * from './RegionAttachment';
9
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvYXR0YWNobWVudHMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxjQUFjLENBQUM7QUFDN0IsY0FBYyxvQkFBb0IsQ0FBQztBQUNuQyxjQUFjLHlCQUF5QixDQUFDO0FBQ3hDLGNBQWMsc0JBQXNCLENBQUM7QUFDckMsY0FBYyxrQkFBa0IsQ0FBQztBQUNqQyxjQUFjLGtCQUFrQixDQUFDO0FBQ2pDLGNBQWMsbUJBQW1CLENBQUM7QUFDbEMsY0FBYyxvQkFBb0IsQ0FBQyJ9