安全上下文
此特征只可用于
安全上下文
(HTTPS),在某些或所有
支持浏览器
.
XRReferenceSpaceEventInit
dictionary is used when calling the
XRReferenceSpaceEvent()
constructor to provide the values for its properties. Since the properties are read-only, this is the only opportunity available to set their values.
You will not usually need to use this, since these events are created by the WebXR infrastructure.
referenceSpace
XRReferenceSpace
from which the event originated.
transform
XRRigidTransform
which maps the old coordinate system (from before the changes indicated by this event) to the new coordiante system.
All of this dictionary's properties must have valid values set on them before calling the
XRReferenceSpaceEvent()
构造函数。
This simple snippet calls the constructor to create a new reference space event of type
reset
.
let refSpaceEvent = new XRReferenceSpaceEvent("reset", {
referenceSpace: myRefSpace,
transform: myTransform
});
| 规范 | 状态 | 注释 |
|---|---|---|
|
WebXR 设备 API
The definition of 'XRReferenceSpaceEventInit' in that specification. |
工作草案 | 初始定义。 |
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
No compatibility data found. Please contribute data for "api.XRReferenceSpaceEventInit" (depth: 1) to the MDN 兼容性数据存储库 .
XRReferenceSpaceEventInit
Navigator.xr
WebGLRenderingContext.makeXRCompatible()
XR
XRBoundedReferenceSpace
XRFrame
XRInputSource
XRInputSourceArray
XRInputSourceEvent
XRInputSourcesChangeEvent
XRPose
XRReferenceSpace
XRReferenceSpaceEvent
XRRenderState
XRRigidTransform
XRSession
XRSessionEvent
XRSpace
XRView
XRViewerPose
XRViewport
XRWebGLLayer