Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/remapper/src/mod.ts>Keyframe

A framework for Beat Saber map scripting.
Go to Latest
class Keyframe
Re-export
import { Keyframe } from "https://deno.land/x/remapper@3.0.0/src/mod.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

The data stored in this keyframe.

easing: EASE

The easing in the keyframe. Returns undefined if not found.

hsvLerp: boolean

Whether this keyframe has the "hsvLerp" flag.

spline: SPLINE

The spline in the keyframe. Returns undefined if not found.

time: number

The time value.

readonly
timeIndex

The index of the time value.

values: number[]

The values in the keyframes. For example [x,y,z,time] would have [x,y,z] as values.

Methods

getFlagIndex(flag: string, exact?)

Gets the index of a flag.

setFlag(value: string, old?: string)

Set a flag in the keyframe.