Skip to content

API reference / Common / OverlaySource

Type Alias: OverlaySource ​

ts
type OverlaySource = (frame) => OverlayItem[];

Maps one frame to the overlay items to show. Pure and stateless — it runs every painted frame, so derive everything from the frame.

Parameters ​

ParameterType
frameOverlayFrame