UNPKG

@needle-tools/engine

Version:

Needle Engine is a web-based runtime for 3D apps. It runs on your machine for development with great integrations into editors like Unity or Blender - and can be deployed onto any device! It is flexible, extensible and networking and XR are built-in.

22 lines (21 loc) 816 B
/// <reference types="webxr" /> import { Context } from "../engine_setup.js"; export declare const arContainerClassName = "ar"; export declare const quitARClassName = "quit-ar"; /** @internal */ export declare class AROverlayHandler { get ARContainer(): HTMLElement | null; private arContainer; currentSession: XRSession | null; private _createdAROnlyElements; private _reparentedObjects; private contentElement; private originalDomOverlayParent; requestEndAR: () => void; onBegin(context: Context, overlayContainer: HTMLElement, session: XRSession): void; onEnd(_context: Context): void; createOverlayContainer(needleEngineElement: HTMLElement): HTMLElement; private onRequestedEndAR; private ensureQuitARButton; private appendElement; }