locar
    Preparing search index...

    Interface AppOptions

    Options to pass into the App object.

    interface AppOptions {
        cameraOptions?: { far: number; hFov: number; near: number };
        canvas?: HTMLCanvasElement;
        deviceOrientationOptions?: DeviceOrientationControlsOptions & {
            enabled: boolean;
        };
        gpsOptions?: GpsOptions;
        projection?: Projection;
        serverLogger?: ServerLogger;
        videoConstraints?: { video: { facingMode: string } };
    }
    Index

    Properties

    cameraOptions?: { far: number; hFov: number; near: number }

    the three.js camera options to use - note however we specify horizontal, not vertical, field of view

    canvas?: HTMLCanvasElement

    the canvas to render the AR scene into (one will be created if omitted)

    deviceOrientationOptions?: DeviceOrientationControlsOptions & {
        enabled: boolean;
    }

    Device orientation options for DeviceOrientationControls

    gpsOptions?: GpsOptions

    GPS options, see GpsOptions documentation for details

    projection?: Projection

    Projection to use (default: SphMercProjection)

    serverLogger?: ServerLogger

    Server logger to use - ensure you gain consent from the user if you are doing this, it's usually a Data Protection legal requirement

    videoConstraints?: { video: { facingMode: string } }

    Video constraints for Media Devices API