three-vr-player 0.7.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/Player.d.ts CHANGED
@@ -25,6 +25,8 @@ export declare class Player {
25
25
  private currentSrc?;
26
26
  constructor(container: HTMLElement, options?: PlayerOptions);
27
27
  private vrSupported;
28
+ /** Whether immersive-ar (passthrough) is available — used for alpha/fisheye content. */
29
+ arSupported(): Promise<boolean>;
28
30
  load(src: string, o?: {
29
31
  projection?: Projection;
30
32
  }): Promise<void>;
@@ -48,6 +50,8 @@ export declare class Player {
48
50
  /** Enter immersive VR. Rejects if the WebXR session request fails (e.g. no headset,
49
51
  * or a non-secure origin) — the built-in controls surface the reason as a toast. */
50
52
  enterVR(): Promise<void>;
53
+ /** Enter immersive AR (passthrough) — for alpha/fisheye content. */
54
+ enterAR(): Promise<void>;
51
55
  exitVR(): void;
52
56
  get three(): {
53
57
  renderer: import('three').WebGLRenderer;