Import
HTMLMesh is an addon, and must be imported explicitly, see Installation#Addons.
import { HTMLMesh } from 'three/addons/interactive/HTMLMesh.js';
Constructor
new HTMLMesh( dom : HTMLElement )
Constructs a new HTML mesh.
| dom |
The DOM element to display as a plane mesh. |
Methods
.dispose()
Frees the GPU-related resources allocated by this instance and removes all event listeners. Call this method whenever this instance is no longer used in your app.