Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IDragEvent

Definition of the drag event. These events are sent for drag specific events ({@link EVENTTYPE_INTERACTION}).

Hierarchy

  • IViewportEvent
    • IDragEvent

Index

Properties

The manager that emitted this event.

matrix: mat4

The transformation matrix that is applied to the dragged node.

node: ITreeNode

The node being dragged.

viewportId: string
dragAnchor?: IDragAnchor

The optional drag anchor that was used.

dragConstraint?: IRestriction

The optional drag constraint that was applied.

deprecated

Use restriction instead.

event?: PointerEvent

The original event that triggered the dragging. Only provided if it was not a manual dragging.

groupedNodes?: ITreeNode[]

All nodes in the scene tree that share the same groupId and are therefore interacted with at the same time.

intersectionPoint?: vec3

The intersection point of the ray with the node. Only provided on DRAG_START.

ray?: IRay

The ray of the dragging process. Only provided on DRAG_START and DRAG_MOVE and only if it was not a manual dragging.

restriction?: IRestriction

The optional drag restriction that was used.