1 #![allow(unused_imports)]
2 use super::*;
3 use wasm_bindgen::prelude::*;
4 #[wasm_bindgen]
5 extern "C" {
6     # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = Position , typescript_type = "Position")]
7     #[derive(Debug, Clone, PartialEq, Eq)]
8     #[doc = "The `Position` class."]
9     #[doc = ""]
10     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Position)"]
11     #[doc = ""]
12     #[doc = "*This API requires the following crate features to be activated: `Position`*"]
13     pub type Position;
14     #[cfg(feature = "Coordinates")]
15     # [wasm_bindgen (structural , method , getter , js_class = "Position" , js_name = coords)]
16     #[doc = "Getter for the `coords` field of this object."]
17     #[doc = ""]
18     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Position/coords)"]
19     #[doc = ""]
20     #[doc = "*This API requires the following crate features to be activated: `Coordinates`, `Position`*"]
coords(this: &Position) -> Coordinates21     pub fn coords(this: &Position) -> Coordinates;
22     # [wasm_bindgen (structural , method , getter , js_class = "Position" , js_name = timestamp)]
23     #[doc = "Getter for the `timestamp` field of this object."]
24     #[doc = ""]
25     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Position/timestamp)"]
26     #[doc = ""]
27     #[doc = "*This API requires the following crate features to be activated: `Position`*"]
timestamp(this: &Position) -> f6428     pub fn timestamp(this: &Position) -> f64;
29 }
30