Compare commits
2 Commits
eccba61d2c
...
473c50a36a
Author | SHA1 | Date |
---|---|---|
|
473c50a36a | |
|
3eac70aa61 |
|
@ -110,7 +110,8 @@ export struct ImageKnifeComponent {
|
|||
if (this.imageKnifeOption.objectFit === ImageFit.Auto && this.isImageFitAutoResize) {
|
||||
this.isImageFitAutoResize = false
|
||||
} else {
|
||||
ImageKnife.getInstance().execute(this.getRequest(this.currentWidth, this.currentHeight,this.getUniqueId()))
|
||||
ImageKnife.getInstance().execute(this.getRequest(
|
||||
this.currentWidth, this.currentHeight, this.getUniqueId()))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -127,7 +128,8 @@ export struct ImageKnifeComponent {
|
|||
' placeholderSrc = ' + this.imageKnifeOption.placeholderSrc +
|
||||
' errorholderSrc = ' + this.imageKnifeOption.errorholderSrc +
|
||||
' componentId = ' + this.getUniqueId())
|
||||
ImageKnife.getInstance().execute(this.getRequest(this.currentWidth, this.currentHeight,this.getUniqueId()))
|
||||
ImageKnife.getInstance().execute(this.getRequest(
|
||||
this.currentWidth, this.currentHeight, this.getUniqueId()))
|
||||
}
|
||||
|
||||
getCurrentContext(): common.UIAbilityContext {
|
||||
|
@ -157,8 +159,8 @@ export struct ImageKnifeComponent {
|
|||
fileCache = fileCache - net
|
||||
let source = memory == 1 ? 'memory' : fileCache == 1 ? 'fileCache' : 'downLoad'
|
||||
LogUtil.info('image load showPixelMap:' + this.request?.componentId + ',srcType:' + requestSource +
|
||||
',version:' + this.request?.componentVersion
|
||||
+ ',size:' + JSON.stringify(size) + ',source:' + source)
|
||||
',version:' + this.request?.componentVersion +
|
||||
',size:' + JSON.stringify(size) + ',source:' + source)
|
||||
if (typeof this.pixelMap !== 'string') {
|
||||
if (this.imageKnifeOption.objectFit === ImageFit.Auto && this.isImageFitAutoResize == false) {
|
||||
this.adaptiveHeight = this.currentWidth * size.height / size.width
|
||||
|
|
Loading…
Reference in New Issue