diff --git a/packages/mesh-extras/src/Plane.js b/packages/mesh-extras/src/Plane.js index 1c240c4..f731427 100644 --- a/packages/mesh-extras/src/Plane.js +++ b/packages/mesh-extras/src/Plane.js @@ -19,19 +19,21 @@ { /** * @param {PIXI.Texture} texture - The texture to use on the Plane. - * @param {number} verticesX - The number of vertices in the x-axis - * @param {number} verticesY - The number of vertices in the y-axis - * @param {object} [opts] - an options object - add meshWidth and meshHeight, temporary object for PixiJS v5 alpha + * @param {number} [verticesX=10] - The number of vertices in the x-axis + * @param {number} [verticesY=10] - The number of vertices in the y-axis + * @param {object} [options] - an options object + * @param {number} [options.meshWidth=0] - The default mesh width + * @param {number} [options.meshHeight=0] - The default mesh height */ - constructor(texture, verticesX, verticesY, opts = {}) + constructor(texture, verticesX, verticesY, options = {}) { super(texture, new Float32Array(1), new Float32Array(1), new Uint16Array(1), 4); this.verticesX = verticesX || 10; this.verticesY = verticesY || 10; - this.meshWidth = opts.meshWidth || 0; - this.meshHeight = opts.meshHeight || 0; + this.meshWidth = options.meshWidth || 0; + this.meshHeight = options.meshHeight || 0; this.refresh(); }