99 * Values are normalized, given in the range 0 to 1.
1010 * Display values contain the calculated pixel values.
1111 * Should be applied as a mixin and not used directly.
12- *
12+ *
1313 * @name Phaser.GameObjects.Components.Origin
1414 * @since 3.0.0
1515 */
@@ -18,7 +18,7 @@ var Origin = {
1818
1919 /**
2020 * A property indicating that a Game Object has this component.
21- *
21+ *
2222 * @name Phaser.GameObjects.Components.Origin#_originComponent
2323 * @type {boolean }
2424 * @private
@@ -32,7 +32,7 @@ var Origin = {
3232 * The origin maps the relationship between the size and position of the Game Object.
3333 * The default value is 0.5, meaning all Game Objects are positioned based on their center.
3434 * Setting the value to 0 means the position now relates to the left of the Game Object.
35- *
35+ *
3636 * @name Phaser.GameObjects.Components.Origin#originX
3737 * @type {float }
3838 * @default 0.5
@@ -45,7 +45,7 @@ var Origin = {
4545 * The origin maps the relationship between the size and position of the Game Object.
4646 * The default value is 0.5, meaning all Game Objects are positioned based on their center.
4747 * Setting the value to 0 means the position now relates to the top of the Game Object.
48- *
48+ *
4949 * @name Phaser.GameObjects.Components.Origin#originY
5050 * @type {float }
5151 * @default 0.5
@@ -61,7 +61,7 @@ var Origin = {
6161 * The horizontal display origin of this Game Object.
6262 * The origin is a normalized value between 0 and 1.
6363 * The displayOrigin is a pixel value, based on the size of the Game Object combined with the origin.
64- *
64+ *
6565 * @name Phaser.GameObjects.Components.Origin#displayOriginX
6666 * @type {float }
6767 * @since 3.0.0
@@ -85,7 +85,7 @@ var Origin = {
8585 * The vertical display origin of this Game Object.
8686 * The origin is a normalized value between 0 and 1.
8787 * The displayOrigin is a pixel value, based on the size of the Game Object combined with the origin.
88- *
88+ *
8989 * @name Phaser.GameObjects.Components.Origin#displayOriginY
9090 * @type {float }
9191 * @since 3.0.0
@@ -109,13 +109,13 @@ var Origin = {
109109 * Sets the origin of this Game Object.
110110 *
111111 * The values are given in the range 0 to 1.
112- *
112+ *
113113 * @method Phaser.GameObjects.Components.Origin#setOrigin
114114 * @since 3.0.0
115115 *
116116 * @param {number } [x=0.5] - The horizontal origin value.
117- * @param {number } [y=0.5 ] - The vertical origin value. If not defined it will be set to the value of `x`.
118- *
117+ * @param {number } [y=x ] - The vertical origin value. If not defined it will be set to the value of `x`.
118+ *
119119 * @return {Phaser.GameObjects.GameObject } This Game Object instance.
120120 */
121121 setOrigin : function ( x , y )
@@ -131,10 +131,10 @@ var Origin = {
131131
132132 /**
133133 * Sets the origin of this Game Object based on the Pivot values in its Frame.
134- *
134+ *
135135 * @method Phaser.GameObjects.Components.Origin#setOriginFromFrame
136136 * @since 3.0.0
137- *
137+ *
138138 * @return {Phaser.GameObjects.GameObject } This Game Object instance.
139139 */
140140 setOriginFromFrame : function ( )
@@ -155,13 +155,13 @@ var Origin = {
155155 /**
156156 * Sets the display origin of this Game Object.
157157 * The difference between this and setting the origin is that you can use pixel values for setting the display origin.
158- *
158+ *
159159 * @method Phaser.GameObjects.Components.Origin#setDisplayOrigin
160160 * @since 3.0.0
161161 *
162162 * @param {number } [x=0] - The horizontal display origin value.
163- * @param {number } [y=0 ] - The vertical display origin value. If not defined it will be set to the value of `x`.
164- *
163+ * @param {number } [y=x ] - The vertical display origin value. If not defined it will be set to the value of `x`.
164+ *
165165 * @return {Phaser.GameObjects.GameObject } This Game Object instance.
166166 */
167167 setDisplayOrigin : function ( x , y )
@@ -178,10 +178,10 @@ var Origin = {
178178 /**
179179 * Updates the Display Origin cached values internally stored on this Game Object.
180180 * You don't usually call this directly, but it is exposed for edge-cases where you may.
181- *
181+ *
182182 * @method Phaser.GameObjects.Components.Origin#updateDisplayOrigin
183183 * @since 3.0.0
184- *
184+ *
185185 * @return {Phaser.GameObjects.GameObject } This Game Object instance.
186186 */
187187 updateDisplayOrigin : function ( )
0 commit comments