Skip to content

charton API


charton API / @chart-on/core / testing / driveFrames

Function: driveFrames() ​

driveFrames(options?): number

Defined in: packages/core/src/testing/kit.ts:81

Run up to count frames (default 1), step ms apart (default 16): each runs the frame callbacks pending at that moment, like a browser frame. Stops early when nothing is pending. Returns how many frames ran.

Parameters ​

options? ​

count? ​

number

step? ​

number

Returns ​

number