瀏覽代碼

removing deprecated values

Raanan Weber 7 年之前
父節點
當前提交
c3a623a95d
共有 2 個文件被更改,包括 2 次插入8 次删除
  1. 2 4
      Viewer/src/configuration/configuration.ts
  2. 0 4
      Viewer/src/viewer/sceneManager.ts

+ 2 - 4
Viewer/src/configuration/configuration.ts

@@ -137,10 +137,6 @@ export interface IGroundConfiguration {
 
 export interface ISceneConfiguration {
     debug?: boolean;
-    autoRotate?: boolean; // deprecated
-    rotationSpeed?: number; // deprecated
-    defaultCamera?: boolean; // deprecated
-    defaultLight?: boolean; // deprecated
     clearColor?: { r: number, g: number, b: number, a: number };
     imageProcessingConfiguration?: IImageProcessingConfiguration;
     environmentTexture?: string;
@@ -184,6 +180,8 @@ export interface ICameraConfiguration {
             [propName: string]: any;
         };
     };
+    disableCameraControl?: boolean;
+    disableCtrlForPanning?: boolean;
 
     [propName: string]: any;
 }

+ 0 - 4
Viewer/src/viewer/sceneManager.ts

@@ -228,10 +228,6 @@ export class SceneManager {
             this.scene.environmentTexture = environmentTexture;
         }
 
-        if (sceneConfig.autoRotate) {
-            this.camera.useAutoRotationBehavior = true;
-        }
-
         this.onSceneConfiguredObservable.notifyObservers({
             sceneManager: this,
             object: this.scene,