cornerstonejs / cornerstoneWADOImageLoader

[DEPRECATED] DICOM WADO Image Loader for the cornerstone library
MIT License
280 stars 267 forks source link

Why listening cornerstoneimageloadprogress events, the callback function parameters of the event. The detail of the toal and percentComplete for undefined #499

Open zhengdechang1 opened 1 year ago

zhengdechang1 commented 1 year ago

Why listening cornerstoneimageloadprogress events, the callback function parameters of the event. The detail of the toal and percentComplete for undefined

my code //cacha image cornerState.leftStack.imageIds.map((imageId, index) => cornerstone.loadAndCacheImage(imageId).then((res) => { // console.log(res, index) }) )

// addEventListener cornerstone.events.addEventListener( 'cornerstoneimageloadprogress', function (event) { const eventData = event.detail console.log(eventData, 'eventData: ') } )

//result 1671084615300