Fix SVG Plugin function getPolyLength for <polyline> elements.

This commit is contained in:
thednp 2018-10-18 11:47:40 +03:00
parent 1434ac02fb
commit c48200ae47
4 changed files with 4 additions and 4 deletions

View file

@ -2,7 +2,7 @@
// invalidate for unsupported browsers
var isIE = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})").exec(navigator.userAgent) !== null ? parseFloat( RegExp.$1 ) : false;
if (isIE&&isIE<9) {return;} // return if SVG API is not supported
if (isIE&&isIE<9) { (function(){return; }()) } // return if SVG API is not supported
// basic morph
var morphTween = KUTE.to('#rectangle', { path: '#star' }, {

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 += dist(coord(points[0]), coord(points[points.length-1]));
len += el[tagName] === 'polygon' ? dist(coord(points[0]), coord(points[points[length] - 1])) : 0;
}
return len;
},