Skip to content

Interface: SSUserDataEvent ​

Defined in: packages/ssplayer-pixi/src/SSPlayer.ts:31

A user-data event fired by a part on the frame it was authored. Optional fields mirror the SSAB payload: each is present only if that value type was authored (an authored integer of 0 is still present, distinct from absent).

Properties ​

frameNo ​

frameNo: number

Defined in: packages/ssplayer-pixi/src/SSPlayer.ts:38

The frame the key is authored on — not necessarily the frame it was noticed on, since one tick can step across several.


integer? ​

optional integer?: number

Defined in: packages/ssplayer-pixi/src/SSPlayer.ts:45


partIndex ​

partIndex: number

Defined in: packages/ssplayer-pixi/src/SSPlayer.ts:32


partName ​

partName: string | null

Defined in: packages/ssplayer-pixi/src/SSPlayer.ts:33


point? ​

optional point?: object

Defined in: packages/ssplayer-pixi/src/SSPlayer.ts:50

User-data point as authored.

x ​

x: number

y ​

y: number


rect? ​

optional rect?: object

Defined in: packages/ssplayer-pixi/src/SSPlayer.ts:48

User-data rectangle as authored (left/top/right/bottom).

bottom ​

bottom: number

left ​

left: number

right: number

top ​

top: number


source ​

source: number

Defined in: packages/ssplayer-pixi/src/SSPlayer.ts:44

The source that fired it: a handle like those getTrackMainSource and addTrackSource return. Tells track 0's main animation from an overlay or from the outgoing side of a crossfade.


str? ​

optional str?: string

Defined in: packages/ssplayer-pixi/src/SSPlayer.ts:46