Skip to content

Class: StoryboardCommandGroup ​

Defined in: src/beatmap/storyboard/commands.ts:59

ts
import { CommandType, Easing, StoryboardCommandGroup } from 'osu-files'

const commands = new StoryboardCommandGroup()
commands.addAlpha(Easing.Out, 0, 1000, 1, 0)

return commands.allCommands().map(command => command.commandType)

Extended by ​

Constructors ​

new StoryboardCommandGroup(): StoryboardCommandGroup

Returns ​

StoryboardCommandGroup

ts
import { CommandType, Easing, StoryboardCommandGroup } from 'osu-files'

const commands = new StoryboardCommandGroup()
commands.addAlpha(Easing.Out, 0, 1000, 1, 0)

return commands.allCommands().map(command => command.commandType)

Properties ​

Accessors ​

endTime ​

get endTime(): number | undefined

Defined in: src/beatmap/storyboard/commands.ts:88

Returns ​

number | undefined

ts
import { CommandType, Easing, StoryboardCommandGroup } from 'osu-files'

const commands = new StoryboardCommandGroup()
commands.addAlpha(Easing.Out, 0, 1000, 1, 0)

return commands.endTime

startTime ​

get startTime(): number | undefined

Defined in: src/beatmap/storyboard/commands.ts:80

Returns ​

number | undefined

ts
import { CommandType, Easing, StoryboardCommandGroup } from 'osu-files'

const commands = new StoryboardCommandGroup()
commands.addAlpha(Easing.Out, 0, 1000, 1, 0)

return commands.startTime

Methods ​

addAlpha() ​

addAlpha(easing, startTime, endTime?, endValue?, startValue?): this

Defined in: src/beatmap/storyboard/commands.ts:104

Parameters ​

ParameterType
easingEasing
startTimenumber
endTime?number
endValue?number
startValue?number

Returns ​

this

ts
import { CommandType, Easing, StoryboardCommandGroup } from 'osu-files'

const commands = new StoryboardCommandGroup()
commands.addAlpha(Easing.Out, 0, 1000, 1, 0)

commands.addAlpha(Easing.Out, 0, 500, 1, 0)
return commands.alpha.length

addBlending() ​

addBlending(easing, startTime, endTime?, endValue?, startValue?): this

Defined in: src/beatmap/storyboard/commands.ts:140

Parameters ​

ParameterType
easingEasing
startTimenumber
endTime?number
endValue?BlendingMode
startValue?BlendingMode

Returns ​

this

ts
import { CommandType, Easing, StoryboardCommandGroup } from 'osu-files'

const commands = new StoryboardCommandGroup()
commands.addAlpha(Easing.Out, 0, 1000, 1, 0)

return commands.allCommands().length

addColour() ​

addColour(easing, startTime, endTime?, endValue?, startValue?): this

Defined in: src/beatmap/storyboard/commands.ts:128

Parameters ​

ParameterType
easingEasing
startTimenumber
endTime?number
endValue?Colour4
startValue?Colour4

Returns ​

this

ts
import { CommandType, Easing, StoryboardCommandGroup } from 'osu-files'

const commands = new StoryboardCommandGroup()
commands.addAlpha(Easing.Out, 0, 1000, 1, 0)

return commands.allCommands().length

addFlipH() ​

addFlipH(easing, startTime, endTime?, endValue?, startValue?): this

Defined in: src/beatmap/storyboard/commands.ts:132

Parameters ​

ParameterType
easingEasing
startTimenumber
endTime?number
endValue?boolean
startValue?boolean

Returns ​

this

ts
import { CommandType, Easing, StoryboardCommandGroup } from 'osu-files'

const commands = new StoryboardCommandGroup()
commands.addAlpha(Easing.Out, 0, 1000, 1, 0)

return commands.allCommands().length

addFlipV() ​

addFlipV(easing, startTime, endTime?, endValue?, startValue?): this

Defined in: src/beatmap/storyboard/commands.ts:136

Parameters ​

ParameterType
easingEasing
startTimenumber
endTime?number
endValue?boolean
startValue?boolean

Returns ​

this

ts
import { CommandType, Easing, StoryboardCommandGroup } from 'osu-files'

const commands = new StoryboardCommandGroup()
commands.addAlpha(Easing.Out, 0, 1000, 1, 0)

return commands.allCommands().length

addRotation() ​

addRotation(easing, startTime, endTime?, endValue?, startValue?): this

Defined in: src/beatmap/storyboard/commands.ts:124

