larvitar 1.5.7 → 1.5.8
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 +2 -2
- package/imaging/imageStore.js +3 -1
- package/modules/vuex/larvitar.js +7 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
|
|
7
7
|
## Dicom Image Toolkit for CornerstoneJS
|
|
8
8
|
|
|
9
|
-
### Current version: 1.5.
|
|
9
|
+
### Current version: 1.5.8
|
|
10
10
|
|
|
11
|
-
### Latest Published Release: 1.5.
|
|
11
|
+
### Latest Published Release: 1.5.8
|
|
12
12
|
|
|
13
13
|
This library provides common DICOM functionalities to be used in web-applications: it's wrapper that simplifies the use of cornerstone-js environment.
|
|
14
14
|
Orthogonal multiplanar reformat is included as well as custom loader/exporter for nrrd files and [Vuex](https://vuex.vuejs.org/) custom integration.
|
package/imaging/imageStore.js
CHANGED
|
@@ -305,12 +305,14 @@ class Larvitar_Store {
|
|
|
305
305
|
* @param {Object} vuexStore - The app vuex store [optional]
|
|
306
306
|
* @param {String} vuexModule - The name of the vuex store module, can be null
|
|
307
307
|
* @param {Boolean} registerModule - If true, the module is registered under Vuex global store
|
|
308
|
+
* @param {Object} _Vue - The Vue instance
|
|
308
309
|
*/
|
|
309
310
|
|
|
310
|
-
export function initLarvitarStore(vuexStore, vuexModule, registerModule) {
|
|
311
|
+
export function initLarvitarStore(vuexStore, vuexModule, registerModule, _Vue) {
|
|
311
312
|
if (vuexStore) {
|
|
312
313
|
larvitar_store = new Larvitar_Store(vuexStore, vuexModule);
|
|
313
314
|
if (registerModule) {
|
|
315
|
+
larvitar.defineVue(_Vue);
|
|
314
316
|
vuexStore.registerModule(vuexModule, larvitar);
|
|
315
317
|
}
|
|
316
318
|
} else {
|
package/modules/vuex/larvitar.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
// Larvitar Vuex
|
|
2
|
-
|
|
3
|
-
import Vue from "vue";
|
|
1
|
+
// Larvitar Vuex instance
|
|
2
|
+
var Vue = null;
|
|
4
3
|
|
|
5
4
|
// default viewport store object
|
|
6
5
|
const DEFAULT_VIEWPORT = {
|
|
@@ -181,3 +180,8 @@ export default {
|
|
|
181
180
|
commit("canvas", { id, d: { voi: { windowWidth, windowCenter } } })
|
|
182
181
|
}
|
|
183
182
|
};
|
|
183
|
+
|
|
184
|
+
// define Vue instance from outside dependency
|
|
185
|
+
export const defineVue = _Vue => {
|
|
186
|
+
Vue = _Vue;
|
|
187
|
+
};
|
package/package.json
CHANGED