web-sys 0.3.69

Bindings for all Web APIs, a procedurally generated crate from WebIDL
Documentation
1
2
3
4
5
6
7
8
9
10
// https://html.spec.whatwg.org/multipage/imagebitmap-and-animations.html#animation-frames

callback FrameRequestCallback = undefined (DOMHighResTimeStamp time);

interface mixin AnimationFrameProvider {
  [Throws] long requestAnimationFrame(FrameRequestCallback callback);
  [Throws] undefined cancelAnimationFrame(long handle);
};
Window includes AnimationFrameProvider;
DedicatedWorkerGlobalScope includes AnimationFrameProvider;