David Catuhe 7 年之前
父節點
當前提交
6217c28524

文件差異過大導致無法顯示
+ 2329 - 2323
Playground/babylon.d.txt


文件差異過大導致無法顯示
+ 7052 - 7070
dist/preview release/babylon.d.ts


文件差異過大導致無法顯示
+ 1 - 1
dist/preview release/babylon.js


+ 17 - 29
dist/preview release/babylon.max.js

@@ -51252,33 +51252,9 @@ var BABYLON;
         // Statics
         /**
          * Returns a new AnimationGroup object parsed from the source provided.
-         * @param {Object} parsedAnimationGroup - is the source.
-         * @param {Scene} scene - is the scene that will receive the animationGroup
-         * Example of an expected source
-         * {
-                "name": "Run",
-                "from": 0.0,
-                "to": 1.0,
-                "targetedAnimations": [{
-                    "animation": {
-                        "name": "rotationQuaternion animation",
-                        "property": "rotationQuaternion",
-                        "dataType": 2,
-                        "enableBlending": false,
-                        "blendingSpeed": 0.01,
-                        "loopBehavior": 1,
-                        "framePerSecond": 30,
-                        "keys": [{
-                            "frame": 0,
-                            "values": [-0.7071, -0.002, 0.0022, 0.7071]
-                        }, {
-                            "frame": 1,
-                            "values": [-0.7082, -0.0485, 0.0026, 0.7043]
-                        }]
-                    },
-                    "targetId": "d64f9288-d06a-4a70-872f-edbb5a3779c6"
-                }]
-            }
+         * @param parsedAnimationGroup defines the source
+         * @param scene defines the scene that will receive the animationGroup
+         * @returns a new AnimationGroup
          */
         AnimationGroup.Parse = function (parsedAnimationGroup, scene) {
             var animationGroup = new BABYLON.AnimationGroup(parsedAnimationGroup.name, scene);
@@ -51294,11 +51270,17 @@ var BABYLON;
                 animationGroup.normalize(parsedAnimationGroup.from, parsedAnimationGroup.to);
             return animationGroup;
         };
+        /**
+         * Returns the string "AnimationGroup"
+         * @returns "AnimationGroup"
+         */
         AnimationGroup.prototype.getClassName = function () {
             return "AnimationGroup";
         };
         /**
-         * @param {boolean} fullDetails - support for multiple levels of logging within scene loading
+         * Creates a detailled string about the object
+         * @param fullDetails defines if the output string will support multiple levels of logging within scene loading
+         * @returns a string representing the object
          */
         AnimationGroup.prototype.toString = function (fullDetails) {
             var ret = "Name: " + this.name;
@@ -57999,6 +57981,10 @@ var BABYLON;
                 this.noiseTexture.dispose();
                 this.noiseTexture = null;
             }
+            if (this._rampGradientsTexture) {
+                this._rampGradientsTexture.dispose();
+                this._rampGradientsTexture = null;
+            }
             this._removeFromRoot();
             if (this._disposeEmitterOnDispose && !this.emitter.isDisposed) {
                 this.emitter.dispose();
@@ -65245,7 +65231,9 @@ var BABYLON;
                 plane.translate(options.sourcePlane.normal, options.sourcePlane.d);
                 var product = Math.acos(BABYLON.Vector3.Dot(options.sourcePlane.normal, BABYLON.Axis.Z));
                 var vectorProduct = BABYLON.Vector3.Cross(BABYLON.Axis.Z, options.sourcePlane.normal);
-                plane.rotate(vectorProduct, product);
+                if (vectorProduct.lengthSquared() > BABYLON.Epsilon) {
+                    plane.rotate(vectorProduct, product);
+                }
             }
             return plane;
         };

+ 17 - 29
dist/preview release/babylon.no-module.max.js

