@ohif/app 3.7.0-beta.1 → 3.7.0-beta.100

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.
Files changed (66) hide show
  1. package/dist/{917.bundle.06cb87cf1c42b9f20bd2.js → 12.bundle.34050abb042540a90a3a.js} +6 -6
  2. package/dist/{295.bundle.957b1159fec14b9199a1.js → 125.bundle.253395f320b72180da63.js} +6 -6
  3. package/dist/{351.bundle.2d4bc19d8b493879dbbe.js → 181.bundle.169383e9b1a0358b44e8.js} +227 -205
  4. package/dist/{351.css → 181.css} +1 -1
  5. package/dist/{744.bundle.392a124e4ee20ad6a657.js → 19.bundle.eef637102334f1832ba9.js} +246 -385
  6. package/dist/{606.bundle.5d876f5f3dd8287f0a28.js → 202.bundle.96bbb4547a346fe3921f.js} +1420 -750
  7. package/dist/{926.bundle.dbc9d0e591cb9217fda2.js → 220.bundle.f7e1c96c94245e70f2be.js} +990 -400
  8. package/dist/221.bundle.0b9f7401294213262852.js +1723 -0
  9. package/dist/221.css +2 -0
  10. package/dist/{664.bundle.09abae984223969d1bde.js → 23.bundle.e008ad788170f2ed5569.js} +5 -6
  11. package/dist/{976.bundle.2305e2f8244de8ccbaee.js → 236.bundle.7768b3e29b1fd618b9ec.js} +89 -105
  12. package/dist/{55.bundle.5f5e5ef9087b0beee35c.js → 250.bundle.8084960e3318cda37317.js} +52 -36
  13. package/dist/{973.bundle.a51bb5b329263c9e75e2.js → 281.bundle.39cb630582cf8114fd5e.js} +18 -14
  14. package/dist/{82.bundle.da0c036b2e572719dbc5.js → 342.bundle.6edc7ac022b4218ec99f.js} +1776 -482
  15. package/dist/{404.bundle.902c664e3e581335a5d2.js → 359.bundle.a8f6cf2f90fe05fc346d.js} +46 -131
  16. package/dist/{192.bundle.4fee0d418ae32bb7ab30.js → 370.bundle.4e1276530ba7757347f5.js} +113 -99
  17. package/dist/{790.bundle.aa7a8bebec3483d90f3f.js → 410.bundle.5a330214c0c31cbf2551.js} +11 -9
  18. package/dist/{151.bundle.31ea35044218837bf73f.js → 417.bundle.af0a207c29b109f84159.js} +49 -17
  19. package/dist/{569.bundle.0ed8d8178ffd43fe1c34.js → 451.bundle.9fd36f52ff69594f0669.js} +98 -107
  20. package/dist/{581.bundle.360d26f97b37da8faec3.js → 471.bundle.b3d77b83b1593c09a504.js} +78 -98
  21. package/dist/{199.bundle.290ef76d4ab8358e29bb.js → 506.bundle.ac385e382f79bbf4f306.js} +11 -14
  22. package/dist/{531.bundle.2a82fb1d69e5b57cc72b.js → 530.bundle.a03b6f942ace3e1baa1e.js} +726 -447
  23. package/dist/579.css +1 -0
  24. package/dist/{935.bundle.deeffff0e4f7b528e3c3.js → 604.bundle.a51f83e64004bca5f497.js} +2 -3
  25. package/dist/613.bundle.f75fd669ddfe4ecf9c1b.js +532 -0
  26. package/dist/{984.bundle.4e002ef9b3468bddb68b.js → 663.bundle.3863ac49f85320c8ca96.js} +68 -38
  27. package/dist/{205.bundle.b5a473c200dcf2bbcdb4.js → 686.bundle.dccef1f36e4bc79bcc48.js} +6 -6
  28. package/dist/{50.bundle.03f455d441f2138ce49e.js → 687.bundle.ebd1260565c31ab9ad08.js} +218 -9
  29. package/dist/{331.bundle.bd0c13931a21d53086c9.js → 743.bundle.4bfe6e562ffb2c22708f.js} +26281 -21326
  30. package/dist/{728.bundle.d13856835357400fef82.js → 774.bundle.7528cba56a1407357144.js} +95 -64
  31. package/dist/{381.bundle.0905e683605fcbc0895f.js → 775.bundle.2285e7e0e67878948c0d.js} +16 -16
  32. package/dist/{283.bundle.7cf0fabc69d49a8a2c5d.js → 782.bundle.8c17030f76b75035564c.js} +123 -80
  33. package/dist/{642.bundle.89f15ef57fbad2a1019b.js → 814.bundle.cc0ed4fc75cb16e34f02.js} +6 -6
  34. package/dist/{707.bundle.832f50366089fd23e93b.js → 82.bundle.7a89cd8b81eb7e1e5c66.js} +1187 -808
  35. package/dist/{799.bundle.ca18bdf4abe4d9abea26.js → 822.bundle.0545d6dbb49515aa04ee.js} +81 -34
  36. package/dist/831.bundle.83658f62fcc769043605.js +16700 -0
  37. package/dist/{953.bundle.9e3a7225f07336bfcb41.js → 886.bundle.4b3a7f2079d085fdbcb3.js} +34 -29
  38. package/dist/945.min.worker.js +1 -1
  39. package/dist/945.min.worker.js.map +1 -1
  40. package/dist/{270.bundle.4564621556b0f963a004.js → 957.bundle.71558794566041f37a92.js} +7110 -997
  41. package/dist/{208.bundle.29fe1842c33000edc75d.js → 99.bundle.c6876aaaa3ff2f1b08a1.js} +86 -105
  42. package/dist/_redirects +1 -1
  43. package/dist/app-config.js +35 -17
  44. package/dist/app.bundle.css +13 -12
  45. package/dist/{app.bundle.3ad961046deb5f47678a.js → app.bundle.dc0e89948c4f4568fe20.js} +73720 -68191
  46. package/dist/assets/yandex-browser-manifest.json +1 -1
  47. package/dist/cornerstoneDICOMImageLoader.min.js +1 -1
  48. package/dist/cornerstoneDICOMImageLoader.min.js.map +1 -1
  49. package/dist/{dicom-microscopy-viewer.bundle.aa60bdf008c32c39cfd7.js → dicom-microscopy-viewer.bundle.2c146384eb9466d02ff8.js} +5 -4
  50. package/dist/es6-shim.min.js +3569 -2
  51. package/dist/google.js +8 -7
  52. package/dist/index.html +2 -1
  53. package/dist/{index.worker.1c69152d710fa7b84bce.worker.js → index.worker.e62ecca63f1a2e124230.worker.js} +2 -2
  54. package/dist/index.worker.e62ecca63f1a2e124230.worker.js.map +1 -0
  55. package/dist/init-service-worker.js +3 -5
  56. package/dist/oidc-client.min.js +10857 -39
  57. package/dist/polyfill.min.js +184 -1
  58. package/dist/silent-refresh.html +18 -9
  59. package/dist/sw.js +1 -1
  60. package/package.json +20 -22
  61. package/dist/616.bundle.b76c70aeeed8b142593c.js +0 -685
  62. package/dist/780.bundle.fd0f13dc92e9caa0581e.js +0 -4769
  63. package/dist/index.worker.1c69152d710fa7b84bce.worker.js.map +0 -1
  64. /package/dist/{806.css → 19.css} +0 -0
  65. /package/dist/{55.css → 250.css} +0 -0
  66. /package/dist/{707.css → 82.css} +0 -0
