sej
    Preparing search index...

    Class AbstractEditorAbstract

    Abstract class for all viewers.

    Each method begins with some manipulation of the scene, the objects or the camera. This means that the arguments are sometimes mutated. This is fine. This is by design.

    Finally, when everything is ok - a signal is dispatched. Check the methods' implementations for more details.

    Implements

    Index

    Constructors

    Properties

    camera: Camera
    config?: Config
    debugger: null | Debugger
    gisHelper: GISHelper
    history: History
    loaderManager: LoaderManager
    mobileUtils?: {
        isMobile: boolean;
        isOS: null | RegExpMatchArray;
        isTouch: boolean;
    }

    Type declaration

    • isMobile: boolean

      Determines if the current device is a mobile device

    • isOS: null | RegExpMatchArray
    • isTouch: boolean
    orthographicCamera: OrthographicCamera
    perspectiveCamera: PerspectiveCamera
    scene: Scene
    selected: Object3D[]
    signals: EditorSignals
    spatialHashGrid: SpatialHashGrid
    storage?: Storage

    Methods

    • Deselect the selected object.

      Parameters

      • Optionalobject: Object3D<Object3DEventMap>

        object to be selected

      Returns void

    • Select an object by its uuid.

      Parameters

      • uuid: string

        uuid of the object to be selected

      • traverse: boolean = false

      Returns void

    • Set the THREE.Scene | Scene to be rendered.

      Parameters

      • scene: Scene

        THREE.Scene | Scene to be rendered.

      Returns void

    • E2E test method.

      This method should return true if the test passes, and false if it fails. Check the method itself for more information.

      Returns boolean