@@ -51219,33 +51219,9 @@ var BABYLON;
         // Statics
         /**
          * Returns a new AnimationGroup object parsed from the source provided.
-         * @param {Object} parsedAnimationGroup - is the source.
-         * @param {Scene} scene - is the scene that will receive the animationGroup
-         * Example of an expected source
-         * {
-                "name": "Run",
-                "from": 0.0,
-                "to": 1.0,
-                "targetedAnimations": [{
-                    "animation": {
-                        "name": "rotationQuaternion animation",
-                        "property": "rotationQuaternion",
-                        "dataType": 2,
-                        "enableBlending": false,
-                        "blendingSpeed": 0.01,
-                        "loopBehavior": 1,
-                        "framePerSecond": 30,
-                        "keys": [{
-                            "frame": 0,
-                            "values": [-0.7071, -0.002, 0.0022, 0.7071]
-                        }, {
-                            "frame": 1,
-                            "values": [-0.7082, -0.0485, 0.0026, 0.7043]
-                        }]
-                    },
-                    "targetId": "d64f9288-d06a-4a70-872f-edbb5a3779c6"
-                }]
-            }
+         * @param parsedAnimationGroup defines the source
+         * @param scene defines the scene that will receive the animationGroup
+         * @returns a new AnimationGroup
          */
         AnimationGroup.Parse = function (parsedAnimationGroup, scene) {
             var animationGroup = new BABYLON.AnimationGroup(parsedAnimationGroup.name, scene);
@@ -51261,11 +51237,17 @@ var BABYLON;
                 animationGroup.normalize(parsedAnimationGroup.from, parsedAnimationGroup.to);
             return animationGroup;
         };
+        /**
+         * Returns the string "AnimationGroup"
+         * @returns "AnimationGroup"
+         */
         AnimationGroup.prototype.getClassName = function () {
             return "AnimationGroup";
         };
         /**
-         * @param {boolean} fullDetails - support for multiple levels of logging within scene loading
+         * Creates a detailled string about the object
+         * @param fullDetails defines if the output string will support multiple levels of logging within scene loading
+         * @returns a string representing the object
          */
         AnimationGroup.prototype.toString = function (fullDetails) {
             var ret = "Name: " + this.name;
@@ -57966,6 +57948,10 @@ var BABYLON;
                 this.noiseTexture.dispose();
                 this.noiseTexture = null;
             }
+            if (this._rampGradientsTexture) {
+                this._rampGradientsTexture.dispose();
+                this._rampGradientsTexture = null;
+            }
             this._removeFromRoot();
             if (this._disposeEmitterOnDispose && !this.emitter.isDisposed) {
                 this.emitter.dispose();
@@ -65212,7 +65198,9 @@ var BABYLON;
                 plane.translate(options.sourcePlane.normal, options.sourcePlane.d);
                 var product = Math.acos(BABYLON.Vector3.Dot(options.sourcePlane.normal, BABYLON.Axis.Z));
                 var vectorProduct = BABYLON.Vector3.Cross(BABYLON.Axis.Z, options.sourcePlane.normal);
-                plane.rotate(vectorProduct, product);
+                if (vectorProduct.lengthSquared() > BABYLON.Epsilon) {
+                    plane.rotate(vectorProduct, product);
+                }
             }
             return plane;
         };

文件差異過大導致無法顯示
+ 1 - 1
dist/preview release/babylon.worker.js


+ 17 - 29
dist/preview release/es6.js

@@ -51219,33 +51219,9 @@ var BABYLON;
         // Statics
         /**
          * Returns a new AnimationGroup object parsed from the source provided.
-         * @param {Object} parsedAnimationGroup - is the source.
-         * @param {Scene} scene - is the scene that will receive the animationGroup
-         * Example of an expected source
-         * {
-                "name": "Run",
-                "from": 0.0,
-                "to": 1.0,
-                "targetedAnimations": [{
-                    "animation": {
-                        "name": "rotationQuaternion animation",
-                        "property": "rotationQuaternion",
-                        "dataType": 2,
-                        "enableBlending": false,
-                        "blendingSpeed": 0.01,
-                        "loopBehavior": 1,
-                        "framePerSecond": 30,
-                        "keys": [{
-                            "frame": 0,
-                            "values": [-0.7071, -0.002, 0.0022, 0.7071]
-                        }, {
-                            "frame": 1,
-                            "values": [-0.7082, -0.0485, 0.0026, 0.7043]
-                        }]
-                    },
-                    "targetId": "d64f9288-d06a-4a70-872f-edbb5a3779c6"
-                }]
-            }
+         * @param parsedAnimationGroup defines the source
+         * @param scene defines the scene that will receive the animationGroup
+         * @returns a new AnimationGroup
          */
         AnimationGroup.Parse = function (parsedAnimationGroup, scene) {
             var animationGroup = new BABYLON.AnimationGroup(parsedAnimationGroup.name, scene);
@@ -51261,11 +51237,17 @@ var BABYLON;
                 animationGroup.normalize(parsedAnimationGroup.from, parsedAnimationGroup.to);
             return animationGroup;
         };
