mirror of
https://github.com/photonstorm/phaser
synced 2024-11-28 07:31:11 +00:00
Changed options and sub options of Graphics
constructor in docs to be optional
This commit is contained in:
parent
19eb363a84
commit
a727437304
1 changed files with 10 additions and 10 deletions
|
@ -19,9 +19,9 @@ var Render = require('./GraphicsRender');
|
|||
*
|
||||
* @typedef {object} GraphicsLineStyle
|
||||
*
|
||||
* @property {number} width - The stroke width.
|
||||
* @property {number} color - The stroke color.
|
||||
* @property {number} alpha - The stroke alpha.
|
||||
* @property {number} [width] - The stroke width.
|
||||
* @property {number} [color] - The stroke color.
|
||||
* @property {number} [alpha] - The stroke alpha.
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -29,8 +29,8 @@ var Render = require('./GraphicsRender');
|
|||
*
|
||||
* @typedef {object} GraphicsFillStyle
|
||||
*
|
||||
* @property {number} color - The fill color.
|
||||
* @property {number} alpha - The fill alpha.
|
||||
* @property {number} [color] - The fill color.
|
||||
* @property {number} [alpha] - The fill alpha.
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -38,8 +38,8 @@ var Render = require('./GraphicsRender');
|
|||
*
|
||||
* @typedef {object} GraphicsStyles
|
||||
*
|
||||
* @property {GraphicsLineStyle} lineStyle - The style applied to shape outlines.
|
||||
* @property {GraphicsFillStyle} fillStyle - The style applied to shape areas.
|
||||
* @property {GraphicsLineStyle} [lineStyle] - The style applied to shape outlines.
|
||||
* @property {GraphicsFillStyle} [fillStyle] - The style applied to shape areas.
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -48,8 +48,8 @@ var Render = require('./GraphicsRender');
|
|||
* @typedef {object} GraphicsOptions
|
||||
* @extends GraphicsStyles
|
||||
*
|
||||
* @property {number} x - The x coordinate of the Graphics.
|
||||
* @property {number} y - The y coordinate of the Graphics.
|
||||
* @property {number} [x] - The x coordinate of the Graphics.
|
||||
* @property {number} [y] - The y coordinate of the Graphics.
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -109,7 +109,7 @@ var Render = require('./GraphicsRender');
|
|||
* @extends Phaser.GameObjects.Components.ScrollFactor
|
||||
*
|
||||
* @param {Phaser.Scene} scene - The Scene to which this Graphics object belongs.
|
||||
* @param {GraphicsOptions} options - Options that set the position and default style of this Graphics object.
|
||||
* @param {GraphicsOptions} [options] - Options that set the position and default style of this Graphics object.
|
||||
*/
|
||||
var Graphics = new Class({
|
||||
|
||||
|
|
Loading…
Reference in a new issue