@ohif/app 3.9.0-beta.2 → 3.9.0-beta.21

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 (46) hide show
  1. package/dist/{117.bundle.a80b1511ef4b302fb7cc.js → 117.bundle.772ce244eee25d9b7316.js} +50 -15
  2. package/dist/{121.bundle.a6063e0272df61cefccc.js → 121.bundle.b582314ec0024fdf2d15.js} +1 -0
  3. package/dist/{164.bundle.1da1cadb56951caef1d6.js → 164.bundle.3221590f5e6855086889.js} +318 -41
  4. package/dist/{236.bundle.4ca7987e1d57f60ec13a.js → 236.bundle.d3a631d79ee8952e3c60.js} +388 -55
  5. package/dist/{188.bundle.b31173cb165eb21c3ec6.js → 243.bundle.866dc990219240efa81f.js} +8 -8
  6. package/dist/{325.bundle.47f5b8a085837ee6b512.js → 325.bundle.d8bf863ddebb832dcaab.js} +10 -11
  7. package/dist/{342.bundle.340982440de15f540a89.js → 342.bundle.67c49f2e52829a5696a4.js} +7 -0
  8. package/dist/{473.bundle.6cd4be953853f35b29c3.js → 367.bundle.6a0746aeca702ae6eba6.js} +279 -29
  9. package/dist/{806.bundle.50e039eb624382ee1fce.js → 370.bundle.baa389d217c390b0e92b.js} +81 -10
  10. package/dist/{206.bundle.e98e6ba9bfd9f36dc508.js → 390.bundle.504391bda56219cc9ef9.js} +37 -26
  11. package/dist/{448.bundle.94a6da9fac68fc69f8c2.js → 448.bundle.67539d1552db51aaca85.js} +2 -2
  12. package/dist/{483.bundle.a353efc5a5dd563c903c.js → 483.bundle.016de3c3ec209d9fa42a.js} +16 -3
  13. package/dist/{487.bundle.71a2893d94d214741e13.js → 487.bundle.3f0e64e16189f92fcebc.js} +2 -2
  14. package/dist/{35.bundle.0168d78bfad0cb784112.js → 501.bundle.7d5003758fa3ffbb344b.js} +750 -247
  15. package/dist/{530.bundle.207b38c15c4c01e4db0e.js → 530.bundle.17b9a34fefff133e5379.js} +3 -3
  16. package/dist/{544.bundle.b005b8c8b9b08aaa3324.js → 544.bundle.4d1fb477b572f50f4220.js} +3 -3
  17. package/dist/{321.bundle.07e853e559665d6e15b6.js → 550.bundle.41e6a1eacc49db2358c5.js} +50 -19
  18. package/dist/{574.bundle.88b619217339b5e93d3e.js → 574.bundle.0bcd9d70f4b1eea48082.js} +35 -32
  19. package/dist/{41.bundle.faaf3b05d1083e3c8831.js → 682.bundle.066197792e6a0d01b669.js} +26 -6
  20. package/dist/{699.bundle.8210579412d62beafa91.js → 699.bundle.428f20dd60662f1e5edd.js} +32 -3
  21. package/dist/{669.bundle.84745782e36f25eb05bc.js → 721.bundle.d21827d733e8811e0b18.js} +73 -73
  22. package/dist/{722.bundle.2547630541b670f10d6e.js → 722.bundle.1242e0348afc63ca4f5e.js} +10 -4
  23. package/dist/{724.bundle.519141a0c4d0d1a3192a.js → 776.bundle.981d8227b59f97f11dd8.js} +17 -12
  24. package/dist/{862.bundle.4a0bd82b803ba158018f.js → 862.bundle.7a102f04ef4d12686894.js} +1 -1
  25. package/dist/{889.bundle.9fbab4f0bbf643306879.js → 889.bundle.ed8937ba0c5455ed894d.js} +8 -8
  26. package/dist/{905.bundle.7e940707e10096970ca1.js → 905.bundle.b101088a20887c27945d.js} +2 -2
  27. package/dist/{907.bundle.f5aa0414d0f77e575a1f.js → 907.bundle.e8d22a858051cd255c9c.js} +2 -2
  28. package/dist/{94.bundle.ecaaba845625d93bad6b.js → 94.bundle.b4f45b237188a8550a35.js} +38 -8
  29. package/dist/{961.bundle.ff7da8afd7d8495d0bbe.js → 961.bundle.b86b71c712fa83e526d3.js} +2 -2
  30. package/dist/{7.bundle.3a17fe8266b2149334a6.js → 981.bundle.7b03f5a200c7dbcbaf1d.js} +10 -9
  31. package/dist/{594.bundle.01b124740b2b3f8a6d20.js → 989.bundle.e81da55a6954a12e5ea1.js} +5 -5
  32. package/dist/{633.bundle.ff1a1d0bdb0d1ef143af.js → 998.bundle.37015da90e590043cda0.js} +7 -7
  33. package/dist/app-config.js +5 -1
  34. package/dist/{app.bundle.c53b289734d5f7178a39.js → app.bundle.a6bfec031243c17f92e9.js} +686 -555
  35. package/dist/app.bundle.css +1 -1
  36. package/dist/cornerstoneDICOMImageLoader.min.js +1 -1
  37. package/dist/cornerstoneDICOMImageLoader.min.js.map +1 -1
  38. package/dist/google.js +1 -0
  39. package/dist/index.html +1 -1
  40. package/dist/{polySeg.bundle.1799686b019040500219.js → polySeg.bundle.b0392069f29e128b4efa.js} +3 -3
  41. package/dist/{suv-peak-worker.bundle.25f8b85eab9ec06da48d.js → suv-peak-worker.bundle.f823d84fae4ce6865f9a.js} +3 -3
  42. package/dist/sw.js +1 -1
  43. package/package.json +20 -19
  44. /package/dist/{321.css → 550.css} +0 -0
  45. /package/dist/{783.bundle.86c38ee55f4d01b111ca.js → 783.bundle.c5b7e2433ecb9d8e2541.js} +0 -0
  46. /package/dist/{633.css → 998.css} +0 -0
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
- (globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[669],{
2
+ (globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[721],{
3
3
 
4
- /***/ 61669:
4
+ /***/ 14721:
5
5
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
6
6
 
7
7
  // ESM COMPAT FLAG
@@ -25,8 +25,8 @@ const id = package_namespaceObject.UU;
25
25
  const SOPClassHandlerName = 'dicom-sr';
26
26
  const SOPClassHandlerId = `${id}.sopClassHandlerModule.${SOPClassHandlerName}`;
27
27
 
28
- // EXTERNAL MODULE: ../../core/src/index.ts + 70 modules
29
- var src = __webpack_require__(55411);
28
+ // EXTERNAL MODULE: ../../core/src/index.ts + 72 modules
29
+ var src = __webpack_require__(8633);
30
30
  // EXTERNAL MODULE: ../../../node_modules/gl-matrix/esm/index.js + 1 modules
31
31
  var esm = __webpack_require__(44753);
32
32
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/index.js
@@ -1212,7 +1212,7 @@ function getFilteredCornerstoneToolState(measurementData, additionalFindingTypes
1212
1212
  return filteredToolState;
1213
1213
  }
1214
1214
  /* harmony default export */ const utils_getFilteredCornerstoneToolState = (getFilteredCornerstoneToolState);
1215
- ;// CONCATENATED MODULE: ../../../extensions/cornerstone-dicom-sr/src/commandsModule.js
1215
+ ;// CONCATENATED MODULE: ../../../extensions/cornerstone-dicom-sr/src/commandsModule.ts
1216
1216
 
1217
1217
 
1218
1218
 
@@ -1272,7 +1272,7 @@ const commandsModule = props => {
1272
1272
  const reportBlob = dcmjs_es/* default.data */.Ay.data.datasetToBlob(srDataset);
1273
1273
 
1274
1274
  //Create a URL for the binary.
1275
- var objectUrl = URL.createObjectURL(reportBlob);
1275
+ const objectUrl = URL.createObjectURL(reportBlob);
1276
1276
  window.location.assign(objectUrl);
1277
1277
  },
1278
1278
  /**
@@ -1400,8 +1400,8 @@ function init({
1400
1400
  global: {}
1401
1401
  });
1402
1402
  }
1403
- // EXTERNAL MODULE: ../../../extensions/cornerstone-dicom-sr/src/utils/hydrateStructuredReport.js + 1 modules
1404
- var hydrateStructuredReport = __webpack_require__(77089);
1403
+ // EXTERNAL MODULE: ../../../extensions/cornerstone-dicom-sr/src/utils/hydrateStructuredReport.ts + 1 modules
1404
+ var hydrateStructuredReport = __webpack_require__(31808);
1405
1405
  // EXTERNAL MODULE: ../../../extensions/cornerstone-dicom-sr/src/utils/createReferencedImageDisplaySet.ts
1406
1406
  var createReferencedImageDisplaySet = __webpack_require__(92643);
1407
1407
  ;// CONCATENATED MODULE: ../../../extensions/cornerstone-dicom-sr/src/index.tsx
@@ -1483,7 +1483,7 @@ const dicomSRExtension = {
1483
1483
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1484
1484
  /* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
1485
1485
  /* harmony export */ });
1486
- /* harmony import */ var _ohif_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(55411);
1486
+ /* harmony import */ var _ohif_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8633);
1487
1487
 
1488
1488
  const ImageSet = _ohif_core__WEBPACK_IMPORTED_MODULE_0__.classes.ImageSet;
1489
1489
  const findInstance = (measurement, displaySetService) => {
@@ -1571,67 +1571,7 @@ const createReferencedImageDisplaySet = (displaySetService, displaySet) => {
1571
1571
 
1572
1572
  /***/ }),
1573
1573
 
1574
- /***/ 74334:
1575
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1576
-
1577
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1578
- /* harmony export */ eF: () => (/* binding */ getTrackingUniqueIdentifiersForElement),
1579
- /* harmony export */ m1: () => (/* binding */ setTrackingUniqueIdentifiersForElement)
1580
- /* harmony export */ });
1581
- /* unused harmony export setActiveTrackingUniqueIdentifierForElement */
1582
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(92136);
1583
-
1584
- const state = {
1585
- TrackingUniqueIdentifier: null,
1586
- trackingIdentifiersByViewportId: {}
1587
- };
1588
-
1589
- /**
1590
- * This file is being used to store the per-viewport state of the SR tools,
1591
- * Since, all the toolStates are added to the cornerstoneTools, when displaying the SRTools,
1592
- * if there are two viewports rendering the same imageId, we don't want to show
1593
- * the same SR annotation twice on irrelevant viewport, hence, we are storing the state
1594
- * of the SR tools in state here, so that we can filter them later.
1595
- */
1596
-
1597
- function setTrackingUniqueIdentifiersForElement(element, trackingUniqueIdentifiers, activeIndex = 0) {
1598
- const enabledElement = (0,_cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.getEnabledElement)(element);
1599
- const {
1600
- viewport
1601
- } = enabledElement;
1602
- state.trackingIdentifiersByViewportId[viewport.id] = {
1603
- trackingUniqueIdentifiers,
1604
- activeIndex
1605
- };
1606
- }
1607
- function setActiveTrackingUniqueIdentifierForElement(element, TrackingUniqueIdentifier) {
1608
- const enabledElement = getEnabledElement(element);
1609
- const {
1610
- viewport
1611
- } = enabledElement;
1612
- const trackingIdentifiersForElement = state.trackingIdentifiersByViewportId[viewport.id];
1613
- if (trackingIdentifiersForElement) {
1614
- const activeIndex = trackingIdentifiersForElement.trackingUniqueIdentifiers.findIndex(tuid => tuid === TrackingUniqueIdentifier);
1615
- trackingIdentifiersForElement.activeIndex = activeIndex;
1616
- }
1617
- }
1618
- function getTrackingUniqueIdentifiersForElement(element) {
1619
- const enabledElement = (0,_cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.getEnabledElement)(element);
1620
- const {
1621
- viewport
1622
- } = enabledElement;
1623
- if (state.trackingIdentifiersByViewportId[viewport.id]) {
1624
- return state.trackingIdentifiersByViewportId[viewport.id];
1625
- }
1626
- return {
1627
- trackingUniqueIdentifiers: []
1628
- };
1629
- }
1630
-
1631
-
1632
- /***/ }),
1633
-
1634
- /***/ 77089:
1574
+ /***/ 31808:
1635
1575
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1636
1576
 
