Capítulo 533 de 859
The only type of 3D object that is supported by CSS2DRenderer.
( 0, 0 ) is the lower left, ( 1, 1 ) is the top right.import { CSS2DObject } from 'three/addons/renderers/CSS2DRenderer.js';
Constructor
| Signature |
|---|
new CSS2DObject( element : HTMLElement ) |
Properties
| Property | Description |
|---|---|
.center : Vector2 | The 3D objects center point. ( 0, 0 ) is the lower left, ( 1, 1 ) is the top right. |
.element : HTMLElement (readonly) | The DOM element which defines the appearance of this 3D object. |
.isCSS2DObject : boolean (readonly) | This flag can be used for type testing. |