Interface ViewObjectContextMenuContext

Context object consumed by ViewObjectContextMenu.

interface ViewObjectContextMenuContext {
    cameraFlight: CameraFlightAnimation;
    collisionIndex: SceneCollisionIndex;
    dataModel?: DataModel;
    pickedWorldPos?: Vec3;
    renderer: WebGLRenderer;
    sceneModel: SceneModel;
    studio: Studio;
    view: View;
    viewObject: ViewObject;
}

Hierarchy (View Summary)

Properties

cameraFlight: CameraFlightAnimation

Camera flight controller used for framing actions.

collisionIndex: SceneCollisionIndex

Spatial index used to resolve object and scene bounds.

dataModel?: DataModel

Optional data model associated with the current scene model.

pickedWorldPos?: Vec3

World-space surface point where the right-click landed, when the picker returned one. Submenus that anchor at the clicked point (for example the Transform submenu using the picked point as the gizmo's pivot) read this; null falls back to the geometric origin / centroid as appropriate.

renderer: WebGLRenderer

WebGL renderer used for capturing screenshots and other renderer-related actions.

sceneModel: SceneModel

Scene model associated with the current view.

studio: Studio

Demo helper used for view and inspector actions.

view: View

Active view for the context menu.

viewObject: ViewObject

View object currently targeted by the menu.