소스 검색

Update HTMLMesh.js (#23381)

Render number input values in HTMLMesh
Joshua Koo 3 년 전
부모
커밋
b3119d196a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      examples/jsm/interactive/HTMLMesh.js

+ 1 - 1
examples/jsm/interactive/HTMLMesh.js

@@ -229,7 +229,7 @@ function html2canvas( element ) {
 			drawBorder( style, 'borderBottom', x, y + height, width, 0 );
 			drawBorder( style, 'borderRight', x + width, y, 0, height );
 
-			if ( element.type === 'color' || element.type === 'text' ) {
+			if ( element.type === 'color' || element.type === 'text' || element.type === 'number' ) {
 
 				clipper.add( { x: x, y: y, width: width, height: height } );