@ohif/app 3.8.0-beta.49 → 3.8.0-beta.50

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 (30) hide show
  1. package/dist/{170.bundle.e577dc0d956f1953e380.js → 170.bundle.c897981826842ee375b5.js} +5 -5
  2. package/dist/{181.bundle.59bc83ea0a5cf5d335e7.js → 181.bundle.aff453c348111303ceac.js} +50 -5
  3. package/dist/{185.bundle.bb532c5a39336cc50ec4.js → 185.bundle.87b32cd8145a37e8d07b.js} +9 -9
  4. package/dist/{19.bundle.7d12fbb10f0b7d9f423f.js → 19.bundle.89cb082532a16f04ce74.js} +2 -2
  5. package/dist/{199.bundle.a7b34913c5cc04dcee37.js → 199.bundle.08204857a65f29ec5dca.js} +6 -6
  6. package/dist/{202.bundle.c7c412d83b745f890834.js → 202.bundle.495cba6bbee744cf8f72.js} +90 -20
  7. package/dist/{250.bundle.96a47756a15efbdf78af.js → 250.bundle.577da106dd763c7bf9d0.js} +4 -4
  8. package/dist/{456.bundle.12c7f46372c1282e1037.js → 290.bundle.fac1e48a4027ad949764.js} +51 -20
  9. package/dist/{359.bundle.7145c9bbf727742152fe.js → 359.bundle.deef89c05907539f5718.js} +1 -1
  10. package/dist/{410.bundle.cff6e306a549ee8bf189.js → 410.bundle.0c7d688cd70a4980fdbb.js} +1 -1
  11. package/dist/{451.bundle.9b9abf9ca8967a46fa93.js → 451.bundle.311cd3be9916e08450e9.js} +1 -1
  12. package/dist/{466.bundle.87b78b8e78ec45730add.js → 466.bundle.e0169e052354437a4fd0.js} +3 -3
  13. package/dist/{471.bundle.a646b0616732bbc945b4.js → 471.bundle.eeb78105b59e688832a6.js} +2 -2
  14. package/dist/{483.bundle.dd1479f9915ebc0853c8.js → 483.bundle.17425951eb8bd48dce01.js} +3 -3
  15. package/dist/{613.bundle.edb1ecd62324ef2ade89.js → 613.bundle.a1e84b764ea6f872169a.js} +3 -3
  16. package/dist/{738.bundle.a2820bc290ae21f68ba2.js → 738.bundle.443a3c3dd2aaa0d02a38.js} +4 -4
  17. package/dist/{822.bundle.b3c3a7d5a0768cd9c990.js → 822.bundle.8b745e28bc9eb9afbc61.js} +2 -2
  18. package/dist/{886.bundle.69f07c567a3dc69b060f.js → 886.bundle.94a4536167d0f8cae1ae.js} +1 -1
  19. package/dist/{95.bundle.644c927d99988ff60b36.js → 95.bundle.2236101be3cc36b322e8.js} +2 -2
  20. package/dist/{965.bundle.7b8c20af8a16c950ebfb.js → 965.bundle.527f031a2bf5fc4202a0.js} +1 -1
  21. package/dist/{app.bundle.db1ef573f40277a1ba59.js → app.bundle.be53f58aee6b64f5a624.js} +603 -286
  22. package/dist/index.html +1 -1
  23. package/dist/sw.js +1 -1
  24. package/package.json +17 -17
  25. /package/dist/{12.bundle.775757e347ff672d7e94.js → 12.bundle.aebca43849fb89e4487c.js} +0 -0
  26. /package/dist/{281.bundle.8fa2c03372e7cba54c5c.js → 281.bundle.987f88c6aea8b8bc35e4.js} +0 -0
  27. /package/dist/{456.css → 290.css} +0 -0
  28. /package/dist/{506.bundle.d54a44f344cd9103765e.js → 506.bundle.65012c25d91e5be25425.js} +0 -0
  29. /package/dist/{687.bundle.2de3c342a07c51febc7d.js → 687.bundle.72ba0b232154d01b3b5c.js} +0 -0
  30. /package/dist/{814.bundle.4fb84b711e1be0d81358.js → 814.bundle.f6d799e21bcc5b5b0ab3.js} +0 -0
@@ -31,8 +31,8 @@ var src = __webpack_require__(71771);
31
31
  var esm = __webpack_require__(45451);
32
32
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/index.js + 454 modules
33
33
  var dist_esm = __webpack_require__(76634);
34
- // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 375 modules
35
- var core_dist_esm = __webpack_require__(56846);
34
+ // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 376 modules
35
+ var core_dist_esm = __webpack_require__(64225);
36
36
  // EXTERNAL MODULE: ../../../extensions/cornerstone-dicom-sr/src/tools/modules/dicomSRModule.js
