@ohif/app 3.13.0-beta.16 → 3.13.0-beta.18

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 (50) hide show
  1. package/dist/{1608.bundle.b9abbf4ed6cc2e491dc3.js → 1608.bundle.7a4a3b49cae10f6ba2cf.js} +2 -2
  2. package/dist/{1933.bundle.b20b6a37632659c2c4ee.js → 1933.bundle.dbc0c441142fd821ccff.js} +1 -1
  3. package/dist/{6347.bundle.f8393c20d5159ed41b64.js → 2031.bundle.a17bc2d85cef3a9fea57.js} +1 -302
  4. package/dist/{3081.bundle.a4af38d404ba7028dace.js → 3081.bundle.71b27414994306fdb140.js} +116 -19
  5. package/dist/{1730.bundle.86fbbd19acb97ce0ce73.js → 3138.bundle.a3e898887241ec2b36f4.js} +1 -294
  6. package/dist/{4287.bundle.87e14e648f2bce5e4176.js → 4287.bundle.571587a1d29d54203175.js} +60 -0
  7. package/dist/{5462.bundle.d5bb9b3ddc510fea141f.js → 4406.bundle.573d234b4641d23cf8db.js} +1 -302
  8. package/dist/{1403.bundle.ac830164cbb2f0943910.js → 4507.bundle.a262f19c9dce15b2c7a4.js} +1 -294
  9. package/dist/{4819.bundle.ec8624a94cba689fd2eb.js → 4819.bundle.93a549160fb10a0d6dda.js} +1 -1
  10. package/dist/{4775.bundle.0c5a9a9cdf15d72b3d14.js → 5015.bundle.f9e2d5e016c991c9792b.js} +1 -294
  11. package/dist/{5028.bundle.41ea69791907c11ffd7a.js → 5028.bundle.8c473d08dd7ad0bda811.js} +1 -1
  12. package/dist/{6280.bundle.f22f9955eb906e1d7da8.js → 6280.bundle.6574101421b8a4ab6777.js} +0 -24
  13. package/dist/{8305.bundle.112bc3ca3476ea099709.js → 8305.bundle.62ea4d7a81ea4786d5d2.js} +1 -1
  14. package/dist/{6163.bundle.af6246332cf6dc6b1a69.js → 8499.bundle.2c7390b25267dd9e846f.js} +1 -294
  15. package/dist/{8558.bundle.92f63b423a25074144af.js → 8558.bundle.b720642a4bce73ecfbeb.js} +8 -304
  16. package/dist/{8583.bundle.1a5805501a84c56de836.js → 8583.bundle.b0511486d2fa0c27ef50.js} +1 -1
  17. package/dist/{8665.bundle.dc56c125411422f9f686.js → 8665.bundle.056dcd3e86743de2526c.js} +0 -61
  18. package/dist/{9195.bundle.7612331b1e2d167fcb25.js → 9195.bundle.8c55de3270fa2b459336.js} +15 -10
  19. package/dist/{9205.bundle.2a2f38a4ee23647f5fa4.js → 9205.bundle.dca4f040999d069f1cc5.js} +216 -0
  20. package/dist/{2199.bundle.974037f21bfd12c4e8af.js → 933.bundle.c8f45e1f380ad5a34e07.js} +24 -1
  21. package/dist/{app.bundle.c15c5fc2d039e328e646.js → app.bundle.a3f235ffa6ab1054813c.js} +34 -37
  22. package/dist/{compute.bundle.73440405025831e0e072.js → compute.bundle.6bc9d64acadd16a85f59.js} +1 -1
  23. package/dist/index.html +1 -1
  24. package/dist/{polySeg.bundle.6373e24bd578ae0d41eb.js → polySeg.bundle.41c40b57dd1b265fb425.js} +3 -3
  25. package/dist/sw.js +1 -1
  26. package/package.json +20 -20
  27. package/dist/3343.bundle.a4424b8418b8c0c1a9e4.js +0 -297
  28. package/dist/5724.bundle.62ea5c07c7809ab4cd74.js +0 -297
  29. /package/dist/{1459.bundle.c1d82c41f6dbf07e55e6.js → 1459.bundle.3f6f24f4c7f8ccc08ace.js} +0 -0
  30. /package/dist/{147.bundle.8dd6a25071c60885fdc2.js → 147.bundle.15c3dffbc73dab1085f5.js} +0 -0
  31. /package/dist/{2018.bundle.3d2e186e5891830f1beb.js → 2018.bundle.ec0fac525c344b7d9b4c.js} +0 -0
  32. /package/dist/{213.bundle.a0ef60c5418353604f6d.js → 213.bundle.725412164a28008177cf.js} +0 -0
  33. /package/dist/{2424.bundle.3e52f07e8620f85f9a7b.js → 2424.bundle.9d6bd74f7a42c6d08607.js} +0 -0
  34. /package/dist/{2701.bundle.0ab3399a71aefee2ef01.js → 2701.bundle.8abdc7f6578c00d4539f.js} +0 -0
  35. /package/dist/{1730.css → 3138.css} +0 -0
  36. /package/dist/{3461.bundle.688d2081b493cccadbbc.js → 3461.bundle.f9abb275f918238310c0.js} +0 -0
  37. /package/dist/{4202.bundle.4f76d3a50d6cf819fba0.js → 4202.bundle.dd592e5575b8e302689a.js} +0 -0
  38. /package/dist/{3343.css → 4972.css} +0 -0
  39. /package/dist/{5457.bundle.7028d7ce1f197877689e.js → 5457.bundle.d477fb3c241b34084f06.js} +0 -0
  40. /package/dist/{5485.bundle.88a0cad6970f7e0ebf36.js → 5485.bundle.cf580455850df732cb9a.js} +0 -0
  41. /package/dist/{5802.bundle.3ead9f3effbd6b8ccdf9.js → 5802.bundle.70600f8f701ac920b932.js} +0 -0
  42. /package/dist/{6027.bundle.7e714d35e32a6aaa110c.js → 6027.bundle.5fc015be2f921167315c.js} +0 -0
  43. /package/dist/{7431.bundle.b31ebb4a2625e89d864e.js → 7431.bundle.e6f5f5835a3c49e2309c.js} +0 -0
  44. /package/dist/{7639.bundle.72f59c4dc4d43cd0c87e.js → 7639.bundle.64c27574ea158bc5d474.js} +0 -0
  45. /package/dist/{5724.css → 7829.css} +0 -0
  46. /package/dist/{6163.css → 8499.css} +0 -0
  47. /package/dist/{85.bundle.b214efb33bdf2c92abcf.js → 85.bundle.c1a8e7c23882f8ccbe2a.js} +0 -0
  48. /package/dist/{9845.bundle.31f3e7e2d28fa6033ee5.js → 9845.bundle.d52e8993eb5cde995219.js} +0 -0
  49. /package/dist/{9862.bundle.73ea2a7703bf1bb96275.js → 9862.bundle.4704bce0c5b039dfdec3.js} +0 -0
  50. /package/dist/{9927.bundle.08dafbec084a2276e1e8.js → 9927.bundle.e7e1a0e1f90ea6e435a3.js} +0 -0
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- (globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[1608,2591],{
2
+ (globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[1608,2591,4972,7829],{
3
3
 
4
4
  /***/ 88414
5
5
  (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
@@ -202,7 +202,7 @@ function OHIFCornerstoneRTViewport(props) {
202
202
  toolGroup = initRTToolGroup(toolGroupService, customizationService, toolGroupId);
203
203
  return () => {
204
204
  // remove the segmentation representations if seg displayset changed
205
- segmentationService.removeSegmentationRepresentations(viewportId);
205
+ segmentationService.removeRepresentationsFromViewport(viewportId);
206
206
  referencedDisplaySetRef.current = null;
207
207
  toolGroupService.destroyToolGroup(toolGroupId);
208
208
  };
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- (globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[1933,2591],{
2
+ (globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[1933,2591,4972,7829],{
3
3
 
4
4
  /***/ 6015
5
5
  (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
@@ -1,4 +1,4 @@
1
- (globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[6347],{
1
+ (globalThis["webpackChunk"] = globalThis["webpackChunk"] || []).push([[2031],{
2
2
 
3
3
  /***/ 22031
4
4
  (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
@@ -7073,307 +7073,6 @@ function downloadDICOMData(bufferOrDataset, filename) {
7073
7073
 
7074
7074
 
7075
7075
 
7076
- /***/ },
7077
-
7078
- /***/ 75183
7079
- (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
7080
-
7081
- "use strict";
7082
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
7083
- /* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
7084
- /* harmony export */ });
7085
- var ChangeTypes;
7086
- (function (ChangeTypes) {
7087
- ChangeTypes["Interaction"] = "Interaction";
7088
- ChangeTypes["HandlesUpdated"] = "HandlesUpdated";
7089
- ChangeTypes["StatsUpdated"] = "StatsUpdated";
7090
- ChangeTypes["InitialSetup"] = "InitialSetup";
7091
- ChangeTypes["Completed"] = "Completed";
7092
- ChangeTypes["InterpolationUpdated"] = "InterpolationUpdated";
7093
- ChangeTypes["History"] = "History";
7094
- ChangeTypes["MetadataReferenceModified"] = "MetadataReferenceModified";
7095
- ChangeTypes["LabelChange"] = "LabelChange";
7096
- })(ChangeTypes || (ChangeTypes = {}));
7097
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ChangeTypes);
7098
-
7099
-
7100
- /***/ },
7101
-
7102
- /***/ 94021
7103
- (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
7104
-
7105
- "use strict";
7106
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
7107
- /* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
7108
- /* harmony export */ });
7109
- var Events;
7110
- (function (Events) {
7111
- Events["TOOL_ACTIVATED"] = "CORNERSTONE_TOOLS_TOOL_ACTIVATED";
7112
- Events["TOOLGROUP_VIEWPORT_ADDED"] = "CORNERSTONE_TOOLS_TOOLGROUP_VIEWPORT_ADDED";
7113
- Events["TOOLGROUP_VIEWPORT_REMOVED"] = "CORNERSTONE_TOOLS_TOOLGROUP_VIEWPORT_REMOVED";
7114
- Events["TOOL_MODE_CHANGED"] = "CORNERSTONE_TOOLS_TOOL_MODE_CHANGED";
7115
- Events["CROSSHAIR_TOOL_CENTER_CHANGED"] = "CORNERSTONE_TOOLS_CROSSHAIR_TOOL_CENTER_CHANGED";
7116
- Events["VOLUMECROPPINGCONTROL_TOOL_CHANGED"] = "CORNERSTONE_TOOLS_VOLUMECROPPINGCONTROL_TOOL_CHANGED";
7117
- Events["VOLUMECROPPING_TOOL_CHANGED"] = "CORNERSTONE_TOOLS_VOLUMECROPPING_TOOL_CHANGED";
7118
- Events["STACK_PREFETCH_COMPLETE"] = "CORNERSTONE_TOOLS_STACK_PREFETCH_COMPLETE";
7119
- Events["ANNOTATION_ADDED"] = "CORNERSTONE_TOOLS_ANNOTATION_ADDED";
7120
- Events["ANNOTATION_COMPLETED"] = "CORNERSTONE_TOOLS_ANNOTATION_COMPLETED";
7121
- Events["ANNOTATION_MODIFIED"] = "CORNERSTONE_TOOLS_ANNOTATION_MODIFIED";
7122
- Events["ANNOTATION_REMOVED"] = "CORNERSTONE_TOOLS_ANNOTATION_REMOVED";
7123
- Events["ANNOTATION_SELECTION_CHANGE"] = "CORNERSTONE_TOOLS_ANNOTATION_SELECTION_CHANGE";
7124
- Events["ANNOTATION_LOCK_CHANGE"] = "CORNERSTONE_TOOLS_ANNOTATION_LOCK_CHANGE";
7125
- Events["ANNOTATION_VISIBILITY_CHANGE"] = "CORNERSTONE_TOOLS_ANNOTATION_VISIBILITY_CHANGE";
7126
- Events["ANNOTATION_RENDERED"] = "CORNERSTONE_TOOLS_ANNOTATION_RENDERED";
7127
- Events["ANNOTATION_CUT_MERGE_PROCESS_COMPLETED"] = "CORNERSTONE_TOOLS_ANNOTATION_CUT_MERGE_PROCESS_COMPLETED";
7128
- Events["ANNOTATION_INTERPOLATION_PROCESS_COMPLETED"] = "CORNERSTONE_TOOLS_ANNOTATION_INTERPOLATION_PROCESS_COMPLETED";
7129
- Events["INTERPOLATED_ANNOTATIONS_REMOVED"] = "CORNERSTONE_TOOLS_INTERPOLATED_ANNOTATIONS_REMOVED";
7130
- Events["SEGMENTATION_MODIFIED"] = "CORNERSTONE_TOOLS_SEGMENTATION_MODIFIED";
7131
- Events["SEGMENTATION_RENDERED"] = "CORNERSTONE_TOOLS_SEGMENTATION_RENDERED";
7132
- Events["SEGMENTATION_REPRESENTATION_ADDED"] = "CORNERSTONE_TOOLS_SEGMENTATION_REPRESENTATION_ADDED";
7133
- Events["SEGMENTATION_ADDED"] = "CORNERSTONE_TOOLS_SEGMENTATION_ADDED";
7134
- Events["SEGMENTATION_REPRESENTATION_MODIFIED"] = "CORNERSTONE_TOOLS_SEGMENTATION_REPRESENTATION_MODIFIED";
7135
- Events["SEGMENTATION_REMOVED"] = "CORNERSTONE_TOOLS_SEGMENTATION_REMOVED";
7136
- Events["SEGMENTATION_REPRESENTATION_REMOVED"] = "CORNERSTONE_TOOLS_SEGMENTATION_REPRESENTATION_REMOVED";
7137
- Events["SEGMENTATION_DATA_MODIFIED"] = "CORNERSTONE_TOOLS_SEGMENTATION_DATA_MODIFIED";
7138
- Events["HISTORY_UNDO"] = "CORNERSTONE_TOOLS_HISTORY_UNDO";
7139
- Events["HISTORY_REDO"] = "CORNERSTONE_TOOLS_HISTORY_REDO";
7140
- Events["KEY_DOWN"] = "CORNERSTONE_TOOLS_KEY_DOWN";
7141
- Events["KEY_UP"] = "CORNERSTONE_TOOLS_KEY_UP";
7142
- Events["MOUSE_DOWN"] = "CORNERSTONE_TOOLS_MOUSE_DOWN";
7143
- Events["MOUSE_UP"] = "CORNERSTONE_TOOLS_MOUSE_UP";
7144
- Events["MOUSE_DOWN_ACTIVATE"] = "CORNERSTONE_TOOLS_MOUSE_DOWN_ACTIVATE";
7145
- Events["MOUSE_DRAG"] = "CORNERSTONE_TOOLS_MOUSE_DRAG";
7146
- Events["MOUSE_MOVE"] = "CORNERSTONE_TOOLS_MOUSE_MOVE";
7147
- Events["MOUSE_CLICK"] = "CORNERSTONE_TOOLS_MOUSE_CLICK";
7148
- Events["MOUSE_DOUBLE_CLICK"] = "CORNERSTONE_TOOLS_MOUSE_DOUBLE_CLICK";
7149
- Events["MOUSE_WHEEL"] = "CORNERSTONE_TOOLS_MOUSE_WHEEL";
7150
- Events["TOUCH_START"] = "CORNERSTONE_TOOLS_TOUCH_START";
7151
- Events["TOUCH_START_ACTIVATE"] = "CORNERSTONE_TOOLS_TOUCH_START_ACTIVATE";
7152
- Events["TOUCH_PRESS"] = "CORNERSTONE_TOOLS_TOUCH_PRESS";
7153
- Events["TOUCH_DRAG"] = "CORNERSTONE_TOOLS_TOUCH_DRAG";
7154
- Events["TOUCH_END"] = "CORNERSTONE_TOOLS_TOUCH_END";
7155
- Events["TOUCH_TAP"] = "CORNERSTONE_TOOLS_TAP";
7156
- Events["TOUCH_SWIPE"] = "CORNERSTONE_TOOLS_SWIPE";
7157
- })(Events || (Events = {}));
7158
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Events);
7159
-
7160
-
7161
- /***/ },
7162
-
7163
- /***/ 18682
7164
- (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
7165
-
7166
- "use strict";
7167
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
7168
- /* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
7169
- /* harmony export */ });
7170
- var SegmentationRepresentations;
7171
- (function (SegmentationRepresentations) {
7172
- SegmentationRepresentations["Labelmap"] = "Labelmap";
7173
- SegmentationRepresentations["Contour"] = "Contour";
7174
- SegmentationRepresentations["Surface"] = "Surface";
7175
- })(SegmentationRepresentations || (SegmentationRepresentations = {}));
7176
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SegmentationRepresentations);
7177
-
7178
-
7179
- /***/ },
7180
-
7181
- /***/ 84093
7182
- (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
7183
-
7184
- "use strict";
7185
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
7186
- /* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
7187
- /* harmony export */ });
7188
- var StrategyCallbacks;
7189
- (function (StrategyCallbacks) {
7190
- StrategyCallbacks["CalculateCursorGeometry"] = "calculateCursorGeometry";
7191
- StrategyCallbacks["RenderCursor"] = "renderCursor";
7192
- StrategyCallbacks["OnInteractionStart"] = "onInteractionStart";
7193
- StrategyCallbacks["OnInteractionEnd"] = "onInteractionEnd";
7194
- StrategyCallbacks["Preview"] = "preview";
7195
- StrategyCallbacks["RejectPreview"] = "rejectPreview";
7196
- StrategyCallbacks["AcceptPreview"] = "acceptPreview";
7197
- StrategyCallbacks["Fill"] = "fill";
7198
- StrategyCallbacks["Interpolate"] = "interpolate";
7199
- StrategyCallbacks["StrategyFunction"] = "strategyFunction";
7200
- StrategyCallbacks["CreateIsInThreshold"] = "createIsInThreshold";
7201
- StrategyCallbacks["Initialize"] = "initialize";
7202
- StrategyCallbacks["INTERNAL_setValue"] = "setValue";
7203
- StrategyCallbacks["AddPreview"] = "addPreview";
7204
- StrategyCallbacks["ComputeInnerCircleRadius"] = "computeInnerCircleRadius";
7205
- StrategyCallbacks["GetStatistics"] = "getStatistics";
7206
- StrategyCallbacks["EnsureImageVolumeFor3DManipulation"] = "ensureImageVolumeFor3DManipulation";
7207
- StrategyCallbacks["EnsureSegmentationVolumeFor3DManipulation"] = "ensureSegmentationVolumeFor3DManipulation";
7208
- })(StrategyCallbacks || (StrategyCallbacks = {}));
7209
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (StrategyCallbacks);
7210
-
7211
-
7212
- /***/ },
7213
-
7214
- /***/ 66452
7215
- (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
7216
-
7217
- "use strict";
7218
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
7219
- /* harmony export */ i: () => (/* binding */ MouseBindings),
7220
- /* harmony export */ q: () => (/* binding */ KeyboardBindings)
7221
- /* harmony export */ });
7222
- var MouseBindings;
7223
- (function (MouseBindings) {
7224
- MouseBindings[MouseBindings["Primary"] = 1] = "Primary";
7225
- MouseBindings[MouseBindings["Secondary"] = 2] = "Secondary";
7226
- MouseBindings[MouseBindings["Primary_And_Secondary"] = 3] = "Primary_And_Secondary";
7227
- MouseBindings[MouseBindings["Auxiliary"] = 4] = "Auxiliary";
7228
- MouseBindings[MouseBindings["Primary_And_Auxiliary"] = 5] = "Primary_And_Auxiliary";
7229
- MouseBindings[MouseBindings["Secondary_And_Auxiliary"] = 6] = "Secondary_And_Auxiliary";
7230
- MouseBindings[MouseBindings["Primary_And_Secondary_And_Auxiliary"] = 7] = "Primary_And_Secondary_And_Auxiliary";
7231
- MouseBindings[MouseBindings["Fourth_Button"] = 8] = "Fourth_Button";
7232
- MouseBindings[MouseBindings["Fifth_Button"] = 16] = "Fifth_Button";
7233
- MouseBindings[MouseBindings["Wheel"] = 524288] = "Wheel";
7234
- MouseBindings[MouseBindings["Wheel_Primary"] = 524289] = "Wheel_Primary";
7235
- })(MouseBindings || (MouseBindings = {}));
7236
- var KeyboardBindings;
7237
- (function (KeyboardBindings) {
7238
- KeyboardBindings[KeyboardBindings["Shift"] = 16] = "Shift";
7239
- KeyboardBindings[KeyboardBindings["Ctrl"] = 17] = "Ctrl";
7240
- KeyboardBindings[KeyboardBindings["Alt"] = 18] = "Alt";
7241
- KeyboardBindings[KeyboardBindings["Meta"] = 91] = "Meta";
7242
- KeyboardBindings[KeyboardBindings["ShiftCtrl"] = 1617] = "ShiftCtrl";
7243
- KeyboardBindings[KeyboardBindings["ShiftAlt"] = 1618] = "ShiftAlt";
7244
- KeyboardBindings[KeyboardBindings["ShiftMeta"] = 1691] = "ShiftMeta";
7245
- KeyboardBindings[KeyboardBindings["CtrlAlt"] = 1718] = "CtrlAlt";
7246
- KeyboardBindings[KeyboardBindings["CtrlMeta"] = 1791] = "CtrlMeta";
7247
- KeyboardBindings[KeyboardBindings["AltMeta"] = 1891] = "AltMeta";
7248
- })(KeyboardBindings || (KeyboardBindings = {}));
7249
-
7250
-
7251
-
7252
- /***/ },
7253
-
7254
- /***/ 49892
7255
- (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
7256
-
7257
- "use strict";
7258
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
7259
- /* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
7260
- /* harmony export */ });
7261
- var ToolModes;
7262
- (function (ToolModes) {
7263
- ToolModes["Active"] = "Active";
7264
- ToolModes["Passive"] = "Passive";
7265
- ToolModes["Enabled"] = "Enabled";
7266
- ToolModes["Disabled"] = "Disabled";
7267
- })(ToolModes || (ToolModes = {}));
7268
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ToolModes);
7269
-
7270
-
7271
- /***/ },
7272
-
7273
- /***/ 10401
7274
- (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
7275
-
7276
- "use strict";
7277
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
7278
- /* harmony export */ H: () => (/* binding */ Swipe)
7279
- /* harmony export */ });
7280
- var Swipe;
7281
- (function (Swipe) {
7282
- Swipe["UP"] = "UP";
7283
- Swipe["DOWN"] = "DOWN";
7284
- Swipe["LEFT"] = "LEFT";
7285
- Swipe["RIGHT"] = "RIGHT";
7286
- })(Swipe || (Swipe = {}));
7287
-
7288
-
7289
-
7290
- /***/ },
7291
-
7292
- /***/ 29857
7293
- (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
7294
-
7295
- "use strict";
7296
- // ESM COMPAT FLAG
7297
- __webpack_require__.r(__webpack_exports__);
7298
-
7299
- // EXPORTS
7300
- __webpack_require__.d(__webpack_exports__, {
7301
- AnnotationStyleStates: () => (/* reexport */ enums_AnnotationStyleStates),
7302
- ChangeTypes: () => (/* reexport */ ChangeTypes/* default */.A),
7303
- Events: () => (/* reexport */ Events/* default */.A),
7304
- KeyboardBindings: () => (/* reexport */ ToolBindings/* KeyboardBindings */.q),
7305
- MeasurementType: () => (/* reexport */ MeasurementType),
7306
- MouseBindings: () => (/* reexport */ ToolBindings/* MouseBindings */.i),
7307
- SegmentationRepresentations: () => (/* reexport */ SegmentationRepresentations/* default */.A),
7308
- StrategyCallbacks: () => (/* reexport */ StrategyCallbacks/* default */.A),
7309
- Swipe: () => (/* reexport */ Touch/* Swipe */.H),
7310
- ToolModes: () => (/* reexport */ ToolModes/* default */.A),
7311
- WorkerTypes: () => (/* reexport */ WorkerTypes)
7312
- });
7313
-
7314
- // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/enums/ToolBindings.js
7315
- var ToolBindings = __webpack_require__(66452);
7316
- // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/enums/ToolModes.js
7317
- var ToolModes = __webpack_require__(49892);
7318
- ;// ../../../node_modules/@cornerstonejs/tools/dist/esm/enums/AnnotationStyleStates.js
7319
- var AnnotationStyleStates;
7320
- (function (AnnotationStyleStates) {
7321
- AnnotationStyleStates["Default"] = "";
7322
- AnnotationStyleStates["Highlighted"] = "Highlighted";
7323
- AnnotationStyleStates["Selected"] = "Selected";
7324
- AnnotationStyleStates["Locked"] = "Locked";
7325
- AnnotationStyleStates["AutoGenerated"] = "AutoGenerated";
7326
- })(AnnotationStyleStates || (AnnotationStyleStates = {}));
7327
- /* harmony default export */ const enums_AnnotationStyleStates = (AnnotationStyleStates);
7328
-
7329
- // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/enums/Events.js
7330
- var Events = __webpack_require__(94021);
7331
- // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/enums/SegmentationRepresentations.js
7332
- var SegmentationRepresentations = __webpack_require__(18682);
7333
- // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/enums/Touch.js
7334
- var Touch = __webpack_require__(10401);
7335
- // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/enums/StrategyCallbacks.js
7336
- var StrategyCallbacks = __webpack_require__(84093);
7337
- // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/tools/dist/esm/enums/ChangeTypes.js
7338
- var ChangeTypes = __webpack_require__(75183);
7339
- ;// ../../../node_modules/@cornerstonejs/tools/dist/esm/enums/WorkerTypes.js
7340
- var WorkerTypes_ChangeTypes;
7341
- (function (ChangeTypes) {
7342
- ChangeTypes["POLYSEG_CONTOUR_TO_LABELMAP"] = "Converting Contour to Labelmap";
7343
- ChangeTypes["POLYSEG_SURFACE_TO_LABELMAP"] = "Converting Surfaces to Labelmap";
7344
- ChangeTypes["POLYSEG_CONTOUR_TO_SURFACE"] = "Converting Contour to Surface";
7345
- ChangeTypes["POLYSEG_LABELMAP_TO_SURFACE"] = "Converting Labelmap to Surface";
7346
- ChangeTypes["SURFACE_CLIPPING"] = "Clipping Surfaces";
7347
- ChangeTypes["COMPUTE_STATISTICS"] = "Computing Statistics";
7348
- ChangeTypes["INTERPOLATE_LABELMAP"] = "Interpolating Labelmap";
7349
- ChangeTypes["COMPUTE_LARGEST_BIDIRECTIONAL"] = "Computing Largest Bidirectional";
7350
- ChangeTypes["GENERATE_CONTOUR_SETS"] = "Generating Contour Sets";
7351
- })(WorkerTypes_ChangeTypes || (WorkerTypes_ChangeTypes = {}));
7352
- /* harmony default export */ const WorkerTypes = (WorkerTypes_ChangeTypes);
7353
-
7354
- ;// ../../../node_modules/@cornerstonejs/tools/dist/esm/enums/MeasurementType.js
7355
- var MeasurementType;
7356
- (function (MeasurementType) {
7357
- MeasurementType["Linear"] = "Linear";
7358
- MeasurementType["Area"] = "Area";
7359
- MeasurementType["Volume"] = "Volume";
7360
- MeasurementType["Pixel"] = "Pixel";
7361
- })(MeasurementType || (MeasurementType = {}));
7362
-
7363
- ;// ../../../node_modules/@cornerstonejs/tools/dist/esm/enums/index.js
7364
-
7365
-
7366
-
7367
-
7368
-
7369
-
7370
-
7371
-
7372
-
7373
-
7374
-
7375
-
7376
-
7377
7076
  /***/ },
