package brr
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha512=49e7bfbad2ea6a0139354e4a33c59c8a113c4c1e20a4f629bc5cad24aa801e474b4af10ce35adbda5d23dd294d1de5efa5b10bb3030d03f4758459977250a0f6
doc/brr/Brr/G/index.html
Module Brr.GSource
The global object, its global objects and functions.
If you are:
- In Webworker context, see also
Brr_webworkers.Worker.G - In an audio worklet, see also
Brr_webaudio.Audio.Worklet.G
Global objects
Depending on the JavaScript environment theses values can be undefined. You should know what you are doing or use Jv.defined to test the values.
Because of type dependencies some global objects are defined in their dedicated modules:
Brr_io.Fetch.cachesis the globalcachesobject.Brr_webcrypto.Crypto.cryptois the globalcryptoobject.
console is the global console object (if available). This is what Console.get returns initially.
document is the global document object (if available).
navigator is the global navigator object (if available).
performance is the global performance object (if available).
Global event target and messaging
target is globalThis as an event target.
Global properties
is_secure_context is true iff the current context is secure.
Timers
The type for timeout identifiers.
set_timeout ~ms f is a timer calling f in ms milliseconds unless stopped before.
set_interval ~ms f is a timer calling f every ms milliseconds until it is stopped.
Animation timing
The type for animation frame identifiers.
request_animation_frame f request f now to be called before the next repaint. With now indicating the point in time in ms when the function is called.
cancel_animation_frame fid cancels the animation frame request a.