demo报错修改

This commit is contained in:
tsm 2024-04-29 21:41:05 +08:00
parent b83413cf49
commit 4fe7bce24e
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,6 @@ export class SVGParseImpl implements IParseSvg {
} }
} }
} }
})
imageSource.createPixelMap(opts).then((pixelMap: image.PixelMap) => { imageSource.createPixelMap(opts).then((pixelMap: image.PixelMap) => {
let imageKnifeData = ImageKnifeData.createImagePixelMap(ImageKnifeType.PIXELMAP, pixelMap) let imageKnifeData = ImageKnifeData.createImagePixelMap(ImageKnifeType.PIXELMAP, pixelMap)
onComplete(imageKnifeData?.drawPixelMap?.imagePixelMap as PixelMap); onComplete(imageKnifeData?.drawPixelMap?.imagePixelMap as PixelMap);
@ -56,5 +55,6 @@ export class SVGParseImpl implements IParseSvg {
onErrorFunction(err); onErrorFunction(err);
imageSource.release() imageSource.release()
}) })
})
} }
} }