mirror of
https://github.com/photonstorm/phaser
synced 2024-11-26 06:30:38 +00:00
Merge pull request #4685 from jcyuan/patch-1
fix `intensity` parameter type for typescript
This commit is contained in:
commit
f5ead70206
2 changed files with 2 additions and 2 deletions
|
@ -620,7 +620,7 @@ var Camera = new Class({
|
||||||
* @since 3.0.0
|
* @since 3.0.0
|
||||||
*
|
*
|
||||||
* @param {integer} [duration=100] - The duration of the effect in milliseconds.
|
* @param {integer} [duration=100] - The duration of the effect in milliseconds.
|
||||||
* @param {number} [intensity=0.05] - The intensity of the shake.
|
* @param {(number|Phaser.Math.Vector2)} [intensity=0.05] - The intensity of the shake.
|
||||||
* @param {boolean} [force=false] - Force the shake effect to start immediately, even if already running.
|
* @param {boolean} [force=false] - Force the shake effect to start immediately, even if already running.
|
||||||
* @param {function} [callback] - This callback will be invoked every frame for the duration of the effect.
|
* @param {function} [callback] - This callback will be invoked every frame for the duration of the effect.
|
||||||
* It is sent two arguments: A reference to the camera and a progress amount between 0 and 1 indicating how complete the effect is.
|
* It is sent two arguments: A reference to the camera and a progress amount between 0 and 1 indicating how complete the effect is.
|
||||||
|
|
|
@ -149,7 +149,7 @@ var Shake = new Class({
|
||||||
* @since 3.5.0
|
* @since 3.5.0
|
||||||
*
|
*
|
||||||
* @param {integer} [duration=100] - The duration of the effect in milliseconds.
|
* @param {integer} [duration=100] - The duration of the effect in milliseconds.
|
||||||
* @param {number} [intensity=0.05] - The intensity of the shake.
|
* @param {(number|Phaser.Math.Vector2)} [intensity=0.05] - The intensity of the shake.
|
||||||
* @param {boolean} [force=false] - Force the shake effect to start immediately, even if already running.
|
* @param {boolean} [force=false] - Force the shake effect to start immediately, even if already running.
|
||||||
* @param {Phaser.Types.Cameras.Scene2D.CameraShakeCallback} [callback] - This callback will be invoked every frame for the duration of the effect.
|
* @param {Phaser.Types.Cameras.Scene2D.CameraShakeCallback} [callback] - This callback will be invoked every frame for the duration of the effect.
|
||||||
* It is sent two arguments: A reference to the camera and a progress amount between 0 and 1 indicating how complete the effect is.
|
* It is sent two arguments: A reference to the camera and a progress amount between 0 and 1 indicating how complete the effect is.
|
||||||
|
|
Loading…
Reference in a new issue