EaselJS: add missing ScaleBitmap class (#11791)

Source code: 9b4a11f793/extras/ScaleBitmap/ScaleBitmap.js (L49-L117)
This commit is contained in:
Endel Dreyer
2016-10-06 19:16:48 +02:00
committed by Mohamed Hegazy
parent 4f1ec2ec0e
commit 1f00f8d0b4

15
easeljs/easeljs.d.ts vendored
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);