提交 898c14af 编写于 作者: Y yomboprime

Fix SVGLoader strokes not rendering in Firefox

上级 5aa0eafc
...@@ -814,13 +814,13 @@ SVGLoader.prototype = Object.assign( Object.create( Loader.prototype ), { ...@@ -814,13 +814,13 @@ SVGLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
function clamp( v ) { function clamp( v ) {
return Math.max( 0, Math.min( 1, v ) ); return Math.max( 0, Math.min( 1, parseFloat( v ) ) );
} }
function positive( v ) { function positive( v ) {
return Math.max( 0, v ); return Math.max( 0, parseFloat( v ) );
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册