瀏覽代碼

Hide unwanted namespace

David Catuhe 6 年之前
父節點
當前提交
7006410446

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


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


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

@@ -46,6 +46,9 @@ declare module BABYLON {
 }
 }
 
 
 
 
+/**
+ * @hidden
+ */
 declare module BABYLON.GLTF2.Exporter {
 declare module BABYLON.GLTF2.Exporter {
     /**
     /**
      * Converts Babylon Scene into glTF 2.0.
      * Converts Babylon Scene into glTF 2.0.

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

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

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

@@ -54,6 +54,9 @@ declare module BABYLON {
 }
 }
 
 
 
 
+/**
+ * @hidden
+ */
 declare module BABYLON.GLTF2.Exporter {
 declare module BABYLON.GLTF2.Exporter {
     /**
     /**
      * Converts Babylon Scene into glTF 2.0.
      * Converts Babylon Scene into glTF 2.0.

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

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

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

@@ -61,6 +61,9 @@ declare module BABYLON {
 }
 }
 
 
 
 
+/**
+ * @hidden
+ */
 declare module BABYLON.GLTF2.Exporter {
 declare module BABYLON.GLTF2.Exporter {
     /**
     /**
      * Converts Babylon Scene into glTF 2.0.
      * Converts Babylon Scene into glTF 2.0.

+ 4 - 4
dist/preview release/viewer/babylon.viewer.d.ts

@@ -168,11 +168,11 @@ declare module BabylonViewer {
                 * Mainly used for help and errors
                 * Mainly used for help and errors
                 * @param subScreen the name of the subScreen. Those can be defined in the configuration object
                 * @param subScreen the name of the subScreen. Those can be defined in the configuration object
                 */
                 */
-            showOverlayScreen(subScreen: string): Promise<string> | Promise<Template>;
+            showOverlayScreen(subScreen: string): Promise<Template> | Promise<string>;
             /**
             /**
                 * Hide the overlay screen.
                 * Hide the overlay screen.
                 */
                 */
-            hideOverlayScreen(): Promise<string> | Promise<Template>;
+            hideOverlayScreen(): Promise<Template> | Promise<string>;
             /**
             /**
                 * show the viewer (in case it was hidden)
                 * show the viewer (in case it was hidden)
                 *
                 *
@@ -189,11 +189,11 @@ declare module BabylonViewer {
                 * Show the loading screen.
                 * Show the loading screen.
                 * The loading screen can be configured using the configuration object
                 * The loading screen can be configured using the configuration object
                 */
                 */
-            showLoadingScreen(): Promise<string> | Promise<Template>;
+            showLoadingScreen(): Promise<Template> | Promise<string>;
             /**
             /**
                 * Hide the loading screen
                 * Hide the loading screen
                 */
                 */
-            hideLoadingScreen(): Promise<string> | Promise<Template>;
+            hideLoadingScreen(): Promise<Template> | Promise<string>;
             dispose(): void;
             dispose(): void;
             protected _onConfigurationLoaded(configuration: ViewerConfiguration): void;
             protected _onConfigurationLoaded(configuration: ViewerConfiguration): void;
     }
     }

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

@@ -200,11 +200,11 @@ declare module 'babylonjs-viewer/viewer/defaultViewer' {
                 * Mainly used for help and errors
                 * Mainly used for help and errors
                 * @param subScreen the name of the subScreen. Those can be defined in the configuration object
                 * @param subScreen the name of the subScreen. Those can be defined in the configuration object
                 */
                 */
-            showOverlayScreen(subScreen: string): Promise<string> | Promise<Template>;
+            showOverlayScreen(subScreen: string): Promise<Template> | Promise<string>;
             /**
             /**
                 * Hide the overlay screen.
                 * Hide the overlay screen.
                 */
                 */
-            hideOverlayScreen(): Promise<string> | Promise<Template>;
+            hideOverlayScreen(): Promise<Template> | Promise<string>;
             /**
             /**
                 * show the viewer (in case it was hidden)
                 * show the viewer (in case it was hidden)
                 *
                 *
@@ -221,11 +221,11 @@ declare module 'babylonjs-viewer/viewer/defaultViewer' {
                 * Show the loading screen.
                 * Show the loading screen.
                 * The loading screen can be configured using the configuration object
                 * The loading screen can be configured using the configuration object
                 */
                 */
-            showLoadingScreen(): Promise<string> | Promise<Template>;
+            showLoadingScreen(): Promise<Template> | Promise<string>;
             /**
             /**
                 * Hide the loading screen
                 * Hide the loading screen
                 */
                 */
-            hideLoadingScreen(): Promise<string> | Promise<Template>;
+            hideLoadingScreen(): Promise<Template> | Promise<string>;
             dispose(): void;
             dispose(): void;
             protected _onConfigurationLoaded(configuration: ViewerConfiguration): void;
             protected _onConfigurationLoaded(configuration: ViewerConfiguration): void;
     }
     }

+ 5 - 2
serializers/src/glTF/2.0/babylon.glTFExporter.ts

@@ -1,5 +1,8 @@
 /// <reference path="../../../../dist/preview release/glTF2Interface/babylon.glTF2Interface.d.ts"/>
 /// <reference path="../../../../dist/preview release/glTF2Interface/babylon.glTF2Interface.d.ts"/>
 
 
+/**
+ * @hidden
+ */
 module BABYLON.GLTF2.Exporter {
 module BABYLON.GLTF2.Exporter {
     /**
     /**
      * Utility interface for storing vertex attribute data
      * Utility interface for storing vertex attribute data
@@ -1287,7 +1290,7 @@ module BABYLON.GLTF2.Exporter {
          * @returns Node mapping of unique id to index
          * @returns Node mapping of unique id to index
          */
          */
         private createNodeMapAndAnimationsAsync(babylonScene: Scene, nodes: TransformNode[], shouldExportTransformNode: (babylonTransformNode: TransformNode) => boolean, binaryWriter: _BinaryWriter): Promise<{ [key: number]: number }> {
         private createNodeMapAndAnimationsAsync(babylonScene: Scene, nodes: TransformNode[], shouldExportTransformNode: (babylonTransformNode: TransformNode) => boolean, binaryWriter: _BinaryWriter): Promise<{ [key: number]: number }> {
-            let promiseChain =  Promise.resolve();
+            let promiseChain = Promise.resolve();
             const nodeMap: { [key: number]: number } = {};
             const nodeMap: { [key: number]: number } = {};
             let nodeIndex: number;
             let nodeIndex: number;
             let runtimeGLTFAnimation: IAnimation = {
             let runtimeGLTFAnimation: IAnimation = {
@@ -1300,7 +1303,7 @@ module BABYLON.GLTF2.Exporter {
             for (let babylonTransformNode of nodes) {
             for (let babylonTransformNode of nodes) {
                 if (shouldExportTransformNode(babylonTransformNode)) {
                 if (shouldExportTransformNode(babylonTransformNode)) {
                     promiseChain = promiseChain.then(() => {
                     promiseChain = promiseChain.then(() => {
-                        return  this.createNodeAsync(babylonTransformNode, binaryWriter).then((node) => {
+                        return this.createNodeAsync(babylonTransformNode, binaryWriter).then((node) => {
                             const directDescendents = babylonTransformNode.getDescendants(true, (node: Node) => { return (node instanceof TransformNode); });
                             const directDescendents = babylonTransformNode.getDescendants(true, (node: Node) => { return (node instanceof TransformNode); });
                             if (directDescendents.length || node.mesh != null) {
                             if (directDescendents.length || node.mesh != null) {
                                 this._nodes.push(node);
                                 this._nodes.push(node);

+ 0 - 6
tests/validation/config.json

@@ -2,12 +2,6 @@
   "root": "https://rawgit.com/BabylonJS/Website/master",
   "root": "https://rawgit.com/BabylonJS/Website/master",
   "tests": [
   "tests": [
     {
     {
-      "title": "Noise texture",
-      "playgroundId": "#R1JWLA#4",
-      "referenceImage": "noiseTexture.png",
-      "excludeFromAutomaticTesting": true
-    },
-    {
       "title": "Simulate pointer",
       "title": "Simulate pointer",
       "playgroundId": "#8MGKWK#78",
       "playgroundId": "#8MGKWK#78",
       "referenceImage": "simulatePointer.png"
       "referenceImage": "simulatePointer.png"