image add imageScale

This commit is contained in:
pengfei.zhou
2020-04-23 16:14:34 +08:00
committed by osborn
parent 9e7c1f04ef
commit 8b1f5f6a43
7 changed files with 38 additions and 0 deletions

View File

@@ -48,6 +48,13 @@ export declare class Image extends View {
width: number;
height: number;
} | undefined) => void;
/**
* Default is Environment.screenScale.
*/
imageScale?: number;
/**
* Unit in pixel
*/
stretchInset?: {
left: number;
top: number;

View File

@@ -82,6 +82,10 @@ __decorate([
Property,
__metadata("design:type", Function)
], Image.prototype, "loadCallback", void 0);
__decorate([
Property,
__metadata("design:type", Number)
], Image.prototype, "imageScale", void 0);
__decorate([
Property,
__metadata("design:type", Object)