The main overlay class for the BIM canvas.

Hierarchy

  • BimCTOverlay

Constructors

Accessors

  • get canvas(): HTMLCanvasElement
  • Gets the primary canvas element.

    Returns

    The primary canvas HTMLCanvasElement.

    Returns HTMLCanvasElement

  • set halfSplashScreen(val: boolean): void
  • Parameters

    • val: boolean

    Returns void

  • get topLeftLabel(): LabelWidget
  • Gets the top left label widget.

    Returns

    The top left label widget.

    Returns LabelWidget

Methods

  • Adds a label to the canvas.

    Returns

    The created LabelWidget.

    Parameters

    • text: string

      The label text.

    • x: number

      The x-coordinate.

    • y: number

      The y-coordinate.

    • orientation: Orientation

      The label orientation.

    • rotationAngle: number

      The rotation angle.

    • background: boolean

      Whether the label has a background.

    • border: boolean

      Whether the label has a border.

    Returns LabelWidget

  • Adds a 3D polyline to the canvas.

    Returns

    The created PolyLineWidget3D.

    Parameters

    Returns PolyLineWidget3D

  • Adds a 3D polyline to the canvas.

    Returns

    The created PolyLineWidget3D.

    Parameters

    Returns RectangleWidget3D

  • Adds a ruler to the canvas.

    Returns

    The created MeasureRulerWidget3D.

    Parameters

    Returns MeasureRulerWidget3D

  • Gets the canvas widget.

    Returns

    The canvas widget.

    Returns CanvasWidget

  • Clears the fill message.

    Returns void

  • Clears the loading status.

    Returns void

  • Clears the loading status.

    Returns void

  • Clears the rubberband selection area.

    Returns void

  • Clears the top center message.

    Returns void

  • Clears the top left message.

    Returns void

  • Creates the primary canvas element.

    Returns

    The primary canvas HTMLCanvasElement.

    Returns HTMLCanvasElement

  • Creates the date and time spinner element.

    Returns

    The date and time spinner HTMLDivElement.

    Returns HTMLDivElement

  • Creates the game legend element.

    Returns

    The game legend HTMLDivElement.

    Returns HTMLDivElement

  • Creates the splash screen element.

    Returns

    The splash screen HTMLDivElement.

    Returns HTMLDivElement

  • Destroys the overlay and clears any timeouts.

    Returns void

  • Checks if the overlay is fully visible.

    Returns

    Whether the overlay is fully visible.

    Returns boolean

  • Checks if the overlay is loading.

    Returns

    Whether the overlay is loading.

    Returns boolean

  • Gets the visibility of the splash screen.

    Returns

    Whether the splash screen is visible.

    Returns boolean

  • Checks if the top center label is visible.

    Returns

    Whether the top center label is visible.

    Returns boolean

  • Checks if the top left label is visible.

    Returns

    Whether the top left label is visible.

    Returns boolean

  • Redraws the canvas.

    Returns void

  • Removes the date and time spinner element.

    Returns void

  • Removes the game legend element.

    Returns void

  • Removes the splash screen element.

    Returns void

  • Resizes the canvas and updates the overlay.

    Parameters

    • width: number

      The new width.

    • height: number

      The new height.

    Returns void

  • Sets the date and time displayed on the spinner.

    Parameters

    • dateTime: Date

      The date and time to display.

    Returns void

  • Sets the fill message.

    Parameters

    • message: string

      The message to display.

    Returns void

  • Sets the visibility of the game legend.

    Parameters

    • visible: boolean

      Whether the game legend is visible.

    Returns void

  • Sets the loading progress and message.

    Parameters

    • percentage: number

      The loading percentage.

    • text: string

      The loading message.

    Returns void

  • Sets a 2D symbol on the canvas.

    Parameters

    • x: number

      The x-coordinate.

    • y: number

      The y-coordinate.

    • r: number

      The red color value.

    • g: number

      The green color value.

    • b: number

      The blue color value.

    • symbol_type: number

      The symbol type.

    • enable: number

      Whether the symbol is enabled.

    Returns void

  • Sets the visibility of the splash screen.

    Parameters

    • url: string

      The background image URL.

    • visible: boolean

      Whether the splash screen is visible.

    Returns void

  • Sets the visibility of the top center label.

    Parameters

    • val: boolean

      Whether the top center label is visible.

    Returns void

  • Sets the top center message.

    Parameters

    • message: string

      The message to display.

    Returns void

  • Sets the visibility of the top left label.

    Parameters

    • val: boolean

      Whether the top left label is visible.

    Returns void

  • Sets the top left message.

    Parameters

    • message: string

      The message to display.

    • lineThrough: boolean = false

      Whether the message should have a line through it.

    Returns void

  • Updates the rubberband selection area.

    Parameters

    • x: number

      The x-coordinate.

    • y: number

      The y-coordinate.

    • w: number

      The width.

    • h: number

      The height.

    Returns void