1 #![allow(unused_imports)]
2 use super::*;
3 use wasm_bindgen::prelude::*;
4 #[wasm_bindgen]
5 extern "C" {
6     # [wasm_bindgen (extends = :: js_sys :: Object , js_name = AnimationEffect , typescript_type = "AnimationEffect")]
7     #[derive(Debug, Clone, PartialEq, Eq)]
8     #[doc = "The `AnimationEffect` class."]
9     #[doc = ""]
10     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationEffect)"]
11     #[doc = ""]
12     #[doc = "*This API requires the following crate features to be activated: `AnimationEffect`*"]
13     pub type AnimationEffect;
14     #[cfg(feature = "ComputedEffectTiming")]
15     # [wasm_bindgen (method , structural , js_class = "AnimationEffect" , js_name = getComputedTiming)]
16     #[doc = "The `getComputedTiming()` method."]
17     #[doc = ""]
18     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationEffect/getComputedTiming)"]
19     #[doc = ""]
20     #[doc = "*This API requires the following crate features to be activated: `AnimationEffect`, `ComputedEffectTiming`*"]
get_computed_timing(this: &AnimationEffect) -> ComputedEffectTiming21     pub fn get_computed_timing(this: &AnimationEffect) -> ComputedEffectTiming;
22     #[cfg(feature = "EffectTiming")]
23     # [wasm_bindgen (method , structural , js_class = "AnimationEffect" , js_name = getTiming)]
24     #[doc = "The `getTiming()` method."]
25     #[doc = ""]
26     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationEffect/getTiming)"]
27     #[doc = ""]
28     #[doc = "*This API requires the following crate features to be activated: `AnimationEffect`, `EffectTiming`*"]
get_timing(this: &AnimationEffect) -> EffectTiming29     pub fn get_timing(this: &AnimationEffect) -> EffectTiming;
30     # [wasm_bindgen (catch , method , structural , js_class = "AnimationEffect" , js_name = updateTiming)]
31     #[doc = "The `updateTiming()` method."]
32     #[doc = ""]
33     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationEffect/updateTiming)"]
34     #[doc = ""]
35     #[doc = "*This API requires the following crate features to be activated: `AnimationEffect`*"]
update_timing(this: &AnimationEffect) -> Result<(), JsValue>36     pub fn update_timing(this: &AnimationEffect) -> Result<(), JsValue>;
37     #[cfg(feature = "OptionalEffectTiming")]
38     # [wasm_bindgen (catch , method , structural , js_class = "AnimationEffect" , js_name = updateTiming)]
39     #[doc = "The `updateTiming()` method."]
40     #[doc = ""]
41     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationEffect/updateTiming)"]
42     #[doc = ""]
43     #[doc = "*This API requires the following crate features to be activated: `AnimationEffect`, `OptionalEffectTiming`*"]
update_timing_with_timing( this: &AnimationEffect, timing: &OptionalEffectTiming, ) -> Result<(), JsValue>44     pub fn update_timing_with_timing(
45         this: &AnimationEffect,
46         timing: &OptionalEffectTiming,
47     ) -> Result<(), JsValue>;
48 }
49