image tileInset property support boolean value.

This commit is contained in:
吴尚昆
2022-03-18 17:05:32 +08:00
committed by osborn
parent 3d4326ba7b
commit 22f290f6a9
7 changed files with 311 additions and 248 deletions

9
doric-js/index.d.ts vendored
View File

@@ -702,12 +702,19 @@ declare module 'doric/lib/src/widget/image' {
right: number;
bottom: number;
};
/**
* image tile
*
* If boolean value 'true' is passed, it equals { left: 0, top: 0, right: 0, bottom: 0 }
* Android: only support all area tile, so you'd better pass boolean value.
* iOS: support custom area tile, so you can pass object value and boolean value.
*/
tileInset?: {
left: number;
top: number;
right: number;
bottom: number;
};
} | boolean;
/**
* Called if loaded image is animated and played end.
*/

View File

@@ -82,12 +82,19 @@ export declare class Image extends View {
right: number;
bottom: number;
};
/**
* image tile
*
* If boolean value 'true' is passed, it equals { left: 0, top: 0, right: 0, bottom: 0 }
* Android: only support all area tile, so you'd better pass boolean value.
* iOS: support custom area tile, so you can pass object value and boolean value.
*/
tileInset?: {
left: number;
top: number;
right: number;
bottom: number;
};
} | boolean;
/**
* Called if loaded image is animated and played end.
*/

View File

@@ -120,13 +120,20 @@ export class Image extends View {
bottom: number
}
/**
* image tile
*
* If boolean value 'true' is passed, it equals { left: 0, top: 0, right: 0, bottom: 0 }
* Android: only support all area tile, so you'd better pass boolean value.
* iOS: support custom area tile, so you can pass object value and boolean value.
*/
@Property
tileInset?: {
left: number,
top: number,
right: number,
bottom: number
}
} | boolean
/**
* Called if loaded image is animated and played end.