Skip to main content
Version: 4.x

Type Alias: OverlayEventHandler()<ContentType>

OverlayEventHandler<ContentType>: (event) => void

Type for handlers of overlay events

Type Parameters

ContentType

Parameters

event

event.htmlTextOverlay: HTMLElement

event.mousePosition

event.mousePosition.offsetX: number

event.mousePosition.offsetY: number

event.targetOverlay: Overlay3D<ContentType>

Returns

void

Defined in

packages/tools/src/Overlay3D/Overlay3DTool.ts:32