Returns the current options of the interaction.
The current options of the interaction.
Handle mouse hover events
The mouse event.
Remove a callback for a given event of type.
The name of the event.
Enables or disables global text selection during a drag or pan operation.
Whether to enable or disable global text selection.
OptionaleventFunction: (this: HTMLElement, ev: MouseEvent) => void
The event function to be added/removed when text selection is disabled/enabled.
Add or update a callback for a given event of type.
The name of the event.
The callback to be called when the event is triggered.
Interaction handler for hovering nodes and relationships.
Remarks
Clusters are not hoverable elements:
elementis never a cluster and no hover state is drawn for hulls. ReadhitElements.clustersin HoverInteractionCallbacks.onHover, or call NVL.getHits with['cluster'], to react to the pointer being inside a cluster hull.For examples, head to the Hover Interaction documentation page.