@google/model-viewer
Version:
Easily display interactive 3D models on the web and in AR!
24 lines (23 loc) • 974 B
TypeScript
import ModelViewerElementBase from '../model-viewer-base.js';
import { Constructor } from '../utilities.js';
/**
* Takes a URL to a USDZ file and sets the appropriate fields so that Safari
* iOS can intent to their AR Quick Look.
*/
export declare const openIOSARQuickLook: (usdzSrc: string) => void;
/**
* Takes a URL and a title string, and attempts to launch Scene Viewer on the
* current device.
*/
export declare const openSceneViewer: (gltfSrc: string, title: string) => void;
export declare type QuickLookBrowser = 'safari' | 'chrome';
export declare type ARMode = 'quick-look' | 'ar-viewer' | 'unstable-webxr' | 'none';
export interface ARInterface {
ar: boolean;
unstableWebxr: boolean;
iosSrc: string | null;
quickLookBrowsers: string;
readonly canActivateAR: boolean;
activateAR(): Promise<void>;
}
export declare const ARMixin: <T extends Constructor<ModelViewerElementBase>>(ModelViewerElement: T) => Constructor<ARInterface> & T;