how to fullly update fabric.js. Path object

let path='M 10 10  l 10,10';
const line=new fabric.Path(path)
path='M 10 10 l 100,100';
line.path = fabric.util.makePathSimpler(path);
fabric.Polyline.prototype._setPositionDimensions.call(line, {});
line.setCoords();

Leave a Comment

Your email address will not be published.