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 # [wasm_bindgen (method , structural , js_class = "SVGGeometryElement" , js_name = isPointInFill)]
42 #[doc = "The `isPointInFill()` method."]
43 #[doc = ""]
44 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGeometryElement/isPointInFill)"]
45 #[doc = ""]
46 #[doc = "*This API requires the following crate features to be activated: `SvgGeometryElement`*"]
47 pub fn is_point_in_fill(this: &SvgGeometryElement) -> bool;
48 #[cfg(feature = "DomPointInit")]
49 # [wasm_bindgen (method , structural , js_class = "SVGGeometryElement" , js_name = isPointInFill)]
50 #[doc = "The `isPointInFill()` method."]
51 #[doc = ""]
52 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGeometryElement/isPointInFill)"]
53 #[doc = ""]
54 #[doc = "*This API requires the following crate features to be activated: `DomPointInit`, `SvgGeometryElement`*"]
55 pub fn is_point_in_fill_with_point(this: &SvgGeometryElement, point: &DomPointInit) -> bool;
56 # [wasm_bindgen (method , structural , js_class = "SVGGeometryElement" , js_name = isPointInStroke)]
57 #[doc = "The `isPointInStroke()` method."]
58 #[doc = ""]
59 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGeometryElement/isPointInStroke)"]
60 #[doc = ""]
61 #[doc = "*This API requires the following crate features to be activated: `SvgGeometryElement`*"]
62 pub fn is_point_in_stroke(this: &SvgGeometryElement) -> bool;
63 #[cfg(feature = "DomPointInit")]
64 # [wasm_bindgen (method , structural , js_class = "SVGGeometryElement" , js_name = isPointInStroke)]
65 #[doc = "The `isPointInStroke()` method."]
66 #[doc = ""]
67 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGeometryElement/isPointInStroke)"]
68 #[doc = ""]
69 #[doc = "*This API requires the following crate features to be activated: `DomPointInit`, `SvgGeometryElement`*"]
70 pub fn is_point_in_stroke_with_point(this: &SvgGeometryElement, point: &DomPointInit) -> bool;
71}