Interface CanvasContextMenuContext

Context object consumed by CanvasContextMenu.

interface CanvasContextMenuContext {
    cameraFlight: CameraFlightAnimation;
    collisionIndex: SceneCollisionIndex;
    dataModel?: DataModel;
    renderer: WebGLRenderer;
    sceneModel: SceneModel;
    studio: Studio;
    view: View;
}

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.

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.