Skip to content

Commit 32b4e6b

Browse files
committed
Graphics Types
1 parent a51a817 commit 32b4e6b

8 files changed

Lines changed: 14 additions & 14 deletions

File tree

src/gameobjects/graphics/Graphics.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ var Render = require('./GraphicsRender');
8282
* @extends Phaser.GameObjects.Components.ScrollFactor
8383
*
8484
* @param {Phaser.Scene} scene - The Scene to which this Graphics object belongs.
85-
* @param {Phaser.GameObjects.Graphics.Types.Options} [options] - Options that set the position and default style of this Graphics object.
85+
* @param {Phaser.Types.GameObjects.Graphics.Options} [options] - Options that set the position and default style of this Graphics object.
8686
*/
8787
var Graphics = new Class({
8888

@@ -241,7 +241,7 @@ var Graphics = new Class({
241241
* @method Phaser.GameObjects.Graphics#setDefaultStyles
242242
* @since 3.0.0
243243
*
244-
* @param {Phaser.GameObjects.Graphics.Types.Styles} options - The styles to set as defaults.
244+
* @param {Phaser.Types.GameObjects.Graphics.Styles} options - The styles to set as defaults.
245245
*
246246
* @return {Phaser.GameObjects.Graphics} This Game Object.
247247
*/
@@ -734,7 +734,7 @@ var Graphics = new Class({
734734
* @param {number} y - The y coordinate of the top-left of the rectangle.
735735
* @param {number} width - The width of the rectangle.
736736
* @param {number} height - The height of the rectangle.
737-
* @param {(Phaser.GameObjects.Graphics.Types.RoundedRectRadius|number)} [radius=20] - The corner radius; It can also be an object to specify different radii for corners.
737+
* @param {(Phaser.Types.GameObjects.Graphics.RoundedRectRadius|number)} [radius=20] - The corner radius; It can also be an object to specify different radii for corners.
738738
*
739739
* @return {Phaser.GameObjects.Graphics} This Game Object.
740740
*/
@@ -780,7 +780,7 @@ var Graphics = new Class({
780780
* @param {number} y - The y coordinate of the top-left of the rectangle.
781781
* @param {number} width - The width of the rectangle.
782782
* @param {number} height - The height of the rectangle.
783-
* @param {(Phaser.GameObjects.Graphics.Types.RoundedRectRadius|number)} [radius=20] - The corner radius; It can also be an object to specify different radii for corners.
783+
* @param {(Phaser.Types.GameObjects.Graphics.RoundedRectRadius|number)} [radius=20] - The corner radius; It can also be an object to specify different radii for corners.
784784
*
785785
* @return {Phaser.GameObjects.Graphics} This Game Object.
786786
*/

src/gameobjects/graphics/GraphicsFactory.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ var GameObjectFactory = require('../GameObjectFactory');
1515
* @method Phaser.GameObjects.GameObjectFactory#graphics
1616
* @since 3.0.0
1717
*
18-
* @param {Phaser.GameObjects.Graphics.Types.Options} [config] - The Graphics configuration.
18+
* @param {Phaser.Types.GameObjects.Graphics.Options} [config] - The Graphics configuration.
1919
*
2020
* @return {Phaser.GameObjects.Graphics} The Game Object that was created.
2121
*/

src/gameobjects/graphics/typedefs/FillStyle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* Graphics fill style settings.
33
*
4-
* @typedef {object} Phaser.GameObjects.Graphics.Types.FillStyle
4+
* @typedef {object} Phaser.Types.GameObjects.Graphics.FillStyle
55
* @since 3.0.0
66
*
77
* @property {number} [color] - The fill color.

src/gameobjects/graphics/typedefs/LineStyle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* Graphics line style (or stroke style) settings.
33
*
4-
* @typedef {object} Phaser.GameObjects.Graphics.Types.LineStyle
4+
* @typedef {object} Phaser.Types.GameObjects.Graphics.LineStyle
55
* @since 3.0.0
66
*
77
* @property {number} [width] - The stroke width.

src/gameobjects/graphics/typedefs/Options.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/**
22
* Options for the Graphics game Object.
33
*
4-
* @typedef {object} Phaser.GameObjects.Graphics.Types.Options
5-
* @extends Phaser.GameObjects.Graphics.Types.Styles
4+
* @typedef {object} Phaser.Types.GameObjects.Graphics.Options
5+
* @extends Phaser.Types.GameObjects.Graphics.Styles
66
* @since 3.0.0
77
*
88
* @property {number} [x] - The x coordinate of the Graphics.

src/gameobjects/graphics/typedefs/RoundedRectRadius.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @typedef {object} Phaser.GameObjects.Graphics.Types.RoundedRectRadius
2+
* @typedef {object} Phaser.Types.GameObjects.Graphics.RoundedRectRadius
33
* @since 3.11.0
44
*
55
* @property {number} [tl=20] - Top left
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/**
22
* Graphics style settings.
33
*
4-
* @typedef {object} Phaser.GameObjects.Graphics.Types.Styles
4+
* @typedef {object} Phaser.Types.GameObjects.Graphics.Styles
55
* @since 3.0.0
66
*
7-
* @property {Phaser.GameObjects.Graphics.Types.LineStyle} [lineStyle] - The style applied to shape outlines.
8-
* @property {Phaser.GameObjects.Graphics.Types.FillStyle} [fillStyle] - The style applied to shape areas.
7+
* @property {Phaser.Types.GameObjects.Graphics.LineStyle} [lineStyle] - The style applied to shape outlines.
8+
* @property {Phaser.Types.GameObjects.Graphics.FillStyle} [fillStyle] - The style applied to shape areas.
99
*/

src/gameobjects/graphics/typedefs/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
*/
66

77
/**
8-
* @namespace Phaser.GameObjects.Graphics.Types
8+
* @namespace Phaser.Types.GameObjects.Graphics
99
*/

0 commit comments

Comments
 (0)