This commit is contained in:
thednp 2018-10-18 12:09:24 +03:00
parent c48200ae47
commit 207597efe7
3 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -235,7 +235,7 @@
len += dist(coord(points[i]), coord(points[i+1]));
}
}
len += el[tagName] === 'polygon' ? dist(coord(points[0]), coord(points[points[length] - 1])) : 0;
len += el.tagName === 'polygon' ? dist(coord(points[0]), coord(points[points[length] - 1])) : 0;
}
return len;
},