1637
1577
 
@@ -1642,8 +1582,8 @@ __webpack_require__.d(__webpack_exports__, {
1642
1582
 
1643
1583
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 28 modules
1644
1584
  var esm = __webpack_require__(92136);
1645
- // EXTERNAL MODULE: ../../core/src/index.ts + 70 modules
1646
- var src = __webpack_require__(55411);
1585
+ // EXTERNAL MODULE: ../../core/src/index.ts + 72 modules
1586
+ var src = __webpack_require__(8633);
1647
1587
  ;// CONCATENATED MODULE: ../../../extensions/cornerstone-dicom-sr/src/utils/getLabelFromDCMJSImportedToolData.js
1648
1588
  /**
1649
1589
  * Extracts the label from the toolData imported from dcmjs. We need to do this
@@ -1670,7 +1610,7 @@ function getLabelFromDCMJSImportedToolData(toolData) {
1670
1610
  var adapters_es = __webpack_require__(83342);
1671
1611
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/index.js
1672
1612
  var dist_esm = __webpack_require__(39371);
1673
- ;// CONCATENATED MODULE: ../../../extensions/cornerstone-dicom-sr/src/utils/hydrateStructuredReport.js
1613
+ ;// CONCATENATED MODULE: ../../../extensions/cornerstone-dicom-sr/src/utils/hydrateStructuredReport.ts
1674
1614
 
1675
1615
 
1676
1616
 
@@ -1912,6 +1852,66 @@ const codeMeaningEquals = codeMeaningName => {
1912
1852
  };
1913
1853
  };
1914
1854
 
1855
+ /***/ }),
1856
+
1857
+ /***/ 74334:
1858
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1859
+
1860
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1861
+ /* harmony export */ eF: () => (/* binding */ getTrackingUniqueIdentifiersForElement),
1862
+ /* harmony export */ m1: () => (/* binding */ setTrackingUniqueIdentifiersForElement)
1863
+ /* harmony export */ });
1864
+ /* unused harmony export setActiveTrackingUniqueIdentifierForElement */
1865
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(92136);
1866
+
1867
+ const state = {
1868
+ TrackingUniqueIdentifier: null,
1869
+ trackingIdentifiersByViewportId: {}
1870
+ };
1871
+
1872
+ /**
1873
+ * This file is being used to store the per-viewport state of the SR tools,
1874
+ * Since, all the toolStates are added to the cornerstoneTools, when displaying the SRTools,
1875
+ * if there are two viewports rendering the same imageId, we don't want to show
1876
+ * the same SR annotation twice on irrelevant viewport, hence, we are storing the state
1877
+ * of the SR tools in state here, so that we can filter them later.
1878
+ */
1879
+
1880
+ function setTrackingUniqueIdentifiersForElement(element, trackingUniqueIdentifiers, activeIndex = 0) {
1881
+ const enabledElement = (0,_cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.getEnabledElement)(element);
1882
+ const {
1883
+ viewport
1884
+ } = enabledElement;
1885
+ state.trackingIdentifiersByViewportId[viewport.id] = {
1886
+ trackingUniqueIdentifiers,
1887
+ activeIndex
1888
+ };
1889
+ }
1890
+ function setActiveTrackingUniqueIdentifierForElement(element, TrackingUniqueIdentifier) {
1891
+ const enabledElement = getEnabledElement(element);
1892
+ const {
1893
+ viewport
1894
+ } = enabledElement;
1895
+ const trackingIdentifiersForElement = state.trackingIdentifiersByViewportId[viewport.id];
1896
+ if (trackingIdentifiersForElement) {
1897
+ const activeIndex = trackingIdentifiersForElement.trackingUniqueIdentifiers.findIndex(tuid => tuid === TrackingUniqueIdentifier);
1898
+ trackingIdentifiersForElement.activeIndex = activeIndex;
1899
+ }
1900
+ }
1901
+ function getTrackingUniqueIdentifiersForElement(element) {
1902
+ const enabledElement = (0,_cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__.getEnabledElement)(element);
1903
+ const {
1904
+ viewport
1905
+ } = enabledElement;
1906
+ if (state.trackingIdentifiersByViewportId[viewport.id]) {
1907
+ return state.trackingIdentifiersByViewportId[viewport.id];
1908
+ }
1909
+ return {
1910
+ trackingUniqueIdentifiers: []
1911
+ };
1912
+ }
1913
+
1914
+
1915
1915
  /***/ })
