mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[ts][player] Fix Viewport type.
This commit is contained in:
parent
9424018102
commit
606a5e5a30
@ -184,16 +184,19 @@ export interface SpinePlayerConfig {
|
|||||||
export interface Viewport {
|
export interface Viewport {
|
||||||
/* Optional: The position and size of the viewport in the skeleton's world coordinates. Default: the bounding box that fits
|
/* Optional: The position and size of the viewport in the skeleton's world coordinates. Default: the bounding box that fits
|
||||||
the current animation */
|
the current animation */
|
||||||
x: number,
|
x: number
|
||||||
y: number,
|
y: number
|
||||||
width: number,
|
width: number
|
||||||
height: number,
|
height: number
|
||||||
|
|
||||||
/* Optional: Padding around the viewport size, given as a number or percentage (eg "25%"). Default: 10% */
|
/* Optional: Padding around the viewport size, given as a number or percentage (eg "25%"). Default: 10% */
|
||||||
padLeft: string | number
|
padLeft: string | number
|
||||||
padRight: string | number
|
padRight: string | number
|
||||||
padTop: string | number
|
padTop: string | number
|
||||||
padBottom: string | number
|
padBottom: string | number
|
||||||
|
|
||||||
|
/* Optional: if true, rendering occurs only within the viewport */
|
||||||
|
clip?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
export class SpinePlayer implements Disposable {
|
export class SpinePlayer implements Disposable {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user