37
37
  var dicomSRModule = __webpack_require__(64035);
38
38
  ;// CONCATENATED MODULE: ../../../extensions/cornerstone-dicom-sr/src/constants/scoordTypes.js
@@ -1542,7 +1542,7 @@ const dicomSRExtension = {
1542
1542
  /* harmony export */ yR: () => (/* binding */ getTrackingUniqueIdentifiersForElement)
1543
1543
  /* harmony export */ });
1544
1544
  /* unused harmony export setActiveTrackingUniqueIdentifierForElement */
1545
- /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(56846);
1545
+ /* harmony import */ var _cornerstonejs_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(64225);
1546
1546
 
1547
1547
  const state = {
1548
1548
  TrackingUniqueIdentifier: null,
@@ -1603,8 +1603,8 @@ __webpack_require__.d(__webpack_exports__, {
1603
1603
  Z: () => (/* binding */ hydrateStructuredReport)
1604
1604
  });
1605
1605
 
1606
- // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 375 modules
1607
- var esm = __webpack_require__(56846);
1606
+ // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 376 modules
1607
+ var esm = __webpack_require__(64225);
1608
1608
  // EXTERNAL MODULE: ../../core/src/index.ts + 65 modules
1609
1609
  var src = __webpack_require__(71771);
1610
1610
  ;// CONCATENATED MODULE: ../../../extensions/cornerstone-dicom-sr/src/utils/getLabelFromDCMJSImportedToolData.js
@@ -21,12 +21,12 @@ var prop_types = __webpack_require__(3827);
21
21
  var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types);
22
22
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/index.js + 454 modules
23
23
  var esm = __webpack_require__(76634);
24
- // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 375 modules
25
- var dist_esm = __webpack_require__(56846);
24
+ // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 376 modules
25
+ var dist_esm = __webpack_require__(64225);
26
26
  // EXTERNAL MODULE: ../../core/src/index.ts + 65 modules
27
27
  var src = __webpack_require__(71771);
28
28
  // EXTERNAL MODULE: ../../ui/src/index.js + 487 modules
29
- var ui_src = __webpack_require__(89556);
29
+ var ui_src = __webpack_require__(18414);
30
30
  // EXTERNAL MODULE: ../../../extensions/cornerstone/src/state.ts
31
31
  var state = __webpack_require__(73704);
32
32
  ;// CONCATENATED MODULE: ../../../extensions/cornerstone/src/Viewport/OHIFCornerstoneViewport.css
@@ -624,7 +624,7 @@ CustomizableViewportOverlay.propTypes = {
624
624
  };
625
625
  /* harmony default export */ const Overlays_CustomizableViewportOverlay = (CustomizableViewportOverlay);
626
626
  // EXTERNAL MODULE: ../../../node_modules/classnames/index.js
627
- var classnames = __webpack_require__(44921);
627
+ var classnames = __webpack_require__(33901);
628
628
  var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
629
629
  ;// CONCATENATED MODULE: ../../../extensions/cornerstone/src/Viewport/Overlays/ViewportOrientationMarkers.css
630
630
  // extracted by mini-css-extract-plugin
@@ -1216,6 +1216,11 @@ const OHIFCornerstoneViewport = /*#__PURE__*/react.memo(props => {
1216
1216
  const syncGroups = viewportInfo.getSyncGroups();
1217
1217
  toolGroupService.addViewportToToolGroup(viewportId, renderingEngineId, toolGroupId);
1218
1218
  syncGroupService.addViewportToSyncGroup(viewportId, renderingEngineId, syncGroups);
1219
+ const synchronizersStore = stateSyncService.getState().synchronizersStore;
1220
+ if (synchronizersStore?.[viewportId]?.length) {
1221
+ // If the viewport used to have a synchronizer, re apply it again
1222
+ _rehydrateSynchronizers(synchronizersStore, viewportId, syncGroupService);
1223
+ }
1219
1224
  if (onElementEnabled) {
1220
1225
  onElementEnabled(evt);
1221
1226
  }
@@ -1231,13 +1236,17 @@ const OHIFCornerstoneViewport = /*#__PURE__*/react.memo(props => {
1231
1236
  if (!viewportInfo) {
1232
1237
  return;
1233
1238
  }
1234
- cleanUpServices(viewportInfo);
1235
1239
  cornerstoneViewportService.storePresentation({
1236
1240
  viewportId
1237
1241
  });
1242
+
1243
+ // This should be done after the store presentation since synchronizers
1244
+ // will get cleaned up and they need the viewportInfo to be present
1245
+ cleanUpServices(viewportInfo);
1238
1246
  if (onElementDisabled) {
1239
1247
  onElementDisabled(viewportInfo);
1240
1248
  }
1249
+ cornerstoneViewportService.disableElement(viewportId);
1241
1250
  dist_esm.eventTarget.removeEventListener(dist_esm.Enums.Events.ELEMENT_ENABLED, elementEnabledHandler);
1242
1251
  };
1243
1252
  }, []);
@@ -1489,6 +1498,42 @@ function _jumpToMeasurement(measurement, targetElementRef, viewportId, measureme
1489
1498
  cacheJumpToMeasurementEvent = null;
1490
1499
  }
1491
1500
  }
