1 #![allow(unused_imports)]
2 use super::*;
3 use wasm_bindgen::prelude::*;
4 #[wasm_bindgen]
5 extern "C" {
6     # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = TransitionEvent , typescript_type = "TransitionEvent")]
7     #[derive(Debug, Clone, PartialEq, Eq)]
8     #[doc = "The `TransitionEvent` class."]
9     #[doc = ""]
10     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TransitionEvent)"]
11     #[doc = ""]
12     #[doc = "*This API requires the following crate features to be activated: `TransitionEvent`*"]
13     pub type TransitionEvent;
14     # [wasm_bindgen (structural , method , getter , js_class = "TransitionEvent" , js_name = propertyName)]
15     #[doc = "Getter for the `propertyName` field of this object."]
16     #[doc = ""]
17     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TransitionEvent/propertyName)"]
18     #[doc = ""]
19     #[doc = "*This API requires the following crate features to be activated: `TransitionEvent`*"]
property_name(this: &TransitionEvent) -> String20     pub fn property_name(this: &TransitionEvent) -> String;
21     # [wasm_bindgen (structural , method , getter , js_class = "TransitionEvent" , js_name = elapsedTime)]
22     #[doc = "Getter for the `elapsedTime` field of this object."]
23     #[doc = ""]
24     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TransitionEvent/elapsedTime)"]
25     #[doc = ""]
26     #[doc = "*This API requires the following crate features to be activated: `TransitionEvent`*"]
elapsed_time(this: &TransitionEvent) -> f3227     pub fn elapsed_time(this: &TransitionEvent) -> f32;
28     # [wasm_bindgen (structural , method , getter , js_class = "TransitionEvent" , js_name = pseudoElement)]
29     #[doc = "Getter for the `pseudoElement` field of this object."]
30     #[doc = ""]
31     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TransitionEvent/pseudoElement)"]
32     #[doc = ""]
33     #[doc = "*This API requires the following crate features to be activated: `TransitionEvent`*"]
pseudo_element(this: &TransitionEvent) -> String34     pub fn pseudo_element(this: &TransitionEvent) -> String;
35     #[wasm_bindgen(catch, constructor, js_class = "TransitionEvent")]
36     #[doc = "The `new TransitionEvent(..)` constructor, creating a new instance of `TransitionEvent`."]
37     #[doc = ""]
38     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TransitionEvent/TransitionEvent)"]
39     #[doc = ""]
40     #[doc = "*This API requires the following crate features to be activated: `TransitionEvent`*"]
new(type_: &str) -> Result<TransitionEvent, JsValue>41     pub fn new(type_: &str) -> Result<TransitionEvent, JsValue>;
42     #[cfg(feature = "TransitionEventInit")]
43     #[wasm_bindgen(catch, constructor, js_class = "TransitionEvent")]
44     #[doc = "The `new TransitionEvent(..)` constructor, creating a new instance of `TransitionEvent`."]
45     #[doc = ""]
46     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TransitionEvent/TransitionEvent)"]
47     #[doc = ""]
48     #[doc = "*This API requires the following crate features to be activated: `TransitionEvent`, `TransitionEventInit`*"]
new_with_event_init_dict( type_: &str, event_init_dict: &TransitionEventInit, ) -> Result<TransitionEvent, JsValue>49     pub fn new_with_event_init_dict(
50         type_: &str,
51         event_init_dict: &TransitionEventInit,
52     ) -> Result<TransitionEvent, JsValue>;
53 }
54