Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TextElementGroupState

TextElementGroupState keeps the state of a text element group and each element in it while they're being rendered.

Hierarchy

  • TextElementGroupState

Index

Constructors

constructor

Properties

Readonly group

The group of which the state will be created.

Readonly tileKey

tileKey: TileKey

The key of the tile to which this group belongs.

Accessors

priority

  • get priority(): number

size

  • get size(): number

textElementStates

visited

  • get visited(): boolean
  • set visited(visited: boolean): void

Methods

traverseVisibleElements

  • traverseVisibleElements(visibleElementsCallback: (e: TextElementState) => void): void

updateElements

updateFading

  • updateFading(time: number, disableFading: boolean): void
  • Updates the fading state of all text elements within the group to the specified time.

    Parameters

    • time: number

      The time to which the fading state will be updated.

    • disableFading: boolean

      true if fading is disabled, false otherwise.

    Returns void

Generated using TypeDoc