maxcountryman_web_sys/features/
gen_SvgViewElement.rs1#![allow(unused_imports)]
2use super::*;
3use wasm_bindgen::prelude::*;
4#[wasm_bindgen]
5extern "C" {
6 # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGViewElement , typescript_type = "SVGViewElement")]
7 #[derive(Debug, Clone, PartialEq, Eq)]
8 #[doc = "The `SvgViewElement` class."]
9 #[doc = ""]
10 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGViewElement)"]
11 #[doc = ""]
12 #[doc = "*This API requires the following crate features to be activated: `SvgViewElement`*"]
13 pub type SvgViewElement;
14 #[cfg(feature = "SvgAnimatedRect")]
15 # [wasm_bindgen (structural , method , getter , js_class = "SVGViewElement" , js_name = viewBox)]
16 #[doc = "Getter for the `viewBox` field of this object."]
17 #[doc = ""]
18 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGViewElement/viewBox)"]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedRect`, `SvgViewElement`*"]
21 pub fn view_box(this: &SvgViewElement) -> SvgAnimatedRect;
22 #[cfg(feature = "SvgAnimatedPreserveAspectRatio")]
23 # [wasm_bindgen (structural , method , getter , js_class = "SVGViewElement" , js_name = preserveAspectRatio)]
24 #[doc = "Getter for the `preserveAspectRatio` field of this object."]
25 #[doc = ""]
26 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGViewElement/preserveAspectRatio)"]
27 #[doc = ""]
28 #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedPreserveAspectRatio`, `SvgViewElement`*"]
29 pub fn preserve_aspect_ratio(this: &SvgViewElement) -> SvgAnimatedPreserveAspectRatio;
30 # [wasm_bindgen (structural , method , getter , js_class = "SVGViewElement" , js_name = zoomAndPan)]
31 #[doc = "Getter for the `zoomAndPan` field of this object."]
32 #[doc = ""]
33 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGViewElement/zoomAndPan)"]
34 #[doc = ""]
35 #[doc = "*This API requires the following crate features to be activated: `SvgViewElement`*"]
36 pub fn zoom_and_pan(this: &SvgViewElement) -> u16;
37 # [wasm_bindgen (structural , method , setter , js_class = "SVGViewElement" , js_name = zoomAndPan)]
38 #[doc = "Setter for the `zoomAndPan` field of this object."]
39 #[doc = ""]
40 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGViewElement/zoomAndPan)"]
41 #[doc = ""]
42 #[doc = "*This API requires the following crate features to be activated: `SvgViewElement`*"]
43 pub fn set_zoom_and_pan(this: &SvgViewElement, value: u16);
44}
45impl SvgViewElement {
46 #[doc = "The `SVGViewElement.SVG_ZOOMANDPAN_UNKNOWN` const."]
47 #[doc = ""]
48 #[doc = "*This API requires the following crate features to be activated: `SvgViewElement`*"]
49 pub const SVG_ZOOMANDPAN_UNKNOWN: u16 = 0i64 as u16;
50 #[doc = "The `SVGViewElement.SVG_ZOOMANDPAN_DISABLE` const."]
51 #[doc = ""]
52 #[doc = "*This API requires the following crate features to be activated: `SvgViewElement`*"]
53 pub const SVG_ZOOMANDPAN_DISABLE: u16 = 1u64 as u16;
54 #[doc = "The `SVGViewElement.SVG_ZOOMANDPAN_MAGNIFY` const."]
55 #[doc = ""]
56 #[doc = "*This API requires the following crate features to be activated: `SvgViewElement`*"]
57 pub const SVG_ZOOMANDPAN_MAGNIFY: u16 = 2u64 as u16;
58}