This commit is contained in:
Anton Lavrenov
2019-10-11 07:55:04 -05:00
parent 80c674eb1f
commit 0731316a7e
4 changed files with 7 additions and 4 deletions

View File

@@ -7,7 +7,7 @@ import { _registerNode } from '../Global';
import { GetSet, IRect } from '../types';
export interface ImageConfig extends ShapeConfig {
image: ImageBitmapSource;
image: CanvasImageSource | undefined;
crop?: IRect;
}
@@ -124,7 +124,7 @@ export class Image extends Shape<ImageConfig> {
img.src = url;
}
image: GetSet<CanvasImageSource, this>;
image: GetSet<CanvasImageSource | undefined, this>;
crop: GetSet<IRect, this>;
cropX: GetSet<number, this>;
cropY: GetSet<number, this>;