Skip to main content

web_sys/features/
gen_SvgMarkerElement.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7    #[wasm_bindgen(
8        extends = "SvgElement",
9        extends = "Element",
10        extends = "Node",
11        extends = "EventTarget",
12        extends = "::js_sys::Object",
13        js_name = "SVGMarkerElement",
14        typescript_type = "SVGMarkerElement"
15    )]
16    #[derive(Debug, Clone, PartialEq, Eq)]
17    #[doc = "The `SvgMarkerElement` class."]
18    #[doc = ""]
19    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement)"]
20    #[doc = ""]
21    #[doc = "*This API requires the following crate features to be activated: `SvgMarkerElement`*"]
22    pub type SvgMarkerElement;
23    #[cfg(feature = "SvgAnimatedLength")]
24    #[wasm_bindgen(method, getter, js_class = "SVGMarkerElement", js_name = "refX")]
25    #[doc = "Getter for the `refX` field of this object."]
26    #[doc = ""]
27    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement/refX)"]
28    #[doc = ""]
29    #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgMarkerElement`*"]
30    pub fn ref_x(this: &SvgMarkerElement) -> SvgAnimatedLength;
31    #[cfg(feature = "SvgAnimatedLength")]
32    #[wasm_bindgen(method, getter, js_class = "SVGMarkerElement", js_name = "refY")]
33    #[doc = "Getter for the `refY` field of this object."]
34    #[doc = ""]
35    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement/refY)"]
36    #[doc = ""]
37    #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgMarkerElement`*"]
38    pub fn ref_y(this: &SvgMarkerElement) -> SvgAnimatedLength;
39    #[cfg(feature = "SvgAnimatedEnumeration")]
40    #[wasm_bindgen(method, getter, js_class = "SVGMarkerElement", js_name = "markerUnits")]
41    #[doc = "Getter for the `markerUnits` field of this object."]
42    #[doc = ""]
43    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement/markerUnits)"]
44    #[doc = ""]
45    #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgMarkerElement`*"]
46    pub fn marker_units(this: &SvgMarkerElement) -> SvgAnimatedEnumeration;
47    #[cfg(feature = "SvgAnimatedLength")]
48    #[wasm_bindgen(method, getter, js_class = "SVGMarkerElement", js_name = "markerWidth")]
49    #[doc = "Getter for the `markerWidth` field of this object."]
50    #[doc = ""]
51    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement/markerWidth)"]
52    #[doc = ""]
53    #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgMarkerElement`*"]
54    pub fn marker_width(this: &SvgMarkerElement) -> SvgAnimatedLength;
55    #[cfg(feature = "SvgAnimatedLength")]
56    #[wasm_bindgen(
57        method,
58        getter,
59        js_class = "SVGMarkerElement",
60        js_name = "markerHeight"
61    )]
62    #[doc = "Getter for the `markerHeight` field of this object."]
63    #[doc = ""]
64    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement/markerHeight)"]
65    #[doc = ""]
66    #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgMarkerElement`*"]
67    pub fn marker_height(this: &SvgMarkerElement) -> SvgAnimatedLength;
68    #[cfg(feature = "SvgAnimatedEnumeration")]
69    #[wasm_bindgen(method, getter, js_class = "SVGMarkerElement", js_name = "orientType")]
70    #[doc = "Getter for the `orientType` field of this object."]
71    #[doc = ""]
72    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement/orientType)"]
73    #[doc = ""]
74    #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgMarkerElement`*"]
75    pub fn orient_type(this: &SvgMarkerElement) -> SvgAnimatedEnumeration;
76    #[cfg(feature = "SvgAnimatedAngle")]
77    #[wasm_bindgen(method, getter, js_class = "SVGMarkerElement", js_name = "orientAngle")]
78    #[doc = "Getter for the `orientAngle` field of this object."]
79    #[doc = ""]
80    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement/orientAngle)"]
81    #[doc = ""]
82    #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedAngle`, `SvgMarkerElement`*"]
83    pub fn orient_angle(this: &SvgMarkerElement) -> SvgAnimatedAngle;
84    #[cfg(feature = "SvgAnimatedRect")]
85    #[wasm_bindgen(method, getter, js_class = "SVGMarkerElement", js_name = "viewBox")]
86    #[doc = "Getter for the `viewBox` field of this object."]
87    #[doc = ""]
88    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement/viewBox)"]
89    #[doc = ""]
90    #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedRect`, `SvgMarkerElement`*"]
91    pub fn view_box(this: &SvgMarkerElement) -> SvgAnimatedRect;
92    #[cfg(feature = "SvgAnimatedPreserveAspectRatio")]
93    #[wasm_bindgen(
94        method,
95        getter,
96        js_class = "SVGMarkerElement",
97        js_name = "preserveAspectRatio"
98    )]
99    #[doc = "Getter for the `preserveAspectRatio` field of this object."]
100    #[doc = ""]
101    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement/preserveAspectRatio)"]
102    #[doc = ""]
103    #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedPreserveAspectRatio`, `SvgMarkerElement`*"]
104    pub fn preserve_aspect_ratio(this: &SvgMarkerElement) -> SvgAnimatedPreserveAspectRatio;
105    #[cfg(feature = "SvgAngle")]
106    #[wasm_bindgen(
107        catch,
108        method,
109        js_class = "SVGMarkerElement",
110        js_name = "setOrientToAngle"
111    )]
112    #[doc = "The `setOrientToAngle()` method."]
113    #[doc = ""]
114    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement/setOrientToAngle)"]
115    #[doc = ""]
116    #[doc = "*This API requires the following crate features to be activated: `SvgAngle`, `SvgMarkerElement`*"]
117    pub fn set_orient_to_angle(this: &SvgMarkerElement, angle: &SvgAngle) -> Result<(), JsValue>;
118    #[wasm_bindgen(method, js_class = "SVGMarkerElement", js_name = "setOrientToAuto")]
119    #[doc = "The `setOrientToAuto()` method."]
120    #[doc = ""]
121    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement/setOrientToAuto)"]
122    #[doc = ""]
123    #[doc = "*This API requires the following crate features to be activated: `SvgMarkerElement`*"]
124    pub fn set_orient_to_auto(this: &SvgMarkerElement);
125}
126impl SvgMarkerElement {
127    #[doc = "The `SVGMarkerElement.SVG_MARKERUNITS_UNKNOWN` const."]
128    #[doc = ""]
129    #[doc = "*This API requires the following crate features to be activated: `SvgMarkerElement`*"]
130    pub const SVG_MARKERUNITS_UNKNOWN: u16 = 0i64 as u16;
131    #[doc = "The `SVGMarkerElement.SVG_MARKERUNITS_USERSPACEONUSE` const."]
132    #[doc = ""]
133    #[doc = "*This API requires the following crate features to be activated: `SvgMarkerElement`*"]
134    pub const SVG_MARKERUNITS_USERSPACEONUSE: u16 = 1u64 as u16;
135    #[doc = "The `SVGMarkerElement.SVG_MARKERUNITS_STROKEWIDTH` const."]
136    #[doc = ""]
137    #[doc = "*This API requires the following crate features to be activated: `SvgMarkerElement`*"]
138    pub const SVG_MARKERUNITS_STROKEWIDTH: u16 = 2u64 as u16;
139    #[doc = "The `SVGMarkerElement.SVG_MARKER_ORIENT_UNKNOWN` const."]
140    #[doc = ""]
141    #[doc = "*This API requires the following crate features to be activated: `SvgMarkerElement`*"]
142    pub const SVG_MARKER_ORIENT_UNKNOWN: u16 = 0i64 as u16;
143    #[doc = "The `SVGMarkerElement.SVG_MARKER_ORIENT_AUTO` const."]
144    #[doc = ""]
145    #[doc = "*This API requires the following crate features to be activated: `SvgMarkerElement`*"]
146    pub const SVG_MARKER_ORIENT_AUTO: u16 = 1u64 as u16;
147    #[doc = "The `SVGMarkerElement.SVG_MARKER_ORIENT_ANGLE` const."]
148    #[doc = ""]
149    #[doc = "*This API requires the following crate features to be activated: `SvgMarkerElement`*"]
150    pub const SVG_MARKER_ORIENT_ANGLE: u16 = 2u64 as u16;
151}