@ohif/app 3.13.0-beta.133 → 3.13.0-beta.135

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 (36) hide show
  1. package/dist/{12.bundle.b056ab4f14043f8f.js → 12.bundle.b4688cdbdd856b75.js} +428 -118
  2. package/dist/{136.bundle.21c8f91a8a65d7a6.js → 136.bundle.b948da0438a0a660.js} +1 -1
  3. package/dist/{2299.bundle.a959a7343d38aa72.js → 2299.bundle.2375af8b16a1702e.js} +1 -1
  4. package/dist/{2493.bundle.53071871e740b5ee.js → 2493.bundle.c4af70e46357151f.js} +1937 -1942
  5. package/dist/{4712.bundle.5139bdde8f424711.js → 4712.bundle.5b97e12639f3c299.js} +49 -4
  6. package/dist/{6495.bundle.dab6e30d1c492f9e.js → 6495.bundle.8e8306fedff44999.js} +87 -41
  7. package/dist/{89.bundle.fd8a1c618224dfec.js → 89.bundle.f6ee21920d04f9ae.js} +2 -2
  8. package/dist/{app.bundle.f95a4c7bbe8062d7.js → app.bundle.310d7cd9caf89f9d.js} +1948 -1953
  9. package/dist/{compute.bundle.12b6a72251a19969.js → compute.bundle.0fc3a3ee85296cf2.js} +1 -1
  10. package/dist/index.html +1 -1
  11. package/dist/{interpolation.bundle.bcf66f3692d530c1.js → interpolation.bundle.fa54018d8628f8c0.js} +1 -1
  12. package/dist/{polySeg.bundle.5a7bc03f5b3c4d5c.js → polySeg.bundle.2c5892e4c5a6bdd5.js} +1 -1
  13. package/dist/sw.js +1 -1
  14. package/package.json +6 -6
  15. /package/dist/{100.bundle.e17b6b9578659167.js → 100.bundle.e6d03fdfc66d9429.js} +0 -0
  16. /package/dist/{1180.bundle.ca0f25f923b8a781.js → 1180.bundle.c15f11f74168c0be.js} +0 -0
  17. /package/dist/{1483.bundle.2052c31a85b28b7c.js → 1483.bundle.2421435d03a3c061.js} +0 -0
  18. /package/dist/{1602.bundle.da6696c97b19d817.js → 1602.bundle.2139e99971b6f3fe.js} +0 -0
  19. /package/dist/{2779.bundle.77ce9771f7fc55c3.js → 2779.bundle.849a43678f8fa214.js} +0 -0
  20. /package/dist/{3500.bundle.b8de590d0f41c74c.js → 3500.bundle.4986063116eff360.js} +0 -0
  21. /package/dist/{3760.bundle.b376d85a7dc2bff5.js → 3760.bundle.e2f268d51059d5b3.js} +0 -0
  22. /package/dist/{4556.bundle.c9fdf3c273bc40ff.js → 4556.bundle.0998337bec42392a.js} +0 -0
  23. /package/dist/{4683.bundle.6dbc6cb733c848cb.js → 4683.bundle.95f708a099dc61b0.js} +0 -0
  24. /package/dist/{5696.bundle.a2569d415f3992c2.js → 5696.bundle.5825b63e5a1c10d5.js} +0 -0
  25. /package/dist/{6749.bundle.6d5270bfa3ae2ff5.js → 6749.bundle.1c93fccf235236c9.js} +0 -0
  26. /package/dist/{7248.bundle.48eb7a7de2d2f34b.js → 7248.bundle.a979c316cf0107ed.js} +0 -0
  27. /package/dist/{7499.bundle.45e216ccae5f4844.js → 7499.bundle.43e0dae1c86e35e7.js} +0 -0
  28. /package/dist/{781.bundle.837b4cf5d77edd92.js → 781.bundle.f72c2152ccaf2d3b.js} +0 -0
  29. /package/dist/{8033.bundle.c59f49c103c5ef32.js → 8033.bundle.8161dea771856d11.js} +0 -0
  30. /package/dist/{8423.bundle.74c450b62a3c32a5.js → 8423.bundle.cdfbd978226fa393.js} +0 -0
  31. /package/dist/{8492.bundle.c45f43078857d4ed.js → 8492.bundle.864d16c23662e055.js} +0 -0
  32. /package/dist/{8832.bundle.6e7c8e86bab7c88f.js → 8832.bundle.ed8d55524d81043b.js} +0 -0
  33. /package/dist/{9116.bundle.708fc205270f6643.js → 9116.bundle.bcd94324a3b4b9bd.js} +0 -0
  34. /package/dist/{9290.bundle.969c55359aeeb5e5.js → 9290.bundle.ae1143f9e1364ff9.js} +0 -0
  35. /package/dist/{9415.bundle.84be0fa1769a6705.js → 9415.bundle.382e78ac5c826f79.js} +0 -0
  36. /package/dist/{9437.bundle.98caf0665870eb79.js → 9437.bundle.54532660f274b78b.js} +0 -0
