fix(Viewer): Switch to middle of stack for image thumbnail
This commit is contained in:
parent
71f11a4856
commit
e7604c4418
@ -319,7 +319,6 @@ export default Viewer;
|
|||||||
*
|
*
|
||||||
* TODO[react]:
|
* TODO[react]:
|
||||||
* - Add sorting of display sets
|
* - Add sorting of display sets
|
||||||
* - Add useMiddleSeriesInstanceAsThumbnail
|
|
||||||
* - Add showStackLoadingProgressBar option
|
* - Add showStackLoadingProgressBar option
|
||||||
*
|
*
|
||||||
* @param {Study[]} studies
|
* @param {Study[]} studies
|
||||||
@ -342,7 +341,9 @@ const _mapStudiesToThumbnails = function(studies) {
|
|||||||
let altImageText = ' '; // modality
|
let altImageText = ' '; // modality
|
||||||
|
|
||||||
if (displaySet.images && displaySet.images.length) {
|
if (displaySet.images && displaySet.images.length) {
|
||||||
imageId = displaySet.images[0].getImageId();
|
const imageIndex = Math.floor(displaySet.images.length / 2);
|
||||||
|
|
||||||
|
imageId = displaySet.images[imageIndex].getImageId();
|
||||||
} else {
|
} else {
|
||||||
altImageText = displaySet.modality ? displaySet.modality : 'UN';
|
altImageText = displaySet.modality ? displaySet.modality : 'UN';
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user