Skip to content

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

型別別名: BoardProps

BoardProps = object

定義於: components/Board.tsx:30

Props for the Board component.

屬性

animationCallback()?

optional animationCallback: (timestamp, ctx) => void

定義於: components/Board.tsx:38

Callback function for drawing on each animation frame

參數

timestamp

number

ctx

CanvasRenderingContext2D

回傳

void


children?

optional children: React.ReactNode

定義於: components/Board.tsx:43

Child components that can access the board via hooks


fullScreen?

optional fullScreen: boolean

定義於: components/Board.tsx:32

Enable fullscreen mode (canvas resizes with window)


height?

optional height: number

定義於: components/Board.tsx:36

Canvas height in pixels


width?

optional width: number

定義於: components/Board.tsx:34

Canvas width in pixels