ProtoTwin API
    Preparing search index...

    Class Highlights

    Entity highlights. Stores all highlights that are applied to entities.

    Hierarchy (View Summary)

    Implements

    Index

    Accessors

    • get empty(): boolean

      Whether there are any highlights.

      Returns boolean

    • get length(): number

      The number of highlights.

      Returns number

    • get subscribed(): boolean

      Whether there are any subscribers.

      Returns boolean

    Methods

    • Iterator for highlights.

      Returns Iterator<Highlight>

    • Adds a highlight.

      Parameters

      • entity: Entity

        The entity to be highlighted.

      • color: Color

        The highlight color.

      Returns boolean

      True if the highlight was added, false otherwise.

    • Retrieves the highlight at the specified index.

      Parameters

      • index: number

        The highlight index.

      Returns Highlight

      The highlight.

    • Clears all highlights.

      Returns void

    • Removes a highlight.

      Parameters

      • entity: Entity

        The entity for the highlight.

      • color: undefined | Color = undefined

        The color for the highlight.

      Returns boolean

      True if the highlight was removed, false otherwise.