@ohif/app 3.7.0-beta.2 → 3.7.0-beta.20
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/dist/{192.bundle.16d0f44e62ff52432731.js → 192.bundle.757165624265dbfd5a8a.js} +4 -4
- package/dist/{199.bundle.7bb7f07334adb5994b07.js → 199.bundle.74d96033aa9d6e4151b3.js} +2 -7
- package/dist/{208.bundle.fc090e7d0989c68bd18e.js → 208.bundle.ac523f9fb2fd794d803f.js} +4 -4
- package/dist/{270.bundle.4564621556b0f963a004.js → 270.bundle.cddac4adcfdf8d1082a3.js} +13 -7
- package/dist/{283.bundle.c467b98efe62399505f9.js → 283.bundle.0c44681f9c2269f88693.js} +14 -21
- package/dist/{331.bundle.bd0c13931a21d53086c9.js → 331.bundle.af86275686a78739ec4c.js} +27 -13
- package/dist/{351.bundle.2d4bc19d8b493879dbbe.js → 351.bundle.bbd6e3b383ac731edc94.js} +5 -5
- package/dist/{404.bundle.4b84daa465888ef7fc56.js → 404.bundle.805161139710db78a2c9.js} +6 -5
- package/dist/{55.bundle.5f5e5ef9087b0beee35c.js → 55.bundle.e9bf24eb17d84049c640.js} +4 -4
- package/dist/{569.bundle.0ed8d8178ffd43fe1c34.js → 569.bundle.f71780087b8c9a75d44e.js} +23 -12
- package/dist/{581.bundle.360d26f97b37da8faec3.js → 581.bundle.0b1b8273eb694c11366d.js} +7 -6
- package/dist/{616.bundle.377b54c860b461f9f68e.js → 616.bundle.56803d244d42f07ce329.js} +6 -6
- package/dist/{642.bundle.a9b710e5bf6294f74e9f.js → 642.bundle.6cdd78db00a2796764b2.js} +2 -2
- package/dist/{707.bundle.57d5f86eceb59d415c4e.js → 707.bundle.a8812a77d53451e61347.js} +54 -60
- package/dist/{744.bundle.bfb752eba913c0a86d0a.js → 744.bundle.16f6546552623edb536f.js} +58 -52
- package/dist/{790.bundle.e28eaccb6818de78ae48.js → 790.bundle.79a6f88e3609e41b75d8.js} +4 -4
- package/dist/{799.bundle.ca18bdf4abe4d9abea26.js → 799.bundle.6fbb7a97bccfb55dc79f.js} +5 -5
- package/dist/{82.bundle.2b4c115ba19903aa6bba.js → 82.bundle.7b654f571bc21eb7c374.js} +45 -40
- package/dist/{917.bundle.ab1b2df827119f94a898.js → 917.bundle.8cd9808f99b26c58750c.js} +2 -2
- package/dist/{953.bundle.9e3a7225f07336bfcb41.js → 953.bundle.bad442420f62f5ab0c4b.js} +2 -2
- package/dist/{973.bundle.50644c5c4630221c00ac.js → 973.bundle.75004f97a500891a9361.js} +2 -2
- package/dist/{976.bundle.2ee705b3311b8db2de5f.js → 976.bundle.335e196ef2d9def2274a.js} +6 -6
- package/dist/{984.bundle.894dafd69ff965b87709.js → 984.bundle.a8661b0c23d3ddaa1c8b.js} +4 -4
- package/dist/app-config.js +1 -2
- package/dist/{app.bundle.a8d0e8aa74cb37c1479a.js → app.bundle.c1c63e78eb4dcc59ed68.js} +778 -244
- package/dist/app.bundle.css +1 -1
- package/dist/cornerstoneDICOMImageLoader.min.js +1 -1
- package/dist/cornerstoneDICOMImageLoader.min.js.map +1 -1
- package/dist/google.js +1 -1
- package/dist/index.html +1 -1
- package/dist/sw.js +1 -1
- package/package.json +19 -19
- /package/dist/{50.bundle.aef33d7bd8482846aa40.js → 50.bundle.08af9198a56dc8ee8111.js} +0 -0
|
@@ -14,10 +14,10 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
14
14
|
toolbarButtons: () => (/* reexport */ src_toolbarButtons)
|
|
15
15
|
});
|
|
16
16
|
|
|
17
|
-
// EXTERNAL MODULE: ../../core/src/index.ts +
|
|
18
|
-
var src = __webpack_require__(
|
|
19
|
-
// EXTERNAL MODULE: ../../ui/src/index.js +
|
|
20
|
-
var ui_src = __webpack_require__(
|
|
17
|
+
// EXTERNAL MODULE: ../../core/src/index.ts + 102 modules
|
|
18
|
+
var src = __webpack_require__(62771);
|
|
19
|
+
// EXTERNAL MODULE: ../../ui/src/index.js + 452 modules
|
|
20
|
+
var ui_src = __webpack_require__(28619);
|
|
21
21
|
;// CONCATENATED MODULE: ../../../modes/longitudinal/src/toolbarButtons.js
|
|
22
22
|
// TODO: torn, can either bake this here; or have to create a whole new button type
|
|
23
23
|
// Only ways that you can pass in a custom React component for render :l
|
|
@@ -22,8 +22,8 @@ const SOPClassHandlerId = `${id}.sopClassHandlerModule.${SOPClassHandlerName}`;
|
|
|
22
22
|
|
|
23
23
|
// EXTERNAL MODULE: ../../../node_modules/react/index.js
|
|
24
24
|
var react = __webpack_require__(32735);
|
|
25
|
-
// EXTERNAL MODULE: ../../core/src/index.ts +
|
|
26
|
-
var src = __webpack_require__(
|
|
25
|
+
// EXTERNAL MODULE: ../../core/src/index.ts + 102 modules
|
|
26
|
+
var src = __webpack_require__(62771);
|
|
27
27
|
// EXTERNAL MODULE: ../../../node_modules/dcmjs/build/dcmjs.es.js
|
|
28
28
|
var dcmjs_es = __webpack_require__(22737);
|
|
29
29
|
;// CONCATENATED MODULE: ../../../extensions/cornerstone-dicom-rt/src/loadRTStruct.js
|
|
@@ -159,11 +159,6 @@ async function loadRTStruct(extensionManager, rtStructDisplaySet, referencedDisp
|
|
|
159
159
|
NumberOfContourPoints,
|
|
160
160
|
ContourGeometricType
|
|
161
161
|
} = ContourSequenceArray[c];
|
|
162
|
-
const sopInstanceUID = ContourImageSequence.ReferencedSOPInstanceUID;
|
|
163
|
-
const imageId = _getImageId(imageIdSopInstanceUidPairs, sopInstanceUID);
|
|
164
|
-
if (!imageId) {
|
|
165
|
-
continue;
|
|
166
|
-
}
|
|
167
162
|
let isSupported = false;
|
|
168
163
|
const points = [];
|
|
169
164
|
for (let p = 0; p < NumberOfContourPoints * 3; p += 3) {
|
|
@@ -12,10 +12,10 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
12
12
|
"default": () => (/* binding */ basic_test_mode_src)
|
|
13
13
|
});
|
|
14
14
|
|
|
15
|
-
// EXTERNAL MODULE: ../../core/src/index.ts +
|
|
16
|
-
var src = __webpack_require__(
|
|
17
|
-
// EXTERNAL MODULE: ../../ui/src/index.js +
|
|
18
|
-
var ui_src = __webpack_require__(
|
|
15
|
+
// EXTERNAL MODULE: ../../core/src/index.ts + 102 modules
|
|
16
|
+
var src = __webpack_require__(62771);
|
|
17
|
+
// EXTERNAL MODULE: ../../ui/src/index.js + 452 modules
|
|
18
|
+
var ui_src = __webpack_require__(28619);
|
|
19
19
|
;// CONCATENATED MODULE: ../../../modes/basic-test-mode/src/toolbarButtons.js
|
|
20
20
|
// TODO: torn, can either bake this here; or have to create a whole new button type
|
|
21
21
|
// Only ways that you can pass in a custom React component for render :l
|
|
@@ -8483,6 +8483,7 @@ function _applyShift(viewport, delta) {
|
|
|
8483
8483
|
|
|
8484
8484
|
|
|
8485
8485
|
|
|
8486
|
+
|
|
8486
8487
|
class MIPJumpToClickTool extends base_BaseTool {
|
|
8487
8488
|
constructor(toolProps = {}, defaultToolProps = {
|
|
8488
8489
|
supportedInteractionTypes: ['Mouse', 'Touch'],
|
|
@@ -8512,9 +8513,16 @@ class MIPJumpToClickTool extends base_BaseTool {
|
|
|
8512
8513
|
if (!brightestPoint || !brightestPoint.length) {
|
|
8513
8514
|
return;
|
|
8514
8515
|
}
|
|
8515
|
-
const { targetViewportIds } = this.configuration;
|
|
8516
|
-
|
|
8517
|
-
|
|
8516
|
+
const { targetViewportIds, toolGroupId } = this.configuration;
|
|
8517
|
+
const viewports = renderingEngine.getViewports().filter((vp) => {
|
|
8518
|
+
if (targetViewportIds?.indexOf(vp.id) >= 0)
|
|
8519
|
+
return true;
|
|
8520
|
+
const foundToolGroup = ToolGroupManager_getToolGroupForViewport(vp.id, renderingEngine.id);
|
|
8521
|
+
if (toolGroupId && toolGroupId === foundToolGroup?.id)
|
|
8522
|
+
return true;
|
|
8523
|
+
return false;
|
|
8524
|
+
});
|
|
8525
|
+
viewports.forEach((viewport) => {
|
|
8518
8526
|
if (viewport instanceof esm.VolumeViewport) {
|
|
8519
8527
|
jumpToWorld(viewport, brightestPoint);
|
|
8520
8528
|
}
|
|
@@ -16299,7 +16307,6 @@ PlanarFreehandROITool.toolName = 'PlanarFreehandROI';
|
|
|
16299
16307
|
|
|
16300
16308
|
|
|
16301
16309
|
|
|
16302
|
-
|
|
16303
16310
|
class ArrowAnnotateTool extends base_AnnotationTool {
|
|
16304
16311
|
constructor(toolProps = {}, defaultToolProps = {
|
|
16305
16312
|
supportedInteractionTypes: ['Mouse', 'Touch'],
|
|
@@ -16646,7 +16653,7 @@ class ArrowAnnotateTool extends base_AnnotationTool {
|
|
|
16646
16653
|
continue;
|
|
16647
16654
|
}
|
|
16648
16655
|
if (!data.handles.textBox.hasMoved) {
|
|
16649
|
-
const canvasTextBoxCoords =
|
|
16656
|
+
const canvasTextBoxCoords = canvasCoordinates[1];
|
|
16650
16657
|
data.handles.textBox.worldPosition =
|
|
16651
16658
|
viewport.canvasToWorld(canvasTextBoxCoords);
|
|
16652
16659
|
}
|
|
@@ -16731,7 +16738,6 @@ ArrowAnnotateTool.toolName = 'ArrowAnnotate';
|
|
|
16731
16738
|
|
|
16732
16739
|
|
|
16733
16740
|
|
|
16734
|
-
|
|
16735
16741
|
class AngleTool extends base_AnnotationTool {
|
|
16736
16742
|
constructor(toolProps = {}, defaultToolProps = {
|
|
16737
16743
|
supportedInteractionTypes: ['Mouse', 'Touch'],
|
|
@@ -17064,7 +17070,7 @@ class AngleTool extends base_AnnotationTool {
|
|
|
17064
17070
|
}
|
|
17065
17071
|
const textLines = this._getTextLines(data, targetId);
|
|
17066
17072
|
if (!data.handles.textBox.hasMoved) {
|
|
17067
|
-
const canvasTextBoxCoords =
|
|
17073
|
+
const canvasTextBoxCoords = canvasCoordinates[1];
|
|
17068
17074
|
data.handles.textBox.worldPosition =
|
|
17069
17075
|
viewport.canvasToWorld(canvasTextBoxCoords);
|
|
17070
17076
|
}
|
|
@@ -658,10 +658,10 @@ var react = __webpack_require__(32735);
|
|
|
658
658
|
// EXTERNAL MODULE: ../../../node_modules/prop-types/index.js
|
|
659
659
|
var prop_types = __webpack_require__(60216);
|
|
660
660
|
var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types);
|
|
661
|
-
// EXTERNAL MODULE: ../../ui/src/index.js +
|
|
662
|
-
var src = __webpack_require__(
|
|
663
|
-
// EXTERNAL MODULE: ../../core/src/index.ts +
|
|
664
|
-
var core_src = __webpack_require__(
|
|
661
|
+
// EXTERNAL MODULE: ../../ui/src/index.js + 452 modules
|
|
662
|
+
var src = __webpack_require__(28619);
|
|
663
|
+
// EXTERNAL MODULE: ../../core/src/index.ts + 102 modules
|
|
664
|
+
var core_src = __webpack_require__(62771);
|
|
665
665
|
// EXTERNAL MODULE: ../../../node_modules/react-i18next/dist/es/index.js + 15 modules
|
|
666
666
|
var es = __webpack_require__(21572);
|
|
667
667
|
;// CONCATENATED MODULE: ../../../extensions/tmtv/src/Panels/PanelPetSUV.tsx
|
|
@@ -875,7 +875,6 @@ function PanelPetSUV(_ref) {
|
|
|
875
875
|
value: metadata.SeriesTime || '',
|
|
876
876
|
onChange: () => {}
|
|
877
877
|
}), /*#__PURE__*/react.createElement(src/* Button */.zx, {
|
|
878
|
-
color: "primary",
|
|
879
878
|
onClick: updateMetadata
|
|
880
879
|
}, "Reload Data"))));
|
|
881
880
|
}
|
|
@@ -960,28 +959,24 @@ function segmentationItemEditHandler(_ref) {
|
|
|
960
959
|
});
|
|
961
960
|
}
|
|
962
961
|
};
|
|
963
|
-
return /*#__PURE__*/react.createElement(
|
|
964
|
-
className: "p-4 bg-primary-dark"
|
|
965
|
-
}, /*#__PURE__*/react.createElement(src/* Input */.II, {
|
|
962
|
+
return /*#__PURE__*/react.createElement(src/* Input */.II, {
|
|
966
963
|
autoFocus: true,
|
|
967
|
-
className: "
|
|
964
|
+
className: "bg-black border-primary-main",
|
|
968
965
|
type: "text",
|
|
969
966
|
containerClassName: "mr-2",
|
|
970
967
|
value: value.label,
|
|
971
968
|
onChange: onChangeHandler,
|
|
972
969
|
onKeyPress: onKeyPressHandler
|
|
973
|
-
})
|
|
970
|
+
});
|
|
974
971
|
},
|
|
975
|
-
actions: [
|
|
976
|
-
// temp: swap button types until colors are updated
|
|
977
|
-
{
|
|
972
|
+
actions: [{
|
|
978
973
|
id: 'cancel',
|
|
979
974
|
text: 'Cancel',
|
|
980
|
-
type:
|
|
975
|
+
type: src/* ButtonEnums.type */.LZ.U.secondary
|
|
981
976
|
}, {
|
|
982
977
|
id: 'save',
|
|
983
978
|
text: 'Save',
|
|
984
|
-
type:
|
|
979
|
+
type: src/* ButtonEnums.type */.LZ.U.primary
|
|
985
980
|
}],
|
|
986
981
|
onSubmit: onSubmitHandler
|
|
987
982
|
}
|
|
@@ -1007,7 +1002,7 @@ function ExportReports(_ref) {
|
|
|
1007
1002
|
}, /*#__PURE__*/react.createElement(src/* ButtonGroup */.hE, {
|
|
1008
1003
|
color: "black",
|
|
1009
1004
|
size: "inherit"
|
|
1010
|
-
}, /*#__PURE__*/react.createElement(src/*
|
|
1005
|
+
}, /*#__PURE__*/react.createElement(src/* LegacyButton */.mN, {
|
|
1011
1006
|
className: "px-2 py-2 text-base",
|
|
1012
1007
|
disabled: tmtvValue === null,
|
|
1013
1008
|
onClick: () => {
|
|
@@ -1020,7 +1015,7 @@ function ExportReports(_ref) {
|
|
|
1020
1015
|
}, t('Export CSV'))), /*#__PURE__*/react.createElement(src/* ButtonGroup */.hE, {
|
|
1021
1016
|
color: "black",
|
|
1022
1017
|
size: "inherit"
|
|
1023
|
-
}, /*#__PURE__*/react.createElement(src/*
|
|
1018
|
+
}, /*#__PURE__*/react.createElement(src/* LegacyButton */.mN, {
|
|
1024
1019
|
className: "px-2 py-2 text-base",
|
|
1025
1020
|
onClick: () => {
|
|
1026
1021
|
commandsManager.runCommand('createTMTVRTReport');
|
|
@@ -1079,13 +1074,13 @@ function ROIThresholdConfiguration(_ref) {
|
|
|
1079
1074
|
}
|
|
1080
1075
|
})), /*#__PURE__*/react.createElement("div", {
|
|
1081
1076
|
className: "w-1/2"
|
|
1082
|
-
}, /*#__PURE__*/react.createElement(src/* ButtonGroup */.hE, null, /*#__PURE__*/react.createElement(src/*
|
|
1077
|
+
}, /*#__PURE__*/react.createElement(src/* ButtonGroup */.hE, null, /*#__PURE__*/react.createElement(src/* LegacyButton */.mN, {
|
|
1083
1078
|
size: "initial",
|
|
1084
1079
|
className: "px-2 py-2 text-base text-white",
|
|
1085
1080
|
color: "primaryLight",
|
|
1086
1081
|
variant: "outlined",
|
|
1087
1082
|
onClick: () => runCommand('setStartSliceForROIThresholdTool')
|
|
1088
|
-
}, t('Start')), /*#__PURE__*/react.createElement(src/*
|
|
1083
|
+
}, t('Start')), /*#__PURE__*/react.createElement(src/* LegacyButton */.mN, {
|
|
1089
1084
|
size: "initial",
|
|
1090
1085
|
color: "primaryLight",
|
|
1091
1086
|
variant: "outlined",
|
|
@@ -1367,7 +1362,6 @@ function PanelRoiThresholdSegmentation(_ref) {
|
|
|
1367
1362
|
}, /*#__PURE__*/react.createElement("div", {
|
|
1368
1363
|
className: "flex mx-4 my-4 mb-4 space-x-4"
|
|
1369
1364
|
}, /*#__PURE__*/react.createElement(src/* Button */.zx, {
|
|
1370
|
-
color: "primary",
|
|
1371
1365
|
onClick: () => {
|
|
1372
1366
|
setLabelmapLoading(true);
|
|
1373
1367
|
setTimeout(() => {
|
|
@@ -1378,7 +1372,6 @@ function PanelRoiThresholdSegmentation(_ref) {
|
|
|
1378
1372
|
});
|
|
1379
1373
|
}
|
|
1380
1374
|
}, labelmapLoading ? 'loading ...' : 'New Label'), /*#__PURE__*/react.createElement(src/* Button */.zx, {
|
|
1381
|
-
color: "primary",
|
|
1382
1375
|
onClick: handleROIThresholding
|
|
1383
1376
|
}, "Run")), /*#__PURE__*/react.createElement("div", {
|
|
1384
1377
|
className: "flex items-center justify-around h-8 mb-2 border-t outline-none cursor-pointer select-none bg-secondary-dark first:border-0 border-secondary-light",
|
|
@@ -46342,8 +46342,7 @@ class BaseVolumeViewport extends RenderingEngine_Viewport {
|
|
|
46342
46342
|
const cfun = volumeActor.getProperty().getRGBTransferFunction(0);
|
|
46343
46343
|
const [lower, upper] = this.VOILUTFunction === 'SIGMOID'
|
|
46344
46344
|
? getVoiFromSigmoidRGBTransferFunction(cfun)
|
|
46345
|
-
:
|
|
46346
|
-
cfun.getRange();
|
|
46345
|
+
: cfun.getRange();
|
|
46347
46346
|
return { volumeId, voiRange: { lower, upper } };
|
|
46348
46347
|
})
|
|
46349
46348
|
.filter(Boolean);
|
|
@@ -46499,8 +46498,8 @@ class BaseVolumeViewport extends RenderingEngine_Viewport {
|
|
|
46499
46498
|
const mapper = volumeActor.getMapper();
|
|
46500
46499
|
mapper.setSampleDistance(1.0);
|
|
46501
46500
|
const cfun = ColorTransferFunction/* default.newInstance */.ZP.newInstance();
|
|
46502
|
-
let colormapObj = colormap_getColormap(colormap);
|
|
46503
|
-
const { name
|
|
46501
|
+
let colormapObj = colormap_getColormap(colormap.name);
|
|
46502
|
+
const { name } = colormap;
|
|
46504
46503
|
if (!colormapObj) {
|
|
46505
46504
|
colormapObj = ColorMaps_vtkColorMaps.getPresetByName(name);
|
|
46506
46505
|
}
|
|
@@ -46514,16 +46513,28 @@ class BaseVolumeViewport extends RenderingEngine_Viewport {
|
|
|
46514
46513
|
cfun.applyColorMap(colormapObj);
|
|
46515
46514
|
cfun.setMappingRange(range[0], range[1]);
|
|
46516
46515
|
volumeActor.getProperty().setRGBTransferFunction(0, cfun);
|
|
46517
|
-
|
|
46518
|
-
|
|
46519
|
-
|
|
46520
|
-
|
|
46521
|
-
if (!opacityMapping) {
|
|
46516
|
+
}
|
|
46517
|
+
setOpacity(colormap, volumeId) {
|
|
46518
|
+
const applicableVolumeActorInfo = this._getApplicableVolumeActor(volumeId);
|
|
46519
|
+
if (!applicableVolumeActorInfo) {
|
|
46522
46520
|
return;
|
|
46523
46521
|
}
|
|
46524
|
-
|
|
46525
|
-
|
|
46526
|
-
|
|
46522
|
+
const { volumeActor } = applicableVolumeActorInfo;
|
|
46523
|
+
const ofun = PiecewiseFunction/* default.newInstance */.ZP.newInstance();
|
|
46524
|
+
if (typeof colormap.opacity === 'number') {
|
|
46525
|
+
const range = volumeActor
|
|
46526
|
+
.getProperty()
|
|
46527
|
+
.getRGBTransferFunction(0)
|
|
46528
|
+
.getRange();
|
|
46529
|
+
ofun.addPoint(range[0], colormap.opacity);
|
|
46530
|
+
ofun.addPoint(range[1], colormap.opacity);
|
|
46531
|
+
}
|
|
46532
|
+
else {
|
|
46533
|
+
colormap.opacity.forEach(({ opacity, value }) => {
|
|
46534
|
+
ofun.addPoint(value, opacity);
|
|
46535
|
+
});
|
|
46536
|
+
}
|
|
46537
|
+
volumeActor.getProperty().setScalarOpacity(0, ofun);
|
|
46527
46538
|
}
|
|
46528
46539
|
setInvert(invert, volumeId, suppressEvents) {
|
|
46529
46540
|
const applicableVolumeActorInfo = this._getApplicableVolumeActor(volumeId);
|
|
@@ -46598,9 +46609,12 @@ class BaseVolumeViewport extends RenderingEngine_Viewport {
|
|
|
46598
46609
|
}
|
|
46599
46610
|
}
|
|
46600
46611
|
setProperties({ voiRange, VOILUTFunction, invert, colormap, preset, } = {}, volumeId, suppressEvents = false) {
|
|
46601
|
-
if (colormap
|
|
46612
|
+
if (colormap?.name) {
|
|
46602
46613
|
this.setColormap(colormap, volumeId, suppressEvents);
|
|
46603
46614
|
}
|
|
46615
|
+
if (colormap?.opacity != null) {
|
|
46616
|
+
this.setOpacity(colormap, volumeId);
|
|
46617
|
+
}
|
|
46604
46618
|
if (voiRange !== undefined) {
|
|
46605
46619
|
this.setVOI(voiRange, volumeId, suppressEvents);
|
|
46606
46620
|
}
|
|
@@ -23,10 +23,10 @@ var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types);
|
|
|
23
23
|
var esm = __webpack_require__(57270);
|
|
24
24
|
// EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 335 modules
|
|
25
25
|
var dist_esm = __webpack_require__(77331);
|
|
26
|
-
// EXTERNAL MODULE: ../../core/src/index.ts +
|
|
27
|
-
var src = __webpack_require__(
|
|
28
|
-
// EXTERNAL MODULE: ../../ui/src/index.js +
|
|
29
|
-
var ui_src = __webpack_require__(
|
|
26
|
+
// EXTERNAL MODULE: ../../core/src/index.ts + 102 modules
|
|
27
|
+
var src = __webpack_require__(62771);
|
|
28
|
+
// EXTERNAL MODULE: ../../ui/src/index.js + 452 modules
|
|
29
|
+
var ui_src = __webpack_require__(28619);
|
|
30
30
|
// EXTERNAL MODULE: ../../../extensions/cornerstone/src/state.ts
|
|
31
31
|
var state = __webpack_require__(21922);
|
|
32
32
|
;// CONCATENATED MODULE: ../../../extensions/cornerstone/src/Viewport/OHIFCornerstoneViewport.css
|
|
@@ -549,7 +549,7 @@ function _getViewportInstance(viewportData, imageIndex) {
|
|
|
549
549
|
if (viewportData.viewportType === dist_esm.Enums.ViewportType.STACK) {
|
|
550
550
|
imageId = viewportData.data.imageIds[imageIndex];
|
|
551
551
|
} else if (viewportData.viewportType === dist_esm.Enums.ViewportType.ORTHOGRAPHIC) {
|
|
552
|
-
const volumes = viewportData.
|
|
552
|
+
const volumes = viewportData.data;
|
|
553
553
|
if (volumes && volumes.length == 1) {
|
|
554
554
|
const volume = volumes[0];
|
|
555
555
|
imageId = volume.imageIds[imageIndex];
|
|
@@ -12,10 +12,10 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
12
12
|
"default": () => (/* binding */ tmtv_src)
|
|
13
13
|
});
|
|
14
14
|
|
|
15
|
-
// EXTERNAL MODULE: ../../core/src/index.ts +
|
|
16
|
-
var src = __webpack_require__(
|
|
17
|
-
// EXTERNAL MODULE: ../../ui/src/index.js +
|
|
18
|
-
var ui_src = __webpack_require__(
|
|
15
|
+
// EXTERNAL MODULE: ../../core/src/index.ts + 102 modules
|
|
16
|
+
var src = __webpack_require__(62771);
|
|
17
|
+
// EXTERNAL MODULE: ../../ui/src/index.js + 452 modules
|
|
18
|
+
var ui_src = __webpack_require__(28619);
|
|
19
19
|
;// CONCATENATED MODULE: ../../../modes/tmtv/src/initToolGroups.js
|
|
20
20
|
const toolGroupIds = {
|
|
21
21
|
CT: 'ctToolGroup',
|
|
@@ -678,7 +678,8 @@ function modeFactory(_ref) {
|
|
|
678
678
|
return {
|
|
679
679
|
id: ohif.layout,
|
|
680
680
|
props: {
|
|
681
|
-
|
|
681
|
+
leftPanels: [ohif.thumbnailList],
|
|
682
|
+
leftPanelDefaultClosed: true,
|
|
682
683
|
rightPanels: [tmtv.ROIThresholdPanel, tmtv.petSUV],
|
|
683
684
|
viewports: [{
|
|
684
685
|
namespace: cs3d.viewport,
|
|
@@ -22,8 +22,8 @@ var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types);
|
|
|
22
22
|
// EXTERNAL MODULE: ../../../node_modules/lodash.debounce/index.js
|
|
23
23
|
var lodash_debounce = __webpack_require__(40001);
|
|
24
24
|
var lodash_debounce_default = /*#__PURE__*/__webpack_require__.n(lodash_debounce);
|
|
25
|
-
// EXTERNAL MODULE: ../../ui/src/index.js +
|
|
26
|
-
var src = __webpack_require__(
|
|
25
|
+
// EXTERNAL MODULE: ../../ui/src/index.js + 452 modules
|
|
26
|
+
var src = __webpack_require__(28619);
|
|
27
27
|
;// CONCATENATED MODULE: ../../../extensions/dicom-microscopy/src/DicomMicroscopyViewport.css
|
|
28
28
|
// extracted by mini-css-extract-plugin
|
|
29
29
|
|
|
@@ -251,8 +251,8 @@ const itemGenerator = props => {
|
|
|
251
251
|
/* harmony default export */ const ViewportOverlay = (generateFromConfig({}));
|
|
252
252
|
// EXTERNAL MODULE: ../../../node_modules/dicomweb-client/build/dicomweb-client.es.js
|
|
253
253
|
var dicomweb_client_es = __webpack_require__(75935);
|
|
254
|
-
// EXTERNAL MODULE: ../../core/src/index.ts +
|
|
255
|
-
var core_src = __webpack_require__(
|
|
254
|
+
// EXTERNAL MODULE: ../../core/src/index.ts + 102 modules
|
|
255
|
+
var core_src = __webpack_require__(62771);
|
|
256
256
|
;// CONCATENATED MODULE: ../../../extensions/dicom-microscopy/src/utils/dicomWebClient.ts
|
|
257
257
|
|
|
258
258
|
|
|
@@ -19,10 +19,10 @@ var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types);
|
|
|
19
19
|
var react = __webpack_require__(32735);
|
|
20
20
|
// EXTERNAL MODULE: ../../../node_modules/react-i18next/dist/es/index.js + 15 modules
|
|
21
21
|
var es = __webpack_require__(21572);
|
|
22
|
-
// EXTERNAL MODULE: ../../core/src/index.ts +
|
|
23
|
-
var src = __webpack_require__(
|
|
24
|
-
// EXTERNAL MODULE: ../../ui/src/index.js +
|
|
25
|
-
var ui_src = __webpack_require__(
|
|
22
|
+
// EXTERNAL MODULE: ../../core/src/index.ts + 102 modules
|
|
23
|
+
var src = __webpack_require__(62771);
|
|
24
|
+
// EXTERNAL MODULE: ../../ui/src/index.js + 452 modules
|
|
25
|
+
var ui_src = __webpack_require__(28619);
|
|
26
26
|
;// CONCATENATED MODULE: ../../../extensions/cornerstone-dicom-seg/src/utils/initSEGToolGroup.ts
|
|
27
27
|
function createSEGToolGroupAndAddTools(ToolGroupService, customizationService, toolGroupId) {
|
|
28
28
|
const {
|
|
@@ -86,6 +86,7 @@ async function _hydrateSEGDisplaySet(_ref) {
|
|
|
86
86
|
/* harmony default export */ const _hydrateSEG = (_hydrateSEGDisplaySet);
|
|
87
87
|
;// CONCATENATED MODULE: ../../../extensions/cornerstone-dicom-seg/src/utils/promptHydrateSEG.ts
|
|
88
88
|
|
|
89
|
+
|
|
89
90
|
const RESPONSE = {
|
|
90
91
|
NO_NEVER: -1,
|
|
91
92
|
CANCEL: 0,
|
|
@@ -116,11 +117,11 @@ function _askHydrate(uiViewportDialogService, viewportIndex) {
|
|
|
116
117
|
return new Promise(function (resolve, reject) {
|
|
117
118
|
const message = 'Do you want to open this Segmentation?';
|
|
118
119
|
const actions = [{
|
|
119
|
-
type:
|
|
120
|
+
type: ui_src/* ButtonEnums.type */.LZ.U.secondary,
|
|
120
121
|
text: 'No',
|
|
121
122
|
value: RESPONSE.CANCEL
|
|
122
123
|
}, {
|
|
123
|
-
type:
|
|
124
|
+
type: ui_src/* ButtonEnums.type */.LZ.U.primary,
|
|
124
125
|
text: 'Yes',
|
|
125
126
|
value: RESPONSE.HYDRATE_SEG
|
|
126
127
|
}];
|
|
@@ -255,7 +256,7 @@ function OHIFCornerstoneSEGViewport(props) {
|
|
|
255
256
|
activeViewportIndex
|
|
256
257
|
} = viewportGrid;
|
|
257
258
|
const referencedDisplaySet = segDisplaySet.getReferenceDisplaySet();
|
|
258
|
-
const referencedDisplaySetMetadata = _getReferencedDisplaySetMetadata(referencedDisplaySet);
|
|
259
|
+
const referencedDisplaySetMetadata = _getReferencedDisplaySetMetadata(referencedDisplaySet, segDisplaySet);
|
|
259
260
|
referencedDisplaySetRef.current = {
|
|
260
261
|
displaySet: referencedDisplaySet,
|
|
261
262
|
metadata: referencedDisplaySetMetadata
|
|
@@ -466,8 +467,8 @@ function OHIFCornerstoneSEGViewport(props) {
|
|
|
466
467
|
patientSex: PatientSex || '',
|
|
467
468
|
patientAge: PatientAge || '',
|
|
468
469
|
MRN: PatientID || '',
|
|
469
|
-
thickness: SliceThickness ? `${SliceThickness.toFixed(2)}mm` : '',
|
|
470
|
-
spacing: SpacingBetweenSlices !== undefined ? `${SpacingBetweenSlices.toFixed(2)}mm` : '',
|
|
470
|
+
thickness: SliceThickness ? `${parseFloat(SliceThickness).toFixed(2)}mm` : '',
|
|
471
|
+
spacing: SpacingBetweenSlices !== undefined ? `${parseFloat(SpacingBetweenSlices).toFixed(2)}mm` : '',
|
|
471
472
|
scanner: ManufacturerModelName || ''
|
|
472
473
|
}
|
|
473
474
|
}
|
|
@@ -490,20 +491,30 @@ OHIFCornerstoneSEGViewport.propTypes = {
|
|
|
490
491
|
OHIFCornerstoneSEGViewport.defaultProps = {
|
|
491
492
|
customProps: {}
|
|
492
493
|
};
|
|
493
|
-
function _getReferencedDisplaySetMetadata(referencedDisplaySet) {
|
|
494
|
+
function _getReferencedDisplaySetMetadata(referencedDisplaySet, segDisplaySet) {
|
|
495
|
+
const {
|
|
496
|
+
SharedFunctionalGroupsSequence: [SharedFunctionalGroup]
|
|
497
|
+
} = segDisplaySet.instance;
|
|
498
|
+
const {
|
|
499
|
+
PixelMeasuresSequence: [PixelMeasures]
|
|
500
|
+
} = SharedFunctionalGroup;
|
|
501
|
+
const {
|
|
502
|
+
SpacingBetweenSlices,
|
|
503
|
+
SliceThickness
|
|
504
|
+
} = PixelMeasures;
|
|
494
505
|
const image0 = referencedDisplaySet.images[0];
|
|
495
506
|
const referencedDisplaySetMetadata = {
|
|
496
507
|
PatientID: image0.PatientID,
|
|
497
508
|
PatientName: image0.PatientName,
|
|
498
509
|
PatientSex: image0.PatientSex,
|
|
499
510
|
PatientAge: image0.PatientAge,
|
|
500
|
-
SliceThickness: image0.SliceThickness,
|
|
511
|
+
SliceThickness: image0.SliceThickness || SliceThickness,
|
|
501
512
|
StudyDate: image0.StudyDate,
|
|
502
513
|
SeriesDescription: image0.SeriesDescription,
|
|
503
514
|
SeriesInstanceUID: image0.SeriesInstanceUID,
|
|
504
515
|
SeriesNumber: image0.SeriesNumber,
|
|
505
516
|
ManufacturerModelName: image0.ManufacturerModelName,
|
|
506
|
-
SpacingBetweenSlices: image0.SpacingBetweenSlices
|
|
517
|
+
SpacingBetweenSlices: image0.SpacingBetweenSlices || SpacingBetweenSlices
|
|
507
518
|
};
|
|
508
519
|
return referencedDisplaySetMetadata;
|
|
509
520
|
}
|
|
@@ -17,10 +17,10 @@ var react = __webpack_require__(32735);
|
|
|
17
17
|
// EXTERNAL MODULE: ../../../node_modules/prop-types/index.js
|
|
18
18
|
var prop_types = __webpack_require__(60216);
|
|
19
19
|
var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types);
|
|
20
|
-
// EXTERNAL MODULE: ../../core/src/index.ts +
|
|
21
|
-
var src = __webpack_require__(
|
|
22
|
-
// EXTERNAL MODULE: ../../ui/src/index.js +
|
|
23
|
-
var ui_src = __webpack_require__(
|
|
20
|
+
// EXTERNAL MODULE: ../../core/src/index.ts + 102 modules
|
|
21
|
+
var src = __webpack_require__(62771);
|
|
22
|
+
// EXTERNAL MODULE: ../../ui/src/index.js + 452 modules
|
|
23
|
+
var ui_src = __webpack_require__(28619);
|
|
24
24
|
;// CONCATENATED MODULE: ../../../extensions/cornerstone-dicom-rt/src/utils/_hydrateRT.ts
|
|
25
25
|
async function _hydrateRTDisplaySet(_ref) {
|
|
26
26
|
let {
|
|
@@ -77,6 +77,7 @@ async function _hydrateRTDisplaySet(_ref) {
|
|
|
77
77
|
/* harmony default export */ const _hydrateRT = (_hydrateRTDisplaySet);
|
|
78
78
|
;// CONCATENATED MODULE: ../../../extensions/cornerstone-dicom-rt/src/utils/promptHydrateRT.ts
|
|
79
79
|
|
|
80
|
+
|
|
80
81
|
const RESPONSE = {
|
|
81
82
|
NO_NEVER: -1,
|
|
82
83
|
CANCEL: 0,
|
|
@@ -109,11 +110,11 @@ function _askHydrate(uiViewportDialogService, viewportIndex) {
|
|
|
109
110
|
return new Promise(function (resolve, reject) {
|
|
110
111
|
const message = 'Do you want to open this Segmentation?';
|
|
111
112
|
const actions = [{
|
|
112
|
-
type:
|
|
113
|
+
type: ui_src/* ButtonEnums.type */.LZ.U.secondary,
|
|
113
114
|
text: 'No',
|
|
114
115
|
value: RESPONSE.CANCEL
|
|
115
116
|
}, {
|
|
116
|
-
type:
|
|
117
|
+
type: ui_src/* ButtonEnums.type */.LZ.U.primary,
|
|
117
118
|
text: 'Yes',
|
|
118
119
|
value: RESPONSE.HYDRATE_SEG
|
|
119
120
|
}];
|
|
@@ -24,8 +24,8 @@ const SOPClassHandlerId = `${id}.sopClassHandlerModule.${SOPClassHandlerName}`;
|
|
|
24
24
|
var react = __webpack_require__(32735);
|
|
25
25
|
// EXTERNAL MODULE: ../../../node_modules/@kitware/vtk.js/Common/Core/Math.js
|
|
26
26
|
var Core_Math = __webpack_require__(92780);
|
|
27
|
-
// EXTERNAL MODULE: ../../core/src/index.ts +
|
|
28
|
-
var src = __webpack_require__(
|
|
27
|
+
// EXTERNAL MODULE: ../../core/src/index.ts + 102 modules
|
|
28
|
+
var src = __webpack_require__(62771);
|
|
29
29
|
// EXTERNAL MODULE: ../../../node_modules/dcmjs/build/dcmjs.es.js
|
|
30
30
|
var dcmjs_es = __webpack_require__(22737);
|
|
31
31
|
;// CONCATENATED MODULE: ../../../extensions/cornerstone-dicom-seg/src/getSopClassHandlerModule.js
|
|
@@ -252,8 +252,8 @@ function getSopClassHandlerModule(_ref2) {
|
|
|
252
252
|
// EXTERNAL MODULE: ../../../node_modules/prop-types/index.js
|
|
253
253
|
var prop_types = __webpack_require__(60216);
|
|
254
254
|
var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types);
|
|
255
|
-
// EXTERNAL MODULE: ../../ui/src/index.js +
|
|
256
|
-
var ui_src = __webpack_require__(
|
|
255
|
+
// EXTERNAL MODULE: ../../ui/src/index.js + 452 modules
|
|
256
|
+
var ui_src = __webpack_require__(28619);
|
|
257
257
|
;// CONCATENATED MODULE: ../../../extensions/cornerstone-dicom-seg/src/panels/callInputDialog.tsx
|
|
258
258
|
|
|
259
259
|
|
|
@@ -295,11 +295,11 @@ function callInputDialog(uiDialogService, label, callback) {
|
|
|
295
295
|
actions: [{
|
|
296
296
|
id: 'cancel',
|
|
297
297
|
text: 'Cancel',
|
|
298
|
-
type:
|
|
298
|
+
type: ui_src/* ButtonEnums.type */.LZ.U.secondary
|
|
299
299
|
}, {
|
|
300
300
|
id: 'save',
|
|
301
301
|
text: 'Confirm',
|
|
302
|
-
type:
|
|
302
|
+
type: ui_src/* ButtonEnums.type */.LZ.U.primary
|
|
303
303
|
}],
|
|
304
304
|
onSubmit: onSubmitHandler,
|
|
305
305
|
body: _ref2 => {
|
|
@@ -21,8 +21,8 @@ const package_namespaceObject = JSON.parse('{"u2":"@ohif/extension-dicom-pdf"}')
|
|
|
21
21
|
const id = package_namespaceObject.u2;
|
|
22
22
|
const SOPClassHandlerId = `${id}.sopClassHandlerModule.dicom-pdf`;
|
|
23
23
|
|
|
24
|
-
// EXTERNAL MODULE: ../../core/src/index.ts +
|
|
25
|
-
var src = __webpack_require__(
|
|
24
|
+
// EXTERNAL MODULE: ../../core/src/index.ts + 102 modules
|
|
25
|
+
var src = __webpack_require__(62771);
|
|
26
26
|
;// CONCATENATED MODULE: ../../../extensions/dicom-pdf/src/getSopClassHandlerModule.js
|
|
27
27
|
|
|
28
28
|
|