Browse Source

3.3.0-rc.0

David Catuhe 7 years ago
parent
commit
a0de2f2508

File diff suppressed because it is too large
+ 1510 - 1503
Playground/babylon.d.txt


File diff suppressed because it is too large
+ 6339 - 6330
dist/preview release/babylon.d.ts


File diff suppressed because it is too large
+ 1 - 1
dist/preview release/babylon.js


+ 28 - 8
dist/preview release/babylon.max.js

@@ -11969,7 +11969,7 @@ var BABYLON;
              * Returns the current version of the framework
              */
             get: function () {
-                return "3.3.0-beta.6";
+                return "3.3.0-rc.0";
             },
             enumerable: true,
             configurable: true
@@ -47748,7 +47748,9 @@ var BABYLON;
                         }
                     }
                     else if (this.keysReset.indexOf(keyCode) !== -1) {
-                        camera.restoreState();
+                        if (camera.useInputToRestoreState) {
+                            camera.restoreState();
+                        }
                     }
                 }
             }
@@ -47993,7 +47995,9 @@ var BABYLON;
                     }
                 }
                 else if (p.type === BABYLON.PointerEventTypes.POINTERDOUBLETAP) {
-                    _this.camera.restoreState();
+                    if (_this.camera.useInputToRestoreState) {
+                        _this.camera.restoreState();
+                    }
                 }
                 else if (p.type === BABYLON.PointerEventTypes.POINTERUP && srcElement) {
                     try {
@@ -48446,6 +48450,10 @@ var BABYLON;
              * If false the camera can not arrive upside down.
              */
             _this.allowUpsideDown = true;
+            /**
+             * Define if double tap/click is used to restore the previously saved state of the camera.
+             */
+            _this.useInputToRestoreState = true;
             /** @hidden */
             _this._viewMatrix = new BABYLON.Matrix();
             /**
@@ -49320,6 +49328,9 @@ var BABYLON;
         __decorate([
             BABYLON.serialize()
         ], ArcRotateCamera.prototype, "allowUpsideDown", void 0);
+        __decorate([
+            BABYLON.serialize()
+        ], ArcRotateCamera.prototype, "useInputToRestoreState", void 0);
         return ArcRotateCamera;
     }(BABYLON.TargetCamera));
     BABYLON.ArcRotateCamera = ArcRotateCamera;
@@ -108285,6 +108296,11 @@ var BABYLON;
             this._elevationReturnWaitTime = 1000;
             this._zoomStopsAnimation = false;
             this._framingTime = 1500;
+            /**
+             * Define if the behavior should automatically change the configured
+             * camera limits and sensibilities.
+             */
+            this.autoCorrectCameraLimitsAndSensibility = true;
             this._isPointerDown = false;
             this._lastInteractionTime = -Infinity;
             // Framing control
@@ -108580,19 +108596,23 @@ var BABYLON;
             var radius = 0;
             if (this._mode === FramingBehavior.FitFrustumSidesMode) {
                 var position = this._calculateLowerRadiusFromModelBoundingSphere(minimumWorld, maximumWorld);
-                this._attachedCamera.lowerRadiusLimit = radiusWorld.length() + this._attachedCamera.minZ;
+                if (this.autoCorrectCameraLimitsAndSensibility) {
+                    this._attachedCamera.lowerRadiusLimit = radiusWorld.length() + this._attachedCamera.minZ;
+                }
                 radius = position;
             }
             else if (this._mode === FramingBehavior.IgnoreBoundsSizeMode) {
                 radius = this._calculateLowerRadiusFromModelBoundingSphere(minimumWorld, maximumWorld);
-                if (this._attachedCamera.lowerRadiusLimit === null) {
+                if (this.autoCorrectCameraLimitsAndSensibility && this._attachedCamera.lowerRadiusLimit === null) {
                     this._attachedCamera.lowerRadiusLimit = this._attachedCamera.minZ;
                 }
             }
             // Set sensibilities
-            var extend = maximumWorld.subtract(minimumWorld).length();
-            this._attachedCamera.panningSensibility = 5000 / extend;
-            this._attachedCamera.wheelPrecision = 100 / radius;
+            if (this.autoCorrectCameraLimitsAndSensibility) {
+                var extend = maximumWorld.subtract(minimumWorld).length();
+                this._attachedCamera.panningSensibility = 5000 / extend;
+                this._attachedCamera.wheelPrecision = 100 / radius;
+            }
             // transition to new radius
             if (!this._radiusTransition) {
                 this._radiusTransition = BABYLON.Animation.CreateAnimation("radius", BABYLON.Animation.ANIMATIONTYPE_FLOAT, 60, FramingBehavior.EasingFunction);

+ 28 - 8
dist/preview release/babylon.no-module.max.js

@@ -11936,7 +11936,7 @@ var BABYLON;
              * Returns the current version of the framework
              */
             get: function () {
-                return "3.3.0-beta.6";
+                return "3.3.0-rc.0";
             },
             enumerable: true,
             configurable: true
@@ -47715,7 +47715,9 @@ var BABYLON;
                         }
                     }
                     else if (this.keysReset.indexOf(keyCode) !== -1) {
-                        camera.restoreState();
+                        if (camera.useInputToRestoreState) {
+                            camera.restoreState();
+                        }
                     }
                 }
             }
