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@2.1.0/src/mod.ts";
const { BaseAnimation } = AnimationInternals;

Constructors

new
BaseAnimation(length?: number, data?: Record<string, any>)

Properties

json: Record<string, any>
length: number

Methods

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

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

clear(property?: string)

Clear animation data. Leave blank to completely clear animation.

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. Does not edit the value.