image scaleType add an enumeration ScaleToTile.

This commit is contained in:
吴尚昆
2022-03-18 19:07:09 +08:00
committed by osborn
parent 31f45d161f
commit 55ff312312
12 changed files with 33 additions and 142 deletions

View File

@@ -23,6 +23,7 @@ export enum ScaleType {
ScaleToFill = 0,
ScaleAspectFit,
ScaleAspectFill,
ScaleToTile, // image tile mode
}
export class Image extends View {
@@ -120,21 +121,6 @@ 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.
*/