Type Alias SelectionContext

SelectionContext: {
    canvas: HTMLCanvasElement;
    cleanup: () => void;
    setSelectionEndPoint: (point: Point) => void;
    setup: () => void;
    toggleSelectionBox: (show: boolean) => void;
}

The context for the ready to select state.

Type declaration

  • canvas: HTMLCanvasElement
  • cleanup: () => void
  • setSelectionEndPoint: (point: Point) => void
  • setup: () => void
  • toggleSelectionBox: (show: boolean) => void