Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface SelectionResults

Hierarchy

  • SelectionResults

Index

Properties

activeCell

activeCell: CellInterface | null

Active selected cell

newSelection

newSelection: (coords: CellInterface) => void

Use this to invoke a new selection. All old selection will be cleared

Type declaration

onKeyDown

onKeyDown: (e: KeyboardEvent<HTMLElement>) => void

Used to move selections based on pressed key

Type declaration

    • (e: KeyboardEvent<HTMLElement>): void
    • Parameters

      • e: KeyboardEvent<HTMLElement>

      Returns void

onMouseDown

onMouseDown: (e: MouseEvent<HTMLDivElement>) => void

Handler for mousedown, use to set activeCell

Type declaration

    • (e: MouseEvent<HTMLDivElement>): void
    • Parameters

      • e: MouseEvent<HTMLDivElement>

      Returns void

selections

selections: SelectionArea[]

Array of all selection bounds

setActiveCell

setActiveCell: (coords: CellInterface | null) => void

Set the currently active cell

Type declaration

setSelections

setSelections: (selection: SelectionArea[]) => void

Use this to update selections without clearning old selection.

Type declaration

Generated using TypeDoc