Parameters ​

ParameterType
easingEasing
startTimenumber
endTime?number
endValue?number
startValue?number

Returns ​

this

ts
import { CommandType, Easing, StoryboardCommandGroup } from 'osu-files'

const commands = new StoryboardCommandGroup()
commands.addAlpha(Easing.Out, 0, 1000, 1, 0)

return commands.allCommands().length

addScale() ​

addScale(easing, startTime, endTime?, endValue?, startValue?): this

Defined in: src/beatmap/storyboard/commands.ts:116

Parameters ​

ParameterType
easingEasing
startTimenumber
endTime?number
endValue?number
startValue?number

Returns ​

this

ts
import { CommandType, Easing, StoryboardCommandGroup } from 'osu-files'

const commands = new StoryboardCommandGroup()
commands.addAlpha(Easing.Out, 0, 1000, 1, 0)

commands.addScale(Easing.Out, 0, 500, 1.1, 1)
return commands.scale.length

addVectorScale() ​

addVectorScale(easing, startTime, endTime?, endValue?, startValue?): this

Defined in: src/beatmap/storyboard/commands.ts:120

Parameters ​

ParameterType
easingEasing
startTimenumber
endTime?number
endValue?Vec2
startValue?Vec2

Returns ​

this

ts
import { CommandType, Easing, StoryboardCommandGroup } from 'osu-files'

const commands = new StoryboardCommandGroup()
commands.addAlpha(Easing.Out, 0, 1000, 1, 0)

return commands.allCommands().length

addX() ​

addX(easing, startTime, endTime?, endValue?, startValue?): this

Defined in: src/beatmap/storyboard/commands.ts:108

Parameters ​

ParameterType
easingEasing
startTimenumber
endTime?number
endValue?number
startValue?number

Returns ​

this

ts
import { CommandType, Easing, StoryboardCommandGroup } from 'osu-files'

const commands = new StoryboardCommandGroup()
commands.addAlpha(Easing.Out, 0, 1000, 1, 0)

commands.addX(Easing.Out, 0, 500, 320, 0)
return commands.x.length

addY() ​

addY(easing, startTime, endTime?, endValue?, startValue?): this

Defined in: src/beatmap/storyboard/commands.ts:112

Parameters ​

ParameterType
easingEasing
startTimenumber
endTime?number
endValue?number
startValue?number

Returns ​

this

ts
import { CommandType, Easing, StoryboardCommandGroup } from 'osu-files'

const commands = new StoryboardCommandGroup()
commands.addAlpha(Easing.Out, 0, 1000, 1, 0)

commands.addY(Easing.Out, 0, 500, 240, 0)
return commands.y.length

allCommands() ​

allCommands(): StoryboardCommand<unknown>[]

Defined in: src/beatmap/storyboard/commands.ts:97

Returns ​

StoryboardCommand<unknown>[]

ts
import { CommandType, Easing, StoryboardCommandGroup } from 'osu-files'

const commands = new StoryboardCommandGroup()
commands.addAlpha(Easing.Out, 0, 1000, 1, 0)

return commands.allCommands().map(command => command.commandType)

arrayFor() ​

arrayFor(type): StoryboardCommand<unknown>[]

Defined in: src/beatmap/storyboard/commands.ts:216

Find the correct array for a command type.

Parameters ​

ParameterType
typeCommandType

Returns ​

StoryboardCommand<unknown>[]

ts
import { CommandType, Easing, StoryboardCommandGroup } from 'osu-files'

const commands = new StoryboardCommandGroup()
commands.addAlpha(Easing.Out, 0, 1000, 1, 0)

return commands.arrayFor(CommandType.Fade).length

clearAll() ​

clearAll(): void

Defined in: src/beatmap/storyboard/commands.ts:198

Returns ​

void

ts
import { CommandType, Easing, StoryboardCommandGroup } from 'osu-files'

const commands = new StoryboardCommandGroup()
commands.addAlpha(Easing.Out, 0, 1000, 1, 0)

commands.clearAll()
return commands.allCommands().length

clearAlpha() ​

clearAlpha(): void

Defined in: src/beatmap/storyboard/commands.ts:156

Returns ​

void

ts
import { CommandType, Easing, StoryboardCommandGroup } from 'osu-files'

const commands = new StoryboardCommandGroup()
commands.addAlpha(Easing.Out, 0, 1000, 1, 0)

commands.clearAlpha()
return commands.alpha.length

