Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IRenderingUnit

描画ユニット:

  • TextAlive における画面描画処理の最小単位
  • 種類(フレーズ、単語、文字、グラフィック)を getType で取得できる
  • 前後のユニットを previousnext で取得できる
  • (存在する場合)親要素と子要素の一覧をそれぞれ parentchildren で取得できる
  • 開始時刻、終了時刻、その差分を startTime endTime および duration で取得できる

Rendering unit:

  • The base interface for all rendering unit implementations in TextAlive
  • getType returns the implementation type (phrase, word, character, or graphic)
  • previous and next return the previous and next unit
  • parent and children return the parent unit and the list of child units (if applicable)
  • startTime and endTime return the timing information and duration returns the duration i.e. endTime - startTime
see

TimedObject

Hierarchy

Index

Properties

Readonly children

children: IRenderingUnit[]

Readonly duration

duration: number

描画ユニットの長さ [ms] / Duration of this rendering unit [ms]

endTime

endTime: number

Readonly next

Readonly parent

Readonly previous

previous: IRenderingUnit

startTime

startTime: number

Methods

contains

  • contains(time: number): boolean
  • Parameters

    • time: number

    Returns boolean

getType

  • getType(): number
  • この描画ユニットの種類 / Type of this rendering unit

    see

    UnitTypes

    Returns number

overlaps

  • overlaps(startTime: number, endTime: number): boolean
  • Parameters

    • startTime: number
    • endTime: number

    Returns boolean

progress

  • progress(time: number): number
  • 指定された楽曲中の位置をこの描画ユニット中の位置 [0, 1] にマッピングして返す

    Returns the position in this rendering unit [0, 1]

    Parameters

    • time: number

      楽曲中の位置 / Position in a song

    Returns number

toString

  • toString(): string
  • この描画ユニットの文字表現 / String representation of this rendering unit

    Returns string

Generated using TypeDoc