Skip to content

v0.1.2

Choose a tag to compare

@tungs tungs released this 16 Dec 01:00

v0.1.2 exports more time-handling functions through export statements. In the built file, they are available via the timeweb object:

  • the realtime property gives access to real-time functions and objects (e.g. timeweb.realtime.performance.now()):
    • Date
    • setTimeout
    • requestAnimationFrame
    • cancelAnimationFrame
    • clearTimeout
    • performance
    • createElement
    • createElementNS

Previously methods available in the global scope with the _timeweb prefixed are now available in the timeweb object as well:

  • processUntilTime
  • runAnimationFrames
  • runFramePreparers
  • addFramePreparer

All of the above methods are going to be removed from the global scope in the next release, so it's recommended to switch over to using invocations from the timeweb object.

Full Changelog: v0.1.1...v0.1.2