@esotericsoftware/spine-core 4.1.1 → 4.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Animation.js +29 -2
- package/dist/AnimationState.js +125 -1
- package/dist/AnimationStateData.js +3 -1
- package/dist/AssetManagerBase.js +4 -3
- package/dist/AtlasAttachmentLoader.js +2 -1
- package/dist/Bone.js +7 -1
- package/dist/BoneData.js +9 -1
- package/dist/Event.js +8 -1
- package/dist/EventData.js +8 -1
- package/dist/IkConstraint.js +7 -1
- package/dist/IkConstraintData.js +3 -1
- package/dist/PathConstraint.js +7 -1
- package/dist/PathConstraintData.js +15 -1
- package/dist/Skeleton.js +19 -1
- package/dist/SkeletonBinary.js +2 -1
- package/dist/SkeletonData.js +24 -1
- package/dist/SkeletonJson.js +2 -1
- package/dist/Skin.d.ts +1 -1
- package/dist/Skin.js +4 -2
- package/dist/Slot.js +13 -1
- package/dist/SlotData.js +14 -1
- package/dist/TextureAtlas.js +22 -1
- package/dist/TransformConstraint.js +7 -1
- package/dist/TransformConstraintData.js +3 -1
- package/dist/attachments/Attachment.js +9 -1
- package/dist/attachments/ClippingAttachment.js +4 -1
- package/dist/attachments/MeshAttachment.js +24 -2
- package/dist/attachments/PathAttachment.js +3 -1
- package/dist/attachments/PointAttachment.js +4 -1
- package/dist/attachments/RegionAttachment.js +7 -2
- package/dist/iife/spine-core.js +176 -6
- package/dist/iife/spine-core.js.map +2 -2
- package/dist/iife/spine-core.min.js +2 -2
- package/package.json +1 -1
package/dist/iife/spine-core.js
CHANGED
|
@@ -510,6 +510,8 @@ var spine = (() => {
|
|
|
510
510
|
constructor(name) {
|
|
511
511
|
super(name);
|
|
512
512
|
this.id = _VertexAttachment.nextID++;
|
|
513
|
+
this.bones = null;
|
|
514
|
+
this.vertices = null;
|
|
513
515
|
this.worldVerticesLength = 0;
|
|
514
516
|
this.timelineAttahment = this;
|
|
515
517
|
}
|
|
@@ -655,6 +657,8 @@ var spine = (() => {
|
|
|
655
657
|
// spine-core/src/Animation.ts
|
|
656
658
|
var Animation = class {
|
|
657
659
|
constructor(name, timelines, duration) {
|
|
660
|
+
this.timelines = null;
|
|
661
|
+
this.timelineIds = null;
|
|
658
662
|
if (!name)
|
|
659
663
|
throw new Error("name cannot be null.");
|
|
660
664
|
this.name = name;
|
|
@@ -724,6 +728,8 @@ var spine = (() => {
|
|
|
724
728
|
};
|
|
725
729
|
var Timeline = class {
|
|
726
730
|
constructor(frameCount, propertyIds) {
|
|
731
|
+
this.propertyIds = null;
|
|
732
|
+
this.frames = null;
|
|
727
733
|
this.propertyIds = propertyIds;
|
|
728
734
|
this.frames = Utils.newFloatArray(frameCount * this.getFrameEntries());
|
|
729
735
|
}
|
|
@@ -757,6 +763,7 @@ var spine = (() => {
|
|
|
757
763
|
var CurveTimeline = class extends Timeline {
|
|
758
764
|
constructor(frameCount, bezierCount, propertyIds) {
|
|
759
765
|
super(frameCount, propertyIds);
|
|
766
|
+
this.curves = null;
|
|
760
767
|
this.curves = Utils.newFloatArray(frameCount + bezierCount * 18);
|
|
761
768
|
this.curves[frameCount - 1] = 1;
|
|
762
769
|
}
|
|
@@ -1816,6 +1823,8 @@ var spine = (() => {
|
|
|
1816
1823
|
Property.deform + "|" + slotIndex + "|" + attachment.id
|
|
1817
1824
|
]);
|
|
1818
1825
|
this.slotIndex = 0;
|
|
1826
|
+
this.attachment = null;
|
|
1827
|
+
this.vertices = null;
|
|
1819
1828
|
this.slotIndex = slotIndex;
|
|
1820
1829
|
this.attachment = attachment;
|
|
1821
1830
|
this.vertices = new Array(frameCount);
|
|
@@ -2032,6 +2041,7 @@ var spine = (() => {
|
|
|
2032
2041
|
var _EventTimeline = class extends Timeline {
|
|
2033
2042
|
constructor(frameCount) {
|
|
2034
2043
|
super(frameCount, _EventTimeline.propertyIds);
|
|
2044
|
+
this.events = null;
|
|
2035
2045
|
this.events = new Array(frameCount);
|
|
2036
2046
|
}
|
|
2037
2047
|
getFrameCount() {
|
|
@@ -2074,6 +2084,7 @@ var spine = (() => {
|
|
|
2074
2084
|
var _DrawOrderTimeline = class extends Timeline {
|
|
2075
2085
|
constructor(frameCount) {
|
|
2076
2086
|
super(frameCount, _DrawOrderTimeline.propertyIds);
|
|
2087
|
+
this.drawOrders = null;
|
|
2077
2088
|
this.drawOrders = new Array(frameCount);
|
|
2078
2089
|
}
|
|
2079
2090
|
getFrameCount() {
|
|
@@ -2112,6 +2123,7 @@ var spine = (() => {
|
|
|
2112
2123
|
super(frameCount, bezierCount, [
|
|
2113
2124
|
Property.ikConstraint + "|" + ikConstraintIndex
|
|
2114
2125
|
]);
|
|
2126
|
+
this.ikConstraintIndex = 0;
|
|
2115
2127
|
this.ikConstraintIndex = ikConstraintIndex;
|
|
2116
2128
|
}
|
|
2117
2129
|
getFrameEntries() {
|
|
@@ -2197,6 +2209,7 @@ var spine = (() => {
|
|
|
2197
2209
|
super(frameCount, bezierCount, [
|
|
2198
2210
|
Property.transformConstraint + "|" + transformConstraintIndex
|
|
2199
2211
|
]);
|
|
2212
|
+
this.transformConstraintIndex = 0;
|
|
2200
2213
|
this.transformConstraintIndex = transformConstraintIndex;
|
|
2201
2214
|
}
|
|
2202
2215
|
getFrameEntries() {
|
|
@@ -2296,6 +2309,7 @@ var spine = (() => {
|
|
|
2296
2309
|
var PathConstraintPositionTimeline = class extends CurveTimeline1 {
|
|
2297
2310
|
constructor(frameCount, bezierCount, pathConstraintIndex) {
|
|
2298
2311
|
super(frameCount, bezierCount, Property.pathConstraintPosition + "|" + pathConstraintIndex);
|
|
2312
|
+
this.pathConstraintIndex = 0;
|
|
2299
2313
|
this.pathConstraintIndex = pathConstraintIndex;
|
|
2300
2314
|
}
|
|
2301
2315
|
apply(skeleton, lastTime, time, firedEvents, alpha, blend, direction) {
|
|
@@ -2477,17 +2491,25 @@ var spine = (() => {
|
|
|
2477
2491
|
case SequenceMode.loop:
|
|
2478
2492
|
index %= count;
|
|
2479
2493
|
break;
|
|
2480
|
-
case SequenceMode.pingpong:
|
|
2494
|
+
case SequenceMode.pingpong: {
|
|
2481
2495
|
let n = (count << 1) - 2;
|
|
2482
2496
|
index %= n;
|
|
2483
2497
|
if (index >= count)
|
|
2484
2498
|
index = n - index;
|
|
2485
2499
|
break;
|
|
2500
|
+
}
|
|
2486
2501
|
case SequenceMode.onceReverse:
|
|
2487
2502
|
index = Math.max(count - 1 - index, 0);
|
|
2488
2503
|
break;
|
|
2489
2504
|
case SequenceMode.loopReverse:
|
|
2490
2505
|
index = count - 1 - index % count;
|
|
2506
|
+
break;
|
|
2507
|
+
case SequenceMode.pingpongReverse: {
|
|
2508
|
+
let n = (count << 1) - 2;
|
|
2509
|
+
index = (index + count - 1) % n;
|
|
2510
|
+
if (index >= count)
|
|
2511
|
+
index = n - index;
|
|
2512
|
+
}
|
|
2491
2513
|
}
|
|
2492
2514
|
}
|
|
2493
2515
|
slot.sequenceIndex = index;
|
|
@@ -2501,6 +2523,7 @@ var spine = (() => {
|
|
|
2501
2523
|
// spine-core/src/AnimationState.ts
|
|
2502
2524
|
var AnimationState = class {
|
|
2503
2525
|
constructor(data) {
|
|
2526
|
+
this.data = null;
|
|
2504
2527
|
this.tracks = new Array();
|
|
2505
2528
|
this.timeScale = 1;
|
|
2506
2529
|
this.unkeyedState = 0;
|
|
@@ -2979,6 +3002,7 @@ var spine = (() => {
|
|
|
2979
3002
|
}
|
|
2980
3003
|
trackEntry(trackIndex, animation, loop, last) {
|
|
2981
3004
|
let entry = this.trackEntryPool.obtain();
|
|
3005
|
+
entry.reset();
|
|
2982
3006
|
entry.trackIndex = trackIndex;
|
|
2983
3007
|
entry.animation = animation;
|
|
2984
3008
|
entry.loop = loop;
|
|
@@ -3089,6 +3113,34 @@ var spine = (() => {
|
|
|
3089
3113
|
};
|
|
3090
3114
|
var TrackEntry = class {
|
|
3091
3115
|
constructor() {
|
|
3116
|
+
this.animation = null;
|
|
3117
|
+
this.previous = null;
|
|
3118
|
+
this.next = null;
|
|
3119
|
+
this.mixingFrom = null;
|
|
3120
|
+
this.mixingTo = null;
|
|
3121
|
+
this.listener = null;
|
|
3122
|
+
this.trackIndex = 0;
|
|
3123
|
+
this.loop = false;
|
|
3124
|
+
this.holdPrevious = false;
|
|
3125
|
+
this.reverse = false;
|
|
3126
|
+
this.eventThreshold = 0;
|
|
3127
|
+
this.attachmentThreshold = 0;
|
|
3128
|
+
this.drawOrderThreshold = 0;
|
|
3129
|
+
this.animationStart = 0;
|
|
3130
|
+
this.animationEnd = 0;
|
|
3131
|
+
this.animationLast = 0;
|
|
3132
|
+
this.nextAnimationLast = 0;
|
|
3133
|
+
this.delay = 0;
|
|
3134
|
+
this.trackTime = 0;
|
|
3135
|
+
this.trackLast = 0;
|
|
3136
|
+
this.nextTrackLast = 0;
|
|
3137
|
+
this.trackEnd = 0;
|
|
3138
|
+
this.timeScale = 0;
|
|
3139
|
+
this.alpha = 0;
|
|
3140
|
+
this.mixTime = 0;
|
|
3141
|
+
this.mixDuration = 0;
|
|
3142
|
+
this.interruptAlpha = 0;
|
|
3143
|
+
this.totalAlpha = 0;
|
|
3092
3144
|
this.mixBlend = MixBlend.replace;
|
|
3093
3145
|
this.timelineMode = new Array();
|
|
3094
3146
|
this.timelineHoldMix = new Array();
|
|
@@ -3139,6 +3191,7 @@ var spine = (() => {
|
|
|
3139
3191
|
constructor(animState) {
|
|
3140
3192
|
this.objects = [];
|
|
3141
3193
|
this.drainDisabled = false;
|
|
3194
|
+
this.animState = null;
|
|
3142
3195
|
this.animState = animState;
|
|
3143
3196
|
}
|
|
3144
3197
|
start(entry) {
|
|
@@ -3265,6 +3318,7 @@ var spine = (() => {
|
|
|
3265
3318
|
// spine-core/src/AnimationStateData.ts
|
|
3266
3319
|
var AnimationStateData = class {
|
|
3267
3320
|
constructor(skeletonData) {
|
|
3321
|
+
this.skeletonData = null;
|
|
3268
3322
|
this.animationToMixTime = {};
|
|
3269
3323
|
this.defaultMix = 0;
|
|
3270
3324
|
if (!skeletonData)
|
|
@@ -3313,6 +3367,7 @@ var spine = (() => {
|
|
|
3313
3367
|
var ClippingAttachment = class extends VertexAttachment {
|
|
3314
3368
|
constructor(name) {
|
|
3315
3369
|
super(name);
|
|
3370
|
+
this.endSlot = null;
|
|
3316
3371
|
this.color = new Color(0.2275, 0.2275, 0.8078, 1);
|
|
3317
3372
|
}
|
|
3318
3373
|
copy() {
|
|
@@ -3536,6 +3591,7 @@ var spine = (() => {
|
|
|
3536
3591
|
};
|
|
3537
3592
|
var TextureAtlasReader = class {
|
|
3538
3593
|
constructor(text) {
|
|
3594
|
+
this.lines = null;
|
|
3539
3595
|
this.index = 0;
|
|
3540
3596
|
this.lines = text.split(/\r\n|\r|\n/);
|
|
3541
3597
|
}
|
|
@@ -3569,10 +3625,15 @@ var spine = (() => {
|
|
|
3569
3625
|
};
|
|
3570
3626
|
var TextureAtlasPage = class {
|
|
3571
3627
|
constructor() {
|
|
3628
|
+
this.name = null;
|
|
3572
3629
|
this.minFilter = TextureFilter.Nearest;
|
|
3573
3630
|
this.magFilter = TextureFilter.Nearest;
|
|
3574
3631
|
this.uWrap = TextureWrap.ClampToEdge;
|
|
3575
3632
|
this.vWrap = TextureWrap.ClampToEdge;
|
|
3633
|
+
this.texture = null;
|
|
3634
|
+
this.width = 0;
|
|
3635
|
+
this.height = 0;
|
|
3636
|
+
this.pma = false;
|
|
3576
3637
|
}
|
|
3577
3638
|
setTexture(texture) {
|
|
3578
3639
|
this.texture = texture;
|
|
@@ -3581,13 +3642,39 @@ var spine = (() => {
|
|
|
3581
3642
|
}
|
|
3582
3643
|
};
|
|
3583
3644
|
var TextureAtlasRegion = class extends TextureRegion {
|
|
3645
|
+
constructor() {
|
|
3646
|
+
super(...arguments);
|
|
3647
|
+
this.page = null;
|
|
3648
|
+
this.name = null;
|
|
3649
|
+
this.x = 0;
|
|
3650
|
+
this.y = 0;
|
|
3651
|
+
this.offsetX = 0;
|
|
3652
|
+
this.offsetY = 0;
|
|
3653
|
+
this.originalWidth = 0;
|
|
3654
|
+
this.originalHeight = 0;
|
|
3655
|
+
this.index = 0;
|
|
3656
|
+
this.degrees = 0;
|
|
3657
|
+
this.names = null;
|
|
3658
|
+
this.values = null;
|
|
3659
|
+
}
|
|
3584
3660
|
};
|
|
3585
3661
|
|
|
3586
3662
|
// spine-core/src/attachments/MeshAttachment.ts
|
|
3587
3663
|
var MeshAttachment = class extends VertexAttachment {
|
|
3588
3664
|
constructor(name) {
|
|
3589
3665
|
super(name);
|
|
3666
|
+
this.region = null;
|
|
3667
|
+
this.path = null;
|
|
3668
|
+
this.regionUVs = null;
|
|
3669
|
+
this.uvs = null;
|
|
3670
|
+
this.triangles = null;
|
|
3590
3671
|
this.color = new Color(1, 1, 1, 1);
|
|
3672
|
+
this.width = 0;
|
|
3673
|
+
this.height = 0;
|
|
3674
|
+
this.hullLength = 0;
|
|
3675
|
+
this.edges = null;
|
|
3676
|
+
this.parentMesh = null;
|
|
3677
|
+
this.sequence = null;
|
|
3591
3678
|
this.tempColor = new Color(0, 0, 0, 0);
|
|
3592
3679
|
}
|
|
3593
3680
|
updateRegion() {
|
|
@@ -3678,7 +3765,7 @@ var spine = (() => {
|
|
|
3678
3765
|
copy.triangles = new Array(this.triangles.length);
|
|
3679
3766
|
Utils.arrayCopy(this.triangles, 0, copy.triangles, 0, this.triangles.length);
|
|
3680
3767
|
copy.hullLength = this.hullLength;
|
|
3681
|
-
copy.sequence = this.sequence.copy();
|
|
3768
|
+
copy.sequence = this.sequence != null ? this.sequence.copy() : null;
|
|
3682
3769
|
if (this.edges) {
|
|
3683
3770
|
copy.edges = new Array(this.edges.length);
|
|
3684
3771
|
Utils.arrayCopy(this.edges, 0, copy.edges, 0, this.edges.length);
|
|
@@ -3709,6 +3796,7 @@ var spine = (() => {
|
|
|
3709
3796
|
var PathAttachment = class extends VertexAttachment {
|
|
3710
3797
|
constructor(name) {
|
|
3711
3798
|
super(name);
|
|
3799
|
+
this.lengths = null;
|
|
3712
3800
|
this.closed = false;
|
|
3713
3801
|
this.constantSpeed = false;
|
|
3714
3802
|
this.color = new Color(1, 1, 1, 1);
|
|
@@ -3729,6 +3817,9 @@ var spine = (() => {
|
|
|
3729
3817
|
var PointAttachment = class extends VertexAttachment {
|
|
3730
3818
|
constructor(name) {
|
|
3731
3819
|
super(name);
|
|
3820
|
+
this.x = 0;
|
|
3821
|
+
this.y = 0;
|
|
3822
|
+
this.rotation = 0;
|
|
3732
3823
|
this.color = new Color(0.38, 0.94, 0, 1);
|
|
3733
3824
|
}
|
|
3734
3825
|
computeWorldPosition(bone, point) {
|
|
@@ -3764,6 +3855,10 @@ var spine = (() => {
|
|
|
3764
3855
|
this.width = 0;
|
|
3765
3856
|
this.height = 0;
|
|
3766
3857
|
this.color = new Color(1, 1, 1, 1);
|
|
3858
|
+
this.path = null;
|
|
3859
|
+
this.rendererObject = null;
|
|
3860
|
+
this.region = null;
|
|
3861
|
+
this.sequence = null;
|
|
3767
3862
|
this.offset = Utils.newFloatArray(8);
|
|
3768
3863
|
this.uvs = Utils.newFloatArray(8);
|
|
3769
3864
|
this.tempColor = new Color(1, 1, 1, 1);
|
|
@@ -3861,7 +3956,7 @@ var spine = (() => {
|
|
|
3861
3956
|
Utils.arrayCopy(this.uvs, 0, copy.uvs, 0, 8);
|
|
3862
3957
|
Utils.arrayCopy(this.offset, 0, copy.offset, 0, 8);
|
|
3863
3958
|
copy.color.setFromColor(this.color);
|
|
3864
|
-
copy.sequence = this.sequence.copy();
|
|
3959
|
+
copy.sequence = this.sequence != null ? this.sequence.copy() : null;
|
|
3865
3960
|
return copy;
|
|
3866
3961
|
}
|
|
3867
3962
|
};
|
|
@@ -3902,6 +3997,7 @@ var spine = (() => {
|
|
|
3902
3997
|
// spine-core/src/AtlasAttachmentLoader.ts
|
|
3903
3998
|
var AtlasAttachmentLoader = class {
|
|
3904
3999
|
constructor(atlas) {
|
|
4000
|
+
this.atlas = null;
|
|
3905
4001
|
this.atlas = atlas;
|
|
3906
4002
|
}
|
|
3907
4003
|
loadSequence(name, basePath, sequence) {
|
|
@@ -3957,6 +4053,10 @@ var spine = (() => {
|
|
|
3957
4053
|
// spine-core/src/BoneData.ts
|
|
3958
4054
|
var BoneData = class {
|
|
3959
4055
|
constructor(index, name, parent) {
|
|
4056
|
+
this.index = 0;
|
|
4057
|
+
this.name = null;
|
|
4058
|
+
this.parent = null;
|
|
4059
|
+
this.length = 0;
|
|
3960
4060
|
this.x = 0;
|
|
3961
4061
|
this.y = 0;
|
|
3962
4062
|
this.rotation = 0;
|
|
@@ -3988,6 +4088,9 @@ var spine = (() => {
|
|
|
3988
4088
|
// spine-core/src/Bone.ts
|
|
3989
4089
|
var Bone = class {
|
|
3990
4090
|
constructor(data, skeleton, parent) {
|
|
4091
|
+
this.data = null;
|
|
4092
|
+
this.skeleton = null;
|
|
4093
|
+
this.parent = null;
|
|
3991
4094
|
this.children = new Array();
|
|
3992
4095
|
this.x = 0;
|
|
3993
4096
|
this.y = 0;
|
|
@@ -4240,6 +4343,7 @@ var spine = (() => {
|
|
|
4240
4343
|
// spine-core/src/AssetManagerBase.ts
|
|
4241
4344
|
var AssetManagerBase = class {
|
|
4242
4345
|
constructor(textureLoader, pathPrefix = "", downloader = null) {
|
|
4346
|
+
this.pathPrefix = null;
|
|
4243
4347
|
this.assets = {};
|
|
4244
4348
|
this.errors = {};
|
|
4245
4349
|
this.toLoad = 0;
|
|
@@ -4479,7 +4583,7 @@ var spine = (() => {
|
|
|
4479
4583
|
this.finish(url, request.status, request.response);
|
|
4480
4584
|
};
|
|
4481
4585
|
request.onload = () => {
|
|
4482
|
-
if (request.status == 200)
|
|
4586
|
+
if (request.status == 200 || request.status == 0)
|
|
4483
4587
|
this.finish(url, 200, new Uint8Array(request.response));
|
|
4484
4588
|
else
|
|
4485
4589
|
onerror();
|
|
@@ -4500,7 +4604,7 @@ var spine = (() => {
|
|
|
4500
4604
|
finish(url, status, data) {
|
|
4501
4605
|
let callbacks = this.callbacks[url];
|
|
4502
4606
|
delete this.callbacks[url];
|
|
4503
|
-
let args = status == 200 ? [data] : [status, data];
|
|
4607
|
+
let args = status == 200 || status == 0 ? [data] : [status, data];
|
|
4504
4608
|
for (let i = args.length - 1, n = callbacks.length; i < n; i += 2)
|
|
4505
4609
|
callbacks[i].apply(null, args);
|
|
4506
4610
|
}
|
|
@@ -4509,6 +4613,13 @@ var spine = (() => {
|
|
|
4509
4613
|
// spine-core/src/Event.ts
|
|
4510
4614
|
var Event = class {
|
|
4511
4615
|
constructor(time, data) {
|
|
4616
|
+
this.data = null;
|
|
4617
|
+
this.intValue = 0;
|
|
4618
|
+
this.floatValue = 0;
|
|
4619
|
+
this.stringValue = null;
|
|
4620
|
+
this.time = 0;
|
|
4621
|
+
this.volume = 0;
|
|
4622
|
+
this.balance = 0;
|
|
4512
4623
|
if (!data)
|
|
4513
4624
|
throw new Error("data cannot be null.");
|
|
4514
4625
|
this.time = time;
|
|
@@ -4519,6 +4630,13 @@ var spine = (() => {
|
|
|
4519
4630
|
// spine-core/src/EventData.ts
|
|
4520
4631
|
var EventData = class {
|
|
4521
4632
|
constructor(name) {
|
|
4633
|
+
this.name = null;
|
|
4634
|
+
this.intValue = 0;
|
|
4635
|
+
this.floatValue = 0;
|
|
4636
|
+
this.stringValue = null;
|
|
4637
|
+
this.audioPath = null;
|
|
4638
|
+
this.volume = 0;
|
|
4639
|
+
this.balance = 0;
|
|
4522
4640
|
this.name = name;
|
|
4523
4641
|
}
|
|
4524
4642
|
};
|
|
@@ -4526,6 +4644,9 @@ var spine = (() => {
|
|
|
4526
4644
|
// spine-core/src/IkConstraint.ts
|
|
4527
4645
|
var IkConstraint = class {
|
|
4528
4646
|
constructor(data, skeleton) {
|
|
4647
|
+
this.data = null;
|
|
4648
|
+
this.bones = null;
|
|
4649
|
+
this.target = null;
|
|
4529
4650
|
this.bendDirection = 0;
|
|
4530
4651
|
this.compress = false;
|
|
4531
4652
|
this.stretch = false;
|
|
@@ -4764,6 +4885,7 @@ var spine = (() => {
|
|
|
4764
4885
|
constructor(name) {
|
|
4765
4886
|
super(name, 0, false);
|
|
4766
4887
|
this.bones = new Array();
|
|
4888
|
+
this.target = null;
|
|
4767
4889
|
this.bendDirection = 1;
|
|
4768
4890
|
this.compress = false;
|
|
4769
4891
|
this.stretch = false;
|
|
@@ -4778,6 +4900,13 @@ var spine = (() => {
|
|
|
4778
4900
|
constructor(name) {
|
|
4779
4901
|
super(name, 0, false);
|
|
4780
4902
|
this.bones = new Array();
|
|
4903
|
+
this.target = null;
|
|
4904
|
+
this.positionMode = null;
|
|
4905
|
+
this.spacingMode = null;
|
|
4906
|
+
this.rotateMode = null;
|
|
4907
|
+
this.offsetRotation = 0;
|
|
4908
|
+
this.position = 0;
|
|
4909
|
+
this.spacing = 0;
|
|
4781
4910
|
this.mixRotate = 0;
|
|
4782
4911
|
this.mixX = 0;
|
|
4783
4912
|
this.mixY = 0;
|
|
@@ -4805,6 +4934,9 @@ var spine = (() => {
|
|
|
4805
4934
|
// spine-core/src/PathConstraint.ts
|
|
4806
4935
|
var _PathConstraint = class {
|
|
4807
4936
|
constructor(data, skeleton) {
|
|
4937
|
+
this.data = null;
|
|
4938
|
+
this.bones = null;
|
|
4939
|
+
this.target = null;
|
|
4808
4940
|
this.position = 0;
|
|
4809
4941
|
this.spacing = 0;
|
|
4810
4942
|
this.mixRotate = 0;
|
|
@@ -5224,6 +5356,12 @@ var spine = (() => {
|
|
|
5224
5356
|
// spine-core/src/Slot.ts
|
|
5225
5357
|
var Slot = class {
|
|
5226
5358
|
constructor(data, bone) {
|
|
5359
|
+
this.data = null;
|
|
5360
|
+
this.bone = null;
|
|
5361
|
+
this.color = null;
|
|
5362
|
+
this.darkColor = null;
|
|
5363
|
+
this.attachment = null;
|
|
5364
|
+
this.attachmentState = 0;
|
|
5227
5365
|
this.deform = new Array();
|
|
5228
5366
|
if (!data)
|
|
5229
5367
|
throw new Error("data cannot be null.");
|
|
@@ -5266,6 +5404,9 @@ var spine = (() => {
|
|
|
5266
5404
|
// spine-core/src/TransformConstraint.ts
|
|
5267
5405
|
var TransformConstraint = class {
|
|
5268
5406
|
constructor(data, skeleton) {
|
|
5407
|
+
this.data = null;
|
|
5408
|
+
this.bones = null;
|
|
5409
|
+
this.target = null;
|
|
5269
5410
|
this.mixRotate = 0;
|
|
5270
5411
|
this.mixX = 0;
|
|
5271
5412
|
this.mixY = 0;
|
|
@@ -5473,7 +5614,16 @@ var spine = (() => {
|
|
|
5473
5614
|
// spine-core/src/Skeleton.ts
|
|
5474
5615
|
var Skeleton = class {
|
|
5475
5616
|
constructor(data) {
|
|
5617
|
+
this.data = null;
|
|
5618
|
+
this.bones = null;
|
|
5619
|
+
this.slots = null;
|
|
5620
|
+
this.drawOrder = null;
|
|
5621
|
+
this.ikConstraints = null;
|
|
5622
|
+
this.transformConstraints = null;
|
|
5623
|
+
this.pathConstraints = null;
|
|
5476
5624
|
this._updateCache = new Array();
|
|
5625
|
+
this.skin = null;
|
|
5626
|
+
this.color = null;
|
|
5477
5627
|
this.scaleX = 1;
|
|
5478
5628
|
this.scaleY = 1;
|
|
5479
5629
|
this.x = 0;
|
|
@@ -5932,15 +6082,25 @@ var spine = (() => {
|
|
|
5932
6082
|
// spine-core/src/SkeletonData.ts
|
|
5933
6083
|
var SkeletonData = class {
|
|
5934
6084
|
constructor() {
|
|
6085
|
+
this.name = null;
|
|
5935
6086
|
this.bones = new Array();
|
|
5936
6087
|
this.slots = new Array();
|
|
5937
6088
|
this.skins = new Array();
|
|
6089
|
+
this.defaultSkin = null;
|
|
5938
6090
|
this.events = new Array();
|
|
5939
6091
|
this.animations = new Array();
|
|
5940
6092
|
this.ikConstraints = new Array();
|
|
5941
6093
|
this.transformConstraints = new Array();
|
|
5942
6094
|
this.pathConstraints = new Array();
|
|
6095
|
+
this.x = 0;
|
|
6096
|
+
this.y = 0;
|
|
6097
|
+
this.width = 0;
|
|
6098
|
+
this.height = 0;
|
|
6099
|
+
this.version = null;
|
|
6100
|
+
this.hash = null;
|
|
5943
6101
|
this.fps = 0;
|
|
6102
|
+
this.imagesPath = null;
|
|
6103
|
+
this.audioPath = null;
|
|
5944
6104
|
}
|
|
5945
6105
|
findBone(boneName) {
|
|
5946
6106
|
if (!boneName)
|
|
@@ -6034,7 +6194,7 @@ var spine = (() => {
|
|
|
6034
6194
|
|
|
6035
6195
|
// spine-core/src/Skin.ts
|
|
6036
6196
|
var SkinEntry = class {
|
|
6037
|
-
constructor(slotIndex, name, attachment) {
|
|
6197
|
+
constructor(slotIndex = 0, name = null, attachment = null) {
|
|
6038
6198
|
this.slotIndex = slotIndex;
|
|
6039
6199
|
this.name = name;
|
|
6040
6200
|
this.attachment = attachment;
|
|
@@ -6042,6 +6202,7 @@ var spine = (() => {
|
|
|
6042
6202
|
};
|
|
6043
6203
|
var Skin = class {
|
|
6044
6204
|
constructor(name) {
|
|
6205
|
+
this.name = null;
|
|
6045
6206
|
this.attachments = new Array();
|
|
6046
6207
|
this.bones = Array();
|
|
6047
6208
|
this.constraints = new Array();
|
|
@@ -6192,7 +6353,13 @@ var spine = (() => {
|
|
|
6192
6353
|
// spine-core/src/SlotData.ts
|
|
6193
6354
|
var SlotData = class {
|
|
6194
6355
|
constructor(index, name, boneData) {
|
|
6356
|
+
this.index = 0;
|
|
6357
|
+
this.name = null;
|
|
6358
|
+
this.boneData = null;
|
|
6195
6359
|
this.color = new Color(1, 1, 1, 1);
|
|
6360
|
+
this.darkColor = null;
|
|
6361
|
+
this.attachmentName = null;
|
|
6362
|
+
this.blendMode = null;
|
|
6196
6363
|
if (index < 0)
|
|
6197
6364
|
throw new Error("index must be >= 0.");
|
|
6198
6365
|
if (!name)
|
|
@@ -6217,6 +6384,7 @@ var spine = (() => {
|
|
|
6217
6384
|
constructor(name) {
|
|
6218
6385
|
super(name, 0, false);
|
|
6219
6386
|
this.bones = new Array();
|
|
6387
|
+
this.target = null;
|
|
6220
6388
|
this.mixRotate = 0;
|
|
6221
6389
|
this.mixX = 0;
|
|
6222
6390
|
this.mixY = 0;
|
|
@@ -6238,6 +6406,7 @@ var spine = (() => {
|
|
|
6238
6406
|
var SkeletonBinary = class {
|
|
6239
6407
|
constructor(attachmentLoader) {
|
|
6240
6408
|
this.scale = 1;
|
|
6409
|
+
this.attachmentLoader = null;
|
|
6241
6410
|
this.linkedMeshes = new Array();
|
|
6242
6411
|
this.attachmentLoader = attachmentLoader;
|
|
6243
6412
|
}
|
|
@@ -7949,6 +8118,7 @@ var spine = (() => {
|
|
|
7949
8118
|
// spine-core/src/SkeletonJson.ts
|
|
7950
8119
|
var SkeletonJson = class {
|
|
7951
8120
|
constructor(attachmentLoader) {
|
|
8121
|
+
this.attachmentLoader = null;
|
|
7952
8122
|
this.scale = 1;
|
|
7953
8123
|
this.linkedMeshes = new Array();
|
|
7954
8124
|
this.attachmentLoader = attachmentLoader;
|