How to work with wadouri
I have changed the config json from wadors
to wadouri
. The thumbnail wadouri loaded successfully, but the image was not rendered.
And I found the promiseFn loadImageToCanvas was pending always, then or catch not triggered.
cornerstone.utilities
.loadImageToCanvas({ canvas, imageId })
.then(imageId => {
console.log('===getImageSrcFromImageId then', imageId) // not console
resolve(canvas.toDataURL());
})
.catch(err => {
console.log('===getImageSrcFromImageId err', imageId, err) // not console
reject(err);
})
.finally(() => {
console.log('===getImageSrcFromImageId finally', imageId) // not console
});