clearBlending() ​

clearBlending(): void

Defined in: src/beatmap/storyboard/commands.ts:165

Returns ​

void

ts
import { CommandType, Easing, StoryboardCommandGroup } from 'osu-files'

const commands = new StoryboardCommandGroup()
commands.addAlpha(Easing.Out, 0, 1000, 1, 0)

return commands.allCommands().length

clearColour() ​

clearColour(): void

Defined in: src/beatmap/storyboard/commands.ts:162

Returns ​

void

ts
import { CommandType, Easing, StoryboardCommandGroup } from 'osu-files'

const commands = new StoryboardCommandGroup()
commands.addAlpha(Easing.Out, 0, 1000, 1, 0)

return commands.allCommands().length

clearFlipH() ​

clearFlipH(): void

Defined in: src/beatmap/storyboard/commands.ts:163

Returns ​

void

ts
import { CommandType, Easing, StoryboardCommandGroup } from 'osu-files'

const commands = new StoryboardCommandGroup()
commands.addAlpha(Easing.Out, 0, 1000, 1, 0)

return commands.allCommands().length

clearFlipV() ​

clearFlipV(): void

Defined in: src/beatmap/storyboard/commands.ts:164

Returns ​

void

ts
import { CommandType, Easing, StoryboardCommandGroup } from 'osu-files'

const commands = new StoryboardCommandGroup()
commands.addAlpha(Easing.Out, 0, 1000, 1, 0)

return commands.allCommands().length

clearRotation() ​

clearRotation(): void

Defined in: src/beatmap/storyboard/commands.ts:161

Returns ​

void

ts
import { CommandType, Easing, StoryboardCommandGroup } from 'osu-files'

const commands = new StoryboardCommandGroup()
commands.addAlpha(Easing.Out, 0, 1000, 1, 0)

return commands.allCommands().length

clearScale() ​

clearScale(): void

Defined in: src/beatmap/storyboard/commands.ts:159

Returns ​

void

ts
import { CommandType, Easing, StoryboardCommandGroup } from 'osu-files'

const commands = new StoryboardCommandGroup()
commands.addAlpha(Easing.Out, 0, 1000, 1, 0)

return commands.allCommands().length

clearVectorScale() ​

clearVectorScale(): void

Defined in: src/beatmap/storyboard/commands.ts:160

Returns ​

void

ts
import { CommandType, Easing, StoryboardCommandGroup } from 'osu-files'

const commands = new StoryboardCommandGroup()
commands.addAlpha(Easing.Out, 0, 1000, 1, 0)

return commands.allCommands().length

clearX() ​

clearX(): void

Defined in: src/beatmap/storyboard/commands.ts:157

Returns ​

void

ts
import { CommandType, Easing, StoryboardCommandGroup } from 'osu-files'

const commands = new StoryboardCommandGroup()
commands.addAlpha(Easing.Out, 0, 1000, 1, 0)

return commands.allCommands().length

clearY() ​

clearY(): void

Defined in: src/beatmap/storyboard/commands.ts:158

Returns ​

void

ts
import { CommandType, Easing, StoryboardCommandGroup } from 'osu-files'

const commands = new StoryboardCommandGroup()
commands.addAlpha(Easing.Out, 0, 1000, 1, 0)

return commands.allCommands().length

removeAlpha() ​

removeAlpha(indexOrCmd): void

Defined in: src/beatmap/storyboard/commands.ts:145

Parameters ​

ParameterType
indexOrCmdnumber | StoryboardAlphaCommand

Returns ​

void

ts
import { CommandType, Easing, StoryboardCommandGroup } from 'osu-files'

const commands = new StoryboardCommandGroup()
commands.addAlpha(Easing.Out, 0, 1000, 1, 0)

commands.removeAlpha(0)
return commands.alpha.length

removeBlending() ​

removeBlending(indexOrCmd): void

Defined in: src/beatmap/storyboard/commands.ts:154

Parameters ​

ParameterType
indexOrCmdnumber | StoryboardBlendingCommand

Returns ​

void

ts
import { CommandType, Easing, StoryboardCommandGroup } from 'osu-files'

const commands = new StoryboardCommandGroup()
commands.addAlpha(Easing.Out, 0, 1000, 1, 0)

return commands.allCommands().length

removeColour() ​

removeColour(indexOrCmd): void

Defined in: src/beatmap/storyboard/commands.ts:151

Parameters ​

ParameterType
indexOrCmdnumber | StoryboardColourCommand

