import { Keyframe } from "https://deno.land/x/remapper@3.0.0/src/animation.ts";
Constructors
new
Keyframe(data: KeyframeValues)Interface for keyframes in animations. A keyframe looks something like [x,y,z,time,easing]. It is separated into values (x,y,z), time, and flags (easings, splines.. etc). Anything that is a string is considered a flag. A keyframe can have any amount of values.
Properties
data: KeyframeValues
The data stored in this keyframe.
easing: EASE
The easing in the keyframe. Returns undefined if not found.
spline: SPLINE
The spline in the keyframe. Returns undefined if not found.
Methods
getFlagIndex(flag: string, exact?)
Gets the index of a flag.
setFlag(value: string, old?: string)
Set a flag in the keyframe.