瀏覽代碼

Fix all .d.ts files link

sebastien 6 年之前
父節點
當前提交
76d0e32b55

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


+ 2 - 2
Tools/Gulp/config.json

@@ -13,8 +13,8 @@
         "intellisenseSources": [
             "../../dist/preview release/babylon.d.ts",
             "../../dist/preview release/gui/babylon.gui.d.ts",
-            "../../dist/preview release/loaders/babylon.glTF2FileLoader.d.ts",
-            "../../dist/preview release/serializers/babylon.glTF2Serializer.d.ts",
+            "../../dist/preview release/loaders/babylonjs.loaders.d.ts",
+            "../../dist/preview release/serializers/babylonjs.serializers.d.ts",
             "../../dist/preview release/glTF2Interface/babylon.glTF2Interface.d.ts",
             "../../dist/preview release/materialsLibrary/babylonjs.materials.d.ts",
             "../../dist/preview release/postProcessesLibrary/babylonjs.postProcess.d.ts",

+ 1 - 1
Tools/Gulp/tasks/gulpTasks-typedoc.js

@@ -18,7 +18,7 @@ gulp.task("typedoc-generate", function() {
             "../../dist/preview release/gui/babylon.gui.d.ts",
             "../../dist/preview release/glTF2Interface/babylon.glTF2Interface.d.ts",
             "../../dist/preview release/loaders/babylonjs.loaders.d.ts",
-            "../../dist/preview release/serializers/babylon.glTF2Serializer.d.ts"])
+            "../../dist/preview release/serializers/babylonjs.serializers.d.ts"])
         .pipe(typedoc({
             // TypeScript options (see typescript docs)
             mode: "modules",

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


+ 1 - 1
tests/unit/babylon/babylonReference.ts

@@ -1,7 +1,7 @@
 /// <reference path="../../../dist/preview release/babylon.d.ts" />
 /// <reference path="../../../dist/preview release/loaders/babylonjs.loaders.d.ts" />
 /// <reference path="../../../dist/preview release/glTF2Interface/babylon.glTF2Interface.d.ts"/>
-/// <reference path="../../../dist/preview release/serializers/babylon.glTF2Serializer.d.ts" />
+/// <reference path="../../../dist/preview release/serializers/babylonjs.serializers.d.ts" />
 
 /// <reference path="../../../node_modules/@types/chai/index.d.ts" />
 /// <reference path="../../../node_modules/@types/mocha/index.d.ts" />

+ 3 - 3
tests/unit/babylon/serializers/babylon.glTFSerializer.tests.ts

@@ -42,7 +42,7 @@ describe('Babylon glTF Serializer', () => {
             babylonStandardMaterial.specularColor = BABYLON.Color3.Black();
             babylonStandardMaterial.specularPower = 64;
             babylonStandardMaterial.alpha = 1;
-            const materialExporter = new BABYLON.GLTF2.Exporter._GLTFMaterialExporter(new BABYLON.GLTF2.Exporter._Exporter(scene));
+            const materialExporter = new BABYLON._GLTFMaterialExporter(new BABYLON._Exporter(scene));
 
             const metalRough = materialExporter._convertToGLTFPBRMetallicRoughness(babylonStandardMaterial);
 
@@ -53,8 +53,8 @@ describe('Babylon glTF Serializer', () => {
             metalRough.roughnessFactor.should.be.approximately(0.328809, 1e-6);
         });
         it('should solve for metallic', () => {
-            BABYLON.GLTF2.Exporter._GLTFMaterialExporter._SolveMetallic(1.0, 0.0, 1.0).should.be.equal(0);
-            BABYLON.GLTF2.Exporter._GLTFMaterialExporter._SolveMetallic(0.0, 1.0, 1.0).should.be.approximately(1, 1e-6);
+            BABYLON._GLTFMaterialExporter._SolveMetallic(1.0, 0.0, 1.0).should.be.equal(0);
+            BABYLON._GLTFMaterialExporter._SolveMetallic(0.0, 1.0, 1.0).should.be.approximately(1, 1e-6);
         });
         it('should serialize empty Babylon scene to glTF with only asset property', () => {
             const scene = new BABYLON.Scene(subject);