@ue-too/board-vue-adapter / useAnimationFrameWithBoard
Function: useAnimationFrameWithBoard()
useAnimationFrameWithBoard(
callback?):void
Defined in: useBoard.ts:89
Hook to run an animation loop integrated with the Board's step function.
Parameters
callback?
(timestamp, ctx) => void
Optional function to call after board.step(), receives timestamp and canvas context
Returns
void