You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you set the center attribute to true, code is throwing an error at this line on completion of a polyline:
var pathWidth = this._path.getBBox().width;
I guess you can't get the width of a path element (it only has coordinates)....so I changed the above line to this and it works now:
//Fix:
var pathWidth = this._path.getBoundingClientRect().width;
The text was updated successfully, but these errors were encountered:
When you set the center attribute to true, code is throwing an error at this line on completion of a polyline:
var pathWidth = this._path.getBBox().width;
I guess you can't get the width of a path element (it only has coordinates)....so I changed the above line to this and it works now:
//Fix:
var pathWidth = this._path.getBoundingClientRect().width;
The text was updated successfully, but these errors were encountered: