Skip to content

@ue-too/board-vue-adapter / index / useAnimationFrameWithBoard

函式: useAnimationFrameWithBoard()

useAnimationFrameWithBoard(callback?): void

定義於: useBoard.ts:89

Hook to run an animation loop integrated with the Board's step function.

參數

callback?

(timestamp, ctx) => void

Optional function to call after board.step(), receives timestamp and canvas context

回傳

void