Skip to main content
Version: 4.x

Type Alias: HtmlOverlayPositionUpdatedDelegate()

HtmlOverlayPositionUpdatedDelegate: (element, position2D, position3D, distanceToCamera, userData) => void

Callback that is triggered whenever the 2D position of an overlay is updated in HtmlOverlayTool.

Parameters

element: HTMLElement

position2D: THREE.Vector2

position3D: THREE.Vector3

distanceToCamera: number

userData: any

Returns

void

Defined in

packages/tools/src/HtmlOverlay/HtmlOverlayTool.ts:20