SVGPolylineElement

Baseline 已广泛支持

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

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

EventTarget Node Element SVGElement SVGGraphicsElement SVGGeometryElement SVGPolylineElement

实例属性

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

SVGPolylineElement.animatedPoints 只读

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

SVGPolylineElement.points

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

实例方法

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

规范

规范
Scalable Vector Graphics (SVG) 2
# InterfaceSVGPolylineElement

浏览器兼容性

另见