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

x/remapper/src/mod.ts>AnimationInternals.BaseAnimation

A framework for Beat Saber map scripting.
Go to Latest
class AnimationInternals.BaseAnimation
import { AnimationInternals } from "https://deno.land/x/remapper@3.0.0/src/mod.ts";
const { BaseAnimation } = AnimationInternals;

Bare minimum animation class.

Constructors

new
BaseAnimation(length?: number, data?: Json)

Properties

json: Json

The JSON data of this animation.

length: number

The time in each keyframe is divided by the length. Use a negative number or don't specify a length to use a range between 0 and 1.

Methods

private
convert(value: KeyframeArray)
private
convertTime(time: number)
add(property: string, value: KeyframesAny)

Add keyframes to a property, also sorts by time and makes optimizations if possible.

clear(property?: string)

Clear animation data.

get(property: ANIM, time?: number)

Get a property's animations.

optimize(property?: ANIM, settings?: OptimizeSettings)

Remove similar values to cut down on keyframe count.

set(
property: ANIM,
value: KeyframesAny,
process?,
)

Set a property's animations.