浏览代码

lint and doc

Raanan Weber 5 年之前
父节点
当前提交
9c5eb68c44
共有 2 个文件被更改,包括 10 次插入1 次删除
  1. 9 0
      src/Cameras/XR/features/WebXRAbstractFeature.ts
  2. 1 1
      src/Cameras/XR/features/WebXRHitTestLegacy.ts

+ 9 - 0
src/Cameras/XR/features/WebXRAbstractFeature.ts

@@ -3,8 +3,17 @@ import { Observer, Observable, EventState } from '../../../Misc/observable';
 import { Nullable } from '../../../types';
 import { WebXRSessionManager } from '../webXRSessionManager';
 
+/**
+ * This is the base class for all WebXR features.
+ * Since most features require almost the same resources and callbacks, this class can be used to simplify the development
+ * Note that since the features manager is using the `IWebXRFeature` you are in no way obligated to use this class
+ */
 export abstract class WebXRAbstractFeature implements IWebXRFeature {
 
+    /**
+     * Construct a new (abstract) webxr feature
+     * @param _xrSessionManager the xr session manager for this feature
+     */
     constructor(protected _xrSessionManager: WebXRSessionManager) {
 
     }

+ 1 - 1
src/Cameras/XR/features/WebXRHitTestLegacy.ts

@@ -199,7 +199,7 @@ export class WebXRHitTestLegacy extends WebXRAbstractFeature implements IWebXRFe
      * Dispose this feature and all of the resources attached
      */
     dispose(): void {
-        super.dispose(); ;
+        super.dispose();
         this.onHitTestResultObservable.clear();
     }
 }