Name Description Size
display
fill
platform
reality
Reality.js A Reality represents a view of the world, be it the real world via sensors or a virtual world that is rendered with WebGL or WebGPU. 2809
XRAnchor.js XRAnchors provide per-frame coordinates which the Reality attempts to pin "in place". In a virtual Reality these coordinates do not change. In a Reality based on environment mapping sensors, the anchors may change coordinates on a per-frame bases as the system refines its map. 722
XRAnchorOffset.js XRAnchorOffset represents a pose in relation to an XRAnchor 1515
XRCartographicCoordinates.js The XRCartographicCoordinates are used in conjunction with the XRCoordinateSystem to represent a frame of reference that may optionally be positioned in relation to a geodetic frame like WGS84 for Earth, otherwise a sphere is assumed. 1183
XRCoordinates.js XRCoordinates represent a pose (position and orientation) in relation to a XRCoordinateSystem. 1988
XRCoordinateSystem.js XRCoordinateSystem represents the origin of a 3D coordinate system positioned at a known frame of reference. The XRCoordinateSystem is a string from XRCoordinateSystem.TYPES: - XRCoordinateSystem.HEAD_MODEL: origin is aligned with the pose of the head, as sensed by HMD or handset trackers - XRCoordinateSystem.EYE_LEVEL: origin is at a fixed distance above the ground - XRCoordinateSystem.TRACKER: The origin of this coordinate system is at floor level at or below the origin of the HMD or handset provided tracking system - XRCoordinateSystem.GEOSPATIAL: origin is at the East, Up, South plane tangent to the planet at the latitude, longitude, and altitude represented by the `XRCoordinateSystem.cartographicCoordinates`. 2597
XRDisplay.js Each XRDisplay represents a method of using a specific type of hardware to render AR or VR realities and layers. This doesn't yet support a geospatial coordinate system 2816
XRFieldOfView.js XRFieldOFView represents the four boundaries of a camera's field of view: up, down, left, and right. 534
XRLayer.js XRLayer defines a source of bitmap images and a description of how the image is to be rendered in the XRDisplay 280
XRLightEstimate.js XRLightEstimate represents the attributes of environmental light as supplied by the device's sensors. 388
XRPlaneAnchor.js XRPlaneAnchor represents a flat surfaces like floors, table tops, or walls. 338
XRPointCloud.js XRPointCloud holds an array of float values where each four values represents [x, y, z, confidence in range 0-1] that describe a point in space detected by the device's sensors. 320
XRPolyfill.js XRPolyfill implements the window.XR functionality as a polyfill Code below will check for window.XR and if it doesn't exist will install this polyfill, so you can safely include this script in any page. 3958
XRPresentationFrame.js XRPresentationFrame provides all of the values needed to render a single frame of an XR scene to the XRDisplay. 2833
XRSession.js A script that wishes to make use of an XRDisplay can request an XRSession. An XRSession provides a list of the available Reality instances that the script may request as well as make a request for an animation frame. 2681
XRSessionCreateParameters.js The XRSessionCreateParametersInit dictionary provides a session description, indicating the desired capabilities of a session to be returned from requestSession() 401
XRStageBounds.js The XRStageBounds interface describes a space known as a "Stage". The stage is a bounded, floor-relative play space that the user can be expected to safely be able to move within. Other XR platforms sometimes refer to this concept as "room scale" or "standing XR". 533
XRStageBoundsPoint.js XRStageBoundPoints represent the offset in meters from the stage origin along the X and Z axes. 312
XRView.js An XRView describes a single view into an XR scene. It provides several values directly, and acts as a key to query view-specific values from other interfaces. 1541
XRViewport.js XRViewport represents the dimensions in pixels of an XRView. 498
XRViewPose.js XRDevicePose describes the position and orientation of an XRDisplay relative to the query XRCoordinateSystem. It also describes the view and projection matrices that should be used by the application to render a frame of the XR scene. 1613
XRWebGLLayer.js XRWebGLLayer defines the WebGL or WebGL 2 context that is rendering the visuals for this layer. 1132