dvisionlab / Larvitar

Dicom Image Toolkit for CornestoneJS
http://larvitar.dvisionlab.com
MIT License
47 stars 6 forks source link

Cannot set slice previous to actual one #399

Open ronzim opened 3 weeks ago

ronzim commented 3 weeks ago

https://github.com/dvisionlab/Larvitar/blob/908f2649bb2ccbad23c5499e4878cb3e24b6b5f3/imaging/tools/main.ts#L98C5-L101C48

   stackData.currentImageIdIndex =
      stackData.currentImageIdIndex < imageIdIndex
        ? stackData.currentImageIdIndex
        : (stackData.currentImageIdIndex += 1);

If I am on slice 1 and I want to set slice 0, this prevent me to do that. I cannot reach slice 0. currentImageIdIndex is used to scroll the imageIds array, so il must permit to reach 0, otherwise I never see the first slice.

ronzim commented 2 weeks ago

@daron1337 Since the issue was closed without any activity apparently being carried out, it would be nice to write here why