SVGPolygonElement

Baseline 已广泛支持

此特性已相当成熟,可在许多设备和浏览器版本上使用。自 ⁨2015 年 7 月⁩以来,各浏览器均已提供此特性。

SVGPolygonElement 接口提供了对 <polygon> 元素的属性的访问,以及操作这些属性的方法。

EventTarget Node Element SVGElement SVGGraphicsElement SVGGeometryElement SVGPolygonElement

实例属性

此接口还继承了其父接口 SVGGeometryElement 的属性。

SVGPolygonElement.animatedPoints 只读

一个 SVGPointList 对象,表示元素 points 属性的动画值。如果 points 属性未被动画化,它包含的值与 points 属性的值相同。

SVGPolygonElement.points

一个 SVGPointList 对象,表示元素 points 属性的基线(即静态)值。通过 SVGPointList 对象进行的修改会反映在 points 属性中,反之亦然。

实例方法

此接口不实现任何特定方法,但继承了其父接口 SVGGeometryElement 的方法。

规范

规范
Scalable Vector Graphics (SVG) 2
# InterfaceSVGPolygonElement

浏览器兼容性

另见