@ue-too/board-react-adapter / index / BoardProps
型別別名: BoardProps
BoardProps =
object
Props for the Board component.
屬性
animationCallback()?
optionalanimationCallback: (timestamp,ctx) =>void
Callback function for drawing on each animation frame
參數
timestamp
number
ctx
CanvasRenderingContext2D
回傳
void
children?
optionalchildren:React.ReactNode
Child components that can access the board via hooks
fullScreen?
optionalfullScreen:boolean
Enable fullscreen mode (canvas resizes with window)
height?
optionalheight:number
Canvas height in pixels
width?
optionalwidth:number
Canvas width in pixels