maxcountryman_web_sys/features/
gen_SvgTextPathElement.rs1#![allow(unused_imports)]
2use super::*;
3use wasm_bindgen::prelude::*;
4#[wasm_bindgen]
5extern "C" {
6 # [wasm_bindgen (extends = SvgTextContentElement , extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGTextPathElement , typescript_type = "SVGTextPathElement")]
7 #[derive(Debug, Clone, PartialEq, Eq)]
8 #[doc = "The `SvgTextPathElement` class."]
9 #[doc = ""]
10 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextPathElement)"]
11 #[doc = ""]
12 #[doc = "*This API requires the following crate features to be activated: `SvgTextPathElement`*"]
13 pub type SvgTextPathElement;
14 #[cfg(feature = "SvgAnimatedLength")]
15 # [wasm_bindgen (structural , method , getter , js_class = "SVGTextPathElement" , js_name = startOffset)]
16 #[doc = "Getter for the `startOffset` field of this object."]
17 #[doc = ""]
18 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextPathElement/startOffset)"]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgTextPathElement`*"]
21 pub fn start_offset(this: &SvgTextPathElement) -> SvgAnimatedLength;
22 #[cfg(feature = "SvgAnimatedEnumeration")]
23 # [wasm_bindgen (structural , method , getter , js_class = "SVGTextPathElement" , js_name = method)]
24 #[doc = "Getter for the `method` field of this object."]
25 #[doc = ""]
26 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextPathElement/method)"]
27 #[doc = ""]
28 #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgTextPathElement`*"]
29 pub fn method(this: &SvgTextPathElement) -> SvgAnimatedEnumeration;
30 #[cfg(feature = "SvgAnimatedEnumeration")]
31 # [wasm_bindgen (structural , method , getter , js_class = "SVGTextPathElement" , js_name = spacing)]
32 #[doc = "Getter for the `spacing` field of this object."]
33 #[doc = ""]
34 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextPathElement/spacing)"]
35 #[doc = ""]
36 #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgTextPathElement`*"]
37 pub fn spacing(this: &SvgTextPathElement) -> SvgAnimatedEnumeration;
38 #[cfg(feature = "SvgAnimatedString")]
39 # [wasm_bindgen (structural , method , getter , js_class = "SVGTextPathElement" , js_name = href)]
40 #[doc = "Getter for the `href` field of this object."]
41 #[doc = ""]
42 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextPathElement/href)"]
43 #[doc = ""]
44 #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgTextPathElement`*"]
45 pub fn href(this: &SvgTextPathElement) -> SvgAnimatedString;
46}
47impl SvgTextPathElement {
48 #[doc = "The `SVGTextPathElement.TEXTPATH_METHODTYPE_UNKNOWN` const."]
49 #[doc = ""]
50 #[doc = "*This API requires the following crate features to be activated: `SvgTextPathElement`*"]
51 pub const TEXTPATH_METHODTYPE_UNKNOWN: u16 = 0i64 as u16;
52 #[doc = "The `SVGTextPathElement.TEXTPATH_METHODTYPE_ALIGN` const."]
53 #[doc = ""]
54 #[doc = "*This API requires the following crate features to be activated: `SvgTextPathElement`*"]
55 pub const TEXTPATH_METHODTYPE_ALIGN: u16 = 1u64 as u16;
56 #[doc = "The `SVGTextPathElement.TEXTPATH_METHODTYPE_STRETCH` const."]
57 #[doc = ""]
58 #[doc = "*This API requires the following crate features to be activated: `SvgTextPathElement`*"]
59 pub const TEXTPATH_METHODTYPE_STRETCH: u16 = 2u64 as u16;
60 #[doc = "The `SVGTextPathElement.TEXTPATH_SPACINGTYPE_UNKNOWN` const."]
61 #[doc = ""]
62 #[doc = "*This API requires the following crate features to be activated: `SvgTextPathElement`*"]
63 pub const TEXTPATH_SPACINGTYPE_UNKNOWN: u16 = 0i64 as u16;
64 #[doc = "The `SVGTextPathElement.TEXTPATH_SPACINGTYPE_AUTO` const."]
65 #[doc = ""]
66 #[doc = "*This API requires the following crate features to be activated: `SvgTextPathElement`*"]
67 pub const TEXTPATH_SPACINGTYPE_AUTO: u16 = 1u64 as u16;
68 #[doc = "The `SVGTextPathElement.TEXTPATH_SPACINGTYPE_EXACT` const."]
69 #[doc = ""]
70 #[doc = "*This API requires the following crate features to be activated: `SvgTextPathElement`*"]
71 pub const TEXTPATH_SPACINGTYPE_EXACT: u16 = 2u64 as u16;
72}