Skip to content

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

Type Alias: BoardProps

BoardProps = object

Defined in: components/Board.tsx:31

Props for the Board component.

Properties

animationCallback()?

optional animationCallback: (timestamp, ctx) => void

Defined in: components/Board.tsx:39

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:44

Child components that can access the board via hooks


fullScreen?

optional fullScreen: boolean

Defined in: components/Board.tsx:33

Enable fullscreen mode (canvas resizes with window)


height?

optional height: number

Defined in: components/Board.tsx:37

Canvas height in pixels


width?

optional width: number

Defined in: components/Board.tsx:35

Canvas width in pixels