Field Notes
    Preparing search index...

    Type Alias OverlayRenderer

    OverlayRenderer: (ctx: CanvasRenderingContext2D) => void

    A world-space draw callback rendered above elements on every frame, regardless of which tool is active. The context arrives with the camera transform applied; implementations must not assume exclusive context state (each renderer is wrapped in save/restore). A throwing renderer is isolated per frame and must not break the render loop.

    Type Declaration

      • (ctx: CanvasRenderingContext2D): void
      • Parameters

        • ctx: CanvasRenderingContext2D

        Returns void