mirror of
https://github.com/photonstorm/phaser
synced 2025-02-17 14:38:30 +00:00
Add some changes from phaser.comments.d.ts back to phaser.d.ts
This commit is contained in:
parent
ab6feb3ebc
commit
c30b993cb9
2 changed files with 8 additions and 6 deletions
2
typescript/phaser.comments.d.ts
vendored
2
typescript/phaser.comments.d.ts
vendored
|
@ -1525,7 +1525,7 @@ declare module Phaser {
|
||||||
* @param region The area to perform the search over. If not given it will replace over the whole BitmapData.
|
* @param region The area to perform the search over. If not given it will replace over the whole BitmapData.
|
||||||
* @return This BitmapData object for method chaining.
|
* @return This BitmapData object for method chaining.
|
||||||
*/
|
*/
|
||||||
replaceRGB(r1: number, g1: number, b1: number, a1: number, r2: number, g2: number, b2: number, a2: number, region: Phaser.Rectangle): Phaser.BitmapData;
|
replaceRGB(r1: number, g1: number, b1: number, a1: number, r2: number, g2: number, b2: number, a2: number, region?: Phaser.Rectangle): Phaser.BitmapData;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Resizes the BitmapData. This changes the size of the underlying canvas and refreshes the buffer.
|
* Resizes the BitmapData. This changes the size of the underlying canvas and refreshes the buffer.
|
||||||
|
|
12
typescript/phaser.d.ts
vendored
12
typescript/phaser.d.ts
vendored
|
@ -1390,7 +1390,7 @@ declare module Phaser {
|
||||||
renderTexture(width?: number, height?: number, key?: string, addToCache?: boolean): Phaser.RenderTexture;
|
renderTexture(width?: number, height?: number, key?: string, addToCache?: boolean): Phaser.RenderTexture;
|
||||||
retroFont(font: string, characterWidth: number, characterHeight: number, chars: string, charsPerRow: number, xSpacing?: number, ySpacing?: number, xOffset?: number, yOffset?: number): Phaser.RetroFont;
|
retroFont(font: string, characterWidth: number, characterHeight: number, chars: string, charsPerRow: number, xSpacing?: number, ySpacing?: number, xOffset?: number, yOffset?: number): Phaser.RetroFont;
|
||||||
rope(x: number, y: number, key: any, frame?: any, points?: Phaser.Point[]): Phaser.Rope;
|
rope(x: number, y: number, key: any, frame?: any, points?: Phaser.Point[]): Phaser.Rope;
|
||||||
sound(key: string, volume?: number, loop?: number, connect?: boolean): Phaser.Sound;
|
sound(key: string, volume?: number, loop?: boolean, connect?: boolean): Phaser.Sound;
|
||||||
sprite(x: number, y: number, key?: any, frame?: any, group?: Phaser.Group): Phaser.Sprite;
|
sprite(x: number, y: number, key?: any, frame?: any, group?: Phaser.Group): Phaser.Sprite;
|
||||||
spriteBatch(parent: any, name?: string, addToStage?: boolean): Phaser.Group;
|
spriteBatch(parent: any, name?: string, addToStage?: boolean): Phaser.Group;
|
||||||
text(x: number, y: number, text: string, style: any, group?: Phaser.Group): Phaser.Text;
|
text(x: number, y: number, text: string, style: any, group?: Phaser.Group): Phaser.Text;
|
||||||
|
@ -2750,6 +2750,7 @@ declare module Phaser {
|
||||||
gravity: Phaser.Point;
|
gravity: Phaser.Point;
|
||||||
halfWidth: number;
|
halfWidth: number;
|
||||||
halfHeight: number;
|
halfHeight: number;
|
||||||
|
height: number;
|
||||||
immovable: boolean;
|
immovable: boolean;
|
||||||
mass: number;
|
mass: number;
|
||||||
maxAngular: number;
|
maxAngular: number;
|
||||||
|
@ -4558,9 +4559,10 @@ declare module Phaser {
|
||||||
tab?: number;
|
tab?: number;
|
||||||
tabs?: number;
|
tabs?: number;
|
||||||
|
|
||||||
|
fontSize?: number;
|
||||||
fontStyle?: string;
|
fontStyle?: string;
|
||||||
fontVariant?: string;
|
fontVariant?: string;
|
||||||
fontWeight?: string;
|
fontWeight?: string|number;
|
||||||
backgroundColor?: string;
|
backgroundColor?: string;
|
||||||
boundsAlignH?: string;
|
boundsAlignH?: string;
|
||||||
boundsAlignV?: string;
|
boundsAlignV?: string;
|
||||||
|
@ -4595,8 +4597,8 @@ declare module Phaser {
|
||||||
fontStyle: string;
|
fontStyle: string;
|
||||||
fontStyles: string[];
|
fontStyles: string[];
|
||||||
fontVariant: string;
|
fontVariant: string;
|
||||||
fontWeight: string;
|
fontWeight: string|number;
|
||||||
fontWeights: string[];
|
fontWeights: (string|number)[];
|
||||||
game: Phaser.Game;
|
game: Phaser.Game;
|
||||||
input: Phaser.InputHandler;
|
input: Phaser.InputHandler;
|
||||||
inputEnabled: boolean;
|
inputEnabled: boolean;
|
||||||
|
@ -5178,7 +5180,7 @@ declare module Phaser {
|
||||||
static parseDimension(size: any, dimension: number): number;
|
static parseDimension(size: any, dimension: number): number;
|
||||||
static pad(str: string, len?: number, pad?: string, dir?: number): string;
|
static pad(str: string, len?: number, pad?: string, dir?: number): string;
|
||||||
static isPlainObject(object: any): boolean;
|
static isPlainObject(object: any): boolean;
|
||||||
static extend(deep: boolean, target: any): any;
|
static extend(deep: boolean, target: any, ...args: any[]): any;
|
||||||
static mixinPrototype(target: any, mixin: any, replace?: boolean): void;
|
static mixinPrototype(target: any, mixin: any, replace?: boolean): void;
|
||||||
static mixin<T>(from: T, to: any): T;
|
static mixin<T>(from: T, to: any): T;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue