ThreePresenter API Documentation - v0.1.2
    Preparing search index...

    Interface InputControllerConfig

    Configuration for InputController initialization

    interface InputControllerConfig {
        domElement: HTMLElement;
        getCamera: () => Camera;
        getModels: () => Object3D<Object3DEventMap>[];
        getAnnotations: () => Object3D<Object3DEventMap>[];
        onModelDoubleClick: (point: Vector3) => void;
        onAnnotationClick: (object: Object3D, isMultiSelect: boolean) => void;
        onBackgroundClick: (isMultiSelect: boolean) => void;
    }
    Index

    Properties

    domElement: HTMLElement

    DOM element to attach input listeners to

    getCamera: () => Camera

    Callback to get current camera for raycasting

    getModels: () => Object3D<Object3DEventMap>[]

    Callback to get all selectable models in the scene

    getAnnotations: () => Object3D<Object3DEventMap>[]

    Callback to get all annotation markers in the scene

    onModelDoubleClick: (point: Vector3) => void

    Called when user double-clicks on a 3D model

    onAnnotationClick: (object: Object3D, isMultiSelect: boolean) => void

    Called when user clicks on an annotation marker

    onBackgroundClick: (isMultiSelect: boolean) => void

    Called when user clicks on empty space (background)