Procházet zdrojové kódy

[Documentation] Clarified engine constructor parameters FIXED

Jean-Philippe Côté před 7 roky
rodič
revize
ba9d25ca57
1 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. 3 3
      src/Engine/babylon.engine.ts

+ 3 - 3
src/Engine/babylon.engine.ts

@@ -819,11 +819,11 @@
         /**
          * @constructor
          * @param {HTMLCanvasElement | WebGLRenderingContext} canvasOrContext - the canvas or WebGL context to use for rendering
-         * @param {boolean} [antialias] - enable antialiasing
+         * @param {boolean} [antialias] - enable antialiasing (default: false)
          * @param {EngineOptions} [options] - further options to be sent to the getContext() function
-         * @param {boolean} [adaptToDeviceRatio] - whether to adapt to the device's viewport characteristics
+         * @param {boolean} [adaptToDeviceRatio] - whether to adapt to the device's viewport characteristics (default: false)
          */
-        constructor(canvasOrContext: Nullable<HTMLCanvasElement | WebGLRenderingContext>, antialias?: boolean, options?: EngineOptions, adaptToDeviceRatio?:boolean = false) {
+        constructor(canvasOrContext: Nullable<HTMLCanvasElement | WebGLRenderingContext>, antialias?: boolean, options?: EngineOptions, adaptToDeviceRatio:boolean = false) {
             let canvas: Nullable<HTMLCanvasElement> = null;
             Engine.Instances.push(this);