Fix SVG Plugin function getPolyLength
for <polyline>
elements.
This commit is contained in:
parent
1434ac02fb
commit
c48200ae47
|
@ -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' }, {
|
||||
|
|
2
demo/src/kute-svg.min.js
vendored
2
demo/src/kute-svg.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/kute-svg.min.js
vendored
2
dist/kute-svg.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -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;
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue