提交 638d04e5 编写于 作者: M Mr.doob

SVGLoader: Clean up.

上级 966261b2
......@@ -162,7 +162,7 @@ THREE.SVGLoader.prototype = {
} else {
path.lineTo( point.x, point.y );
}
if ( j === 0 && doSetFirstPoint === true) firstPoint.copy( point );
if ( j === 0 && doSetFirstPoint === true ) firstPoint.copy( point );
}
break;
......@@ -173,7 +173,7 @@ THREE.SVGLoader.prototype = {
control.x = point.x;
control.y = point.y;
path.lineTo( point.x, point.y );
if ( j === 0 && doSetFirstPoint === true) firstPoint.copy( point );
if ( j === 0 && doSetFirstPoint === true ) firstPoint.copy( point );
}
break;
......@@ -184,7 +184,7 @@ THREE.SVGLoader.prototype = {
control.x = point.x;
control.y = point.y;
path.lineTo( point.x, point.y );
if ( j === 0 && doSetFirstPoint === true) firstPoint.copy( point );
if ( j === 0 && doSetFirstPoint === true ) firstPoint.copy( point );
}
break;
......@@ -196,7 +196,7 @@ THREE.SVGLoader.prototype = {
control.x = point.x;
control.y = point.y;
path.lineTo( point.x, point.y );
if ( j === 0 && doSetFirstPoint === true) firstPoint.copy( point );
if ( j === 0 && doSetFirstPoint === true ) firstPoint.copy( point );
}
break;
......@@ -215,7 +215,7 @@ THREE.SVGLoader.prototype = {
control.y = numbers[ j + 3 ];
point.x = numbers[ j + 4 ];
point.y = numbers[ j + 5 ];
if ( j === 0 && doSetFirstPoint === true) firstPoint.copy( point );
if ( j === 0 && doSetFirstPoint === true ) firstPoint.copy( point );
}
break;
......@@ -234,7 +234,7 @@ THREE.SVGLoader.prototype = {
control.y = numbers[ j + 1 ];
point.x = numbers[ j + 2 ];
point.y = numbers[ j + 3 ];
if ( j === 0 && doSetFirstPoint === true) firstPoint.copy( point );
if ( j === 0 && doSetFirstPoint === true ) firstPoint.copy( point );
}
break;
......@@ -251,7 +251,7 @@ THREE.SVGLoader.prototype = {
control.y = numbers[ j + 1 ];
point.x = numbers[ j + 2 ];
point.y = numbers[ j + 3 ];
if ( j === 0 && doSetFirstPoint === true) firstPoint.copy( point );
if ( j === 0 && doSetFirstPoint === true ) firstPoint.copy( point );
}
break;
......@@ -270,7 +270,7 @@ THREE.SVGLoader.prototype = {
control.y = ry;
point.x = numbers[ j + 0 ];
point.y = numbers[ j + 1 ];
if ( j === 0 && doSetFirstPoint === true) firstPoint.copy( point );
if ( j === 0 && doSetFirstPoint === true ) firstPoint.copy( point );
}
break;
......@@ -285,7 +285,7 @@ THREE.SVGLoader.prototype = {
parseArcCommand(
path, numbers[ j ], numbers[ j + 1 ], numbers[ j + 2 ], numbers[ j + 3 ], numbers[ j + 4 ], start, point
);
if ( j === 0 && doSetFirstPoint === true) firstPoint.copy( point );
if ( j === 0 && doSetFirstPoint === true ) firstPoint.copy( point );
}
break;
......@@ -303,7 +303,7 @@ THREE.SVGLoader.prototype = {
} else {
path.lineTo( point.x, point.y );
}
if ( j === 0 && doSetFirstPoint === true) firstPoint.copy( point );
if ( j === 0 && doSetFirstPoint === true ) firstPoint.copy( point );
}
break;
......@@ -314,7 +314,7 @@ THREE.SVGLoader.prototype = {
control.x = point.x;
control.y = point.y;
path.lineTo( point.x, point.y );
if ( j === 0 && doSetFirstPoint === true) firstPoint.copy( point );
if ( j === 0 && doSetFirstPoint === true ) firstPoint.copy( point );
}
break;
......@@ -325,7 +325,7 @@ THREE.SVGLoader.prototype = {
control.x = point.x;
control.y = point.y;
path.lineTo( point.x, point.y );
if ( j === 0 && doSetFirstPoint === true) firstPoint.copy( point );
if ( j === 0 && doSetFirstPoint === true ) firstPoint.copy( point );
}
break;
......@@ -337,7 +337,7 @@ THREE.SVGLoader.prototype = {
control.x = point.x;
control.y = point.y;
path.lineTo( point.x, point.y );
if ( j === 0 && doSetFirstPoint === true) firstPoint.copy( point );
if ( j === 0 && doSetFirstPoint === true ) firstPoint.copy( point );
}
break;
......@@ -356,7 +356,7 @@ THREE.SVGLoader.prototype = {
control.y = point.y + numbers[ j + 3 ];
point.x += numbers[ j + 4 ];
point.y += numbers[ j + 5 ];
if ( j === 0 && doSetFirstPoint === true) firstPoint.copy( point );
if ( j === 0 && doSetFirstPoint === true ) firstPoint.copy( point );
}
break;
......@@ -375,7 +375,7 @@ THREE.SVGLoader.prototype = {
control.y = point.y + numbers[ j + 1 ];
point.x += numbers[ j + 2 ];
point.y += numbers[ j + 3 ];
if ( j === 0 && doSetFirstPoint === true) firstPoint.copy( point );
if ( j === 0 && doSetFirstPoint === true ) firstPoint.copy( point );
}
break;
......@@ -392,7 +392,7 @@ THREE.SVGLoader.prototype = {
control.y = point.y + numbers[ j + 1 ];
point.x += numbers[ j + 2 ];
point.y += numbers[ j + 3 ];
if ( j === 0 && doSetFirstPoint === true) firstPoint.copy( point );
if ( j === 0 && doSetFirstPoint === true ) firstPoint.copy( point );
}
break;
......@@ -411,7 +411,7 @@ THREE.SVGLoader.prototype = {
control.y = ry;
point.x = point.x + numbers[ j + 0 ];
point.y = point.y + numbers[ j + 1 ];
if ( j === 0 && doSetFirstPoint === true) firstPoint.copy( point );
if ( j === 0 && doSetFirstPoint === true ) firstPoint.copy( point );
}
break;
......@@ -426,7 +426,7 @@ THREE.SVGLoader.prototype = {
parseArcCommand(
path, numbers[ j ], numbers[ j + 1 ], numbers[ j + 2 ], numbers[ j + 3 ], numbers[ j + 4 ], start, point
);
if ( j === 0 && doSetFirstPoint === true) firstPoint.copy( point );
if ( j === 0 && doSetFirstPoint === true ) firstPoint.copy( point );
}
break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册