sej
    Preparing search index...

    Type Alias Editor

    Editor: {
        addObject: (object: Object3D, parent?: Object3D, index?: number) => void;
        camera: THREE.Camera;
        config?: Config;
        debugger: Debugger | null;
        focus: (object: Object3D) => void;
        gisHelper: GISHelper;
        loaderManager: LoaderManager;
        moveObject: (
            object: Object3D,
            parent?: Object3D,
            before?: Object3D,
        ) => void;
        nameObject: (object: Object3D, name: string) => void;
        objectByUuid: (uuid: string) => Object3D | undefined;
        orthographicCamera: THREE.OrthographicCamera;
        perspectiveCamera: THREE.PerspectiveCamera;
        removeObject: (object: Object3D) => void;
        scene: THREE.Scene;
        selectById: (id: number) => void;
        selectByUuid: (uuid: string) => void;
        selected: Object3D[];
        selector: Selector;
        setCamera: (camera: SupportedCameras) => void;
        setScene: (scene: THREE.Scene) => void;
        signals: EditorSignals;
        spatialHashGrid: SpatialHashGrid;
        toggleDebug(): void;
    } & Pick<History, "execute" | "undo" | "redo"> & Pick<
        Selector,
        "select"
        | "deselect",
    > & SerializableObject & Test

    The Editor is the meat of the application. It holds the scene, the camera, the signals, the loader manager, the selector, the debugger and the config.

    Type declaration

    • addObject: (object: Object3D, parent?: Object3D, index?: number) => void

      Add an object to the parent or scene.

    • camera: THREE.Camera
    • Optionalconfig?: Config
    • debugger: Debugger | null
    • focus: (object: Object3D) => void

      Focus on an object.

    • gisHelper: GISHelper
    • loaderManager: LoaderManager
    • moveObject: (object: Object3D, parent?: Object3D, before?: Object3D) => void

      Move an object to the parent or scene.s Remove the object from the original parent if it exists.

    • nameObject: (object: Object3D, name: string) => void

      Rename an object.

    • objectByUuid: (uuid: string) => Object3D | undefined

      Get an object by its uuid.

    • orthographicCamera: THREE.OrthographicCamera
    • perspectiveCamera: THREE.PerspectiveCamera
    • removeObject: (object: Object3D) => void

      Remove an object from its parent.

    • scene: THREE.Scene
    • selectById: (id: number) => void

      Select an object by its id.

    • selectByUuid: (uuid: string) => void

      Select an object by its uuid.

    • selected: Object3D[]
    • selector: Selector
    • setCamera: (camera: SupportedCameras) => void

      Set the Camera to be used. This will switch the camera internally and dispatch a signal.

    • setScene: (scene: THREE.Scene) => void

      Set the THREE.Scene | Scene to be rendered.

    • signals: EditorSignals
    • spatialHashGrid: SpatialHashGrid
    • toggleDebug: function