@@ -8411,7 +8411,9 @@ var contourSegmentation_areSameSegment = __webpack_require__(65493);
8411
8411
 
8412
8412
 
8413
8413
 
8414
+
8414
8415
  const DEFAULT_CONTOUR_SEG_TOOL_NAME = 'PlanarFreehandContourSegmentationTool';
8416
+ const { DefaultHistoryMemo } = esm.utilities.HistoryMemo;
8415
8417
  function applyContourStroke_addContourStroke(viewport, sourceAnnotation) {
8416
8418
  applyStroke(viewport, sourceAnnotation, BooleanOp.Union);
8417
8419
  }
@@ -8444,18 +8446,20 @@ function applyStroke(viewport, sourceAnnotation, op) {
8444
8446
  const resultPolygons = op === BooleanOp.Union
8445
8447
  ? unifyWeaklyConnectedPolygons(booleanResult)
8446
8448
  : booleanResult;
8447
- const toRemove = [sourceAnnotation];
8449
+ const previousAnnotations = [];
8448
8450
  for (const t of targets) {
8449
- toRemove.push(t);
8451
+ previousAnnotations.push(t);
8450
8452
  for (const h of getContourHolesData(viewport, t)) {
8451
- toRemove.push(h.annotation);
8453
+ previousAnnotations.push(h.annotation);
8452
8454
  }
8453
8455
  }
8456
+ const toRemove = [sourceAnnotation, ...previousAnnotations];
8454
8457
  for (const annotation of toRemove) {
8455
8458
  removeAnnotationCompletely(annotation);
8456
8459
  }
8457
8460
  const template = targets[0] ?? sourceAnnotation;
8458
8461
  const { element } = viewport;
8462
+ const resultAnnotations = [];
8459
8463
  for (const polygon of resultPolygons) {
8460
8464
  if (polygon.outer.length < 3) {
8461
8465
  continue;
@@ -8463,6 +8467,7 @@ function applyStroke(viewport, sourceAnnotation, op) {
8463
8467
  const parent = createNewAnnotationFromPolyline(viewport, template, polygon.outer, ContourWindingDirection.Clockwise);
8464
8468
  addAnnotation(parent, element);
8465
8469
  addContourSegmentationAnnotation(parent);
8470
+ resultAnnotations.push(parent);
8466
8471
  polygon.holes?.forEach((holePolyline) => {
8467
8472
  if (holePolyline.length < 3) {
8468
8473
  return;
@@ -8470,12 +8475,52 @@ function applyStroke(viewport, sourceAnnotation, op) {
8470
8475
  const hole = createNewAnnotationFromPolyline(viewport, template, holePolyline, ContourWindingDirection.CounterClockwise);
8471
8476
  addAnnotation(hole, element);
8472
8477
  addChildAnnotation(parent, hole);
8478
+ resultAnnotations.push(hole);
8473
8479
  triggerAnnotationModified(hole, element);
8474
8480
  });
8475
8481
  triggerAnnotationModified(parent, element);
8476
8482
  }
8483
+ replaceContourStrokeHistory(sourceAnnotation, previousAnnotations, resultAnnotations, viewport);
8477
8484
  updateViewportsForAnnotations(viewport, toRemove);
8478
8485
  }
8486
+ function replaceContourStrokeHistory(sourceAnnotation, previousAnnotations, resultAnnotations, viewport) {
8487
+ const memo = {
8488
+ id: sourceAnnotation.annotationUID,
8489
+ operationType: 'annotation',
8490
+ restoreMemo: (isUndo = true) => {
8491
+ const annotationsToRemove = isUndo
8492
+ ? resultAnnotations
8493
+ : previousAnnotations;
8494
+ const annotationsToAdd = isUndo ? previousAnnotations : resultAnnotations;
8495
+ removeStoredAnnotations(annotationsToRemove);
8496
+ addStoredAnnotations(annotationsToAdd, viewport.element);
8497
+ updateViewportsForAnnotations(viewport, [
8498
+ ...annotationsToRemove,
8499
+ ...annotationsToAdd,
8500
+ ]);
8501
+ },
8502
+ };
8503
+ DefaultHistoryMemo.replaceCurrentMemo(memo, (currentMemo) => currentMemo.id === sourceAnnotation.annotationUID &&
8504
+ currentMemo.operationType === 'annotation');
8505
+ }
8506
+ function removeStoredAnnotations(annotations) {
8507
+ for (let i = annotations.length - 1; i >= 0; i--) {
8508
+ const annotation = annotations[i];
8509
+ if (getAnnotation(annotation.annotationUID)) {
8510
+ removeAnnotation(annotation.annotationUID);
8511
+ }
8512
+ removeContourSegmentationAnnotation(annotation);
8513
+ }
8514
+ }
8515
+ function addStoredAnnotations(annotations, element) {
8516
+ for (const annotation of annotations) {
8517
+ if (getAnnotation(annotation.annotationUID)) {
8518
+ continue;
8519
+ }
8520
+ addAnnotation(annotation, element);
8521
+ addContourSegmentationAnnotation(annotation);
8522
+ }
8523
+ }
8479
8524
  function collectSamePlaneSegmentTargets(viewport, sourceAnnotation) {
8480
8525
  const sourceUID = sourceAnnotation.annotationUID;
8481
8526
  return getAllAnnotations().filter((candidate) => {
@@ -10216,7 +10261,7 @@ var COLOR_LUT = __webpack_require__(69501);
10216
10261
 
10217
10262
 
10218
10263
  ;// CONCATENATED MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/version.js
10219
- const version = '5.6.7';
10264
+ const version = '5.6.8';
10220
10265
 
10221
10266
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/viewportPresentation.js
10222
10267
  var viewportPresentation = __webpack_require__(88299);
@@ -5063,7 +5063,7 @@ __webpack_require__.d(__webpack_exports__, {
5063
5063
  store: () => (/* reexport module object */ _store_index_js__rspack_import_1),
5064
5064
  synchronizers: () => (/* reexport module object */ _synchronizers_index_js__rspack_import_5),
5065
5065
  utilities: () => (/* reexport module object */ _utilities_index_js__rspack_import_7),
5066
- version: () => (/* reexport safe */ (/* inlined export _version_js__rspack_import_4 */"5.6.7"))
5066
+ version: () => (/* reexport safe */ (/* inlined export _version_js__rspack_import_4 */"5.6.8"))
5067
5067
  });
5068
5068
  /* import */ var _init_js__rspack_import_0 = __webpack_require__(70210);
5069
5069
  /* import */ var _store_index_js__rspack_import_1 = __webpack_require__(37872);
@@ -38597,17 +38597,19 @@ __webpack_require__.d(__webpack_exports__, {
38597
38597
  D: () => (removeContourStroke),
38598
38598
  Q: () => (addContourStroke)
38599
38599
  });
38600
- /* import */ var _types_ContourAnnotation_js__rspack_import_0 = __webpack_require__(12967);
38601
- /* import */ var _clipperBooleanOps_js__rspack_import_1 = __webpack_require__(99431);
38602
- /* import */ var _bridgeWeaklyConnected_js__rspack_import_2 = __webpack_require__(81047);
38603
- /* import */ var _sharedOperations_js__rspack_import_3 = __webpack_require__(77119);
38604
- /* import */ var _stateManagement_annotation_annotationState_js__rspack_import_4 = __webpack_require__(44627);
38605
- /* import */ var _addContourSegmentationAnnotation_js__rspack_import_5 = __webpack_require__(45112);
38606
- /* import */ var _removeContourSegmentationAnnotation_js__rspack_import_6 = __webpack_require__(13127);
38607
- /* import */ var _stateManagement_annotation_helpers_state_js__rspack_import_7 = __webpack_require__(34350);
38608
- /* import */ var _areSameSegment_js__rspack_import_8 = __webpack_require__(65493);
38609
- /* import */ var _isContourSegmentationAnnotation_js__rspack_import_9 = __webpack_require__(43631);
38610
- /* import */ var _store_addTool_js__rspack_import_10 = __webpack_require__(7265);
38600
+ /* import */ var _cornerstonejs_core__rspack_import_0 = __webpack_require__(88479);
38601
+ /* import */ var _types_ContourAnnotation_js__rspack_import_1 = __webpack_require__(12967);
38602
+ /* import */ var _clipperBooleanOps_js__rspack_import_2 = __webpack_require__(99431);
38603
+ /* import */ var _bridgeWeaklyConnected_js__rspack_import_3 = __webpack_require__(81047);
38604
+ /* import */ var _sharedOperations_js__rspack_import_4 = __webpack_require__(77119);
38605
+ /* import */ var _stateManagement_annotation_annotationState_js__rspack_import_5 = __webpack_require__(44627);
38606
+ /* import */ var _addContourSegmentationAnnotation_js__rspack_import_6 = __webpack_require__(45112);
38607
+ /* import */ var _removeContourSegmentationAnnotation_js__rspack_import_7 = __webpack_require__(13127);
38608
+ /* import */ var _stateManagement_annotation_helpers_state_js__rspack_import_8 = __webpack_require__(34350);
38609
+ /* import */ var _areSameSegment_js__rspack_import_9 = __webpack_require__(65493);
38610
+ /* import */ var _isContourSegmentationAnnotation_js__rspack_import_10 = __webpack_require__(43631);
38611
+ /* import */ var _store_addTool_js__rspack_import_11 = __webpack_require__(7265);
38612
+
38611
38613
 
38612
38614
 
38613
38615
 
@@ -38621,80 +38623,124 @@ __webpack_require__.d(__webpack_exports__, {
38621
38623
 
38622
38624
 
38623
38625
  const DEFAULT_CONTOUR_SEG_TOOL_NAME = 'PlanarFreehandContourSegmentationTool';
38626
+ const { DefaultHistoryMemo } = _cornerstonejs_core__rspack_import_0.utilities.HistoryMemo;
38624
38627
  function addContourStroke(viewport, sourceAnnotation) {
38625
- applyStroke(viewport, sourceAnnotation, _clipperBooleanOps_js__rspack_import_1/* .BooleanOp.Union */.Gi.Union);
38628
+ applyStroke(viewport, sourceAnnotation, _clipperBooleanOps_js__rspack_import_2/* .BooleanOp.Union */.Gi.Union);
38626
38629
  }
38627
38630
  function removeContourStroke(viewport, sourceAnnotation) {
38628
- applyStroke(viewport, sourceAnnotation, _clipperBooleanOps_js__rspack_import_1/* .BooleanOp.Difference */.Gi.Difference);
38631
+ applyStroke(viewport, sourceAnnotation, _clipperBooleanOps_js__rspack_import_2/* .BooleanOp.Difference */.Gi.Difference);
38629
38632
  }
38630
38633
  function applyStroke(viewport, sourceAnnotation, op) {
38631
- if (!(0,_store_addTool_js__rspack_import_10/* .hasToolByName */.l$)(DEFAULT_CONTOUR_SEG_TOOL_NAME)) {
38634
+ if (!(0,_store_addTool_js__rspack_import_11/* .hasToolByName */.l$)(DEFAULT_CONTOUR_SEG_TOOL_NAME)) {
38632
38635
  console.warn(`${DEFAULT_CONTOUR_SEG_TOOL_NAME} is not registered. Cannot apply stroke.`);
38633
38636
  removeAnnotationCompletely(sourceAnnotation);
38634
38637
  return;
38635
38638
  }
38636
- const sourcePolyline = (0,_sharedOperations_js__rspack_import_3/* .convertContourPolylineToCanvasSpace */.RZ)(sourceAnnotation.data.contour.polyline, viewport);
38639
+ const sourcePolyline = (0,_sharedOperations_js__rspack_import_4/* .convertContourPolylineToCanvasSpace */.RZ)(sourceAnnotation.data.contour.polyline, viewport);
38637
38640
  if (sourcePolyline.length < 3) {
38638
38641
  removeAnnotationCompletely(sourceAnnotation);
38639
38642
  return;
38640
38643
  }
38641
38644
  const targets = collectSamePlaneSegmentTargets(viewport, sourceAnnotation);
38642
38645
  const subjects = targets.map((t) => {
38643
- const outer = (0,_sharedOperations_js__rspack_import_3/* .convertContourPolylineToCanvasSpace */.RZ)(t.data.contour.polyline, viewport);
38644
- const holes = (0,_sharedOperations_js__rspack_import_3/* .getContourHolesData */.Yo)(viewport, t).map((h) => h.polyline);
38646
+ const outer = (0,_sharedOperations_js__rspack_import_4/* .convertContourPolylineToCanvasSpace */.RZ)(t.data.contour.polyline, viewport);
38647
+ const holes = (0,_sharedOperations_js__rspack_import_4/* .getContourHolesData */.Yo)(viewport, t).map((h) => h.polyline);
38645
38648
  return { outer, holes: holes.length ? holes : undefined };
38646
38649
  });
38647
- const clips = (0,_clipperBooleanOps_js__rspack_import_1/* .splitSelfIntersections */.NE)(sourcePolyline);
38650
+ const clips = (0,_clipperBooleanOps_js__rspack_import_2/* .splitSelfIntersections */.NE)(sourcePolyline);
38648
38651
  if (clips.length === 0) {
38649
38652
  removeAnnotationCompletely(sourceAnnotation);
38650
38653
  return;
38651
38654
  }
38652
- const booleanResult = (0,_clipperBooleanOps_js__rspack_import_1/* .applyBoolean */.ZC)(subjects, clips, op);
38653
- const resultPolygons = op === _clipperBooleanOps_js__rspack_import_1/* .BooleanOp.Union */.Gi.Union
38654
- ? (0,_bridgeWeaklyConnected_js__rspack_import_2/* .unifyWeaklyConnectedPolygons */.v)(booleanResult)
38655
+ const booleanResult = (0,_clipperBooleanOps_js__rspack_import_2/* .applyBoolean */.ZC)(subjects, clips, op);
38656
+ const resultPolygons = op === _clipperBooleanOps_js__rspack_import_2/* .BooleanOp.Union */.Gi.Union
38657
+ ? (0,_bridgeWeaklyConnected_js__rspack_import_3/* .unifyWeaklyConnectedPolygons */.v)(booleanResult)
38655
38658
  : booleanResult;
38656
- const toRemove = [sourceAnnotation];
38659
+ const previousAnnotations = [];
38657
38660
  for (const t of targets) {
38658
- toRemove.push(t);
38659
- for (const h of (0,_sharedOperations_js__rspack_import_3/* .getContourHolesData */.Yo)(viewport, t)) {
38660
- toRemove.push(h.annotation);
38661
+ previousAnnotations.push(t);
38662
+ for (const h of (0,_sharedOperations_js__rspack_import_4/* .getContourHolesData */.Yo)(viewport, t)) {
38663
+ previousAnnotations.push(h.annotation);
38661
38664
  }
38662
38665
  }
38666
+ const toRemove = [sourceAnnotation, ...previousAnnotations];
38663
38667
  for (const annotation of toRemove) {
38664
38668
  removeAnnotationCompletely(annotation);
38665
38669
  }
38666
38670
  const template = targets[0] ?? sourceAnnotation;
38667
38671
  const { element } = viewport;
38672
+ const resultAnnotations = [];
38668
38673
  for (const polygon of resultPolygons) {
38669
38674
  if (polygon.outer.length < 3) {
38670
38675
  continue;
38671
38676
  }
38672
- const parent = (0,_sharedOperations_js__rspack_import_3/* .createNewAnnotationFromPolyline */.oN)(viewport, template, polygon.outer, _types_ContourAnnotation_js__rspack_import_0/* .ContourWindingDirection.Clockwise */.W.Clockwise);
38673
- (0,_stateManagement_annotation_annotationState_js__rspack_import_4.addAnnotation)(parent, element);
38674
- (0,_addContourSegmentationAnnotation_js__rspack_import_5/* .addContourSegmentationAnnotation */.V)(parent);
38677
+ const parent = (0,_sharedOperations_js__rspack_import_4/* .createNewAnnotationFromPolyline */.oN)(viewport, template, polygon.outer, _types_ContourAnnotation_js__rspack_import_1/* .ContourWindingDirection.Clockwise */.W.Clockwise);
38678
+ (0,_stateManagement_annotation_annotationState_js__rspack_import_5.addAnnotation)(parent, element);
38679
+ (0,_addContourSegmentationAnnotation_js__rspack_import_6/* .addContourSegmentationAnnotation */.V)(parent);
38680
+ resultAnnotations.push(parent);
38675
38681
  polygon.holes?.forEach((holePolyline) => {
38676
38682
  if (holePolyline.length < 3) {
38677
38683
  return;
38678
38684
  }
38679
- const hole = (0,_sharedOperations_js__rspack_import_3/* .createNewAnnotationFromPolyline */.oN)(viewport, template, holePolyline, _types_ContourAnnotation_js__rspack_import_0/* .ContourWindingDirection.CounterClockwise */.W.CounterClockwise);
38680
- (0,_stateManagement_annotation_annotationState_js__rspack_import_4.addAnnotation)(hole, element);
38681
- (0,_stateManagement_annotation_annotationState_js__rspack_import_4.addChildAnnotation)(parent, hole);
38682
- (0,_stateManagement_annotation_helpers_state_js__rspack_import_7.triggerAnnotationModified)(hole, element);
38685
+ const hole = (0,_sharedOperations_js__rspack_import_4/* .createNewAnnotationFromPolyline */.oN)(viewport, template, holePolyline, _types_ContourAnnotation_js__rspack_import_1/* .ContourWindingDirection.CounterClockwise */.W.CounterClockwise);
38686
+ (0,_stateManagement_annotation_annotationState_js__rspack_import_5.addAnnotation)(hole, element);
38687
+ (0,_stateManagement_annotation_annotationState_js__rspack_import_5.addChildAnnotation)(parent, hole);
38688
+ resultAnnotations.push(hole);
38689
+ (0,_stateManagement_annotation_helpers_state_js__rspack_import_8.triggerAnnotationModified)(hole, element);
38683
38690
  });
38684
- (0,_stateManagement_annotation_helpers_state_js__rspack_import_7.triggerAnnotationModified)(parent, element);
38691
+ (0,_stateManagement_annotation_helpers_state_js__rspack_import_8.triggerAnnotationModified)(parent, element);
38692
+ }
38693
+ replaceContourStrokeHistory(sourceAnnotation, previousAnnotations, resultAnnotations, viewport);
38694
+ (0,_sharedOperations_js__rspack_import_4/* .updateViewportsForAnnotations */.AL)(viewport, toRemove);
38695
+ }
38696
+ function replaceContourStrokeHistory(sourceAnnotation, previousAnnotations, resultAnnotations, viewport) {
38697
+ const memo = {
38698
+ id: sourceAnnotation.annotationUID,
38699
+ operationType: 'annotation',
38700
+ restoreMemo: (isUndo = true) => {
38701
+ const annotationsToRemove = isUndo
38702
+ ? resultAnnotations
38703
+ : previousAnnotations;
38704
+ const annotationsToAdd = isUndo ? previousAnnotations : resultAnnotations;
38705
+ removeStoredAnnotations(annotationsToRemove);
38706
+ addStoredAnnotations(annotationsToAdd, viewport.element);
38707
+ (0,_sharedOperations_js__rspack_import_4/* .updateViewportsForAnnotations */.AL)(viewport, [
38708
+ ...annotationsToRemove,
38709
+ ...annotationsToAdd,
38710
+ ]);
38711
+ },
38712
+ };
38713
+ DefaultHistoryMemo.replaceCurrentMemo(memo, (currentMemo) => currentMemo.id === sourceAnnotation.annotationUID &&
38714
+ currentMemo.operationType === 'annotation');
38715
+ }
38716
+ function removeStoredAnnotations(annotations) {
38717
+ for (let i = annotations.length - 1; i >= 0; i--) {
38718
+ const annotation = annotations[i];
38719
+ if ((0,_stateManagement_annotation_annotationState_js__rspack_import_5.getAnnotation)(annotation.annotationUID)) {
38720
+ (0,_stateManagement_annotation_annotationState_js__rspack_import_5.removeAnnotation)(annotation.annotationUID);
38721
+ }
38722
+ (0,_removeContourSegmentationAnnotation_js__rspack_import_7/* .removeContourSegmentationAnnotation */.M)(annotation);
38723
+ }
38724
+ }
38725
+ function addStoredAnnotations(annotations, element) {
38726
+ for (const annotation of annotations) {
38727
+ if ((0,_stateManagement_annotation_annotationState_js__rspack_import_5.getAnnotation)(annotation.annotationUID)) {
38728
+ continue;
38729
+ }
38730
+ (0,_stateManagement_annotation_annotationState_js__rspack_import_5.addAnnotation)(annotation, element);
38731
+ (0,_addContourSegmentationAnnotation_js__rspack_import_6/* .addContourSegmentationAnnotation */.V)(annotation);
38685
38732
  }
38686
- (0,_sharedOperations_js__rspack_import_3/* .updateViewportsForAnnotations */.AL)(viewport, toRemove);
38687
38733
  }
38688
38734
  function collectSamePlaneSegmentTargets(viewport, sourceAnnotation) {
38689
38735
  const sourceUID = sourceAnnotation.annotationUID;
38690
- return (0,_stateManagement_annotation_annotationState_js__rspack_import_4.getAllAnnotations)().filter((candidate) => {
38736
+ return (0,_stateManagement_annotation_annotationState_js__rspack_import_5.getAllAnnotations)().filter((candidate) => {
38691
38737
  if (!candidate.annotationUID || candidate.annotationUID === sourceUID) {
38692
38738
  return false;
38693
38739
  }
38694
- if (!(0,_isContourSegmentationAnnotation_js__rspack_import_9/* ["default"] */.A)(candidate)) {
38740
+ if (!(0,_isContourSegmentationAnnotation_js__rspack_import_10/* ["default"] */.A)(candidate)) {
38695
38741
  return false;
38696
38742
  }
38697
- if (!(0,_areSameSegment_js__rspack_import_8/* ["default"] */.A)(candidate, sourceAnnotation)) {
38743
+ if (!(0,_areSameSegment_js__rspack_import_9/* ["default"] */.A)(candidate, sourceAnnotation)) {
38698
38744
  return false;
38699
38745
  }
38700
38746
  if (!viewport.isReferenceViewable(candidate.metadata)) {
@@ -38707,8 +38753,8 @@ function collectSamePlaneSegmentTargets(viewport, sourceAnnotation) {
38707
38753
  });
38708
38754
  }
38709
38755
  function removeAnnotationCompletely(annotation) {
38710
- (0,_stateManagement_annotation_annotationState_js__rspack_import_4.removeAnnotation)(annotation.annotationUID);
38711
- (0,_removeContourSegmentationAnnotation_js__rspack_import_6/* .removeContourSegmentationAnnotation */.M)(annotation);
38756
+ (0,_stateManagement_annotation_annotationState_js__rspack_import_5.removeAnnotation)(annotation.annotationUID);
38757
+ (0,_removeContourSegmentationAnnotation_js__rspack_import_7/* .removeContourSegmentationAnnotation */.M)(annotation);
38712
38758
  }
38713
38759
 
38714
38760
 
@@ -48360,7 +48406,7 @@ __webpack_require__.d(__webpack_exports__, {
48360
48406
 
48361
48407
  },
48362
48408
  80274() {
48363
- const version = '5.6.7';
48409
+ const version = '5.6.8';
48364
48410
 
48365
48411
 
48366
48412
  },
@@ -42784,8 +42784,8 @@ function AboutModalDefault() {
42784
42784
  name
42785
42785
  } = (0,browser_detect_es5/* ["default"] */.A)();
42786
42786
  const browser = `${name[0].toUpperCase()}${name.substr(1)} ${version}`;
42787
- const versionNumber = "3.13.0-beta.133";
42788
- const commitHash = "9cdea04cb718f4307284546a24fde9f5d3134a36";
42787
+ const versionNumber = "3.13.0-beta.135";
42788
+ const commitHash = "a26605f9dbc308cdccf728f3d3da46c42fec9b02";
42789
42789
  const [main, beta] = versionNumber.split('-');
42790
42790
  return /*#__PURE__*/react.createElement(ui_next_src/* .AboutModal */.VTU, {
42791
42791
  className: "w-[400px]"