larvitar 1.5.13 → 1.5.14

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,8 +6,8 @@
6
6
 
7
7
  ## Dicom Image Toolkit for CornerstoneJS
8
8
 
9
- ### Current version: 1.5.13
10
- ### Latest Published Release: 1.5.13
9
+ ### Current version: 1.5.14
10
+ ### Latest Published Release: 1.5.14
11
11
 
12
12
  This library provides common DICOM functionalities to be used in web-applications: it's wrapper that simplifies the use of cornerstone-js environment.
13
13
  Orthogonal multiplanar reformat is included as well as custom loader/exporter for nrrd files and [Vuex](https://vuex.vuejs.org/) custom integration.
@@ -177,9 +177,10 @@ export const updateLoadedStack = function (
177
177
  };
178
178
  }
179
179
 
180
- const sortMethods = is4D
181
- ? ["imagePosition", "contentTime"]
182
- : ["imagePosition"];
180
+ // get instance number from metadata
181
+ const instanceNumber = seriesData.metadata["x00200013"];
182
+ const defaultMethod = instanceNumber ? "instanceNumber" : "imagePosition";
183
+ const sortMethods = is4D ? [defaultMethod, "contentTime"] : [defaultMethod];
183
184
 
184
185
  // if the parsed file is a new series instance, keep it
185
186
  if (isNewInstance(allSeriesStack[id].instances, iid)) {
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "medical",
7
7
  "cornerstone"
8
8
  ],
9
- "version": "1.5.13",
9
+ "version": "1.5.14",
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",