We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cbc7af commit 2a02884Copy full SHA for 2a02884
examples/jsm/loaders/SVGLoader.js
@@ -1502,8 +1502,8 @@ class SVGLoader extends Loader {
1502
1503
if ( node.nodeName === 'use' && ( node.hasAttribute( 'x' ) || node.hasAttribute( 'y' ) ) ) {
1504
1505
- const tx = parseFloatWithUnits( node.getAttribute( 'x' ) );
1506
- const ty = parseFloatWithUnits( node.getAttribute( 'y' ) );
+ const tx = parseFloatWithUnits( node.getAttribute( 'x' ) || 0 );
+ const ty = parseFloatWithUnits( node.getAttribute( 'y' ) || 0 );
1507
1508
transform.translate( tx, ty );
1509
0 commit comments