.
This commit is contained in:
@@ -1227,7 +1227,7 @@ export function loadStackIndex(new_index, dicom_element) {
|
|||||||
export function loadImageById(imageId, dicom_element) {
|
export function loadImageById(imageId, dicom_element) {
|
||||||
// Update stack index
|
// Update stack index
|
||||||
let c = cornerstone.getEnabledElement(dicom_element);
|
let c = cornerstone.getEnabledElement(dicom_element);
|
||||||
new_index = c.toolStateManager.toolState.stack.data[0].imageIds.indexOf(imageId);
|
let new_index = c.toolStateManager.toolState.stack.data[0].imageIds.indexOf(imageId);
|
||||||
c.toolStateManager.toolState.stack.data[0].currentImageIdIndex = new_index;
|
c.toolStateManager.toolState.stack.data[0].currentImageIdIndex = new_index;
|
||||||
cornerstone.loadImage(imageId).then(b => {
|
cornerstone.loadImage(imageId).then(b => {
|
||||||
cornerstone.displayImage(dicom_element, b);
|
cornerstone.displayImage(dicom_element, b);
|
||||||
|
|||||||
Reference in New Issue
Block a user