Raanan Weber 5 年之前
父节点
当前提交
a1efb82ef5
共有 2 个文件被更改,包括 15 次插入0 次删除
  1. 12 0
      src/XR/features/WebXRAnchorSystem.ts
  2. 3 0
      src/XR/features/WebXRHitTestLegacy.ts

+ 12 - 0
src/XR/features/WebXRAnchorSystem.ts

@@ -46,9 +46,21 @@ export interface IWebXRAnchor {
     attachedNode?: TransformNode;
 }
 
+/**
+ * An internal interface for a future (promise based) anchor
+ */
 interface IWebXRFutureAnchor {
+    /**
+     * A resolve function
+     */
     resolve: (xrAnchor: XRAnchor) => void;
+    /**
+     * A reject function
+     */
     reject: (msg?: string) => void;
+    /**
+     * The XR Transformation of the future anchor
+     */
     xrTransformation: XRRigidTransform;
 }
 

+ 3 - 0
src/XR/features/WebXRHitTestLegacy.ts

@@ -7,6 +7,9 @@ import { WebXRAbstractFeature } from './WebXRAbstractFeature';
 
 // the plugin is registered at the end of the file
 
+/**
+ * An interface for all Hit test features
+ */
 export interface IWebXRHitTestFeature<T extends IWebXRLegacyHitResult> extends IWebXRFeature {
     /**
      * Triggered when new babylon (transformed) hit test results are available