image add imageScale
This commit is contained in:
parent
9e7c1f04ef
commit
8b1f5f6a43
@ -1786,6 +1786,10 @@ var Image = /** @class */ (function (_super) {
|
|||||||
Property,
|
Property,
|
||||||
__metadata$4("design:type", Function)
|
__metadata$4("design:type", Function)
|
||||||
], Image.prototype, "loadCallback", void 0);
|
], Image.prototype, "loadCallback", void 0);
|
||||||
|
__decorate$4([
|
||||||
|
Property,
|
||||||
|
__metadata$4("design:type", Number)
|
||||||
|
], Image.prototype, "imageScale", void 0);
|
||||||
__decorate$4([
|
__decorate$4([
|
||||||
Property,
|
Property,
|
||||||
__metadata$4("design:type", Object)
|
__metadata$4("design:type", Object)
|
||||||
|
@ -1336,6 +1336,10 @@ __decorate$4([
|
|||||||
Property,
|
Property,
|
||||||
__metadata$4("design:type", Function)
|
__metadata$4("design:type", Function)
|
||||||
], Image.prototype, "loadCallback", void 0);
|
], Image.prototype, "loadCallback", void 0);
|
||||||
|
__decorate$4([
|
||||||
|
Property,
|
||||||
|
__metadata$4("design:type", Number)
|
||||||
|
], Image.prototype, "imageScale", void 0);
|
||||||
__decorate$4([
|
__decorate$4([
|
||||||
Property,
|
Property,
|
||||||
__metadata$4("design:type", Object)
|
__metadata$4("design:type", Object)
|
||||||
|
@ -2795,6 +2795,10 @@ __decorate$4([
|
|||||||
Property,
|
Property,
|
||||||
__metadata$4("design:type", Function)
|
__metadata$4("design:type", Function)
|
||||||
], Image.prototype, "loadCallback", void 0);
|
], Image.prototype, "loadCallback", void 0);
|
||||||
|
__decorate$4([
|
||||||
|
Property,
|
||||||
|
__metadata$4("design:type", Number)
|
||||||
|
], Image.prototype, "imageScale", void 0);
|
||||||
__decorate$4([
|
__decorate$4([
|
||||||
Property,
|
Property,
|
||||||
__metadata$4("design:type", Object)
|
__metadata$4("design:type", Object)
|
||||||
|
7
doric-js/index.d.ts
vendored
7
doric-js/index.d.ts
vendored
@ -487,6 +487,13 @@ declare module 'doric/lib/src/widget/image' {
|
|||||||
width: number;
|
width: number;
|
||||||
height: number;
|
height: number;
|
||||||
} | undefined) => void;
|
} | undefined) => void;
|
||||||
|
/**
|
||||||
|
* Default is Environment.screenScale.
|
||||||
|
*/
|
||||||
|
imageScale?: number;
|
||||||
|
/**
|
||||||
|
* Unit in pixel
|
||||||
|
*/
|
||||||
stretchInset?: {
|
stretchInset?: {
|
||||||
left: number;
|
left: number;
|
||||||
top: number;
|
top: number;
|
||||||
|
7
doric-js/lib/src/widget/image.d.ts
vendored
7
doric-js/lib/src/widget/image.d.ts
vendored
@ -48,6 +48,13 @@ export declare class Image extends View {
|
|||||||
width: number;
|
width: number;
|
||||||
height: number;
|
height: number;
|
||||||
} | undefined) => void;
|
} | undefined) => void;
|
||||||
|
/**
|
||||||
|
* Default is Environment.screenScale.
|
||||||
|
*/
|
||||||
|
imageScale?: number;
|
||||||
|
/**
|
||||||
|
* Unit in pixel
|
||||||
|
*/
|
||||||
stretchInset?: {
|
stretchInset?: {
|
||||||
left: number;
|
left: number;
|
||||||
top: number;
|
top: number;
|
||||||
|
@ -82,6 +82,10 @@ __decorate([
|
|||||||
Property,
|
Property,
|
||||||
__metadata("design:type", Function)
|
__metadata("design:type", Function)
|
||||||
], Image.prototype, "loadCallback", void 0);
|
], Image.prototype, "loadCallback", void 0);
|
||||||
|
__decorate([
|
||||||
|
Property,
|
||||||
|
__metadata("design:type", Number)
|
||||||
|
], Image.prototype, "imageScale", void 0);
|
||||||
__decorate([
|
__decorate([
|
||||||
Property,
|
Property,
|
||||||
__metadata("design:type", Object)
|
__metadata("design:type", Object)
|
||||||
|
@ -81,6 +81,14 @@ export class Image extends View {
|
|||||||
@Property
|
@Property
|
||||||
loadCallback?: (image: { width: number; height: number } | undefined) => void
|
loadCallback?: (image: { width: number; height: number } | undefined) => void
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Default is Environment.screenScale.
|
||||||
|
*/
|
||||||
|
@Property
|
||||||
|
imageScale?: number
|
||||||
|
/**
|
||||||
|
* Unit in pixel
|
||||||
|
*/
|
||||||
@Property
|
@Property
|
||||||
stretchInset?: {
|
stretchInset?: {
|
||||||
left: number,
|
left: number,
|
||||||
|
Reference in New Issue
Block a user