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