This special kind of ProjectedObject3D uses an HTMLElement to convert the corresponding X and Y scale and position relative to the 3D world space.

Internally used by the DOMMesh and Plane, but can also be used as any Mesh parent to map it with an HTMLElement size and position values.

Hierarchy (view full)

Constructors

Properties

children: Object3D[]

Children Object3D in the scene graph, used to compute their own world matrix

object3DIndex: number

Index (order of creation) of this Object3D. Used in the parent / children relation.

matricesNeedUpdate: boolean

Whether at least one of this Object3D matrix needs an update.

camera: Camera

Camera object used to compute model view and model view projection matrices

GPUCurtainsRenderer used to create this DOMObject3D

Defines the DOMObject3D bounding boxes in both document and world spaces

domElement: DOMElement

DOMElement used to track the given HTMLElement size change

watchScroll: boolean

Whether to automatically update the DOMObject3D document and world positions on scroll

#DOMObjectWorldPosition: Vec3 = ...

Private vector used to keep track of the actual .world | world position accounting the .document | additional document translation converted into world space

#DOMObjectWorldScale: Vec3 = ...

Private vector used to keep track of the actual DOMObject3D world scale accounting the .world | DOMObject3D world size

#DOMObjectDepthScaleRatio: number = 1

Private number representing the scale ratio of the DOMObject3D along Z axis to apply. Since it can be difficult to guess the most accurate scale along the Z axis of an object mapped to 2D coordinates, this helps with adjusting the scale along the Z axis.

boundingBox: Box3 = ...

Helper bounding box used to map the 3D object onto the 2D DOM element.

_onAfterDOMElementResizeCallback: (() => void) = ...

function assigned to the onAfterDOMElementResize callback

Type declaration

Accessors

  • set DOMObjectDepthScaleRatio(value): void
  • Set DOMObjectDepthScaleRatio. Since it can be difficult to guess the most accurate scale along the Z axis of an object mapped to 2D coordinates, this helps with adjusting the scale along the Z axis.

    Parameters

    • value: number

      depth scale ratio value to use

    Returns void

Methods