PointerInfo

Interface PointerInfo

interface PointerInfo {
    actionTrigger: PointerActionTrigger;
    actionType: PointerActionType;
    canvasCoords: [number, number];
    nodeID: number;
    normal: [number, number, number];
    normalizedPointerCoords: [number, number];
    position: [number, number, number];
    targetNodeID: number;
    viewer: ViewerAPI;
    requestTopologyHandle(): Promise<TopologyHandle>;
}

Properties

actionTrigger: PointerActionTrigger

The trigger of the pointer action.

actionType: PointerActionType

The type of the pointer action.

canvasCoords: [number, number]

The canvas pointer coordinates.

nodeID: number

The current Node ID of the pointer action depending on the expanded state of the Node structure.

normal: [number, number, number]

The 3D normal vector at the current pointer coordinates.

normalizedPointerCoords: [number, number]

The normalized pointer coordinates between [0, 1].

position: [number, number, number]

The 3D position at the current pointer coordinates.

targetNodeID: number

The target Node ID of the pointer action.

viewer: ViewerAPI

A reference to the related Viewer.

Methods

  • Returns the handle to the Topological Element at the current pointer coordinates

    Returns Promise<TopologyHandle>


Did you find this page useful? Please give it a rating:
Thank you for rating this page!
Any issues or feedback?
What kind of problem would you like to report?
Please tell us more about what's wrong: