txtjs icon indicating copy to clipboard operation
txtjs copied to clipboard

Using deprecated method getPathSegAtLength

Open lannymcnie opened this issue 7 years ago • 1 comments

The recent Chrome update (62.0.3202) has run-time errors, specifically:

Uncaught TypeError: this.pathElement.getPathSegAtLength is not a function
    at t.getPathPoint (thirdparty.min.js:3)
    at i.characterLayout (thirdparty.min.js:3)
    at i.layout (thirdparty.min.js:3)
    at i.fontLoaded (thirdparty.min.js:3)
    at thirdparty.min.js:3

It looks like getPathSegAtLength is deprecated, along with some other methods:

In SVG 2 the getPathSegAtLength() and createSVGPathSeg* methods were removed and the pathLength property and the getTotalLength() and getPointAtLength() methods were moved to SVGGeometryElement.

Our team is looking at patching it locally, and will submit a PR if successful.

lannymcnie avatar Nov 14 '17 23:11 lannymcnie

a PR would be awesome ! Some people are still using this plugin :)

cliedelt avatar Apr 03 '19 12:04 cliedelt