@@ -1,6 +1,6 @@
1
- (globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[283],{
1
+ (self["webpackChunk"] = self["webpackChunk"] || []).push([[782],{
2
2
 
3
- /***/ 66135:
3
+ /***/ 43851:
4
4
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
5
5
 
6
6
  "use strict";
@@ -116,7 +116,10 @@ const ptAXIAL = {
116
116
  type: 'voi',
117
117
  id: 'ptFusionWLSync',
118
118
  source: true,
119
- target: false
119
+ target: false,
120
+ options: {
121
+ syncInvertState: false
122
+ }
120
123
  }]
121
124
  },
122
125
  displaySets: [{
@@ -150,7 +153,10 @@ const ptSAGITTAL = {
150
153
  type: 'voi',
151
154
  id: 'ptFusionWLSync',
152
155
  source: true,
153
- target: false
156
+ target: false,
157
+ options: {
158
+ syncInvertState: false
159
+ }
154
160
  }]
155
161
  },
156
162
  displaySets: [{
@@ -184,7 +190,10 @@ const ptCORONAL = {
184
190
  type: 'voi',
185
191
  id: 'ptFusionWLSync',
186
192
  source: true,
187
- target: false
193
+ target: false,
194
+ options: {
195
+ syncInvertState: false
196
+ }
188
197
  }]
189
198
  },
190
199
  displaySets: [{
@@ -227,25 +236,34 @@ const fusionAXIAL = {
227
236
  type: 'voi',
228
237
  id: 'ptFusionWLSync',
229
238
  source: false,
230
- target: true
239
+ target: true,
240
+ options: {
241
+ syncInvertState: false
242
+ }
231
243
  }]
232
244
  },
233
245
  displaySets: [{
234
246
  id: 'ctDisplaySet'
235
247
  }, {
248
+ id: 'ptDisplaySet',
236
249
  options: {
237
250
  colormap: {
238
251
  name: 'hsv',
239
- opacityMapping: [{
252
+ opacity: [{
253
+ value: 0,
254
+ opacity: 0
255
+ }, {
240
256
  value: 0.1,
241
257
  opacity: 0.9
258
+ }, {
259
+ value: 1,
260
+ opacity: 0.95
242
261
  }]
243
262
  },
244
263
  voi: {
245
264
  custom: 'getPTVOIRange'
246
265
  }
247
- },
248
- id: 'ptDisplaySet'
266
+ }
249
267
  }]
250
268
  };
251
269
  const fusionSAGITTAL = {
@@ -277,25 +295,34 @@ const fusionSAGITTAL = {
277
295
  type: 'voi',
278
296
  id: 'ptFusionWLSync',
279
297
  source: false,
280
- target: true
298
+ target: true,
299
+ options: {
300
+ syncInvertState: false
301
+ }
281
302
  }]
282
303
  },
283
304
  displaySets: [{
284
305
  id: 'ctDisplaySet'
285
306
  }, {
307
+ id: 'ptDisplaySet',
286
308
  options: {
287
309
  colormap: {
288
310
  name: 'hsv',
289
- opacityMapping: [{
311
+ opacity: [{
312
+ value: 0,
313
+ opacity: 0
314
+ }, {
290
315
  value: 0.1,
291
316
  opacity: 0.9
317
+ }, {
318
+ value: 1,
319
+ opacity: 0.95
292
320
  }]
293
321
  },
294
322
  voi: {
295
323
  custom: 'getPTVOIRange'
296
324
  }
297
- },
298
- id: 'ptDisplaySet'
325
+ }
299
326
  }]
300
327
  };
301
328
  const fusionCORONAL = {
@@ -327,25 +354,34 @@ const fusionCORONAL = {
327
354
  type: 'voi',
328
355
  id: 'ptFusionWLSync',
329
356
  source: false,
330
- target: true
357
+ target: true,
358
+ options: {
359
+ syncInvertState: false
360
+ }
331
361
  }]
332
362
  },
333
363
  displaySets: [{
334
364
  id: 'ctDisplaySet'
335
365
  }, {
366
+ id: 'ptDisplaySet',
336
367
  options: {
337
368
  colormap: {
338
369
  name: 'hsv',
339
- opacityMapping: [{
370
+ opacity: [{
371
+ value: 0,
372
+ opacity: 0
373
+ }, {
340
374
  value: 0.1,
341
375
  opacity: 0.9
376
+ }, {
377
+ value: 1,
378
+ opacity: 0.95
342
379
  }]
343
380
  },
344
381
  voi: {
345
382
  custom: 'getPTVOIRange'
346
383
  }
347
- },
348
- id: 'ptDisplaySet'
384
+ }
349
385
  }]
350
386
  };
351
387
  const mipSAGITTAL = {
@@ -364,7 +400,10 @@ const mipSAGITTAL = {
364
400
  type: 'voi',
365
401
  id: 'ptFusionWLSync',
366
402
  source: true,
367
- target: false
403
+ target: false,
404
+ options: {
405
+ syncInvertState: false
406
+ }
368
407
  }],
369
408
  // Custom props can be used to set custom properties which extensions
370
409
  // can react on.
@@ -558,7 +597,6 @@ const stage4 = {
558
597
  const ptCT = {
559
598
  id: '@ohif/extension-tmtv.hangingProtocolModule.ptCT',
560
599
  locked: true,
561
- hasUpdatedPriorsInformation: false,
562
600
  name: 'Default',
563
601
  createdDate: '2021-02-23T19:22:08.894Z',
564
602
  modifiedDate: '2022-10-04T19:22:08.894Z',
@@ -654,16 +692,16 @@ function getHangingProtocolModule() {
654
692
  }
655
693
  /* harmony default export */ const src_getHangingProtocolModule = (getHangingProtocolModule);
656
694
  // EXTERNAL MODULE: ../../../node_modules/react/index.js
657
- var react = __webpack_require__(32735);
695
+ var react = __webpack_require__(43001);
658
696
  // EXTERNAL MODULE: ../../../node_modules/prop-types/index.js
659
- var prop_types = __webpack_require__(60216);
697
+ var prop_types = __webpack_require__(3827);
660
698
  var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types);
661
- // EXTERNAL MODULE: ../../ui/src/index.js + 449 modules
662
- var src = __webpack_require__(43803);
663
- // EXTERNAL MODULE: ../../core/src/index.ts + 101 modules
664
- var core_src = __webpack_require__(48501);
699
+ // EXTERNAL MODULE: ../../ui/src/index.js + 485 modules
700
+ var src = __webpack_require__(71783);
701
+ // EXTERNAL MODULE: ../../core/src/index.ts + 65 modules
702
+ var core_src = __webpack_require__(71771);
665
703
  // EXTERNAL MODULE: ../../../node_modules/react-i18next/dist/es/index.js + 15 modules
666
- var es = __webpack_require__(21572);
704
+ var es = __webpack_require__(69190);
667
705
  ;// CONCATENATED MODULE: ../../../extensions/tmtv/src/Panels/PanelPetSUV.tsx
668
706
 
669
707
 
@@ -807,11 +845,11 @@ function PanelPetSUV(_ref) {
807
845
  displaySetService.setDisplaySetMetadataInvalidated(ptDisplaySet.displaySetInstanceUID);
808
846
  }
809
847
  return /*#__PURE__*/react.createElement("div", {
810
- className: "overflow-x-hidden overflow-y-auto invisible-scrollbar"
848
+ className: "invisible-scrollbar overflow-y-auto overflow-x-hidden"
811
849
  }, /*#__PURE__*/react.createElement("div", {
812
850
  className: "flex flex-col"
813
851
  }, /*#__PURE__*/react.createElement("div", {
814
- className: "flex flex-col p-4 space-y-4 bg-primary-dark"
852
+ className: "bg-primary-dark flex flex-col space-y-4 p-4"
815
853
  }, /*#__PURE__*/react.createElement(src/* Input */.II, {
816
854
  label: t('Patient Sex'),
817
855
  labelClassName: "text-white mb-2",
@@ -875,7 +913,6 @@ function PanelPetSUV(_ref) {
875
913
  value: metadata.SeriesTime || '',
876
914
  onChange: () => {}
877
915
  }), /*#__PURE__*/react.createElement(src/* Button */.zx, {
878
- color: "primary",
879
916
  onClick: updateMetadata
880
917
  }, "Reload Data"))));
881
918
  }
@@ -960,28 +997,24 @@ function segmentationItemEditHandler(_ref) {
960
997
  });
961
998
  }