+        /**
+         * Returns the string "AnimationGroup"
+         * @returns "AnimationGroup"
+         */
         AnimationGroup.prototype.getClassName = function () {
             return "AnimationGroup";
         };
         /**
-         * @param {boolean} fullDetails - support for multiple levels of logging within scene loading
+         * Creates a detailled string about the object
+         * @param fullDetails defines if the output string will support multiple levels of logging within scene loading
+         * @returns a string representing the object
          */
         AnimationGroup.prototype.toString = function (fullDetails) {
             var ret = "Name: " + this.name;
@@ -57966,6 +57948,10 @@ var BABYLON;
                 this.noiseTexture.dispose();
                 this.noiseTexture = null;
             }
+            if (this._rampGradientsTexture) {
+                this._rampGradientsTexture.dispose();
+                this._rampGradientsTexture = null;
+            }
             this._removeFromRoot();
             if (this._disposeEmitterOnDispose && !this.emitter.isDisposed) {
                 this.emitter.dispose();
@@ -65212,7 +65198,9 @@ var BABYLON;
                 plane.translate(options.sourcePlane.normal, options.sourcePlane.d);
                 var product = Math.acos(BABYLON.Vector3.Dot(options.sourcePlane.normal, BABYLON.Axis.Z));
                 var vectorProduct = BABYLON.Vector3.Cross(BABYLON.Axis.Z, options.sourcePlane.normal);
-                plane.rotate(vectorProduct, product);
+                if (vectorProduct.lengthSquared() > BABYLON.Epsilon) {
+                    plane.rotate(vectorProduct, product);
+                }
             }
             return plane;
         };

+ 0 - 21
dist/preview release/viewer/babylon.viewer.d.ts

@@ -1212,27 +1212,6 @@ declare module BabylonViewer {
     }
 }
 declare module BabylonViewer {
-    /**
-        * The configuration loader will load the configuration object from any source and will use the defined mapper to
-        * parse the object and return a conform ViewerConfiguration.
-        * It is a private member of the scene.
-        */
-    export class ConfigurationLoader {
-            constructor(_enableCache?: boolean);
-            /**
-                * load a configuration object that is defined in the initial configuration provided.
-                * The viewer configuration can extend different types of configuration objects and have an extra configuration defined.
-                *
-                * @param initConfig the initial configuration that has the definitions of further configuration to load.
-                * @param callback an optional callback that will be called sync, if noconfiguration needs to be loaded or configuration is payload-only
-                * @returns A promise that delivers the extended viewer configuration, when done.
-                */
-            loadConfiguration(initConfig?: ViewerConfiguration, callback?: (config: ViewerConfiguration) => void): Promise<ViewerConfiguration>;
-            /**
-                * Dispose the configuration loader. This will cancel file requests, if active.
-                */
-            dispose(): void;
-    }
 }
 declare module BabylonViewer {
     export class ObservablesManager {

文件差異過大導致無法顯示
+ 1 - 1
dist/preview release/viewer/babylon.viewer.js


文件差異過大導致無法顯示
+ 1 - 1
dist/preview release/viewer/babylon.viewer.max.js


+ 1 - 22
dist/preview release/viewer/babylon.viewer.module.d.ts

@@ -1295,28 +1295,7 @@ declare module 'babylonjs-viewer/configuration/configurationContainer' {
 }
 
 declare module 'babylonjs-viewer/configuration/loader' {
-    import { ViewerConfiguration } from 'babylonjs-viewer/configuration/configuration';
-    /**
-        * The configuration loader will load the configuration object from any source and will use the defined mapper to
-        * parse the object and return a conform ViewerConfiguration.
-        * It is a private member of the scene.
-        */
-    export class ConfigurationLoader {
-            constructor(_enableCache?: boolean);
-            /**
-                * load a configuration object that is defined in the initial configuration provided.
-                * The viewer configuration can extend different types of configuration objects and have an extra configuration defined.
-                *
-                * @param initConfig the initial configuration that has the definitions of further configuration to load.
-                * @param callback an optional callback that will be called sync, if noconfiguration needs to be loaded or configuration is payload-only
-                * @returns A promise that delivers the extended viewer configuration, when done.
-                */
-            loadConfiguration(initConfig?: ViewerConfiguration, callback?: (config: ViewerConfiguration) => void): Promise<ViewerConfiguration>;
-            /**
-                * Dispose the configuration loader. This will cancel file requests, if active.
-                */
-            dispose(): void;
-    }
+    
 }
 
 declare module 'babylonjs-viewer/managers/observablesManager' {