2
0
Эх сурвалжийг харах

fix formatting on if statements

Greg Zanchelli 4 жил өмнө
parent
commit
f39aa7f8b7

+ 3 - 3
examples/js/loaders/SVGLoader.js

@@ -388,7 +388,7 @@ THREE.SVGLoader.prototype = Object.assign( Object.create( THREE.Loader.prototype
 						for ( var j = 0, jl = numbers.length; j < jl; j += 7 ) {
 							
 							// skip command if start point == end point
-							if( numbers[ j + 5 ] == point.x && numbers[ j + 6 ] == point.y ) continue;
+							if ( numbers[ j + 5 ] == point.x && numbers[ j + 6 ] == point.y ) continue;
 
 							var start = point.clone();
 							point.x = numbers[ j + 5 ];
@@ -580,7 +580,7 @@ THREE.SVGLoader.prototype = Object.assign( Object.create( THREE.Loader.prototype
 						for ( var j = 0, jl = numbers.length; j < jl; j += 7 ) {
 
 							// skip command if no displacement
-							if( numbers[ j + 5 ] == 0 && numbers[ j + 6 ] == 0 ) continue;
+							if ( numbers[ j + 5 ] == 0 && numbers[ j + 6 ] == 0 ) continue;
 
 							var start = point.clone();
 							point.x += numbers[ j + 5 ];
@@ -666,7 +666,7 @@ THREE.SVGLoader.prototype = Object.assign( Object.create( THREE.Loader.prototype
 
 		function parseArcCommand( path, rx, ry, x_axis_rotation, large_arc_flag, sweep_flag, start, end ) {
 
-			if( rx == 0 || ry == 0 ) {
+			if ( rx == 0 || ry == 0 ) {
 				// draw a line if either of the radii == 0
 				path.lineTo( end.x, end.y );
 				return;

+ 3 - 3
examples/jsm/loaders/SVGLoader.js

@@ -400,7 +400,7 @@ SVGLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 						for ( var j = 0, jl = numbers.length; j < jl; j += 7 ) {
 							
 							// skip command if start point == end point
-							if( numbers[ j + 5 ] == point.x && numbers[ j + 6 ] == point.y ) continue;
+							if ( numbers[ j + 5 ] == point.x && numbers[ j + 6 ] == point.y ) continue;
 
 							var start = point.clone();
 							point.x = numbers[ j + 5 ];
@@ -592,7 +592,7 @@ SVGLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 						for ( var j = 0, jl = numbers.length; j < jl; j += 7 ) {
 
 							// skip command if no displacement
-							if( numbers[ j + 5 ] == 0 && numbers[ j + 6 ] == 0 ) continue;
+							if ( numbers[ j + 5 ] == 0 && numbers[ j + 6 ] == 0 ) continue;
 
 							var start = point.clone();
 							point.x += numbers[ j + 5 ];
@@ -678,7 +678,7 @@ SVGLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 
 		function parseArcCommand( path, rx, ry, x_axis_rotation, large_arc_flag, sweep_flag, start, end ) {
 
-			if( rx == 0 || ry == 0 ) {
+			if ( rx == 0 || ry == 0 ) {
 				// draw a line if either of the radii == 0
 				path.lineTo( end.x, end.y );
 				return;