mirror of
https://github.com/photonstorm/phaser
synced 2024-11-16 01:38:23 +00:00
Fixed pad jsdoc and ts defs (#1823)
This commit is contained in:
parent
cc5740af10
commit
76e2b00c82
3 changed files with 6 additions and 6 deletions
|
@ -304,7 +304,7 @@ Version 2.4 - "Katar" - in dev
|
|||
### Updates
|
||||
|
||||
* TypeScript definitions fixes and updates (thanks @clark-stevenson @isuda @ggarek @jamesgroat)
|
||||
* JSDoc typo fixes (thanks @robertpenner @luckylooke @asyncanup)
|
||||
* JSDoc typo fixes (thanks @robertpenner @luckylooke @asyncanup @muzuiget)
|
||||
* Added missing `resumed` method to Phaser.State class template.
|
||||
* Color.webToColor and Color.updateColor now updates the `out.color` and `out.color32` properties (thanks @cuixiping #1728)
|
||||
* Tilemap.createFromObjects has been updated for Tiled 0.11 and can now look-up object layers based on id, uid or name. It will also now copy over Sprite scaling properties if set (thanks @mandarinx #1738)
|
||||
|
|
|
@ -184,13 +184,13 @@ Phaser.Utils = {
|
|||
},
|
||||
|
||||
/**
|
||||
* Javascript string pad http://www.webtoolkit.info/.
|
||||
* JavaScript string pad http://www.webtoolkit.info/.
|
||||
*
|
||||
* @method Phaser.Utils.pad
|
||||
* @param {string} str - The target string.
|
||||
* @param {number} len - The number of characters to be added.
|
||||
* @param {number} pad - The string to pad it out with (defaults to a space).
|
||||
* @param {number} [dir=3] The direction dir = 1 (left), 2 (right), 3 (both).
|
||||
* @param {integer} [len=0] - The number of characters to be added.
|
||||
* @param {string} [pad=" "] - The string to pad it out with (defaults to a space).
|
||||
* @param {integer} [dir=3] The direction dir = 1 (left), 2 (right), 3 (both).
|
||||
* @return {string} The padded string
|
||||
*/
|
||||
pad: function (str, len, pad, dir) {
|
||||
|
|
2
typescript/phaser.d.ts
vendored
2
typescript/phaser.d.ts
vendored
|
@ -4879,7 +4879,7 @@ declare module Phaser {
|
|||
static getProperty(obj: any, prop: string): any;
|
||||
static isPlainObject(object: any): boolean;
|
||||
static mixin(from: any, to: any): any;
|
||||
static pad(str: string, len: number, pad: number, dir?: number): string;
|
||||
static pad(str: string, len?: number, pad?: string, dir?: number): string;
|
||||
static parseDimension(size: any, dimension: number): number;
|
||||
static randomChoice(choice1: any, choice2: any): any;
|
||||
static rotateArray<T>(array: T[], direction: any): T;
|
||||
|
|
Loading…
Reference in a new issue