7378
7077
 
7379
7078
  /***/ 26337
@@ -9014,7 +9014,8 @@ function ViewportDownloadFormNew({
9014
9014
  onDimensionsChange,
9015
9015
  onEnableViewport,
9016
9016
  onDisableViewport,
9017
- onDownload
9017
+ onDownload,
9018
+ onCopyToClipboard
9018
9019
  }) {
9019
9020
  const [viewportElement, setViewportElement] = (0,react.useState)(null);
9020
9021
  const [showWarningMessage, setShowWarningMessage] = (0,react.useState)(true);
@@ -9087,12 +9088,23 @@ function ViewportDownloadFormNew({
9087
9088
  className: "mt-2"
9088
9089
  }, /*#__PURE__*/react.createElement(ui_next_src/* FooterAction */.esu.Right, null, /*#__PURE__*/react.createElement(ui_next_src/* FooterAction */.esu.Secondary, {
9089
9090
  onClick: onClose
9090
- }, t('Common:Cancel')), /*#__PURE__*/react.createElement(ui_next_src/* FooterAction */.esu.Primary, {
9091
+ }, t('Common:Cancel')), /*#__PURE__*/react.createElement(ui_next_src/* FooterAction */.esu.Secondary, {
9092
+ onClick: async () => {
9093
+ try {
9094
+ await onCopyToClipboard();
9095
+ ui_next_src/* toast */.oRP.success(t('Image copied to clipboard'));
9096
+ onClose();
9097
+ } catch (error) {
9098
+ ui_next_src/* toast */.oRP.error(t('Failed to copy image to clipboard'));
9099
+ console.error('Failed to copy to clipboard:', error);
9100
+ }
9101
+ }
9102
+ }, t('Copy to Clipboard')), /*#__PURE__*/react.createElement(ui_next_src/* FooterAction */.esu.Primary, {
9091
9103
  onClick: () => {
9092
9104
  onDownload(filename || DEFAULT_FILENAME, fileType);
9093
9105
  onClose();
9094
9106
  }
9095
- }, t('Common:Save')))))));
9107
+ }, t('Save Image')))))));
9096
9108
  }
9097
9109
  /* harmony default export */ const captureViewportModalCustomization = ({
9098
9110
  'ohif.captureViewportModal': ViewportDownloadFormNew
@@ -9510,17 +9522,21 @@ const CornerstoneViewportDownloadForm = ({
9510
9522
  } = activeViewportEnabledElement;
9511
9523
  const downloadViewport = renderingEngine.getViewport(VIEWPORT_ID);
9512
9524
  try {
9525
+ const properties = viewport.getProperties();
9513
9526
  if (downloadViewport instanceof esm.StackViewport) {
9514
9527
  const imageId = viewport.getCurrentImageId();
9515
- const properties = viewport.getProperties();
9516
9528
  await downloadViewport.setStack([imageId]);
9517
9529
  downloadViewport.setProperties(properties);
9518
9530
  } else if (downloadViewport instanceof esm.BaseVolumeViewport) {
9519
9531
  const volumeIds = viewport.getAllVolumeIds();
9520
- downloadViewport.setVolumes([{
9532
+ await downloadViewport.setVolumes([{
9521
9533
  volumeId: volumeIds[0]
9522
9534
  }]);
9523
9535
  }
9536
+ downloadViewport.setProperties(properties);
9537
+ const viewRef = viewport.getViewReference();
9538
+ downloadViewport.setViewReference(viewRef);
9539
+ downloadViewport.render();
9524
9540
  if (segmentationRepresentations?.length) {
9525
9541
  segmentationRepresentations.forEach(segRepresentation => {
9526
9542
  const {
@@ -9614,6 +9630,36 @@ const CornerstoneViewportDownloadForm = ({
9614
9630
  filename
9615
9631
  });
9616
9632
  };
9633
+ const handleCopyToClipboard = async () => {
9634
+ const divForDownloadViewport = document.querySelector(`div[data-viewport-uid="${VIEWPORT_ID}"]`);
9635
+ if (!divForDownloadViewport) {
9636
+ console.debug('No viewport found for copy');
9637
+ return;
9638
+ }
9639
+ try {
9640
+ const canvas = await (0,html2canvas_esm/* default */.A)(divForDownloadViewport);
9641
+
9642
+ // Clipboard API only supports PNG format in most browsers
9643
+ const blob = await new Promise((resolve, reject) => {
9644
+ canvas.toBlob(blob => {
9645
+ if (blob) {
9646
+ resolve(blob);
9647
+ } else {
9648
+ reject(new Error('Failed to create blob from canvas'));
9649
+ }
9650
+ }, 'image/png', 1.0);
9651
+ });
9652
+
9653
+ // Copy to clipboard using the Clipboard API
9654
+ await navigator.clipboard.write([new ClipboardItem({
9655
+ 'image/png': blob
9656
+ })]);
9657
+ console.log('Image copied to clipboard successfully');
9658
+ } catch (error) {
9659
+ console.error('Failed to copy image to clipboard:', error);
9660
+ throw error;
9661
+ }
9662
+ };
9617
9663
  const ViewportDownloadFormNew = customizationService.getCustomization('ohif.captureViewportModal');
9618
9664
  return /*#__PURE__*/react.createElement(ViewportDownloadFormNew, {
9619
9665
  onClose: hide,
@@ -9627,6 +9673,7 @@ const CornerstoneViewportDownloadForm = ({
9627
9673
  onEnableViewport: handleEnableViewport,
9628
9674
  onDisableViewport: handleDisableViewport,
9629
9675
  onDownload: handleDownload,
9676
+ onCopyToClipboard: handleCopyToClipboard,
9630
9677
  warningState: warningState
9631
9678
  });
9632
9679
  };
@@ -12125,14 +12172,15 @@ function commandsModule({
12125
12172
  * @param props.segmentationId - The ID of the segmentation to remove
12126
12173
  */
12127
12174
  removeSegmentationFromViewportCommand: ({
12128
- segmentationId
12175
+ segmentationId: displaySetInstanceUID
12129
12176
  }) => {
12130
12177
  const {
12131
- segmentationService,
12132
12178
  viewportGridService
12133
12179
  } = servicesManager.services;
12134
- segmentationService.removeSegmentationRepresentations(viewportGridService.getActiveViewportId(), {
12135
- segmentationId
12180
+ const viewportId = viewportGridService.getActiveViewportId();
12181
+ commandsManager.runCommand('removeDisplaySetLayer', {
12182
+ viewportId,
12183
+ displaySetInstanceUID
12136
12184
  });
12137
12185
  },
12138
12186
  /**
@@ -19143,11 +19191,11 @@ class SegmentationService extends src/* PubSubService */.Rc {
19143
19191
  this.EVENTS = SegmentationService_EVENTS;
19144
19192
  this.destroy = () => {
19145
19193
  esm.eventTarget.removeEventListener(dist_esm.Enums.Events.SEGMENTATION_MODIFIED, this._onSegmentationModifiedFromSource);
19146
- esm.eventTarget.removeEventListener(dist_esm.Enums.Events.SEGMENTATION_REMOVED, this._onSegmentationModifiedFromSource);
19194
+ esm.eventTarget.removeEventListener(dist_esm.Enums.Events.SEGMENTATION_REMOVED, this._onSegmentationRemovedFromSource);
19147
19195
  esm.eventTarget.removeEventListener(dist_esm.Enums.Events.SEGMENTATION_DATA_MODIFIED, this._onSegmentationDataModifiedFromSource);
19148
19196
  esm.eventTarget.removeEventListener(dist_esm.Enums.Events.SEGMENTATION_REPRESENTATION_MODIFIED, this._onSegmentationRepresentationModifiedFromSource);
19149
19197
  esm.eventTarget.removeEventListener(dist_esm.Enums.Events.SEGMENTATION_REPRESENTATION_ADDED, this._onSegmentationRepresentationModifiedFromSource);
19150
- esm.eventTarget.removeEventListener(dist_esm.Enums.Events.SEGMENTATION_REPRESENTATION_REMOVED, this._onSegmentationRepresentationModifiedFromSource);
19198
+ esm.eventTarget.removeEventListener(dist_esm.Enums.Events.SEGMENTATION_REPRESENTATION_REMOVED, this._onSegmentationRepresentationRemovedFromSource);
19151
19199
  esm.eventTarget.removeEventListener(dist_esm.Enums.Events.SEGMENTATION_ADDED, this._onSegmentationAddedFromSource);
19152
19200
  this.reset();
19153
19201
  };
@@ -19208,6 +19256,16 @@ class SegmentationService extends src/* PubSubService */.Rc {
19208
19256
  viewportId
19209
19257
  });
19210
19258
  };
19259
+ this._onSegmentationRepresentationRemovedFromSource = evt => {
19260
+ const {
19261
+ segmentationId,
19262
+ viewportId
19263
+ } = evt.detail;
19264
+ this._broadcastEvent(this.EVENTS.SEGMENTATION_REPRESENTATION_REMOVED, {
19265
+ segmentationId,
19266
+ viewportId
19267
+ });
19268
+ };
19211
19269
  this._onSegmentationModifiedFromSource = evt => {
19212
19270
  const {
19213
19271
  segmentationId
@@ -19224,6 +19282,14 @@ class SegmentationService extends src/* PubSubService */.Rc {
19224
19282
  segmentationId
19225
19283
  });
19226
19284
  };
19285
+ this._onSegmentationRemovedFromSource = evt => {
19286
+ const {
19287
+ segmentationId
19288
+ } = evt.detail;
19289
+ this._broadcastEvent(this.EVENTS.SEGMENTATION_REMOVED, {
19290
+ segmentationId
19291
+ });
19292
+ };
19227
19293
  this._onAnnotationCutMergeProcessCompletedFromSource = evt => {
19228
19294
  const {
19229
19295
  segmentationId
@@ -20117,14 +20183,14 @@ class SegmentationService extends src/* PubSubService */.Rc {
20117
20183
  }
20118
20184
  /**
20119
20185
  * Clears segmentation representations from the viewport.
20120
- * Unlike removeSegmentationRepresentations, this doesn't update
20186
+ * Unlike removeRepresentationsFromViewport, this doesn't update
20121
20187
  * removed display set and representation maps.
20122
20188
  * We track removed segmentations manually to avoid re-adding them
20123
20189
  * when the display set is added again.
20124
20190
  * @param viewportId - The viewport ID to clear segmentation representations from.
20125
20191
  */
20126
20192
  clearSegmentationRepresentations(viewportId) {
20127
- this.removeSegmentationRepresentations(viewportId);
20193
+ this.removeRepresentationsFromViewport(viewportId);
20128
20194
  }
20129
20195
 
20130
20196
  /**
@@ -20139,7 +20205,7 @@ class SegmentationService extends src/* PubSubService */.Rc {
20139
20205
  }
20140
20206
 
20141
20207
  /**
20142
- * It removes the segmentation representations from the viewport.
20208
+ * Removes segmentation representations from the viewport.
20143
20209
  * @param viewportId - The viewport id to remove the segmentation representations from.
20144
20210
  * @param specifier - The specifier to remove the segmentation representations.
20145
20211
  *
@@ -20149,7 +20215,7 @@ class SegmentationService extends src/* PubSubService */.Rc {
20149
20215
  * If a type specifier is provided, only the segmentation representation with the specified type are removed.
20150
20216
  * If both a segmentationId and type specifier are provided, only the segmentation representation with the specified segmentationId and type are removed.
20151
20217
  */
20152
- removeSegmentationRepresentations(viewportId, specifier = {}) {
20218
+ removeRepresentationsFromViewport(viewportId, specifier = {}) {
20153
20219
  dist_esm.segmentation.removeSegmentationRepresentations(viewportId, specifier);
20154
20220
  }
20155
20221
 
@@ -20517,11 +20583,11 @@ class SegmentationService extends src/* PubSubService */.Rc {
20517
20583
  }
20518
20584
  _initSegmentationService() {
20519
20585
  esm.eventTarget.addEventListener(dist_esm.Enums.Events.SEGMENTATION_MODIFIED, this._onSegmentationModifiedFromSource);
20520
- esm.eventTarget.addEventListener(dist_esm.Enums.Events.SEGMENTATION_REMOVED, this._onSegmentationModifiedFromSource);
20586
+ esm.eventTarget.addEventListener(dist_esm.Enums.Events.SEGMENTATION_REMOVED, this._onSegmentationRemovedFromSource);
20521
20587
  esm.eventTarget.addEventListener(dist_esm.Enums.Events.SEGMENTATION_DATA_MODIFIED, this._onSegmentationDataModifiedFromSource);
20522
20588
  esm.eventTarget.addEventListener(dist_esm.Enums.Events.SEGMENTATION_REPRESENTATION_MODIFIED, this._onSegmentationRepresentationModifiedFromSource);
20523
20589
  esm.eventTarget.addEventListener(dist_esm.Enums.Events.SEGMENTATION_REPRESENTATION_ADDED, this._onSegmentationRepresentationModifiedFromSource);
20524
- esm.eventTarget.addEventListener(dist_esm.Enums.Events.SEGMENTATION_REPRESENTATION_REMOVED, this._onSegmentationRepresentationModifiedFromSource);
20590
+ esm.eventTarget.addEventListener(dist_esm.Enums.Events.SEGMENTATION_REPRESENTATION_REMOVED, this._onSegmentationRepresentationRemovedFromSource);
20525
20591
  esm.eventTarget.addEventListener(dist_esm.Enums.Events.SEGMENTATION_ADDED, this._onSegmentationAddedFromSource);
20526
20592
  esm.eventTarget.addEventListener(dist_esm.Enums.Events.ANNOTATION_CUT_MERGE_PROCESS_COMPLETED, this._onAnnotationCutMergeProcessCompletedFromSource);
20527
20593
  }
@@ -25315,7 +25381,8 @@ const setUpSegmentationEventHandlers = ({
25315
25381
  const {
25316
25382
  segmentationService,
25317
25383
  customizationService,
25318
- displaySetService
25384
+ displaySetService,
25385
+ viewportGridService
25319
25386
  } = servicesManager.services;
25320
25387
  const {
25321
25388
  unsubscribe: unsubscribeSegmentationDataModifiedHandler
@@ -25360,12 +25427,42 @@ const setUpSegmentationEventHandlers = ({
25360
25427
  };
25361
25428
  displaySetService.addDisplaySets(segmentationDisplaySet);
25362
25429
  });
25430
+ const {
25431
+ unsubscribe: unsubscribeSegmentationRemoved
25432
+ } = segmentationService.subscribe(segmentationService.EVENTS.SEGMENTATION_REMOVED, ({
25433
+ segmentationId
25434
+ }) => {
25435
+ const displaySet = displaySetService.getDisplaySetByUID(segmentationId);
25436
+
25437
+ // Remove the display set layer from all viewports that have it
25438
+ if (displaySet) {
25439
+ const state = viewportGridService.getState();
25440
+ const viewports = state.viewports;
25441
+
25442
+ // Find all viewports that contain this segmentation's display set as a layer
25443
+ for (const [viewportId, viewport] of viewports.entries()) {
25444
+ const displaySetInstanceUIDs = viewport.displaySetInstanceUIDs || [];
25445
+ if (displaySetInstanceUIDs.includes(segmentationId)) {
25446
+ // Remove the display set layer from this viewport
25447
+ commandsManager.runCommand('removeDisplaySetLayer', {
25448
+ viewportId,
25449
+ displaySetInstanceUID: segmentationId
25450
+ });
25451
+ }
25452
+ }
25453
+
25454
+ // Delete the display set from the service if it was made in client
25455
+ if (displaySet.madeInClient) {
25456
+ displaySetService.deleteDisplaySet(segmentationId);
25457
+ }
25458
+ }
25459
+ });
25363
25460
  const {
25364
25461
  unsubscribeSelectedSegmentationsForViewportEvents
25365
25462
  } = setUpSelectedSegmentationsForViewportHandler({
25366
25463
  segmentationService
25367
25464
  });
25368
- const unsubscriptions = [unsubscribeSegmentationDataModifiedHandler, unsubscribeSegmentationModifiedHandler, unsubscribeSegmentationCreated, ...unsubscribeSelectedSegmentationsForViewportEvents];
25465
+ const unsubscriptions = [unsubscribeSegmentationDataModifiedHandler, unsubscribeSegmentationModifiedHandler, unsubscribeSegmentationCreated, unsubscribeSegmentationRemoved, ...unsubscribeSelectedSegmentationsForViewportEvents];
25369
25466
  return {
25370
25467
  unsubscriptions
25371
25468
  };