|
@@ -400,7 +400,7 @@ SVGLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
|
|
for ( var j = 0, jl = numbers.length; j < jl; j += 7 ) {
|
|
for ( var j = 0, jl = numbers.length; j < jl; j += 7 ) {
|
|
|
|
|
|
// skip command if start point == end point
|
|
// 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();
|
|
var start = point.clone();
|
|
point.x = numbers[ j + 5 ];
|
|
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 ) {
|
|
for ( var j = 0, jl = numbers.length; j < jl; j += 7 ) {
|
|
|
|
|
|
// skip command if no displacement
|
|
// 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();
|
|
var start = point.clone();
|
|
point.x += numbers[ j + 5 ];
|
|
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 ) {
|
|
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
|
|
// draw a line if either of the radii == 0
|
|
path.lineTo( end.x, end.y );
|
|
path.lineTo( end.x, end.y );
|
|
return;
|
|
return;
|