@esotericsoftware/spine-webgl 4.1.4 → 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/iife/spine-webgl.js +172 -2
- package/dist/iife/spine-webgl.js.map +2 -2
- package/dist/iife/spine-webgl.min.js +26 -26
- package/package.json +2 -2
package/dist/iife/spine-webgl.js
CHANGED
|
@@ -554,6 +554,8 @@ var spine = (() => {
|
|
|
554
554
|
constructor(name) {
|
|
555
555
|
super(name);
|
|
556
556
|
this.id = _VertexAttachment.nextID++;
|
|
557
|
+
this.bones = null;
|
|
558
|
+
this.vertices = null;
|
|
557
559
|
this.worldVerticesLength = 0;
|
|
558
560
|
this.timelineAttahment = this;
|
|
559
561
|
}
|
|
@@ -699,6 +701,8 @@ var spine = (() => {
|
|
|
699
701
|
// spine-core/src/Animation.ts
|
|
700
702
|
var Animation = class {
|
|
701
703
|
constructor(name, timelines, duration) {
|
|
704
|
+
this.timelines = null;
|
|
705
|
+
this.timelineIds = null;
|
|
702
706
|
if (!name)
|
|
703
707
|
throw new Error("name cannot be null.");
|
|
704
708
|
this.name = name;
|
|
@@ -768,6 +772,8 @@ var spine = (() => {
|
|
|
768
772
|
};
|
|
769
773
|
var Timeline = class {
|
|
770
774
|
constructor(frameCount, propertyIds) {
|
|
775
|
+
this.propertyIds = null;
|
|
776
|
+
this.frames = null;
|
|
771
777
|
this.propertyIds = propertyIds;
|
|
772
778
|
this.frames = Utils.newFloatArray(frameCount * this.getFrameEntries());
|
|
773
779
|
}
|
|
@@ -801,6 +807,7 @@ var spine = (() => {
|
|
|
801
807
|
var CurveTimeline = class extends Timeline {
|
|
802
808
|
constructor(frameCount, bezierCount, propertyIds) {
|
|
803
809
|
super(frameCount, propertyIds);
|
|
810
|
+
this.curves = null;
|
|
804
811
|
this.curves = Utils.newFloatArray(frameCount + bezierCount * 18);
|
|
805
812
|
this.curves[frameCount - 1] = 1;
|
|
806
813
|
}
|
|
@@ -1860,6 +1867,8 @@ var spine = (() => {
|
|
|
1860
1867
|
Property.deform + "|" + slotIndex + "|" + attachment.id
|
|
1861
1868
|
]);
|
|
1862
1869
|
this.slotIndex = 0;
|
|
1870
|
+
this.attachment = null;
|
|
1871
|
+
this.vertices = null;
|
|
1863
1872
|
this.slotIndex = slotIndex;
|
|
1864
1873
|
this.attachment = attachment;
|
|
1865
1874
|
this.vertices = new Array(frameCount);
|
|
@@ -2076,6 +2085,7 @@ var spine = (() => {
|
|
|
2076
2085
|
var _EventTimeline = class extends Timeline {
|
|
2077
2086
|
constructor(frameCount) {
|
|
2078
2087
|
super(frameCount, _EventTimeline.propertyIds);
|
|
2088
|
+
this.events = null;
|
|
2079
2089
|
this.events = new Array(frameCount);
|
|
2080
2090
|
}
|
|
2081
2091
|
getFrameCount() {
|
|
@@ -2118,6 +2128,7 @@ var spine = (() => {
|
|
|
2118
2128
|
var _DrawOrderTimeline = class extends Timeline {
|
|
2119
2129
|
constructor(frameCount) {
|
|
2120
2130
|
super(frameCount, _DrawOrderTimeline.propertyIds);
|
|
2131
|
+
this.drawOrders = null;
|
|
2121
2132
|
this.drawOrders = new Array(frameCount);
|
|
2122
2133
|
}
|
|
2123
2134
|
getFrameCount() {
|
|
@@ -2156,6 +2167,7 @@ var spine = (() => {
|
|
|
2156
2167
|
super(frameCount, bezierCount, [
|
|
2157
2168
|
Property.ikConstraint + "|" + ikConstraintIndex
|
|
2158
2169
|
]);
|
|
2170
|
+
this.ikConstraintIndex = 0;
|
|
2159
2171
|
this.ikConstraintIndex = ikConstraintIndex;
|
|
2160
2172
|
}
|
|
2161
2173
|
getFrameEntries() {
|
|
@@ -2241,6 +2253,7 @@ var spine = (() => {
|
|
|
2241
2253
|
super(frameCount, bezierCount, [
|
|
2242
2254
|
Property.transformConstraint + "|" + transformConstraintIndex
|
|
2243
2255
|
]);
|
|
2256
|
+
this.transformConstraintIndex = 0;
|
|
2244
2257
|
this.transformConstraintIndex = transformConstraintIndex;
|
|
2245
2258
|
}
|
|
2246
2259
|
getFrameEntries() {
|
|
@@ -2340,6 +2353,7 @@ var spine = (() => {
|
|
|
2340
2353
|
var PathConstraintPositionTimeline = class extends CurveTimeline1 {
|
|
2341
2354
|
constructor(frameCount, bezierCount, pathConstraintIndex) {
|
|
2342
2355
|
super(frameCount, bezierCount, Property.pathConstraintPosition + "|" + pathConstraintIndex);
|
|
2356
|
+
this.pathConstraintIndex = 0;
|
|
2343
2357
|
this.pathConstraintIndex = pathConstraintIndex;
|
|
2344
2358
|
}
|
|
2345
2359
|
apply(skeleton, lastTime, time, firedEvents, alpha, blend, direction) {
|
|
@@ -2521,17 +2535,25 @@ var spine = (() => {
|
|
|
2521
2535
|
case SequenceMode.loop:
|
|
2522
2536
|
index %= count;
|
|
2523
2537
|
break;
|
|
2524
|
-
case SequenceMode.pingpong:
|
|
2538
|
+
case SequenceMode.pingpong: {
|
|
2525
2539
|
let n = (count << 1) - 2;
|
|
2526
2540
|
index %= n;
|
|
2527
2541
|
if (index >= count)
|
|
2528
2542
|
index = n - index;
|
|
2529
2543
|
break;
|
|
2544
|
+
}
|
|
2530
2545
|
case SequenceMode.onceReverse:
|
|
2531
2546
|
index = Math.max(count - 1 - index, 0);
|
|
2532
2547
|
break;
|
|
2533
2548
|
case SequenceMode.loopReverse:
|
|
2534
2549
|
index = count - 1 - index % count;
|
|
2550
|
+
break;
|
|
2551
|
+
case SequenceMode.pingpongReverse: {
|
|
2552
|
+
let n = (count << 1) - 2;
|
|
2553
|
+
index = (index + count - 1) % n;
|
|
2554
|
+
if (index >= count)
|
|
2555
|
+
index = n - index;
|
|
2556
|
+
}
|
|
2535
2557
|
}
|
|
2536
2558
|
}
|
|
2537
2559
|
slot.sequenceIndex = index;
|
|
@@ -2545,6 +2567,7 @@ var spine = (() => {
|
|
|
2545
2567
|
// spine-core/src/AnimationState.ts
|
|
2546
2568
|
var AnimationState = class {
|
|
2547
2569
|
constructor(data) {
|
|
2570
|
+
this.data = null;
|
|
2548
2571
|
this.tracks = new Array();
|
|
2549
2572
|
this.timeScale = 1;
|
|
2550
2573
|
this.unkeyedState = 0;
|
|
@@ -3023,6 +3046,7 @@ var spine = (() => {
|
|
|
3023
3046
|
}
|
|
3024
3047
|
trackEntry(trackIndex, animation, loop, last) {
|
|
3025
3048
|
let entry = this.trackEntryPool.obtain();
|
|
3049
|
+
entry.reset();
|
|
3026
3050
|
entry.trackIndex = trackIndex;
|
|
3027
3051
|
entry.animation = animation;
|
|
3028
3052
|
entry.loop = loop;
|
|
@@ -3133,6 +3157,34 @@ var spine = (() => {
|
|
|
3133
3157
|
};
|
|
3134
3158
|
var TrackEntry = class {
|
|
3135
3159
|
constructor() {
|
|
3160
|
+
this.animation = null;
|
|
3161
|
+
this.previous = null;
|
|
3162
|
+
this.next = null;
|
|
3163
|
+
this.mixingFrom = null;
|
|
3164
|
+
this.mixingTo = null;
|
|
3165
|
+
this.listener = null;
|
|
3166
|
+
this.trackIndex = 0;
|
|
3167
|
+
this.loop = false;
|
|
3168
|
+
this.holdPrevious = false;
|
|
3169
|
+
this.reverse = false;
|
|
3170
|
+
this.eventThreshold = 0;
|
|
3171
|
+
this.attachmentThreshold = 0;
|
|
3172
|
+
this.drawOrderThreshold = 0;
|
|
3173
|
+
this.animationStart = 0;
|
|
3174
|
+
this.animationEnd = 0;
|
|
3175
|
+
this.animationLast = 0;
|
|
3176
|
+
this.nextAnimationLast = 0;
|
|
3177
|
+
this.delay = 0;
|
|
3178
|
+
this.trackTime = 0;
|
|
3179
|
+
this.trackLast = 0;
|
|
3180
|
+
this.nextTrackLast = 0;
|
|
3181
|
+
this.trackEnd = 0;
|
|
3182
|
+
this.timeScale = 0;
|
|
3183
|
+
this.alpha = 0;
|
|
3184
|
+
this.mixTime = 0;
|
|
3185
|
+
this.mixDuration = 0;
|
|
3186
|
+
this.interruptAlpha = 0;
|
|
3187
|
+
this.totalAlpha = 0;
|
|
3136
3188
|
this.mixBlend = MixBlend.replace;
|
|
3137
3189
|
this.timelineMode = new Array();
|
|
3138
3190
|
this.timelineHoldMix = new Array();
|
|
@@ -3183,6 +3235,7 @@ var spine = (() => {
|
|
|
3183
3235
|
constructor(animState) {
|
|
3184
3236
|
this.objects = [];
|
|
3185
3237
|
this.drainDisabled = false;
|
|
3238
|
+
this.animState = null;
|
|
3186
3239
|
this.animState = animState;
|
|
3187
3240
|
}
|
|
3188
3241
|
start(entry) {
|
|
@@ -3309,6 +3362,7 @@ var spine = (() => {
|
|
|
3309
3362
|
// spine-core/src/AnimationStateData.ts
|
|
3310
3363
|
var AnimationStateData = class {
|
|
3311
3364
|
constructor(skeletonData) {
|
|
3365
|
+
this.skeletonData = null;
|
|
3312
3366
|
this.animationToMixTime = {};
|
|
3313
3367
|
this.defaultMix = 0;
|
|
3314
3368
|
if (!skeletonData)
|
|
@@ -3357,6 +3411,7 @@ var spine = (() => {
|
|
|
3357
3411
|
var ClippingAttachment = class extends VertexAttachment {
|
|
3358
3412
|
constructor(name) {
|
|
3359
3413
|
super(name);
|
|
3414
|
+
this.endSlot = null;
|
|
3360
3415
|
this.color = new Color(0.2275, 0.2275, 0.8078, 1);
|
|
3361
3416
|
}
|
|
3362
3417
|
copy() {
|
|
@@ -3580,6 +3635,7 @@ var spine = (() => {
|
|
|
3580
3635
|
};
|
|
3581
3636
|
var TextureAtlasReader = class {
|
|
3582
3637
|
constructor(text) {
|
|
3638
|
+
this.lines = null;
|
|
3583
3639
|
this.index = 0;
|
|
3584
3640
|
this.lines = text.split(/\r\n|\r|\n/);
|
|
3585
3641
|
}
|
|
@@ -3613,10 +3669,15 @@ var spine = (() => {
|
|
|
3613
3669
|
};
|
|
3614
3670
|
var TextureAtlasPage = class {
|
|
3615
3671
|
constructor() {
|
|
3672
|
+
this.name = null;
|
|
3616
3673
|
this.minFilter = TextureFilter.Nearest;
|
|
3617
3674
|
this.magFilter = TextureFilter.Nearest;
|
|
3618
3675
|
this.uWrap = TextureWrap.ClampToEdge;
|
|
3619
3676
|
this.vWrap = TextureWrap.ClampToEdge;
|
|
3677
|
+
this.texture = null;
|
|
3678
|
+
this.width = 0;
|
|
3679
|
+
this.height = 0;
|
|
3680
|
+
this.pma = false;
|
|
3620
3681
|
}
|
|
3621
3682
|
setTexture(texture) {
|
|
3622
3683
|
this.texture = texture;
|
|
@@ -3625,13 +3686,39 @@ var spine = (() => {
|
|
|
3625
3686
|
}
|
|
3626
3687
|
};
|
|
3627
3688
|
var TextureAtlasRegion = class extends TextureRegion {
|
|
3689
|
+
constructor() {
|
|
3690
|
+
super(...arguments);
|
|
3691
|
+
this.page = null;
|
|
3692
|
+
this.name = null;
|
|
3693
|
+
this.x = 0;
|
|
3694
|
+
this.y = 0;
|
|
3695
|
+
this.offsetX = 0;
|
|
3696
|
+
this.offsetY = 0;
|
|
3697
|
+
this.originalWidth = 0;
|
|
3698
|
+
this.originalHeight = 0;
|
|
3699
|
+
this.index = 0;
|
|
3700
|
+
this.degrees = 0;
|
|
3701
|
+
this.names = null;
|
|
3702
|
+
this.values = null;
|
|
3703
|
+
}
|
|
3628
3704
|
};
|
|
3629
3705
|
|
|
3630
3706
|
// spine-core/src/attachments/MeshAttachment.ts
|
|
3631
3707
|
var MeshAttachment = class extends VertexAttachment {
|
|
3632
3708
|
constructor(name) {
|
|
3633
3709
|
super(name);
|
|
3710
|
+
this.region = null;
|
|
3711
|
+
this.path = null;
|
|
3712
|
+
this.regionUVs = null;
|
|
3713
|
+
this.uvs = null;
|
|
3714
|
+
this.triangles = null;
|
|
3634
3715
|
this.color = new Color(1, 1, 1, 1);
|
|
3716
|
+
this.width = 0;
|
|
3717
|
+
this.height = 0;
|
|
3718
|
+
this.hullLength = 0;
|
|
3719
|
+
this.edges = null;
|
|
3720
|
+
this.parentMesh = null;
|
|
3721
|
+
this.sequence = null;
|
|
3635
3722
|
this.tempColor = new Color(0, 0, 0, 0);
|
|
3636
3723
|
}
|
|
3637
3724
|
updateRegion() {
|
|
@@ -3753,6 +3840,7 @@ var spine = (() => {
|
|
|
3753
3840
|
var PathAttachment = class extends VertexAttachment {
|
|
3754
3841
|
constructor(name) {
|
|
3755
3842
|
super(name);
|
|
3843
|
+
this.lengths = null;
|
|
3756
3844
|
this.closed = false;
|
|
3757
3845
|
this.constantSpeed = false;
|
|
3758
3846
|
this.color = new Color(1, 1, 1, 1);
|
|
@@ -3773,6 +3861,9 @@ var spine = (() => {
|
|
|
3773
3861
|
var PointAttachment = class extends VertexAttachment {
|
|
3774
3862
|
constructor(name) {
|
|
3775
3863
|
super(name);
|
|
3864
|
+
this.x = 0;
|
|
3865
|
+
this.y = 0;
|
|
3866
|
+
this.rotation = 0;
|
|
3776
3867
|
this.color = new Color(0.38, 0.94, 0, 1);
|
|
3777
3868
|
}
|
|
3778
3869
|
computeWorldPosition(bone, point) {
|
|
@@ -3808,6 +3899,10 @@ var spine = (() => {
|
|
|
3808
3899
|
this.width = 0;
|
|
3809
3900
|
this.height = 0;
|
|
3810
3901
|
this.color = new Color(1, 1, 1, 1);
|
|
3902
|
+
this.path = null;
|
|
3903
|
+
this.rendererObject = null;
|
|
3904
|
+
this.region = null;
|
|
3905
|
+
this.sequence = null;
|
|
3811
3906
|
this.offset = Utils.newFloatArray(8);
|
|
3812
3907
|
this.uvs = Utils.newFloatArray(8);
|
|
3813
3908
|
this.tempColor = new Color(1, 1, 1, 1);
|
|
@@ -3946,6 +4041,7 @@ var spine = (() => {
|
|
|
3946
4041
|
// spine-core/src/AtlasAttachmentLoader.ts
|
|
3947
4042
|
var AtlasAttachmentLoader = class {
|
|
3948
4043
|
constructor(atlas) {
|
|
4044
|
+
this.atlas = null;
|
|
3949
4045
|
this.atlas = atlas;
|
|
3950
4046
|
}
|
|
3951
4047
|
loadSequence(name, basePath, sequence) {
|
|
@@ -4001,6 +4097,10 @@ var spine = (() => {
|
|
|
4001
4097
|
// spine-core/src/BoneData.ts
|
|
4002
4098
|
var BoneData = class {
|
|
4003
4099
|
constructor(index, name, parent) {
|
|
4100
|
+
this.index = 0;
|
|
4101
|
+
this.name = null;
|
|
4102
|
+
this.parent = null;
|
|
4103
|
+
this.length = 0;
|
|
4004
4104
|
this.x = 0;
|
|
4005
4105
|
this.y = 0;
|
|
4006
4106
|
this.rotation = 0;
|
|
@@ -4032,6 +4132,9 @@ var spine = (() => {
|
|
|
4032
4132
|
// spine-core/src/Bone.ts
|
|
4033
4133
|
var Bone = class {
|
|
4034
4134
|
constructor(data, skeleton, parent) {
|
|
4135
|
+
this.data = null;
|
|
4136
|
+
this.skeleton = null;
|
|
4137
|
+
this.parent = null;
|
|
4035
4138
|
this.children = new Array();
|
|
4036
4139
|
this.x = 0;
|
|
4037
4140
|
this.y = 0;
|
|
@@ -4284,6 +4387,7 @@ var spine = (() => {
|
|
|
4284
4387
|
// spine-core/src/AssetManagerBase.ts
|
|
4285
4388
|
var AssetManagerBase = class {
|
|
4286
4389
|
constructor(textureLoader, pathPrefix = "", downloader = null) {
|
|
4390
|
+
this.pathPrefix = null;
|
|
4287
4391
|
this.assets = {};
|
|
4288
4392
|
this.errors = {};
|
|
4289
4393
|
this.toLoad = 0;
|
|
@@ -4553,6 +4657,13 @@ var spine = (() => {
|
|
|
4553
4657
|
// spine-core/src/Event.ts
|
|
4554
4658
|
var Event = class {
|
|
4555
4659
|
constructor(time, data) {
|
|
4660
|
+
this.data = null;
|
|
4661
|
+
this.intValue = 0;
|
|
4662
|
+
this.floatValue = 0;
|
|
4663
|
+
this.stringValue = null;
|
|
4664
|
+
this.time = 0;
|
|
4665
|
+
this.volume = 0;
|
|
4666
|
+
this.balance = 0;
|
|
4556
4667
|
if (!data)
|
|
4557
4668
|
throw new Error("data cannot be null.");
|
|
4558
4669
|
this.time = time;
|
|
@@ -4563,6 +4674,13 @@ var spine = (() => {
|
|
|
4563
4674
|
// spine-core/src/EventData.ts
|
|
4564
4675
|
var EventData = class {
|
|
4565
4676
|
constructor(name) {
|
|
4677
|
+
this.name = null;
|
|
4678
|
+
this.intValue = 0;
|
|
4679
|
+
this.floatValue = 0;
|
|
4680
|
+
this.stringValue = null;
|
|
4681
|
+
this.audioPath = null;
|
|
4682
|
+
this.volume = 0;
|
|
4683
|
+
this.balance = 0;
|
|
4566
4684
|
this.name = name;
|
|
4567
4685
|
}
|
|
4568
4686
|
};
|
|
@@ -4570,6 +4688,9 @@ var spine = (() => {
|
|
|
4570
4688
|
// spine-core/src/IkConstraint.ts
|
|
4571
4689
|
var IkConstraint = class {
|
|
4572
4690
|
constructor(data, skeleton) {
|
|
4691
|
+
this.data = null;
|
|
4692
|
+
this.bones = null;
|
|
4693
|
+
this.target = null;
|
|
4573
4694
|
this.bendDirection = 0;
|
|
4574
4695
|
this.compress = false;
|
|
4575
4696
|
this.stretch = false;
|
|
@@ -4808,6 +4929,7 @@ var spine = (() => {
|
|
|
4808
4929
|
constructor(name) {
|
|
4809
4930
|
super(name, 0, false);
|
|
4810
4931
|
this.bones = new Array();
|
|
4932
|
+
this.target = null;
|
|
4811
4933
|
this.bendDirection = 1;
|
|
4812
4934
|
this.compress = false;
|
|
4813
4935
|
this.stretch = false;
|
|
@@ -4822,6 +4944,13 @@ var spine = (() => {
|
|
|
4822
4944
|
constructor(name) {
|
|
4823
4945
|
super(name, 0, false);
|
|
4824
4946
|
this.bones = new Array();
|
|
4947
|
+
this.target = null;
|
|
4948
|
+
this.positionMode = null;
|
|
4949
|
+
this.spacingMode = null;
|
|
4950
|
+
this.rotateMode = null;
|
|
4951
|
+
this.offsetRotation = 0;
|
|
4952
|
+
this.position = 0;
|
|
4953
|
+
this.spacing = 0;
|
|
4825
4954
|
this.mixRotate = 0;
|
|
4826
4955
|
this.mixX = 0;
|
|
4827
4956
|
this.mixY = 0;
|
|
@@ -4849,6 +4978,9 @@ var spine = (() => {
|
|
|
4849
4978
|
// spine-core/src/PathConstraint.ts
|
|
4850
4979
|
var _PathConstraint = class {
|
|
4851
4980
|
constructor(data, skeleton) {
|
|
4981
|
+
this.data = null;
|
|
4982
|
+
this.bones = null;
|
|
4983
|
+
this.target = null;
|
|
4852
4984
|
this.position = 0;
|
|
4853
4985
|
this.spacing = 0;
|
|
4854
4986
|
this.mixRotate = 0;
|
|
@@ -5268,6 +5400,12 @@ var spine = (() => {
|
|
|
5268
5400
|
// spine-core/src/Slot.ts
|
|
5269
5401
|
var Slot = class {
|
|
5270
5402
|
constructor(data, bone) {
|
|
5403
|
+
this.data = null;
|
|
5404
|
+
this.bone = null;
|
|
5405
|
+
this.color = null;
|
|
5406
|
+
this.darkColor = null;
|
|
5407
|
+
this.attachment = null;
|
|
5408
|
+
this.attachmentState = 0;
|
|
5271
5409
|
this.deform = new Array();
|
|
5272
5410
|
if (!data)
|
|
5273
5411
|
throw new Error("data cannot be null.");
|
|
@@ -5310,6 +5448,9 @@ var spine = (() => {
|
|
|
5310
5448
|
// spine-core/src/TransformConstraint.ts
|
|
5311
5449
|
var TransformConstraint = class {
|
|
5312
5450
|
constructor(data, skeleton) {
|
|
5451
|
+
this.data = null;
|
|
5452
|
+
this.bones = null;
|
|
5453
|
+
this.target = null;
|
|
5313
5454
|
this.mixRotate = 0;
|
|
5314
5455
|
this.mixX = 0;
|
|
5315
5456
|
this.mixY = 0;
|
|
@@ -5517,7 +5658,16 @@ var spine = (() => {
|
|
|
5517
5658
|
// spine-core/src/Skeleton.ts
|
|
5518
5659
|
var Skeleton = class {
|
|
5519
5660
|
constructor(data) {
|
|
5661
|
+
this.data = null;
|
|
5662
|
+
this.bones = null;
|
|
5663
|
+
this.slots = null;
|
|
5664
|
+
this.drawOrder = null;
|
|
5665
|
+
this.ikConstraints = null;
|
|
5666
|
+
this.transformConstraints = null;
|
|
5667
|
+
this.pathConstraints = null;
|
|
5520
5668
|
this._updateCache = new Array();
|
|
5669
|
+
this.skin = null;
|
|
5670
|
+
this.color = null;
|
|
5521
5671
|
this.scaleX = 1;
|
|
5522
5672
|
this.scaleY = 1;
|
|
5523
5673
|
this.x = 0;
|
|
@@ -5976,15 +6126,25 @@ var spine = (() => {
|
|
|
5976
6126
|
// spine-core/src/SkeletonData.ts
|
|
5977
6127
|
var SkeletonData = class {
|
|
5978
6128
|
constructor() {
|
|
6129
|
+
this.name = null;
|
|
5979
6130
|
this.bones = new Array();
|
|
5980
6131
|
this.slots = new Array();
|
|
5981
6132
|
this.skins = new Array();
|
|
6133
|
+
this.defaultSkin = null;
|
|
5982
6134
|
this.events = new Array();
|
|
5983
6135
|
this.animations = new Array();
|
|
5984
6136
|
this.ikConstraints = new Array();
|
|
5985
6137
|
this.transformConstraints = new Array();
|
|
5986
6138
|
this.pathConstraints = new Array();
|
|
6139
|
+
this.x = 0;
|
|
6140
|
+
this.y = 0;
|
|
6141
|
+
this.width = 0;
|
|
6142
|
+
this.height = 0;
|
|
6143
|
+
this.version = null;
|
|
6144
|
+
this.hash = null;
|
|
5987
6145
|
this.fps = 0;
|
|
6146
|
+
this.imagesPath = null;
|
|
6147
|
+
this.audioPath = null;
|
|
5988
6148
|
}
|
|
5989
6149
|
findBone(boneName) {
|
|
5990
6150
|
if (!boneName)
|
|
@@ -6078,7 +6238,7 @@ var spine = (() => {
|
|
|
6078
6238
|
|
|
6079
6239
|
// spine-core/src/Skin.ts
|
|
6080
6240
|
var SkinEntry = class {
|
|
6081
|
-
constructor(slotIndex, name, attachment) {
|
|
6241
|
+
constructor(slotIndex = 0, name = null, attachment = null) {
|
|
6082
6242
|
this.slotIndex = slotIndex;
|
|
6083
6243
|
this.name = name;
|
|
6084
6244
|
this.attachment = attachment;
|
|
@@ -6086,6 +6246,7 @@ var spine = (() => {
|
|
|
6086
6246
|
};
|
|
6087
6247
|
var Skin = class {
|
|
6088
6248
|
constructor(name) {
|
|
6249
|
+
this.name = null;
|
|
6089
6250
|
this.attachments = new Array();
|
|
6090
6251
|
this.bones = Array();
|
|
6091
6252
|
this.constraints = new Array();
|
|
@@ -6236,7 +6397,13 @@ var spine = (() => {
|
|
|
6236
6397
|
// spine-core/src/SlotData.ts
|
|
6237
6398
|
var SlotData = class {
|
|
6238
6399
|
constructor(index, name, boneData) {
|
|
6400
|
+
this.index = 0;
|
|
6401
|
+
this.name = null;
|
|
6402
|
+
this.boneData = null;
|
|
6239
6403
|
this.color = new Color(1, 1, 1, 1);
|
|
6404
|
+
this.darkColor = null;
|
|
6405
|
+
this.attachmentName = null;
|
|
6406
|
+
this.blendMode = null;
|
|
6240
6407
|
if (index < 0)
|
|
6241
6408
|
throw new Error("index must be >= 0.");
|
|
6242
6409
|
if (!name)
|
|
@@ -6261,6 +6428,7 @@ var spine = (() => {
|
|
|
6261
6428
|
constructor(name) {
|
|
6262
6429
|
super(name, 0, false);
|
|
6263
6430
|
this.bones = new Array();
|
|
6431
|
+
this.target = null;
|
|
6264
6432
|
this.mixRotate = 0;
|
|
6265
6433
|
this.mixX = 0;
|
|
6266
6434
|
this.mixY = 0;
|
|
@@ -6282,6 +6450,7 @@ var spine = (() => {
|
|
|
6282
6450
|
var SkeletonBinary = class {
|
|
6283
6451
|
constructor(attachmentLoader) {
|
|
6284
6452
|
this.scale = 1;
|
|
6453
|
+
this.attachmentLoader = null;
|
|
6285
6454
|
this.linkedMeshes = new Array();
|
|
6286
6455
|
this.attachmentLoader = attachmentLoader;
|
|
6287
6456
|
}
|
|
@@ -7993,6 +8162,7 @@ var spine = (() => {
|
|
|
7993
8162
|
// spine-core/src/SkeletonJson.ts
|
|
7994
8163
|
var SkeletonJson = class {
|
|
7995
8164
|
constructor(attachmentLoader) {
|
|
8165
|
+
this.attachmentLoader = null;
|
|
7996
8166
|
this.scale = 1;
|
|
7997
8167
|
this.linkedMeshes = new Array();
|
|
7998
8168
|
this.attachmentLoader = attachmentLoader;
|