1501
+ function _rehydrateSynchronizers(synchronizersStore, viewportId, syncGroupService) {
1502
+ synchronizersStore[viewportId].forEach(synchronizerObj => {
1503
+ if (!synchronizerObj.id) {
1504
+ return;
1505
+ }
1506
+ const {
1507
+ id,
1508
+ sourceViewports,
1509
+ targetViewports
1510
+ } = synchronizerObj;
1511
+ const synchronizer = syncGroupService.getSynchronizer(id);
1512
+ if (!synchronizer) {
1513
+ return;
1514
+ }
1515
+ const sourceViewportInfo = sourceViewports.find(sourceViewport => sourceViewport.viewportId === viewportId);
1516
+ const targetViewportInfo = targetViewports.find(targetViewport => targetViewport.viewportId === viewportId);
1517
+ const isSourceViewportInSynchronizer = synchronizer.getSourceViewports().find(sourceViewport => sourceViewport.viewportId === viewportId);
1518
+ const isTargetViewportInSynchronizer = synchronizer.getTargetViewports().find(targetViewport => targetViewport.viewportId === viewportId);
1519
+
1520
+ // if the viewport was previously a source viewport, add it again
1521
+ if (sourceViewportInfo && !isSourceViewportInSynchronizer) {
1522
+ synchronizer.addSource({
1523
+ viewportId: sourceViewportInfo.viewportId,
1524
+ renderingEngineId: sourceViewportInfo.renderingEngineId
1525
+ });
1526
+ }
1527
+
1528
+ // if the viewport was previously a target viewport, add it again
1529
+ if (targetViewportInfo && !isTargetViewportInSynchronizer) {
1530
+ synchronizer.addTarget({
1531
+ viewportId: targetViewportInfo.viewportId,
1532
+ renderingEngineId: targetViewportInfo.renderingEngineId
1533
+ });
1534
+ }
1535
+ });
1536
+ }
1492
1537
 
1493
1538
  // Component displayName
1494
1539
  OHIFCornerstoneViewport.displayName = 'OHIFCornerstoneViewport';
