Compare commits
2 Commits
7317fa025a
...
249e01716a
Author | SHA1 | Date |
---|---|---|
|
249e01716a | |
|
1efe55db1e |
|
@ -475,7 +475,7 @@ export class ImageKnifeDispatcher {
|
||||||
}
|
}
|
||||||
this.assembleImageKnifeData(callBackData,requestJobResult.imageKnifeData,requestWithSource.request)
|
this.assembleImageKnifeData(callBackData,requestJobResult.imageKnifeData,requestWithSource.request)
|
||||||
LogUtil.log('getAndShowImage cancel:' + requestWithSource.request.componentId + ',srcType:' + requestSource + ',version:' + requestWithSource.request.componentVersion)
|
LogUtil.log('getAndShowImage cancel:' + requestWithSource.request.componentId + ',srcType:' + requestSource + ',version:' + requestWithSource.request.componentVersion)
|
||||||
requestWithSource.request.imageKnifeOption.onLoadListener.onLoadCancel('component has destroyed', requestWithSource.request)
|
requestWithSource.request.imageKnifeOption.onLoadListener.onLoadCancel('component has destroyed from load', requestWithSource.request)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -522,7 +522,7 @@ export class ImageKnifeDispatcher {
|
||||||
callBackData.errorInfo = errorInfo;
|
callBackData.errorInfo = errorInfo;
|
||||||
}
|
}
|
||||||
LogUtil.log('dispatchNextJob cancel:' + request.componentId + ',version:' + request.componentVersion)
|
LogUtil.log('dispatchNextJob cancel:' + request.componentId + ',version:' + request.componentVersion)
|
||||||
request.imageKnifeOption.onLoadListener.onLoadCancel('component has destroyed', request)
|
request.imageKnifeOption.onLoadListener.onLoadCancel('component has destroyed from queue', request)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -631,8 +631,8 @@ export class ImageKnifeLoader {
|
||||||
static getDownsamplerDecodingOptions(typeValue: string, request: RequestJobRequest, size: Size,
|
static getDownsamplerDecodingOptions(typeValue: string, request: RequestJobRequest, size: Size,
|
||||||
SRC?: ImageKnifeRequestSource):image.DecodingOptions {
|
SRC?: ImageKnifeRequestSource):image.DecodingOptions {
|
||||||
let reqSize =
|
let reqSize =
|
||||||
new Downsampler().calculateScaling(typeValue, size.width, size.height, vp2px(request.targetWidth), vp2px(request.targetHeight),
|
new Downsampler().calculateScaling(typeValue, size.width, size.height,
|
||||||
request.downsampType)
|
vp2px(request.targetWidth), vp2px(request.targetHeight), request.downsampType)
|
||||||
if (typeValue == 'svg') {
|
if (typeValue == 'svg') {
|
||||||
return {
|
return {
|
||||||
editable: true,
|
editable: true,
|
||||||
|
|
Loading…
Reference in New Issue