tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

webxr-hit-test.idl (1976B)


      1 // GENERATED CONTENT - DO NOT EDIT
      2 // Content was automatically extracted by Reffy into webref
      3 // (https://github.com/w3c/webref)
      4 // Source: WebXR Hit Test Module (https://immersive-web.github.io/hit-test/)
      5 
      6 enum XRHitTestTrackableType {
      7  "point",
      8  "plane",
      9  "mesh"
     10 };
     11 
     12 dictionary XRHitTestOptionsInit {
     13  required XRSpace space;
     14  sequence<XRHitTestTrackableType> entityTypes;
     15  XRRay offsetRay;
     16 };
     17 
     18 dictionary XRTransientInputHitTestOptionsInit {
     19  required DOMString profile;
     20  sequence<XRHitTestTrackableType> entityTypes;
     21  XRRay offsetRay;
     22 };
     23 
     24 [SecureContext, Exposed=Window]
     25 interface XRHitTestSource {
     26  undefined cancel();
     27 };
     28 
     29 [SecureContext, Exposed=Window]
     30 interface XRTransientInputHitTestSource {
     31  undefined cancel();
     32 };
     33 
     34 [SecureContext, Exposed=Window]
     35 interface XRHitTestResult {
     36  XRPose? getPose(XRSpace baseSpace);
     37 };
     38 
     39 [SecureContext, Exposed=Window]
     40 interface XRTransientInputHitTestResult {
     41  [SameObject] readonly attribute XRInputSource inputSource;
     42  readonly attribute FrozenArray<XRHitTestResult> results;
     43 };
     44 
     45 partial interface XRSession {
     46  Promise<XRHitTestSource> requestHitTestSource(XRHitTestOptionsInit options);
     47  Promise<XRTransientInputHitTestSource> requestHitTestSourceForTransientInput(XRTransientInputHitTestOptionsInit options);
     48 };
     49 
     50 partial interface XRFrame {
     51  sequence<XRHitTestResult> getHitTestResults(XRHitTestSource hitTestSource);
     52  sequence<XRTransientInputHitTestResult> getHitTestResultsForTransientInput(XRTransientInputHitTestSource hitTestSource);
     53 };
     54 
     55 dictionary XRRayDirectionInit {
     56  double x = 0;
     57  double y = 0;
     58  double z = -1;
     59  double w = 0;
     60 };
     61 
     62 [SecureContext, Exposed=Window]
     63 interface XRRay {
     64  constructor(optional DOMPointInit origin = {}, optional XRRayDirectionInit direction = {});
     65  constructor(XRRigidTransform transform);
     66  [SameObject] readonly attribute DOMPointReadOnly origin;
     67  [SameObject] readonly attribute DOMPointReadOnly direction;
     68  [SameObject] readonly attribute Float32Array matrix;
     69 };