@mocanvas/editor · interface
interface TLPerfLongAnimationFrameScriptOne script attributed to a long animation frame, as the browser reports it.
Mirrors the PerformanceScriptTiming entries the Long Animation Frames API
produces; every field is optional because browser support for the API is
partial and uneven, and an adapter must not throw on a browser that reports
half of it.
Properties · 11
duration?: number | undefinedentryType?: string | undefinedforcedStyleAndLayoutDuration?: number | undefinedTime the script forced style or layout to be recomputed.
invoker?: string | undefinedWhat ran the script: an event listener, a timer, a promise callback.
invokerType?: string | undefinedname?: string | undefinedpauseDuration?: number | undefinedTime spent in a synchronous pause — an alert, a sync XHR.
sourceCharPosition?: number | undefinedsourceFunctionName?: string | undefinedsourceURL?: string | undefinedstartTime?: number | undefinedmocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.