WebIDLpedia

XRView interface

Definition

WebXR Device API defines XRView



[SecureContext, Exposed=Window] interface XRView {
  readonly attribute XREye eye;
  readonly attribute Float32Array projectionMatrix;
  [SameObject] readonly attribute XRRigidTransform transform;
  readonly attribute double? recommendedViewportScale;

  undefined requestViewportScale(double? scale);
};

This interface is extended in the following specifications:

Consolidated IDL (across mixin and partials)


[SecureContext, Exposed=Window] interface XRView {
  readonly attribute XREye eye;
  readonly attribute Float32Array projectionMatrix;
  [SameObject] readonly attribute XRRigidTransform transform;
  readonly attribute double? recommendedViewportScale;

  undefined requestViewportScale(double? scale);
  [SameObject] readonly attribute XRCamera? camera;
  readonly attribute boolean isFirstPersonObserver;
};

Methods and attributes that return objects implementing XRView

Referring IDL interfaces/dictionaries

Referring specifications