浏览代码

Added getter on arcrotatecamera to get default behaviors

David Catuhe 8 年之前
父节点
当前提交
9ec6e63873

文件差异内容过多而无法显示
+ 5090 - 5087
dist/preview release/babylon.d.ts


文件差异内容过多而无法显示
+ 24 - 24
dist/preview release/babylon.js


+ 22 - 1
dist/preview release/babylon.max.js

@@ -34885,6 +34885,13 @@ var BABYLON;
             enumerable: true,
             enumerable: true,
             configurable: true
             configurable: true
         });
         });
+        Object.defineProperty(ArcRotateCamera.prototype, "bouncingBehavior", {
+            get: function () {
+                return this._bouncingBehavior;
+            },
+            enumerable: true,
+            configurable: true
+        });
         Object.defineProperty(ArcRotateCamera.prototype, "useBouncingBehavior", {
         Object.defineProperty(ArcRotateCamera.prototype, "useBouncingBehavior", {
             get: function () {
             get: function () {
                 return this._bouncingBehavior != null;
                 return this._bouncingBehavior != null;
@@ -34905,6 +34912,13 @@ var BABYLON;
             enumerable: true,
             enumerable: true,
             configurable: true
             configurable: true
         });
         });
+        Object.defineProperty(ArcRotateCamera.prototype, "framingBehavior", {
+            get: function () {
+                return this._framingBehavior;
+            },
+            enumerable: true,
+            configurable: true
+        });
         Object.defineProperty(ArcRotateCamera.prototype, "useFramingBehavior", {
         Object.defineProperty(ArcRotateCamera.prototype, "useFramingBehavior", {
             get: function () {
             get: function () {
                 return this._framingBehavior != null;
                 return this._framingBehavior != null;
@@ -34925,6 +34939,13 @@ var BABYLON;
             enumerable: true,
             enumerable: true,
             configurable: true
             configurable: true
         });
         });
+        Object.defineProperty(ArcRotateCamera.prototype, "autoRotationBehavior", {
+            get: function () {
+                return this._autoRotationBehavior;
+            },
+            enumerable: true,
+            configurable: true
+        });
         Object.defineProperty(ArcRotateCamera.prototype, "useAutoRotationBehavior", {
         Object.defineProperty(ArcRotateCamera.prototype, "useAutoRotationBehavior", {
             get: function () {
             get: function () {
                 return this._autoRotationBehavior != null;
                 return this._autoRotationBehavior != null;
@@ -70499,7 +70520,7 @@ var BABYLON;
              * Gets a value indicating if the camera is currently rotating because of this behavior
              * Gets a value indicating if the camera is currently rotating because of this behavior
              */
              */
             get: function () {
             get: function () {
-                return this._cameraRotationSpeed > 0;
+                return Math.abs(this._cameraRotationSpeed) > 0;
             },
             },
             enumerable: true,
             enumerable: true,
             configurable: true
             configurable: true

文件差异内容过多而无法显示
+ 5090 - 5087
dist/preview release/babylon.module.d.ts


文件差异内容过多而无法显示
+ 41 - 41
dist/preview release/babylon.worker.js


文件差异内容过多而无法显示
+ 5811 - 5808
dist/preview release/customConfigurations/minimalGLTFViewer/babylon.d.ts


文件差异内容过多而无法显示
+ 11 - 11
dist/preview release/customConfigurations/minimalGLTFViewer/babylon.js


+ 22 - 1
dist/preview release/customConfigurations/minimalGLTFViewer/babylon.max.js

@@ -31977,6 +31977,13 @@ var BABYLON;
             enumerable: true,
             enumerable: true,
             configurable: true
             configurable: true
         });
         });
+        Object.defineProperty(ArcRotateCamera.prototype, "bouncingBehavior", {
+            get: function () {
+                return this._bouncingBehavior;
+            },
+            enumerable: true,
+            configurable: true
+        });
         Object.defineProperty(ArcRotateCamera.prototype, "useBouncingBehavior", {
         Object.defineProperty(ArcRotateCamera.prototype, "useBouncingBehavior", {
             get: function () {
             get: function () {
                 return this._bouncingBehavior != null;
                 return this._bouncingBehavior != null;
@@ -31997,6 +32004,13 @@ var BABYLON;
             enumerable: true,
             enumerable: true,
             configurable: true
             configurable: true
         });
         });
+        Object.defineProperty(ArcRotateCamera.prototype, "framingBehavior", {
+            get: function () {
+                return this._framingBehavior;
+            },
+            enumerable: true,
+            configurable: true
+        });
         Object.defineProperty(ArcRotateCamera.prototype, "useFramingBehavior", {
         Object.defineProperty(ArcRotateCamera.prototype, "useFramingBehavior", {
             get: function () {
             get: function () {
                 return this._framingBehavior != null;
                 return this._framingBehavior != null;
@@ -32017,6 +32031,13 @@ var BABYLON;
             enumerable: true,
             enumerable: true,
             configurable: true
             configurable: true
         });
         });
+        Object.defineProperty(ArcRotateCamera.prototype, "autoRotationBehavior", {
+            get: function () {
+                return this._autoRotationBehavior;
+            },
+            enumerable: true,
+            configurable: true
+        });
         Object.defineProperty(ArcRotateCamera.prototype, "useAutoRotationBehavior", {
         Object.defineProperty(ArcRotateCamera.prototype, "useAutoRotationBehavior", {
             get: function () {
             get: function () {
                 return this._autoRotationBehavior != null;
                 return this._autoRotationBehavior != null;
@@ -50472,7 +50493,7 @@ var BABYLON;
              * Gets a value indicating if the camera is currently rotating because of this behavior
              * Gets a value indicating if the camera is currently rotating because of this behavior
              */
              */
             get: function () {
             get: function () {
-                return this._cameraRotationSpeed > 0;
+                return Math.abs(this._cameraRotationSpeed) > 0;
             },
             },
             enumerable: true,
             enumerable: true,
             configurable: true
             configurable: true

文件差异内容过多而无法显示
+ 5811 - 5808
dist/preview release/customConfigurations/minimalGLTFViewer/babylon.module.d.ts


+ 1 - 1
src/Behaviors/Cameras/babylon.autoRotationBehavior.ts

@@ -69,7 +69,7 @@ module BABYLON {
 		 * Gets a value indicating if the camera is currently rotating because of this behavior
 		 * Gets a value indicating if the camera is currently rotating because of this behavior
 		 */
 		 */
 		public get rotationInProgress(): boolean {
 		public get rotationInProgress(): boolean {
-			return this._cameraRotationSpeed > 0;
+			return Math.abs(this._cameraRotationSpeed) > 0;
 		}
 		}
         
         
         // Default behavior functions
         // Default behavior functions

+ 15 - 0
src/Cameras/babylon.arcRotateCamera.ts

@@ -196,6 +196,11 @@ module BABYLON {
 
 
         // Behaviors
         // Behaviors
         private _bouncingBehavior: BouncingBehavior;
         private _bouncingBehavior: BouncingBehavior;
+
+        public get bouncingBehavior(): BouncingBehavior {
+            return this._bouncingBehavior;
+        }
+
         public get useBouncingBehavior(): boolean {
         public get useBouncingBehavior(): boolean {
             return this._bouncingBehavior != null;
             return this._bouncingBehavior != null;
         }
         }
@@ -215,6 +220,11 @@ module BABYLON {
         }
         }
 
 
         private _framingBehavior: FramingBehavior;
         private _framingBehavior: FramingBehavior;
+
+        public get framingBehavior(): FramingBehavior {
+            return this._framingBehavior;
+        }        
+
         public get useFramingBehavior(): boolean {
         public get useFramingBehavior(): boolean {
             return this._framingBehavior != null;
             return this._framingBehavior != null;
         }
         }
@@ -234,6 +244,11 @@ module BABYLON {
         }        
         }        
 
 
         private _autoRotationBehavior: AutoRotationBehavior;
         private _autoRotationBehavior: AutoRotationBehavior;
+
+        public get autoRotationBehavior(): AutoRotationBehavior {
+            return this._autoRotationBehavior;
+        }   
+
         public get useAutoRotationBehavior(): boolean {
         public get useAutoRotationBehavior(): boolean {
             return this._autoRotationBehavior != null;
             return this._autoRotationBehavior != null;
         }
         }