@ue-too/board-react-adapter / BoardProps
Type Alias: BoardProps
BoardProps =
object
Defined in: components/Board.tsx:31
Props for the Board component.
Properties
animationCallback()?
optionalanimationCallback: (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?
optionalchildren:React.ReactNode
Defined in: components/Board.tsx:44
Child components that can access the board via hooks
fullScreen?
optionalfullScreen:boolean
Defined in: components/Board.tsx:33
Enable fullscreen mode (canvas resizes with window)
height?
optionalheight:number
Defined in: components/Board.tsx:37
Canvas height in pixels
width?
optionalwidth:number
Defined in: components/Board.tsx:35
Canvas width in pixels