Преглед изворни кода

Fix lib issue with intelisense

David Catuhe пре 5 година
родитељ
комит
07519b6adb
3 измењених фајлова са 18 додато и 2 уклоњено
  1. 8 0
      Playground/babylon.d.txt
  2. 2 2
      Playground/js/monacoCreator.js
  3. 8 0
      dist/preview release/documentation.d.ts

+ 8 - 0
Playground/babylon.d.txt

@@ -18860,6 +18860,7 @@ declare module BABYLON {
         private _vectors3;
         private _vectors4;
         private _matrices;
+        private _matrixArrays;
         private _matrices3x3;
         private _matrices2x2;
         private _vectors2Arrays;
@@ -18997,6 +18998,13 @@ declare module BABYLON {
          */
         setMatrix(name: string, value: Matrix): ShaderMaterial;
         /**
+         * Set a float32Array in the shader from a matrix array.
+         * @param name Define the name of the uniform as defined in the shader
+         * @param value Define the value to give to the uniform
+         * @return the material itself allowing "fluent" like uniform updates
+         */
+        setMatrices(name: string, value: Matrix[]): ShaderMaterial;
+        /**
          * Set a mat3 in the shader from a Float32Array.
          * @param name Define the name of the uniform as defined in the shader
          * @param value Define the value to give to the uniform

+ 2 - 2
Playground/js/monacoCreator.js

@@ -62,7 +62,7 @@ class MonacoCreator {
 
                         if (this.monacoMode === "javascript") {
                             typescript.javascriptDefaults.setCompilerOptions({
-                                noLib: true,
+                                noLib: false,
                                 allowNonTsExtensions: true // required to prevent Uncaught Error: Could not find file: 'inmemory://model/1'.
                             });
 
@@ -71,7 +71,7 @@ class MonacoCreator {
                             typescript.typescriptDefaults.setCompilerOptions({
                                 module: typescript.ModuleKind.AMD,
                                 target: typescript.ScriptTarget.ES5,
-                                noLib: true,
+                                noLib: false,
                                 noResolve: true,
                                 suppressOutputPathCheck: true,
 

+ 8 - 0
dist/preview release/documentation.d.ts

@@ -19129,6 +19129,7 @@ declare module BABYLON {
         private _vectors3;
         private _vectors4;
         private _matrices;
+        private _matrixArrays;
         private _matrices3x3;
         private _matrices2x2;
         private _vectors2Arrays;
@@ -19266,6 +19267,13 @@ declare module BABYLON {
          */
         setMatrix(name: string, value: Matrix): ShaderMaterial;
         /**
+         * Set a float32Array in the shader from a matrix array.
+         * @param name Define the name of the uniform as defined in the shader
+         * @param value Define the value to give to the uniform
+         * @return the material itself allowing "fluent" like uniform updates
+         */
+        setMatrices(name: string, value: Matrix[]): ShaderMaterial;
+        /**
          * Set a mat3 in the shader from a Float32Array.
          * @param name Define the name of the uniform as defined in the shader
          * @param value Define the value to give to the uniform