@ohif/app 3.14.0-beta.98 → 3.14.0-beta.99
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/{1645.bundle.a98b9ca6.js → 1645.bundle.1a466b16.js} +600 -600
- package/dist/{1788.bundle.3f1349d2.js → 1788.bundle.962951f9.js} +26 -26
- package/dist/{1793.bundle.27458a55.js → 1793.bundle.30f89e46.js} +5 -3
- package/dist/{1862.bundle.79bfe469.js → 1862.bundle.3ae388c3.js} +2 -2
- package/dist/204.bundle.bc44c201.js +101 -0
- package/dist/204.bundle.css +52 -0
- package/dist/{2748.bundle.eaa94e2e.js → 2103.bundle.1cf348e8.js} +1 -1771
- package/dist/{2478.bundle.fc6ab30b.js → 2478.bundle.68ff1b2d.js} +2 -2
- package/dist/{2717.bundle.d5f58443.js → 2717.bundle.4318f1ee.js} +45 -43
- package/dist/{5989.bundle.f484884a.js → 287.bundle.ee60c370.js} +4570 -832
- package/dist/{2894.bundle.d612efb2.js → 2894.bundle.30c0af5b.js} +20 -14
- package/dist/{2991.bundle.f94892fb.js → 2991.bundle.77642eee.js} +101 -97
- package/dist/{3004.bundle.51919fdc.js → 3004.bundle.5568149a.js} +39 -38
- package/dist/{3255.bundle.13e205ac.js → 3255.bundle.3272671f.js} +29 -27
- package/dist/{3366.bundle.62baeeec.js → 3366.bundle.d9e78e25.js} +57 -53
- package/dist/{3468.bundle.f5dc5e44.js → 3468.bundle.666f2441.js} +37 -27
- package/dist/{347.bundle.397bb252.js → 347.bundle.1323658e.js} +44 -44
- package/dist/{3622.bundle.f4cf2d16.js → 3622.bundle.edb42b96.js} +56 -54
- package/dist/{3723.bundle.eab70100.js → 3723.bundle.43ff1971.js} +1 -1
- package/dist/{3771.bundle.aba09bd7.js → 3771.bundle.a5754f97.js} +8 -8
- package/dist/{4449.bundle.aaa4ab92.js → 4487.bundle.fa0375a4.js} +853 -95
- package/dist/{4606.bundle.a3485206.js → 4606.bundle.6c297e2a.js} +9 -7
- package/dist/{4998.bundle.3aedb48d.js → 4998.bundle.25b8cbfe.js} +5 -3
- package/dist/{5076.bundle.95c07142.js → 5076.bundle.2a14756f.js} +66 -66
- package/dist/{5143.bundle.04f54c00.js → 5143.bundle.53156bb0.js} +358 -226
- package/dist/{5154.bundle.2f460017.js → 5154.bundle.ccd02dd7.js} +5 -3
- package/dist/{5320.bundle.9b05cebb.js → 5320.bundle.c17eb4a7.js} +678 -546
- package/dist/{6212.bundle.e505e123.js → 6212.bundle.c4856be7.js} +48 -46
- package/dist/{6253.bundle.f74ac5c2.js → 6253.bundle.596ce463.js} +1225 -1145
- package/dist/{1153.bundle.51d39e80.js → 6314.bundle.5aadfe48.js} +199 -420
- package/dist/{641.bundle.4627a8e1.js → 641.bundle.8e45751e.js} +89 -89
- package/dist/{6481.bundle.d2fca485.js → 6481.bundle.85093e70.js} +29 -23
- package/dist/{6507.bundle.d52f5e81.js → 6507.bundle.bbcdd01e.js} +76 -76
- package/dist/{6722.bundle.d09a8aad.js → 6722.bundle.3e9a4ef6.js} +4 -4
- package/dist/{6956.bundle.c82fd790.js → 6956.bundle.dc0e8660.js} +33 -33
- package/dist/{7526.bundle.0685dfeb.js → 7526.bundle.3460c3ca.js} +55 -53
- package/dist/{7604.bundle.9eb317c8.js → 7604.bundle.f1eeded4.js} +2 -2
- package/dist/{8312.bundle.2cb75b58.js → 8312.bundle.d67b6f4e.js} +652 -687
- package/dist/{6847.bundle.b2adb444.js → 8729.bundle.e17fe9b2.js} +87 -845
- package/dist/{8788.bundle.4bb4c65b.js → 8788.bundle.83ddf642.js} +21 -20
- package/dist/{8868.bundle.4c357767.js → 8868.bundle.8f3653b3.js} +31 -31
- package/dist/{8923.bundle.9aca06c4.js → 8923.bundle.8b682e96.js} +148 -148
- package/dist/{899.bundle.9a033d16.js → 899.bundle.4e1aee7f.js} +73 -203
- package/dist/{9187.bundle.8f72b4fe.js → 9187.bundle.407afa07.js} +112 -110
- package/dist/9385.bundle.fb0bbf4a.js +1888 -0
- package/dist/{9481.bundle.ccb81f53.js → 9481.bundle.d045ae3a.js} +8 -6
- package/dist/{9517.bundle.1ae74db3.js → 9517.bundle.3e2896ef.js} +31 -17
- package/dist/{9620.bundle.d1dc0be1.js → 9620.bundle.b4cc392c.js} +63 -61
- package/dist/{9841.bundle.0f40f02b.js → 9841.bundle.4f2c401a.js} +93 -91
- package/dist/{9886.bundle.cabb4a24.js → 9886.bundle.b00d5d78.js} +4 -4
- package/dist/{8037.bundle.30a187f7.js → 9889.bundle.bf312047.js} +7743 -1098
- package/dist/{9948.bundle.1172ebca.js → 9948.bundle.fecf81f8.js} +5 -5
- package/dist/{app.bundle.51f0a437.js → app.bundle.bb359653.js} +1926 -1223
- package/dist/{compute.bundle.0ed1fe87.js → compute.bundle.9267d449.js} +13 -12
- package/dist/{histogram-worker.bundle.58e60d7c.js → histogram-worker.bundle.29bcdbf6.js} +6 -5
- package/dist/index.html +1 -1
- package/dist/{interpolation.bundle.5a53d112.js → interpolation.bundle.ee9998a4.js} +8 -7
- package/dist/{lib-router.bundle.a5ac870a.js → lib-router.bundle.2a887bc7.js} +334 -201
- package/dist/{polySeg.bundle.b4089601.js → polySeg.bundle.a55f8eee.js} +12 -12
- package/dist/sw.js +11 -1
- package/package.json +14 -19
- package/dist/1566.bundle.d58db206.js +0 -3610
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
(globalThis["rspackChunk_ohif_app"] ||= []).push([[9187], {
|
|
3
3
|
62430(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
4
|
+
// ESM COMPAT FLAG
|
|
5
|
+
__webpack_require__.r(__webpack_exports__);
|
|
4
6
|
|
|
5
7
|
// EXPORTS
|
|
6
8
|
__webpack_require__.d(__webpack_exports__, {
|
|
7
9
|
"default": () => (/* binding */ tmtv_src),
|
|
8
|
-
|
|
10
|
+
toolGroupIds: () => (/* reexport */ toolGroupIds)
|
|
9
11
|
});
|
|
10
12
|
|
|
11
13
|
;// CONCATENATED MODULE: ../../extensions/tmtv/package.json
|
|
@@ -888,7 +890,7 @@ function getHangingProtocolModule() {
|
|
|
888
890
|
// path only, leaving the legacy ramp in hpViewports untouched. Done here (not at
|
|
889
891
|
// module load) because the useNextViewports flag is set during cornerstone
|
|
890
892
|
// preRegistration, which runs before this module is gathered.
|
|
891
|
-
if ((0,src
|
|
893
|
+
if ((0,src.isNextViewportsEnabled)()) {
|
|
892
894
|
[
|
|
893
895
|
fusionAXIAL,
|
|
894
896
|
fusionSAGITTAL,
|
|
@@ -897,7 +899,7 @@ function getHangingProtocolModule() {
|
|
|
897
899
|
const ptDisplaySet = viewport.displaySets?.find((ds)=>ds.id === 'ptDisplaySet');
|
|
898
900
|
const colormap = ptDisplaySet?.options?.colormap;
|
|
899
901
|
if (colormap) {
|
|
900
|
-
colormap.opacity = src
|
|
902
|
+
colormap.opacity = src.NEXT_FUSION_PT_OPACITY;
|
|
901
903
|
}
|
|
902
904
|
});
|
|
903
905
|
}
|
|
@@ -980,7 +982,7 @@ const InputRow = (t0)=>{
|
|
|
980
982
|
}
|
|
981
983
|
return t2;
|
|
982
984
|
}; // InputRow sub-components
|
|
983
|
-
InputRow.Label = ({ children, unit, className, ...props })=>/*#__PURE__*/ (0,jsx_runtime.jsxs)(ui_next_src
|
|
985
|
+
InputRow.Label = ({ children, unit, className, ...props })=>/*#__PURE__*/ (0,jsx_runtime.jsxs)(ui_next_src.Label, {
|
|
984
986
|
className: `min-w-32 flex-shrink-0 ${className || ''}`,
|
|
985
987
|
...props,
|
|
986
988
|
children: [
|
|
@@ -994,7 +996,7 @@ InputRow.Label = ({ children, unit, className, ...props })=>/*#__PURE__*/ (0,jsx
|
|
|
994
996
|
})
|
|
995
997
|
]
|
|
996
998
|
});
|
|
997
|
-
InputRow.Input = ({ className, ...props })=>/*#__PURE__*/ (0,jsx_runtime.jsx)(ui_next_src
|
|
999
|
+
InputRow.Input = ({ className, ...props })=>/*#__PURE__*/ (0,jsx_runtime.jsx)(ui_next_src.Input, {
|
|
998
1000
|
className: `h-7 flex-1 ${className || ''}`,
|
|
999
1001
|
...props
|
|
1000
1002
|
}); // Set display names for better debugging
|
|
@@ -1002,8 +1004,8 @@ InputRow.Label.displayName = 'InputRow.Label';
|
|
|
1002
1004
|
InputRow.Input.displayName = 'InputRow.Input';
|
|
1003
1005
|
function PanelPetSUV() {
|
|
1004
1006
|
const $ = (0,compiler_runtime.c)(96);
|
|
1005
|
-
const { commandsManager, servicesManager } = (0,core_src
|
|
1006
|
-
const { t } = (0,es
|
|
1007
|
+
const { commandsManager, servicesManager } = (0,core_src.useSystem)();
|
|
1008
|
+
const { t } = (0,es.useTranslation)("PanelSUV");
|
|
1007
1009
|
const { displaySetService, hangingProtocolService } = servicesManager.services;
|
|
1008
1010
|
const [metadata, setMetadata] = (0,react.useState)(DEFAULT_MEATADATA);
|
|
1009
1011
|
const [ptDisplaySet, setPtDisplaySet] = (0,react.useState)(null);
|
|
@@ -1123,7 +1125,7 @@ function PanelPetSUV() {
|
|
|
1123
1125
|
if (!ptDisplaySet) {
|
|
1124
1126
|
throw new Error("No ptDisplaySet found");
|
|
1125
1127
|
}
|
|
1126
|
-
core_src
|
|
1128
|
+
core_src.DicomMetadataStore.updateMetadataForSeries(ptDisplaySet.StudyInstanceUID, ptDisplaySet.SeriesInstanceUID, metadata);
|
|
1127
1129
|
displaySetService.setDisplaySetMetadataInvalidated(ptDisplaySet.displaySetInstanceUID);
|
|
1128
1130
|
setTimeout(()=>{
|
|
1129
1131
|
commandsManager.runCommand("resetCrosshairs");
|
|
@@ -1148,7 +1150,7 @@ function PanelPetSUV() {
|
|
|
1148
1150
|
}
|
|
1149
1151
|
let t8;
|
|
1150
1152
|
if ($[19] !== t7) {
|
|
1151
|
-
t8 = /*#__PURE__*/ (0,jsx_runtime.jsx)(ui_next_src
|
|
1153
|
+
t8 = /*#__PURE__*/ (0,jsx_runtime.jsx)(ui_next_src.PanelSection.Header, {
|
|
1152
1154
|
children: t7
|
|
1153
1155
|
});
|
|
1154
1156
|
$[19] = t7;
|
|
@@ -1497,7 +1499,7 @@ function PanelPetSUV() {
|
|
|
1497
1499
|
}
|
|
1498
1500
|
let t45;
|
|
1499
1501
|
if ($[82] !== t44 || $[83] !== updateMetadata) {
|
|
1500
|
-
t45 = /*#__PURE__*/ (0,jsx_runtime.jsx)(ui_next_src
|
|
1502
|
+
t45 = /*#__PURE__*/ (0,jsx_runtime.jsx)(ui_next_src.Button, {
|
|
1501
1503
|
variant: "default",
|
|
1502
1504
|
size: "sm",
|
|
1503
1505
|
className: "self-end px-4",
|
|
@@ -1512,7 +1514,7 @@ function PanelPetSUV() {
|
|
|
1512
1514
|
}
|
|
1513
1515
|
let t46;
|
|
1514
1516
|
if ($[85] !== t14 || $[86] !== t20 || $[87] !== t26 || $[88] !== t32 || $[89] !== t38 || $[90] !== t43 || $[91] !== t45) {
|
|
1515
|
-
t46 = /*#__PURE__*/ (0,jsx_runtime.jsx)(ui_next_src
|
|
1517
|
+
t46 = /*#__PURE__*/ (0,jsx_runtime.jsx)(ui_next_src.PanelSection.Content, {
|
|
1516
1518
|
children: /*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
|
|
1517
1519
|
className: "bg-muted flex flex-col gap-3 p-2",
|
|
1518
1520
|
children: [
|
|
@@ -1544,7 +1546,7 @@ function PanelPetSUV() {
|
|
|
1544
1546
|
className: "ohif-scrollbar flex min-h-0 flex-auto select-none flex-col justify-between overflow-auto",
|
|
1545
1547
|
children: /*#__PURE__*/ (0,jsx_runtime.jsx)("div", {
|
|
1546
1548
|
className: "flex min-h-0 flex-1 flex-col bg-background text-base",
|
|
1547
|
-
children: /*#__PURE__*/ (0,jsx_runtime.jsxs)(ui_next_src
|
|
1549
|
+
children: /*#__PURE__*/ (0,jsx_runtime.jsxs)(ui_next_src.PanelSection, {
|
|
1548
1550
|
defaultOpen: true,
|
|
1549
1551
|
children: [
|
|
1550
1552
|
t8,
|
|
@@ -1594,9 +1596,9 @@ var utils = __webpack_require__(40340);
|
|
|
1594
1596
|
|
|
1595
1597
|
function PanelRoiThresholdSegmentation() {
|
|
1596
1598
|
const $ = (0,compiler_runtime.c)(23);
|
|
1597
|
-
const { commandsManager, servicesManager } = (0,core_src
|
|
1599
|
+
const { commandsManager, servicesManager } = (0,core_src.useSystem)();
|
|
1598
1600
|
const { segmentationService } = servicesManager.services;
|
|
1599
|
-
const { segmentationsWithRepresentations: segmentationsInfo } = (0,src
|
|
1601
|
+
const { segmentationsWithRepresentations: segmentationsInfo } = (0,src.useActiveViewportSegmentationRepresentations)();
|
|
1600
1602
|
let t0;
|
|
1601
1603
|
if ($[0] !== segmentationsInfo) {
|
|
1602
1604
|
t0 = segmentationsInfo?.map(PanelROIThresholdExport_temp) || [];
|
|
@@ -1737,7 +1739,7 @@ function PanelRoiThresholdSegmentation() {
|
|
|
1737
1739
|
if ($[18] !== handleExportCSV) {
|
|
1738
1740
|
t15 = /*#__PURE__*/ (0,jsx_runtime.jsx)("div", {
|
|
1739
1741
|
className: "flex items-center",
|
|
1740
|
-
children: /*#__PURE__*/ (0,jsx_runtime.jsx)(ui_next_src
|
|
1742
|
+
children: /*#__PURE__*/ (0,jsx_runtime.jsx)(ui_next_src.Button, {
|
|
1741
1743
|
dataCY: "exportTmtvCsvReport",
|
|
1742
1744
|
size: "sm",
|
|
1743
1745
|
variant: "ghost",
|
|
@@ -1810,7 +1812,7 @@ function PanelTMTV(t0) {
|
|
|
1810
1812
|
let t2;
|
|
1811
1813
|
if ($[1] !== configuration) {
|
|
1812
1814
|
t2 = /*#__PURE__*/ (0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
|
|
1813
|
-
children: /*#__PURE__*/ (0,jsx_runtime.jsx)(src
|
|
1815
|
+
children: /*#__PURE__*/ (0,jsx_runtime.jsx)(src.PanelSegmentation, {
|
|
1814
1816
|
configuration: configuration,
|
|
1815
1817
|
children: t1
|
|
1816
1818
|
})
|
|
@@ -1838,9 +1840,9 @@ function getPanelModule({ commandsManager, extensionManager, servicesManager })
|
|
|
1838
1840
|
return /*#__PURE__*/ (0,jsx_runtime.jsx)(PanelPetSUV, {});
|
|
1839
1841
|
};
|
|
1840
1842
|
const wrappedROIThresholdToolbox = ()=>{
|
|
1841
|
-
return /*#__PURE__*/ (0,jsx_runtime.jsx)(default_src
|
|
1843
|
+
return /*#__PURE__*/ (0,jsx_runtime.jsx)(default_src.Toolbox, {
|
|
1842
1844
|
buttonSectionId: toolbarService.sections.roiThresholdToolbox,
|
|
1843
|
-
title: i18n_src
|
|
1845
|
+
title: i18n_src["default"].t('ROIThresholdConfiguration:Threshold Tools')
|
|
1844
1846
|
});
|
|
1845
1847
|
};
|
|
1846
1848
|
const wrappedROIThresholdExport = ()=>{
|
|
@@ -1849,9 +1851,9 @@ function getPanelModule({ commandsManager, extensionManager, servicesManager })
|
|
|
1849
1851
|
const wrappedPanelTMTV = ()=>{
|
|
1850
1852
|
return /*#__PURE__*/ (0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
1851
1853
|
children: [
|
|
1852
|
-
/*#__PURE__*/ (0,jsx_runtime.jsx)(default_src
|
|
1854
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)(default_src.Toolbox, {
|
|
1853
1855
|
buttonSectionId: toolbarService.sections.roiThresholdToolbox,
|
|
1854
|
-
title: i18n_src
|
|
1856
|
+
title: i18n_src["default"].t('ROIThresholdConfiguration:Threshold Tools')
|
|
1855
1857
|
}),
|
|
1856
1858
|
/*#__PURE__*/ (0,jsx_runtime.jsx)(PanelTMTV, {
|
|
1857
1859
|
commandsManager: commandsManager,
|
|
@@ -1922,7 +1924,7 @@ const RectangleROIStartEndThreshold_RectangleROIStartEndThreshold = {
|
|
|
1922
1924
|
if (!validToolType) {
|
|
1923
1925
|
throw new Error('Tool not supported');
|
|
1924
1926
|
}
|
|
1925
|
-
const { SOPInstanceUID, SeriesInstanceUID, StudyInstanceUID } = (0,src
|
|
1927
|
+
const { SOPInstanceUID, SeriesInstanceUID, StudyInstanceUID } = (0,src.getSOPInstanceAttributes)(referencedImageId, cornerstoneViewportService, viewportId);
|
|
1926
1928
|
let displaySet;
|
|
1927
1929
|
if (SOPInstanceUID) {
|
|
1928
1930
|
displaySet = displaySetService.getDisplaySetForSOPInstanceUID(SOPInstanceUID, SeriesInstanceUID);
|
|
@@ -1968,7 +1970,7 @@ const CircleROIStartEndThreshold_CircleROIStartEndThreshold = {
|
|
|
1968
1970
|
if (!validToolType) {
|
|
1969
1971
|
throw new Error('Tool not supported');
|
|
1970
1972
|
}
|
|
1971
|
-
const { SOPInstanceUID, SeriesInstanceUID, StudyInstanceUID } = (0,src
|
|
1973
|
+
const { SOPInstanceUID, SeriesInstanceUID, StudyInstanceUID } = (0,src.getSOPInstanceAttributes)(referencedImageId, cornerstoneViewportService, viewportId);
|
|
1972
1974
|
let displaySet;
|
|
1973
1975
|
if (SOPInstanceUID) {
|
|
1974
1976
|
displaySet = displaySetService.getDisplaySetForSOPInstanceUID(SOPInstanceUID, SeriesInstanceUID);
|
|
@@ -2024,7 +2026,7 @@ const measurementServiceMappingsFactory = (measurementService, displaySetService
|
|
|
2024
2026
|
|
|
2025
2027
|
|
|
2026
2028
|
|
|
2027
|
-
const { CORNERSTONE_3D_TOOLS_SOURCE_NAME, CORNERSTONE_3D_TOOLS_SOURCE_VERSION } = src
|
|
2029
|
+
const { CORNERSTONE_3D_TOOLS_SOURCE_NAME, CORNERSTONE_3D_TOOLS_SOURCE_VERSION } = src.Enums; /**
|
|
2028
2030
|
*
|
|
2029
2031
|
* @param {Object} servicesManager
|
|
2030
2032
|
* @param {Object} configuration
|
|
@@ -2099,7 +2101,7 @@ function _getStrategyFn(statistic) {
|
|
|
2099
2101
|
|
|
2100
2102
|
;// CONCATENATED MODULE: ../../extensions/tmtv/src/utils/createAndDownloadTMTVReport.js
|
|
2101
2103
|
|
|
2102
|
-
const { downloadCsv } = core_src
|
|
2104
|
+
const { downloadCsv } = core_src.utils;
|
|
2103
2105
|
function createAndDownloadTMTVReport(segReport, additionalReportRows, options = {}) {
|
|
2104
2106
|
const firstReport = segReport[Object.keys(segReport)[0]];
|
|
2105
2107
|
const columns = Object.keys(firstReport);
|
|
@@ -2141,10 +2143,10 @@ var adapters_dist_esm = __webpack_require__(24694);
|
|
|
2141
2143
|
|
|
2142
2144
|
|
|
2143
2145
|
|
|
2144
|
-
const { datasetToBlob } = dcmjs_es
|
|
2145
|
-
const metadataProvider = core_src
|
|
2146
|
+
const { datasetToBlob } = dcmjs_es["default"].data;
|
|
2147
|
+
const metadataProvider = core_src.classes.MetadataProvider;
|
|
2146
2148
|
function dicomRTAnnotationExport(annotations) {
|
|
2147
|
-
const dataset = adapters_dist_esm/* .adaptersRT.Cornerstone3D.RTSS.generateRTSSFromAnnotations */.f_.Cornerstone3D.RTSS.generateRTSSFromAnnotations(annotations, metadataProvider, core_src
|
|
2149
|
+
const dataset = adapters_dist_esm/* .adaptersRT.Cornerstone3D.RTSS.generateRTSSFromAnnotations */.f_.Cornerstone3D.RTSS.generateRTSSFromAnnotations(annotations, metadataProvider, core_src.DicomMetadataStore);
|
|
2148
2150
|
const reportBlob = datasetToBlob(dataset); //Create a URL for the binary.
|
|
2149
2151
|
var objectUrl = URL.createObjectURL(reportBlob);
|
|
2150
2152
|
window.location.assign(objectUrl);
|
|
@@ -2167,8 +2169,8 @@ function dicomRTAnnotationExport(annotations) {
|
|
|
2167
2169
|
|
|
2168
2170
|
|
|
2169
2171
|
const { SegmentationRepresentations } = esm.Enums;
|
|
2170
|
-
const { formatPN } = core_src
|
|
2171
|
-
const commandsModule_metadataProvider = core_src
|
|
2172
|
+
const { formatPN } = core_src.utils;
|
|
2173
|
+
const commandsModule_metadataProvider = core_src.classes.MetadataProvider;
|
|
2172
2174
|
const ROI_THRESHOLD_MANUAL_TOOL_IDS = [
|
|
2173
2175
|
'RectangleROIStartEndThreshold',
|
|
2174
2176
|
'RectangleROIThreshold',
|
|
@@ -2256,7 +2258,7 @@ const commandsModule = ({ servicesManager, commandsManager, extensionManager })=
|
|
|
2256
2258
|
labelIsGenerated: true,
|
|
2257
2259
|
segments: {
|
|
2258
2260
|
1: {
|
|
2259
|
-
label: `${i18n_src
|
|
2261
|
+
label: `${i18n_src["default"].t('Segment')} 1`,
|
|
2260
2262
|
active: true
|
|
2261
2263
|
}
|
|
2262
2264
|
}
|
|
@@ -2363,7 +2365,7 @@ const commandsModule = ({ servicesManager, commandsManager, extensionManager })=
|
|
|
2363
2365
|
setStartSliceForROIThresholdTool: ()=>{
|
|
2364
2366
|
const { viewport } = _getActiveViewportsEnabledElement(); // Native ("next") viewports have no getCamera; the slice-center focal point
|
|
2365
2367
|
// comes from the view reference. Bridged so both lanes work.
|
|
2366
|
-
const focalPoint = (0,src
|
|
2368
|
+
const focalPoint = (0,src.getViewportFocalPoint)(viewport); // Native viewports may not resolve a focal point; writing undefined into the
|
|
2367
2369
|
// annotation would invalidate its ROI-threshold coordinates.
|
|
2368
2370
|
if (!focalPoint) {
|
|
2369
2371
|
return;
|
|
@@ -2381,7 +2383,7 @@ const commandsModule = ({ servicesManager, commandsManager, extensionManager })=
|
|
|
2381
2383
|
const selectedAnnotationUIDs = _getAnnotationsSelectedByToolNames(ROI_THRESHOLD_MANUAL_TOOL_IDS);
|
|
2382
2384
|
const annotationUID = selectedAnnotationUIDs[0];
|
|
2383
2385
|
const annotation = esm.annotation.state.getAnnotation(annotationUID); // get the current focal point (bridged: native viewports use the view reference)
|
|
2384
|
-
const focalPointToEnd = (0,src
|
|
2386
|
+
const focalPointToEnd = (0,src.getViewportFocalPoint)(viewport);
|
|
2385
2387
|
if (!focalPointToEnd) {
|
|
2386
2388
|
return;
|
|
2387
2389
|
}
|
|
@@ -2449,7 +2451,7 @@ const commandsModule = ({ servicesManager, commandsManager, extensionManager })=
|
|
|
2449
2451
|
continue;
|
|
2450
2452
|
}
|
|
2451
2453
|
const firstImageId = referencedVolume.imageIds[0];
|
|
2452
|
-
const instance = core_src
|
|
2454
|
+
const instance = core_src["default"].classes.MetadataProvider.get('instance', firstImageId);
|
|
2453
2455
|
if (!instance) {
|
|
2454
2456
|
report[id] = segReport;
|
|
2455
2457
|
continue;
|
|
@@ -2554,7 +2556,7 @@ const RANGE = 'range';
|
|
|
2554
2556
|
function ROIThresholdConfiguration(t0) {
|
|
2555
2557
|
const $ = (0,compiler_runtime.c)(67);
|
|
2556
2558
|
const { config, dispatch, runCommand } = t0;
|
|
2557
|
-
const { t } = (0,es
|
|
2559
|
+
const { t } = (0,es.useTranslation)("ROIThresholdConfiguration");
|
|
2558
2560
|
let t1;
|
|
2559
2561
|
if ($[0] !== t) {
|
|
2560
2562
|
t1 = t("Max");
|
|
@@ -2667,9 +2669,9 @@ function ROIThresholdConfiguration(t0) {
|
|
|
2667
2669
|
const t10 = options.find((option)=>option.value === config.strategy)?.placeHolder;
|
|
2668
2670
|
let t11;
|
|
2669
2671
|
if ($[21] !== t10) {
|
|
2670
|
-
t11 = /*#__PURE__*/ (0,jsx_runtime.jsx)(ui_next_src
|
|
2672
|
+
t11 = /*#__PURE__*/ (0,jsx_runtime.jsx)(ui_next_src.SelectTrigger, {
|
|
2671
2673
|
className: "w-full",
|
|
2672
|
-
children: /*#__PURE__*/ (0,jsx_runtime.jsx)(ui_next_src
|
|
2674
|
+
children: /*#__PURE__*/ (0,jsx_runtime.jsx)(ui_next_src.SelectValue, {
|
|
2673
2675
|
placeholder: t10
|
|
2674
2676
|
})
|
|
2675
2677
|
});
|
|
@@ -2680,7 +2682,7 @@ function ROIThresholdConfiguration(t0) {
|
|
|
2680
2682
|
}
|
|
2681
2683
|
let t12;
|
|
2682
2684
|
if ($[23] !== options) {
|
|
2683
|
-
t12 = /*#__PURE__*/ (0,jsx_runtime.jsx)(ui_next_src
|
|
2685
|
+
t12 = /*#__PURE__*/ (0,jsx_runtime.jsx)(ui_next_src.SelectContent, {
|
|
2684
2686
|
className: "",
|
|
2685
2687
|
children: options.map(ROIThresholdConfiguration_temp)
|
|
2686
2688
|
});
|
|
@@ -2693,7 +2695,7 @@ function ROIThresholdConfiguration(t0) {
|
|
|
2693
2695
|
if ($[25] !== config.strategy || $[26] !== t11 || $[27] !== t12 || $[28] !== t9) {
|
|
2694
2696
|
t13 = /*#__PURE__*/ (0,jsx_runtime.jsx)("div", {
|
|
2695
2697
|
className: "flex min-w-0 flex-1 flex-col",
|
|
2696
|
-
children: /*#__PURE__*/ (0,jsx_runtime.jsxs)(ui_next_src
|
|
2698
|
+
children: /*#__PURE__*/ (0,jsx_runtime.jsxs)(ui_next_src.Select, {
|
|
2697
2699
|
value: config.strategy,
|
|
2698
2700
|
onValueChange: t9,
|
|
2699
2701
|
children: [
|
|
@@ -2728,7 +2730,7 @@ function ROIThresholdConfiguration(t0) {
|
|
|
2728
2730
|
}
|
|
2729
2731
|
let t16;
|
|
2730
2732
|
if ($[34] !== t14 || $[35] !== t15) {
|
|
2731
|
-
t16 = /*#__PURE__*/ (0,jsx_runtime.jsx)(ui_next_src
|
|
2733
|
+
t16 = /*#__PURE__*/ (0,jsx_runtime.jsx)(ui_next_src.Button, {
|
|
2732
2734
|
variant: "secondary",
|
|
2733
2735
|
onClick: t14,
|
|
2734
2736
|
children: t15
|
|
@@ -2757,7 +2759,7 @@ function ROIThresholdConfiguration(t0) {
|
|
|
2757
2759
|
}
|
|
2758
2760
|
let t19;
|
|
2759
2761
|
if ($[41] !== t17 || $[42] !== t18) {
|
|
2760
|
-
t19 = /*#__PURE__*/ (0,jsx_runtime.jsx)(ui_next_src
|
|
2762
|
+
t19 = /*#__PURE__*/ (0,jsx_runtime.jsx)(ui_next_src.Button, {
|
|
2761
2763
|
variant: "secondary",
|
|
2762
2764
|
onClick: t17,
|
|
2763
2765
|
children: t18
|
|
@@ -2808,11 +2810,11 @@ function ROIThresholdConfiguration(t0) {
|
|
|
2808
2810
|
children: [
|
|
2809
2811
|
/*#__PURE__*/ (0,jsx_runtime.jsx)("div", {
|
|
2810
2812
|
className: "mb-2",
|
|
2811
|
-
children: /*#__PURE__*/ (0,jsx_runtime.jsx)(ui_next_src
|
|
2813
|
+
children: /*#__PURE__*/ (0,jsx_runtime.jsx)(ui_next_src.Label, {
|
|
2812
2814
|
children: t("Percentage of Max SUV")
|
|
2813
2815
|
})
|
|
2814
2816
|
}),
|
|
2815
|
-
/*#__PURE__*/ (0,jsx_runtime.jsx)(ui_next_src
|
|
2817
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)(ui_next_src.Input, {
|
|
2816
2818
|
"data-cy": "percentage-of-max-suv-input",
|
|
2817
2819
|
className: "w-full",
|
|
2818
2820
|
type: "text",
|
|
@@ -2836,7 +2838,7 @@ function ROIThresholdConfiguration(t0) {
|
|
|
2836
2838
|
children: /*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
|
|
2837
2839
|
className: "flex flex-col space-y-2",
|
|
2838
2840
|
children: [
|
|
2839
|
-
/*#__PURE__*/ (0,jsx_runtime.jsx)(ui_next_src
|
|
2841
|
+
/*#__PURE__*/ (0,jsx_runtime.jsx)(ui_next_src.Label, {
|
|
2840
2842
|
children: t("Lower & Upper Ranges")
|
|
2841
2843
|
}),
|
|
2842
2844
|
/*#__PURE__*/ (0,jsx_runtime.jsxs)("div", {
|
|
@@ -2844,7 +2846,7 @@ function ROIThresholdConfiguration(t0) {
|
|
|
2844
2846
|
children: [
|
|
2845
2847
|
/*#__PURE__*/ (0,jsx_runtime.jsx)("div", {
|
|
2846
2848
|
className: "w-10 text-left",
|
|
2847
|
-
children: /*#__PURE__*/ (0,jsx_runtime.jsx)(ui_next_src
|
|
2849
|
+
children: /*#__PURE__*/ (0,jsx_runtime.jsx)(ui_next_src.Label, {
|
|
2848
2850
|
children: "CT"
|
|
2849
2851
|
})
|
|
2850
2852
|
}),
|
|
@@ -2853,7 +2855,7 @@ function ROIThresholdConfiguration(t0) {
|
|
|
2853
2855
|
children: [
|
|
2854
2856
|
/*#__PURE__*/ (0,jsx_runtime.jsx)("div", {
|
|
2855
2857
|
className: "flex-1",
|
|
2856
|
-
children: /*#__PURE__*/ (0,jsx_runtime.jsx)(ui_next_src
|
|
2858
|
+
children: /*#__PURE__*/ (0,jsx_runtime.jsx)(ui_next_src.Input, {
|
|
2857
2859
|
className: "w-full",
|
|
2858
2860
|
type: "text",
|
|
2859
2861
|
value: config.ctLower,
|
|
@@ -2869,7 +2871,7 @@ function ROIThresholdConfiguration(t0) {
|
|
|
2869
2871
|
}),
|
|
2870
2872
|
/*#__PURE__*/ (0,jsx_runtime.jsx)("div", {
|
|
2871
2873
|
className: "flex-1",
|
|
2872
|
-
children: /*#__PURE__*/ (0,jsx_runtime.jsx)(ui_next_src
|
|
2874
|
+
children: /*#__PURE__*/ (0,jsx_runtime.jsx)(ui_next_src.Input, {
|
|
2873
2875
|
className: "w-full",
|
|
2874
2876
|
type: "text",
|
|
2875
2877
|
value: config.ctUpper,
|
|
@@ -2892,7 +2894,7 @@ function ROIThresholdConfiguration(t0) {
|
|
|
2892
2894
|
children: [
|
|
2893
2895
|
/*#__PURE__*/ (0,jsx_runtime.jsx)("div", {
|
|
2894
2896
|
className: "w-10 text-left",
|
|
2895
|
-
children: /*#__PURE__*/ (0,jsx_runtime.jsx)(ui_next_src
|
|
2897
|
+
children: /*#__PURE__*/ (0,jsx_runtime.jsx)(ui_next_src.Label, {
|
|
2896
2898
|
children: "PT"
|
|
2897
2899
|
})
|
|
2898
2900
|
}),
|
|
@@ -2901,7 +2903,7 @@ function ROIThresholdConfiguration(t0) {
|
|
|
2901
2903
|
children: [
|
|
2902
2904
|
/*#__PURE__*/ (0,jsx_runtime.jsx)("div", {
|
|
2903
2905
|
className: "flex-1",
|
|
2904
|
-
children: /*#__PURE__*/ (0,jsx_runtime.jsx)(ui_next_src
|
|
2906
|
+
children: /*#__PURE__*/ (0,jsx_runtime.jsx)(ui_next_src.Input, {
|
|
2905
2907
|
className: "w-full",
|
|
2906
2908
|
type: "text",
|
|
2907
2909
|
value: config.ptLower,
|
|
@@ -2917,7 +2919,7 @@ function ROIThresholdConfiguration(t0) {
|
|
|
2917
2919
|
}),
|
|
2918
2920
|
/*#__PURE__*/ (0,jsx_runtime.jsx)("div", {
|
|
2919
2921
|
className: "flex-1",
|
|
2920
|
-
children: /*#__PURE__*/ (0,jsx_runtime.jsx)(ui_next_src
|
|
2922
|
+
children: /*#__PURE__*/ (0,jsx_runtime.jsx)(ui_next_src.Input, {
|
|
2921
2923
|
className: "w-full",
|
|
2922
2924
|
type: "text",
|
|
2923
2925
|
value: config.ptUpper,
|
|
@@ -2969,7 +2971,7 @@ function ROIThresholdConfiguration(t0) {
|
|
|
2969
2971
|
return t24;
|
|
2970
2972
|
}
|
|
2971
2973
|
function ROIThresholdConfiguration_temp(option_0) {
|
|
2972
|
-
return /*#__PURE__*/ (0,jsx_runtime.jsx)(ui_next_src
|
|
2974
|
+
return /*#__PURE__*/ (0,jsx_runtime.jsx)(ui_next_src.SelectItem, {
|
|
2973
2975
|
value: option_0.value,
|
|
2974
2976
|
children: option_0.label
|
|
2975
2977
|
}, option_0.value);
|
|
@@ -3020,10 +3022,10 @@ function reducer(state, action) {
|
|
|
3020
3022
|
}
|
|
3021
3023
|
function RectangleROIOptions() {
|
|
3022
3024
|
const $ = (0,compiler_runtime.c)(17);
|
|
3023
|
-
const { commandsManager } = (0,core_src
|
|
3024
|
-
const segmentations = (0,src
|
|
3025
|
+
const { commandsManager } = (0,core_src.useSystem)();
|
|
3026
|
+
const segmentations = (0,src.useSegmentations)();
|
|
3025
3027
|
const activeSegmentation = segmentations[0];
|
|
3026
|
-
const { t } = (0,es
|
|
3028
|
+
const { t } = (0,es.useTranslation)("ROIThresholdConfiguration");
|
|
3027
3029
|
let t0;
|
|
3028
3030
|
if ($[0] !== commandsManager) {
|
|
3029
3031
|
t0 = (commandName, t1)=>{
|
|
@@ -3088,7 +3090,7 @@ function RectangleROIOptions() {
|
|
|
3088
3090
|
}
|
|
3089
3091
|
let t4;
|
|
3090
3092
|
if ($[10] !== activeSegmentation || $[11] !== handleROIThresholding || $[12] !== t) {
|
|
3091
|
-
t4 = activeSegmentation && /*#__PURE__*/ (0,jsx_runtime.jsx)(ui_next_src
|
|
3093
|
+
t4 = activeSegmentation && /*#__PURE__*/ (0,jsx_runtime.jsx)(ui_next_src.Button, {
|
|
3092
3094
|
variant: "default",
|
|
3093
3095
|
className: "my-3 mr-auto w-20",
|
|
3094
3096
|
onClick: handleROIThresholding,
|
|
@@ -3151,7 +3153,7 @@ var i18next = __webpack_require__(96392);
|
|
|
3151
3153
|
|
|
3152
3154
|
|
|
3153
3155
|
|
|
3154
|
-
const { TOOLBAR_SECTIONS } = core_src
|
|
3156
|
+
const { TOOLBAR_SECTIONS } = core_src.ToolbarService;
|
|
3155
3157
|
const MIN_SEGMENTATION_DRAWING_RADIUS = 0.5;
|
|
3156
3158
|
const MAX_SEGMENTATION_DRAWING_RADIUS = 99.5;
|
|
3157
3159
|
const setToolActiveToolbar = {
|
|
@@ -3202,8 +3204,8 @@ const toolbarButtons = [
|
|
|
3202
3204
|
uiType: 'ohif.modalityLoadBadge',
|
|
3203
3205
|
props: {
|
|
3204
3206
|
icon: 'Status',
|
|
3205
|
-
label: i18next
|
|
3206
|
-
tooltip: i18next
|
|
3207
|
+
label: i18next["default"].t('Buttons:Status'),
|
|
3208
|
+
tooltip: i18next["default"].t('Buttons:Status'),
|
|
3207
3209
|
evaluate: {
|
|
3208
3210
|
name: 'evaluate.modalityLoadBadge',
|
|
3209
3211
|
hideWhenDisabled: true
|
|
@@ -3215,7 +3217,7 @@ const toolbarButtons = [
|
|
|
3215
3217
|
uiType: 'ohif.colorbar',
|
|
3216
3218
|
props: {
|
|
3217
3219
|
type: 'tool',
|
|
3218
|
-
label: i18next
|
|
3220
|
+
label: i18next["default"].t('Buttons:Colorbar')
|
|
3219
3221
|
}
|
|
3220
3222
|
},
|
|
3221
3223
|
{
|
|
@@ -3223,8 +3225,8 @@ const toolbarButtons = [
|
|
|
3223
3225
|
uiType: 'ohif.navigationComponent',
|
|
3224
3226
|
props: {
|
|
3225
3227
|
icon: 'Navigation',
|
|
3226
|
-
label: i18next
|
|
3227
|
-
tooltip: i18next
|
|
3228
|
+
label: i18next["default"].t('Buttons:Navigation'),
|
|
3229
|
+
tooltip: i18next["default"].t('Buttons:Navigate between segments/measurements and manage their visibility'),
|
|
3228
3230
|
evaluate: {
|
|
3229
3231
|
name: 'evaluate.navigationComponent',
|
|
3230
3232
|
hideWhenDisabled: true
|
|
@@ -3236,8 +3238,8 @@ const toolbarButtons = [
|
|
|
3236
3238
|
uiType: 'ohif.windowLevelMenuEmbedded',
|
|
3237
3239
|
props: {
|
|
3238
3240
|
icon: 'WindowLevel',
|
|
3239
|
-
label: i18next
|
|
3240
|
-
tooltip: i18next
|
|
3241
|
+
label: i18next["default"].t('Buttons:Window Level'),
|
|
3242
|
+
tooltip: i18next["default"].t('Buttons:Adjust window/level presets and customize image contrast settings'),
|
|
3241
3243
|
evaluate: {
|
|
3242
3244
|
name: 'evaluate.windowLevelMenuEmbedded',
|
|
3243
3245
|
hideWhenDisabled: true
|
|
@@ -3249,8 +3251,8 @@ const toolbarButtons = [
|
|
|
3249
3251
|
uiType: 'ohif.trackingStatus',
|
|
3250
3252
|
props: {
|
|
3251
3253
|
icon: 'TrackingStatus',
|
|
3252
|
-
label: i18next
|
|
3253
|
-
tooltip: i18next
|
|
3254
|
+
label: i18next["default"].t('Buttons:Tracking Status'),
|
|
3255
|
+
tooltip: i18next["default"].t('Buttons:View and manage tracking status of measurements and annotations'),
|
|
3254
3256
|
evaluate: {
|
|
3255
3257
|
name: 'evaluate.trackingStatus',
|
|
3256
3258
|
hideWhenDisabled: true
|
|
@@ -3262,8 +3264,8 @@ const toolbarButtons = [
|
|
|
3262
3264
|
uiType: 'ohif.toolButton',
|
|
3263
3265
|
props: {
|
|
3264
3266
|
icon: 'tool-length',
|
|
3265
|
-
label: i18next
|
|
3266
|
-
tooltip: i18next
|
|
3267
|
+
label: i18next["default"].t('Buttons:Length'),
|
|
3268
|
+
tooltip: i18next["default"].t('Buttons:Length Tool'),
|
|
3267
3269
|
commands: setToolActiveToolbar,
|
|
3268
3270
|
evaluate: 'evaluate.cornerstoneTool'
|
|
3269
3271
|
}
|
|
@@ -3273,8 +3275,8 @@ const toolbarButtons = [
|
|
|
3273
3275
|
uiType: 'ohif.toolButton',
|
|
3274
3276
|
props: {
|
|
3275
3277
|
icon: 'tool-bidirectional',
|
|
3276
|
-
label: i18next
|
|
3277
|
-
tooltip: i18next
|
|
3278
|
+
label: i18next["default"].t('Buttons:Bidirectional'),
|
|
3279
|
+
tooltip: i18next["default"].t('Buttons:Bidirectional Tool'),
|
|
3278
3280
|
commands: setToolActiveToolbar,
|
|
3279
3281
|
evaluate: 'evaluate.cornerstoneTool'
|
|
3280
3282
|
}
|
|
@@ -3284,8 +3286,8 @@ const toolbarButtons = [
|
|
|
3284
3286
|
uiType: 'ohif.toolButton',
|
|
3285
3287
|
props: {
|
|
3286
3288
|
icon: 'tool-annotate',
|
|
3287
|
-
label: i18next
|
|
3288
|
-
tooltip: i18next
|
|
3289
|
+
label: i18next["default"].t('Buttons:Arrow Annotate'),
|
|
3290
|
+
tooltip: i18next["default"].t('Buttons:Arrow Annotate Tool'),
|
|
3289
3291
|
commands: setToolActiveToolbar,
|
|
3290
3292
|
evaluate: 'evaluate.cornerstoneTool'
|
|
3291
3293
|
}
|
|
@@ -3295,8 +3297,8 @@ const toolbarButtons = [
|
|
|
3295
3297
|
uiType: 'ohif.toolButton',
|
|
3296
3298
|
props: {
|
|
3297
3299
|
icon: 'tool-ellipse',
|
|
3298
|
-
label: i18next
|
|
3299
|
-
tooltip: i18next
|
|
3300
|
+
label: i18next["default"].t('Buttons:Ellipse'),
|
|
3301
|
+
tooltip: i18next["default"].t('Buttons:Ellipse Tool'),
|
|
3300
3302
|
commands: setToolActiveToolbar,
|
|
3301
3303
|
evaluate: 'evaluate.cornerstoneTool'
|
|
3302
3304
|
}
|
|
@@ -3306,7 +3308,7 @@ const toolbarButtons = [
|
|
|
3306
3308
|
uiType: 'ohif.toolButton',
|
|
3307
3309
|
props: {
|
|
3308
3310
|
icon: 'tool-zoom',
|
|
3309
|
-
label: i18next
|
|
3311
|
+
label: i18next["default"].t('Buttons:Zoom'),
|
|
3310
3312
|
commands: setToolActiveToolbar,
|
|
3311
3313
|
evaluate: 'evaluate.cornerstoneTool'
|
|
3312
3314
|
}
|
|
@@ -3316,7 +3318,7 @@ const toolbarButtons = [
|
|
|
3316
3318
|
uiType: 'ohif.toolButton',
|
|
3317
3319
|
props: {
|
|
3318
3320
|
icon: 'tool-window-level',
|
|
3319
|
-
label: i18next
|
|
3321
|
+
label: i18next["default"].t('Buttons:Window Level'),
|
|
3320
3322
|
commands: setToolActiveToolbar,
|
|
3321
3323
|
evaluate: 'evaluate.cornerstoneTool'
|
|
3322
3324
|
}
|
|
@@ -3326,7 +3328,7 @@ const toolbarButtons = [
|
|
|
3326
3328
|
uiType: 'ohif.toolButton',
|
|
3327
3329
|
props: {
|
|
3328
3330
|
icon: 'tool-crosshair',
|
|
3329
|
-
label: i18next
|
|
3331
|
+
label: i18next["default"].t('Buttons:Crosshairs'),
|
|
3330
3332
|
commands: setToolActiveToolbar,
|
|
3331
3333
|
evaluate: 'evaluate.cornerstoneTool'
|
|
3332
3334
|
}
|
|
@@ -3336,7 +3338,7 @@ const toolbarButtons = [
|
|
|
3336
3338
|
uiType: 'ohif.toolButton',
|
|
3337
3339
|
props: {
|
|
3338
3340
|
icon: 'tool-move',
|
|
3339
|
-
label: i18next
|
|
3341
|
+
label: i18next["default"].t('Buttons:Pan'),
|
|
3340
3342
|
commands: setToolActiveToolbar,
|
|
3341
3343
|
evaluate: 'evaluate.cornerstoneTool'
|
|
3342
3344
|
}
|
|
@@ -3346,13 +3348,13 @@ const toolbarButtons = [
|
|
|
3346
3348
|
uiType: 'ohif.toolBoxButton',
|
|
3347
3349
|
props: {
|
|
3348
3350
|
icon: 'tool-create-threshold',
|
|
3349
|
-
label: i18next
|
|
3351
|
+
label: i18next["default"].t('Buttons:Rectangle ROI Threshold'),
|
|
3350
3352
|
commands: setToolActiveToolbar,
|
|
3351
3353
|
evaluate: [
|
|
3352
3354
|
'evaluate.cornerstone.segmentation',
|
|
3353
3355
|
{
|
|
3354
3356
|
name: 'evaluate.cornerstoneTool',
|
|
3355
|
-
disabledText: i18next
|
|
3357
|
+
disabledText: i18next["default"].t('Buttons:Select the PT Axial to enable this tool')
|
|
3356
3358
|
}
|
|
3357
3359
|
],
|
|
3358
3360
|
options: 'tmtv.RectangleROIThresholdOptions'
|
|
@@ -3363,7 +3365,7 @@ const toolbarButtons = [
|
|
|
3363
3365
|
uiType: 'ohif.toolButton',
|
|
3364
3366
|
props: {
|
|
3365
3367
|
icon: 'icon-tool-brush',
|
|
3366
|
-
label: i18next
|
|
3368
|
+
label: i18next["default"].t('Buttons:Brush'),
|
|
3367
3369
|
evaluate: [
|
|
3368
3370
|
{
|
|
3369
3371
|
name: 'evaluate.cornerstone.segmentation',
|
|
@@ -3371,7 +3373,7 @@ const toolbarButtons = [
|
|
|
3371
3373
|
'CircularBrush',
|
|
3372
3374
|
'SphereBrush'
|
|
3373
3375
|
],
|
|
3374
|
-
disabledText: i18next
|
|
3376
|
+
disabledText: i18next["default"].t('Buttons:Create new segmentation to enable this tool.')
|
|
3375
3377
|
},
|
|
3376
3378
|
{
|
|
3377
3379
|
name: 'evaluate.cornerstone.segmentation.synchronizeDrawingRadius',
|
|
@@ -3380,7 +3382,7 @@ const toolbarButtons = [
|
|
|
3380
3382
|
],
|
|
3381
3383
|
options: [
|
|
3382
3384
|
{
|
|
3383
|
-
name: i18next
|
|
3385
|
+
name: i18next["default"].t('Buttons:Radius (mm)'),
|
|
3384
3386
|
id: 'brush-radius',
|
|
3385
3387
|
type: 'range',
|
|
3386
3388
|
explicitRunOnly: true,
|
|
@@ -3399,18 +3401,18 @@ const toolbarButtons = [
|
|
|
3399
3401
|
}
|
|
3400
3402
|
},
|
|
3401
3403
|
{
|
|
3402
|
-
name: i18next
|
|
3404
|
+
name: i18next["default"].t('Buttons:Shape'),
|
|
3403
3405
|
type: 'radio',
|
|
3404
3406
|
id: 'brush-mode',
|
|
3405
3407
|
value: 'CircularBrush',
|
|
3406
3408
|
values: [
|
|
3407
3409
|
{
|
|
3408
3410
|
value: 'CircularBrush',
|
|
3409
|
-
label: i18next
|
|
3411
|
+
label: i18next["default"].t('Buttons:Circle')
|
|
3410
3412
|
},
|
|
3411
3413
|
{
|
|
3412
3414
|
value: 'SphereBrush',
|
|
3413
|
-
label: i18next
|
|
3415
|
+
label: i18next["default"].t('Buttons:Sphere')
|
|
3414
3416
|
}
|
|
3415
3417
|
],
|
|
3416
3418
|
commands: 'setToolActiveToolbar'
|
|
@@ -3423,7 +3425,7 @@ const toolbarButtons = [
|
|
|
3423
3425
|
uiType: 'ohif.toolButton',
|
|
3424
3426
|
props: {
|
|
3425
3427
|
icon: 'icon-tool-eraser',
|
|
3426
|
-
label: i18next
|
|
3428
|
+
label: i18next["default"].t('Buttons:Eraser'),
|
|
3427
3429
|
evaluate: [
|
|
3428
3430
|
{
|
|
3429
3431
|
name: 'evaluate.cornerstone.segmentation',
|
|
@@ -3439,7 +3441,7 @@ const toolbarButtons = [
|
|
|
3439
3441
|
],
|
|
3440
3442
|
options: [
|
|
3441
3443
|
{
|
|
3442
|
-
name: i18next
|
|
3444
|
+
name: i18next["default"].t('Buttons:Radius (mm)'),
|
|
3443
3445
|
id: 'eraser-radius',
|
|
3444
3446
|
type: 'range',
|
|
3445
3447
|
explicitRunOnly: true,
|
|
@@ -3458,18 +3460,18 @@ const toolbarButtons = [
|
|
|
3458
3460
|
}
|
|
3459
3461
|
},
|
|
3460
3462
|
{
|
|
3461
|
-
name: i18next
|
|
3463
|
+
name: i18next["default"].t('Buttons:Shape'),
|
|
3462
3464
|
type: 'radio',
|
|
3463
3465
|
id: 'eraser-mode',
|
|
3464
3466
|
value: 'CircularEraser',
|
|
3465
3467
|
values: [
|
|
3466
3468
|
{
|
|
3467
3469
|
value: 'CircularEraser',
|
|
3468
|
-
label: i18next
|
|
3470
|
+
label: i18next["default"].t('Buttons:Circle')
|
|
3469
3471
|
},
|
|
3470
3472
|
{
|
|
3471
3473
|
value: 'SphereEraser',
|
|
3472
|
-
label: i18next
|
|
3474
|
+
label: i18next["default"].t('Buttons:Sphere')
|
|
3473
3475
|
}
|
|
3474
3476
|
],
|
|
3475
3477
|
commands: 'setToolActiveToolbar'
|
|
@@ -3482,7 +3484,7 @@ const toolbarButtons = [
|
|
|
3482
3484
|
uiType: 'ohif.toolButton',
|
|
3483
3485
|
props: {
|
|
3484
3486
|
icon: 'icon-tool-threshold',
|
|
3485
|
-
label: i18next
|
|
3487
|
+
label: i18next["default"].t('Buttons:Threshold Tool'),
|
|
3486
3488
|
evaluate: [
|
|
3487
3489
|
{
|
|
3488
3490
|
name: 'evaluate.cornerstone.segmentation',
|
|
@@ -3499,7 +3501,7 @@ const toolbarButtons = [
|
|
|
3499
3501
|
],
|
|
3500
3502
|
options: [
|
|
3501
3503
|
{
|
|
3502
|
-
name: i18next
|
|
3504
|
+
name: i18next["default"].t('Buttons:Radius (mm)'),
|
|
3503
3505
|
id: 'threshold-radius',
|
|
3504
3506
|
type: 'range',
|
|
3505
3507
|
explicitRunOnly: true,
|
|
@@ -3519,18 +3521,18 @@ const toolbarButtons = [
|
|
|
3519
3521
|
}
|
|
3520
3522
|
},
|
|
3521
3523
|
{
|
|
3522
|
-
name: i18next
|
|
3524
|
+
name: i18next["default"].t('Buttons:Threshold'),
|
|
3523
3525
|
type: 'radio',
|
|
3524
3526
|
id: 'dynamic-mode',
|
|
3525
3527
|
value: 'ThresholdRange',
|
|
3526
3528
|
values: [
|
|
3527
3529
|
{
|
|
3528
3530
|
value: 'ThresholdDynamic',
|
|
3529
|
-
label: i18next
|
|
3531
|
+
label: i18next["default"].t('Buttons:Dynamic')
|
|
3530
3532
|
},
|
|
3531
3533
|
{
|
|
3532
3534
|
value: 'ThresholdRange',
|
|
3533
|
-
label: i18next
|
|
3535
|
+
label: i18next["default"].t('Buttons:Range')
|
|
3534
3536
|
}
|
|
3535
3537
|
],
|
|
3536
3538
|
commands: ({ value, commandsManager })=>{
|
|
@@ -3546,25 +3548,25 @@ const toolbarButtons = [
|
|
|
3546
3548
|
}
|
|
3547
3549
|
},
|
|
3548
3550
|
{
|
|
3549
|
-
name: i18next
|
|
3551
|
+
name: i18next["default"].t('Buttons:Shape'),
|
|
3550
3552
|
type: 'radio',
|
|
3551
3553
|
id: 'eraser-mode',
|
|
3552
3554
|
value: 'ThresholdCircularBrush',
|
|
3553
3555
|
values: [
|
|
3554
3556
|
{
|
|
3555
3557
|
value: 'ThresholdCircularBrush',
|
|
3556
|
-
label: i18next
|
|
3558
|
+
label: i18next["default"].t('Buttons:Circle')
|
|
3557
3559
|
},
|
|
3558
3560
|
{
|
|
3559
3561
|
value: 'ThresholdSphereBrush',
|
|
3560
|
-
label: i18next
|
|
3562
|
+
label: i18next["default"].t('Buttons:Sphere')
|
|
3561
3563
|
}
|
|
3562
3564
|
],
|
|
3563
3565
|
condition: ({ options })=>options.find((option)=>option.id === 'dynamic-mode').value === 'ThresholdRange',
|
|
3564
3566
|
commands: 'setToolActiveToolbar'
|
|
3565
3567
|
},
|
|
3566
3568
|
{
|
|
3567
|
-
name: i18next
|
|
3569
|
+
name: i18next["default"].t('ROIThresholdConfiguration:ThresholdRange'),
|
|
3568
3570
|
type: 'double-range',
|
|
3569
3571
|
id: 'threshold-range',
|
|
3570
3572
|
min: 0,
|
|
@@ -3593,8 +3595,8 @@ const toolbarButtons = [
|
|
|
3593
3595
|
uiType: 'ohif.dataOverlayMenu',
|
|
3594
3596
|
props: {
|
|
3595
3597
|
icon: 'ViewportViews',
|
|
3596
|
-
label: i18next
|
|
3597
|
-
tooltip: i18next
|
|
3598
|
+
label: i18next["default"].t('Buttons:Data Overlay'),
|
|
3599
|
+
tooltip: i18next["default"].t('Buttons:Configure data overlay options and manage foreground/background display sets'),
|
|
3598
3600
|
evaluate: 'evaluate.dataOverlayMenu'
|
|
3599
3601
|
}
|
|
3600
3602
|
},
|
|
@@ -3603,8 +3605,8 @@ const toolbarButtons = [
|
|
|
3603
3605
|
uiType: 'ohif.orientationMenu',
|
|
3604
3606
|
props: {
|
|
3605
3607
|
icon: 'OrientationSwitch',
|
|
3606
|
-
label: i18next
|
|
3607
|
-
tooltip: i18next
|
|
3608
|
+
label: i18next["default"].t('Buttons:Orientation'),
|
|
3609
|
+
tooltip: i18next["default"].t('Buttons:Change viewport orientation between axial, sagittal, coronal and reformat planes'),
|
|
3608
3610
|
evaluate: {
|
|
3609
3611
|
name: 'evaluate.orientationMenu' // hideWhenDisabled: true,
|
|
3610
3612
|
}
|
|
@@ -3615,8 +3617,8 @@ const toolbarButtons = [
|
|
|
3615
3617
|
uiType: 'ohif.windowLevelMenu',
|
|
3616
3618
|
props: {
|
|
3617
3619
|
icon: 'WindowLevel',
|
|
3618
|
-
label: i18next
|
|
3619
|
-
tooltip: i18next
|
|
3620
|
+
label: i18next["default"].t('Buttons:Window Level'),
|
|
3621
|
+
tooltip: i18next["default"].t('Buttons:Adjust window/level presets and customize image contrast settings'),
|
|
3620
3622
|
evaluate: 'evaluate.windowLevelMenu'
|
|
3621
3623
|
}
|
|
3622
3624
|
},
|
|
@@ -3625,8 +3627,8 @@ const toolbarButtons = [
|
|
|
3625
3627
|
uiType: 'ohif.voiManualControlMenu',
|
|
3626
3628
|
props: {
|
|
3627
3629
|
icon: 'WindowLevelAdvanced',
|
|
3628
|
-
label: i18next
|
|
3629
|
-
tooltip: i18next
|
|
3630
|
+
label: i18next["default"].t('Buttons:Advanced Window Level'),
|
|
3631
|
+
tooltip: i18next["default"].t('Buttons:Advanced window/level settings with manual controls and presets'),
|
|
3630
3632
|
evaluate: 'evaluate.voiManualControlMenu'
|
|
3631
3633
|
}
|
|
3632
3634
|
},
|
|
@@ -3635,8 +3637,8 @@ const toolbarButtons = [
|
|
|
3635
3637
|
uiType: 'ohif.thresholdMenu',
|
|
3636
3638
|
props: {
|
|
3637
3639
|
icon: 'Threshold',
|
|
3638
|
-
label: i18next
|
|
3639
|
-
tooltip: i18next
|
|
3640
|
+
label: i18next["default"].t('Buttons:Threshold'),
|
|
3641
|
+
tooltip: i18next["default"].t('Buttons:Image threshold settings'),
|
|
3640
3642
|
evaluate: {
|
|
3641
3643
|
name: 'evaluate.thresholdMenu',
|
|
3642
3644
|
hideWhenDisabled: true
|
|
@@ -3648,8 +3650,8 @@ const toolbarButtons = [
|
|
|
3648
3650
|
uiType: 'ohif.opacityMenu',
|
|
3649
3651
|
props: {
|
|
3650
3652
|
icon: 'Opacity',
|
|
3651
|
-
label: i18next
|
|
3652
|
-
tooltip: i18next
|
|
3653
|
+
label: i18next["default"].t('Buttons:Opacity'),
|
|
3654
|
+
tooltip: i18next["default"].t('Buttons:Image opacity settings'),
|
|
3653
3655
|
evaluate: {
|
|
3654
3656
|
name: 'evaluate.opacityMenu',
|
|
3655
3657
|
hideWhenDisabled: true
|