txtjs
txtjs copied to clipboard
Using deprecated method getPathSegAtLength
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.
a PR would be awesome ! Some people are still using this plugin :)