web_sys/features/
gen_SvgPathElement.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 #[wasm_bindgen(
8 extends = "SvgGeometryElement",
9 extends = "SvgGraphicsElement",
10 extends = "SvgElement",
11 extends = "Element",
12 extends = "Node",
13 extends = "EventTarget",
14 extends = "::js_sys::Object",
15 js_name = "SVGPathElement",
16 typescript_type = "SVGPathElement"
17 )]
18 #[derive(Debug, Clone, PartialEq, Eq)]
19 #[doc = "The `SvgPathElement` class."]
20 #[doc = ""]
21 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement)"]
22 #[doc = ""]
23 #[doc = "*This API requires the following crate features to be activated: `SvgPathElement`*"]
24 pub type SvgPathElement;
25 #[cfg(feature = "SvgPathSegList")]
26 #[wasm_bindgen(method, getter, js_class = "SVGPathElement", js_name = "pathSegList")]
27 #[doc = "Getter for the `pathSegList` field of this object."]
28 #[doc = ""]
29 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement/pathSegList)"]
30 #[doc = ""]
31 #[doc = "*This API requires the following crate features to be activated: `SvgPathElement`, `SvgPathSegList`*"]
32 pub fn path_seg_list(this: &SvgPathElement) -> SvgPathSegList;
33 #[cfg(feature = "SvgPathSegList")]
34 #[wasm_bindgen(
35 method,
36 getter,
37 js_class = "SVGPathElement",
38 js_name = "animatedPathSegList"
39 )]
40 #[doc = "Getter for the `animatedPathSegList` field of this object."]
41 #[doc = ""]
42 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement/animatedPathSegList)"]
43 #[doc = ""]
44 #[doc = "*This API requires the following crate features to be activated: `SvgPathElement`, `SvgPathSegList`*"]
45 pub fn animated_path_seg_list(this: &SvgPathElement) -> SvgPathSegList;
46 #[wasm_bindgen(method, js_class = "SVGPathElement", js_name = "getPathSegAtLength")]
47 #[doc = "The `getPathSegAtLength()` method."]
48 #[doc = ""]
49 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement/getPathSegAtLength)"]
50 #[doc = ""]
51 #[doc = "*This API requires the following crate features to be activated: `SvgPathElement`*"]
52 pub fn get_path_seg_at_length(this: &SvgPathElement, distance: f32) -> u32;
53}