@kayahr/etchmap
    Preparing search index...

    Type Alias MapDrawCallback

    MapDrawCallback: (
        context: CanvasRenderingContext2D,
        map: MapComponent,
    ) => true | false | void

    Callback invoked after the map has been drawn.

    Type Declaration

      • (context: CanvasRenderingContext2D, map: MapComponent): true | false | void
      • Parameters

        • context: CanvasRenderingContext2D

          Canvas context configured to use CSS pixel coordinates.

        • map: MapComponent

          Map component being drawn.

        Returns true | false | void

        true to request another frame. false and void stop the callback animation and are the default.

    Any exception raised by the callback propagates from the animation frame after the Canvas state has been restored.