mirror of
https://github.com/konvajs/konva.git
synced 2026-03-03 16:58:33 +08:00
Fixed jshint errors
This commit is contained in:
@@ -295,21 +295,21 @@
|
|||||||
|
|
||||||
// Note: lineTo handlers need to be above this point
|
// Note: lineTo handlers need to be above this point
|
||||||
case 'm':
|
case 'm':
|
||||||
var dx = p.shift();
|
var dx = p.shift();
|
||||||
var dy = p.shift();
|
var dy = p.shift();
|
||||||
cpx += dx;
|
cpx += dx;
|
||||||
cpy += dy;
|
cpy += dy;
|
||||||
cmd = 'M';
|
cmd = 'M';
|
||||||
// After closing the path move the current position
|
// After closing the path move the current position
|
||||||
// to the the first point of the path (if any).
|
// to the the first point of the path (if any).
|
||||||
if(ca.length>2 && ca[ca.length-1].command==='z'){
|
if(ca.length>2 && ca[ca.length-1].command==='z'){
|
||||||
for(var idx=ca.length-2;idx>=0;idx--){
|
for(var idx=ca.length-2;idx>=0;idx--){
|
||||||
if(ca[idx].command==='M'){
|
if(ca[idx].command==='M'){
|
||||||
cpx=ca[idx].points[0]+dx;
|
cpx=ca[idx].points[0]+dx;
|
||||||
cpy=ca[idx].points[1]+dy;
|
cpy=ca[idx].points[1]+dy;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
points.push(cpx, cpy);
|
points.push(cpx, cpy);
|
||||||
c = 'l';
|
c = 'l';
|
||||||
|
|||||||
Reference in New Issue
Block a user