962
999
  };
963
- return /*#__PURE__*/react.createElement("div", {
964
- className: "p-4 bg-primary-dark"
965
- }, /*#__PURE__*/react.createElement(src/* Input */.II, {
1000
+ return /*#__PURE__*/react.createElement(src/* Input */.II, {
966
1001
  autoFocus: true,
967
- className: "mt-2 bg-black border-primary-main",
1002
+ className: "border-primary-main bg-black",
968
1003
  type: "text",
969
1004
  containerClassName: "mr-2",
970
1005
  value: value.label,
971
1006
  onChange: onChangeHandler,
972
1007
  onKeyPress: onKeyPressHandler
973
- }));
1008
+ });
974
1009
  },
975
- actions: [
976
- // temp: swap button types until colors are updated
977
- {
1010
+ actions: [{
978
1011
  id: 'cancel',
979
1012
  text: 'Cancel',
980
- type: 'primary'
1013
+ type: src/* ButtonEnums.type */.LZ.dt.secondary
981
1014
  }, {
982
1015
  id: 'save',
983
1016
  text: 'Save',
984
- type: 'secondary'
1017
+ type: src/* ButtonEnums.type */.LZ.dt.primary
985
1018
  }],
986
1019
  onSubmit: onSubmitHandler
987
1020
  }
@@ -1003,11 +1036,11 @@ function ExportReports(_ref) {
1003
1036
  t
1004
1037
  } = (0,es/* useTranslation */.$G)('PanelSUVExport');
1005
1038
  return /*#__PURE__*/react.createElement(react.Fragment, null, segmentations?.length ? /*#__PURE__*/react.createElement("div", {
1006
- className: "flex justify-center mt-4 space-x-2"
1007
- }, /*#__PURE__*/react.createElement(src/* ButtonGroup */.hE, {
1039
+ className: "mt-4 flex justify-center space-x-2"
1040
+ }, /*#__PURE__*/react.createElement(src/* LegacyButtonGroup */.HO, {
1008
1041
  color: "black",
1009
1042
  size: "inherit"
1010
- }, /*#__PURE__*/react.createElement(src/* Button */.zx, {
1043
+ }, /*#__PURE__*/react.createElement(src/* LegacyButton */.mN, {
1011
1044
  className: "px-2 py-2 text-base",
1012
1045
  disabled: tmtvValue === null,
1013
1046
  onClick: () => {
@@ -1017,10 +1050,10 @@ function ExportReports(_ref) {
1017
1050
  config
1018
1051
  });
1019
1052
  }
1020
- }, t('Export CSV'))), /*#__PURE__*/react.createElement(src/* ButtonGroup */.hE, {
1053
+ }, t('Export CSV'))), /*#__PURE__*/react.createElement(src/* LegacyButtonGroup */.HO, {
1021
1054
  color: "black",
1022
1055
  size: "inherit"
1023
- }, /*#__PURE__*/react.createElement(src/* Button */.zx, {
1056
+ }, /*#__PURE__*/react.createElement(src/* LegacyButton */.mN, {
1024
1057
  className: "px-2 py-2 text-base",
1025
1058
  onClick: () => {
1026
1059
  commandsManager.runCommand('createTMTVRTReport');
@@ -1054,15 +1087,15 @@ function ROIThresholdConfiguration(_ref) {
1054
1087
  t
1055
1088
  } = (0,es/* useTranslation */.$G)('ROIThresholdConfiguration');
1056
1089
  return /*#__PURE__*/react.createElement("div", {
1057
- className: "flex flex-col px-4 space-y-4 bg-primary-dark py-2"
1090
+ className: "bg-primary-dark flex flex-col space-y-4 px-4 py-2"
1058
1091
  }, /*#__PURE__*/react.createElement("div", {
1059
1092
  className: "flex items-end space-x-2"
1060
1093
  }, /*#__PURE__*/react.createElement("div", {
1061
- className: "flex flex-col w-1/2"
1094
+ className: "flex w-1/2 flex-col"
1062
1095
  }, /*#__PURE__*/react.createElement(src/* Select */.Ph, {
1063
1096
  label: t('Strategy'),
1064
1097
  closeMenuOnSelect: true,
1065
- className: "mr-2 bg-black border-primary-main text-white ",
1098
+ className: "border-primary-main mr-2 bg-black text-white ",
1066
1099
  options: options,
1067
1100
  placeholder: options.find(option => option.value === config.strategy).placeHolder,
1068
1101
  value: config.strategy,
@@ -1079,13 +1112,13 @@ function ROIThresholdConfiguration(_ref) {
1079
1112
  }
1080
1113
  })), /*#__PURE__*/react.createElement("div", {
1081
1114
  className: "w-1/2"
1082
- }, /*#__PURE__*/react.createElement(src/* ButtonGroup */.hE, null, /*#__PURE__*/react.createElement(src/* Button */.zx, {
1115
+ }, /*#__PURE__*/react.createElement(src/* LegacyButtonGroup */.HO, null, /*#__PURE__*/react.createElement(src/* LegacyButton */.mN, {
1083
1116
  size: "initial",
1084
1117
  className: "px-2 py-2 text-base text-white",
1085
1118
  color: "primaryLight",
1086
1119
  variant: "outlined",
1087
1120
  onClick: () => runCommand('setStartSliceForROIThresholdTool')
1088
- }, t('Start')), /*#__PURE__*/react.createElement(src/* Button */.zx, {
1121
+ }, t('Start')), /*#__PURE__*/react.createElement(src/* LegacyButton */.mN, {
1089
1122
  size: "initial",
1090
1123
  color: "primaryLight",
1091
1124
  variant: "outlined",
@@ -1094,7 +1127,7 @@ function ROIThresholdConfiguration(_ref) {
1094
1127
  }, t('End'))))), config.strategy === ROI_STAT && /*#__PURE__*/react.createElement(src/* Input */.II, {
1095
1128
  label: t('Percentage of Max SUV'),
1096
1129
  labelClassName: "text-white",
1097
- className: "mt-2 bg-black border-primary-main",
1130
+ className: "border-primary-main mt-2 bg-black",
1098
1131
  type: "text",
1099
1132
  containerClassName: "mr-2",
1100
1133
  value: config.weight,
@@ -1107,7 +1140,7 @@ function ROIThresholdConfiguration(_ref) {
1107
1140
  });
1108
1141
  }
1109
1142
  }), config.strategy !== ROI_STAT && /*#__PURE__*/react.createElement("div", {
1110
- className: "text-sm mr-2"
1143
+ className: "mr-2 text-sm"
1111
1144
  }, /*#__PURE__*/react.createElement("table", null, /*#__PURE__*/react.createElement("tbody", null, /*#__PURE__*/react.createElement("tr", {
1112
1145
  className: "mt-2"
1113
1146
  }, /*#__PURE__*/react.createElement("td", {
@@ -1119,7 +1152,7 @@ function ROIThresholdConfiguration(_ref) {
1119
1152
  }))), /*#__PURE__*/react.createElement("tr", {
1120
1153
  className: "mt-2"
1121
1154
  }, /*#__PURE__*/react.createElement("td", {
1122
- className: "text-center pr-4 pt-2"
1155
+ className: "pr-4 pt-2 text-center"
1123
1156
  }, /*#__PURE__*/react.createElement(src/* Label */.__, {
1124
1157
  className: "text-white",
1125
1158
  text: "CT"
@@ -1128,7 +1161,7 @@ function ROIThresholdConfiguration(_ref) {
1128
1161
  }, /*#__PURE__*/react.createElement(src/* Input */.II, {
1129
1162
  label: t(''),
1130
1163
  labelClassName: "text-white",
1131
- className: "mt-2 bg-black border-primary-main",
1164
+ className: "border-primary-main mt-2 bg-black",
1132
1165
  type: "text",
1133
1166
  containerClassName: "mr-2",
1134
1167
  value: config.ctLower,
@@ -1143,7 +1176,7 @@ function ROIThresholdConfiguration(_ref) {
1143
1176
  }), /*#__PURE__*/react.createElement(src/* Input */.II, {
1144
1177
  label: t(''),
1145
1178
  labelClassName: "text-white",
1146
- className: "mt-2 bg-black border-primary-main",
1179
+ className: "border-primary-main mt-2 bg-black",
1147
1180
  type: "text",
1148
1181
  containerClassName: "mr-2",
1149
1182
  value: config.ctUpper,
@@ -1156,7 +1189,7 @@ function ROIThresholdConfiguration(_ref) {
1156
1189
  });
1157
1190
  }
1158
1191
  })))), /*#__PURE__*/react.createElement("tr", null, /*#__PURE__*/react.createElement("td", {
1159
- className: "text-center pr-4 pt-2"
1192
+ className: "pr-4 pt-2 text-center"
1160
1193
  }, /*#__PURE__*/react.createElement(src/* Label */.__, {
1161
1194
  className: "text-white",
1162
1195
  text: "PT"
@@ -1165,7 +1198,7 @@ function ROIThresholdConfiguration(_ref) {
1165
1198
  }, /*#__PURE__*/react.createElement(src/* Input */.II, {
1166
1199
  label: t(''),
1167
1200
  labelClassName: "text-white",
1168
- className: "mt-2 bg-black border-primary-main",
1201
+ className: "border-primary-main mt-2 bg-black",
1169
1202
  type: "text",
1170
1203
  containerClassName: "mr-2",
1171
1204
  value: config.ptLower,
@@ -1180,7 +1213,7 @@ function ROIThresholdConfiguration(_ref) {
1180
1213
  }), /*#__PURE__*/react.createElement(src/* Input */.II, {
1181
1214
  label: t(''),
1182
1215
  labelClassName: "text-white",
1183
- className: "mt-2 bg-black border-primary-main",
1216
+ className: "border-primary-main mt-2 bg-black",
1184
1217
  type: "text",
1185
1218
  containerClassName: "mr-2",
1186
1219
  value: config.ptUpper,
@@ -1363,11 +1396,10 @@ function PanelRoiThresholdSegmentation(_ref) {
1363
1396
  return /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement("div", {
1364
1397
  className: "flex flex-col"
1365
1398
  }, /*#__PURE__*/react.createElement("div", {
1366
- className: "overflow-x-hidden overflow-y-auto invisible-scrollbar"
1399
+ className: "invisible-scrollbar overflow-y-auto overflow-x-hidden"
1367
1400
  }, /*#__PURE__*/react.createElement("div", {
1368
- className: "flex mx-4 my-4 mb-4 space-x-4"
1401
+ className: "mx-4 my-4 mb-4 flex space-x-4"
1369
1402
  }, /*#__PURE__*/react.createElement(src/* Button */.zx, {
1370
- color: "primary",
1371
1403
  onClick: () => {
1372
1404
  setLabelmapLoading(true);
1373
1405
  setTimeout(() => {
@@ -1378,10 +1410,9 @@ function PanelRoiThresholdSegmentation(_ref) {
1378
1410
  });
1379
1411
  }
1380
1412
  }, labelmapLoading ? 'loading ...' : 'New Label'), /*#__PURE__*/react.createElement(src/* Button */.zx, {
1381
- color: "primary",
1382
1413
  onClick: handleROIThresholding
1383
1414
  }, "Run")), /*#__PURE__*/react.createElement("div", {
1384
- 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",
1415
+ className: "bg-secondary-dark border-secondary-light mb-2 flex h-8 cursor-pointer select-none items-center justify-around border-t outline-none first:border-0",
1385
1416
  onClick: () => {
1386
1417
  setShowConfig(!showConfig);
1387
1418
  }
@@ -1421,9 +1452,9 @@ function PanelRoiThresholdSegmentation(_ref) {
1421
1452
  });
1422
1453
  }
1423
1454
  }) : null), tmtvValue !== null ? /*#__PURE__*/react.createElement("div", {
1424
- className: "flex items-baseline justify-between px-2 py-1 mt-4 bg-secondary-dark"
1455
+ className: "bg-secondary-dark mt-4 flex items-baseline justify-between px-2 py-1"
1425
1456
  }, /*#__PURE__*/react.createElement("span", {
1426
- className: "text-base font-bold tracking-widest text-white uppercase"
1457
+ className: "text-base font-bold uppercase tracking-widest text-white"
1427
1458
  }, 'TMTV:'), /*#__PURE__*/react.createElement("div", {
1428
1459
  className: "text-white"
1429
1460
  }, `${tmtvValue} mL`)) : null, /*#__PURE__*/react.createElement(PanelROIThresholdSegmentation_ExportReports, {
@@ -1432,7 +1463,7 @@ function PanelRoiThresholdSegmentation(_ref) {
1432
1463
  config: config,
1433
1464
  commandsManager: commandsManager
1434
1465
  }))), /*#__PURE__*/react.createElement("div", {
1435
- className: "opacity-50 hover:opacity-80 flex items-center justify-center text-blue-400 mt-auto cursor-pointer mb-4",
1466
+ className: "mt-auto mb-4 flex cursor-pointer items-center justify-center text-blue-400 opacity-50 hover:opacity-80",
1436
1467
  onClick: () => {
1437
1468
  // navigate to a url in a new tab
1438
1469
  window.open('https://github.com/OHIF/Viewers/blob/master/modes/tmtv/README.md', '_blank');
@@ -1511,10 +1542,10 @@ function getPanelModule(_ref) {
1511
1542
  }];
1512
1543
  }
1513
1544
  /* harmony default export */ const src_getPanelModule = (getPanelModule);
1514
- // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/index.js + 321 modules
1515
- var esm = __webpack_require__(57270);
1516
- // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 335 modules
1517
- var dist_esm = __webpack_require__(77331);
1545
+ // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/index.js + 348 modules
1546
+ var esm = __webpack_require__(14957);
1547
+ // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 331 modules
1548
+ var dist_esm = __webpack_require__(3743);
1518
1549
  ;// CONCATENATED MODULE: ../../../extensions/tmtv/src/utils/measurementServiceMappings/constants/supportedTools.js
1519
1550
  /* harmony default export */ const supportedTools = (['RectangleROIStartEndThreshold']);
1520
1551
  ;// CONCATENATED MODULE: ../../../extensions/tmtv/src/utils/measurementServiceMappings/utils/getSOPInstanceAttributes.js
@@ -1688,7 +1719,7 @@ function init(_ref) {
1688
1719
  colormaps.forEach(registerColormap);
1689
1720
  }
1690
1721
  // EXTERNAL MODULE: ../../../node_modules/gl-matrix/esm/index.js + 10 modules
1691
- var gl_matrix_esm = __webpack_require__(88256);
1722
+ var gl_matrix_esm = __webpack_require__(45451);
1692
1723
  ;// CONCATENATED MODULE: ../../../extensions/tmtv/src/utils/getThresholdValue.ts
1693
1724
 
1694
1725
  function getRoiStats(referencedVolume, annotations) {
@@ -2022,7 +2053,7 @@ AnnotationToPointData.TOOL_NAMES = {};
2022
2053
  AnnotationToPointData.register(measurements_RectangleROIStartEndThreshold);
2023
2054
  /* harmony default export */ const measurements_AnnotationToPointData = (AnnotationToPointData);
2024
2055
  // EXTERNAL MODULE: ../../../node_modules/dcmjs/build/dcmjs.es.js
2025
- var dcmjs_es = __webpack_require__(22737);
2056
+ var dcmjs_es = __webpack_require__(67540);
2026
2057
  ;// CONCATENATED MODULE: ../../../extensions/tmtv/src/utils/dicomRTAnnotationExport/RTStructureSet/RTSSReport.js
2027
2058
 
2028
2059
 
@@ -2291,11 +2322,11 @@ const commandsModule = _ref => {
2291
2322
  } = utilityModule.exports;
2292
2323
  function _getActiveViewportsEnabledElement() {
2293
2324
  const {
2294
- activeViewportIndex
2325
+ activeViewportId
2295
2326
  } = viewportGridService.getState();
2296
2327
  const {
2297
2328
  element
2298
- } = getEnabledElement(activeViewportIndex) || {};
2329
+ } = getEnabledElement(activeViewportId) || {};
2299
2330
  const enabledElement = dist_esm.getEnabledElement(element);
2300
2331
  return enabledElement;
2301
2332
  }
@@ -2304,10 +2335,10 @@ const commandsModule = _ref => {
2304
2335
  viewportMatchDetails
2305
2336
  } = hangingProtocolService.getMatchDetails();
2306
2337
  const toolGroupIds = [];
2307
- viewportMatchDetails.forEach((value, key) => {
2338
+ viewportMatchDetails.forEach(viewport => {
2308
2339
  const {
2309
2340
  viewportOptions
2310
- } = value;
2341
+ } = viewport;
2311
2342
  const {
2312
2343
  toolGroupId
2313
2344
  } = viewportOptions;
@@ -2328,7 +2359,7 @@ const commandsModule = _ref => {
2328
2359
  // corrected PT vs the non-attenuation correct PT)
2329
2360
 
2330
2361
  let ptDisplaySet = null;
2331
- for (const [viewportIndex, viewportDetails] of viewportMatchDetails) {
2362
+ for (const [viewportId, viewportDetails] of viewportMatchDetails) {
2332
2363
  const {
2333
2364
  displaySetsInfo
2334
2365
  } = viewportDetails;
@@ -2778,12 +2809,24 @@ const commandsModule = _ref => {
2778
2809
  const fusionViewportIds = toolGroup.getViewportIds();
2779
2810
  let viewports = [];
2780
2811
  fusionViewportIds.forEach(viewportId => {
2781
- const viewportInfo = cornerstoneViewportService.getViewportInfo(viewportId);
2782
- const viewportIndex = viewportInfo.getViewportIndex();
2783
2812
  commandsManager.runCommand('setViewportColormap', {
2784
- viewportIndex,
2813
+ viewportId,
2785
2814
  displaySetInstanceUID: ptDisplaySet.displaySetInstanceUID,
2786
- colormap
2815
+ colormap: {
2816
+ name: colormap,
2817
+ // TODO: This opacity mapping matches that in hpViewports, but
2818
+ // ideally making this editable in a side panel would be useful
2819
+ opacity: [{
2820
+ value: 0,
2821
+ opacity: 0
2822
+ }, {
2823
+ value: 0.1,
2824
+ opacity: 0.9
2825
+ }, {
2826
+ value: 1,
2827
+ opacity: 0.95
2828
+ }]
2829
+ }
2787
2830
  });
2788
2831
  viewports.push(cornerstoneViewportService.getCornerstoneViewport(viewportId));
2789
2832
  });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
- (globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[642],{
2
+ (self["webpackChunk"] = self["webpackChunk"] || []).push([[814],{
3
3
 
4
- /***/ 73642:
4
+ /***/ 92814:
5
5
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
6
6
 
7
7
  // ESM COMPAT FLAG
@@ -13,7 +13,7 @@ __webpack_require__.d(__webpack_exports__, {
13
13
  });
14
14
 
15
15
  // EXTERNAL MODULE: ../../../node_modules/react/index.js
16
- var react = __webpack_require__(32735);
16
+ var react = __webpack_require__(43001);
17
17
  ;// CONCATENATED MODULE: ../../../extensions/dicom-pdf/package.json
18
18
  const package_namespaceObject = JSON.parse('{"u2":"@ohif/extension-dicom-pdf"}');
19
19
  ;// CONCATENATED MODULE: ../../../extensions/dicom-pdf/src/id.js
@@ -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 + 101 modules
25
- var src = __webpack_require__(48501);
24
+ // EXTERNAL MODULE: ../../core/src/index.ts + 65 modules
25
+ var src = __webpack_require__(71771);
26
26
  ;// CONCATENATED MODULE: ../../../extensions/dicom-pdf/src/getSopClassHandlerModule.js
27
27
 
28
28
 
@@ -110,7 +110,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
110
110
 
111
111
 
112
112
  const Component = /*#__PURE__*/react.lazy(() => {
113
- return __webpack_require__.e(/* import() */ 295).then(__webpack_require__.bind(__webpack_require__, 56295));
113
+ return __webpack_require__.e(/* import() */ 125).then(__webpack_require__.bind(__webpack_require__, 39125));
114
114
  });
115
115
  const OHIFCornerstonePdfViewport = props => {
116
116
  return /*#__PURE__*/react.createElement(react.Suspense, {