rveciana / svg-path-properties

Pure Javascript alternative to path.getPointAtLength(t) and getTotalLength() functions. Works with Canvas & Node

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error: Wrong function at this part

punkt2 opened this issue · comments

commented

I get an exception with the following path data M270 830 Q270 830 270 830

import { svgPathProperties as SvgPathProps } from 'svg-path-properties';

const path = new SvgPathProps('M270 830 Q270 830 270 830');
path.getPointAtLength(path.getTotalLength());
vue-router.esm.js?8c4f:2117 Error: Wrong function at this part.
    at SVGPathProperties.eval [as getPointAtLength] (svg-path-properties.esm.js?fd89:774)
    at _svgPathProperties.eval [as getPointAtLength] (svg-path-properties.esm.js?fd89:997)
    at eval (svg.js?5bf2:16)
    at Module../src/api/svg.js (editor.js:705)
    at __webpack_require__ (app.js:790)
    at fn (app.js:151)
    at eval (mutations.js:12)
    at Module../src/store/svg/mutations.js (editor.js:753)
    at __webpack_require__ (app.js:790)
    at fn (app.js:151)