Skip to content

charton API


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

Function: flushFrames() ​

flushFrames(max?): number

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

Run frames until none is pending: the chart has drawn and its animations have settled. Throws after max frames (default 1000), e.g. for an animation that never ends.

Parameters ​

max? ​

number = 1000

Returns ​

number