@univerjs/engine-render v0.5.0-beta.1Docs


Function: requestNewFrame()

function requestNewFrame(func, requester?): number

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

Defined in

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