mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Add stub XRRay
This commit is contained in:
parent
7f353033f4
commit
b6a9e41bb8
4 changed files with 52 additions and 0 deletions
14
components/script/dom/webidls/XRRay.webidl
Normal file
14
components/script/dom/webidls/XRRay.webidl
Normal file
|
@ -0,0 +1,14 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
||||
|
||||
// https://immersive-web.github.io/hit-test/#xrray-interface
|
||||
|
||||
[SecureContext, Exposed=Window, Pref="dom.webxr.enabled"]
|
||||
interface XRRay {
|
||||
// constructor(optional DOMPointInit origin, optional DOMPointInit direction);
|
||||
// constructor(XRRigidTransform transform);
|
||||
// [SameObject] readonly attribute DOMPointReadOnly origin;
|
||||
// [SameObject] readonly attribute DOMPointReadOnly direction;
|
||||
// [SameObject] readonly attribute Float32Array matrix;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue