anchors.idl (945B)
1 // GENERATED CONTENT - DO NOT EDIT 2 // Content was automatically extracted by Reffy into webref 3 // (https://github.com/w3c/webref) 4 // Source: WebXR Anchors Module (https://immersive-web.github.io/anchors/) 5 6 [SecureContext, Exposed=Window] 7 interface XRAnchor { 8 readonly attribute XRSpace anchorSpace; 9 10 Promise<DOMString> requestPersistentHandle(); 11 12 undefined delete(); 13 }; 14 15 partial interface XRFrame { 16 Promise<XRAnchor> createAnchor(XRRigidTransform pose, XRSpace space); 17 }; 18 19 partial interface XRSession { 20 readonly attribute FrozenArray<DOMString> persistentAnchors; 21 22 Promise<XRAnchor> restorePersistentAnchor(DOMString uuid); 23 Promise<undefined> deletePersistentAnchor(DOMString uuid); 24 }; 25 26 partial interface XRHitTestResult { 27 Promise<XRAnchor> createAnchor(); 28 }; 29 30 [Exposed=Window] 31 interface XRAnchorSet { 32 readonly setlike<XRAnchor>; 33 }; 34 35 partial interface XRFrame { 36 [SameObject] readonly attribute XRAnchorSet trackedAnchors; 37 };