Browse Source

[ts] Run tsfmt

Davide Tantillo 10 months ago
parent
commit
e8719ebb99

+ 1 - 1
spine-ts/README.md

@@ -19,7 +19,7 @@ For documentation of the core API in `spine-core`, please refer to our [Spine Ru
 
 For documentation of `spine-phaser`, please refer to our [spine-phaser Guide](https://esotericsoftware.com/spine-phaser).
 
-For documentation of `spine-pixi` and `spine-pixi`, please refer to our [spine-pixi Guide](https://esotericsoftware.com/spine-pixi).
+For documentation of `spine-pixi` and `spine-pixi-v8`, please refer to our [spine-pixi Guide](https://esotericsoftware.com/spine-pixi).
 
 For documentation of `spine-canvaskit`, please refer to our [spine-canvaskit Guide](https://esotericsoftware.com/spine-canvaskit).
 

+ 1 - 1
spine-ts/spine-pixi-v8/src/BatchableSpineSlot.ts

@@ -40,7 +40,7 @@ export class BatchableSpineSlot implements DefaultBatchableMeshElement {
 
 	batcherName = 'darkTint';
 
-	topology:Topology = 'triangle-list';
+	topology: Topology = 'triangle-list';
 
 	readonly packAsQuad = false;
 

+ 2 - 2
spine-ts/spine-pixi-v8/src/SpineDebugRenderer.ts

@@ -477,8 +477,8 @@ export class SpineDebugRenderer implements ISpineDebugRenderer {
 
 		if (bounds.minX !== Infinity) {
 			debugDisplayObjects.boundingBoxesRect
-			.rect(bounds.minX, bounds.minY, bounds.getWidth(), bounds.getHeight())
-			.stroke({ width: lineWidth, color: this.boundingBoxesRectColor });
+				.rect(bounds.minX, bounds.minY, bounds.getWidth(), bounds.getHeight())
+				.stroke({ width: lineWidth, color: this.boundingBoxesRectColor });
 		}
 
 		const polygons = bounds.polygons;

+ 5 - 5
spine-ts/spine-pixi/src/Spine.ts

@@ -670,7 +670,7 @@ export class Spine extends Container {
 	 * @param options - Options to configure the Spine game object. See {@link SpineFromOptions}
 	 * @returns {Spine} The Spine game object instantiated
 	 */
-    public static from(options: SpineFromOptions): Spine;
+	public static from (options: SpineFromOptions): Spine;
 
 	/**
 	 * @deprecated use the `from(options: SpineFromOptions)` version.
@@ -689,12 +689,12 @@ export class Spine extends Container {
 	 * @param options - Options to configure the Spine game object
 	 * @returns {Spine} The Spine game object instantiated
 	 */
-	public static from(skeletonAssetName: string, atlasAssetName: string, options?: ISpineOptions): Spine;
+	public static from (skeletonAssetName: string, atlasAssetName: string, options?: ISpineOptions): Spine;
 	public static from (
 		paramOne: string | SpineFromOptions,
-        atlasAssetName?: string,
-        options?: ISpineOptions)
-	: Spine {
+		atlasAssetName?: string,
+		options?: ISpineOptions)
+		: Spine {
 		if (typeof paramOne === "string") {
 			return Spine.oldFrom(paramOne, atlasAssetName!, options);
 		}