mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 09:46:02 +08:00
[ts] Run tsfmt
This commit is contained in:
parent
ecbe9b0247
commit
e8719ebb99
@ -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-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).
|
For documentation of `spine-canvaskit`, please refer to our [spine-canvaskit Guide](https://esotericsoftware.com/spine-canvaskit).
|
||||||
|
|
||||||
|
|||||||
@ -40,7 +40,7 @@ export class BatchableSpineSlot implements DefaultBatchableMeshElement {
|
|||||||
|
|
||||||
batcherName = 'darkTint';
|
batcherName = 'darkTint';
|
||||||
|
|
||||||
topology:Topology = 'triangle-list';
|
topology: Topology = 'triangle-list';
|
||||||
|
|
||||||
readonly packAsQuad = false;
|
readonly packAsQuad = false;
|
||||||
|
|
||||||
|
|||||||
@ -477,8 +477,8 @@ export class SpineDebugRenderer implements ISpineDebugRenderer {
|
|||||||
|
|
||||||
if (bounds.minX !== Infinity) {
|
if (bounds.minX !== Infinity) {
|
||||||
debugDisplayObjects.boundingBoxesRect
|
debugDisplayObjects.boundingBoxesRect
|
||||||
.rect(bounds.minX, bounds.minY, bounds.getWidth(), bounds.getHeight())
|
.rect(bounds.minX, bounds.minY, bounds.getWidth(), bounds.getHeight())
|
||||||
.stroke({ width: lineWidth, color: this.boundingBoxesRectColor });
|
.stroke({ width: lineWidth, color: this.boundingBoxesRectColor });
|
||||||
}
|
}
|
||||||
|
|
||||||
const polygons = bounds.polygons;
|
const polygons = bounds.polygons;
|
||||||
|
|||||||
@ -670,7 +670,7 @@ export class Spine extends Container {
|
|||||||
* @param options - Options to configure the Spine game object. See {@link SpineFromOptions}
|
* @param options - Options to configure the Spine game object. See {@link SpineFromOptions}
|
||||||
* @returns {Spine} The Spine game object instantiated
|
* @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.
|
* @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
|
* @param options - Options to configure the Spine game object
|
||||||
* @returns {Spine} The Spine game object instantiated
|
* @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 (
|
public static from (
|
||||||
paramOne: string | SpineFromOptions,
|
paramOne: string | SpineFromOptions,
|
||||||
atlasAssetName?: string,
|
atlasAssetName?: string,
|
||||||
options?: ISpineOptions)
|
options?: ISpineOptions)
|
||||||
: Spine {
|
: Spine {
|
||||||
if (typeof paramOne === "string") {
|
if (typeof paramOne === "string") {
|
||||||
return Spine.oldFrom(paramOne, atlasAssetName!, options);
|
return Spine.oldFrom(paramOne, atlasAssetName!, options);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user