mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 11:01:21 +08:00
chore(image): expose decode image properties for the public API (#5629)
This commit is contained in:

committed by
Manol Donev

parent
cf950e1ebb
commit
cf2ed824bf
16
tns-core-modules/ui/image/image.d.ts
vendored
16
tns-core-modules/ui/image/image.d.ts
vendored
@ -3,7 +3,7 @@
|
||||
* @module "ui/image"
|
||||
*/ /** */
|
||||
|
||||
import { View, Property, InheritedCssProperty, Color, Style } from "../core/view";
|
||||
import { View, Property, InheritedCssProperty, Color, Style, Length } from "../core/view";
|
||||
import { ImageSource } from "../../image-source";
|
||||
|
||||
/**
|
||||
@ -52,6 +52,18 @@ export class Image extends View {
|
||||
* A color used to tint template images.
|
||||
*/
|
||||
tintColor: Color;
|
||||
|
||||
/**
|
||||
* Gets or sets the desired decode height of the image.
|
||||
* This property is Android specific.
|
||||
*/
|
||||
decodeHeight: Length;
|
||||
|
||||
/**
|
||||
* Gets or sets the desired decode width of the image.
|
||||
* This property is Android specific.
|
||||
*/
|
||||
decodeWidth: Length;
|
||||
}
|
||||
|
||||
export type Stretch = "none" | "aspectFill" | "aspectFit" | "fill";
|
||||
@ -62,3 +74,5 @@ export const isLoadingProperty: Property<Image, string>;
|
||||
export const loadMode: Property<Image, "sync" | "async">;
|
||||
export const stretchProperty: Property<Image, Stretch>;
|
||||
export const tintColorProperty: InheritedCssProperty<Style, Color>;
|
||||
export const decodeHeightProperty: Property<Image, Length>;
|
||||
export const decodeWidthProperty: Property<Image, Length>;
|
Reference in New Issue
Block a user