@@ -17,6 +17,16 @@ var Rectangle = require('../../geom/rectangle/Rectangle');
1717var SplineCurve = require ( '../SplineCurve' ) ;
1818var Vector2 = require ( '../../math/Vector2' ) ;
1919
20+ /**
21+ * @typedef {object } JSONPath
22+ *
23+ * @property {string } type - The of the curve.
24+ * @property {number } x - [description]
25+ * @property {number } y - [description]
26+ * @property {boolean } autoClose - The path is auto closed.
27+ * @property {JSONCurve[] } curves - The list of the curves
28+ */
29+
2030/**
2131 * @classdesc
2232 * [description]
@@ -52,7 +62,7 @@ var Path = new Class({
5262 * [description]
5363 *
5464 * @name Phaser.Curves.Path#curves
55- * @type {array }
65+ * @type {Phaser.Curves.Curve[] }
5666 * @default []
5767 * @since 3.0.0
5868 */
@@ -62,7 +72,7 @@ var Path = new Class({
6272 * [description]
6373 *
6474 * @name Phaser.Curves.Path#cacheLengths
65- * @type {array }
75+ * @type {number[] }
6676 * @default []
6777 * @since 3.0.0
6878 */
@@ -81,7 +91,7 @@ var Path = new Class({
8191 /**
8292 * [description]
8393 *
84- * @name {Phaser.MathPhaser. Curves.Path#startPoint
94+ * @name {Phaser.Curves.Path#startPoint
8595 * @type {Phaser.Math.Vector2 }
8696 * @since 3.0.0
8797 */
@@ -90,7 +100,7 @@ var Path = new Class({
90100 /**
91101 * [description]
92102 *
93- * @name {Phaser.MathPhaser. Curves.Path#_tmpVec2A
103+ * @name {Phaser.Curves.Path#_tmpVec2A
94104 * @type {Phaser.Math.Vector2 }
95105 * @private
96106 * @since 3.0.0
@@ -100,7 +110,7 @@ var Path = new Class({
100110 /**
101111 * [description]
102112 *
103- * @name {Phaser.MathPhaser. Curves.Path#_tmpVec2B
113+ * @name {Phaser.Curves.Path#_tmpVec2B
104114 * @type {Phaser.Math.Vector2 }
105115 * @private
106116 * @since 3.0.0
@@ -781,7 +791,7 @@ var Path = new Class({
781791 *
782792 * @param {number } x - The horizontal position of this Path.
783793 * @param {number } y - The vertical position of this Path.
784- *
794+ *
785795 * @return {Phaser.Curves.Path } The Path Object that was created.
786796 */
787797GameObjectFactory . register ( 'path' , function ( x , y )
@@ -790,9 +800,9 @@ GameObjectFactory.register('path', function (x, y)
790800} ) ;
791801
792802// When registering a factory function 'this' refers to the GameObjectFactory context.
793- //
803+ //
794804// There are several properties available to use:
795- //
805+ //
796806// this.scene - a reference to the Scene that owns the GameObjectFactory
797807// this.displayList - a reference to the Display List the Scene owns
798808// this.updateList - a reference to the Update List the Scene owns
0 commit comments