Skip to content

Commit

Permalink
[ts][pixi] Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
davidetan committed Aug 13, 2024
1 parent 2936949 commit d8e0ca0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spine-ts/spine-pixi/src/Spine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,15 +229,15 @@ 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);
}

/**
* 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);
Expand Down Expand Up @@ -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();
}
Expand Down

0 comments on commit d8e0ca0

Please sign in to comment.