Browse Source

lint and doc

Raanan Weber 5 years ago
parent
commit
9c5eb68c44

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

@@ -3,8 +3,17 @@ import { Observer, Observable, EventState } from '../../../Misc/observable';
 import { Nullable } from '../../../types';
 import { Nullable } from '../../../types';
 import { WebXRSessionManager } from '../webXRSessionManager';
 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 {
 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) {
     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 this feature and all of the resources attached
      */
      */
     dispose(): void {
     dispose(): void {
-        super.dispose(); ;
+        super.dispose();
         this.onHitTestResultObservable.clear();
         this.onHitTestResultObservable.clear();
     }
     }
 }
 }