@@ -47960,7 +47962,9 @@ var BABYLON;
                     }
                 }
                 else if (p.type === BABYLON.PointerEventTypes.POINTERDOUBLETAP) {
-                    _this.camera.restoreState();
+                    if (_this.camera.useInputToRestoreState) {
+                        _this.camera.restoreState();
+                    }
                 }
                 else if (p.type === BABYLON.PointerEventTypes.POINTERUP && srcElement) {
                     try {
@@ -48413,6 +48417,10 @@ var BABYLON;
              * If false the camera can not arrive upside down.
              */
             _this.allowUpsideDown = true;
+            /**
+             * Define if double tap/click is used to restore the previously saved state of the camera.
+             */
+            _this.useInputToRestoreState = true;
             /** @hidden */
             _this._viewMatrix = new BABYLON.Matrix();
             /**
@@ -49287,6 +49295,9 @@ var BABYLON;
         __decorate([
             BABYLON.serialize()
         ], ArcRotateCamera.prototype, "allowUpsideDown", void 0);
+        __decorate([
+            BABYLON.serialize()
+        ], ArcRotateCamera.prototype, "useInputToRestoreState", void 0);
         return ArcRotateCamera;
     }(BABYLON.TargetCamera));
     BABYLON.ArcRotateCamera = ArcRotateCamera;
@@ -108252,6 +108263,11 @@ var BABYLON;
             this._elevationReturnWaitTime = 1000;
             this._zoomStopsAnimation = false;
             this._framingTime = 1500;
+            /**
+             * Define if the behavior should automatically change the configured
+             * camera limits and sensibilities.
+             */
+            this.autoCorrectCameraLimitsAndSensibility = true;
             this._isPointerDown = false;
             this._lastInteractionTime = -Infinity;
             // Framing control
@@ -108547,19 +108563,23 @@ var BABYLON;
             var radius = 0;
             if (this._mode === FramingBehavior.FitFrustumSidesMode) {
                 var position = this._calculateLowerRadiusFromModelBoundingSphere(minimumWorld, maximumWorld);
-                this._attachedCamera.lowerRadiusLimit = radiusWorld.length() + this._attachedCamera.minZ;
+                if (this.autoCorrectCameraLimitsAndSensibility) {
+                    this._attachedCamera.lowerRadiusLimit = radiusWorld.length() + this._attachedCamera.minZ;
+                }
                 radius = position;
             }
             else if (this._mode === FramingBehavior.IgnoreBoundsSizeMode) {
                 radius = this._calculateLowerRadiusFromModelBoundingSphere(minimumWorld, maximumWorld);
-                if (this._attachedCamera.lowerRadiusLimit === null) {
+                if (this.autoCorrectCameraLimitsAndSensibility && this._attachedCamera.lowerRadiusLimit === null) {
                     this._attachedCamera.lowerRadiusLimit = this._attachedCamera.minZ;
                 }
             }
             // Set sensibilities
-            var extend = maximumWorld.subtract(minimumWorld).length();
-            this._attachedCamera.panningSensibility = 5000 / extend;
-            this._attachedCamera.wheelPrecision = 100 / radius;
+            if (this.autoCorrectCameraLimitsAndSensibility) {
+                var extend = maximumWorld.subtract(minimumWorld).length();
+                this._attachedCamera.panningSensibility = 5000 / extend;
+                this._attachedCamera.wheelPrecision = 100 / radius;
+            }
             // transition to new radius
             if (!this._radiusTransition) {
                 this._radiusTransition = BABYLON.Animation.CreateAnimation("radius", BABYLON.Animation.ANIMATIONTYPE_FLOAT, 60, FramingBehavior.EasingFunction);

File diff suppressed because it is too large
+ 1 - 1
dist/preview release/babylon.worker.js


+ 28 - 8
dist/preview release/es6.js

@@ -11936,7 +11936,7 @@ var BABYLON;
              * Returns the current version of the framework
              */
             get: function () {
-                return "3.3.0-beta.6";
+                return "3.3.0-rc.0";
             },
             enumerable: true,
             configurable: true
@@ -47715,7 +47715,9 @@ var BABYLON;
                         }
                     }
                     else if (this.keysReset.indexOf(keyCode) !== -1) {
-                        camera.restoreState();
+                        if (camera.useInputToRestoreState) {
+                            camera.restoreState();
+                        }
                     }
                 }
             }
