mirror of
https://github.com/photonstorm/phaser
synced 2024-12-11 05:42:55 +00:00
Merge pull request #1155 from englercj/dev
More typescript definition file updates
This commit is contained in:
commit
37ddbf8612
1 changed files with 32 additions and 26 deletions
58
build/phaser.d.ts
vendored
58
build/phaser.d.ts
vendored
|
@ -1299,28 +1299,28 @@ declare module Phaser {
|
|||
checkBitmapDataKey(key: string): boolean;
|
||||
checkBitmapFontKey(key: string): boolean;
|
||||
checkJSONKey(key: string): boolean;
|
||||
decodedSound(key: string, data: Object): void;
|
||||
decodedSound(key: string, data: any): void;
|
||||
destroy(): void;
|
||||
getBinary(key: string): Object;
|
||||
getBinary(key: string): any;
|
||||
getBitmapData(key: string): Phaser.BitmapData;
|
||||
getBitmapFont(key: string): Phaser.RetroFont;
|
||||
getCanvas(key: string): Object;
|
||||
getCanvas(key: string): any;
|
||||
getFrame(key: string): Phaser.Frame;
|
||||
getFrameByIndex(key: string, frame: string): Phaser.Frame;
|
||||
getFrameByName(key: string, frame: string): Phaser.Frame;
|
||||
getFrameData(key: string): Phaser.FrameData;
|
||||
getImage(key: string): Object;
|
||||
getJSON(key: string): Object;
|
||||
getImage(key: string): any;
|
||||
getJSON(key: string): any;
|
||||
getKeys(array: string[]): string[];
|
||||
getPhysicsData(key: string, object?: string, fixtureKey?: string): Object[];
|
||||
getSound(key: string): Phaser.Sound;
|
||||
getSoundData(key: string): Object;
|
||||
getSoundData(key: string): any;
|
||||
getText(key: string): string;
|
||||
getTextKeys(): string[];
|
||||
getTexture(key: string): Phaser.RenderTexture;
|
||||
getTextureFrame(key: string): Phaser.Frame;
|
||||
getTilemapData(key: string): Object;
|
||||
getTilemap(key: string): Object;
|
||||
getTilemapData(key: string): any;
|
||||
getTilemap(key: string): any;
|
||||
isSoundDecoded(key: string): boolean;
|
||||
isSoundReady(key: string): boolean;
|
||||
isSpriteSheet(key: string): boolean;
|
||||
|
@ -3894,43 +3894,49 @@ declare module Phaser {
|
|||
y: number;
|
||||
|
||||
static add(a: Phaser.Point, b: Phaser.Point, out?: Phaser.Point): Phaser.Point;
|
||||
static centroid(points: Phaser.Point[], out?: Phaser.Point): Phaser.Point;
|
||||
static distance(a: Phaser.Point, b: Phaser.Point, round?: boolean): number;
|
||||
static subtract(a: Phaser.Point, b: Phaser.Point, out?: Phaser.Point): Phaser.Point;
|
||||
static multiply(a: Phaser.Point, b: Phaser.Point, out?: Phaser.Point): Phaser.Point;
|
||||
static divide(a: Phaser.Point, b: Phaser.Point, out?: Phaser.Point): Phaser.Point;
|
||||
static equals(a: Phaser.Point, b: Phaser.Point): boolean;
|
||||
static multiply(a: Phaser.Point, b: Phaser.Point, out?: Phaser.Point): Phaser.Point;
|
||||
static rotate(a: Phaser.Point, x: number, y: number, angle: number, asDegrees: boolean, distance?: number): Phaser.Point;
|
||||
static subtract(a: Phaser.Point, b: Phaser.Point, out?: Phaser.Point): Phaser.Point;
|
||||
static angle(a: Phaser.Point, b: Phaser.Point): number;
|
||||
static angleSq(a: Phaser.Point, b: Phaser.Point): number;
|
||||
static negative(a: Phaser.Point, out?: Phaser.Point): Phaser.Point;
|
||||
static multiplyAdd(a: Phaser.Point, b: Phaser.Point, scale: number, out?: Phaser.Point): Phaser.Point;
|
||||
static interpolate(a: Phaser.Point, b: Phaser.Point, alpha: number, out?: Phaser.Point): Phaser.Point;
|
||||
static perp(a: Phaser.Point, out?: Phaser.Point): Phaser.Point;
|
||||
static rperp(a: Phaser.Point, out?: Phaser.Point): Phaser.Point;
|
||||
static distance(a: any, b: any, round?: boolean): number;
|
||||
static project(a: Phaser.Point, b: Phaser.Point, out?: Phaser.Point): Phaser.Point;
|
||||
static projectUnit(a: Phaser.Point, b: Phaser.Point, out?: Phaser.Point): Phaser.Point;
|
||||
static normalRightHand(a: Phaser.Point, out?: Phaser.Point): Phaser.Point;
|
||||
static normalize(a: Phaser.Point, out?: Phaser.Point): Phaser.Point;
|
||||
static rotate(a: Phaser.Point, x: number, y: number, angle: number, asDegrees?: boolean, distance?: number): Phaser.Point;
|
||||
static centroid(points: Phaser.Point[], out?: Phaser.Point): Phaser.Point;
|
||||
|
||||
add(x: number, y: number): Phaser.Point;
|
||||
angle(a: Phaser.Point, asDegrees?: boolean): number;
|
||||
angleSq(a: Phaser.Point, b: Phaser.Point): number;
|
||||
angleSq(a: Phaser.Point): number;
|
||||
clamp(min: number, max: number): Phaser.Point;
|
||||
clampX(min: number, max: number): Phaser.Point;
|
||||
clampY(min: number, max: number): Phaser.Point;
|
||||
clone(output?: Phaser.Point): Phaser.Point;
|
||||
copyFrom(source: any): Phaser.Point;
|
||||
copyTo(dest: any): Object;
|
||||
copyFrom(source: Phaser.Point): Phaser.Point;
|
||||
copyTo(dest: Phaser.Point): Object;
|
||||
cross(a: Phaser.Point): number;
|
||||
distance(dest: Object, round?: boolean): number;
|
||||
divide(x: number, y: number): Phaser.Point;
|
||||
distance(dest: Phaser.Point, round?: boolean): number;
|
||||
dot(a: Phaser.Point): number;
|
||||
equals(a: Phaser.Point): boolean;
|
||||
getMagnitude(): number;
|
||||
getMagnitudeSq(): number;
|
||||
interpolate(a: Phaser.Point, b: Phaser.Point, f: number, out?: Phaser.Point): Phaser.Point;
|
||||
invert(): Phaser.Point;
|
||||
isZero(): boolean;
|
||||
multiply(x: number, y: number): Phaser.Point;
|
||||
multiplyAdd(a: Phaser.Point, b: Phaser.Point, s: number, out?: Phaser.Point): Phaser.Point;
|
||||
negative(a: Phaser.Point, out?: Phaser.Point): Phaser.Point;
|
||||
normalize(a: Phaser.Point, out?: Phaser.Point): Phaser.Point;
|
||||
normalRightHand(a: Phaser.Point, out?: Phaser.Point): Phaser.Point;
|
||||
perp(a: Phaser.Point, out?: Phaser.Point): Phaser.Point;
|
||||
project(a: Phaser.Point, b: Phaser.Point, out?: Phaser.Point): Phaser.Point;
|
||||
projectUnit(a: Phaser.Point, b: Phaser.Point, out?: Phaser.Point): Phaser.Point;
|
||||
normalize(): Phaser.Point;
|
||||
normalRightHand(): Phaser.Point;
|
||||
perp(): Phaser.Point;
|
||||
rperp(): Phaser.Point;
|
||||
rotate(x: number, y: number, angle: number, asDegrees?: boolean, distance?: number): Phaser.Point;
|
||||
rperp(a: Phaser.Point, out?: Phaser.Point): Phaser.Point;
|
||||
set(x: number, y?: number): Phaser.Point;
|
||||
setMagnitude(magnitude: number): Phaser.Point;
|
||||
setTo(x: number, y?: number): Phaser.Point;
|
||||
|
|
Loading…
Reference in a new issue