@comerick/model-viewer
Version:
Easily display interactive 3D models on the web and in AR!
30 lines (29 loc) • 1.05 kB
TypeScript
import { Camera, Mesh, Object3D, XRTargetRaySpace } from 'three';
import { ModelScene } from './ModelScene.js';
import { PlacementBox } from './PlacementBox.js';
export declare class XRMenuPanel extends Object3D {
private panelMesh;
private exitButton;
private goalOpacity;
private opacityDamper;
constructor();
createButton(label: string, options?: {
width?: number;
height?: number;
fontSize?: number;
textColor?: string;
backgroundColor?: string;
fontFamily?: string;
}): Mesh;
exitButtonControllerIntersection(scene: ModelScene, controller: XRTargetRaySpace): import("three").Intersection<Object3D<import("three").Object3DEventMap>> | undefined;
updatePosition(camera: Camera, placementBox: PlacementBox): void;
/**
* Set the box's visibility; it will fade in and out.
*/
set show(visible: boolean);
/**
* Call on each frame with the frame delta to fade the box.
*/
updateOpacity(delta: number): void;
dispose(): void;
}