visualization-tools

Home > @visualization-tools/core > IDraggableTrait

IDraggableTrait interface

An entity that may handle hover events. Unlike other interaction traits, if a redraw is required this must be done through the plot wide interaction handler.

Signature:

export interface IDraggableTrait extends IHitTestableTrait 

Extends: IHitTestableTrait

Methods

Method Description
onDragEnd(pointerEvent, segmentIds)? (Optional)
onDragStart(pointerEvent, segmentIds)? (Optional) Return true to indicate that the entity may be dragged.