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 = SVGAngle , typescript_type = "SVGAngle")]
7     #[derive(Debug, Clone, PartialEq, Eq)]
8     #[doc = "The `SvgAngle` class."]
9     #[doc = ""]
10     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAngle)"]
11     #[doc = ""]
12     #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"]
13     pub type SvgAngle;
14     # [wasm_bindgen (structural , method , getter , js_class = "SVGAngle" , js_name = unitType)]
15     #[doc = "Getter for the `unitType` field of this object."]
16     #[doc = ""]
17     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAngle/unitType)"]
18     #[doc = ""]
19     #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"]
unit_type(this: &SvgAngle) -> u1620     pub fn unit_type(this: &SvgAngle) -> u16;
21     # [wasm_bindgen (structural , method , getter , js_class = "SVGAngle" , js_name = value)]
22     #[doc = "Getter for the `value` field of this object."]
23     #[doc = ""]
24     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAngle/value)"]
25     #[doc = ""]
26     #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"]
value(this: &SvgAngle) -> f3227     pub fn value(this: &SvgAngle) -> f32;
28     # [wasm_bindgen (structural , method , setter , js_class = "SVGAngle" , js_name = value)]
29     #[doc = "Setter for the `value` field of this object."]
30     #[doc = ""]
31     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAngle/value)"]
32     #[doc = ""]
33     #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"]
set_value(this: &SvgAngle, value: f32)34     pub fn set_value(this: &SvgAngle, value: f32);
35     # [wasm_bindgen (structural , method , getter , js_class = "SVGAngle" , js_name = valueInSpecifiedUnits)]
36     #[doc = "Getter for the `valueInSpecifiedUnits` field of this object."]
37     #[doc = ""]
38     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAngle/valueInSpecifiedUnits)"]
39     #[doc = ""]
40     #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"]
value_in_specified_units(this: &SvgAngle) -> f3241     pub fn value_in_specified_units(this: &SvgAngle) -> f32;
42     # [wasm_bindgen (structural , method , setter , js_class = "SVGAngle" , js_name = valueInSpecifiedUnits)]
43     #[doc = "Setter for the `valueInSpecifiedUnits` field of this object."]
44     #[doc = ""]
45     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAngle/valueInSpecifiedUnits)"]
46     #[doc = ""]
47     #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"]
set_value_in_specified_units(this: &SvgAngle, value: f32)48     pub fn set_value_in_specified_units(this: &SvgAngle, value: f32);
49     # [wasm_bindgen (structural , method , getter , js_class = "SVGAngle" , js_name = valueAsString)]
50     #[doc = "Getter for the `valueAsString` field of this object."]
51     #[doc = ""]
52     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAngle/valueAsString)"]
53     #[doc = ""]
54     #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"]
value_as_string(this: &SvgAngle) -> String55     pub fn value_as_string(this: &SvgAngle) -> String;
56     # [wasm_bindgen (structural , method , setter , js_class = "SVGAngle" , js_name = valueAsString)]
57     #[doc = "Setter for the `valueAsString` field of this object."]
58     #[doc = ""]
59     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAngle/valueAsString)"]
60     #[doc = ""]
61     #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"]
set_value_as_string(this: &SvgAngle, value: &str)62     pub fn set_value_as_string(this: &SvgAngle, value: &str);
63     # [wasm_bindgen (catch , method , structural , js_class = "SVGAngle" , js_name = convertToSpecifiedUnits)]
64     #[doc = "The `convertToSpecifiedUnits()` method."]
65     #[doc = ""]
66     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAngle/convertToSpecifiedUnits)"]
67     #[doc = ""]
68     #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"]
convert_to_specified_units(this: &SvgAngle, unit_type: u16) -> Result<(), JsValue>69     pub fn convert_to_specified_units(this: &SvgAngle, unit_type: u16) -> Result<(), JsValue>;
70     # [wasm_bindgen (catch , method , structural , js_class = "SVGAngle" , js_name = newValueSpecifiedUnits)]
71     #[doc = "The `newValueSpecifiedUnits()` method."]
72     #[doc = ""]
73     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAngle/newValueSpecifiedUnits)"]
74     #[doc = ""]
75     #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"]
new_value_specified_units( this: &SvgAngle, unit_type: u16, value_in_specified_units: f32, ) -> Result<(), JsValue>76     pub fn new_value_specified_units(
77         this: &SvgAngle,
78         unit_type: u16,
79         value_in_specified_units: f32,
80     ) -> Result<(), JsValue>;
81 }
82 impl SvgAngle {
83     #[doc = "The `SVGAngle.SVG_ANGLETYPE_UNKNOWN` const."]
84     #[doc = ""]
85     #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"]
86     pub const SVG_ANGLETYPE_UNKNOWN: u16 = 0i64 as u16;
87     #[doc = "The `SVGAngle.SVG_ANGLETYPE_UNSPECIFIED` const."]
88     #[doc = ""]
89     #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"]
90     pub const SVG_ANGLETYPE_UNSPECIFIED: u16 = 1u64 as u16;
91     #[doc = "The `SVGAngle.SVG_ANGLETYPE_DEG` const."]
92     #[doc = ""]
93     #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"]
94     pub const SVG_ANGLETYPE_DEG: u16 = 2u64 as u16;
95     #[doc = "The `SVGAngle.SVG_ANGLETYPE_RAD` const."]
96     #[doc = ""]
97     #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"]
98     pub const SVG_ANGLETYPE_RAD: u16 = 3u64 as u16;
99     #[doc = "The `SVGAngle.SVG_ANGLETYPE_GRAD` const."]
100     #[doc = ""]
101     #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"]
102     pub const SVG_ANGLETYPE_GRAD: u16 = 4u64 as u16;
103 }
104