/** * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import WebXRPolyfill from "@lookingglass/webxr-polyfill/src/WebXRPolyfill"; import { ViewControlArgs } from "./LookingGlassConfig"; import LookingGlassXRDevice from "./LookingGlassXRDevice"; export declare class LookingGlassWebXRPolyfill extends WebXRPolyfill { private vrButton; device: LookingGlassXRDevice | undefined; /** true when previewing on Looking Glass */ isPresenting: boolean; constructor(cfg?: Partial); static init(cfg?: Partial): Promise; /**Load the polyfill*/ private loadPolyfill; /** If a "Enter VR" button exists, let's override it with our own copy */ private overrideDefaultVRButton; /** Refresh the current state of the VRButton */ private updateVRButtonUI; update(cfg: Partial): void; } /** * Get the global Looking Glass Config. * This can be used to update any config value in realtime by setting it like follows * let config = LookingGlassConfig * config.trackballX = Math.PI / 2 * ``` */ export declare const LookingGlassConfig: import("./LookingGlassConfig").LookingGlassConfig;