瀏覽代碼

Better display

Sebastien Lebreton 5 年之前
父節點
當前提交
b024be611d

+ 1 - 1
Playground/js/monacoCreator.js

@@ -112,7 +112,7 @@ class MonacoCreator {
             worker = await monaco.languages.typescript.getTypeScriptWorker();
 
         const languageService = await worker(uri);
-        const source = 'babylonjs';
+        const source = '[deprecated members]';
 
         monaco.editor.setModelMarkers(model, source, []);
         const markers = [];

+ 1 - 1
src/Materials/Node/Blocks/colorMergerBlock.ts

@@ -85,7 +85,7 @@ export class ColorMergerBlock extends NodeMaterialBlock {
 
     /**
      * Gets the rgb component (output)
-     * @deprecated Please use rgbOut instead
+     * @deprecated Please use rgbOut instead.
      */
     public get rgb(): NodeMaterialConnectionPoint {
         return this.rgbOut;

+ 2 - 2
src/Materials/Node/Blocks/vectorMergerBlock.ts

@@ -101,7 +101,7 @@ export class VectorMergerBlock extends NodeMaterialBlock {
 
     /**
      * Gets the xy component (output)
-     * @deprecated Please use xyOut instead
+     * @deprecated Please use xyOut instead.
      */
     public get xy(): NodeMaterialConnectionPoint {
         return this.xyOut;
@@ -109,7 +109,7 @@ export class VectorMergerBlock extends NodeMaterialBlock {
 
     /**
      * Gets the xyz component (output)
-     * @deprecated Please use xyzOut instead
+     * @deprecated Please use xyzOut instead.
      */
     public get xyz(): NodeMaterialConnectionPoint {
         return this.xyzOut;

+ 2 - 2
src/Maths/math.vector.ts

@@ -1311,7 +1311,7 @@ export class Vector3 {
      * @param array defines the source array
      * @param offset defines the offset in the source array
      * @returns the new Vector3
-     * @deprecated Please use Use FromArray instead
+     * @deprecated Please use Use FromArray instead.
      */
     public static FromFloatArray(array: DeepImmutable<Float32Array>, offset?: number): Vector3 {
         return Vector3.FromArray(array, offset);
@@ -1334,7 +1334,7 @@ export class Vector3 {
      * @param array defines the source array
      * @param offset defines the offset in the source array
      * @param result defines the Vector3 where to store the result
-     * @deprecated Please use FromArrayToRef instead
+     * @deprecated Please use FromArrayToRef instead.
      */
     public static FromFloatArrayToRef(array: DeepImmutable<Float32Array>, offset: number, result: Vector3): void {
         return Vector3.FromArrayToRef(array, offset, result);

+ 2 - 2
src/Meshes/buffer.ts

@@ -372,7 +372,7 @@ export class VertexBuffer {
      * Gets the stride in float32 units (i.e. byte stride / 4).
      * May not be an integer if the byte stride is not divisible by 4.
      * @returns the stride in float32 units
-     * @deprecated Please use byteStride instead
+     * @deprecated Please use byteStride instead.
      */
     public getStrideSize(): number {
         return this.byteStride / VertexBuffer.GetTypeByteLength(this.type);
@@ -381,7 +381,7 @@ export class VertexBuffer {
     /**
      * Returns the offset as a multiple of the type byte length.
      * @returns the offset in bytes
-     * @deprecated Please use byteOffset instead
+     * @deprecated Please use byteOffset instead.
      */
     public getOffset(): number {
         return this.byteOffset / VertexBuffer.GetTypeByteLength(this.type);