You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/actions/SetHitArea.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@
16
16
*
17
17
* @param {(array|Phaser.GameObjects.GameObject[])} items - An array of Game Objects. The contents of this array are updated by this Action.
18
18
* @param {*} hitArea - Either an input configuration object, or a geometric shape that defines the hit area for the Game Object. If not specified a Rectangle will be used.
19
-
* @param {Phaser.Input.Types.HitAreaCallback} hitAreaCallback - A callback to be invoked when the Game Object is interacted with. If you provide a shape you must also provide a callback.
19
+
* @param {Phaser.Types.Input.HitAreaCallback} hitAreaCallback - A callback to be invoked when the Game Object is interacted with. If you provide a shape you must also provide a callback.
20
20
*
21
21
* @return {(array|Phaser.GameObjects.GameObject[])} The array of Game Objects that was passed to this Action.
* @param {(Phaser.Input.Types.InputConfiguration|any)} [shape] - Either an input configuration object, or a geometric shape that defines the hit area for the Game Object. If not specified a Rectangle will be used.
390
-
* @param {Phaser.Input.Types.HitAreaCallback} [callback] - A callback to be invoked when the Game Object is interacted with. If you provide a shape you must also provide a callback.
389
+
* @param {(Phaser.Types.Input.InputConfiguration|any)} [shape] - Either an input configuration object, or a geometric shape that defines the hit area for the Game Object. If not specified a Rectangle will be used.
390
+
* @param {Phaser.Types.Input.HitAreaCallback} [callback] - A callback to be invoked when the Game Object is interacted with. If you provide a shape you must also provide a callback.
391
391
* @param {boolean} [dropZone=false] - Should this Game Object be treated as a drop zone target?
Copy file name to clipboardExpand all lines: src/input/InputPlugin.js
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -209,7 +209,7 @@ var InputPlugin = new Class({
209
209
* Internal event propagation callback container.
210
210
*
211
211
* @name Phaser.Input.InputPlugin#_eventContainer
212
-
* @type {Phaser.Input.Types.EventData}
212
+
* @type {Phaser.Types.Input.EventData}
213
213
* @private
214
214
* @since 3.13.0
215
215
*/
@@ -761,8 +761,8 @@ var InputPlugin = new Class({
761
761
* @since 3.0.0
762
762
*
763
763
* @param {Phaser.GameObjects.GameObject} gameObject - The Game Object to be enabled for input.
764
-
* @param {(Phaser.Input.Types.InputConfiguration|any)} [shape] - Either an input configuration object, or a geometric shape that defines the hit area for the Game Object. If not specified a Rectangle will be used.
765
-
* @param {Phaser.Input.Types.HitAreaCallback} [callback] - The 'contains' function to invoke to check if the pointer is within the hit area.
764
+
* @param {(Phaser.Types.Input.InputConfiguration|any)} [shape] - Either an input configuration object, or a geometric shape that defines the hit area for the Game Object. If not specified a Rectangle will be used.
765
+
* @param {Phaser.Types.Input.HitAreaCallback} [callback] - The 'contains' function to invoke to check if the pointer is within the hit area.
766
766
* @param {boolean} [dropZone=false] - Is this Game Object a drop zone or not?
767
767
*
768
768
* @return {Phaser.Input.InputPlugin} This Input Plugin.
@@ -1724,8 +1724,8 @@ var InputPlugin = new Class({
1724
1724
* @since 3.0.0
1725
1725
*
1726
1726
* @param {(Phaser.GameObjects.GameObject|Phaser.GameObjects.GameObject[])} gameObjects - An array of Game Objects to set the hit area on.
1727
-
* @param {(Phaser.Input.Types.InputConfiguration|any)} [shape] - Either an input configuration object, or a geometric shape that defines the hit area for the Game Object. If not specified a Rectangle will be used.
1728
-
* @param {Phaser.Input.Types.HitAreaCallback} [callback] - The 'contains' function to invoke to check if the pointer is within the hit area.
1727
+
* @param {(Phaser.Types.Input.InputConfiguration|any)} [shape] - Either an input configuration object, or a geometric shape that defines the hit area for the Game Object. If not specified a Rectangle will be used.
1728
+
* @param {Phaser.Types.Input.HitAreaCallback} [callback] - The 'contains' function to invoke to check if the pointer is within the hit area.
1729
1729
*
1730
1730
* @return {Phaser.Input.InputPlugin} This InputPlugin object.
1731
1731
*/
@@ -1820,7 +1820,7 @@ var InputPlugin = new Class({
1820
1820
* @param {number} x - The center of the circle.
1821
1821
* @param {number} y - The center of the circle.
1822
1822
* @param {number} radius - The radius of the circle.
1823
-
* @param {Phaser.Input.Types.HitAreaCallback} [callback] - The hit area callback. If undefined it uses Circle.Contains.
1823
+
* @param {Phaser.Types.Input.HitAreaCallback} [callback] - The hit area callback. If undefined it uses Circle.Contains.
1824
1824
*
1825
1825
* @return {Phaser.Input.InputPlugin} This InputPlugin object.
1826
1826
*/
@@ -1845,7 +1845,7 @@ var InputPlugin = new Class({
1845
1845
* @param {number} y - The center of the ellipse.
1846
1846
* @param {number} width - The width of the ellipse.
1847
1847
* @param {number} height - The height of the ellipse.
1848
-
* @param {Phaser.Input.Types.HitAreaCallback} [callback] - The hit area callback. If undefined it uses Ellipse.Contains.
1848
+
* @param {Phaser.Types.Input.HitAreaCallback} [callback] - The hit area callback. If undefined it uses Ellipse.Contains.
1849
1849
*
1850
1850
* @return {Phaser.Input.InputPlugin} This InputPlugin object.
1851
1851
*/
@@ -1866,7 +1866,7 @@ var InputPlugin = new Class({
1866
1866
* @since 3.0.0
1867
1867
*
1868
1868
* @param {(Phaser.GameObjects.GameObject|Phaser.GameObjects.GameObject[])} gameObjects - An array of Game Objects to set as having an ellipse hit area.
1869
-
* @param {Phaser.Input.Types.HitAreaCallback} [callback] - The hit area callback. If undefined it uses Rectangle.Contains.
1869
+
* @param {Phaser.Types.Input.HitAreaCallback} [callback] - The hit area callback. If undefined it uses Rectangle.Contains.
1870
1870
*
1871
1871
* @return {Phaser.Input.InputPlugin} This InputPlugin object.
1872
1872
*/
@@ -1928,7 +1928,7 @@ var InputPlugin = new Class({
1928
1928
* @param {number} y - The top-left of the rectangle.
1929
1929
* @param {number} width - The width of the rectangle.
1930
1930
* @param {number} height - The height of the rectangle.
1931
-
* @param {Phaser.Input.Types.HitAreaCallback} [callback] - The hit area callback. If undefined it uses Rectangle.Contains.
1931
+
* @param {Phaser.Types.Input.HitAreaCallback} [callback] - The hit area callback. If undefined it uses Rectangle.Contains.
1932
1932
*
1933
1933
* @return {Phaser.Input.InputPlugin} This InputPlugin object.
1934
1934
*/
@@ -1955,7 +1955,7 @@ var InputPlugin = new Class({
1955
1955
* @param {number} y2 - The y coordinate of the second point of the triangle.
1956
1956
* @param {number} x3 - The x coordinate of the third point of the triangle.
1957
1957
* @param {number} y3 - The y coordinate of the third point of the triangle.
1958
-
* @param {Phaser.Input.Types.HitAreaCallback} [callback] - The hit area callback. If undefined it uses Triangle.Contains.
1958
+
* @param {Phaser.Types.Input.HitAreaCallback} [callback] - The hit area callback. If undefined it uses Triangle.Contains.
1959
1959
*
1960
1960
* @return {Phaser.Input.InputPlugin} This InputPlugin object.
Copy file name to clipboardExpand all lines: src/input/events/GAMEOBJECT_DOWN_EVENT.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,6 @@
30
30
*
31
31
* @param {Phaser.Input.Pointer} pointer - The Pointer responsible for triggering this event.
32
32
* @param {Phaser.GameObjects.GameObject} gameObject - The Game Object the pointer was pressed down on.
33
-
* @param {Phaser.Input.Types.EventData} event - The Phaser input event. You can call `stopPropagation()` to halt it from going any further in the event flow.
33
+
* @param {Phaser.Types.Input.EventData} event - The Phaser input event. You can call `stopPropagation()` to halt it from going any further in the event flow.
Copy file name to clipboardExpand all lines: src/input/events/GAMEOBJECT_MOVE_EVENT.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,6 @@
30
30
*
31
31
* @param {Phaser.Input.Pointer} pointer - The Pointer responsible for triggering this event.
32
32
* @param {Phaser.GameObjects.GameObject} gameObject - The Game Object the pointer was moved on.
33
-
* @param {Phaser.Input.Types.EventData} event - The Phaser input event. You can call `stopPropagation()` to halt it from going any further in the event flow.
33
+
* @param {Phaser.Types.Input.EventData} event - The Phaser input event. You can call `stopPropagation()` to halt it from going any further in the event flow.
0 commit comments