Ver código fonte

remove readonly (doc)

Raanan Weber 5 anos atrás
pai
commit
407a11a3e1

+ 2 - 2
src/Cameras/XR/webXREnterExitUI.ts

@@ -120,9 +120,9 @@ export class WebXREnterExitUI implements IDisposable {
     /**
      *
      * @param scene babylon scene object to use
-     * @param options read-only version of the options passed to this UI
+     * @param options (read-only) version of the options passed to this UI
      */
-    private constructor(private scene: Scene, public readonly options: WebXREnterExitUIOptions) {
+    private constructor(private scene: Scene, public options: WebXREnterExitUIOptions) {
         this._overlay = document.createElement("div");
         this._overlay.style.cssText = "z-index:11;position: absolute; right: 20px;bottom: 50px;";
 

+ 2 - 2
src/Cameras/XR/webXRSessionManager.ts

@@ -64,9 +64,9 @@ export class WebXRSessionManager implements IDisposable {
 
     /**
      * Constructs a WebXRSessionManager, this must be initialized within a user action before usage
-     * @param scene The scene which the session should be created for
+     * @param readonly scene The scene which the session should be created for
      */
-    constructor(public readonly scene: Scene) {
+    constructor(public scene: Scene) {
 
     }