@@ -17,7 +17,7 @@ __webpack_require__.d(__webpack_exports__, {
17
17
  // EXTERNAL MODULE: ../../core/src/index.ts + 65 modules
18
18
  var src = __webpack_require__(71771);
19
19
  // EXTERNAL MODULE: ../../ui/src/index.js + 487 modules
20
- var ui_src = __webpack_require__(89556);
20
+ var ui_src = __webpack_require__(18414);
21
21
  ;// CONCATENATED MODULE: ../../../modes/longitudinal/src/toolbarButtons.ts
22
22
  // TODO: torn, can either bake this here; or have to create a whole new button type
23
23
  // Only ways that you can pass in a custom React component for render :l
@@ -518,8 +518,8 @@ function initToolGroups(extensionManager, toolGroupService, commandsManager) {
518
518
  initVolume3DToolGroup(extensionManager, toolGroupService);
519
519
  }
520
520
  /* harmony default export */ const src_initToolGroups = (initToolGroups);
521
- // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 375 modules
522
- var esm = __webpack_require__(56846);
521
+ // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 376 modules
522
+ var esm = __webpack_require__(64225);
523
523
  ;// CONCATENATED MODULE: ../../../modes/longitudinal/src/moreTools.ts
524
524
 
525
525
 
@@ -563,12 +563,12 @@ const moreTools = [{
563
563
  commandName: 'flipViewportHorizontal',
564
564
  commandOptions: {},
565
565
  context: 'CORNERSTONE'
566
- }], 'Flip Horizontal'), src/* ToolbarService */.Ok._createToggleButton('StackImageSync', 'link', 'Stack Image Sync', [{
567
- commandName: 'toggleStackImageSync'
566
+ }], 'Flip Horizontal'), src/* ToolbarService */.Ok._createToggleButton('ImageSliceSync', 'link', 'Image Slice Sync', [{
567
+ commandName: 'toggleImageSliceSync'
568
568
  }], 'Enable position synchronization on stack viewports', {
569
569
  listeners: {
570
570
  [esm.EVENTS.STACK_VIEWPORT_NEW_STACK]: {
571
- commandName: 'toggleStackImageSync',
571
+ commandName: 'toggleImageSliceSync',
572
572
  commandOptions: {
573
573
  toggledState: true
574
574
  }
@@ -707,12 +707,12 @@ const moreToolsMpr = [{
707
707
  commandName: 'resetViewport',
708
708
  commandOptions: {},
709
709
  context: 'CORNERSTONE'
710
- }], 'Reset'), src/* ToolbarService */.Ok._createToggleButton('StackImageSync', 'link', 'Stack Image Sync', [{
711
- commandName: 'toggleStackImageSync'
710
+ }], 'Reset'), src/* ToolbarService */.Ok._createToggleButton('ImageSliceSync', 'link', 'Image Slice Sync', [{
711
+ commandName: 'toggleImageSliceSync'
712
712
  }], 'Enable position synchronization on stack viewports', {
713
713
  listeners: {
714
714
  [esm.EVENTS.STACK_VIEWPORT_NEW_STACK]: {
715
- commandName: 'toggleStackImageSync',
715
+ commandName: 'toggleImageSliceSync',
716
716
  commandOptions: {
717
717
  toggledState: true
718
718
  }
@@ -21,7 +21,7 @@ var es = __webpack_require__(261);
21
21
  // EXTERNAL MODULE: ../../../node_modules/@xstate/react/es/index.js + 8 modules
22
22
  var react_es = __webpack_require__(44530);
23
23
  // EXTERNAL MODULE: ../../ui/src/index.js + 487 modules
24
- var src = __webpack_require__(89556);
24
+ var src = __webpack_require__(18414);
25
25
  ;// CONCATENATED MODULE: ../../../extensions/measurement-tracking/src/contexts/TrackedMeasurementsContext/measurementTrackingMachine.js
26
26
 
27
27
  const RESPONSE = {
@@ -1105,7 +1105,7 @@ var es = __webpack_require__(69190);
1105
1105
  // EXTERNAL MODULE: ../../core/src/index.ts + 65 modules
1106
1106
  var src = __webpack_require__(71771);
1107
1107
  // EXTERNAL MODULE: ../../ui/src/index.js + 487 modules
1108
- var ui_src = __webpack_require__(89556);
1108
+ var ui_src = __webpack_require__(18414);
1109
1109
  ;// CONCATENATED MODULE: ../../../extensions/measurement-tracking/src/panels/PanelStudyBrowserTracking/PanelStudyBrowserTracking.tsx
1110
1110
 
1111
1111
 
@@ -15,7 +15,7 @@ __webpack_require__.d(__webpack_exports__, {
15
15
  // EXTERNAL MODULE: ../../core/src/index.ts + 65 modules
16
16
  var src = __webpack_require__(71771);
17
17
  // EXTERNAL MODULE: ../../ui/src/index.js + 487 modules
18
- var ui_src = __webpack_require__(89556);
18
+ var ui_src = __webpack_require__(18414);
19
19
  ;// CONCATENATED MODULE: ../../../modes/basic-test-mode/src/toolbarButtons.ts
20
20
  // TODO: torn, can either bake this here; or have to create a whole new button type
21
21
  // Only ways that you can pass in a custom React component for render :l
@@ -536,8 +536,8 @@ function initToolGroups(extensionManager, toolGroupService, commandsManager) {
536
536
  initMPRToolGroup(extensionManager, toolGroupService, commandsManager);
537
537
  }
538
538
  /* harmony default export */ const src_initToolGroups = (initToolGroups);
539
- // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 375 modules
540
- var esm = __webpack_require__(56846);
539
+ // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 376 modules
540
+ var esm = __webpack_require__(64225);
541
541
  ;// CONCATENATED MODULE: ../../../modes/basic-test-mode/src/moreTools.ts
542
542
 
543
543
 
@@ -577,12 +577,12 @@ const moreTools = [{
577
577
  commandName: 'flipViewportHorizontal',
578
578
  commandOptions: {},
579
579
  context: 'CORNERSTONE'
580
- }], 'Flip Horizontally'), src/* ToolbarService */.Ok._createToggleButton('StackImageSync', 'link', 'Stack Image Sync', [{
581
- commandName: 'toggleStackImageSync'
580
+ }], 'Flip Horizontally'), src/* ToolbarService */.Ok._createToggleButton('ImageSliceSync', 'link', 'Image Slice Sync', [{
581
+ commandName: 'toggleImageSliceSync'
582
582
  }], 'Enable position synchronization on stack viewports', {
583
583
  listeners: {
584
584
  [esm.EVENTS.STACK_VIEWPORT_NEW_STACK]: {
585
- commandName: 'toggleStackImageSync',
585
+ commandName: 'toggleImageSliceSync',
586
586
  commandOptions: {
587
587
  toggledState: true
588
588
  }
@@ -867,7 +867,7 @@ MeasurementReport$1.CORNERSTONE_TOOL_CLASSES_BY_TOOL_TYPE = {};
867
867
 
868
868
  var CORNERSTONE_4_TAG = "cornerstoneTools@^4.0.0";
869
869
 
870
- var TID300Length$1 = dcmjs__WEBPACK_IMPORTED_MODULE_0__/* .utilities */ .hC.TID300.Length;
870
+ var TID300Length$2 = dcmjs__WEBPACK_IMPORTED_MODULE_0__/* .utilities */ .hC.TID300.Length;
871
871
  var LENGTH$1 = "Length";
872
872
  var Length$1 = /*#__PURE__*/function () {
873
873
  function Length() {
@@ -928,7 +928,7 @@ var Length$1 = /*#__PURE__*/function () {
928
928
  }();
929
929
  Length$1.toolType = LENGTH$1;
930
930
  Length$1.utilityToolType = LENGTH$1;
931
- Length$1.TID300Representation = TID300Length$1;
931
+ Length$1.TID300Representation = TID300Length$2;
932
932
  Length$1.isValidCornerstoneTrackingIdentifier = function (TrackingIdentifier) {
933
933
  if (!TrackingIdentifier.includes(":")) {
934
934
  return false;
@@ -3896,7 +3896,7 @@ var MeasurementReport = /** @class */ (function () {
3896
3896
 
3897
3897
  var TID300Point$1 = dcmjs__WEBPACK_IMPORTED_MODULE_0__/* .utilities */ .hC.TID300.Point;
3898
3898
  var ARROW_ANNOTATE = "ArrowAnnotate";
3899
- var trackingIdentifierTextValue$7 = "".concat(CORNERSTONE_3D_TAG, ":").concat(ARROW_ANNOTATE);
3899
+ var trackingIdentifierTextValue$8 = "".concat(CORNERSTONE_3D_TAG, ":").concat(ARROW_ANNOTATE);
3900
3900
  var codeValues = CodingScheme.codeValues,
3901
3901
  CodingSchemeDesignator = CodingScheme.CodingSchemeDesignator;
3902
3902
  var ArrowAnnotate = /*#__PURE__*/function () {
@@ -3975,7 +3975,7 @@ var ArrowAnnotate = /*#__PURE__*/function () {
3975
3975
  x: pointImage[0],
3976
3976
  y: pointImage[1]
3977
3977
  }],
3978
- trackingIdentifierTextValue: trackingIdentifierTextValue$7,
3978
+ trackingIdentifierTextValue: trackingIdentifierTextValue$8,
3979
3979
  findingSites: findingSites || []
3980
3980
  };
3981
3981
 
@@ -4015,7 +4015,7 @@ var TID300Bidirectional = dcmjs__WEBPACK_IMPORTED_MODULE_0__/* .utilities */ .hC
4015
4015
  var BIDIRECTIONAL = "Bidirectional";
4016
4016
  var LONG_AXIS = "Long Axis";
4017
4017
  var SHORT_AXIS = "Short Axis";
4018
- var trackingIdentifierTextValue$6 = "".concat(CORNERSTONE_3D_TAG, ":").concat(BIDIRECTIONAL);
4018
+ var trackingIdentifierTextValue$7 = "".concat(CORNERSTONE_3D_TAG, ":").concat(BIDIRECTIONAL);
4019
4019
  var Bidirectional = /** @class */ (function () {
4020
4020
  function Bidirectional() {
4021
4021
  }
@@ -4118,7 +4118,7 @@ var Bidirectional = /** @class */ (function () {
4118
4118
  },
4119
4119
  longAxisLength: length,
4120
4120
  shortAxisLength: width,
4121
- trackingIdentifierTextValue: trackingIdentifierTextValue$6,
4121
+ trackingIdentifierTextValue: trackingIdentifierTextValue$7,
4122
4122
  finding: finding,
4123
4123
  findingSites: findingSites || []
4124
4124
  };
@@ -4142,7 +4142,7 @@ MeasurementReport.registerTool(Bidirectional);
4142
4142
 
4143
4143
  var TID300CobbAngle$1 = dcmjs__WEBPACK_IMPORTED_MODULE_0__/* .utilities */ .hC.TID300.CobbAngle;
4144
4144
  var MEASUREMENT_TYPE$1 = "Angle";
4145
- var trackingIdentifierTextValue$5 = "".concat(CORNERSTONE_3D_TAG, ":").concat(MEASUREMENT_TYPE$1);
4145
+ var trackingIdentifierTextValue$6 = "".concat(CORNERSTONE_3D_TAG, ":").concat(MEASUREMENT_TYPE$1);
4146
4146
  var Angle = /** @class */ (function () {
4147
4147
  function Angle() {
4148
4148
  }
@@ -4202,7 +4202,7 @@ var Angle = /** @class */ (function () {
4202
4202
  point3: point3,
4203
4203
  point4: point4,
4204
4204
  rAngle: angle,
4205
- trackingIdentifierTextValue: trackingIdentifierTextValue$5,
4205
+ trackingIdentifierTextValue: trackingIdentifierTextValue$6,
4206
4206
  finding: finding,
4207
4207
  findingSites: findingSites || []
4208
4208
  };
@@ -4226,7 +4226,7 @@ MeasurementReport.registerTool(Angle);
4226
4226
 
4227
4227
  var TID300CobbAngle = dcmjs__WEBPACK_IMPORTED_MODULE_0__/* .utilities */ .hC.TID300.CobbAngle;
4228
4228
  var MEASUREMENT_TYPE = "CobbAngle";
4229
- var trackingIdentifierTextValue$4 = "".concat(CORNERSTONE_3D_TAG, ":").concat(MEASUREMENT_TYPE);
4229
+ var trackingIdentifierTextValue$5 = "".concat(CORNERSTONE_3D_TAG, ":").concat(MEASUREMENT_TYPE);
4230
4230
  var CobbAngle = /** @class */ (function () {
4231
4231
  function CobbAngle() {
4232
4232
  }
@@ -4291,7 +4291,7 @@ var CobbAngle = /** @class */ (function () {
4291
4291
  point3: point3,
4292
4292
  point4: point4,
4293
4293
  rAngle: angle,
4294
- trackingIdentifierTextValue: trackingIdentifierTextValue$4,
4294
+ trackingIdentifierTextValue: trackingIdentifierTextValue$5,
4295
4295
  finding: finding,
4296
4296
  findingSites: findingSites || []
4297
4297
  };
@@ -4555,7 +4555,7 @@ MeasurementReport.registerTool(EllipticalROI);
4555
4555
 
4556
4556
  var TID300Polyline$1 = dcmjs__WEBPACK_IMPORTED_MODULE_0__/* .utilities */ .hC.TID300.Polyline;
4557
4557
  var TOOLTYPE = "RectangleROI";
4558
- var trackingIdentifierTextValue$3 = "".concat(CORNERSTONE_3D_TAG, ":").concat(TOOLTYPE);
4558
+ var trackingIdentifierTextValue$4 = "".concat(CORNERSTONE_3D_TAG, ":").concat(TOOLTYPE);
4559
4559
  var RectangleROI = /** @class */ (function () {
4560
4560
  function RectangleROI() {
4561
4561
  }
@@ -4618,7 +4618,7 @@ var RectangleROI = /** @class */ (function () {
4618
4618
  ],
4619
4619
  area: area,
4620
4620
  perimeter: perimeter,
4621
- trackingIdentifierTextValue: trackingIdentifierTextValue$3,
4621
+ trackingIdentifierTextValue: trackingIdentifierTextValue$4,
4622
4622
  finding: finding,
4623
4623
  findingSites: findingSites || []
4624
4624
  };
@@ -4640,9 +4640,9 @@ var RectangleROI = /** @class */ (function () {
4640
4640
  }());
4641
4641
  MeasurementReport.registerTool(RectangleROI);
4642
4642
 
4643
- var TID300Length = dcmjs__WEBPACK_IMPORTED_MODULE_0__/* .utilities */ .hC.TID300.Length;
4643
+ var TID300Length$1 = dcmjs__WEBPACK_IMPORTED_MODULE_0__/* .utilities */ .hC.TID300.Length;
4644
4644
  var LENGTH = "Length";
4645
- var trackingIdentifierTextValue$2 = "".concat(CORNERSTONE_3D_TAG, ":").concat(LENGTH);
4645
+ var trackingIdentifierTextValue$3 = "".concat(CORNERSTONE_3D_TAG, ":").concat(LENGTH);
4646
4646
  var Length = /*#__PURE__*/function () {
4647
4647
  function Length() {
4648
4648
  _classCallCheck(this, Length);
@@ -4710,7 +4710,7 @@ var Length = /*#__PURE__*/function () {
4710
4710
  point1: point1,
4711
4711
  point2: point2,
4712
4712
  distance: distance,
4713
- trackingIdentifierTextValue: trackingIdentifierTextValue$2,
4713
+ trackingIdentifierTextValue: trackingIdentifierTextValue$3,
4714
4714
  finding: finding,
4715
4715
  findingSites: findingSites || []
4716
4716
  };
@@ -4720,7 +4720,7 @@ var Length = /*#__PURE__*/function () {
4720
4720
  }();
4721
4721
  Length.toolType = LENGTH;
4722
4722
  Length.utilityToolType = LENGTH;
4723
- Length.TID300Representation = TID300Length;
4723
+ Length.TID300Representation = TID300Length$1;
4724
4724
  Length.isValidCornerstoneTrackingIdentifier = function (TrackingIdentifier) {
4725
4725
  if (!TrackingIdentifier.includes(":")) {
4726
4726
  return false;
@@ -4738,7 +4738,7 @@ MeasurementReport.registerTool(Length);
4738
4738
 
4739
4739
  var TID300Polyline = dcmjs__WEBPACK_IMPORTED_MODULE_0__/* .utilities */ .hC.TID300.Polyline;
4740
4740
  var PLANARFREEHANDROI = "PlanarFreehandROI";
4741
- var trackingIdentifierTextValue$1 = "".concat(CORNERSTONE_3D_TAG, ":").concat(PLANARFREEHANDROI);
4741
+ var trackingIdentifierTextValue$2 = "".concat(CORNERSTONE_3D_TAG, ":").concat(PLANARFREEHANDROI);
4742
4742
  var closedContourThreshold = 1e-5;
4743
4743
  var PlanarFreehandROI = /** @class */ (function () {
4744
4744
  function PlanarFreehandROI() {
@@ -4803,7 +4803,7 @@ var PlanarFreehandROI = /** @class */ (function () {
4803
4803
  points: points,
4804
4804
  area: area,
4805
4805
  perimeter: perimeter,
4806
- trackingIdentifierTextValue: trackingIdentifierTextValue$1,
4806
+ trackingIdentifierTextValue: trackingIdentifierTextValue$2,
4807
4807
  finding: finding,
4808
4808
  findingSites: findingSites || []
4809
4809
  };
@@ -4827,7 +4827,7 @@ MeasurementReport.registerTool(PlanarFreehandROI);
4827
4827
 
4828
4828
  var TID300Point = dcmjs__WEBPACK_IMPORTED_MODULE_0__/* .utilities */ .hC.TID300.Point;
4829
4829
  var PROBE = "Probe";
4830
- var trackingIdentifierTextValue = "".concat(CORNERSTONE_3D_TAG, ":").concat(PROBE);
4830
+ var trackingIdentifierTextValue$1 = "".concat(CORNERSTONE_3D_TAG, ":").concat(PROBE);
4831
4831
  var Probe = /*#__PURE__*/function () {
4832
4832
  function Probe() {
4833
4833
  _classCallCheck(this, Probe);
@@ -4880,7 +4880,7 @@ var Probe = /*#__PURE__*/function () {
4880
4880
  });
4881
4881
  var TID300RepresentationArguments = {
4882
4882
  points: pointsImage,
4883
- trackingIdentifierTextValue: trackingIdentifierTextValue,
4883
+ trackingIdentifierTextValue: trackingIdentifierTextValue$1,
4884
4884
  findingSites: findingSites || [],
4885
4885
  finding: finding
4886
4886
  };
@@ -4907,6 +4907,75 @@ Probe.isValidCornerstoneTrackingIdentifier = function (TrackingIdentifier) {
4907
4907
  };
4908
4908
  MeasurementReport.registerTool(Probe);
4909
4909
 
4910
+ var TID300Length = dcmjs__WEBPACK_IMPORTED_MODULE_0__/* .utilities */ .hC.TID300.Length;
4911
+ var ULTRASOUND_DIRECTIONAL = "UltrasoundDirectionalTool";
4912
+ var trackingIdentifierTextValue = "".concat(CORNERSTONE_3D_TAG, ":").concat(ULTRASOUND_DIRECTIONAL);
4913
+ var UltrasoundDirectional = /** @class */ (function () {
4914
+ function UltrasoundDirectional() {
4915
+ }
4916
+ // TODO: this function is required for all Cornerstone Tool Adapters, since it is called by MeasurementReport.
4917
+ UltrasoundDirectional.getMeasurementData = function (MeasurementGroup, sopInstanceUIDToImageIdMap, imageToWorldCoords, metadata) {
4918
+ var _a = MeasurementReport.getSetupMeasurementData(MeasurementGroup, sopInstanceUIDToImageIdMap, metadata, UltrasoundDirectional.toolType), defaultState = _a.defaultState, SCOORDGroup = _a.SCOORDGroup, ReferencedFrameNumber = _a.ReferencedFrameNumber;
4919
+ var referencedImageId = defaultState.annotation.metadata.referencedImageId;
4920
+ var GraphicData = SCOORDGroup.GraphicData;
4921
+ var worldCoords = [];
4922
+ for (var i = 0; i < GraphicData.length; i += 2) {
4923
+ var point = imageToWorldCoords(referencedImageId, [
4924
+ GraphicData[i],
4925
+ GraphicData[i + 1]
4926
+ ]);
4927
+ worldCoords.push(point);
4928
+ }
4929
+ var state = defaultState;
4930
+ state.annotation.data = {
4931
+ handles: {
4932
+ points: [worldCoords[0], worldCoords[1]],
4933
+ activeHandleIndex: 0,
4934
+ textBox: {
4935
+ hasMoved: false
4936
+ }
4937
+ },
4938
+ cachedStats: {},
4939
+ frameNumber: ReferencedFrameNumber
4940
+ };
4941
+ return state;
4942
+ };
4943
+ UltrasoundDirectional.getTID300RepresentationArguments = function (tool, worldToImageCoords) {
4944
+ var data = tool.data, finding = tool.finding, findingSites = tool.findingSites, metadata = tool.metadata;
4945
+ var handles = data.handles;
4946
+ var referencedImageId = metadata.referencedImageId;
4947
+ if (!referencedImageId) {
4948
+ throw new Error("UltrasoundDirectionalTool.getTID300RepresentationArguments: referencedImageId is not defined");
4949
+ }
4950
+ var start = worldToImageCoords(referencedImageId, handles.points[0]);
4951
+ var end = worldToImageCoords(referencedImageId, handles.points[1]);
4952
+ var point1 = { x: start[0], y: start[1] };
4953
+ var point2 = { x: end[0], y: end[1] };
4954
+ return {
4955
+ point1: point1,
4956
+ point2: point2,
4957
+ trackingIdentifierTextValue: trackingIdentifierTextValue,
4958
+ finding: finding,
4959
+ findingSites: findingSites || []
4960
+ };
4961
+ };
4962
+ UltrasoundDirectional.toolType = ULTRASOUND_DIRECTIONAL;
4963
+ UltrasoundDirectional.utilityToolType = ULTRASOUND_DIRECTIONAL;
4964
+ UltrasoundDirectional.TID300Representation = TID300Length;
4965
+ UltrasoundDirectional.isValidCornerstoneTrackingIdentifier = function (TrackingIdentifier) {
4966
+ if (!TrackingIdentifier.includes(":")) {
4967
+ return false;
4968
+ }
4969
+ var _a = TrackingIdentifier.split(":"), cornerstone3DTag = _a[0], toolType = _a[1];
4970
+ if (cornerstone3DTag !== CORNERSTONE_3D_TAG) {
4971
+ return false;
4972
+ }
4973
+ return toolType === ULTRASOUND_DIRECTIONAL;
4974
+ };
4975
+ return UltrasoundDirectional;
4976
+ }());
4977
+ MeasurementReport.registerTool(UltrasoundDirectional);
4978
+
4910
4979
  var Normalizer = dcmjs__WEBPACK_IMPORTED_MODULE_0__/* .normalizers */ .oq.Normalizer;
4911
4980
  var SegmentationDerivation = dcmjs__WEBPACK_IMPORTED_MODULE_0__/* .derivations */ .U7.Segmentation;
4912
4981
  /**
@@ -17558,6 +17627,7 @@ var Cornerstone3DSR = {
17558
17627
  ArrowAnnotate: ArrowAnnotate,
17559
17628
  Probe: Probe,
17560
17629
  PlanarFreehandROI: PlanarFreehandROI,
17630
+ UltrasoundDirectional: UltrasoundDirectional,
17561
17631
  MeasurementReport: MeasurementReport,
17562
17632
  CodeScheme: CodingScheme,
17563
17633
  CORNERSTONE_3D_TAG: CORNERSTONE_3D_TAG
@@ -23,12 +23,12 @@ var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types);
23
23
  var lodash_debounce = __webpack_require__(8324);
24
24
  var lodash_debounce_default = /*#__PURE__*/__webpack_require__.n(lodash_debounce);
25
25
  // EXTERNAL MODULE: ../../ui/src/index.js + 487 modules
26
- var src = __webpack_require__(89556);
26
+ var src = __webpack_require__(18414);
27
27
  ;// CONCATENATED MODULE: ../../../extensions/dicom-microscopy/src/DicomMicroscopyViewport.css
28
28
  // extracted by mini-css-extract-plugin
29
29
 
30
30
  // EXTERNAL MODULE: ../../../node_modules/classnames/index.js
31
- var classnames = __webpack_require__(44921);
31
+ var classnames = __webpack_require__(33901);
32
32
  var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
33
33
  ;// CONCATENATED MODULE: ../../../extensions/dicom-microscopy/src/components/ViewportOverlay/listComponentGenerator.tsx
34
34
  const listComponentGenerator = props => {
@@ -59,8 +59,8 @@ const listComponentGenerator = props => {
59
59
 
60
60
  // EXTERNAL MODULE: ../../../node_modules/moment/moment.js
61
61
  var moment_moment = __webpack_require__(71271);
62
- // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 375 modules
63
- var esm = __webpack_require__(56846);
62
+ // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 376 modules
63
+ var esm = __webpack_require__(64225);
64
64
  ;// CONCATENATED MODULE: ../../../extensions/dicom-microscopy/src/components/ViewportOverlay/utils.ts
65
65
 
66
66