Returns ​

void

ts
import { CommandType, Easing, StoryboardCommandGroup } from 'osu-files'

const commands = new StoryboardCommandGroup()
commands.addAlpha(Easing.Out, 0, 1000, 1, 0)

return commands.allCommands().length

removeCommand() ​

removeCommand(cmd): void

Defined in: src/beatmap/storyboard/commands.ts:191

Parameters ​

ParameterType
cmdStoryboardCommand<unknown>

Returns ​

void

ts
import { CommandType, Easing, StoryboardCommandGroup } from 'osu-files'

const commands = new StoryboardCommandGroup()
commands.addAlpha(Easing.Out, 0, 1000, 1, 0)

return commands.allCommands().length

removeFlipH() ​

removeFlipH(indexOrCmd): void

Defined in: src/beatmap/storyboard/commands.ts:152

Parameters ​

ParameterType
indexOrCmdnumber | StoryboardFlipHCommand

Returns ​

void

ts
import { CommandType, Easing, StoryboardCommandGroup } from 'osu-files'

const commands = new StoryboardCommandGroup()
commands.addAlpha(Easing.Out, 0, 1000, 1, 0)

return commands.allCommands().length

removeFlipV() ​

removeFlipV(indexOrCmd): void

Defined in: src/beatmap/storyboard/commands.ts:153

Parameters ​

ParameterType
indexOrCmdnumber | StoryboardFlipVCommand

Returns ​

void

ts
import { CommandType, Easing, StoryboardCommandGroup } from 'osu-files'

const commands = new StoryboardCommandGroup()
commands.addAlpha(Easing.Out, 0, 1000, 1, 0)

return commands.allCommands().length

removeRotation() ​

removeRotation(indexOrCmd): void

Defined in: src/beatmap/storyboard/commands.ts:150

Parameters ​

ParameterType
indexOrCmdnumber | StoryboardRotationCommand

Returns ​

void

ts
import { CommandType, Easing, StoryboardCommandGroup } from 'osu-files'

const commands = new StoryboardCommandGroup()
commands.addAlpha(Easing.Out, 0, 1000, 1, 0)

return commands.allCommands().length

removeScale() ​

removeScale(indexOrCmd): void

Defined in: src/beatmap/storyboard/commands.ts:148

Parameters ​

ParameterType
indexOrCmdnumber | StoryboardScaleCommand

Returns ​

void

ts
import { CommandType, Easing, StoryboardCommandGroup } from 'osu-files'

const commands = new StoryboardCommandGroup()
commands.addAlpha(Easing.Out, 0, 1000, 1, 0)

return commands.allCommands().length

removeVectorScale() ​

removeVectorScale(indexOrCmd): void

Defined in: src/beatmap/storyboard/commands.ts:149

Parameters ​

ParameterType
indexOrCmdnumber | StoryboardVectorScaleCommand

Returns ​

void

ts
import { CommandType, Easing, StoryboardCommandGroup } from 'osu-files'

const commands = new StoryboardCommandGroup()
commands.addAlpha(Easing.Out, 0, 1000, 1, 0)

return commands.allCommands().length

removeX() ​

removeX(indexOrCmd): void

Defined in: src/beatmap/storyboard/commands.ts:146

Parameters ​

ParameterType
indexOrCmdnumber | StoryboardXCommand

Returns ​

void

ts
import { CommandType, Easing, StoryboardCommandGroup } from 'osu-files'

const commands = new StoryboardCommandGroup()
commands.addAlpha(Easing.Out, 0, 1000, 1, 0)

return commands.allCommands().length

removeY() ​

removeY(indexOrCmd): void

Defined in: src/beatmap/storyboard/commands.ts:147

Parameters ​

ParameterType
indexOrCmdnumber | StoryboardYCommand

Returns ​

void

ts
import { CommandType, Easing, StoryboardCommandGroup } from 'osu-files'

const commands = new StoryboardCommandGroup()
commands.addAlpha(Easing.Out, 0, 1000, 1, 0)

return commands.allCommands().length

setAlpha() ​

setAlpha(index, v): void

Defined in: src/beatmap/storyboard/commands.ts:167

Parameters ​

ParameterType
indexnumber
vFloatValues

Returns ​

void

ts
import { CommandType, Easing, StoryboardCommandGroup } from 'osu-files'

const commands = new StoryboardCommandGroup()
commands.addAlpha(Easing.Out, 0, 1000, 1, 0)

