larvitar 1.3.1 → 1.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -6,11 +6,11 @@
6
6
 
7
7
  ## Dicom Image Toolkit for CornestoneJS
8
8
 
9
- ### Current version: 1.3.1
9
+ ### Current version: 1.3.2
10
10
 
11
- ### Latest Stable version: 1.3.1
11
+ ### Latest Stable version: 1.3.2
12
12
 
13
- ### Latest Published Release: 1.3.1
13
+ ### Latest Published Release: 1.3.2
14
14
 
15
15
  This library provides common DICOM functionalities to be used in web-applications: it's wrapper that simplifies the use of cornestone-js environment.
16
16
  Orthogonal multiplanar reformat is included as well as custom loader/exporter for nrrd files and [Vuex](https://vuex.vuejs.org/) custom integration.
@@ -577,10 +577,9 @@ export const storeViewportData = function (image, elementId, viewport, data) {
577
577
  elementId,
578
578
  data.numberOfTemporalPositions - 1
579
579
  ]);
580
- larvitar_store.set("maxSliceId", [
581
- elementId,
582
- data.numberOfSlices * data.numberOfTemporalPositions - 1
583
- ]);
580
+ let maxSliceId = data.numberOfSlices * data.numberOfTemporalPositions - 1;
581
+ larvitar_store.set("maxSliceId", [elementId, maxSliceId]);
582
+
584
583
  larvitar_store.set("timestamp", [elementId, data.timestamp]);
585
584
  larvitar_store.set("timestamps", [elementId, data.timestamps]);
586
585
  larvitar_store.set("timeIds", [elementId, data.timeIds]);
@@ -728,8 +727,7 @@ let getSeriesData = function (series, defaultProps) {
728
727
  data.isMultiframe = false;
729
728
  data.isTimeserie = true;
730
729
  // check with real indices
731
- data.numberOfSlices =
732
- series.imageIds.length / series.numberOfTemporalPositions;
730
+ data.numberOfSlices = series.numberOfImages;
733
731
  data.numberOfTemporalPositions = series.numberOfTemporalPositions;
734
732
  data.imageIndex = 0;
735
733
  data.timeIndex = 0;
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "medical",
7
7
  "cornerstone"
8
8
  ],
9
- "version": "1.3.1",
9
+ "version": "1.3.2",
10
10
  "description": "javascript library for parsing, loading, rendering and interacting with DICOM images",
11
11
  "repository": {
12
12
  "url": "https://github.com/dvisionlab/Larvitar.git",