Ver código fonte

Run formatter.

Davide Tantillo 4 meses atrás
pai
commit
365c4a08a3

+ 1 - 4
spine-ts/spine-webcomponents/src/SpineWebComponentOverlay.ts

@@ -27,7 +27,7 @@
  * SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  * SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  *****************************************************************************/
  *****************************************************************************/
 
 
-import { AssetManager, Color, Input, LoadingScreen, ManagedWebGLRenderingContext, Physics, SceneRenderer, TimeKeeper, Vector2, Vector3 } from "@esotericsoftware/spine-webgl"
+import { AssetManager, Color, Disposable, Input, LoadingScreen, ManagedWebGLRenderingContext, Physics, SceneRenderer, TimeKeeper, Vector2, Vector3 } from "@esotericsoftware/spine-webgl"
 import { SpineWebComponentSkeleton } from "./SpineWebComponentSkeleton.js"
 import { SpineWebComponentSkeleton } from "./SpineWebComponentSkeleton.js"
 import { AttributeTypes, castValue, Point, Rectangle } from "./wcUtils.js"
 import { AttributeTypes, castValue, Point, Rectangle } from "./wcUtils.js"
 
 
@@ -213,9 +213,6 @@ export class SpineWebComponentOverlay extends HTMLElement implements OverlayAttr
 
 
 		this.assetManager = new AssetManager(context);
 		this.assetManager = new AssetManager(context);
 	}
 	}
-	[Symbol.dispose](): void {
-		throw new Error("Method not implemented.")
-	}
 
 
 	connectedCallback (): void {
 	connectedCallback (): void {
 		this.appendedToBody = this.parentElement !== document.body;
 		this.appendedToBody = this.parentElement !== document.body;

+ 1 - 1
spine-ts/spine-webcomponents/src/SpineWebComponentSkeleton.ts

@@ -1333,7 +1333,7 @@ export class SpineWebComponentSkeleton extends HTMLElement implements Disposable
 customElements.define("spine-skeleton", SpineWebComponentSkeleton);
 customElements.define("spine-skeleton", SpineWebComponentSkeleton);
 
 
 export function getSpineWidget (identifier: string): SpineWebComponentSkeleton {
 export function getSpineWidget (identifier: string): SpineWebComponentSkeleton {
-    return document.querySelector(`spine-skeleton[identifier=${identifier}]`) as SpineWebComponentSkeleton;
+	return document.querySelector(`spine-skeleton[identifier=${identifier}]`) as SpineWebComponentSkeleton;
 }
 }
 
 
 export function createSpineWidget (parameters: WidgetAttributes): SpineWebComponentSkeleton {
 export function createSpineWidget (parameters: WidgetAttributes): SpineWebComponentSkeleton {