|
@@ -758,8 +758,8 @@ class SVGLoader extends Loader {
|
|
|
|
|
|
const x = parseFloatWithUnits( node.getAttribute( 'x' ) || 0 );
|
|
|
const y = parseFloatWithUnits( node.getAttribute( 'y' ) || 0 );
|
|
|
- const rx = parseFloatWithUnits( node.getAttribute( 'rx' ) || 0 );
|
|
|
- const ry = parseFloatWithUnits( node.getAttribute( 'ry' ) || 0 );
|
|
|
+ const rx = parseFloatWithUnits( node.getAttribute( 'rx' ) || node.getAttribute( 'ry' ) || 0 );
|
|
|
+ const ry = parseFloatWithUnits( node.getAttribute( 'ry' ) || node.getAttribute( 'rx' ) || 0 );
|
|
|
const w = parseFloatWithUnits( node.getAttribute( 'width' ) );
|
|
|
const h = parseFloatWithUnits( node.getAttribute( 'height' ) );
|
|
|
|