Skip to main content

web_sys/features/
gen_SvgPolygonElement.rs

1#![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 = "SVGPolygonElement",
16        typescript_type = "SVGPolygonElement"
17    )]
18    #[derive(Debug, Clone, PartialEq, Eq)]
19    #[doc = "The `SvgPolygonElement` class."]
20    #[doc = ""]
21    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPolygonElement)"]
22    #[doc = ""]
23    #[doc = "*This API requires the following crate features to be activated: `SvgPolygonElement`*"]
24    pub type SvgPolygonElement;
25    #[cfg(feature = "SvgPointList")]
26    #[wasm_bindgen(method, getter, js_class = "SVGPolygonElement", js_name = "points")]
27    #[doc = "Getter for the `points` field of this object."]
28    #[doc = ""]
29    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPolygonElement/points)"]
30    #[doc = ""]
31    #[doc = "*This API requires the following crate features to be activated: `SvgPointList`, `SvgPolygonElement`*"]
32    pub fn points(this: &SvgPolygonElement) -> SvgPointList;
33    #[cfg(feature = "SvgPointList")]
34    #[wasm_bindgen(
35        method,
36        getter,
37        js_class = "SVGPolygonElement",
38        js_name = "animatedPoints"
39    )]
40    #[doc = "Getter for the `animatedPoints` field of this object."]
41    #[doc = ""]
42    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPolygonElement/animatedPoints)"]
43    #[doc = ""]
44    #[doc = "*This API requires the following crate features to be activated: `SvgPointList`, `SvgPolygonElement`*"]
45    pub fn animated_points(this: &SvgPolygonElement) -> SvgPointList;
46}