ContextMenuCallbackInfo

Interface ContextMenuCallbackInfo

interface ContextMenuCallbackInfo {
    context: ContextAPI;
    nodeId?: number;
    pointerInfo?: PointerInfo;
    triggeredBy?: HTMLElement;
    viewer: ViewerAPI;
}
Index

Properties

context: ContextAPI

Reference to the related webvis Context.

nodeId?: number

The related NodeId if available.

pointerInfo?: PointerInfo

Additional pointer information like 3d position, 3d normal, etc. Only available if context menu is opened from the 3d view.

triggeredBy?: HTMLElement

Reference to the HTMLElement which triggered the opening of the context menu.

viewer: ViewerAPI

Reference to the related webvis Viewer.