diff --git a/examples/jsm/loaders/SVGLoader.js b/examples/jsm/loaders/SVGLoader.js index 30cf5133db2ff2417d3af4bf9e7982aa65336693..e7803d5b891d20192705f9d23d8e02024a13be20 100644 --- a/examples/jsm/loaders/SVGLoader.js +++ b/examples/jsm/loaders/SVGLoader.js @@ -814,13 +814,13 @@ SVGLoader.prototype = Object.assign( Object.create( Loader.prototype ), { function clamp( v ) { - return Math.max( 0, Math.min( 1, v ) ); + return Math.max( 0, Math.min( 1, parseFloat( v ) ) ); } function positive( v ) { - return Math.max( 0, v ); + return Math.max( 0, parseFloat( v ) ); }