Skip to content

Commit 1b4d033

Browse files
committed
TypeScript updates.
1 parent c4d7870 commit 1b4d033

3 files changed

Lines changed: 3 additions & 36 deletions

File tree

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,6 @@ Please note that Phaser uses a custom build of Pixi and always has done. The fol
375375
* The property PIXI.TextureCacheIdGenerator has been removed, as it was not used internally.
376376
* The property PIXI.FrameCache has been removed, as it was not used internally.
377377

378-
379378
For changes in previous releases please see the extensive [Version History](https://github.com/photonstorm/phaser/blob/master/CHANGELOG.md).
380379

381380
![Contributing](http://phaser.io/images/github/div-contributing.png "Contributing")

typescript/phaser.d.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,9 @@ declare module Phaser {
513513
static XML: number;
514514
static VIDEO: number;
515515

516+
static DEFAULT: PIXI.Texture;
517+
static MISSING: PIXI.Texture;
518+
516519
autoResolveURL: boolean;
517520
game: Phaser.Game;
518521
onSoundUnlock: Phaser.Signal;
@@ -571,8 +574,6 @@ declare module Phaser {
571574
getItem(key: string, cache: number, method?: string, property?: string): any;
572575
getJSON(key: string, clone?: boolean): any;
573576
getKeys(cache: number): string[];
574-
getPixiTexture(key: string): PIXI.Texture;
575-
getPixiBaseTexture(key: string): PIXI.BaseTexture;
576577
getPhysicsData(key: string, object?: string, fixtureKey?: string): any[];
577578
getRenderTexture(key: string): Phaser.CachedRenderTexture;
578579
getShader(key: string): string;

typescript/pixi.d.ts

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ declare module PIXI {
5151
export var glContexts: WebGLRenderingContext[];
5252
export var instances: any[];
5353

54-
export var BaseTextureCache: { [key: string]: BaseTexture };
55-
export var TextureCache: { [key: string]: Texture };
5654
export var TextureSilentFail: boolean;
5755
export var BitmapText: { fonts: {} };
5856

@@ -254,7 +252,6 @@ declare module PIXI {
254252

255253
export class BaseTexture implements Mixin {
256254

257-
static fromImage(imageUrl: string, crossorigin?: boolean, scaleMode?: scaleModes): BaseTexture;
258255
static fromCanvas(canvas: HTMLCanvasElement, scaleMode?: scaleModes): BaseTexture;
259256

260257
constructor(source: HTMLImageElement, scaleMode: scaleModes);
@@ -281,7 +278,6 @@ declare module PIXI {
281278
forceLoaded(width: number, height: number): void;
282279
destroy(): void;
283280
dirty(): void;
284-
updateSourceImage(newSrc: string): void;
285281
unloadFromGPU(): void;
286282

287283
}
@@ -768,28 +764,6 @@ declare module PIXI {
768764

769765
}
770766

771-
export class MovieClip extends Sprite {
772-
773-
static fromFrames(frames: string[]): MovieClip;
774-
static fromImages(images: HTMLImageElement[]): HTMLImageElement;
775-
776-
constructor(textures: Texture[]);
777-
778-
animationSpeed: number;
779-
currentFrame: number;
780-
loop: boolean;
781-
playing: boolean;
782-
textures: Texture[];
783-
totalFrames: number;
784-
785-
gotoAndPlay(frameNumber: number): void;
786-
gotoAndStop(frameNumber: number): void;
787-
onComplete(): void;
788-
play(): void;
789-
stop(): void;
790-
791-
}
792-
793767
export class NoiseFilter extends AbstractFilter {
794768

795769
noise: number;
@@ -1018,9 +992,6 @@ declare module PIXI {
1018992

1019993
export class Sprite extends DisplayObjectContainer {
1020994

1021-
static fromFrame(frameId: string): Sprite;
1022-
static fromImage(url: string, crossorigin?: boolean, scaleMode?: scaleModes): Sprite;
1023-
1024995
constructor(texture: Texture);
1025996

1026997
anchor: Point;
@@ -1097,10 +1068,6 @@ declare module PIXI {
10971068
static emptyTexture: Texture;
10981069

10991070
static fromCanvas(canvas: HTMLCanvasElement, scaleMode?: scaleModes): Texture;
1100-
static fromFrame(frameId: string): Texture;
1101-
static fromImage(imageUrl: string, crossorigin?: boolean, scaleMode?: scaleModes): Texture;
1102-
static addTextureToCache(texture: Texture, id: string): void;
1103-
static removeTextureFromCache(id: string): Texture;
11041071

11051072
constructor(baseTexture: BaseTexture, frame?: Rectangle, crop?: Rectangle, trim?: Rectangle);
11061073

0 commit comments

Comments
 (0)