1.imagePacker.packing second parameter must transform upward to any

Signed-off-by: zhoulisheng <635547767@qq.com>
This commit is contained in:
zhoulisheng 2022-03-25 15:34:19 +08:00
parent 8f394ea07b
commit ff30e3d2e9
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ export class Engine {
quality: computeSize,
}
var imagePacker = image.createImagePacker();
imagePacker.packing(imageResource, packer, (err,compressBuffer)=>{
imagePacker.packing(imageResource, packer as any, (err,compressBuffer)=>{
if(err){
this.mCompressListener.onError("resource packing fail,because error:" + err);
}