A special Graphics class which handles Grid layer highlighting

Hierarchy

  • Graphics
    • GridHighlight

Properties

name: string

Track the Grid Highlight name

positions: Set<any>

Track distinct positions which have already been highlighted

Methods

  • Record a position that is highlighted and return whether or not it should be rendered

    Parameters

    • x: number

      The x-coordinate to highlight

    • y: number

      The y-coordinate to highlight

    Returns boolean

    Whether or not to draw the highlight for this location

  • Returns any

    Inherit Doc

  • Parameters

    • Rest ...args: any[]

    Returns any

    Inherit Doc