@ohif/app 3.8.0-beta.6 → 3.8.0-beta.61

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 (61) hide show
  1. package/dist/{220.bundle.f7e1c96c94245e70f2be.js → 109.bundle.b4fee2a22b622839baf5.js} +4466 -3715
  2. package/dist/{471.bundle.b3d77b83b1593c09a504.js → 121.bundle.ed23e7752a11005322e6.js} +47 -51
  3. package/dist/{19.bundle.f6ac71d29001b0db0ec0.js → 155.bundle.3879b7d76680473fa69f.js} +198 -207
  4. package/dist/{687.bundle.f87fb1a36ef1ca951690.js → 164.bundle.80b2977d58cd927397c2.js} +22 -38
  5. package/dist/17dd54813d5acc10bf8f.wasm +0 -0
  6. package/dist/{506.bundle.06f5c5620d0088ec0102.js → 188.bundle.eca333a03f6b311bf2e6.js} +23 -28
  7. package/dist/191.bundle.4850ab82949bb6f0eb73.js +30339 -0
  8. package/dist/20fc4c659b85ccd2a9c0.wasm +0 -0
  9. package/dist/{126.bundle.cefdf26c03a5ab8d60c8.js → 250.bundle.a02414ebc6fed29530e7.js} +63 -69
  10. package/dist/{236.bundle.3148dc4715c254801727.js → 270.bundle.94f5c172fb943bda1d03.js} +156 -178
  11. package/dist/290.bundle.8b4d7dfbc7cfe418a0f1.js +8883 -0
  12. package/dist/{451.bundle.9fd36f52ff69594f0669.js → 295.bundle.462f3328c716cbe6c613.js} +45 -59
  13. package/dist/{125.bundle.253395f320b72180da63.js → 297.bundle.81d63bb0b66d63df6d86.js} +7 -8
  14. package/dist/{613.bundle.a0eee4dc2d2764c2f7cd.js → 317.bundle.d51f1681f4bdc829be5b.js} +83 -57
  15. package/dist/{788.bundle.af903bf0598f0ad618e3.js → 339.bundle.5691c7bc4504f1e4c3b2.js} +190 -239
  16. package/dist/{202.bundle.d3490836f71e001dd30f.js → 342.bundle.a039c24e9f661f3b884d.js} +544 -860
  17. package/dist/{221.bundle.3f5f700b4c1ee8b1ce94.js → 50.bundle.d3eccf1a90cad61405c0.js} +199 -189
  18. package/dist/{957.bundle.9ea4506963ef8b2d84ba.js → 504.bundle.aa165082e2acc5ccf080.js} +14338 -27291
  19. package/dist/{886.bundle.d5116d9b8ea4964b68a0.js → 530.bundle.ce13c30b93a28cc85098.js} +40 -44
  20. package/dist/{250.bundle.8084960e3318cda37317.js → 544.bundle.3cf20da53f349abd8d67.js} +39 -44
  21. package/dist/{663.bundle.e3539f14edf9214e07eb.js → 559.bundle.146b02440e81f9fffea3.js} +149 -141
  22. package/dist/{410.bundle.5e16274b1082de6e127e.js → 594.bundle.76e05b71ad06361c9de9.js} +31 -35
  23. package/dist/{774.bundle.4b2dc46a35012b898e1a.js → 644.bundle.1e77691d2eeb96a423b0.js} +1852 -8945
  24. package/dist/{82.bundle.ae82f6434056c8d79fec.js → 68.bundle.ccbfa216e6d60ce3824f.js} +313 -324
  25. package/dist/{342.bundle.e485b92bd6d91bb7cc04.js → 704.bundle.042323b2cd8a9535050c.js} +1128 -737
  26. package/dist/{359.bundle.dedb5b782335939bdc52.js → 724.bundle.e821b6321fec63b9375a.js} +34 -37
  27. package/dist/{757.bundle.ec8301d8e70d2b990f65.js → 726.bundle.2bdb443d1b5620d74e6e.js} +512 -879
  28. package/dist/{530.bundle.a03b6f942ace3e1baa1e.js → 835.bundle.15aff0b7433bb0dd6d6d.js} +37 -30
  29. package/dist/{822.bundle.891f2e57b1b7bc2f4cb4.js → 862.bundle.e3fe2aae7903cc2ae8df.js} +27 -29
  30. package/dist/{181.bundle.2ddc6f90740895a3949c.js → 889.bundle.6850a0b8c412e3befab5.js} +135 -107
  31. package/dist/{181.css → 889.css} +1 -1
  32. package/dist/{281.bundle.e4c37762343dc03e4fa0.js → 905.bundle.806f0e8307eb1c9d1f6e.js} +29 -31
  33. package/dist/{814.bundle.98e400df965d000d78e6.js → 907.bundle.84dba9f6e90672071d82.js} +16 -18
  34. package/dist/{417.bundle.af0a207c29b109f84159.js → 931.bundle.d270a1fda9a2836c3cc5.js} +26 -26
  35. package/dist/{686.bundle.dccef1f36e4bc79bcc48.js → 939.bundle.84ee0b844023d924a22b.js} +7 -8
  36. package/dist/{12.bundle.75c761bd89ad782675c8.js → 961.bundle.80a864ec4e08ed7bb3b7.js} +16 -18
  37. package/dist/{776.bundle.08eb381dc3d06708eb0f.js → 963.bundle.f9511286d05982090a14.js} +1629 -845
  38. package/dist/987.bundle.e7c041a6dfb4ddb41813.js +122926 -0
  39. package/dist/{app.bundle.eeb94536f34535b1153f.js → app.bundle.2399e4eb1c8930ab9c5e.js} +142184 -60944
  40. package/dist/app.bundle.css +11 -11
  41. package/dist/cornerstoneDICOMImageLoader.min.js +1 -1
  42. package/dist/cornerstoneDICOMImageLoader.min.js.map +1 -1
  43. package/dist/{dicom-microscopy-viewer.bundle.2c146384eb9466d02ff8.js → dicom-microscopy-viewer.bundle.d3a56dc9f62df5e11019.js} +3 -3
  44. package/dist/index.html +1 -1
  45. package/dist/{index.worker.e62ecca63f1a2e124230.worker.js → index.worker.64c896c4316fcd506666.worker.js} +2 -2
  46. package/dist/index.worker.64c896c4316fcd506666.worker.js.map +1 -0
  47. package/dist/polySeg.bundle.99be036bab9b7f011b0c.js +252 -0
  48. package/dist/serve.json +12 -0
  49. package/dist/sw.js +1 -1
  50. package/package.json +25 -22
  51. package/dist/23.bundle.e008ad788170f2ed5569.js +0 -900
  52. package/dist/604.bundle.a51f83e64004bca5f497.js +0 -1848
  53. package/dist/743.bundle.489f7df3a089d4d374e1.js +0 -78007
  54. package/dist/75788f12450d4c5ed494.wasm +0 -0
  55. package/dist/775.bundle.2285e7e0e67878948c0d.js +0 -1009
  56. package/dist/index.worker.e62ecca63f1a2e124230.worker.js.map +0 -1
  57. /package/dist/{19.css → 155.css} +0 -0
  58. /package/dist/{579.css → 481.css} +0 -0
  59. /package/dist/{221.css → 50.css} +0 -0
  60. /package/dist/{250.css → 544.css} +0 -0
  61. /package/dist/{776.css → 963.css} +0 -0
