Skip to main content

SkinsController

Manages skin registration and application across all spine instances. Accessed via layout.skins.

Methods

getList

getList(): Map<SpineID, string[]>

Returns the raw map of spineID → registered skin names.


getAll

getAll(): Set<string>

Returns a flat set of every registered skin name across all spines.


getSpineSkinsBySkinID

getSpineSkinsBySkinID(skinID: string): string[]

Returns all skin names registered under the given skin ID.


apply

apply(skin: string): void

Applies a skin by name to every spine that has it defined.


applyBySpineID

applyBySpineID(spineID: string, skinName: string): void

Applies a skin by name to a specific spine instance.


registerSkin

registerSkin(spineID: string, skinName: string): void

Records a skin name as available for the given spine (used during initialization).