PointerInfo#
Type alias PointerInfo
Pointer Info: {
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>;
}
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>;
}
Type declaration
-
action
Trigger: PointerActionTrigger -
action
Type: PointerActionType The type of the pointer action.
-
canvas
Coords: [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.
-
normalized
Pointer Coords: [number, number] The normalized pointer coordinates between [0, 1].
-
position: [number, number, number]
The 3D position at the current pointer coordinates.
-
target
NodeID: number The target Node ID of the pointer action.
-
viewer: ViewerAPI
A reference to the related Viewer.
-
request
Topology Handle:function - request
Topology Handle(): Promise<TopologyHandle> -
Returns the handle to the Topological Element at the current pointer coordinates
Returns Promise<TopologyHandle>
- request
The trigger of the pointer action.