mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 15:24:55 +08:00
[ts] Closes #738, remove trailing whitespace
This commit is contained in:
parent
f5aba88921
commit
05551e9b16
@ -2416,4 +2416,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -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) {
|
||||
|
||||
@ -73,7 +73,7 @@ module spine {
|
||||
this.drawOrder.push(slot);
|
||||
}
|
||||
|
||||
this.ikConstraints = new Array<IkConstraint>();
|
||||
this.ikConstraints = new Array<IkConstraint>();
|
||||
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]);
|
||||
|
||||
@ -58,7 +58,7 @@ module spine {
|
||||
* @param offset The worldVertices index to begin writing values. */
|
||||
computeWorldVerticesWith (slot: Slot, start: number, count: number, worldVertices: ArrayLike<number>, 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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user