@@ -1,9 +1,9 @@
1
- (self["webpackChunk"] = self["webpackChunk"] || []).push([[236],{
1
+ "use strict";
2
+ (globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[270],{
2
3
 
3
- /***/ 80965:
4
+ /***/ 62889:
4
5
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
5
6
 
6
- "use strict";
7
7
  // ESM COMPAT FLAG
8
8
  __webpack_require__.r(__webpack_exports__);
9
9
 
@@ -13,21 +13,21 @@ __webpack_require__.d(__webpack_exports__, {
13
13
  });
14
14
 
15
15
  ;// CONCATENATED MODULE: ../../../extensions/dicom-microscopy/package.json
16
- const package_namespaceObject = JSON.parse('{"u2":"@ohif/extension-dicom-microscopy"}');
16
+ const package_namespaceObject = /*#__PURE__*/JSON.parse('{"UU":"@ohif/extension-dicom-microscopy"}');
17
17
  ;// CONCATENATED MODULE: ../../../extensions/dicom-microscopy/src/id.js
18
18
 
19
- const id = package_namespaceObject.u2;
19
+ const id = package_namespaceObject.UU;
20
20
 
21
21
  // EXTERNAL MODULE: ../../../node_modules/react/index.js
22
- var react = __webpack_require__(43001);
23
- // EXTERNAL MODULE: ../../ui/src/index.js + 485 modules
24
- var src = __webpack_require__(71783);
25
- // EXTERNAL MODULE: ../../core/src/index.ts + 65 modules
26
- var core_src = __webpack_require__(71771);
22
+ var react = __webpack_require__(41766);
23
+ // EXTERNAL MODULE: ../../ui/src/index.js + 487 modules
24
+ var src = __webpack_require__(55395);
25
+ // EXTERNAL MODULE: ../../core/src/index.ts + 66 modules
26
+ var core_src = __webpack_require__(14283);
27
27
  // EXTERNAL MODULE: ../../../node_modules/react-i18next/dist/es/index.js + 15 modules
28
- var es = __webpack_require__(69190);
29
- // EXTERNAL MODULE: ../../../node_modules/mathjs/lib/esm/index.js + 982 modules
30
- var esm = __webpack_require__(55220);
28
+ var es = __webpack_require__(80619);
29
+ // EXTERNAL MODULE: ../../../node_modules/mathjs/lib/esm/index.js + 996 modules
30
+ var esm = __webpack_require__(23109);
31
31
  ;// CONCATENATED MODULE: ../../../extensions/dicom-microscopy/src/utils/coordinateFormatScoord3d2Geometry.js
32
32
 
33
33
 
@@ -117,9 +117,9 @@ function mapSlideCoord2PixelCoord(options) {
117
117
  }
118
118
  const point = options.point;
119
119
  const m = [[orientation[0] * spacing[1], orientation[3] * spacing[0], offset[0]], [orientation[1] * spacing[1], orientation[4] * spacing[0], offset[1]], [0, 0, 1]];
120
- const mInverted = (0,esm/* inv */.JBn)(m);
120
+ const mInverted = (0,esm/* inv */.WCD)(m);
121
121
  const vSlide = [[point[0]], [point[1]], [1]];
122
- const vImage = (0,esm/* multiply */.JpY)(mInverted, vSlide);
122
+ const vImage = (0,esm/* multiply */.lwT)(mInverted, vSlide);
123
123
  const row = Number(vImage[1][0].toFixed(4));
124
124
  const col = Number(vImage[0][0].toFixed(4));
125
125
  return [col, row];
@@ -212,7 +212,7 @@ const EVENTS = {
212
212
  * ViewerManager encapsulates the complexity of the third-party viewer and
213
213
  * expose only the features/behaviors that are relevant to the application
214
214
  */
215
- class ViewerManager extends core_src/* PubSubService */.hC {
215
+ class ViewerManager extends core_src/* PubSubService */.Rc {
216
216
  constructor(viewer, viewportId, container, studyInstanceUID, seriesInstanceUID) {
217
217
  super(EVENTS);
218
218
  this.viewer = viewer;
@@ -414,11 +414,10 @@ class ViewerManager extends core_src/* PubSubService */.hC {
414
414
  * @param {object} roi.properties - ROI properties
415
415
  * @returns {void}
416
416
  */
417
- updateROIProperties(_ref) {
418
- let {
419
- uid,
420
- properties
421
- } = _ref;
417
+ updateROIProperties({
418
+ uid,
419
+ properties
420
+ }) {
422
421
  this.viewer.updateROI({
423
422
  uid,
424
423
  properties
@@ -616,10 +615,8 @@ const RoiAnnotation_EVENTS = {
616
615
  /**
617
616
  * Represents a single annotation for the Microscopy Viewer
618
617
  */
619
- class RoiAnnotation extends core_src/* PubSubService */.hC {
620
- constructor(roiGraphic, studyInstanceUID, seriesInstanceUID) {
621
- let label = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '';
622
- let viewState = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null;
618
+ class RoiAnnotation extends core_src/* PubSubService */.Rc {
619
+ constructor(roiGraphic, studyInstanceUID, seriesInstanceUID, label = '', viewState = null) {
623
620
  super(RoiAnnotation_EVENTS);
624
621
  this.uid = roiGraphic.uid;
625
622
  this.roiGraphic = roiGraphic;
@@ -770,6 +767,7 @@ class RoiAnnotation extends core_src/* PubSubService */.hC {
770
767
 
771
768
  /* harmony default export */ const utils_RoiAnnotation = (RoiAnnotation);
772
769
  ;// CONCATENATED MODULE: ../../../extensions/dicom-microscopy/src/services/MicroscopyService.ts
770
+ var _class;
773
771
 
774
772
 
775
773
 
@@ -788,7 +786,7 @@ const MicroscopyService_EVENTS = {
788
786
  * viewers and handle their ROI graphics to create, remove and modify the
789
787
  * ROI annotations relevant to the application
790
788
  */
791
- class MicroscopyService extends core_src/* PubSubService */.hC {
789
+ class MicroscopyService extends core_src/* PubSubService */.Rc {
792
790
  constructor(serviceManager) {
793
791
  super(MicroscopyService_EVENTS);
794
792
  this.serviceManager = void 0;
@@ -1304,21 +1302,16 @@ class MicroscopyService extends core_src/* PubSubService */.hC {
1304
1302
  * @param {RoiAnnotation} roiAnnotation The instance to be relabelled
1305
1303
  * @param {boolean} newAnnotation Whether the annotation is newly drawn (so it deletes on cancel).
1306
1304
  */
1307
- triggerRelabel(roiAnnotation) {
1308
- let newAnnotation = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
1309
- let onRelabel = arguments.length > 2 ? arguments[2] : undefined;
1305
+ triggerRelabel(roiAnnotation, newAnnotation = false, onRelabel) {
1310
1306
  if (!onRelabel) {
1311
- onRelabel = _ref => {
1312
- let {
1307
+ onRelabel = ({
1308
+ label
1309
+ }) => this.managedViewers.forEach(mv => mv.updateROIProperties({
1310
+ uid: roiAnnotation.uid,
1311
+ properties: {
1313
1312
  label
1314
- } = _ref;
1315
- return this.managedViewers.forEach(mv => mv.updateROIProperties({
1316
- uid: roiAnnotation.uid,
1317
- properties: {
1318
- label
1319
- }
1320
- }));
1321
- };
1313
+ }
1314
+ }));
1322
1315
  }
1323
1316
  this._broadcastEvent(MicroscopyService_EVENTS.RELABEL, {
1324
1317
  roiAnnotation,
@@ -1354,21 +1347,21 @@ class MicroscopyService extends core_src/* PubSubService */.hC {
1354
1347
  this.managedViewers.forEach(mv => mv.setROIStyle(uid, styleOptions));
1355
1348
  }
1356
1349
  }
1350
+ _class = MicroscopyService;
1357
1351
  MicroscopyService.REGISTRATION = serviceManager => {
1358
1352
  return {
1359
1353
  name: 'microscopyService',
1360
1354
  altName: 'MicroscopyService',
1361
- create: _ref2 => {
1362
- let {
1363
- configuration = {}
1364
- } = _ref2;
1365
- return new MicroscopyService(serviceManager);
1355
+ create: ({
1356
+ configuration = {}
1357
+ }) => {
1358
+ return new _class(serviceManager);
1366
1359
  }
1367
1360
  };
1368
1361
  };
1369
1362
 
1370
1363
  // EXTERNAL MODULE: ../../../node_modules/dcmjs/build/dcmjs.es.js
1371
- var dcmjs_es = __webpack_require__(67540);
1364
+ var dcmjs_es = __webpack_require__(31426);
1372
1365
  ;// CONCATENATED MODULE: ../../../extensions/dicom-microscopy/src/utils/callInputDialog.tsx
1373
1366
 
1374
1367
 
@@ -1382,19 +1375,17 @@ var dcmjs_es = __webpack_require__(67540);
1382
1375
  * @param {func} callback
1383
1376
  * @param {*} isArrowAnnotateInputDialog
1384
1377
  */
1385
- function callInputDialog(_ref) {
1386
- let {
1387
- uiDialogService,
1388
- title = 'Annotation',
1389
- defaultValue = '',
1390
- callback = (value, action) => {}
1391
- } = _ref;
1378
+ function callInputDialog({
1379
+ uiDialogService,
1380
+ title = 'Annotation',
1381
+ defaultValue = '',
1382
+ callback = (value, action) => {}
1383
+ }) {
1392
1384
  const dialogId = 'microscopy-input-dialog';
1393
- const onSubmitHandler = _ref2 => {
1394
- let {
1395
- action,
1396
- value
1397
- } = _ref2;
1385
+ const onSubmitHandler = ({
1386
+ action,
1387
+ value
1388
+ }) => {
1398
1389
  switch (action.id) {
1399
1390
  case 'save':
1400
1391
  callback(value.value, action.id);
@@ -1413,7 +1404,7 @@ function callInputDialog(_ref) {
1413
1404
  centralize: true,
1414
1405
  isDraggable: false,
1415
1406
  showOverlay: true,
1416
- content: src/* Dialog */.Vq,
1407
+ content: src/* Dialog */.lG,
1417
1408
  contentProps: {
1418
1409
  title: title,
1419
1410
  value: {
@@ -1426,19 +1417,18 @@ function callInputDialog(_ref) {
1426
1417
  actions: [{
1427
1418
  id: 'cancel',
1428
1419
  text: 'Cancel',
1429
- type: src/* ButtonEnums.type */.LZ.dt.secondary
1420
+ type: src/* ButtonEnums.type */.Ny.NW.secondary
1430
1421
  }, {
1431
1422
  id: 'save',
1432
1423
  text: 'Save',
1433
- type: src/* ButtonEnums.type */.LZ.dt.primary
1424
+ type: src/* ButtonEnums.type */.Ny.NW.primary
1434
1425
  }],
1435
1426
  onSubmit: onSubmitHandler,
1436
- body: _ref3 => {
1437
- let {
1438
- value,
1439
- setValue
1440
- } = _ref3;
1441
- return /*#__PURE__*/react.createElement(src/* Input */.II, {
1427
+ body: ({
1428
+ value,
1429
+ setValue
1430
+ }) => {
1431
+ return /*#__PURE__*/react.createElement(src/* Input */.pd, {
1442
1432
  label: "Enter your annotation",
1443
1433
  labelClassName: "text-white text-[14px] leading-[1.2]",
1444
1434
  autoFocus: true,
@@ -1485,11 +1475,10 @@ const uid = '2.25.285241207697168520771311899641885187923';
1485
1475
  *
1486
1476
  * @return Comprehensive3DSR dataset
1487
1477
  */
1488
- function constructSR(metadata, _ref, annotations) {
1489
- let {
1490
- SeriesDescription,
1491
- SeriesNumber
1492
- } = _ref;
1478
+ function constructSR(metadata, {
1479
+ SeriesDescription,
1480
+ SeriesNumber
1481
+ }, annotations) {
1493
1482
  // Handle malformed data
1494
1483
  if (!metadata.SpecimenDescriptionSequence) {
1495
1484
  metadata.SpecimenDescriptionSequence = {
@@ -1502,34 +1491,34 @@ function constructSR(metadata, _ref, annotations) {
1502
1491
  } = metadata;
1503
1492
 
1504
1493
  // construct Comprehensive3DSR dataset
1505
- const observationContext = new dcmjs_es["default"].sr.templates.ObservationContext({
1506
- observerPersonContext: new dcmjs_es["default"].sr.templates.ObserverContext({
1507
- observerType: new dcmjs_es["default"].sr.coding.CodedConcept({
1494
+ const observationContext = new dcmjs_es/* default.sr */.Ay.sr.templates.ObservationContext({
1495
+ observerPersonContext: new dcmjs_es/* default.sr */.Ay.sr.templates.ObserverContext({
1496
+ observerType: new dcmjs_es/* default.sr */.Ay.sr.coding.CodedConcept({
1508
1497
  value: '121006',
1509
1498
  schemeDesignator: 'DCM',
1510
1499
  meaning: 'Person'
1511
1500
  }),
1512
- observerIdentifyingAttributes: new dcmjs_es["default"].sr.templates.PersonObserverIdentifyingAttributes({
1501
+ observerIdentifyingAttributes: new dcmjs_es/* default.sr */.Ay.sr.templates.PersonObserverIdentifyingAttributes({
1513
1502
  name: '@ohif/extension-dicom-microscopy'
1514
1503
  })
1515
1504
  }),
1516
- observerDeviceContext: new dcmjs_es["default"].sr.templates.ObserverContext({
1517
- observerType: new dcmjs_es["default"].sr.coding.CodedConcept({
1505
+ observerDeviceContext: new dcmjs_es/* default.sr */.Ay.sr.templates.ObserverContext({
1506
+ observerType: new dcmjs_es/* default.sr */.Ay.sr.coding.CodedConcept({
1518
1507
  value: '121007',
1519
1508
  schemeDesignator: 'DCM',
1520
1509
  meaning: 'Device'
1521
1510
  }),
1522
- observerIdentifyingAttributes: new dcmjs_es["default"].sr.templates.DeviceObserverIdentifyingAttributes({
1511
+ observerIdentifyingAttributes: new dcmjs_es/* default.sr */.Ay.sr.templates.DeviceObserverIdentifyingAttributes({
1523
1512
  uid: DEVICE_OBSERVER_UID
1524
1513
  })
1525
1514
  }),
1526
- subjectContext: new dcmjs_es["default"].sr.templates.SubjectContext({
1527
- subjectClass: new dcmjs_es["default"].sr.coding.CodedConcept({
1515
+ subjectContext: new dcmjs_es/* default.sr */.Ay.sr.templates.SubjectContext({
1516
+ subjectClass: new dcmjs_es/* default.sr */.Ay.sr.coding.CodedConcept({
1528
1517
  value: '121027',
1529
1518
  schemeDesignator: 'DCM',
1530
1519
  meaning: 'Specimen'
1531
1520
  }),
1532
- subjectClassSpecificContext: new dcmjs_es["default"].sr.templates.SubjectContextSpecimen({
1521
+ subjectClassSpecificContext: new dcmjs_es/* default.sr */.Ay.sr.templates.SubjectContextSpecimen({
1533
1522
  uid: SpecimenDescriptionSequence.SpecimenUID,
1534
1523
  identifier: SpecimenDescriptionSequence.SpecimenIdentifier || metadata.SeriesInstanceUID,
1535
1524
  containerIdentifier: metadata.ContainerIdentifier || metadata.SeriesInstanceUID
@@ -1561,14 +1550,14 @@ function constructSR(metadata, _ref, annotations) {
1561
1550
  const ConceptName = Array.isArray(measurement.ConceptNameCodeSequence) ? measurement.ConceptNameCodeSequence[0] : measurement.ConceptNameCodeSequence;
1562
1551
  const MeasuredValue = Array.isArray(measurement.MeasuredValueSequence) ? measurement.MeasuredValueSequence[0] : measurement.MeasuredValueSequence;
1563
1552
  const MeasuredValueUnits = Array.isArray(MeasuredValue.MeasurementUnitsCodeSequence) ? MeasuredValue.MeasurementUnitsCodeSequence[0] : MeasuredValue.MeasurementUnitsCodeSequence;
1564
- return new dcmjs_es["default"].sr.valueTypes.NumContentItem({
1565
- name: new dcmjs_es["default"].sr.coding.CodedConcept({
1553
+ return new dcmjs_es/* default.sr */.Ay.sr.valueTypes.NumContentItem({
1554
+ name: new dcmjs_es/* default.sr */.Ay.sr.coding.CodedConcept({
1566
1555
  meaning: ConceptName.CodeMeaning,
1567
1556
  value: ConceptName.CodeValue,
1568
1557
  schemeDesignator: ConceptName.CodingSchemeDesignator
1569
1558
  }),
1570
1559
  value: MeasuredValue.NumericValue,
1571
- unit: new dcmjs_es["default"].sr.coding.CodedConcept({
1560
+ unit: new dcmjs_es/* default.sr */.Ay.sr.coding.CodedConcept({
1572
1561
  value: MeasuredValueUnits.CodeValue,
1573
1562
  meaning: MeasuredValueUnits.CodeMeaning,
1574
1563
  schemeDesignator: MeasuredValueUnits.CodingSchemeDesignator
@@ -1579,8 +1568,8 @@ function constructSR(metadata, _ref, annotations) {
1579
1568
  /** Avoid incompatibility with dcmjs */
1580
1569
  evaluations = evaluations.map(evaluation => {
1581
1570
  const ConceptName = Array.isArray(evaluation.ConceptNameCodeSequence) ? evaluation.ConceptNameCodeSequence[0] : evaluation.ConceptNameCodeSequence;
1582
- return new dcmjs_es["default"].sr.valueTypes.TextContentItem({
1583
- name: new dcmjs_es["default"].sr.coding.CodedConcept({
1571
+ return new dcmjs_es/* default.sr */.Ay.sr.valueTypes.TextContentItem({
1572
+ name: new dcmjs_es/* default.sr */.Ay.sr.coding.CodedConcept({
1584
1573
  value: ConceptName.CodeValue,
1585
1574
  meaning: ConceptName.CodeMeaning,
1586
1575
  schemeDesignator: ConceptName.CodingSchemeDesignator
@@ -1590,17 +1579,17 @@ function constructSR(metadata, _ref, annotations) {
1590
1579
  });
1591
1580
  });
1592
1581
  const identifier = `ROI #${i + 1}`;
1593
- const group = new dcmjs_es["default"].sr.templates.PlanarROIMeasurementsAndQualitativeEvaluations({
1594
- trackingIdentifier: new dcmjs_es["default"].sr.templates.TrackingIdentifier({
1582
+ const group = new dcmjs_es/* default.sr */.Ay.sr.templates.PlanarROIMeasurementsAndQualitativeEvaluations({
1583
+ trackingIdentifier: new dcmjs_es/* default.sr */.Ay.sr.templates.TrackingIdentifier({
1595
1584
  uid: roi.uid,
1596
1585
  identifier: presentationState ? identifier.concat(`(${JSON.stringify(presentationState)})`) : identifier
1597
1586
  }),
1598
- referencedRegion: new dcmjs_es["default"].sr.contentItems.ImageRegion3D({
1587
+ referencedRegion: new dcmjs_es/* default.sr */.Ay.sr.contentItems.ImageRegion3D({
1599
1588
  graphicType: roi.scoord3d.graphicType,
1600
1589
  graphicData: roi.scoord3d.graphicData,
1601
1590
  frameOfReferenceUID: roi.scoord3d.frameOfReferenceUID
1602
1591
  }),
1603
- findingType: new dcmjs_es["default"].sr.coding.CodedConcept({
1592
+ findingType: new dcmjs_es/* default.sr */.Ay.sr.coding.CodedConcept({
1604
1593
  value: label,
1605
1594
  schemeDesignator: '@ohif/extension-dicom-microscopy',
1606
1595
  meaning: 'FREETEXT'
@@ -1611,23 +1600,23 @@ function constructSR(metadata, _ref, annotations) {
1611
1600
  });
1612
1601
  imagingMeasurements.push(...group);
1613
1602
  }
1614
- const measurementReport = new dcmjs_es["default"].sr.templates.MeasurementReport({
1615
- languageOfContentItemAndDescendants: new dcmjs_es["default"].sr.templates.LanguageOfContentItemAndDescendants({}),
1603
+ const measurementReport = new dcmjs_es/* default.sr */.Ay.sr.templates.MeasurementReport({
1604
+ languageOfContentItemAndDescendants: new dcmjs_es/* default.sr */.Ay.sr.templates.LanguageOfContentItemAndDescendants({}),
1616
1605
  observationContext,
1617
- procedureReported: new dcmjs_es["default"].sr.coding.CodedConcept({
1606
+ procedureReported: new dcmjs_es/* default.sr */.Ay.sr.coding.CodedConcept({
1618
1607
  value: '112703',
1619
1608
  schemeDesignator: 'DCM',
1620
1609
  meaning: 'Whole Slide Imaging'
1621
1610
  }),
1622
1611
  imagingMeasurements
1623
1612
  });
1624
- const dataset = new dcmjs_es["default"].sr.documents.Comprehensive3DSR({
1613
+ const dataset = new dcmjs_es/* default.sr */.Ay.sr.documents.Comprehensive3DSR({
1625
1614
  content: measurementReport[0],
1626
1615
  evidence: [metadata],
1627
- seriesInstanceUID: dcmjs_es["default"].data.DicomMetaDictionary.uid(),
1616
+ seriesInstanceUID: dcmjs_es/* default.data */.Ay.data.DicomMetaDictionary.uid(),
1628
1617
  seriesNumber: SeriesNumber,
1629
1618
  seriesDescription: SeriesDescription || 'Whole slide imaging structured report',
1630
- sopInstanceUID: dcmjs_es["default"].data.DicomMetaDictionary.uid(),
1619
+ sopInstanceUID: dcmjs_es/* default.data */.Ay.data.DicomMetaDictionary.uid(),
1631
1620
  instanceNumber: 1,
1632
1621
  manufacturer: 'dcmjs-org'
1633
1622
  });
@@ -1647,7 +1636,7 @@ function constructSR(metadata, _ref, annotations) {
1647
1636
  vr: 'UI'
1648
1637
  },
1649
1638
  ImplementationClassUID: {
1650
- Value: [dcmjs_es["default"].data.DicomMetaDictionary.uid()],
1639
+ Value: [dcmjs_es/* default.data */.Ay.data.DicomMetaDictionary.uid()],
1651
1640
  vr: 'UI'
1652
1641
  },
1653
1642
  ImplementationVersionName: {
@@ -1685,7 +1674,7 @@ function saveByteArray(buffer, filename) {
1685
1674
  let saving = false;
1686
1675
  const {
1687
1676
  datasetToBuffer
1688
- } = dcmjs_es["default"].data;
1677
+ } = dcmjs_es/* default.data */.Ay.data;
1689
1678
  const formatArea = area => {
1690
1679
  let mult = 1;
1691
1680
  let unit = 'mm';
@@ -1931,10 +1920,9 @@ function MicroscopyPanel(props) {
1931
1920
  *
1932
1921
  * @param param0
1933
1922
  */
1934
- const onMeasurementItemClickHandler = _ref => {
1935
- let {
1936
- uid
1937
- } = _ref;
1923
+ const onMeasurementItemClickHandler = ({
1924
+ uid
1925
+ }) => {
1938
1926
  const roiAnnotation = microscopyService.getAnnotation(uid);
1939
1927
  microscopyService.selectAnnotation(roiAnnotation);
1940
1928
  microscopyService.focusAnnotation(roiAnnotation, props.activeViewportId);
@@ -1944,11 +1932,10 @@ function MicroscopyPanel(props) {
1944
1932
  * Handler for "Edit" action of an annotation item
1945
1933
  * @param param0
1946
1934
  */
1947
- const onMeasurementItemEditHandler = _ref2 => {
1948
- let {
1949
- uid,
1950
- isActive
1951
- } = _ref2;
1935
+ const onMeasurementItemEditHandler = ({
1936
+ uid,
1937
+ isActive
1938
+ }) => {
1952
1939
  props.commandsManager.runCommand('setLabel', {
1953
1940
  uid
1954
1941
  }, 'MICROSCOPY');
@@ -1990,7 +1977,7 @@ function MicroscopyPanel(props) {
1990
1977
  return /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement("div", {
1991
1978
  className: "ohif-scrollbar overflow-y-auto overflow-x-hidden",
1992
1979
  "data-cy": 'measurements-panel'
1993
- }, /*#__PURE__*/react.createElement(src/* MeasurementTable */.wt, {
1980
+ }, /*#__PURE__*/react.createElement(src/* MeasurementTable */.V, {
1994
1981
  title: "Measurements",
1995
1982
  servicesManager: props.servicesManager,
1996
1983
  data: data,
@@ -1998,7 +1985,7 @@ function MicroscopyPanel(props) {
1998
1985
  onEdit: onMeasurementItemEditHandler
1999
1986
  })));
2000
1987
  }
2001
- const connectedMicroscopyPanel = (0,es/* withTranslation */.Zh)(['MicroscopyTable', 'Common'])(MicroscopyPanel);
1988
+ const connectedMicroscopyPanel = (0,es/* withTranslation */.CI)(['MicroscopyTable', 'Common'])(MicroscopyPanel);
2002
1989
  /* harmony default export */ const MicroscopyPanel_MicroscopyPanel = (connectedMicroscopyPanel);
2003
1990
  ;// CONCATENATED MODULE: ../../../extensions/dicom-microscopy/src/getPanelModule.tsx
2004
1991
 
@@ -2010,17 +1997,16 @@ const connectedMicroscopyPanel = (0,es/* withTranslation */.Zh)(['MicroscopyTabl
2010
1997
  // - cancel promises when component is destroyed
2011
1998
  // - show errors in UI for thumbnails if promise fails
2012
1999
 
2013
- function getPanelModule(_ref) {
2014
- let {
2015
- commandsManager,
2016
- extensionManager,
2017
- servicesManager
2018
- } = _ref;
2000
+ function getPanelModule({
2001
+ commandsManager,
2002
+ extensionManager,
2003
+ servicesManager
2004
+ }) {
2019
2005
  const wrappedMeasurementPanel = () => {
2020
2006
  const [{
2021
2007
  activeViewportId,
2022
2008
  viewports
2023
- }] = (0,src/* useViewportGrid */.O_)();
2009
+ }] = (0,src/* useViewportGrid */.ih)();
2024
2010
  return /*#__PURE__*/react.createElement(MicroscopyPanel_MicroscopyPanel, {
2025
2011
  viewports: viewports,
2026
2012
  activeViewportId: activeViewportId,
@@ -2043,12 +2029,11 @@ function getPanelModule(_ref) {
2043
2029
  ;// CONCATENATED MODULE: ../../../extensions/dicom-microscopy/src/getCommandsModule.ts
2044
2030
 
2045
2031
 
2046
- function getCommandsModule(_ref) {
2047
- let {
2048
- servicesManager,
2049
- commandsManager,
2050
- extensionManager
2051
- } = _ref;
2032
+ function getCommandsModule({
2033
+ servicesManager,
2034
+ commandsManager,
2035
+ extensionManager
2036
+ }) {
2052
2037
  const {
2053
2038
  viewportGridService,
2054
2039
  uiDialogService,
@@ -2056,10 +2041,9 @@ function getCommandsModule(_ref) {
2056
2041
  } = servicesManager.services;
2057
2042
  const actions = {
2058
2043
  // Measurement tool commands:
2059
- deleteMeasurement: _ref2 => {
2060
- let {
2061
- uid
2062
- } = _ref2;
2044
+ deleteMeasurement: ({
2045
+ uid
2046
+ }) => {
2063
2047
  if (uid) {
2064
2048
  const roiAnnotation = microscopyService.getAnnotation(uid);
2065
2049
  if (roiAnnotation) {
@@ -2067,10 +2051,9 @@ function getCommandsModule(_ref) {
2067
2051
  }
2068
2052
  }
2069
2053
  },
2070
- setLabel: _ref3 => {
2071
- let {
2072
- uid
2073
- } = _ref3;
2054
+ setLabel: ({
2055
+ uid
2056
+ }) => {
2074
2057
  const roiAnnotation = microscopyService.getAnnotation(uid);
2075
2058
  callInputDialog({
2076
2059
  uiDialogService,
@@ -2086,11 +2069,10 @@ function getCommandsModule(_ref) {
2086
2069
  }
2087
2070
  });
2088
2071
  },
2089
- setToolActive: _ref4 => {
2090
- let {
2091
- toolName,
2092
- toolGroupId = 'MICROSCOPY'
2093
- } = _ref4;
2072
+ setToolActive: ({
2073
+ toolName,
2074
+ toolGroupId = 'MICROSCOPY'
2075
+ }) => {
2094
2076
  const dragPanOnMiddle = ['dragPan', {
2095
2077
  bindings: {
2096
2078
  mouseButtons: ['middle']
@@ -2192,7 +2174,7 @@ function getCommandsModule(_ref) {
2192
2174
 
2193
2175
  const {
2194
2176
  utils
2195
- } = core_src["default"];
2177
+ } = core_src/* default */.Ay;
2196
2178
  const SOP_CLASS_UIDS = {
2197
2179
  VL_WHOLE_SLIDE_MICROSCOPY_IMAGE_STORAGE: '1.2.840.10008.5.1.4.1.1.77.1.6'
2198
2180
  };
@@ -2284,11 +2266,10 @@ function _getDisplaySetsFromSeries(instances, servicesManager, extensionManager)
2284
2266
  };
2285
2267
  return [displaySet];
2286
2268
  }
2287
- function getDicomMicroscopySopClassHandler(_ref) {
2288
- let {
2289
- servicesManager,
2290
- extensionManager
2291
- } = _ref;
2269
+ function getDicomMicroscopySopClassHandler({
2270
+ servicesManager,
2271
+ extensionManager
2272
+ }) {
2292
2273
  const getDisplaySetsFromSeries = instances => {
2293
2274
  return _getDisplaySetsFromSeries(instances, servicesManager, extensionManager);
2294
2275
  };
@@ -2311,7 +2292,6 @@ const DCM_CODE_VALUES = {
2311
2292
  LONG_AXIS: 'G-A185',
2312
2293
  ELLIPSE_AREA: 'G-D7FE' // TODO: Remove this
2313
2294
  };
2314
-
2315
2295
  /* harmony default export */ const dcmCodeValues = (DCM_CODE_VALUES);
2316
2296
  ;// CONCATENATED MODULE: ../../../extensions/dicom-microscopy/src/utils/toArray.js
2317
2297
  function toArray(item) {
@@ -2321,7 +2301,7 @@ function toArray(item) {
2321
2301
 
2322
2302
 
2323
2303
 
2324
- const MeasurementReport = dcmjs_es["default"].adapters.DICOMMicroscopyViewer.MeasurementReport;
2304
+ const MeasurementReport = dcmjs_es/* default.adapters */.Ay.adapters.DICOMMicroscopyViewer.MeasurementReport;
2325
2305
 
2326
2306
  // Define as async so that it returns a promise, expected by the ViewportGrid
2327
2307
  async function loadSR(microscopyService, microscopySRDisplaySet, referencedDisplaySet) {
@@ -2358,7 +2338,7 @@ async function loadSR(microscopyService, microscopySRDisplaySet, referencedDispl
2358
2338
  async function _getROIsFromToolState(naturalizedDataset, FrameOfReferenceUID) {
2359
2339
  const toolState = MeasurementReport.generateToolState(naturalizedDataset);
2360
2340
  const tools = Object.getOwnPropertyNames(toolState);
2361
- const DICOMMicroscopyViewer = await __webpack_require__.e(/* import() | dicom-microscopy-viewer */ 18).then(__webpack_require__.t.bind(__webpack_require__, 42613, 23));
2341
+ const DICOMMicroscopyViewer = await __webpack_require__.e(/* import() | dicom-microscopy-viewer */ 525).then(__webpack_require__.t.bind(__webpack_require__, 95226, 23));
2362
2342
  const measurementGroupContentItems = _getMeasurementGroups(naturalizedDataset);
2363
2343
  const rois = [];
2364
2344
  const labels = [];
@@ -2492,7 +2472,7 @@ function getSourceDisplaySet(allDisplaySets, microscopySRDisplaySet) {
2492
2472
 
2493
2473
  const {
2494
2474
  utils: DicomMicroscopySRSopClassHandler_utils
2495
- } = core_src["default"];
2475
+ } = core_src/* default */.Ay;
2496
2476
  const DicomMicroscopySRSopClassHandler_SOP_CLASS_UIDS = {
2497
2477
  COMPREHENSIVE_3D_SR: '1.2.840.10008.5.1.4.1.1.88.34'
2498
2478
  };
@@ -2573,11 +2553,10 @@ function DicomMicroscopySRSopClassHandler_getDisplaySetsFromSeries(instances, se
2573
2553
  };
2574
2554
  return [displaySet];
2575
2555
  }
2576
- function getDicomMicroscopySRSopClassHandler(_ref) {
2577
- let {
2578
- servicesManager,
2579
- extensionManager
2580
- } = _ref;
2556
+ function getDicomMicroscopySRSopClassHandler({
2557
+ servicesManager,
2558
+ extensionManager
2559
+ }) {
2581
2560
  const getDisplaySetsFromSeries = instances => {
2582
2561
  return DicomMicroscopySRSopClassHandler_getDisplaySetsFromSeries(instances, servicesManager, extensionManager);
2583
2562
  };
@@ -2598,7 +2577,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
2598
2577
 
2599
2578
 
2600
2579
  const Component = /*#__PURE__*/react.lazy(() => {
2601
- return Promise.all(/* import() */[__webpack_require__.e(743), __webpack_require__.e(604), __webpack_require__.e(417), __webpack_require__.e(23), __webpack_require__.e(342), __webpack_require__.e(250)]).then(__webpack_require__.bind(__webpack_require__, 76516));
2580
+ return Promise.all(/* import() */[__webpack_require__.e(504), __webpack_require__.e(191), __webpack_require__.e(644), __webpack_require__.e(931), __webpack_require__.e(704), __webpack_require__.e(544)]).then(__webpack_require__.bind(__webpack_require__, 17919));
2602
2581
  });
2603
2582
  const MicroscopyViewport = props => {
2604
2583
  return /*#__PURE__*/react.createElement(react.Suspense, {
@@ -2615,13 +2594,12 @@ const MicroscopyViewport = props => {
2615
2594
  * You ID can be anything you want, but it should be unique.
2616
2595
  */
2617
2596
  id: id,
2618
- async preRegistration(_ref) {
2619
- let {
2620
- servicesManager,
2621
- commandsManager,
2622
- configuration = {},
2623
- appConfig
2624
- } = _ref;
2597
+ async preRegistration({
2598
+ servicesManager,
2599
+ commandsManager,
2600
+ configuration = {},
2601
+ appConfig
2602
+ }) {
2625
2603
  servicesManager.registerService(MicroscopyService.REGISTRATION(servicesManager));
2626
2604
  },
2627
2605
  /**
@@ -2630,12 +2608,11 @@ const MicroscopyViewport = props => {
2630
2608
  * {name, component} object. Example of a viewport module is the CornerstoneViewport
2631
2609
  * that is provided by the Cornerstone extension in OHIF.
2632
2610
  */
2633
- getViewportModule(_ref2) {
2634
- let {
2635
- servicesManager,
2636
- extensionManager,
2637
- commandsManager
2638
- } = _ref2;
2611
+ getViewportModule({
2612
+ servicesManager,
2613
+ extensionManager,
2614
+ commandsManager
2615
+ }) {
2639
2616
  /**
2640
2617
  *
2641
2618
  * @param props {*}
@@ -2651,11 +2628,20 @@ const MicroscopyViewport = props => {
2651
2628
  const {
2652
2629
  viewportOptions
2653
2630
  } = props;
2654
- const [viewportGrid, viewportGridService] = (0,src/* useViewportGrid */.O_)();
2631
+ const [viewportGrid, viewportGridService] = (0,src/* useViewportGrid */.ih)();
2655
2632
  const {
2656
2633
  activeViewportId
2657
2634
  } = viewportGrid;
2635
+
2636
+ // a unique identifier based on the contents of displaySets.
2637
+ // since we changed our rendering pipeline and if there is no
2638
+ // element size change nor viewportId change we won't re-render
2639
+ // we need a way to force re-rendering when displaySets change.
2640
+ const displaySetsKey = (0,react.useMemo)(() => {
2641
+ return props.displaySets.map(ds => ds.displaySetInstanceUID).join('-');
2642
+ }, [props.displaySets]);
2658
2643
  return /*#__PURE__*/react.createElement(MicroscopyViewport, _extends({
2644
+ key: displaySetsKey,
2659
2645
  servicesManager: servicesManager,
2660
2646
  extensionManager: extensionManager,
2661
2647
  commandsManager: commandsManager,
@@ -2677,12 +2663,11 @@ const MicroscopyViewport = props => {
2677
2663
  * Each sop class handler is defined by a { name, sopClassUids, getDisplaySetsFromSeries}.
2678
2664
  * Examples include the default sop class handler provided by the default extension
2679
2665
  */
2680
- getSopClassHandlerModule(_ref3) {
2681
- let {
2682
- servicesManager,
2683
- commandsManager,
2684
- extensionManager
2685
- } = _ref3;
2666
+ getSopClassHandlerModule({
2667
+ servicesManager,
2668
+ commandsManager,
2669
+ extensionManager
2670
+ }) {
2686
2671
  return [getDicomMicroscopySopClassHandler({
2687
2672
  servicesManager,
2688
2673
  extensionManager
@@ -2695,13 +2680,6 @@ const MicroscopyViewport = props => {
2695
2680
  getCommandsModule: getCommandsModule
2696
2681
  });
2697
2682
 
2698
- /***/ }),
2699
-
2700
- /***/ 78753:
2701
- /***/ (() => {
2702
-
2703
- /* (ignored) */
2704
-
2705
2683
  /***/ })
2706
2684
 
2707
2685
  }]);