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