import * as remapper from "https://deno.land/x/remapper@2.1.0/src/mod.ts";
Classes
c Info | |
c Note | |
Settings for the animation optimizer, starts at default values. | |
Settings for the "optimizeSimilarPoints" optimizing function, starts at default values. | |
Settings for the "optimizeSimilarPointsSlope" optimizing function, starts at default values. | |
c Wall |
Functions
Get the active difficulty, ensuring that it is indeed active. | |
Set the difficulty that objects are being created for. | |
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. | |
Get the last element in an array. | |
Multiply an array either by a number or another array. | |
Generate keyframes from an animation. Useful for doing things such as having objects rotate around points other than their anchor. | |
Makes a number fit between a min and max value. | |
Allows you to combine two animations together as long as atleast one of them has only a single keyframe. | |
Specific function for animations, converts an array with a single element to be double nested. | |
f copy | Creates a new instance of an object. |
Debug the transformations necessary to fit an object to a cube. Use the axis | |
Create a wall for debugging. Position, rotation, and scale are in world space and can be animations. | |
Gets events between a min and max time, as an Event class. | |
Automatically zip the map, including only necessary files. | |
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. | |
Get jump related info. | |
Get the amount of seconds in the script. | |
Get the values of an animation at a given time. Accounts for easings and splines! | |
Checks if an object is empty. | |
Specific function for animations, checks if an animation isn't double nested. | |
Check if a property in an object exists | |
Fill the object with empty properties along the path of prop. | |
Get a property of an object. | |
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. | |
f lerp | Interpolates between a start and end value to get a value in between. |
Interpolates between a start and end color to get a color 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, as a Note class. | |
Optimizes animations, removing unnecessary points. | |
f rand | Gives a random number in the given range. |
Rotate a point around 0,0,0. | |
Rotate a vector, starts downwards. | |
Rounds a number to the nearest other number. | |
Sets the decimals on a number. | |
Specific function for animations, converts a double nested array with a single element to an array with a single element. | |
Sorts an array of objects by a property. | |
Convert an array of numbers from radians to degrees. | |
Export keyframes to a point definition. | |
Convert an array of numbers from degrees to radians. | |
Transfer the visual aspect of maps to other difficulties. More specifically modded walls, custom events, point definitions, environment enhancements, and lighting events. | |
Gets walls between a min and max time, as a Wall class. | |
Calculate the correct position for a wall to line up with a position in the world. |