Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents a slider in a beatmap.

Hierarchy

Index

Constructors

  • new Slider(values: { comboOffset?: number; mapSliderVelocity: number; mapTickRate: number; msPerBeat: number; newCombo?: boolean; nodeSamples: HitSampleInfo[][]; path: SliderPath; position: Vector2; repetitions: number; speedMultiplier: number; startTime: number; tickDistanceMultiplier: number; type: number }): Slider
  • Parameters

    • values: { comboOffset?: number; mapSliderVelocity: number; mapTickRate: number; msPerBeat: number; newCombo?: boolean; nodeSamples: HitSampleInfo[][]; path: SliderPath; position: Vector2; repetitions: number; speedMultiplier: number; startTime: number; tickDistanceMultiplier: number; type: number }
      • Optional comboOffset?: number
      • mapSliderVelocity: number
      • mapTickRate: number
      • msPerBeat: number
      • Optional newCombo?: boolean
      • nodeSamples: HitSampleInfo[][]
      • path: SliderPath
      • position: Vector2
      • repetitions: number
      • speedMultiplier: number
      • startTime: number
      • tickDistanceMultiplier: number
      • type: number

    Returns Slider

Properties

comboOffset: number

How many combo colors to skip, if this object starts a new combo.

endPosition: Vector2

The end position of the hitobject in osu!pixels.

endTime: number

The end time of the hitobject.

The slider's head.

isNewCombo: boolean

Whether this hit object represents a new combo.

lazyEndPosition?: Vector2

The position of the cursor at the point of completion of this slider if it was hit with as few movements as possible. This is set and used by difficulty calculation.

lazyTravelDistance: number = 0

The distance travelled by the cursor upon completion of this slider if it was hit with as few movements as possible. This is set and used by difficulty calculation.

lazyTravelTime: number = 0

The time taken by the cursor upon completion of this slider if it was hit with as few movements as possible. This is set and used by difficulty calculation.

nestedHitObjects: HitObject[] = []

The nested hitobjects of the slider. Consists of headcircle (sliderhead), slider ticks, repeat points, and tailcircle (sliderend).

nodeSamples: HitSampleInfo[][]

The node samples of this slider.

The slider's path.

position: Vector2

The position of the hitobject in osu!pixels.

samples: HitSampleInfo[] = []

The samples to be played when this hit object is hit.

In the case of sliders, this is the sample of the curve body and can be treated as the default samples for the hit object.

scale: number = 1

The scale used to calculate stacked position and radius.

spanDuration: number

The length of one span of this slider.

stackHeight: number = 0

The stack height of the hitobject.

startTime: number

The start time of the hitobject in milliseconds.

The slider's tail.

tickDistance: number

The spacing between slider ticks of this slider.

The bitwise type of the hitobject (circle/slider/spinner).

velocity: number

The slider's velocity.

legacyLastTickOffset: number = 36

Accessors

  • get duration(): number
  • get radius(): number
  • get repeats(): number
  • get ticks(): number

Methods

  • toString(): string
  • typeStr(): string

Generated using TypeDoc