@mocanvas/editor · interface

TLTimeContext

interface TLTimeContext

The timer API, bound to one context.


Methods · 4

dispose(): void

Cancel everything started through this context.

requestAnimationFrame(fn: (time: number) => void): number
setInterval(fn: () => void, ms: number): number
setTimeout(fn: () => void, ms: number): number

mocanvas 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.