mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: update tslint rules (#7391)
This commit is contained in:
@@ -16,7 +16,7 @@ export class ImageAsset extends ImageAssetBase {
|
||||
this.nativeImage = UIImage.imageWithContentsOfFile(asset);
|
||||
}
|
||||
else if (asset instanceof UIImage) {
|
||||
this.nativeImage = asset
|
||||
this.nativeImage = asset;
|
||||
}
|
||||
else {
|
||||
this.ios = asset;
|
||||
@@ -44,6 +44,7 @@ export class ImageAsset extends ImageAssetBase {
|
||||
let newSize = CGSizeMake(requestedSize.width, requestedSize.height);
|
||||
let resizedImage = this.scaleImage(this.nativeImage, newSize);
|
||||
callback(resizedImage, null);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -72,6 +73,7 @@ export class ImageAsset extends ImageAssetBase {
|
||||
image.drawInRect(CGRectMake(0, 0, requestedSize.width, requestedSize.height));
|
||||
let resultImage = UIGraphicsGetImageFromCurrentImageContext();
|
||||
UIGraphicsEndImageContext();
|
||||
|
||||
return resultImage;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user