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) {
|
if (this.imageKnifeOption.objectFit === ImageFit.Auto && this.isImageFitAutoResize) {
|
||||||
this.isImageFitAutoResize = false
|
this.isImageFitAutoResize = false
|
||||||
} else {
|
} 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 +
|
' placeholderSrc = ' + this.imageKnifeOption.placeholderSrc +
|
||||||
' errorholderSrc = ' + this.imageKnifeOption.errorholderSrc +
|
' errorholderSrc = ' + this.imageKnifeOption.errorholderSrc +
|
||||||
' componentId = ' + this.getUniqueId())
|
' 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 {
|
getCurrentContext(): common.UIAbilityContext {
|
||||||
|
@ -157,8 +159,8 @@ export struct ImageKnifeComponent {
|
||||||
fileCache = fileCache - net
|
fileCache = fileCache - net
|
||||||
let source = memory == 1 ? 'memory' : fileCache == 1 ? 'fileCache' : 'downLoad'
|
let source = memory == 1 ? 'memory' : fileCache == 1 ? 'fileCache' : 'downLoad'
|
||||||
LogUtil.info('image load showPixelMap:' + this.request?.componentId + ',srcType:' + requestSource +
|
LogUtil.info('image load showPixelMap:' + this.request?.componentId + ',srcType:' + requestSource +
|
||||||
',version:' + this.request?.componentVersion
|
',version:' + this.request?.componentVersion +
|
||||||
+ ',size:' + JSON.stringify(size) + ',source:' + source)
|
',size:' + JSON.stringify(size) + ',source:' + source)
|
||||||
if (typeof this.pixelMap !== 'string') {
|
if (typeof this.pixelMap !== 'string') {
|
||||||
if (this.imageKnifeOption.objectFit === ImageFit.Auto && this.isImageFitAutoResize == false) {
|
if (this.imageKnifeOption.objectFit === ImageFit.Auto && this.isImageFitAutoResize == false) {
|
||||||
this.adaptiveHeight = this.currentWidth * size.height / size.width
|
this.adaptiveHeight = this.currentWidth * size.height / size.width
|
||||||
|
|
Loading…
Reference in New Issue