From d8e0ca097e54613cbb6b9dea72b21f9334cb5e97 Mon Sep 17 00:00:00 2001 From: Davide Tantillo Date: Tue, 13 Aug 2024 09:11:17 +0200 Subject: [PATCH] [ts][pixi] Formatting --- spine-ts/spine-pixi/src/Spine.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spine-ts/spine-pixi/src/Spine.ts b/spine-ts/spine-pixi/src/Spine.ts index 6cc92f29d..afc40f28e 100644 --- a/spine-ts/spine-pixi/src/Spine.ts +++ b/spine-ts/spine-pixi/src/Spine.ts @@ -229,7 +229,7 @@ export class Spine extends Container { * Check the existence of a mesh for the given slot. * If you want to manually handle which meshes go on which slot and how you cache, overwrite this method. */ - protected hasMeshForSlot(slot: Slot) { + protected hasMeshForSlot (slot: Slot) { return this.meshesCache.has(slot); } @@ -237,7 +237,7 @@ export class Spine extends Container { * Search the mesh corresponding to the given slot or create it, if it does not exists. * If you want to manually handle which meshes go on which slot and how you cache, overwrite this method. */ - protected getMeshForSlot(slot: Slot): ISlotMesh { + protected getMeshForSlot (slot: Slot): ISlotMesh { if (!this.hasMeshForSlot(slot)) { let mesh = this.slotMeshFactory(); this.addChild(mesh); @@ -349,8 +349,8 @@ export class Spine extends Container { clippingAttachment.computeWorldVertices(pixiMaskSource.slot, 0, worldVerticesLength, this.clippingVertAux, 0, 2); mask.clear().lineStyle(0).beginFill(0x000000); mask.moveTo(this.clippingVertAux[0], this.clippingVertAux[1]); - for (let i = 2; i < worldVerticesLength; i+=2) { - mask.lineTo(this.clippingVertAux[i], this.clippingVertAux[i+1]); + for (let i = 2; i < worldVerticesLength; i += 2) { + mask.lineTo(this.clippingVertAux[i], this.clippingVertAux[i + 1]); } mask.finishPoly(); }