diff --git a/doric-js/bundle/doric-lib.es5.js b/doric-js/bundle/doric-lib.es5.js index f5ae7829..d88a5170 100644 --- a/doric-js/bundle/doric-lib.es5.js +++ b/doric-js/bundle/doric-lib.es5.js @@ -1786,6 +1786,10 @@ var Image = /** @class */ (function (_super) { Property, __metadata$4("design:type", Function) ], Image.prototype, "loadCallback", void 0); + __decorate$4([ + Property, + __metadata$4("design:type", Number) + ], Image.prototype, "imageScale", void 0); __decorate$4([ Property, __metadata$4("design:type", Object) diff --git a/doric-js/bundle/doric-lib.js b/doric-js/bundle/doric-lib.js index a72724c9..7607a50b 100644 --- a/doric-js/bundle/doric-lib.js +++ b/doric-js/bundle/doric-lib.js @@ -1336,6 +1336,10 @@ __decorate$4([ Property, __metadata$4("design:type", Function) ], Image.prototype, "loadCallback", void 0); +__decorate$4([ + Property, + __metadata$4("design:type", Number) +], Image.prototype, "imageScale", void 0); __decorate$4([ Property, __metadata$4("design:type", Object) diff --git a/doric-js/bundle/doric-vm.js b/doric-js/bundle/doric-vm.js index dfd4d93a..6ce36c5d 100644 --- a/doric-js/bundle/doric-vm.js +++ b/doric-js/bundle/doric-vm.js @@ -2795,6 +2795,10 @@ __decorate$4([ Property, __metadata$4("design:type", Function) ], Image.prototype, "loadCallback", void 0); +__decorate$4([ + Property, + __metadata$4("design:type", Number) +], Image.prototype, "imageScale", void 0); __decorate$4([ Property, __metadata$4("design:type", Object) diff --git a/doric-js/index.d.ts b/doric-js/index.d.ts index e98cd138..adfe196e 100644 --- a/doric-js/index.d.ts +++ b/doric-js/index.d.ts @@ -487,6 +487,13 @@ declare module 'doric/lib/src/widget/image' { width: number; height: number; } | undefined) => void; + /** + * Default is Environment.screenScale. + */ + imageScale?: number; + /** + * Unit in pixel + */ stretchInset?: { left: number; top: number; diff --git a/doric-js/lib/src/widget/image.d.ts b/doric-js/lib/src/widget/image.d.ts index 55a72200..5f1965fc 100644 --- a/doric-js/lib/src/widget/image.d.ts +++ b/doric-js/lib/src/widget/image.d.ts @@ -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; diff --git a/doric-js/lib/src/widget/image.js b/doric-js/lib/src/widget/image.js index 381fbee7..38e8a171 100644 --- a/doric-js/lib/src/widget/image.js +++ b/doric-js/lib/src/widget/image.js @@ -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) diff --git a/doric-js/src/widget/image.ts b/doric-js/src/widget/image.ts index 5a514b69..2eb7b2cd 100644 --- a/doric-js/src/widget/image.ts +++ b/doric-js/src/widget/image.ts @@ -81,6 +81,14 @@ export class Image extends View { @Property loadCallback?: (image: { width: number; height: number } | undefined) => void + /** + * Default is Environment.screenScale. + */ + @Property + imageScale?: number + /** + * Unit in pixel + */ @Property stretchInset?: { left: number,