Viewer - Interaction
    Preparing search index...

    Interface IDragEvent

    Definition of the drag event. These events are sent for drag specific events (EVENTTYPE_INTERACTION).

    interface IDragEvent {
        manager: IInteractionManager;
        matrix: mat4;
        node: ITreeNode;
        viewportId: string;
        dragAnchor?: IDragAnchor;
        dragConstraint?: IRestriction;
        event?: PointerEvent;
        groupedNodes?: ITreeNode[];
        intersectionPoint?: vec3;
        ray?: IRay;
        restriction?: IRestriction;
    }

    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.

    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.