MCPcopy Create free account
hub / github.com/angular-rust/yew-components / request_animation_frame

Function request_animation_frame

src/drawer.rs:229–233  ·  view source on GitHub ↗
(f: &Closure<dyn FnMut()>)

Source from the content-addressed store, hash-verified

227}
228
229fn request_animation_frame(f: &Closure<dyn FnMut()>) {
230 window()
231 .request_animation_frame(f.as_ref().unchecked_ref())
232 .expect("should register `requestAnimationFrame` OK");
233}
234
235fn document() -> web_sys::Document {
236 window()

Callers 1

Calls 1

windowFunction · 0.85

Tested by

no test coverage detected