Sfoglia il codice sorgente

Update HTMLMesh.js (#23381)

Render number input values in HTMLMesh
Joshua Koo 3 anni fa
parent
commit
b3119d196a
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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 } );