Skip to content

AnimClipFrameData

Defined in: animation/AnimClipLoader.ts:64

optional atlasFrame?: object

Defined in: animation/AnimClipLoader.ts:88

height: number

pageHeight: number

pageWidth: number

width: number

x: number

y: number


optional cell?: number

Defined in: animation/AnimClipLoader.ts:68

Sheet cell index (row-major, 0-based); requires a sheet section.


optional duration?: number

Defined in: animation/AnimClipLoader.ts:69


optional offset?: AnimClipVec2

Defined in: animation/AnimClipLoader.ts:87

Shifts this frame’s artwork away from the clip’s anchor, in size’s units, and folded into the frame’s pivot at load. Units rather than a normalized pivot because the same offset is the same visual shift on frames of any size — a pivot is not.


optional pivot?: AnimClipPivotData

Defined in: animation/AnimClipLoader.ts:75

Anchor override for this frame; absent = the clip’s pivot. Added in format 1.4 — this is what keeps a character’s feet planted when the artwork shifts inside the cell from frame to frame.


optional size?: AnimClipVec2

Defined in: animation/AnimClipLoader.ts:80

What this frame draws at. Absent = its own natural size (its sheet cell, or its texture’s pixels), which is what an author almost always means.


optional texture?: string

Defined in: animation/AnimClipLoader.ts:66

Per-frame texture ref; absent on sheet-cell frames.