InteractionData

Interface InteractionData

Contains the properties of an interaction.

interface InteractionData {
    modifier?: InteractionModifier;
    origin?: any;
    originalEvent?: Event;
    pointerInfo?: PointerInfo;
    targetID: number;
    targetName?: string;
    type?: InteractionType;
}

Properties

The interaction modifier that is applied to the interaction.

origin?: any

Optional property storing information about where the interaction originated from (e.g. the DOM element that triggered the interaction).

originalEvent?: Event

The original event that triggered the interaction.

pointerInfo?: PointerInfo

Pointer information related to the interaction.

targetID: number

The ID of the target node or node collection that the interaction is applied to.

CollectionAPI for node collections as targetID

targetName?: string

Optional property for transporting the target's name to the interaction.

Whether the target was interacted with via picking or by ID.