Skip to content

Commit e7f091b

Browse files
committed
Curve Types
1 parent 622d0dd commit e7f091b

12 files changed

Lines changed: 22 additions & 22 deletions

src/curves/CubicBezierCurve.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ var CubicBezierCurve = new Class({
179179
* @method Phaser.Curves.CubicBezier#toJSON
180180
* @since 3.0.0
181181
*
182-
* @return {Phaser.Curves.Types.JSONCurve} The JSON object containing this curve data.
182+
* @return {Phaser.Types.Curves.JSONCurve} The JSON object containing this curve data.
183183
*/
184184
toJSON: function ()
185185
{
@@ -202,7 +202,7 @@ var CubicBezierCurve = new Class({
202202
* @function Phaser.Curves.CubicBezier.fromJSON
203203
* @since 3.0.0
204204
*
205-
* @param {Phaser.Curves.Types.JSONCurve} data - The JSON object containing this curve data.
205+
* @param {Phaser.Types.Curves.JSONCurve} data - The JSON object containing this curve data.
206206
*
207207
* @return {Phaser.Curves.CubicBezier} The curve generated from the JSON object.
208208
*/

src/curves/EllipseCurve.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ var Vector2 = require('../math/Vector2');
2525
* @constructor
2626
* @since 3.0.0
2727
*
28-
* @param {(number|Phaser.Curves.Types.EllipseCurveConfig)} [x=0] - The x coordinate of the ellipse, or an Ellipse Curve configuration object.
28+
* @param {(number|Phaser.Types.Curves.EllipseCurveConfig)} [x=0] - The x coordinate of the ellipse, or an Ellipse Curve configuration object.
2929
* @param {number} [y=0] - The y coordinate of the ellipse.
3030
* @param {number} [xRadius=0] - The horizontal radius of ellipse.
3131
* @param {number} [yRadius=0] - The vertical radius of ellipse.
@@ -581,7 +581,7 @@ var EllipseCurve = new Class({
581581
* @method Phaser.Curves.Ellipse#toJSON
582582
* @since 3.0.0
583583
*
584-
* @return {Phaser.Curves.Types.JSONEllipseCurve} The JSON object containing this curve data.
584+
* @return {Phaser.Types.Curves.JSONEllipseCurve} The JSON object containing this curve data.
585585
*/
586586
toJSON: function ()
587587
{
@@ -606,7 +606,7 @@ var EllipseCurve = new Class({
606606
* @function Phaser.Curves.Ellipse.fromJSON
607607
* @since 3.0.0
608608
*
609-
* @param {Phaser.Curves.Types.JSONEllipseCurve} data - The JSON object containing this curve data.
609+
* @param {Phaser.Types.Curves.JSONEllipseCurve} data - The JSON object containing this curve data.
610610
*
611611
* @return {Phaser.Curves.Ellipse} The ellipse curve constructed from the configuration object.
612612
*/

src/curves/LineCurve.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ var LineCurve = new Class({
213213
* @method Phaser.Curves.Line#toJSON
214214
* @since 3.0.0
215215
*
216-
* @return {Phaser.Curves.Types.JSONCurve} The JSON object containing this curve data.
216+
* @return {Phaser.Types.Curves.JSONCurve} The JSON object containing this curve data.
217217
*/
218218
toJSON: function ()
219219
{
@@ -234,7 +234,7 @@ var LineCurve = new Class({
234234
* @function Phaser.Curves.Line.fromJSON
235235
* @since 3.0.0
236236
*
237-
* @param {Phaser.Curves.Types.JSONCurve} data - The JSON object containing this curve data.
237+
* @param {Phaser.Types.Curves.JSONCurve} data - The JSON object containing this curve data.
238238
*
239239
* @return {Phaser.Curves.Line} A new LineCurve object.
240240
*/

src/curves/QuadraticBezierCurve.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ var QuadraticBezier = new Class({
168168
* @method Phaser.Curves.QuadraticBezier#toJSON
169169
* @since 3.2.0
170170
*
171-
* @return {Phaser.Curves.Types.JSONCurve} The JSON object containing this curve data.
171+
* @return {Phaser.Types.Curves.JSONCurve} The JSON object containing this curve data.
172172
*/
173173
toJSON: function ()
174174
{
@@ -190,7 +190,7 @@ var QuadraticBezier = new Class({
190190
* @function Phaser.Curves.QuadraticBezier.fromJSON
191191
* @since 3.2.0
192192
*
193-
* @param {Phaser.Curves.Types.JSONCurve} data - The JSON object containing this curve data.
193+
* @param {Phaser.Types.Curves.JSONCurve} data - The JSON object containing this curve data.
194194
*
195195
* @return {Phaser.Curves.QuadraticBezier} The created curve instance.
196196
*/

src/curves/SplineCurve.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ var SplineCurve = new Class({
181181
* @method Phaser.Curves.Spline#toJSON
182182
* @since 3.0.0
183183
*
184-
* @return {Phaser.Curves.Types.JSONCurve} The JSON object containing this curve data.
184+
* @return {Phaser.Types.Curves.JSONCurve} The JSON object containing this curve data.
185185
*/
186186
toJSON: function ()
187187
{
@@ -207,7 +207,7 @@ var SplineCurve = new Class({
207207
* @function Phaser.Curves.Spline.fromJSON
208208
* @since 3.0.0
209209
*
210-
* @param {Phaser.Curves.Types.JSONCurve} data - The JSON object containing this curve data.
210+
* @param {Phaser.Types.Curves.JSONCurve} data - The JSON object containing this curve data.
211211
*
212212
* @return {Phaser.Curves.Spline} [description]
213213
*/

src/curves/path/MoveTo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ var MoveTo = new Class({
117117
* @method Phaser.Curves.MoveTo#toJSON
118118
* @since 3.0.0
119119
*
120-
* @return {Phaser.Curves.Types.JSONCurve} A primitive object with the curve's type and only point.
120+
* @return {Phaser.Types.Curves.JSONCurve} A primitive object with the curve's type and only point.
121121
*/
122122
toJSON: function ()
123123
{

src/curves/path/Path.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ var Vector2 = require('../../math/Vector2');
3030
* @constructor
3131
* @since 3.0.0
3232
*
33-
* @param {number} [x=0] - The X coordinate of the Path's starting point or a {@link Phaser.Curves.Types.JSONPath}.
33+
* @param {number} [x=0] - The X coordinate of the Path's starting point or a {@link Phaser.Types.Curves.JSONPath}.
3434
* @param {number} [y=0] - The Y coordinate of the Path's starting point.
3535
*/
3636
var Path = new Class({
@@ -331,12 +331,12 @@ var Path = new Class({
331331
/**
332332
* Creates a Path from a Path Configuration object.
333333
*
334-
* The provided object should be a {@link Phaser.Curves.Types.JSONPath}, as returned by {@link #toJSON}. Providing a malformed object may cause errors.
334+
* The provided object should be a {@link Phaser.Types.Curves.JSONPath}, as returned by {@link #toJSON}. Providing a malformed object may cause errors.
335335
*
336336
* @method Phaser.Curves.Path#fromJSON
337337
* @since 3.0.0
338338
*
339-
* @param {Phaser.Curves.Types.JSONPath} data - The JSON object containing the Path data.
339+
* @param {Phaser.Types.Curves.JSONPath} data - The JSON object containing the Path data.
340340
*
341341
* @return {Phaser.Curves.Path} This Path object.
342342
*/
@@ -760,7 +760,7 @@ var Path = new Class({
760760
* @method Phaser.Curves.Path#toJSON
761761
* @since 3.0.0
762762
*
763-
* @return {Phaser.Curves.Types.JSONPath} [description]
763+
* @return {Phaser.Types.Curves.JSONPath} [description]
764764
*/
765765
toJSON: function ()
766766
{

src/curves/typedefs/EllipseCurveConfig.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @typedef {object} Phaser.Curves.Types.EllipseCurveConfig
2+
* @typedef {object} Phaser.Types.Curves.EllipseCurveConfig
33
*
44
* @property {number} [x=0] - The x coordinate of the ellipse.
55
* @property {number} [y=0] - The y coordinate of the ellipse.

src/curves/typedefs/JSONCurve.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @typedef {object} Phaser.Curves.Types.JSONCurve
2+
* @typedef {object} Phaser.Types.Curves.JSONCurve
33
* @since 3.0.0
44
*
55
* @property {string} type - The of the curve

src/curves/typedefs/JSONEllipseCurve.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @typedef {object} Phaser.Curves.Types.JSONEllipseCurve
2+
* @typedef {object} Phaser.Types.Curves.JSONEllipseCurve
33
* @since 3.0.0
44
*
55
* @property {string} type - The of the curve.

0 commit comments

Comments
 (0)