David Catuhe преди 7 години
родител
ревизия
ae5d9fc586

Файловите разлики са ограничени, защото са твърде много
+ 10873 - 10578
Playground/babylon.d.txt


Файловите разлики са ограничени, защото са твърде много
+ 45 - 63
Viewer/dist/viewer.js


Файловите разлики са ограничени, защото са твърде много
+ 45 - 63
Viewer/dist/viewer.min.js


Файловите разлики са ограничени, защото са твърде много
+ 3135 - 3127
dist/preview release/babylon.d.ts


Файловите разлики са ограничени, защото са твърде много
+ 3 - 3
dist/preview release/babylon.js


+ 10 - 2
dist/preview release/babylon.max.js

@@ -14587,12 +14587,20 @@ var BABYLON;
         Node.prototype.getAnimationRange = function (name) {
             return this._ranges[name];
         };
+        /**
+         * Will start the animation sequence
+         * @param name defines the range frames for animation sequence
+         * @param loop defines if the animation should loop (false by default)
+         * @param speedRatio defines the speed factor in which to run the animation (1 by default)
+         * @param onAnimationEnd defines a function to be executed when the animation ended (undefined by default)
+         * @returns the {BABYLON.Animatable} object created for this animation. If range does not exist, it will return null
+         */
         Node.prototype.beginAnimation = function (name, loop, speedRatio, onAnimationEnd) {
             var range = this.getAnimationRange(name);
             if (!range) {
-                return;
+                return null;
             }
-            this._scene.beginAnimation(this, range.from, range.to, loop, speedRatio, onAnimationEnd);
+            return this._scene.beginAnimation(this, range.from, range.to, loop, speedRatio, onAnimationEnd);
         };
         Node.prototype.serializeAnimationRanges = function () {
             var serializationRanges = [];

Файловите разлики са ограничени, защото са твърде много
+ 3 - 3
dist/preview release/babylon.worker.js


Файловите разлики са ограничени, защото са твърде много
+ 12623 - 12615
dist/preview release/customConfigurations/minimalGLTFViewer/babylon.d.ts


Файловите разлики са ограничени, защото са твърде много
+ 3 - 3
dist/preview release/customConfigurations/minimalGLTFViewer/babylon.js


+ 10 - 2
dist/preview release/customConfigurations/minimalGLTFViewer/babylon.max.js

@@ -14587,12 +14587,20 @@ var BABYLON;
         Node.prototype.getAnimationRange = function (name) {
             return this._ranges[name];
         };
+        /**
+         * Will start the animation sequence
+         * @param name defines the range frames for animation sequence
+         * @param loop defines if the animation should loop (false by default)
+         * @param speedRatio defines the speed factor in which to run the animation (1 by default)
+         * @param onAnimationEnd defines a function to be executed when the animation ended (undefined by default)
+         * @returns the {BABYLON.Animatable} object created for this animation. If range does not exist, it will return null
+         */
         Node.prototype.beginAnimation = function (name, loop, speedRatio, onAnimationEnd) {
             var range = this.getAnimationRange(name);
             if (!range) {
-                return;
+                return null;
             }
-            this._scene.beginAnimation(this, range.from, range.to, loop, speedRatio, onAnimationEnd);
+            return this._scene.beginAnimation(this, range.from, range.to, loop, speedRatio, onAnimationEnd);
         };
         Node.prototype.serializeAnimationRanges = function () {
             var serializationRanges = [];

+ 10 - 2
dist/preview release/customConfigurations/minimalGLTFViewer/es6.js

@@ -14573,12 +14573,20 @@ var BABYLON;
         Node.prototype.getAnimationRange = function (name) {
             return this._ranges[name];
         };
+        /**
+         * Will start the animation sequence
+         * @param name defines the range frames for animation sequence
+         * @param loop defines if the animation should loop (false by default)
+         * @param speedRatio defines the speed factor in which to run the animation (1 by default)
+         * @param onAnimationEnd defines a function to be executed when the animation ended (undefined by default)
+         * @returns the {BABYLON.Animatable} object created for this animation. If range does not exist, it will return null
+         */
         Node.prototype.beginAnimation = function (name, loop, speedRatio, onAnimationEnd) {
             var range = this.getAnimationRange(name);
             if (!range) {
-                return;
+                return null;
             }
-            this._scene.beginAnimation(this, range.from, range.to, loop, speedRatio, onAnimationEnd);
+            return this._scene.beginAnimation(this, range.from, range.to, loop, speedRatio, onAnimationEnd);
         };
         Node.prototype.serializeAnimationRanges = function () {
             var serializationRanges = [];

+ 10 - 2
dist/preview release/es6.js

@@ -14573,12 +14573,20 @@ var BABYLON;
         Node.prototype.getAnimationRange = function (name) {
             return this._ranges[name];
         };
+        /**
+         * Will start the animation sequence
+         * @param name defines the range frames for animation sequence
+         * @param loop defines if the animation should loop (false by default)
+         * @param speedRatio defines the speed factor in which to run the animation (1 by default)
+         * @param onAnimationEnd defines a function to be executed when the animation ended (undefined by default)
+         * @returns the {BABYLON.Animatable} object created for this animation. If range does not exist, it will return null
+         */
         Node.prototype.beginAnimation = function (name, loop, speedRatio, onAnimationEnd) {
             var range = this.getAnimationRange(name);
             if (!range) {
-                return;
+                return null;
             }
-            this._scene.beginAnimation(this, range.from, range.to, loop, speedRatio, onAnimationEnd);
+            return this._scene.beginAnimation(this, range.from, range.to, loop, speedRatio, onAnimationEnd);
         };
         Node.prototype.serializeAnimationRanges = function () {
             var serializationRanges = [];

Файловите разлики са ограничени, защото са твърде много
+ 2 - 2
dist/preview release/inspector/babylon.inspector.bundle.js


Файловите разлики са ограничени, защото са твърде много
+ 1 - 1
dist/preview release/loaders/babylon.objFileLoader.min.js


Файловите разлики са ограничени, защото са твърде много
+ 2 - 2
dist/preview release/loaders/babylonjs.loaders.min.js


+ 2 - 41
dist/preview release/typedocValidationBaseline.json

@@ -1,7 +1,7 @@
 {
-  "errors": 8179,
+  "errors": 8172,
   "babylon.typedoc.json": {
-    "errors": 8179,
+    "errors": 8172,
     "AnimationKeyInterpolation": {
       "Enumeration": {
         "Comments": {
@@ -22184,33 +22184,6 @@
             }
           }
         },
-        "beginAnimation": {
-          "Comments": {
-            "MissingText": true
-          },
-          "Parameter": {
-            "name": {
-              "Comments": {
-                "MissingText": true
-              }
-            },
-            "loop": {
-              "Comments": {
-                "MissingText": true
-              }
-            },
-            "speedRatio": {
-              "Comments": {
-                "MissingText": true
-              }
-            },
-            "onAnimationEnd": {
-              "Comments": {
-                "MissingText": true
-              }
-            }
-          }
-        },
         "computeWorldMatrix": {
           "Comments": {
             "MissingText": true
@@ -37217,18 +37190,6 @@
             }
           }
         },
-        "GetFolderPath": {
-          "Comments": {
-            "MissingText": true
-          },
-          "Parameter": {
-            "uri": {
-              "Comments": {
-                "MissingText": true
-              }
-            }
-          }
-        },
         "GetPointerPrefix": {
           "Comments": {
             "MissingText": true

Файловите разлики са ограничени, защото са твърде много
+ 9 - 9
dist/preview release/viewer/babylon.viewer.js


+ 6 - 6
src/babylon.node.ts

@@ -413,13 +413,13 @@
 
         /**
          * Will start the animation sequence
-         * @param {string} name - range frames for animation sequence
-         * @param {boolean} [loop] - should the animation loop
-         * @param {number} [speedRatio] - the speed in which to run the animation
-         * @param {Function} [onAnimationEnd] function to be executed when the animation ended.
-         * Returns {BABYLON.Animatable} the animatable object created for this animation, if range not exists will return null
+         * @param name defines the range frames for animation sequence
+         * @param loop defines if the animation should loop (false by default)
+         * @param speedRatio defines the speed factor in which to run the animation (1 by default)
+         * @param onAnimationEnd defines a function to be executed when the animation ended (undefined by default)
+         * @returns the {BABYLON.Animatable} object created for this animation. If range does not exist, it will return null
          */
-        public beginAnimation(name: string, loop?: boolean, speedRatio?: number, onAnimationEnd?: () => void): Animatable? {
+        public beginAnimation(name: string, loop?: boolean, speedRatio?: number, onAnimationEnd?: () => void): Nullable<Animatable> {
             var range = this.getAnimationRange(name);
 
             if (!range) {