Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents a slider in a beatmap.

Hierarchy

Index

Constructors

Properties

comboOffset: number

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

endPosition: <internal>.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?: <internal>.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

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

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: <internal>.HitObject[]

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

nodeSamples: <internal>.HitSampleInfo[][]

The node samples of this slider.

The slider's path.

The position of the hitobject in osu!pixels.

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

The scale used to calculate stacked position and radius.

spanDuration: number

The length of one span of this slider.

stackHeight: number

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

Accessors

  • get duration(): number
  • The duration of the hitobject.

    Returns number

  • get radius(): number
  • The radius of the hitobject.

    Returns number

  • get repeats(): number
  • The amount of repeat points in this slider.

    Returns number

  • The stack vector to calculate offset for stacked positions.

    Returns <internal>.Vector2

  • The stacked end position of the hitobject.

    Returns <internal>.Vector2

  • The stacked position of the hitobject.

    Returns <internal>.Vector2

  • get ticks(): number
  • The amount of slider ticks in this slider.

    Returns number

Methods

  • toString(): string
  • Returns the string representative of the class.

    Returns string

  • typeStr(): string
  • Returns the hitobject type.

    Returns string

Generated using TypeDoc