mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-14 08:43:12 +00:00
fix polyline toSVG (#3951)
* fix polyline toSVG init diffX and diffY = 0 * removing trailing space
This commit is contained in:
parent
e1f34f7a6d
commit
0bf4b2a7f7
1 changed files with 3 additions and 1 deletions
|
|
@ -126,7 +126,9 @@
|
|||
* @return {String} svg representation of an instance
|
||||
*/
|
||||
toSVG: function(reviver) {
|
||||
var points = [], diffX, diffY,
|
||||
var points = [],
|
||||
diffX = 0,
|
||||
diffY = 0,
|
||||
markup = this._createBaseSVGMarkup();
|
||||
|
||||
if (!(this.group && this.group.type === 'path-group')) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue