Skip to content

Commit c98f7b7

Browse files
authored
Typo - Zoom.js Pan.js Camera.js docs refer to wrong effects
1 parent 21c9326 commit c98f7b7

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/cameras/2d/Camera.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ var Camera = new Class({
622622
* @param {number} y - The destination y coordinate to scroll the center of the Camera viewport to.
623623
* @param {integer} [duration=1000] - The duration of the effect in milliseconds.
624624
* @param {(string|function)} [ease='Linear'] - The ease to use for the pan. Can be any of the Phaser Easing constants or a custom function.
625-
* @param {boolean} [force=false] - Force the shake effect to start immediately, even if already running.
625+
* @param {boolean} [force=false] - Force the pan effect to start immediately, even if already running.
626626
* @param {CameraPanCallback} [callback] - This callback will be invoked every frame for the duration of the effect.
627627
* It is sent four arguments: A reference to the camera, a progress amount between 0 and 1 indicating how complete the effect is,
628628
* the current camera scroll x coordinate and the current camera scroll y coordinate.
@@ -644,7 +644,7 @@ var Camera = new Class({
644644
* @param {number} zoom - The target Camera zoom value.
645645
* @param {integer} [duration=1000] - The duration of the effect in milliseconds.
646646
* @param {(string|function)} [ease='Linear'] - The ease to use for the pan. Can be any of the Phaser Easing constants or a custom function.
647-
* @param {boolean} [force=false] - Force the shake effect to start immediately, even if already running.
647+
* @param {boolean} [force=false] - Force the pan effect to start immediately, even if already running.
648648
* @param {CameraPanCallback} [callback] - This callback will be invoked every frame for the duration of the effect.
649649
* It is sent four arguments: A reference to the camera, a progress amount between 0 and 1 indicating how complete the effect is,
650650
* the current camera scroll x coordinate and the current camera scroll y coordinate.

src/cameras/2d/effects/Pan.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ var Pan = new Class({
185185
* @param {number} y - The destination y coordinate to scroll the center of the Camera viewport to.
186186
* @param {integer} [duration=1000] - The duration of the effect in milliseconds.
187187
* @param {(string|function)} [ease='Linear'] - The ease to use for the pan. Can be any of the Phaser Easing constants or a custom function.
188-
* @param {boolean} [force=false] - Force the shake effect to start immediately, even if already running.
188+
* @param {boolean} [force=false] - Force the pan effect to start immediately, even if already running.
189189
* @param {CameraPanCallback} [callback] - This callback will be invoked every frame for the duration of the effect.
190190
* It is sent four arguments: A reference to the camera, a progress amount between 0 and 1 indicating how complete the effect is,
191191
* the current camera scroll x coordinate and the current camera scroll y coordinate.

src/cameras/2d/effects/Zoom.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ var Zoom = new Class({
167167
* @param {number} zoom - The target Camera zoom value.
168168
* @param {integer} [duration=1000] - The duration of the effect in milliseconds.
169169
* @param {(string|function)} [ease='Linear'] - The ease to use for the Zoom. Can be any of the Phaser Easing constants or a custom function.
170-
* @param {boolean} [force=false] - Force the shake effect to start immediately, even if already running.
170+
* @param {boolean} [force=false] - Force the zoom effect to start immediately, even if already running.
171171
* @param {CameraZoomCallback} [callback] - This callback will be invoked every frame for the duration of the effect.
172172
* It is sent three arguments: A reference to the camera, a progress amount between 0 and 1 indicating how complete the effect is,
173173
* and the current camera zoom value.

0 commit comments

Comments
 (0)