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>;
}
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>;
}
Index
Properties
action Trigger
action Type
The type of the pointer action.
canvas Coords
canvasCoords: [number, number]
The canvas pointer coordinates.
nodeID
nodeID: number
The current Node ID of the pointer action depending on the expanded state of the Node structure.
normal
normal: [number, number, number]
The 3D normal vector at the current pointer coordinates.
normalized Pointer Coords
normalizedPointerCoords: [number, number]
The normalized pointer coordinates between [0, 1].
position
position: [number, number, number]
The 3D position at the current pointer coordinates.
target NodeID
targetNodeID: number
The target Node ID of the pointer action.
viewer
A reference to the related Viewer.
Methods
request Topology Handle
- requestTopologyHandle(): Promise<TopologyHandle>
Returns the handle to the Topological Element at the current pointer coordinates
Returns Promise<TopologyHandle>
The trigger of the pointer action.