maxcountryman_web_sys/features/
gen_SvgsvgElement.rs

1#![allow(unused_imports)]
2use super::*;
3use wasm_bindgen::prelude::*;
4#[wasm_bindgen]
5extern "C" {
6    # [wasm_bindgen (extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGSVGElement , typescript_type = "SVGSVGElement")]
7    #[derive(Debug, Clone, PartialEq, Eq)]
8    #[doc = "The `SvgsvgElement` class."]
9    #[doc = ""]
10    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement)"]
11    #[doc = ""]
12    #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"]
13    pub type SvgsvgElement;
14    #[cfg(feature = "SvgAnimatedLength")]
15    # [wasm_bindgen (structural , method , getter , js_class = "SVGSVGElement" , js_name = x)]
16    #[doc = "Getter for the `x` field of this object."]
17    #[doc = ""]
18    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/x)"]
19    #[doc = ""]
20    #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgsvgElement`*"]
21    pub fn x(this: &SvgsvgElement) -> SvgAnimatedLength;
22    #[cfg(feature = "SvgAnimatedLength")]
23    # [wasm_bindgen (structural , method , getter , js_class = "SVGSVGElement" , js_name = y)]
24    #[doc = "Getter for the `y` field of this object."]
25    #[doc = ""]
26    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/y)"]
27    #[doc = ""]
28    #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgsvgElement`*"]
29    pub fn y(this: &SvgsvgElement) -> SvgAnimatedLength;
30    #[cfg(feature = "SvgAnimatedLength")]
31    # [wasm_bindgen (structural , method , getter , js_class = "SVGSVGElement" , js_name = width)]
32    #[doc = "Getter for the `width` field of this object."]
33    #[doc = ""]
34    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/width)"]
35    #[doc = ""]
36    #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgsvgElement`*"]
37    pub fn width(this: &SvgsvgElement) -> SvgAnimatedLength;
38    #[cfg(feature = "SvgAnimatedLength")]
39    # [wasm_bindgen (structural , method , getter , js_class = "SVGSVGElement" , js_name = height)]
40    #[doc = "Getter for the `height` field of this object."]
41    #[doc = ""]
42    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/height)"]
43    #[doc = ""]
44    #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgsvgElement`*"]
45    pub fn height(this: &SvgsvgElement) -> SvgAnimatedLength;
46    # [wasm_bindgen (structural , method , getter , js_class = "SVGSVGElement" , js_name = useCurrentView)]
47    #[doc = "Getter for the `useCurrentView` field of this object."]
48    #[doc = ""]
49    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/useCurrentView)"]
50    #[doc = ""]
51    #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"]
52    pub fn use_current_view(this: &SvgsvgElement) -> bool;
53    # [wasm_bindgen (structural , method , getter , js_class = "SVGSVGElement" , js_name = currentScale)]
54    #[doc = "Getter for the `currentScale` field of this object."]
55    #[doc = ""]
56    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/currentScale)"]
57    #[doc = ""]
58    #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"]
59    pub fn current_scale(this: &SvgsvgElement) -> f32;
60    # [wasm_bindgen (structural , method , setter , js_class = "SVGSVGElement" , js_name = currentScale)]
61    #[doc = "Setter for the `currentScale` field of this object."]
62    #[doc = ""]
63    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/currentScale)"]
64    #[doc = ""]
65    #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"]
66    pub fn set_current_scale(this: &SvgsvgElement, value: f32);
67    #[cfg(feature = "SvgPoint")]
68    # [wasm_bindgen (structural , method , getter , js_class = "SVGSVGElement" , js_name = currentTranslate)]
69    #[doc = "Getter for the `currentTranslate` field of this object."]
70    #[doc = ""]
71    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/currentTranslate)"]
72    #[doc = ""]
73    #[doc = "*This API requires the following crate features to be activated: `SvgPoint`, `SvgsvgElement`*"]
74    pub fn current_translate(this: &SvgsvgElement) -> SvgPoint;
75    #[cfg(feature = "SvgAnimatedRect")]
76    # [wasm_bindgen (structural , method , getter , js_class = "SVGSVGElement" , js_name = viewBox)]
77    #[doc = "Getter for the `viewBox` field of this object."]
78    #[doc = ""]
79    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/viewBox)"]
80    #[doc = ""]
81    #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedRect`, `SvgsvgElement`*"]
82    pub fn view_box(this: &SvgsvgElement) -> SvgAnimatedRect;
83    #[cfg(feature = "SvgAnimatedPreserveAspectRatio")]
84    # [wasm_bindgen (structural , method , getter , js_class = "SVGSVGElement" , js_name = preserveAspectRatio)]
85    #[doc = "Getter for the `preserveAspectRatio` field of this object."]
86    #[doc = ""]
87    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/preserveAspectRatio)"]
88    #[doc = ""]
89    #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedPreserveAspectRatio`, `SvgsvgElement`*"]
90    pub fn preserve_aspect_ratio(this: &SvgsvgElement) -> SvgAnimatedPreserveAspectRatio;
91    # [wasm_bindgen (structural , method , getter , js_class = "SVGSVGElement" , js_name = zoomAndPan)]
92    #[doc = "Getter for the `zoomAndPan` field of this object."]
93    #[doc = ""]
94    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/zoomAndPan)"]
95    #[doc = ""]
96    #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"]
97    pub fn zoom_and_pan(this: &SvgsvgElement) -> u16;
98    # [wasm_bindgen (structural , method , setter , js_class = "SVGSVGElement" , js_name = zoomAndPan)]
99    #[doc = "Setter for the `zoomAndPan` field of this object."]
100    #[doc = ""]
101    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/zoomAndPan)"]
102    #[doc = ""]
103    #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"]
104    pub fn set_zoom_and_pan(this: &SvgsvgElement, value: u16);
105    # [wasm_bindgen (method , structural , js_class = "SVGSVGElement" , js_name = animationsPaused)]
106    #[doc = "The `animationsPaused()` method."]
107    #[doc = ""]
108    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/animationsPaused)"]
109    #[doc = ""]
110    #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"]
111    pub fn animations_paused(this: &SvgsvgElement) -> bool;
112    #[cfg(feature = "SvgAngle")]
113    # [wasm_bindgen (method , structural , js_class = "SVGSVGElement" , js_name = createSVGAngle)]
114    #[doc = "The `createSVGAngle()` method."]
115    #[doc = ""]
116    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/createSVGAngle)"]
117    #[doc = ""]
118    #[doc = "*This API requires the following crate features to be activated: `SvgAngle`, `SvgsvgElement`*"]
119    pub fn create_svg_angle(this: &SvgsvgElement) -> SvgAngle;
120    #[cfg(feature = "SvgLength")]
121    # [wasm_bindgen (method , structural , js_class = "SVGSVGElement" , js_name = createSVGLength)]
122    #[doc = "The `createSVGLength()` method."]
123    #[doc = ""]
124    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/createSVGLength)"]
125    #[doc = ""]
126    #[doc = "*This API requires the following crate features to be activated: `SvgLength`, `SvgsvgElement`*"]
127    pub fn create_svg_length(this: &SvgsvgElement) -> SvgLength;
128    #[cfg(feature = "SvgMatrix")]
129    # [wasm_bindgen (method , structural , js_class = "SVGSVGElement" , js_name = createSVGMatrix)]
130    #[doc = "The `createSVGMatrix()` method."]
131    #[doc = ""]
132    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/createSVGMatrix)"]
133    #[doc = ""]
134    #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`, `SvgsvgElement`*"]
135    pub fn create_svg_matrix(this: &SvgsvgElement) -> SvgMatrix;
136    #[cfg(feature = "SvgNumber")]
137    # [wasm_bindgen (method , structural , js_class = "SVGSVGElement" , js_name = createSVGNumber)]
138    #[doc = "The `createSVGNumber()` method."]
139    #[doc = ""]
140    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/createSVGNumber)"]
141    #[doc = ""]
142    #[doc = "*This API requires the following crate features to be activated: `SvgNumber`, `SvgsvgElement`*"]
143    pub fn create_svg_number(this: &SvgsvgElement) -> SvgNumber;
144    #[cfg(feature = "SvgPoint")]
145    # [wasm_bindgen (method , structural , js_class = "SVGSVGElement" , js_name = createSVGPoint)]
146    #[doc = "The `createSVGPoint()` method."]
147    #[doc = ""]
148    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/createSVGPoint)"]
149    #[doc = ""]
150    #[doc = "*This API requires the following crate features to be activated: `SvgPoint`, `SvgsvgElement`*"]
151    pub fn create_svg_point(this: &SvgsvgElement) -> SvgPoint;
152    #[cfg(feature = "SvgRect")]
153    # [wasm_bindgen (method , structural , js_class = "SVGSVGElement" , js_name = createSVGRect)]
154    #[doc = "The `createSVGRect()` method."]
155    #[doc = ""]
156    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/createSVGRect)"]
157    #[doc = ""]
158    #[doc = "*This API requires the following crate features to be activated: `SvgRect`, `SvgsvgElement`*"]
159    pub fn create_svg_rect(this: &SvgsvgElement) -> SvgRect;
160    #[cfg(feature = "SvgTransform")]
161    # [wasm_bindgen (method , structural , js_class = "SVGSVGElement" , js_name = createSVGTransform)]
162    #[doc = "The `createSVGTransform()` method."]
163    #[doc = ""]
164    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/createSVGTransform)"]
165    #[doc = ""]
166    #[doc = "*This API requires the following crate features to be activated: `SvgTransform`, `SvgsvgElement`*"]
167    pub fn create_svg_transform(this: &SvgsvgElement) -> SvgTransform;
168    #[cfg(all(feature = "SvgMatrix", feature = "SvgTransform",))]
169    # [wasm_bindgen (method , structural , js_class = "SVGSVGElement" , js_name = createSVGTransformFromMatrix)]
170    #[doc = "The `createSVGTransformFromMatrix()` method."]
171    #[doc = ""]
172    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/createSVGTransformFromMatrix)"]
173    #[doc = ""]
174    #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`, `SvgTransform`, `SvgsvgElement`*"]
175    pub fn create_svg_transform_from_matrix(
176        this: &SvgsvgElement,
177        matrix: &SvgMatrix,
178    ) -> SvgTransform;
179    # [wasm_bindgen (method , structural , js_class = "SVGSVGElement" , js_name = deselectAll)]
180    #[doc = "The `deselectAll()` method."]
181    #[doc = ""]
182    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/deselectAll)"]
183    #[doc = ""]
184    #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"]
185    pub fn deselect_all(this: &SvgsvgElement);
186    # [wasm_bindgen (method , structural , js_class = "SVGSVGElement" , js_name = forceRedraw)]
187    #[doc = "The `forceRedraw()` method."]
188    #[doc = ""]
189    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/forceRedraw)"]
190    #[doc = ""]
191    #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"]
192    pub fn force_redraw(this: &SvgsvgElement);
193    # [wasm_bindgen (method , structural , js_class = "SVGSVGElement" , js_name = getCurrentTime)]
194    #[doc = "The `getCurrentTime()` method."]
195    #[doc = ""]
196    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/getCurrentTime)"]
197    #[doc = ""]
198    #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"]
199    pub fn get_current_time(this: &SvgsvgElement) -> f32;
200    # [wasm_bindgen (method , structural , js_class = "SVGSVGElement" , js_name = getElementById)]
201    #[doc = "The `getElementById()` method."]
202    #[doc = ""]
203    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/getElementById)"]
204    #[doc = ""]
205    #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"]
206    pub fn get_element_by_id(this: &SvgsvgElement, element_id: &str) -> Option<Element>;
207    # [wasm_bindgen (method , structural , js_class = "SVGSVGElement" , js_name = pauseAnimations)]
208    #[doc = "The `pauseAnimations()` method."]
209    #[doc = ""]
210    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/pauseAnimations)"]
211    #[doc = ""]
212    #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"]
213    pub fn pause_animations(this: &SvgsvgElement);
214    # [wasm_bindgen (method , structural , js_class = "SVGSVGElement" , js_name = setCurrentTime)]
215    #[doc = "The `setCurrentTime()` method."]
216    #[doc = ""]
217    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/setCurrentTime)"]
218    #[doc = ""]
219    #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"]
220    pub fn set_current_time(this: &SvgsvgElement, seconds: f32);
221    # [wasm_bindgen (method , structural , js_class = "SVGSVGElement" , js_name = suspendRedraw)]
222    #[doc = "The `suspendRedraw()` method."]
223    #[doc = ""]
224    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/suspendRedraw)"]
225    #[doc = ""]
226    #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"]
227    pub fn suspend_redraw(this: &SvgsvgElement, max_wait_milliseconds: u32) -> u32;
228    # [wasm_bindgen (method , structural , js_class = "SVGSVGElement" , js_name = unpauseAnimations)]
229    #[doc = "The `unpauseAnimations()` method."]
230    #[doc = ""]
231    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/unpauseAnimations)"]
232    #[doc = ""]
233    #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"]
234    pub fn unpause_animations(this: &SvgsvgElement);
235    # [wasm_bindgen (method , structural , js_class = "SVGSVGElement" , js_name = unsuspendRedraw)]
236    #[doc = "The `unsuspendRedraw()` method."]
237    #[doc = ""]
238    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/unsuspendRedraw)"]
239    #[doc = ""]
240    #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"]
241    pub fn unsuspend_redraw(this: &SvgsvgElement, suspend_handle_id: u32);
242    # [wasm_bindgen (method , structural , js_class = "SVGSVGElement" , js_name = unsuspendRedrawAll)]
243    #[doc = "The `unsuspendRedrawAll()` method."]
244    #[doc = ""]
245    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/unsuspendRedrawAll)"]
246    #[doc = ""]
247    #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"]
248    pub fn unsuspend_redraw_all(this: &SvgsvgElement);
249}
250impl SvgsvgElement {
251    #[doc = "The `SVGSVGElement.SVG_ZOOMANDPAN_UNKNOWN` const."]
252    #[doc = ""]
253    #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"]
254    pub const SVG_ZOOMANDPAN_UNKNOWN: u16 = 0i64 as u16;
255    #[doc = "The `SVGSVGElement.SVG_ZOOMANDPAN_DISABLE` const."]
256    #[doc = ""]
257    #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"]
258    pub const SVG_ZOOMANDPAN_DISABLE: u16 = 1u64 as u16;
259    #[doc = "The `SVGSVGElement.SVG_ZOOMANDPAN_MAGNIFY` const."]
260    #[doc = ""]
261    #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"]
262    pub const SVG_ZOOMANDPAN_MAGNIFY: u16 = 2u64 as u16;
263}