@@ -47960,7 +47962,9 @@ var BABYLON;
                     }
                 }
                 else if (p.type === BABYLON.PointerEventTypes.POINTERDOUBLETAP) {
-                    _this.camera.restoreState();
+                    if (_this.camera.useInputToRestoreState) {
+                        _this.camera.restoreState();
+                    }
                 }
                 else if (p.type === BABYLON.PointerEventTypes.POINTERUP && srcElement) {
                     try {
@@ -48413,6 +48417,10 @@ var BABYLON;
              * If false the camera can not arrive upside down.
              */
             _this.allowUpsideDown = true;
+            /**
+             * Define if double tap/click is used to restore the previously saved state of the camera.
+             */
+            _this.useInputToRestoreState = true;
             /** @hidden */
             _this._viewMatrix = new BABYLON.Matrix();
             /**
@@ -49287,6 +49295,9 @@ var BABYLON;
         __decorate([
             BABYLON.serialize()
         ], ArcRotateCamera.prototype, "allowUpsideDown", void 0);
+        __decorate([
+            BABYLON.serialize()
+        ], ArcRotateCamera.prototype, "useInputToRestoreState", void 0);
         return ArcRotateCamera;
     }(BABYLON.TargetCamera));
     BABYLON.ArcRotateCamera = ArcRotateCamera;
@@ -108252,6 +108263,11 @@ var BABYLON;
             this._elevationReturnWaitTime = 1000;
             this._zoomStopsAnimation = false;
             this._framingTime = 1500;
+            /**
+             * Define if the behavior should automatically change the configured
+             * camera limits and sensibilities.
+             */
+            this.autoCorrectCameraLimitsAndSensibility = true;
             this._isPointerDown = false;
             this._lastInteractionTime = -Infinity;
             // Framing control
@@ -108547,19 +108563,23 @@ var BABYLON;
             var radius = 0;
             if (this._mode === FramingBehavior.FitFrustumSidesMode) {
                 var position = this._calculateLowerRadiusFromModelBoundingSphere(minimumWorld, maximumWorld);
-                this._attachedCamera.lowerRadiusLimit = radiusWorld.length() + this._attachedCamera.minZ;
+                if (this.autoCorrectCameraLimitsAndSensibility) {
+                    this._attachedCamera.lowerRadiusLimit = radiusWorld.length() + this._attachedCamera.minZ;
+                }
                 radius = position;
             }
             else if (this._mode === FramingBehavior.IgnoreBoundsSizeMode) {
                 radius = this._calculateLowerRadiusFromModelBoundingSphere(minimumWorld, maximumWorld);
-                if (this._attachedCamera.lowerRadiusLimit === null) {
+                if (this.autoCorrectCameraLimitsAndSensibility && this._attachedCamera.lowerRadiusLimit === null) {
                     this._attachedCamera.lowerRadiusLimit = this._attachedCamera.minZ;
                 }
             }
             // Set sensibilities
-            var extend = maximumWorld.subtract(minimumWorld).length();
-            this._attachedCamera.panningSensibility = 5000 / extend;
-            this._attachedCamera.wheelPrecision = 100 / radius;
+            if (this.autoCorrectCameraLimitsAndSensibility) {
+                var extend = maximumWorld.subtract(minimumWorld).length();
+                this._attachedCamera.panningSensibility = 5000 / extend;
+                this._attachedCamera.wheelPrecision = 100 / radius;
+            }
             // transition to new radius
             if (!this._radiusTransition) {
                 this._radiusTransition = BABYLON.Animation.CreateAnimation("radius", BABYLON.Animation.ANIMATIONTYPE_FLOAT, 60, FramingBehavior.EasingFunction);

+ 1 - 1
dist/preview release/glTF2Interface/package.json

@@ -1,7 +1,7 @@
 {
     "name": "babylonjs-gltf2interface",
     "description": "A typescript declaration of babylon's gltf2 inteface.",
-    "version": "3.3.0-beta.6",
+    "version": "3.3.0-rc.0",
     "repository": {
         "type": "git",
         "url": "https://github.com/BabylonJS/Babylon.js.git"

+ 1 - 1
dist/preview release/gui/package.json

@@ -4,7 +4,7 @@
     },
     "name": "babylonjs-gui",
     "description": "The Babylon.js GUI library is an extension you can use to generate interactive user interface. It is build on top of the DynamicTexture.",
-    "version": "3.3.0-beta.6",
+    "version": "3.3.0-rc.0",
     "repository": {
         "type": "git",
         "url": "https://github.com/BabylonJS/Babylon.js.git"

+ 1 - 1
dist/preview release/inspector/package.json

@@ -4,7 +4,7 @@
     },
     "name": "babylonjs-inspector",
     "description": "The Babylon.js inspector.",
-    "version": "3.3.0-beta.6",
+    "version": "3.3.0-rc.0",
     "repository": {
         "type": "git",
         "url": "https://github.com/BabylonJS/Babylon.js.git"

+ 2 - 2
dist/preview release/loaders/package.json

@@ -4,7 +4,7 @@
     },
     "name": "babylonjs-loaders",
     "description": "The Babylon.js file loaders library is an extension you can use to load different 3D file types into a Babylon scene.",
-    "version": "3.3.0-beta.6",
+    "version": "3.3.0-rc.0",
     "repository": {
         "type": "git",
         "url": "https://github.com/BabylonJS/Babylon.js.git"
@@ -27,7 +27,7 @@
     ],
     "license": "Apache-2.0",
     "dependencies": {
-        "babylonjs-gltf2interface": "3.3.0-beta.6"
+        "babylonjs-gltf2interface": "3.3.0-rc.0"
     },
     "peerDependencies": {
         "babylonjs": ">=3.2.0-alpha"

+ 1 - 1
dist/preview release/materialsLibrary/package.json

@@ -4,7 +4,7 @@
     },
     "name": "babylonjs-materials",
     "description": "The Babylon.js materials library is a collection of advanced materials to be used in a Babylon.js scene.",
-    "version": "3.3.0-beta.6",
+    "version": "3.3.0-rc.0",
     "repository": {
         "type": "git",
         "url": "https://github.com/BabylonJS/Babylon.js.git"

+ 1 - 1
dist/preview release/postProcessesLibrary/package.json

@@ -4,7 +4,7 @@
     },
     "name": "babylonjs-post-process",
     "description": "The Babylon.js materials library is a collection of advanced materials to be used in a Babylon.js scene.",
-    "version": "3.3.0-beta.6",
+    "version": "3.3.0-rc.0",
     "repository": {
         "type": "git",
         "url": "https://github.com/BabylonJS/Babylon.js.git"

+ 1 - 1
dist/preview release/proceduralTexturesLibrary/package.json

@@ -4,7 +4,7 @@
     },
     "name": "babylonjs-procedural-textures",
     "description": "The Babylon.js materials library is a collection of advanced materials to be used in a Babylon.js scene.",
-    "version": "3.3.0-beta.6",
+    "version": "3.3.0-rc.0",
     "repository": {
         "type": "git",
         "url": "https://github.com/BabylonJS/Babylon.js.git"

+ 3 - 5
dist/preview release/serializers/babylon.glTF2Serializer.d.ts

@@ -945,11 +945,6 @@ declare module BABYLON.GLTF2.Exporter {
         postExportMeshPrimitiveAsync?(context: string, meshPrimitive: IMeshPrimitive, babylonSubMesh: SubMesh, binaryWriter: _BinaryWriter): Nullable<Promise<IMeshPrimitive>>;
     }
 }
-/**
- * Defines the module for the built-in glTF 2.0 exporter extensions.
- */
-declare module BABYLON.GLTF2.Extensions {
-}
 
 
 declare module BABYLON {
@@ -974,6 +969,9 @@ declare module BABYLON {
 }
 
 
+/**
+ * @hidden
+ */
 declare module BABYLON.GLTF2.Exporter.Extensions {
     /**
      * @hidden

+ 3 - 0
dist/preview release/serializers/babylon.glTF2Serializer.js

@@ -3457,6 +3457,9 @@ var BABYLON;
 //# sourceMappingURL=babylon.glTFFileExporter.js.map
 
 /// <reference path="../../../../../dist/preview release/gltf2Interface/babylon.glTF2Interface.d.ts"/>
+/**
+ * @hidden
+ */
 var BABYLON;
 (function (BABYLON) {
     var GLTF2;

+ 3 - 5
dist/preview release/serializers/babylonjs.serializers.d.ts

@@ -953,11 +953,6 @@ declare module BABYLON.GLTF2.Exporter {
         postExportMeshPrimitiveAsync?(context: string, meshPrimitive: IMeshPrimitive, babylonSubMesh: SubMesh, binaryWriter: _BinaryWriter): Nullable<Promise<IMeshPrimitive>>;
     }
 }
-/**
- * Defines the module for the built-in glTF 2.0 exporter extensions.
- */
-declare module BABYLON.GLTF2.Extensions {
-}
 
 
 declare module BABYLON {
@@ -982,6 +977,9 @@ declare module BABYLON {
 }
 
 
+/**
+ * @hidden
+ */
 declare module BABYLON.GLTF2.Exporter.Extensions {
     /**
      * @hidden

+ 3 - 0
dist/preview release/serializers/babylonjs.serializers.js

@@ -3618,6 +3618,9 @@ var BABYLON;
 //# sourceMappingURL=babylon.glTFFileExporter.js.map
 
 
+/**
+ * @hidden
+ */
 var BABYLON;
 (function (BABYLON) {
     var GLTF2;

+ 3 - 5
dist/preview release/serializers/babylonjs.serializers.module.d.ts

@@ -960,11 +960,6 @@ declare module BABYLON.GLTF2.Exporter {
         postExportMeshPrimitiveAsync?(context: string, meshPrimitive: IMeshPrimitive, babylonSubMesh: SubMesh, binaryWriter: _BinaryWriter): Nullable<Promise<IMeshPrimitive>>;
     }
 }
-/**
- * Defines the module for the built-in glTF 2.0 exporter extensions.
- */
-declare module BABYLON.GLTF2.Extensions {
-}
 
 
 declare module BABYLON {
@@ -989,6 +984,9 @@ declare module BABYLON {
 }
 
 
+/**
+ * @hidden
+ */
 declare module BABYLON.GLTF2.Exporter.Extensions {
     /**
      * @hidden

+ 2 - 2
dist/preview release/serializers/package.json

@@ -4,7 +4,7 @@
     },
     "name": "babylonjs-serializers",
     "description": "The Babylon.js serializers library is an extension you can use to serialize Babylon scenes.",
-    "version": "3.3.0-beta.6",
+    "version": "3.3.0-rc.0",
     "repository": {
         "type": "git",
         "url": "https://github.com/BabylonJS/Babylon.js.git"
@@ -27,7 +27,7 @@
     ],
     "license": "Apache-2.0",
     "dependencies": {
-        "babylonjs-gltf2interface": "3.3.0-beta.6"
+        "babylonjs-gltf2interface": "3.3.0-rc.0"
     },
     "peerDependencies": {
         "babylonjs": ">=3.2.0-alpha"

File diff suppressed because it is too large
+ 1 - 1
dist/preview release/viewer/babylon.viewer.js


File diff suppressed because it is too large
+ 1 - 1
dist/preview release/viewer/babylon.viewer.max.js


+ 1 - 1
package.json

@@ -9,7 +9,7 @@
     ],
     "name": "babylonjs",
     "description": "Babylon.js is a JavaScript 3D engine based on webgl.",
-    "version": "3.3.0-beta.6",
+    "version": "3.3.0-rc.0",
     "repository": {
         "type": "git",
         "url": "https://github.com/BabylonJS/Babylon.js.git"

+ 1 - 1
src/Engine/babylon.engine.ts

@@ -475,7 +475,7 @@
          * Returns the current version of the framework
          */
         public static get Version(): string {
-            return "3.3.0-beta.6";
+            return "3.3.0-rc.0";
         }
 
         // Updatable statics so stick with vars here