Skip to content

@ue-too/board-react-adapter / index / BoardProps

Type Alias: BoardProps ​

BoardProps = object

Defined in: components/Board.tsx:30

Props for the Board component.

Properties ​

animationCallback()? ​

optional animationCallback: (timestamp, ctx) => void

Defined in: components/Board.tsx:38

Callback function for drawing on each animation frame

Parameters ​

timestamp ​

number

ctx ​

CanvasRenderingContext2D

Returns ​

void


children? ​

optional children: React.ReactNode

Defined in: components/Board.tsx:43

Child components that can access the board via hooks


fullScreen? ​

optional fullScreen: boolean

Defined in: components/Board.tsx:32

Enable fullscreen mode (canvas resizes with window)


height? ​

optional height: number

Defined in: components/Board.tsx:36

Canvas height in pixels


width? ​

optional width: number

Defined in: components/Board.tsx:34

Canvas width in pixels