web_sys/features/
gen_SvgGeometryElement.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 # [wasm_bindgen (extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGGeometryElement , typescript_type = "SVGGeometryElement")]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `SvgGeometryElement` class."]
10 #[doc = ""]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGeometryElement)"]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `SvgGeometryElement`*"]
14 pub type SvgGeometryElement;
15 #[cfg(feature = "SvgAnimatedNumber")]
16 # [wasm_bindgen (structural , method , getter , js_class = "SVGGeometryElement" , js_name = pathLength)]
17 #[doc = "Getter for the `pathLength` field of this object."]
18 #[doc = ""]
19 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGeometryElement/pathLength)"]
20 #[doc = ""]
21 #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgGeometryElement`*"]
22 pub fn path_length(this: &SvgGeometryElement) -> SvgAnimatedNumber;
23 #[cfg(feature = "SvgPoint")]
24 # [wasm_bindgen (catch , method , structural , js_class = "SVGGeometryElement" , js_name = getPointAtLength)]
25 #[doc = "The `getPointAtLength()` method."]
26 #[doc = ""]
27 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGeometryElement/getPointAtLength)"]
28 #[doc = ""]
29 #[doc = "*This API requires the following crate features to be activated: `SvgGeometryElement`, `SvgPoint`*"]
30 pub fn get_point_at_length(
31 this: &SvgGeometryElement,
32 distance: f32,
33 ) -> Result<SvgPoint, JsValue>;
34 # [wasm_bindgen (method , structural , js_class = "SVGGeometryElement" , js_name = getTotalLength)]
35 #[doc = "The `getTotalLength()` method."]
36 #[doc = ""]
37 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGeometryElement/getTotalLength)"]
38 #[doc = ""]
39 #[doc = "*This API requires the following crate features to be activated: `SvgGeometryElement`*"]
40 pub fn get_total_length(this: &SvgGeometryElement) -> f32;
41}