larvitar 1.5.1 → 1.5.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 +2 -2
- package/imaging/imageRendering.js +3 -0
- package/imaging/imageStore.js +3 -0
- package/modules/vuex/larvitar.js +3 -0
- 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.2
|
|
10
10
|
|
|
11
|
-
### Latest Published Release: 1.5.
|
|
11
|
+
### Latest Published Release: 1.5.2
|
|
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.
|
|
@@ -147,6 +147,7 @@ export const renderDICOMPDF = function (seriesStack, elementId) {
|
|
|
147
147
|
'<object data="' +
|
|
148
148
|
fileURL +
|
|
149
149
|
'" type="application/pdf" width="100%" height="100%"></object>';
|
|
150
|
+
larvitar_store.set("isPDF", [elementId, true]);
|
|
150
151
|
let t1 = performance.now();
|
|
151
152
|
console.log(`Call to renderDICOMPDF took ${t1 - t0} milliseconds.`);
|
|
152
153
|
image = null;
|
|
@@ -656,6 +657,7 @@ export const storeViewportData = function (image, elementId, viewport, data) {
|
|
|
656
657
|
larvitar_store.set("isColor", [elementId, data.isColor]);
|
|
657
658
|
larvitar_store.set("isMultiframe", [elementId, data.isMultiframe]);
|
|
658
659
|
larvitar_store.set("isTimeserie", [elementId, data.isTimeserie]);
|
|
660
|
+
larvitar_store.set("isPDF", [elementId, false]);
|
|
659
661
|
};
|
|
660
662
|
|
|
661
663
|
/**
|
|
@@ -806,6 +808,7 @@ let getSeriesData = function (series, defaultProps) {
|
|
|
806
808
|
data.imageId = series.imageIds[data.imageIndex];
|
|
807
809
|
}
|
|
808
810
|
data.isColor = series.color;
|
|
811
|
+
data.isPDF = series.isPDF;
|
|
809
812
|
|
|
810
813
|
// rows, cols and x y z spacing
|
|
811
814
|
data.rows = series.instances[series.imageIds[0]].metadata["x00280010"];
|
package/imaging/imageStore.js
CHANGED
|
@@ -31,6 +31,7 @@ const DEFAULT_VIEWPORT = {
|
|
|
31
31
|
isColor: false,
|
|
32
32
|
isMultiframe: false,
|
|
33
33
|
isTimeserie: false,
|
|
34
|
+
isPDF: false,
|
|
34
35
|
viewport: {
|
|
35
36
|
scale: 0.0,
|
|
36
37
|
rotation: 0.0,
|
|
@@ -254,6 +255,8 @@ class Larvitar_Store {
|
|
|
254
255
|
this.state["viewports"][data[0]]["isColor"] = data[1];
|
|
255
256
|
} else if (field == "isMultiframe") {
|
|
256
257
|
this.state["viewports"][data[0]]["isMultiframe"] = data[1];
|
|
258
|
+
} else if (field == "isPDF") {
|
|
259
|
+
this.state["viewports"][data[0]]["isPDF"] = data[1];
|
|
257
260
|
} else if (field == "isTimeserie") {
|
|
258
261
|
this.state["viewports"][data[0]]["isTimeserie"] = data[1];
|
|
259
262
|
} else if (field == "defaultViewport") {
|
package/modules/vuex/larvitar.js
CHANGED
|
@@ -23,6 +23,7 @@ const DEFAULT_VIEWPORT = {
|
|
|
23
23
|
maxPixelValue: 0,
|
|
24
24
|
isColor: false,
|
|
25
25
|
isMultiframe: false,
|
|
26
|
+
isPDF: false,
|
|
26
27
|
isTimeserie: false,
|
|
27
28
|
viewport: {
|
|
28
29
|
scale: 0.0,
|
|
@@ -150,6 +151,8 @@ export default {
|
|
|
150
151
|
commit("viewport", { id, d: { isColor } }),
|
|
151
152
|
setIsMultiframe: ({ commit }, [id, isMultiframe]) =>
|
|
152
153
|
commit("viewport", { id, d: { isMultiframe } }),
|
|
154
|
+
setIsPDF: ({ commit }, [id, isPDF]) =>
|
|
155
|
+
commit("viewport", { id, d: { isPDF } }),
|
|
153
156
|
setIsTimeserie: ({ commit }, [id, isTimeserie]) =>
|
|
154
157
|
commit("viewport", { id, d: { isTimeserie } }),
|
|
155
158
|
setDefaultViewport: (
|
package/package.json
CHANGED