From 228d49ff05c5da0d39b24b3628756a374df053cb Mon Sep 17 00:00:00 2001 From: Davide Tantillo Date: Mon, 5 May 2025 16:18:49 +0200 Subject: [PATCH] Formatter. --- spine-ts/spine-core/src/AssetManagerBase.ts | 2 +- spine-ts/spine-widget/src/SpineWebComponentWidget.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/spine-ts/spine-core/src/AssetManagerBase.ts b/spine-ts/spine-core/src/AssetManagerBase.ts index 46d05fbf6..9adfbd8a9 100644 --- a/spine-ts/spine-core/src/AssetManagerBase.ts +++ b/spine-ts/spine-core/src/AssetManagerBase.ts @@ -368,7 +368,7 @@ export class AssetManagerBase implements Disposable { } // dispose asset only if it's not used by others - disposeAsset(path: string) { + disposeAsset (path: string) { if (--this.assetsRefCount[path] === 0) { this.remove(path) } diff --git a/spine-ts/spine-widget/src/SpineWebComponentWidget.ts b/spine-ts/spine-widget/src/SpineWebComponentWidget.ts index 7dff71fbf..2bdd2e901 100644 --- a/spine-ts/spine-widget/src/SpineWebComponentWidget.ts +++ b/spine-ts/spine-widget/src/SpineWebComponentWidget.ts @@ -560,7 +560,7 @@ export class SpineWebComponentWidget extends HTMLElement implements Disposable, * Remove callbacks added through {@link addCursorSlotEventCallback}. * @param slot: the slot reference to which remove the associated callback */ - public removeCursorSlotEventCallbacks(slot: number | string | Slot) { + public removeCursorSlotEventCallbacks (slot: number | string | Slot) { this.cursorSlotEventCallbacks.delete(this.getSlotFromRef(slot)); } @@ -700,7 +700,7 @@ export class SpineWebComponentWidget extends HTMLElement implements Disposable, * A Promise that resolve to the widget itself once assets loading is terminated. * Useful to safely access {@link skeleton} and {@link state} after a new widget has been just created. */ - public get whenReady(): Promise { + public get whenReady (): Promise { return this._whenReady; }; private _whenReady: Promise; @@ -1082,7 +1082,7 @@ export class SpineWebComponentWidget extends HTMLElement implements Disposable, : this.overlay.assetManager.loadTextureAtlasButNoTexturesAsync(atlasPath).then(() => { this.lastAtlasPath = atlasPath; return this.loadTexturesInPagesAttribute(); - }), + }), ]); const atlas = this.overlay.assetManager.require(atlasPath) as TextureAtlas; @@ -1414,7 +1414,7 @@ export class SpineWebComponentWidget extends HTMLElement implements Disposable, } } - private disposeGLResources() { + private disposeGLResources () { const { assetManager } = this.overlay; if (this.lastAtlasPath) assetManager.disposeAsset(this.lastAtlasPath); if (this.lastSkelPath) assetManager.disposeAsset(this.lastSkelPath);