mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: set keepAspectRatio to true as default in image-asset (#5613)
* chore: set keepAspectRatio to true as default in image-asset * fix: remove empty lines
This commit is contained in:
@@ -9,6 +9,11 @@ export class ImageAsset extends observable.Observable implements definition.Ima
|
||||
ios: PHAsset;
|
||||
android: string;
|
||||
|
||||
constructor () {
|
||||
super();
|
||||
this._options = { keepAspectRatio: true };
|
||||
}
|
||||
|
||||
get options(): definition.ImageAssetOptions {
|
||||
return this._options;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user