commands.setAlpha(0, { endValue: 0.5 })
return commands.alpha[0]?.endValue

setBlending() ​

setBlending(index, v): void

Defined in: src/beatmap/storyboard/commands.ts:176

Parameters ​

ParameterType
indexnumber
vBlendingValues

Returns ​

void

ts
import { CommandType, Easing, StoryboardCommandGroup } from 'osu-files'

const commands = new StoryboardCommandGroup()
commands.addAlpha(Easing.Out, 0, 1000, 1, 0)

return commands.allCommands().length

setColour() ​

setColour(index, v): void

Defined in: src/beatmap/storyboard/commands.ts:173

Parameters ​

ParameterType
indexnumber
vColourValues

Returns ​

void

ts
import { CommandType, Easing, StoryboardCommandGroup } from 'osu-files'

const commands = new StoryboardCommandGroup()
commands.addAlpha(Easing.Out, 0, 1000, 1, 0)

return commands.allCommands().length

setFlipH() ​

setFlipH(index, v): void

Defined in: src/beatmap/storyboard/commands.ts:174

Parameters ​

ParameterType
indexnumber
vBoolValues

Returns ​

void

ts
import { CommandType, Easing, StoryboardCommandGroup } from 'osu-files'

const commands = new StoryboardCommandGroup()
commands.addAlpha(Easing.Out, 0, 1000, 1, 0)

return commands.allCommands().length

setFlipV() ​

setFlipV(index, v): void

Defined in: src/beatmap/storyboard/commands.ts:175

Parameters ​

ParameterType
indexnumber
vBoolValues

Returns ​

void

ts
import { CommandType, Easing, StoryboardCommandGroup } from 'osu-files'

const commands = new StoryboardCommandGroup()
commands.addAlpha(Easing.Out, 0, 1000, 1, 0)

return commands.allCommands().length

setRotation() ​

setRotation(index, v): void

Defined in: src/beatmap/storyboard/commands.ts:172

Parameters ​

ParameterType
indexnumber
vFloatValues

Returns ​

void

ts
import { CommandType, Easing, StoryboardCommandGroup } from 'osu-files'

const commands = new StoryboardCommandGroup()
commands.addAlpha(Easing.Out, 0, 1000, 1, 0)

return commands.allCommands().length

setScale() ​

setScale(index, v): void

Defined in: src/beatmap/storyboard/commands.ts:170

Parameters ​

ParameterType
indexnumber
vFloatValues

Returns ​

void

ts
import { CommandType, Easing, StoryboardCommandGroup } from 'osu-files'

const commands = new StoryboardCommandGroup()
commands.addAlpha(Easing.Out, 0, 1000, 1, 0)

return commands.allCommands().length

setVectorScale() ​

setVectorScale(index, v): void

Defined in: src/beatmap/storyboard/commands.ts:171

Parameters ​

ParameterType
indexnumber
vVec2Values

Returns ​

void

ts
import { CommandType, Easing, StoryboardCommandGroup } from 'osu-files'

const commands = new StoryboardCommandGroup()
commands.addAlpha(Easing.Out, 0, 1000, 1, 0)

return commands.allCommands().length

setX() ​

setX(index, v): void

Defined in: src/beatmap/storyboard/commands.ts:168

Parameters ​

ParameterType
indexnumber
vFloatValues

Returns ​

void

ts
import { CommandType, Easing, StoryboardCommandGroup } from 'osu-files'

const commands = new StoryboardCommandGroup()
commands.addAlpha(Easing.Out, 0, 1000, 1, 0)

return commands.allCommands().length

setY() ​

setY(index, v): void

Defined in: src/beatmap/storyboard/commands.ts:169

Parameters ​

ParameterType
indexnumber
vFloatValues

Returns ​

void

ts
import { CommandType, Easing, StoryboardCommandGroup } from 'osu-files'

const commands = new StoryboardCommandGroup()
commands.addAlpha(Easing.Out, 0, 1000, 1, 0)

return commands.allCommands().length

shiftTimes() ​

shiftTimes(offsetMs): void

Defined in: src/beatmap/storyboard/commands.ts:203

Parameters ​

ParameterType
offsetMsnumber

Returns ​

void

ts
import { CommandType, Easing, StoryboardCommandGroup } from 'osu-files'

const commands = new StoryboardCommandGroup()
commands.addAlpha(Easing.Out, 0, 1000, 1, 0)

commands.shiftTimes(250)
return commands.startTime

Released under the MIT License.