Skip to content

@modoki/engine / index / Keyframe

Interface: Keyframe

Animation

broken?

optional broken?: boolean

When true, the in/out tangents are edited independently (a "broken" key).


inTangent

inTangent: number

Incoming tangent slope (value-units per second). STEPPED is allowed.


inWeight?

optional inWeight?: number

Weighted-tangent weight for the incoming handle (0..1). Default 1/3.


outTangent

outTangent: number

Outgoing tangent slope (value-units per second). STEPPED → hold this value.


outWeight?

optional outWeight?: number

Weighted-tangent weight for the outgoing handle (0..1). Default 1/3.


t

t: number

Time in SECONDS along the clip.


tangentMode?

optional tangentMode?: TangentMode

How the tangents were last set. Persisted so recording (and a neighbor value change) re-applies the SAME mode instead of flattening to 'auto'. Absent ⇒ treated as 'auto' for backward compatibility with older clips.


v

v: number

Value at this key (see TrackValueType for encoding).

Built with Modoki.