javascript – SVGPathData chrome 48

在chrome 48中删除了:SVGPathElement.pathSegList

本页W3C编辑的草案2016年1月19日
显示了访问段列表的新方法
https://svgwg.org/specs/paths/#InterfaceSVGPathData

但是,如何使用它?
(在SVGPathElement中,方法“getPathData”不存在)

最佳答案 为什么不使用
SVGPathSeg polyfill?然后,您无需更改任何现有代码.

点赞