WebXR Device API
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.
Value
The viewport's width in pixels.
Examples
See the main XRViewport page for examples.
Specifications
Browser compatibility
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
