larvitar 1.2.1 → 1.2.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.2.1
9
+ ### Current version: 1.2.2
10
10
 
11
- ### Latest Stable version: 1.2.1
11
+ ### Latest Stable version: 1.2.2
12
12
 
13
- ### Latest Published Release: 1.2.1
13
+ ### Latest Published Release: 1.2.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.
@@ -171,6 +171,22 @@ class Larvitar_Store {
171
171
  }
172
172
  }
173
173
 
174
+ /**
175
+ * Removes all the series from the store
176
+ * @function resetSeriesIds
177
+ */
178
+ resetSeriesIds(seriesId) {
179
+ if (this.VUEX_STORE) {
180
+ let dispatch = "resetSeriesIds";
181
+ let route = this.vuex_module
182
+ ? this.vuex_module + "/" + dispatch
183
+ : dispatch;
184
+ this.vuex_store.dispatch(route, seriesId);
185
+ } else {
186
+ delete this.state.series[seriesId];
187
+ }
188
+ }
189
+
174
190
  /**
175
191
  * Set a value into store
176
192
  * @function set
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "medical",
7
7
  "cornerstone"
8
8
  ],
9
- "version": "1.2.1",
9
+ "version": "1.2.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",