@univerjs/engine-render v0.5.4


Function: requestNewFrame()

function requestNewFrame(func, requester?): number

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/tools.ts:76

Queue a new function into the requested animation frame pool (ie. this function will be executed byt the browser for the next frame)

Parameters

ParameterTypeDescription
funcFunctionthe function to be called
requester?anythe object that will request the next frame. Falls back to window.

Returns

number

frame number