David Catuhe 7 år sedan
förälder
incheckning
95fa7ee945

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 2338 - 2337
Playground/babylon.d.txt


+ 8 - 5
Tools/Gulp/gulp-validateTypedoc.js

@@ -223,7 +223,9 @@ Validate.prototype.add = function (filePath, content) {
     var json = JSON.parse(contentString);
 
     this.validateTypedoc(json);
-    this.results.errors += this.results[this.filePath].errors;
+    if (this.results[this.filePath]) {
+        this.results.errors += this.results[this.filePath].errors;
+    }
 }
 
 Validate.prototype.getResults = function () {
@@ -271,16 +273,17 @@ Validate.prototype.validateTypedocNamespaces = function (namespaces) {
     }
 
     // Check first sub module like BABYLON.Debug or BABYLON.GUI
-    var firstChild = namespace.children[0];
-    if (firstChild.kindString === "Module") {
-        namespace = firstChild;
+    if (namespace.children && namespace.children.length > 0) {
+        var firstChild = namespace.children[0];
+        if (firstChild.kindString === "Module") {
+            namespace = firstChild;
+        }
     }
 
     // Validate Classes
     for (var a in namespace.children) {
         containerNode = namespace.children[a];
 
-
         // Account for undefined access modifiers.
         if (!containerNode.flags.isPublic &&
             !containerNode.flags.isPrivate &&

+ 1 - 0
dist/preview release/gui/babylon.gui.d.ts

@@ -445,6 +445,7 @@ declare module BABYLON.GUI {
         transformCoordinates(x: number, y: number, result: Vector2): Matrix2D;
         /**
          * Creates an identity matrix
+         * @returns a new matrix
          */
         static Identity(): Matrix2D;
         /**

+ 1 - 0
dist/preview release/gui/babylon.gui.js

@@ -1185,6 +1185,7 @@ var BABYLON;
             // Statics
             /**
              * Creates an identity matrix
+             * @returns a new matrix
              */
             Matrix2D.Identity = function () {
                 return new Matrix2D(1, 0, 0, 1, 0, 0);

+ 1 - 0
dist/preview release/gui/babylon.gui.module.d.ts

@@ -450,6 +450,7 @@ declare module BABYLON.GUI {
         transformCoordinates(x: number, y: number, result: Vector2): Matrix2D;
         /**
          * Creates an identity matrix
+         * @returns a new matrix
          */
         static Identity(): Matrix2D;
         /**