diff --git a/spine-ts/canvas/example/assets/spineboy.json b/spine-ts/canvas/example/assets/spineboy.json index b63de2a04..3dfd78d82 100644 --- a/spine-ts/canvas/example/assets/spineboy.json +++ b/spine-ts/canvas/example/assets/spineboy.json @@ -2416,4 +2416,4 @@ } } } -} \ No newline at end of file +} diff --git a/spine-ts/core/src/Bone.ts b/spine-ts/core/src/Bone.ts index d80659cf2..c5579a9f5 100644 --- a/spine-ts/core/src/Bone.ts +++ b/spine-ts/core/src/Bone.ts @@ -97,7 +97,7 @@ module spine { this.c = lc; this.d = ld; this.worldX = x + skeleton.x; - this.worldY = y + skeleton.y; + this.worldY = y + skeleton.y; return; } @@ -253,7 +253,7 @@ module spine { this.ay = this.worldY; this.arotation = Math.atan2(this.c, this.a) * MathUtils.radDeg; this.ascaleX = Math.sqrt(this.a * this.a + this.c * this.c); - this.ascaleY = Math.sqrt(this.b * this.b + this.d * this.d); + this.ascaleY = Math.sqrt(this.b * this.b + this.d * this.d); this.ashearX = 0; this.ashearY = Math.atan2(this.a * this.b + this.c * this.d, this.a * this.d - this.b * this.c) * MathUtils.radDeg; return; @@ -283,7 +283,7 @@ module spine { this.ascaleY = Math.sqrt(rb * rb + rd * rd); this.ashearY = 0; this.arotation = 90 - Math.atan2(rd, rb) * MathUtils.radDeg; - } + } } worldToLocal (world: Vector2) { diff --git a/spine-ts/core/src/Skeleton.ts b/spine-ts/core/src/Skeleton.ts index ef67da375..78987b497 100644 --- a/spine-ts/core/src/Skeleton.ts +++ b/spine-ts/core/src/Skeleton.ts @@ -73,7 +73,7 @@ module spine { this.drawOrder.push(slot); } - this.ikConstraints = new Array(); + this.ikConstraints = new Array(); for (let i = 0; i < data.ikConstraints.length; i++) { let ikConstraintData = data.ikConstraints[i]; this.ikConstraints.push(new IkConstraint(ikConstraintData, this)); @@ -109,7 +109,7 @@ module spine { let pathConstraints = this.pathConstraints; let ikCount = ikConstraints.length, transformCount = transformConstraints.length, pathCount = pathConstraints.length; let constraintCount = ikCount + transformCount + pathCount; - + outer: for (let i = 0; i < constraintCount; i++) { for (let ii = 0; ii < ikCount; ii++) { @@ -136,7 +136,7 @@ module spine { } for (let i = 0, n = bones.length; i < n; i++) - this.sortBone(bones[i]); + this.sortBone(bones[i]); } sortIkConstraint (constraint: IkConstraint) { @@ -217,7 +217,7 @@ module spine { let bones = this.bones; let i = 0; while (i < pathBones.length) { - let boneCount = pathBones[i++]; + let boneCount = pathBones[i++]; for (let n = i + boneCount; i < n; i++) { let boneIndex = pathBones[i]; this.sortBone(bones[boneIndex]); diff --git a/spine-ts/core/src/attachments/Attachment.ts b/spine-ts/core/src/attachments/Attachment.ts index 1652be06d..1ba8dff99 100644 --- a/spine-ts/core/src/attachments/Attachment.ts +++ b/spine-ts/core/src/attachments/Attachment.ts @@ -58,7 +58,7 @@ module spine { * @param offset The worldVertices index to begin writing values. */ computeWorldVerticesWith (slot: Slot, start: number, count: number, worldVertices: ArrayLike, offset: number) { count += offset; - let skeleton = slot.bone.skeleton; + let skeleton = slot.bone.skeleton; let deformArray = slot.attachmentVertices; let vertices = this.vertices; let bones = this.bones;