1916
1916
 
1917
1917
  }]);
@@ -171,7 +171,7 @@ function getPhilipsPrivateBValue(imageId) {
171
171
  }
172
172
  }
173
173
  function getSiemensPrivateBValue(imageId) {
174
- let value = esm.metaData.get('0019100c', imageId);
174
+ let value = esm.metaData.get('0019100c', imageId) || esm.metaData.get('0019100C', imageId);
175
175
  try {
176
176
  const { InlineBinary } = value;
177
177
  if (InlineBinary) {
@@ -545,11 +545,17 @@ class BaseStreamingImageVolume extends esm.ImageVolume {
545
545
  scalingParameters.suvbw = suvFactor.suvbw;
546
546
  }
547
547
  }
548
- const isSlopeAndInterceptNumbers = typeof scalingParameters.rescaleSlope === 'number' &&
549
- typeof scalingParameters.rescaleIntercept === 'number';
550
548
  const floatAfterScale = hasFloatScalingParameters(scalingParameters);
551
549
  const allowFloatRendering = (0,esm.canRenderFloatTextures)();
552
- this.isPreScaled = isSlopeAndInterceptNumbers;
550
+ this.isPreScaled = true;
551
+ if (scalingParameters &&
552
+ scalingParameters.rescaleSlope !== undefined &&
553
+ scalingParameters.rescaleIntercept !== undefined) {
554
+ const { rescaleSlope, rescaleIntercept } = scalingParameters;
555
+ this.isPreScaled =
556
+ typeof rescaleSlope === 'number' &&
557
+ typeof rescaleIntercept === 'number';
558
+ }
553
559
  if (!allowFloatRendering && floatAfterScale) {
554
560
  this.isPreScaled = false;
555
561
  }
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
- (globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[724],{
2
+ (globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[776],{
3
3
 
4
- /***/ 28724:
4
+ /***/ 40776:
5
5
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
6
6
 
7
7
  // ESM COMPAT FLAG
@@ -12,8 +12,8 @@ __webpack_require__.d(__webpack_exports__, {
12
12
  "default": () => (/* binding */ tmtv_src)
13
13
  });
14
14
 
15
- // EXTERNAL MODULE: ../../core/src/index.ts + 70 modules
16
- var src = __webpack_require__(55411);
15
+ // EXTERNAL MODULE: ../../core/src/index.ts + 72 modules
16
+ var src = __webpack_require__(8633);
17
17
  ;// CONCATENATED MODULE: ../../../modes/tmtv/src/initToolGroups.js
18
18
  const toolGroupIds = {
19
19
  CT: 'ctToolGroup',
@@ -22,7 +22,7 @@ const toolGroupIds = {
22
22
  MIP: 'mipToolGroup',
23
23
  default: 'default'
24
24
  };
25
- function _initToolGroups(toolNames, Enums, toolGroupService, commandsManager, modeLabelConfig) {
25
+ function _initToolGroups(toolNames, Enums, toolGroupService, commandsManager, modeLabelConfig, servicesManager) {
26
26
  const tools = {
27
27
  active: [{
28
28
  toolName: toolNames.WindowLevel,
@@ -147,7 +147,12 @@ function _initToolGroups(toolNames, Enums, toolGroupService, commandsManager, mo
147
147
  disabled: [{
148
148
  toolName: toolNames.Crosshairs,
149
149
  configuration: {
150
- viewportIndicators: false,
150
+ viewportIndicators: true,
151
+ viewportIndicatorsConfig: {
152
+ circleRadius: 5,
153
+ xOffset: 0.95,
154
+ yOffset: 0.05
155
+ },
151
156
  disableOnPassive: true,
152
157
  autoPan: {
153
158
  enabled: false,
@@ -195,8 +200,8 @@ function _initToolGroups(toolNames, Enums, toolGroupService, commandsManager, mo
195
200
  };
196
201
  toolGroupService.createToolGroupAndAddTools(toolGroupIds.MIP, mipTools);
197
202
  }
198
- function initToolGroups(toolNames, Enums, toolGroupService, commandsManager, modeLabelConfig) {
199
- _initToolGroups(toolNames, Enums, toolGroupService, commandsManager, modeLabelConfig);
203
+ function initToolGroups(toolNames, Enums, toolGroupService, commandsManager, modeLabelConfig, servicesManager) {
204
+ _initToolGroups(toolNames, Enums, toolGroupService, commandsManager, modeLabelConfig, servicesManager);
200
205
  }
201
206
  /* harmony default export */ const src_initToolGroups = (initToolGroups);
202
207
  ;// CONCATENATED MODULE: ../../../modes/tmtv/src/toolbarButtons.js
@@ -457,7 +462,7 @@ const toolbarButtons = [{
457
462
  min: 0,
458
463
  max: 50,
459
464
  step: 0.5,
460
- values: [2.5, 50],
465
+ value: [2.5, 50],
461
466
  condition: ({
462
467
  options
463
468
  }) => options.find(option => option.id === 'dynamic-mode').value === 'ThresholdRange',
@@ -528,7 +533,7 @@ function setFusionActiveVolume(matches, toolNames, toolGroupService, displaySetS
528
533
  }
529
534
  // EXTERNAL MODULE: ../../../node_modules/i18next/dist/esm/i18next.js
530
535
  var i18next = __webpack_require__(92344);
531
- ;// CONCATENATED MODULE: ../../../modes/tmtv/src/index.js
536
+ ;// CONCATENATED MODULE: ../../../modes/tmtv/src/index.ts
532
537
 
533
538
 
534
539
 
@@ -562,7 +567,7 @@ const extensionDependencies = {
562
567
  '@ohif/extension-cornerstone-dicom-seg': '^3.0.0',
563
568
  '@ohif/extension-tmtv': '^3.0.0'
564
569
  };
565
- let unsubscriptions = [];
570
+ const unsubscriptions = [];
566
571
  function modeFactory({
567
572
  modeConfiguration
568
573
  }) {
@@ -595,7 +600,7 @@ function modeFactory({
595
600
  } = utilityModule.exports;
596
601
 
597
602
  // Init Default and SR ToolGroups
598
- src_initToolGroups(toolNames, Enums, toolGroupService, commandsManager);
603
+ src_initToolGroups(toolNames, Enums, toolGroupService, commandsManager, null, servicesManager);
599
604
  const {
600
605
  unsubscribe
601
606
  } = toolGroupService.subscribe(toolGroupService.EVENTS.VIEWPORT_ADDED, () => {
@@ -13,7 +13,7 @@ __webpack_require__.r(__webpack_exports__);
13
13
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
14
14
  /* harmony import */ var _ohif_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5085);
15
15
  /* harmony import */ var _cornerstonejs_tools__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(39371);
16
- /* harmony import */ var _getContextModule__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(219);
16
+ /* harmony import */ var _getContextModule__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(84222);
17
17
  /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(92136);
18
18
  /* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(80619);
19
19
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
@@ -22,8 +22,8 @@ const id = package_namespaceObject.UU;
22
22
  var react = __webpack_require__(41766);
23
23
  // EXTERNAL MODULE: ../../ui/src/index.js + 785 modules
24
24
  var src = __webpack_require__(5085);
25
- // EXTERNAL MODULE: ../../core/src/index.ts + 70 modules
26
- var core_src = __webpack_require__(55411);
25
+ // EXTERNAL MODULE: ../../core/src/index.ts + 72 modules
26
+ var core_src = __webpack_require__(8633);
27
27
  // EXTERNAL MODULE: ../../../node_modules/react-i18next/dist/es/index.js + 15 modules
28
28
  var es = __webpack_require__(80619);
29
29
  // EXTERNAL MODULE: ../../../node_modules/mathjs/lib/esm/index.js + 996 modules
@@ -787,15 +787,15 @@ const MicroscopyService_EVENTS = {
787
787
  * ROI annotations relevant to the application
788
788
  */
789
789
  class MicroscopyService extends core_src/* PubSubService */.Rc {
790
- constructor(serviceManager) {
790
+ constructor(servicesManager) {
791
791
  super(MicroscopyService_EVENTS);
792
- this.serviceManager = void 0;
792
+ this.servicesManager = void 0;
793
793
  this.managedViewers = new Set();
794
794
  this.roiUids = new Set();
795
795
  this.annotations = {};
796
796
  this.selectedAnnotation = null;
797
797
  this.pendingFocus = false;
798
- this.serviceManager = serviceManager;
798
+ this.servicesManager = servicesManager;
799
799
  this._onRoiAdded = this._onRoiAdded.bind(this);
800
800
  this._onRoiModified = this._onRoiModified.bind(this);
801
801
  this._onRoiRemoved = this._onRoiRemoved.bind(this);
@@ -1351,14 +1351,14 @@ class MicroscopyService extends core_src/* PubSubService */.Rc {
1351
1351
  }
1352
1352
  }
1353
1353
  _MicroscopyService = MicroscopyService;
1354
- MicroscopyService.REGISTRATION = serviceManager => {
1354
+ MicroscopyService.REGISTRATION = servicesManager => {
1355
1355
  return {
1356
1356
  name: 'microscopyService',
1357
1357
  altName: 'MicroscopyService',
1358
1358
  create: ({
1359
1359
  configuration = {}
1360
1360
  }) => {
1361
- return new _MicroscopyService(serviceManager);
1361
+ return new _MicroscopyService(servicesManager);
1362
1362
  }
1363
1363
  };
1364
1364
  };
@@ -2576,7 +2576,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
2576
2576
 
2577
2577
 
2578
2578
  const Component = /*#__PURE__*/react.lazy(() => {
2579
- return Promise.all(/* import() */[__webpack_require__.e(806), __webpack_require__.e(473), __webpack_require__.e(483), __webpack_require__.e(236), __webpack_require__.e(644), __webpack_require__.e(931), __webpack_require__.e(206), __webpack_require__.e(544)]).then(__webpack_require__.bind(__webpack_require__, 17919));
2579
+ return Promise.all(/* import() */[__webpack_require__.e(370), __webpack_require__.e(367), __webpack_require__.e(483), __webpack_require__.e(236), __webpack_require__.e(644), __webpack_require__.e(931), __webpack_require__.e(390), __webpack_require__.e(544)]).then(__webpack_require__.bind(__webpack_require__, 17919));
2580
2580
  });
2581
2581
  const MicroscopyViewport = props => {
2582
2582
  return /*#__PURE__*/react.createElement(react.Suspense, {
@@ -13,8 +13,8 @@ __webpack_require__.d(__webpack_exports__, {
13
13
  "default": () => (/* binding */ microscopy_src)
14
14
  });
15
15
 
16
- // EXTERNAL MODULE: ../../core/src/index.ts + 70 modules
17
- var src = __webpack_require__(55411);
16
+ // EXTERNAL MODULE: ../../core/src/index.ts + 72 modules
17
+ var src = __webpack_require__(8633);
18
18
  // EXTERNAL MODULE: ../../../node_modules/i18next/dist/esm/i18next.js
19
19
  var i18next = __webpack_require__(92344);
20
20
  ;// CONCATENATED MODULE: ../../../modes/microscopy/package.json
@@ -21,8 +21,8 @@ const package_namespaceObject = /*#__PURE__*/JSON.parse('{"UU":"@ohif/extension-
21
21
  const id = package_namespaceObject.UU;
22
22
  const SOPClassHandlerId = `${id}.sopClassHandlerModule.dicom-pdf`;
23
23
 
24
- // EXTERNAL MODULE: ../../core/src/index.ts + 70 modules
25
- var src = __webpack_require__(55411);
24
+ // EXTERNAL MODULE: ../../core/src/index.ts + 72 modules
25
+ var src = __webpack_require__(8633);
26
26
  ;// CONCATENATED MODULE: ../../../extensions/dicom-pdf/src/getSopClassHandlerModule.js
27
27
 
28
28
 
@@ -18,8 +18,8 @@ const package_namespaceObject = /*#__PURE__*/JSON.parse('{"UU":"@ohif/mode-precl
18
18
 
19
19
  const id = package_namespaceObject.UU;
20
20
 
21
- // EXTERNAL MODULE: ../../core/src/index.ts + 70 modules
22
- var src = __webpack_require__(55411);
21
+ // EXTERNAL MODULE: ../../core/src/index.ts + 72 modules
22
+ var src = __webpack_require__(8633);
23
23
  ;// CONCATENATED MODULE: ../../../modes/preclinical-4d/src/getWorkflowSettings.ts
24
24
  const dynamicVolume = {
25
25
  sopClassHandler: '@ohif/extension-cornerstone-dynamic-volume.sopClassHandlerModule.dynamic-volume',
@@ -133,7 +133,20 @@ const toolGroupIds = {
133
133
  Fusion: 'dynamic4D-fusion',
134
134
  CT: 'dynamic4D-ct'
135
135
  };
136
- function _initToolGroups(toolNames, Enums, toolGroupService, commandsManager) {
136
+ const colours = {
137
+ 'viewport-0': 'rgb(200, 0, 0)',
138
+ 'viewport-1': 'rgb(200, 200, 0)',
139
+ 'viewport-2': 'rgb(0, 200, 0)'
140
+ };
141
+ const colorsByOrientation = {
142
+ axial: 'rgb(200, 0, 0)',
143
+ sagittal: 'rgb(200, 200, 0)',
144
+ coronal: 'rgb(0, 200, 0)'
145
+ };
146
+ function _initToolGroups(toolNames, Enums, toolGroupService, commandsManager, servicesManager) {
147
+ const {
148
+ cornerstoneViewportService
149
+ } = servicesManager.services;
137
150
  const tools = {
138
151
  active: [{
139
152
  toolName: toolNames.WindowLevel,
@@ -237,11 +250,26 @@ function _initToolGroups(toolNames, Enums, toolGroupService, commandsManager) {
237
250
  disabled: [{
238
251
  toolName: toolNames.Crosshairs,
239
252
  configuration: {
240
- viewportIndicators: false,
253
+ viewportIndicators: true,
254
+ viewportIndicatorsConfig: {
255
+ circleRadius: 5,
256
+ xOffset: 0.95,
257
+ yOffset: 0.05
258
+ },
241
259
  disableOnPassive: true,
242
260
  autoPan: {
243
261
  enabled: false,
244
262
  panSize: 10
263
+ },
264
+ getReferenceLineColor: viewportId => {
265
+ const viewportInfo = cornerstoneViewportService.getViewportInfo(viewportId);
266
+ const viewportOptions = viewportInfo?.viewportOptions;
267
+ if (viewportOptions) {
268
+ return colours[viewportOptions.id] || colorsByOrientation[viewportOptions.orientation] || '#0c0';
269
+ } else {
270
+ console.warn('missing viewport?', viewportId);
271
+ return '#0c0';
272
+ }
245
273
  }
246
274
  }
247
275
  }]
@@ -270,9 +298,10 @@ function initToolGroups({
270
298
  toolNames,
271
299
  Enums,
272
300
  toolGroupService,
273
- commandsManager
301
+ commandsManager,
302
+ servicesManager
274
303
  }) {
275
- _initToolGroups(toolNames, Enums, toolGroupService, commandsManager);
304
+ _initToolGroups(toolNames, Enums, toolGroupService, commandsManager, servicesManager);
276
305
  }
277
306
 
278
307
  ;// CONCATENATED MODULE: ../../../modes/preclinical-4d/src/toolbarButtons.tsx
@@ -538,7 +567,7 @@ const segmentationButtons_toolbarButtons = [{
538
567
  min: 0,
539
568
  max: 100,
540
569
  step: 0.5,
541
- values: [2, 50],
570
+ value: [2, 50],
542
571
  commands: {
543
572
  commandName: 'setThresholdRange',
544
573
  commandOptions: {
@@ -639,7 +668,8 @@ function modeFactory({
639
668
  toolNames,
640
669
  Enums,
641
670
  toolGroupService,
642
- commandsManager
671
+ commandsManager,
672
+ servicesManager
643
673
  });
644
674
  toolbarService.addButtons([...src_toolbarButtons, ...segmentationButtons]);
645
675
  toolbarService.createButtonSection('secondary', ['ProgressDropdown']);
@@ -21,8 +21,8 @@ const package_namespaceObject = /*#__PURE__*/JSON.parse('{"UU":"@ohif/extension-
21
21
  const id = package_namespaceObject.UU;
22
22
  const SOPClassHandlerId = `${id}.sopClassHandlerModule.dicom-video`;
23
23
 
24
- // EXTERNAL MODULE: ../../core/src/index.ts + 70 modules
25
- var src = __webpack_require__(55411);
24
+ // EXTERNAL MODULE: ../../core/src/index.ts + 72 modules
25
+ var src = __webpack_require__(8633);
26
26
  ;// CONCATENATED MODULE: ../../../extensions/dicom-video/src/getSopClassHandlerModule.js
27
27
 
28
28
 
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
- (globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[7],{
2
+ (globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[981],{
3
3
 
4
- /***/ 89007:
4
+ /***/ 93981:
5
5
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
6
6
 
7
7
  // ESM COMPAT FLAG
@@ -725,8 +725,8 @@ var prop_types = __webpack_require__(11374);
725
725
  var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types);
726
726
  // EXTERNAL MODULE: ../../ui/src/index.js + 785 modules
727
727
  var src = __webpack_require__(5085);
728
- // EXTERNAL MODULE: ../../core/src/index.ts + 70 modules
729
- var core_src = __webpack_require__(55411);
728
+ // EXTERNAL MODULE: ../../core/src/index.ts + 72 modules
729
+ var core_src = __webpack_require__(8633);
730
730
  // EXTERNAL MODULE: ../../../node_modules/react-i18next/dist/es/index.js + 15 modules
731
731
  var es = __webpack_require__(80619);
732
732
  ;// CONCATENATED MODULE: ../../../extensions/tmtv/src/Panels/PanelPetSUV.tsx
@@ -894,7 +894,8 @@ function PanelPetSUV({
894
894
  handleMetadataChange({
895
895
  PatientWeight: e.target.value
896
896
  });
897
- }
897
+ },
898
+ id: "weight-input"
898
899
  }), /*#__PURE__*/react.createElement(src/* Input */.pd, {
899
900
  containerClassName: '!flex-row !justify-between items-center',
900
901
  label: t('Total Dose'),
@@ -1529,7 +1530,7 @@ function dicomRTAnnotationExport(annotations) {
1529
1530
  ;// CONCATENATED MODULE: ../../../extensions/tmtv/src/utils/dicomRTAnnotationExport/RTStructureSet/index.js
1530
1531
 
1531
1532
  /* harmony default export */ const RTStructureSet = (dicomRTAnnotationExport);
1532
- ;// CONCATENATED MODULE: ../../../extensions/tmtv/src/commandsModule.js
1533
+ ;// CONCATENATED MODULE: ../../../extensions/tmtv/src/commandsModule.ts
1533
1534
 
1534
1535
 
1535
1536
 
@@ -1864,7 +1865,7 @@ const commandsModule = ({
1864
1865
  const referencedScalarData = esm.cache.getVolume(labelmap.referencedVolumeId).getScalarData();
1865
1866
  let segmentationMax = -Infinity;
1866
1867
  let segmentationMin = Infinity;
1867
- let segmentationValues = [];
1868
+ const segmentationValues = [];
1868
1869
  let voxelCount = 0;
1869
1870
  for (let i = 0; i < scalarData.length; i++) {
1870
1871
  if (scalarData[i] === segmentIndex) {
@@ -2060,7 +2061,7 @@ const commandsModule = ({
2060
2061
  if (!segmentations || !segmentations.length) {
2061
2062
  segmentations = segmentationService.getSegmentations();
2062
2063
  }
2063
- let report = {};
2064
+ const report = {};
2064
2065
  for (const segmentation of segmentations) {
2065
2066
  const {
2066
2067
  id,
@@ -2138,7 +2139,7 @@ const commandsModule = ({
2138
2139
  return;
2139
2140
  }
2140
2141
  const fusionViewportIds = toolGroup.getViewportIds();
2141
- let viewports = [];
2142
+ const viewports = [];
2142
2143
  fusionViewportIds.forEach(viewportId => {
2143
2144
  commandsManager.runCommand('setViewportColormap', {
2144
2145
  viewportId,
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
- (globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[594],{
2
+ (globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[989],{
3
3
 
4
- /***/ 26594:
4
+ /***/ 50989:
5
5
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
6
6
 
7
7
  // ESM COMPAT FLAG
@@ -14,8 +14,8 @@ __webpack_require__.d(__webpack_exports__, {
14
14
 
15
15
  // EXTERNAL MODULE: ../../ui/src/index.js + 785 modules
16
16
  var src = __webpack_require__(5085);
17
- // EXTERNAL MODULE: ../../core/src/index.ts + 70 modules
18
- var core_src = __webpack_require__(55411);
17
+ // EXTERNAL MODULE: ../../core/src/index.ts + 72 modules
18
+ var core_src = __webpack_require__(8633);
19
19
  ;// CONCATENATED MODULE: ../../../modes/basic-dev-mode/src/toolbarButtons.js
20
20
 
21
21
 
@@ -235,7 +235,7 @@ const id = package_namespaceObject.UU;
235
235
 
236
236
  // EXTERNAL MODULE: ../../../node_modules/i18next/dist/esm/i18next.js
237
237
  var i18next = __webpack_require__(92344);
238
- ;// CONCATENATED MODULE: ../../../modes/basic-dev-mode/src/index.js
238
+ ;// CONCATENATED MODULE: ../../../modes/basic-dev-mode/src/index.ts
239
239
 
240
240
 
241
241