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

x/remapper/src/general.ts

A framework for Beat Saber map scripting.
Go to Latest
import * as remapper from "https://deno.land/x/remapper@3.0.0/src/general.ts";

Variables

Check if an array contains a value.

Get the last element in an array.

Interpolate to find an array between 2 arrays of the same length.

Get the base "Environment" object.

Get the amount of seconds in the script.

The ReMapper cache.

Log a message as ReMapper, displaying seconds.

Functions

Gets arcs between a min and max time..

Add either a number or another array to an array.

Divide an array either by a number or another array.

Check if 2 arrays are equal to each other.

Multiply an array either by a number or another array.

Subtract either a number or another array from an array.

Assign a track to the base "Environment" object.

Gets bombs between a min and max time.

Store data in the ReMapper cache. Retrieves the same data unless specified parameters are changed.

Gets chains between a min and max time.

Makes a number fit between a min and max value.

Creates a new instance of an object, recursively.

Create a wall for debugging. Position, rotation, and scale are in world space and can be animations.

Converts a quaternion to a euler rotation.

Gets events between a min and max time.

Allows you to filter through an array of objects with a min and max property.

Find value between 0 and 1 from a beginning, length, and a point in time between.

Gets the distance between 2 points.

Get jump related info.

Checks if an object is empty.

Safely iterate through an array of keyframes.

Check if a property in an object exists

If a property doesn't exist through a path of objects, fill objects to get to that property.

Get a property of an object recursively.

Delete empty objects/arrays from an object recursively.

Remove a property of an object recursively, and delete empty objects left behind.

Set a property in an object, add objects if needed.

Interpolates between a start and end value to get a value in between.

Process a number through an easing.

Interpolates between a start and end rotation to get a rotation in between.

Interpolates between a start and end value to get a value in between. Will wrap around 0-1.

Gets notes between a min and max time.

Parse a file path, allowing extension forcing and getting useful information.

Gives a random number in the given range.

Rotates a point around a mathematical anchor, [0,0,0] by default.

Rotate a vector, starts downwards.

Rounds a number to the nearest multiple of another number.

Sets the decimal place amount on a number.

Sorts an array of objects by a property.

Convert an array of numbers from radians to degrees.

Convert an array of numbers from degrees to radians.

Gets walls between a min and max time.

Calculate the correct position for a wall to line up with a position in the world.

Type Aliases

An array with [r,g,b] or [r,g,b,a].

An array with 2 numbers.

An array with 3 numbers.

An array with 4 numbers.