Endel Dreyer
2016-10-06 10:16:48 -07:00
committed by Mohamed Hegazy
parent 4f1ec2ec0e
commit 1f00f8d0b4
+15
View File
@@ -52,7 +52,22 @@ declare namespace createjs {
// methods
clone(): Bitmap;
}
export class ScaleBitmap extends DisplayObject {
constructor(imageOrUrl: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | Object | string, scale9Grid: Rectangle);
// properties
image: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement;
sourceRect: Rectangle;
drawWidth: number;
drawHeight: number;
scale9Grid: Rectangle;
snapToPixel: boolean;
// methods
setDrawSize (newWidth: number, newHeight: number): void;
clone(): ScaleBitmap;
}
export class BitmapText extends DisplayObject {
constructor(text?:string, spriteSheet?:SpriteSheet);