mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
EaselJS: add missing ScaleBitmap class (#11791)
Source code: https://github.com/CreateJS/EaselJS/blob/9b4a11f793d396290650619b1bc40b824b8d8571/extras/ScaleBitmap/ScaleBitmap.js#L49-L117
This commit is contained in:
committed by
Mohamed Hegazy
parent
4f1ec2ec0e
commit
1f00f8d0b4
Vendored
+15
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user