demo报错修改
This commit is contained in:
parent
b83413cf49
commit
4fe7bce24e
|
@ -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()
|
||||||
})
|
})
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue