|
@@ -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 ) );
|
|
|
|
|
|
}
|
|
|
|