A node that has been hit by a pointer event

interface HitTargetNode {
    data: Node;
    distance: number;
    distanceVector: Point;
    insideNode: boolean;
    pointerCoordinates: Point;
    targetCoordinates: Point;
}

Properties

data: Node

The node that was hit

distance: number

The distance between the node and the pointer event

distanceVector: Point

The distance vector between the node and the pointer event

insideNode: boolean

Whether the pointer event is inside the node

pointerCoordinates: Point

The coordinates of the pointer event

targetCoordinates: Point

The coordinates of the node that was hit