maxcountryman_web_sys/features/
gen_SvgGeometryElement.rs

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