XRViewport extension type
The WebXR Device API's XRViewport
interface provides properties used
to describe the size and position of the current viewport within the
XRWebGLLayer
being used to render the 3D scene.
API documentation sourced from MDN Web Docs.
- on
- Implemented types
- Available extensions
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → int
-
The read-only XRViewport property
height
specifies the height, in pixels, of the viewport onto the drawing surface within which the WebXR view is to be rendered. Along with XRViewport.width and the origin point given by XRViewport.x and XRViewport.y, this defines the area within which rendered content will be drawn.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- width → int
-
The read-only XRViewport property
width
specifies the width of the viewport, in pixels, onto the drawing surface the 3D scene is to be rendered into. This is defined using this property along with the viewport's XRViewport.height and its origin given by its properties XRViewport.x and XRViewport.y.no setter - x → int
-
The read-only XRViewport interface's
x
property indicates the offset from the left edge of the destination surface (typically aXRWebGLLayer
) to the left edge of the viewport within the surface into which WebXR content is to be rendered. The viewport's XRViewport.y property identifies they
component of the origin, and its is given by theXRViewPort.width
and XRViewport.height properties.no setter - y → int
-
The read-only XRViewport interface's
y
property indicates the offset from the bottom edge of the destination surface (typically aXRWebGLLayer
) to the bottom edge of the viewport within the surface into which WebXR content is to be rendered. The viewport's XRViewport.x property identifies thex
component of the origin, and its is given by theXRViewPort.width
and XRViewport.height properties.no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited