@ohif/app 3.6.0-beta.2 → 3.6.0

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 (41) hide show
  1. package/dist/{151.bundle.07bac9172580a60fae7a.js → 151.bundle.31ea35044218837bf73f.js} +2 -2
  2. package/dist/{192.bundle.a746fabfde092dc37d60.js → 192.bundle.48b1301cf63ac2900ee8.js} +3 -3
  3. package/dist/{208.bundle.546e5e415be38c15bcf4.js → 208.bundle.f8c6bb9a620f4aa4e7bd.js} +1 -1
  4. package/dist/{270.bundle.abbdb5348274bae3e8bc.js → 270.bundle.4564621556b0f963a004.js} +370 -315
  5. package/dist/{331.bundle.7ac7b142d249d14fd99e.js → 331.bundle.bd0c13931a21d53086c9.js} +308 -303
  6. package/dist/{404.bundle.f3fcfff281878740c9a0.js → 404.bundle.10a2a1f7060dff7e08da.js} +1 -1
  7. package/dist/{531.bundle.1bc152c87c7e2e987d2b.js → 531.bundle.2a82fb1d69e5b57cc72b.js} +78 -78
  8. package/dist/{55.bundle.674a6b291691baac3c26.js → 55.bundle.5f5e5ef9087b0beee35c.js} +1 -1
  9. package/dist/606.bundle.5d876f5f3dd8287f0a28.js +54 -54
  10. package/dist/{664.bundle.4792c88ae0d6d4b5ed13.js → 664.bundle.09abae984223969d1bde.js} +1 -1
  11. package/dist/{707.bundle.6a8e13bf2c8e59550089.js → 707.bundle.88ac289536e62484da34.js} +17 -17
  12. package/dist/728.bundle.d13856835357400fef82.js +2 -2
  13. package/dist/{744.bundle.b9458e50495f61f31056.js → 744.bundle.798945e4b8be23ca9a78.js} +2 -2
  14. package/dist/{780.bundle.f60ac1906e0ae080dee8.js → 780.bundle.fd0f13dc92e9caa0581e.js} +60 -60
  15. package/dist/{790.bundle.93ea41fed640f0478d32.js → 790.bundle.0832ab8da94f12c02863.js} +1 -1
  16. package/dist/{799.bundle.ba8fec0819cd22e650cb.js → 799.bundle.ca18bdf4abe4d9abea26.js} +2 -2
  17. package/dist/{82.bundle.ec2930c7c107a29e2eb6.js → 82.bundle.ee87fb5210b8ee43d535.js} +19 -19
  18. package/dist/926.bundle.dbc9d0e591cb9217fda2.js +2 -2
  19. package/dist/935.bundle.deeffff0e4f7b528e3c3.js +1 -1
  20. package/dist/{953.bundle.1de52944098d308df5ae.js → 953.bundle.9e3a7225f07336bfcb41.js} +1 -1
  21. package/dist/{973.bundle.4a3c3fbc4ba1e21316b1.js → 973.bundle.a3ecaa6315df8a878f37.js} +2 -2
  22. package/dist/{984.bundle.42ecc8799d12cd7c0611.js → 984.bundle.97c1ec2b49bd2493d180.js} +6 -6
  23. package/dist/app.bundle.css +1 -1
  24. package/dist/{app.bundle.49bf794a6e5f25261120.js → app.bundle.f5c915800b6c34f50e25.js} +2033 -2522
  25. package/dist/cornerstoneDICOMImageLoader.min.js +1 -1
  26. package/dist/cornerstoneDICOMImageLoader.min.js.map +1 -1
  27. package/dist/index.html +1 -1
  28. package/dist/sw.js +1 -1
  29. package/package.json +18 -18
  30. /package/dist/{199.bundle.732cc26b5105b14cd304.js → 199.bundle.924c8c2b5a49d28c9f14.js} +0 -0
  31. /package/dist/{205.bundle.39e6c847d618ad2b1b7a.js → 205.bundle.b5a473c200dcf2bbcdb4.js} +0 -0
  32. /package/dist/{283.bundle.8a6cb5ecbf2ac7339111.js → 283.bundle.c3b47a35eb4d54f56cb3.js} +0 -0
  33. /package/dist/{295.bundle.5105ce962be15c92484d.js → 295.bundle.957b1159fec14b9199a1.js} +0 -0
  34. /package/dist/{351.bundle.b96ebfe3878f3249c25d.js → 351.bundle.2d4bc19d8b493879dbbe.js} +0 -0
  35. /package/dist/{50.bundle.86406eac372c30a572e7.js → 50.bundle.e3894c37d2b0c41a8b65.js} +0 -0
  36. /package/dist/{569.bundle.d04ded836d43fb113f9b.js → 569.bundle.0ed8d8178ffd43fe1c34.js} +0 -0
  37. /package/dist/{581.bundle.bd6b209846b2d3e3d187.js → 581.bundle.360d26f97b37da8faec3.js} +0 -0
  38. /package/dist/{616.bundle.ea6c182d647a1214536d.js → 616.bundle.31c0e85286a4742ed68e.js} +0 -0
  39. /package/dist/{642.bundle.c52c55c87cfad6f66767.js → 642.bundle.6721f4ba67e20a8d613a.js} +0 -0
  40. /package/dist/{917.bundle.2873450fcbf02c3ca682.js → 917.bundle.9e51c3e07b6e3e29f050.js} +0 -0
  41. /package/dist/{976.bundle.af9d827c4ac61ac0d22c.js → 976.bundle.7cadd88ce4d7a4926178.js} +0 -0
@@ -9,314 +9,314 @@ __webpack_require__.r(__webpack_exports__);
9
9
 
10
10
  // EXPORTS
11
11
  __webpack_require__.d(__webpack_exports__, {
12
- "AngleTool": () => (/* reexport */ annotation_AngleTool),
13
- "AnnotationTool": () => (/* reexport */ base_AnnotationTool),
14
- "ArrowAnnotateTool": () => (/* reexport */ annotation_ArrowAnnotateTool),
15
- "BaseTool": () => (/* reexport */ base_BaseTool),
16
- "BidirectionalTool": () => (/* reexport */ annotation_BidirectionalTool),
17
- "BrushTool": () => (/* reexport */ segmentation_BrushTool),
18
- "CONSTANTS": () => (/* reexport */ constants_namespaceObject),
19
- "CircleROITool": () => (/* reexport */ annotation_CircleROITool),
20
- "CircleScissorsTool": () => (/* reexport */ segmentation_CircleScissorsTool),
21
- "CobbAngleTool": () => (/* reexport */ annotation_CobbAngleTool),
22
- "CrosshairsTool": () => (/* reexport */ tools_CrosshairsTool),
23
- "DragProbeTool": () => (/* reexport */ annotation_DragProbeTool),
24
- "EllipticalROITool": () => (/* reexport */ annotation_EllipticalROITool),
25
- "Enums": () => (/* reexport */ enums_namespaceObject),
26
- "LengthTool": () => (/* reexport */ annotation_LengthTool),
27
- "MIPJumpToClickTool": () => (/* reexport */ tools_MIPJumpToClickTool),
28
- "MagnifyTool": () => (/* reexport */ tools_MagnifyTool),
29
- "PaintFillTool": () => (/* reexport */ segmentation_PaintFillTool),
30
- "PanTool": () => (/* reexport */ tools_PanTool),
31
- "PlanarFreehandROITool": () => (/* reexport */ annotation_PlanarFreehandROITool),
32
- "PlanarRotateTool": () => (/* reexport */ tools_PlanarRotateTool),
33
- "ProbeTool": () => (/* reexport */ annotation_ProbeTool),
34
- "RectangleROIStartEndThresholdTool": () => (/* reexport */ segmentation_RectangleROIStartEndThresholdTool),
35
- "RectangleROIThresholdTool": () => (/* reexport */ segmentation_RectangleROIThresholdTool),
36
- "RectangleROITool": () => (/* reexport */ annotation_RectangleROITool),
37
- "RectangleScissorsTool": () => (/* reexport */ segmentation_RectangleScissorsTool),
38
- "ReferenceCursors": () => (/* reexport */ tools_ReferenceCursors),
39
- "ReferenceLines": () => (/* reexport */ ReferenceLinesTool),
40
- "ReferenceLinesTool": () => (/* reexport */ ReferenceLinesTool),
41
- "ScaleOverlayTool": () => (/* reexport */ tools_ScaleOverlayTool),
42
- "SegmentationDisplayTool": () => (/* reexport */ displayTools_SegmentationDisplayTool),
43
- "SphereScissorsTool": () => (/* reexport */ segmentation_SphereScissorsTool),
44
- "StackScrollMouseWheelTool": () => (/* reexport */ StackScrollToolMouseWheelTool),
45
- "StackScrollTool": () => (/* reexport */ tools_StackScrollTool),
46
- "Synchronizer": () => (/* reexport */ SynchronizerManager_Synchronizer),
47
- "SynchronizerManager": () => (/* reexport */ SynchronizerManager_namespaceObject),
48
- "ToolGroupManager": () => (/* reexport */ ToolGroupManager_namespaceObject),
49
- "TrackballRotateTool": () => (/* reexport */ tools_TrackballRotateTool),
50
- "Types": () => (/* reexport */ types_namespaceObject),
51
- "VolumeRotateMouseWheelTool": () => (/* reexport */ tools_VolumeRotateMouseWheelTool),
52
- "WindowLevelTool": () => (/* reexport */ tools_WindowLevelTool),
53
- "ZoomTool": () => (/* reexport */ tools_ZoomTool),
54
- "addTool": () => (/* reexport */ addTool),
55
- "annotation": () => (/* reexport */ annotation_namespaceObject),
56
- "cancelActiveManipulations": () => (/* reexport */ cancelActiveManipulations),
57
- "cursors": () => (/* reexport */ cursors_namespaceObject),
58
- "destroy": () => (/* reexport */ init_destroy),
59
- "drawing": () => (/* reexport */ drawingSvg_namespaceObject),
60
- "init": () => (/* reexport */ init),
61
- "removeTool": () => (/* reexport */ removeTool),
62
- "segmentation": () => (/* reexport */ segmentation_namespaceObject),
63
- "state": () => (/* reexport */ state),
64
- "synchronizers": () => (/* reexport */ synchronizers_namespaceObject),
65
- "utilities": () => (/* reexport */ esm_utilities_namespaceObject)
12
+ AngleTool: () => (/* reexport */ annotation_AngleTool),
13
+ AnnotationTool: () => (/* reexport */ base_AnnotationTool),
14
+ ArrowAnnotateTool: () => (/* reexport */ annotation_ArrowAnnotateTool),
15
+ BaseTool: () => (/* reexport */ base_BaseTool),
16
+ BidirectionalTool: () => (/* reexport */ annotation_BidirectionalTool),
17
+ BrushTool: () => (/* reexport */ segmentation_BrushTool),
18
+ CONSTANTS: () => (/* reexport */ constants_namespaceObject),
19
+ CircleROITool: () => (/* reexport */ annotation_CircleROITool),
20
+ CircleScissorsTool: () => (/* reexport */ segmentation_CircleScissorsTool),
21
+ CobbAngleTool: () => (/* reexport */ annotation_CobbAngleTool),
22
+ CrosshairsTool: () => (/* reexport */ tools_CrosshairsTool),
23
+ DragProbeTool: () => (/* reexport */ annotation_DragProbeTool),
24
+ EllipticalROITool: () => (/* reexport */ annotation_EllipticalROITool),
25
+ Enums: () => (/* reexport */ enums_namespaceObject),
26
+ LengthTool: () => (/* reexport */ annotation_LengthTool),
27
+ MIPJumpToClickTool: () => (/* reexport */ tools_MIPJumpToClickTool),
28
+ MagnifyTool: () => (/* reexport */ tools_MagnifyTool),
29
+ PaintFillTool: () => (/* reexport */ segmentation_PaintFillTool),
30
+ PanTool: () => (/* reexport */ tools_PanTool),
31
+ PlanarFreehandROITool: () => (/* reexport */ annotation_PlanarFreehandROITool),
32
+ PlanarRotateTool: () => (/* reexport */ tools_PlanarRotateTool),
33
+ ProbeTool: () => (/* reexport */ annotation_ProbeTool),
34
+ RectangleROIStartEndThresholdTool: () => (/* reexport */ segmentation_RectangleROIStartEndThresholdTool),
35
+ RectangleROIThresholdTool: () => (/* reexport */ segmentation_RectangleROIThresholdTool),
36
+ RectangleROITool: () => (/* reexport */ annotation_RectangleROITool),
37
+ RectangleScissorsTool: () => (/* reexport */ segmentation_RectangleScissorsTool),
38
+ ReferenceCursors: () => (/* reexport */ tools_ReferenceCursors),
39
+ ReferenceLines: () => (/* reexport */ ReferenceLinesTool),
40
+ ReferenceLinesTool: () => (/* reexport */ ReferenceLinesTool),
41
+ ScaleOverlayTool: () => (/* reexport */ tools_ScaleOverlayTool),
42
+ SegmentationDisplayTool: () => (/* reexport */ displayTools_SegmentationDisplayTool),
43
+ SphereScissorsTool: () => (/* reexport */ segmentation_SphereScissorsTool),
44
+ StackScrollMouseWheelTool: () => (/* reexport */ StackScrollToolMouseWheelTool),
45
+ StackScrollTool: () => (/* reexport */ tools_StackScrollTool),
46
+ Synchronizer: () => (/* reexport */ SynchronizerManager_Synchronizer),
47
+ SynchronizerManager: () => (/* reexport */ SynchronizerManager_namespaceObject),
48
+ ToolGroupManager: () => (/* reexport */ ToolGroupManager_namespaceObject),
49
+ TrackballRotateTool: () => (/* reexport */ tools_TrackballRotateTool),
50
+ Types: () => (/* reexport */ types_namespaceObject),
51
+ VolumeRotateMouseWheelTool: () => (/* reexport */ tools_VolumeRotateMouseWheelTool),
52
+ WindowLevelTool: () => (/* reexport */ tools_WindowLevelTool),
53
+ ZoomTool: () => (/* reexport */ tools_ZoomTool),
54
+ addTool: () => (/* reexport */ addTool),
55
+ annotation: () => (/* reexport */ annotation_namespaceObject),
56
+ cancelActiveManipulations: () => (/* reexport */ cancelActiveManipulations),
57
+ cursors: () => (/* reexport */ cursors_namespaceObject),
58
+ destroy: () => (/* reexport */ init_destroy),
59
+ drawing: () => (/* reexport */ drawingSvg_namespaceObject),
60
+ init: () => (/* reexport */ init),
61
+ removeTool: () => (/* reexport */ removeTool),
62
+ segmentation: () => (/* reexport */ segmentation_namespaceObject),
63
+ state: () => (/* reexport */ state),
64
+ synchronizers: () => (/* reexport */ synchronizers_namespaceObject),
65
+ utilities: () => (/* reexport */ esm_utilities_namespaceObject)
66
66
  });
67
67
 
68
68
  // NAMESPACE OBJECT: ../../../node_modules/@cornerstonejs/tools/dist/esm/enums/index.js
69
69
  var enums_namespaceObject = {};
70
70
  __webpack_require__.r(enums_namespaceObject);
71
71
  __webpack_require__.d(enums_namespaceObject, {
72
- "AnnotationStyleStates": () => (enums_AnnotationStyleStates),
73
- "Events": () => (enums_Events),
74
- "KeyboardBindings": () => (KeyboardBindings),
75
- "MouseBindings": () => (MouseBindings),
76
- "SegmentationRepresentations": () => (enums_SegmentationRepresentations),
77
- "Swipe": () => (Swipe),
78
- "ToolModes": () => (enums_ToolModes)
72
+ AnnotationStyleStates: () => (enums_AnnotationStyleStates),
73
+ Events: () => (enums_Events),
74
+ KeyboardBindings: () => (KeyboardBindings),
75
+ MouseBindings: () => (MouseBindings),
76
+ SegmentationRepresentations: () => (enums_SegmentationRepresentations),
77
+ Swipe: () => (Swipe),
78
+ ToolModes: () => (enums_ToolModes)
79
79
  });
80
80
 
81
81
  // NAMESPACE OBJECT: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/annotation/annotationLocking.js
82
82
  var annotationLocking_namespaceObject = {};
83
83
  __webpack_require__.r(annotationLocking_namespaceObject);
84
84
  __webpack_require__.d(annotationLocking_namespaceObject, {
85
- "checkAndDefineIsLockedProperty": () => (checkAndDefineIsLockedProperty),
86
- "getAnnotationsLocked": () => (getAnnotationsLocked),
87
- "getAnnotationsLockedCount": () => (getAnnotationsLockedCount),
88
- "isAnnotationLocked": () => (isAnnotationLocked),
89
- "setAnnotationLocked": () => (setAnnotationLocked),
90
- "unlockAllAnnotations": () => (unlockAllAnnotations)
85
+ checkAndDefineIsLockedProperty: () => (checkAndDefineIsLockedProperty),
86
+ getAnnotationsLocked: () => (getAnnotationsLocked),
87
+ getAnnotationsLockedCount: () => (getAnnotationsLockedCount),
88
+ isAnnotationLocked: () => (isAnnotationLocked),
89
+ setAnnotationLocked: () => (setAnnotationLocked),
90
+ unlockAllAnnotations: () => (unlockAllAnnotations)
91
91
  });
92
92
 
93
93
  // NAMESPACE OBJECT: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/annotation/annotationSelection.js
94
94
  var annotationSelection_namespaceObject = {};
95
95
  __webpack_require__.r(annotationSelection_namespaceObject);
96
96
  __webpack_require__.d(annotationSelection_namespaceObject, {
97
- "deselectAnnotation": () => (deselectAnnotation),
98
- "getAnnotationsSelected": () => (getAnnotationsSelected),
99
- "getAnnotationsSelectedByToolName": () => (getAnnotationsSelectedByToolName),
100
- "getAnnotationsSelectedCount": () => (getAnnotationsSelectedCount),
101
- "isAnnotationSelected": () => (isAnnotationSelected),
102
- "setAnnotationSelected": () => (setAnnotationSelected)
97
+ deselectAnnotation: () => (deselectAnnotation),
98
+ getAnnotationsSelected: () => (getAnnotationsSelected),
99
+ getAnnotationsSelectedByToolName: () => (getAnnotationsSelectedByToolName),
100
+ getAnnotationsSelectedCount: () => (getAnnotationsSelectedCount),
101
+ isAnnotationSelected: () => (isAnnotationSelected),
102
+ setAnnotationSelected: () => (setAnnotationSelected)
103
103
  });
104
104
 
105
105
  // NAMESPACE OBJECT: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/annotation/annotationVisibility.js
106
106
  var annotationVisibility_namespaceObject = {};
107
107
  __webpack_require__.r(annotationVisibility_namespaceObject);
108
108
  __webpack_require__.d(annotationVisibility_namespaceObject, {
109
- "checkAndDefineIsVisibleProperty": () => (checkAndDefineIsVisibleProperty),
110
- "isAnnotationVisible": () => (isAnnotationVisible),
111
- "setAnnotationVisibility": () => (setAnnotationVisibility),
112
- "showAllAnnotations": () => (showAllAnnotations)
109
+ checkAndDefineIsVisibleProperty: () => (checkAndDefineIsVisibleProperty),
110
+ isAnnotationVisible: () => (isAnnotationVisible),
111
+ setAnnotationVisibility: () => (setAnnotationVisibility),
112
+ showAllAnnotations: () => (showAllAnnotations)
113
113
  });
114
114
 
115
115
  // NAMESPACE OBJECT: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/touch/index.js
116
116
  var touch_namespaceObject = {};
117
117
  __webpack_require__.r(touch_namespaceObject);
118
118
  __webpack_require__.d(touch_namespaceObject, {
119
- "copyPoints": () => (copyPoints),
120
- "copyPointsList": () => (copyPointsList),
121
- "getDeltaDistance": () => (getDeltaDistance),
122
- "getDeltaDistanceBetweenIPoints": () => (getDeltaDistanceBetweenIPoints),
123
- "getDeltaPoints": () => (getDeltaPoints),
124
- "getDeltaRotation": () => (getDeltaRotation),
125
- "getMeanPoints": () => (getMeanPoints),
126
- "getMeanTouchPoints": () => (getMeanTouchPoints)
119
+ copyPoints: () => (copyPoints),
120
+ copyPointsList: () => (copyPointsList),
121
+ getDeltaDistance: () => (getDeltaDistance),
122
+ getDeltaDistanceBetweenIPoints: () => (getDeltaDistanceBetweenIPoints),
123
+ getDeltaPoints: () => (getDeltaPoints),
124
+ getDeltaRotation: () => (getDeltaRotation),
125
+ getMeanPoints: () => (getMeanPoints),
126
+ getMeanTouchPoints: () => (getMeanTouchPoints)
127
127
  });
128
128
 
129
129
  // NAMESPACE OBJECT: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/triggerSegmentationEvents.js
130
130
  var triggerSegmentationEvents_namespaceObject = {};
131
131
  __webpack_require__.r(triggerSegmentationEvents_namespaceObject);
132
132
  __webpack_require__.d(triggerSegmentationEvents_namespaceObject, {
133
- "triggerSegmentationDataModified": () => (triggerSegmentationDataModified),
134
- "triggerSegmentationModified": () => (triggerSegmentationModified),
135
- "triggerSegmentationRemoved": () => (triggerSegmentationRemoved),
136
- "triggerSegmentationRepresentationModified": () => (triggerSegmentationRepresentationModified),
137
- "triggerSegmentationRepresentationRemoved": () => (triggerSegmentationRepresentationRemoved)
133
+ triggerSegmentationDataModified: () => (triggerSegmentationDataModified),
134
+ triggerSegmentationModified: () => (triggerSegmentationModified),
135
+ triggerSegmentationRemoved: () => (triggerSegmentationRemoved),
136
+ triggerSegmentationRepresentationModified: () => (triggerSegmentationRepresentationModified),
137
+ triggerSegmentationRepresentationRemoved: () => (triggerSegmentationRepresentationRemoved)
138
138
  });
139
139
 
140
140
  // NAMESPACE OBJECT: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/segmentationState.js
141
141
  var segmentationState_namespaceObject = {};
142
142
  __webpack_require__.r(segmentationState_namespaceObject);
143
143
  __webpack_require__.d(segmentationState_namespaceObject, {
144
- "addColorLUT": () => (addColorLUT),
145
- "addSegmentation": () => (addSegmentation),
146
- "addSegmentationRepresentation": () => (addSegmentationRepresentation),
147
- "getColorLUT": () => (getColorLUT),
148
- "getDefaultSegmentationStateManager": () => (getDefaultSegmentationStateManager),
149
- "getGlobalConfig": () => (getGlobalConfig),
150
- "getSegmentSpecificRepresentationConfig": () => (getSegmentSpecificRepresentationConfig),
151
- "getSegmentation": () => (getSegmentation),
152
- "getSegmentationRepresentationByUID": () => (getSegmentationRepresentationByUID),
153
- "getSegmentationRepresentationSpecificConfig": () => (getSegmentationRepresentationSpecificConfig),
154
- "getSegmentationRepresentations": () => (getSegmentationRepresentations),
155
- "getSegmentations": () => (getSegmentations),
156
- "getToolGroupIdsWithSegmentation": () => (getToolGroupIdsWithSegmentation),
157
- "getToolGroupSpecificConfig": () => (getToolGroupSpecificConfig),
158
- "removeColorLUT": () => (removeColorLUT),
159
- "removeSegmentation": () => (removeSegmentation),
160
- "removeSegmentationRepresentation": () => (removeSegmentationRepresentation),
161
- "setGlobalConfig": () => (setGlobalConfig),
162
- "setSegmentSpecificRepresentationConfig": () => (setSegmentSpecificRepresentationConfig),
163
- "setSegmentationRepresentationSpecificConfig": () => (setSegmentationRepresentationSpecificConfig),
164
- "setToolGroupSpecificConfig": () => (setToolGroupSpecificConfig)
144
+ addColorLUT: () => (addColorLUT),
145
+ addSegmentation: () => (addSegmentation),
146
+ addSegmentationRepresentation: () => (addSegmentationRepresentation),
147
+ getColorLUT: () => (getColorLUT),
148
+ getDefaultSegmentationStateManager: () => (getDefaultSegmentationStateManager),
149
+ getGlobalConfig: () => (getGlobalConfig),
150
+ getSegmentSpecificRepresentationConfig: () => (getSegmentSpecificRepresentationConfig),
151
+ getSegmentation: () => (getSegmentation),
152
+ getSegmentationRepresentationByUID: () => (getSegmentationRepresentationByUID),
153
+ getSegmentationRepresentationSpecificConfig: () => (getSegmentationRepresentationSpecificConfig),
154
+ getSegmentationRepresentations: () => (getSegmentationRepresentations),
155
+ getSegmentations: () => (getSegmentations),
156
+ getToolGroupIdsWithSegmentation: () => (getToolGroupIdsWithSegmentation),
157
+ getToolGroupSpecificConfig: () => (getToolGroupSpecificConfig),
158
+ removeColorLUT: () => (removeColorLUT),
159
+ removeSegmentation: () => (removeSegmentation),
160
+ removeSegmentationRepresentation: () => (removeSegmentationRepresentation),
161
+ setGlobalConfig: () => (setGlobalConfig),
162
+ setSegmentSpecificRepresentationConfig: () => (setSegmentSpecificRepresentationConfig),
163
+ setSegmentationRepresentationSpecificConfig: () => (setSegmentationRepresentationSpecificConfig),
164
+ setToolGroupSpecificConfig: () => (setToolGroupSpecificConfig)
165
165
  });
166
166
 
167
167
  // NAMESPACE OBJECT: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/activeSegmentation.js
168
168
  var activeSegmentation_namespaceObject = {};
169
169
  __webpack_require__.r(activeSegmentation_namespaceObject);
170
170
  __webpack_require__.d(activeSegmentation_namespaceObject, {
171
- "getActiveSegmentationRepresentation": () => (getActiveSegmentationRepresentation),
172
- "setActiveSegmentationRepresentation": () => (setActiveSegmentationRepresentation)
171
+ getActiveSegmentationRepresentation: () => (getActiveSegmentationRepresentation),
172
+ setActiveSegmentationRepresentation: () => (setActiveSegmentationRepresentation)
173
173
  });
174
174
 
175
175
  // NAMESPACE OBJECT: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/segmentLocking.js
176
176
  var segmentLocking_namespaceObject = {};
177
177
  __webpack_require__.r(segmentLocking_namespaceObject);
178
178
  __webpack_require__.d(segmentLocking_namespaceObject, {
179
- "getLockedSegments": () => (getLockedSegments),
180
- "isSegmentIndexLocked": () => (isSegmentIndexLocked),
181
- "setSegmentIndexLocked": () => (setSegmentIndexLocked)
179
+ getLockedSegments: () => (getLockedSegments),
180
+ isSegmentIndexLocked: () => (isSegmentIndexLocked),
181
+ setSegmentIndexLocked: () => (setSegmentIndexLocked)
182
182
  });
183
183
 
184
184
  // NAMESPACE OBJECT: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/config/segmentationColor.js
185
185
  var segmentationColor_namespaceObject = {};
186
186
  __webpack_require__.r(segmentationColor_namespaceObject);
187
187
  __webpack_require__.d(segmentationColor_namespaceObject, {
188
- "addColorLUT": () => (segmentationColor_addColorLUT),
189
- "getColorForSegmentIndex": () => (getColorForSegmentIndex),
190
- "setColorForSegmentIndex": () => (setColorForSegmentIndex),
191
- "setColorLUT": () => (setColorLUT)
188
+ addColorLUT: () => (segmentationColor_addColorLUT),
189
+ getColorForSegmentIndex: () => (getColorForSegmentIndex),
190
+ setColorForSegmentIndex: () => (setColorForSegmentIndex),
191
+ setColorLUT: () => (setColorLUT)
192
192
  });
193
193
 
194
194
  // NAMESPACE OBJECT: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/config/segmentationVisibility.js
195
195
  var segmentationVisibility_namespaceObject = {};
196
196
  __webpack_require__.r(segmentationVisibility_namespaceObject);
197
197
  __webpack_require__.d(segmentationVisibility_namespaceObject, {
198
- "getSegmentationVisibility": () => (getSegmentationVisibility),
199
- "setSegmentVisibility": () => (setSegmentVisibility),
200
- "setSegmentationVisibility": () => (setSegmentationVisibility),
201
- "setSegmentsVisibility": () => (setSegmentsVisibility)
198
+ getSegmentationVisibility: () => (getSegmentationVisibility),
199
+ setSegmentVisibility: () => (setSegmentVisibility),
200
+ setSegmentationVisibility: () => (setSegmentationVisibility),
201
+ setSegmentsVisibility: () => (setSegmentsVisibility)
202
202
  });
203
203
 
204
204
  // NAMESPACE OBJECT: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/config/index.js
205
205
  var config_namespaceObject = {};
206
206
  __webpack_require__.r(config_namespaceObject);
207
207
  __webpack_require__.d(config_namespaceObject, {
208
- "color": () => (segmentationColor_namespaceObject),
209
- "getGlobalConfig": () => (segmentationConfig_getGlobalConfig),
210
- "getGlobalRepresentationConfig": () => (getGlobalRepresentationConfig),
211
- "getSegmentSpecificConfig": () => (getSegmentSpecificConfig),
212
- "getSegmentationRepresentationSpecificConfig": () => (segmentationConfig_getSegmentationRepresentationSpecificConfig),
213
- "getToolGroupSpecificConfig": () => (segmentationConfig_getToolGroupSpecificConfig),
214
- "setGlobalConfig": () => (segmentationConfig_setGlobalConfig),
215
- "setGlobalRepresentationConfig": () => (setGlobalRepresentationConfig),
216
- "setSegmentSpecificConfig": () => (setSegmentSpecificConfig),
217
- "setSegmentationRepresentationSpecificConfig": () => (segmentationConfig_setSegmentationRepresentationSpecificConfig),
218
- "setToolGroupSpecificConfig": () => (segmentationConfig_setToolGroupSpecificConfig),
219
- "visibility": () => (segmentationVisibility_namespaceObject)
208
+ color: () => (segmentationColor_namespaceObject),
209
+ getGlobalConfig: () => (segmentationConfig_getGlobalConfig),
210
+ getGlobalRepresentationConfig: () => (getGlobalRepresentationConfig),
211
+ getSegmentSpecificConfig: () => (getSegmentSpecificConfig),
212
+ getSegmentationRepresentationSpecificConfig: () => (segmentationConfig_getSegmentationRepresentationSpecificConfig),
213
+ getToolGroupSpecificConfig: () => (segmentationConfig_getToolGroupSpecificConfig),
214
+ setGlobalConfig: () => (segmentationConfig_setGlobalConfig),
215
+ setGlobalRepresentationConfig: () => (setGlobalRepresentationConfig),
216
+ setSegmentSpecificConfig: () => (setSegmentSpecificConfig),
217
+ setSegmentationRepresentationSpecificConfig: () => (segmentationConfig_setSegmentationRepresentationSpecificConfig),
218
+ setToolGroupSpecificConfig: () => (segmentationConfig_setToolGroupSpecificConfig),
219
+ visibility: () => (segmentationVisibility_namespaceObject)
220
220
  });
221
221
 
222
222
  // NAMESPACE OBJECT: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/segmentIndex.js
223
223
  var segmentIndex_namespaceObject = {};
224
224
  __webpack_require__.r(segmentIndex_namespaceObject);
225
225
  __webpack_require__.d(segmentIndex_namespaceObject, {
226
- "getActiveSegmentIndex": () => (getActiveSegmentIndex),
227
- "setActiveSegmentIndex": () => (setActiveSegmentIndex)
226
+ getActiveSegmentIndex: () => (getActiveSegmentIndex),
227
+ setActiveSegmentIndex: () => (setActiveSegmentIndex)
228
228
  });
229
229
 
230
230
  // NAMESPACE OBJECT: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/segmentation/index.js
231
231
  var segmentation_namespaceObject = {};
232
232
  __webpack_require__.r(segmentation_namespaceObject);
233
233
  __webpack_require__.d(segmentation_namespaceObject, {
234
- "activeSegmentation": () => (activeSegmentation_namespaceObject),
235
- "addSegmentationRepresentations": () => (segmentation_addSegmentationRepresentations),
236
- "addSegmentations": () => (segmentation_addSegmentations),
237
- "config": () => (config_namespaceObject),
238
- "removeSegmentationsFromToolGroup": () => (segmentation_removeSegmentationsFromToolGroup),
239
- "segmentIndex": () => (segmentIndex_namespaceObject),
240
- "segmentLocking": () => (segmentLocking_namespaceObject),
241
- "state": () => (segmentationState_namespaceObject),
242
- "triggerSegmentationEvents": () => (triggerSegmentationEvents_namespaceObject)
234
+ activeSegmentation: () => (activeSegmentation_namespaceObject),
235
+ addSegmentationRepresentations: () => (segmentation_addSegmentationRepresentations),
236
+ addSegmentations: () => (segmentation_addSegmentations),
237
+ config: () => (config_namespaceObject),
238
+ removeSegmentationsFromToolGroup: () => (segmentation_removeSegmentationsFromToolGroup),
239
+ segmentIndex: () => (segmentIndex_namespaceObject),
240
+ segmentLocking: () => (segmentLocking_namespaceObject),
241
+ state: () => (segmentationState_namespaceObject),
242
+ triggerSegmentationEvents: () => (triggerSegmentationEvents_namespaceObject)
243
243
  });
244
244
 
245
245
  // NAMESPACE OBJECT: ../../../node_modules/@cornerstonejs/tools/dist/esm/drawingSvg/index.js
246
246
  var drawingSvg_namespaceObject = {};
247
247
  __webpack_require__.r(drawingSvg_namespaceObject);
248
248
  __webpack_require__.d(drawingSvg_namespaceObject, {
249
- "draw": () => (drawingSvg_draw),
250
- "drawArrow": () => (drawArrow),
251
- "drawCircle": () => (drawingSvg_drawCircle),
252
- "drawEllipse": () => (drawingSvg_drawEllipse),
253
- "drawHandles": () => (drawingSvg_drawHandles),
254
- "drawLine": () => (drawLine),
255
- "drawLinkedTextBox": () => (drawingSvg_drawLinkedTextBox),
256
- "drawPolyline": () => (drawPolyline),
257
- "drawRect": () => (drawRect),
258
- "drawTextBox": () => (drawingSvg_drawTextBox)
249
+ draw: () => (drawingSvg_draw),
250
+ drawArrow: () => (drawArrow),
251
+ drawCircle: () => (drawingSvg_drawCircle),
252
+ drawEllipse: () => (drawingSvg_drawEllipse),
253
+ drawHandles: () => (drawingSvg_drawHandles),
254
+ drawLine: () => (drawLine),
255
+ drawLinkedTextBox: () => (drawingSvg_drawLinkedTextBox),
256
+ drawPolyline: () => (drawPolyline),
257
+ drawRect: () => (drawRect),
258
+ drawTextBox: () => (drawingSvg_drawTextBox)
259
259
  });
260
260
 
261
261
  // NAMESPACE OBJECT: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/annotation/config/index.js
262
262
  var annotation_config_namespaceObject = {};
263
263
  __webpack_require__.r(annotation_config_namespaceObject);
264
264
  __webpack_require__.d(annotation_config_namespaceObject, {
265
- "getFont": () => (config_getFont),
266
- "getState": () => (config_getState),
267
- "style": () => (config_ToolStyle)
265
+ getFont: () => (config_getFont),
266
+ getState: () => (config_getState),
267
+ style: () => (config_ToolStyle)
268
268
  });
269
269
 
270
270
  // NAMESPACE OBJECT: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/boundingBox/index.js
271
271
  var boundingBox_namespaceObject = {};
272
272
  __webpack_require__.r(boundingBox_namespaceObject);
273
273
  __webpack_require__.d(boundingBox_namespaceObject, {
274
- "extend2DBoundingBoxInViewAxis": () => (boundingBox_extend2DBoundingBoxInViewAxis),
275
- "getBoundingBoxAroundShape": () => (boundingBox_getBoundingBoxAroundShape)
274
+ extend2DBoundingBoxInViewAxis: () => (boundingBox_extend2DBoundingBoxInViewAxis),
275
+ getBoundingBoxAroundShape: () => (boundingBox_getBoundingBoxAroundShape)
276
276
  });
277
277
 
278
278
  // NAMESPACE OBJECT: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/ellipse/index.js
279
279
  var ellipse_namespaceObject = {};
280
280
  __webpack_require__.r(ellipse_namespaceObject);
281
281
  __webpack_require__.d(ellipse_namespaceObject, {
282
- "getCanvasEllipseCorners": () => (getCanvasEllipseCorners),
283
- "pointInEllipse": () => (pointInEllipse)
282
+ getCanvasEllipseCorners: () => (getCanvasEllipseCorners),
283
+ pointInEllipse: () => (pointInEllipse)
284
284
  });
285
285
 
286
286
  // NAMESPACE OBJECT: ../../../node_modules/@cornerstonejs/tools/dist/esm/cursors/index.js
287
287
  var cursors_namespaceObject = {};
288
288
  __webpack_require__.r(cursors_namespaceObject);
289
289
  __webpack_require__.d(cursors_namespaceObject, {
290
- "CursorNames": () => (CursorNames),
291
- "CursorSVG": () => (CursorSVG),
292
- "ImageMouseCursor": () => (ImageMouseCursor),
293
- "MouseCursor": () => (MouseCursor),
294
- "SVGMouseCursor": () => (SVGMouseCursor),
295
- "elementCursor": () => (elementCursor_namespaceObject),
296
- "registerCursor": () => (registerCursor),
297
- "setCursorForElement": () => (cursors_setCursorForElement)
290
+ CursorNames: () => (CursorNames),
291
+ CursorSVG: () => (CursorSVG),
292
+ ImageMouseCursor: () => (ImageMouseCursor),
293
+ MouseCursor: () => (MouseCursor),
294
+ SVGMouseCursor: () => (SVGMouseCursor),
295
+ elementCursor: () => (elementCursor_namespaceObject),
296
+ registerCursor: () => (registerCursor),
297
+ setCursorForElement: () => (cursors_setCursorForElement)
298
298
  });
299
299
 
300
300
  // NAMESPACE OBJECT: ../../../node_modules/@cornerstonejs/tools/dist/esm/cursors/elementCursor.js
301
301
  var elementCursor_namespaceObject = {};
302
302
  __webpack_require__.r(elementCursor_namespaceObject);
303
303
  __webpack_require__.d(elementCursor_namespaceObject, {
304
- "hideElementCursor": () => (hideElementCursor),
305
- "initElementCursor": () => (initElementCursor),
306
- "resetElementCursor": () => (resetElementCursor),
307
- "setElementCursor": () => (_setElementCursor)
304
+ hideElementCursor: () => (hideElementCursor),
305
+ initElementCursor: () => (initElementCursor),
306
+ resetElementCursor: () => (resetElementCursor),
307
+ setElementCursor: () => (_setElementCursor)
308
308
  });
309
309
 
310
310
  // NAMESPACE OBJECT: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/annotation/index.js
311
311
  var annotation_namespaceObject = {};
312
312
  __webpack_require__.r(annotation_namespaceObject);
313
313
  __webpack_require__.d(annotation_namespaceObject, {
314
- "FrameOfReferenceSpecificAnnotationManager": () => (annotation_FrameOfReferenceSpecificAnnotationManager),
315
- "config": () => (annotation_config_namespaceObject),
316
- "locking": () => (annotationLocking_namespaceObject),
317
- "selection": () => (annotationSelection_namespaceObject),
318
- "state": () => (annotationState_namespaceObject),
319
- "visibility": () => (annotationVisibility_namespaceObject)
314
+ FrameOfReferenceSpecificAnnotationManager: () => (annotation_FrameOfReferenceSpecificAnnotationManager),
315
+ config: () => (annotation_config_namespaceObject),
316
+ locking: () => (annotationLocking_namespaceObject),
317
+ selection: () => (annotationSelection_namespaceObject),
318
+ state: () => (annotationState_namespaceObject),
319
+ visibility: () => (annotationVisibility_namespaceObject)
320
320
  });
321
321
 
322
322
  // NAMESPACE OBJECT: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/planar/index.js
@@ -324,121 +324,121 @@ var planar_namespaceObject = {};
324
324
  __webpack_require__.r(planar_namespaceObject);
325
325
  __webpack_require__.d(planar_namespaceObject, {
326
326
  "default": () => (planar),
327
- "filterAnnotationsForDisplay": () => (filterAnnotationsForDisplay),
328
- "filterAnnotationsWithinSlice": () => (filterAnnotationsWithinSlice),
329
- "getPointInLineOfSightWithCriteria": () => (getPointInLineOfSightWithCriteria),
330
- "getWorldWidthAndHeightFromCorners": () => (getWorldWidthAndHeightFromCorners)
327
+ filterAnnotationsForDisplay: () => (filterAnnotationsForDisplay),
328
+ filterAnnotationsWithinSlice: () => (filterAnnotationsWithinSlice),
329
+ getPointInLineOfSightWithCriteria: () => (getPointInLineOfSightWithCriteria),
330
+ getWorldWidthAndHeightFromCorners: () => (getWorldWidthAndHeightFromCorners)
331
331
  });
332
332
 
333
333
  // NAMESPACE OBJECT: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/viewportFilters/index.js
334
334
  var viewportFilters_namespaceObject = {};
335
335
  __webpack_require__.r(viewportFilters_namespaceObject);
336
336
  __webpack_require__.d(viewportFilters_namespaceObject, {
337
- "filterViewportsWithFrameOfReferenceUID": () => (filterViewportsWithFrameOfReferenceUID),
338
- "filterViewportsWithParallelNormals": () => (viewportFilters_filterViewportsWithParallelNormals),
339
- "filterViewportsWithToolEnabled": () => (filterViewportsWithToolEnabled),
340
- "getViewportIdsWithToolToRender": () => (getViewportIdsWithToolToRender)
337
+ filterViewportsWithFrameOfReferenceUID: () => (filterViewportsWithFrameOfReferenceUID),
338
+ filterViewportsWithParallelNormals: () => (viewportFilters_filterViewportsWithParallelNormals),
339
+ filterViewportsWithToolEnabled: () => (filterViewportsWithToolEnabled),
340
+ getViewportIdsWithToolToRender: () => (getViewportIdsWithToolToRender)
341
341
  });
342
342
 
343
343
  // NAMESPACE OBJECT: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/line/index.js
344
344
  var line_namespaceObject = {};
345
345
  __webpack_require__.r(line_namespaceObject);
346
346
  __webpack_require__.d(line_namespaceObject, {
347
- "distanceToPoint": () => (distanceToPoint_distanceToPoint),
348
- "distanceToPointSquared": () => (distanceToPointSquared),
349
- "intersectLine": () => (intersectLine)
347
+ distanceToPoint: () => (distanceToPoint_distanceToPoint),
348
+ distanceToPointSquared: () => (distanceToPointSquared),
349
+ intersectLine: () => (intersectLine)
350
350
  });
351
351
 
352
352
  // NAMESPACE OBJECT: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/drawing/index.js
353
353
  var drawing_namespaceObject = {};
354
354
  __webpack_require__.r(drawing_namespaceObject);
355
355
  __webpack_require__.d(drawing_namespaceObject, {
356
- "getTextBoxCoordsCanvas": () => (getTextBoxCoordsCanvas)
356
+ getTextBoxCoordsCanvas: () => (getTextBoxCoordsCanvas)
357
357
  });
358
358
 
359
359
  // NAMESPACE OBJECT: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/rectangle/index.js
360
360
  var rectangle_namespaceObject = {};
361
361
  __webpack_require__.r(rectangle_namespaceObject);
362
362
  __webpack_require__.d(rectangle_namespaceObject, {
363
- "distanceToPoint": () => (rectangle_distanceToPoint_distanceToPoint)
363
+ distanceToPoint: () => (rectangle_distanceToPoint_distanceToPoint)
364
364
  });
365
365
 
366
366
  // NAMESPACE OBJECT: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/point/index.js
367
367
  var point_namespaceObject = {};
368
368
  __webpack_require__.r(point_namespaceObject);
369
369
  __webpack_require__.d(point_namespaceObject, {
370
- "distanceToPoint": () => (distanceToPoint)
370
+ distanceToPoint: () => (distanceToPoint)
371
371
  });
372
372
 
373
373
  // NAMESPACE OBJECT: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/vec2/index.js
374
374
  var vec2_namespaceObject = {};
375
375
  __webpack_require__.r(vec2_namespaceObject);
376
376
  __webpack_require__.d(vec2_namespaceObject, {
377
- "findClosestPoint": () => (findClosestPoint),
378
- "liangBarksyClip": () => (liangBarksyClip_clip)
377
+ findClosestPoint: () => (findClosestPoint),
378
+ liangBarksyClip: () => (liangBarksyClip_clip)
379
379
  });
380
380
 
381
381
  // NAMESPACE OBJECT: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/polyline/index.js
382
382
  var polyline_namespaceObject = {};
383
383
  __webpack_require__.r(polyline_namespaceObject);
384
384
  __webpack_require__.d(polyline_namespaceObject, {
385
- "addCanvasPointsToArray": () => (polyline_addCanvasPointsToArray),
386
- "calculateAreaOfPoints": () => (calculateAreaOfPoints),
387
- "getClosestIntersectionWithPolyline": () => (getClosestIntersectionWithPolyline),
388
- "getFirstIntersectionWithPolyline": () => (getFirstIntersectionWithPolyline),
389
- "getSubPixelSpacingAndXYDirections": () => (polyline_getSubPixelSpacingAndXYDirections),
390
- "pointCanProjectOnLine": () => (polyline_pointCanProjectOnLine),
391
- "pointsAreWithinCloseContourProximity": () => (polyline_pointsAreWithinCloseContourProximity)
385
+ addCanvasPointsToArray: () => (polyline_addCanvasPointsToArray),
386
+ calculateAreaOfPoints: () => (calculateAreaOfPoints),
387
+ getClosestIntersectionWithPolyline: () => (getClosestIntersectionWithPolyline),
388
+ getFirstIntersectionWithPolyline: () => (getFirstIntersectionWithPolyline),
389
+ getSubPixelSpacingAndXYDirections: () => (polyline_getSubPixelSpacingAndXYDirections),
390
+ pointCanProjectOnLine: () => (polyline_pointCanProjectOnLine),
391
+ pointsAreWithinCloseContourProximity: () => (polyline_pointsAreWithinCloseContourProximity)
392
392
  });
393
393
 
394
394
  // NAMESPACE OBJECT: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/math/index.js
395
395
  var math_namespaceObject = {};
396
396
  __webpack_require__.r(math_namespaceObject);
397
397
  __webpack_require__.d(math_namespaceObject, {
398
- "ellipse": () => (ellipse_namespaceObject),
399
- "lineSegment": () => (line_namespaceObject),
400
- "point": () => (point_namespaceObject),
401
- "polyline": () => (polyline_namespaceObject),
402
- "rectangle": () => (rectangle_namespaceObject),
403
- "vec2": () => (vec2_namespaceObject)
398
+ ellipse: () => (ellipse_namespaceObject),
399
+ lineSegment: () => (line_namespaceObject),
400
+ point: () => (point_namespaceObject),
401
+ polyline: () => (polyline_namespaceObject),
402
+ rectangle: () => (rectangle_namespaceObject),
403
+ vec2: () => (vec2_namespaceObject)
404
404
  });
405
405
 
406
406
  // NAMESPACE OBJECT: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/segmentation/index.js
407
407
  var utilities_segmentation_namespaceObject = {};
408
408
  __webpack_require__.r(utilities_segmentation_namespaceObject);
409
409
  __webpack_require__.d(utilities_segmentation_namespaceObject, {
410
- "createLabelmapVolumeForViewport": () => (createLabelmapVolumeForViewport),
411
- "createMergedLabelmapForIndex": () => (segmentation_createMergedLabelmapForIndex),
412
- "floodFill": () => (segmentation_floodFill),
413
- "getBrushSizeForToolGroup": () => (getBrushSizeForToolGroup),
414
- "getBrushThresholdForToolGroup": () => (getBrushThresholdForToolGroup),
415
- "getDefaultRepresentationConfig": () => (getDefaultRepresentationConfig),
416
- "isValidRepresentationConfig": () => (isValidRepresentationConfig),
417
- "rectangleROIThresholdVolumeByRange": () => (segmentation_rectangleROIThresholdVolumeByRange),
418
- "setBrushSizeForToolGroup": () => (setBrushSizeForToolGroup),
419
- "setBrushThresholdForToolGroup": () => (setBrushThresholdForToolGroup),
420
- "thresholdSegmentationByRange": () => (segmentation_thresholdSegmentationByRange),
421
- "thresholdVolumeByRange": () => (segmentation_thresholdVolumeByRange),
422
- "triggerSegmentationRender": () => (triggerSegmentationRender)
410
+ createLabelmapVolumeForViewport: () => (createLabelmapVolumeForViewport),
411
+ createMergedLabelmapForIndex: () => (segmentation_createMergedLabelmapForIndex),
412
+ floodFill: () => (segmentation_floodFill),
413
+ getBrushSizeForToolGroup: () => (getBrushSizeForToolGroup),
414
+ getBrushThresholdForToolGroup: () => (getBrushThresholdForToolGroup),
415
+ getDefaultRepresentationConfig: () => (getDefaultRepresentationConfig),
416
+ isValidRepresentationConfig: () => (isValidRepresentationConfig),
417
+ rectangleROIThresholdVolumeByRange: () => (segmentation_rectangleROIThresholdVolumeByRange),
418
+ setBrushSizeForToolGroup: () => (setBrushSizeForToolGroup),
419
+ setBrushThresholdForToolGroup: () => (setBrushThresholdForToolGroup),
420
+ thresholdSegmentationByRange: () => (segmentation_thresholdSegmentationByRange),
421
+ thresholdVolumeByRange: () => (segmentation_thresholdVolumeByRange),
422
+ triggerSegmentationRender: () => (triggerSegmentationRender)
423
423
  });
424
424
 
425
425
  // NAMESPACE OBJECT: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/orientation/index.js
426
426
  var orientation_namespaceObject = {};
427
427
  __webpack_require__.r(orientation_namespaceObject);
428
428
  __webpack_require__.d(orientation_namespaceObject, {
429
- "getOrientationStringLPS": () => (getOrientationStringLPS),
430
- "invertOrientationStringLPS": () => (invertOrientationStringLPS)
429
+ getOrientationStringLPS: () => (getOrientationStringLPS),
430
+ invertOrientationStringLPS: () => (invertOrientationStringLPS)
431
431
  });
432
432
 
433
433
  // NAMESPACE OBJECT: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/cine/index.js
434
434
  var cine_namespaceObject = {};
435
435
  __webpack_require__.r(cine_namespaceObject);
436
436
  __webpack_require__.d(cine_namespaceObject, {
437
- "Events": () => (events),
438
- "addToolState": () => (addToolState),
439
- "getToolState": () => (getToolState),
440
- "playClip": () => (playClip),
441
- "stopClip": () => (stopClip)
437
+ Events: () => (events),
438
+ addToolState: () => (addToolState),
439
+ getToolState: () => (getToolState),
440
+ playClip: () => (playClip),
441
+ stopClip: () => (stopClip)
442
442
  });
443
443
 
444
444
  // NAMESPACE OBJECT: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/planarFreehandROITool/index.js
@@ -446,132 +446,132 @@ var planarFreehandROITool_namespaceObject = {};
446
446
  __webpack_require__.r(planarFreehandROITool_namespaceObject);
447
447
  __webpack_require__.d(planarFreehandROITool_namespaceObject, {
448
448
  "default": () => (planarFreehandROITool),
449
- "interpolateAnnotation": () => (interpolateAnnotation)
449
+ interpolateAnnotation: () => (interpolateAnnotation)
450
450
  });
451
451
 
452
452
  // NAMESPACE OBJECT: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/rectangleROITool/index.js
453
453
  var rectangleROITool_namespaceObject = {};
454
454
  __webpack_require__.r(rectangleROITool_namespaceObject);
455
455
  __webpack_require__.d(rectangleROITool_namespaceObject, {
456
- "getBoundsIJKFromRectangleAnnotations": () => (rectangleROITool_getBoundsIJKFromRectangleAnnotations)
456
+ getBoundsIJKFromRectangleAnnotations: () => (rectangleROITool_getBoundsIJKFromRectangleAnnotations)
457
457
  });
458
458
 
459
459
  // NAMESPACE OBJECT: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/stackPrefetch/index.js
460
460
  var utilities_stackPrefetch_namespaceObject = {};
461
461
  __webpack_require__.r(utilities_stackPrefetch_namespaceObject);
462
462
  __webpack_require__.d(utilities_stackPrefetch_namespaceObject, {
463
- "disable": () => (stackPrefetch_disable),
464
- "enable": () => (stackPrefetch_enable),
465
- "getConfiguration": () => (getConfiguration),
466
- "setConfiguration": () => (setConfiguration)
463
+ disable: () => (stackPrefetch_disable),
464
+ enable: () => (stackPrefetch_enable),
465
+ getConfiguration: () => (getConfiguration),
466
+ setConfiguration: () => (setConfiguration)
467
467
  });
468
468
 
469
469
  // NAMESPACE OBJECT: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/viewport/index.js
470
470
  var viewport_namespaceObject = {};
471
471
  __webpack_require__.r(viewport_namespaceObject);
472
472
  __webpack_require__.d(viewport_namespaceObject, {
473
- "isViewportPreScaled": () => (isViewportPreScaled),
474
- "jumpToSlice": () => (viewport_jumpToSlice),
475
- "jumpToWorld": () => (jumpToWorld)
473
+ isViewportPreScaled: () => (isViewportPreScaled),
474
+ jumpToSlice: () => (viewport_jumpToSlice),
475
+ jumpToWorld: () => (jumpToWorld)
476
476
  });
477
477
 
478
478
  // NAMESPACE OBJECT: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/dynamicVolume/index.js
479
479
  var dynamicVolume_namespaceObject = {};
480
480
  __webpack_require__.r(dynamicVolume_namespaceObject);
481
481
  __webpack_require__.d(dynamicVolume_namespaceObject, {
482
- "generateImageFromTimeData": () => (dynamicVolume_generateImageFromTimeData),
483
- "getDataInTime": () => (dynamicVolume_getDataInTime)
482
+ generateImageFromTimeData: () => (dynamicVolume_generateImageFromTimeData),
483
+ getDataInTime: () => (dynamicVolume_getDataInTime)
484
484
  });
485
485
 
486
486
  // NAMESPACE OBJECT: ../../../node_modules/@cornerstonejs/tools/dist/esm/utilities/index.js
487
487
  var esm_utilities_namespaceObject = {};
488
488
  __webpack_require__.r(esm_utilities_namespaceObject);
489
489
  __webpack_require__.d(esm_utilities_namespaceObject, {
490
- "boundingBox": () => (boundingBox_namespaceObject),
491
- "calibrateImageSpacing": () => (calibrateImageSpacing),
492
- "cine": () => (cine_namespaceObject),
493
- "clip": () => (utilities_clip),
494
- "debounce": () => (utilities_debounce),
495
- "drawing": () => (drawing_namespaceObject),
496
- "dynamicVolume": () => (dynamicVolume_namespaceObject),
497
- "getAnnotationNearPoint": () => (getAnnotationNearPoint),
498
- "getAnnotationNearPointOnEnabledElement": () => (getAnnotationNearPointOnEnabledElement),
499
- "isObject": () => (utilities_isObject),
500
- "jumpToSlice": () => (viewport_jumpToSlice),
501
- "math": () => (math_namespaceObject),
502
- "orientation": () => (orientation_namespaceObject),
503
- "planar": () => (planar_namespaceObject),
504
- "planarFreehandROITool": () => (planarFreehandROITool_namespaceObject),
505
- "pointInShapeCallback": () => (pointInShapeCallback),
506
- "pointInSurroundingSphereCallback": () => (pointInSurroundingSphereCallback),
507
- "rectangleROITool": () => (rectangleROITool_namespaceObject),
508
- "scroll": () => (scroll_scroll),
509
- "segmentation": () => (utilities_segmentation_namespaceObject),
510
- "stackPrefetch": () => (utilities_stackPrefetch_namespaceObject),
511
- "throttle": () => (utilities_throttle),
512
- "touch": () => (touch_namespaceObject),
513
- "triggerAnnotationRender": () => (utilities_triggerAnnotationRender),
514
- "triggerAnnotationRenderForViewportIds": () => (utilities_triggerAnnotationRenderForViewportIds),
515
- "triggerEvent": () => (esm.triggerEvent),
516
- "viewport": () => (viewport_namespaceObject),
517
- "viewportFilters": () => (viewportFilters_namespaceObject)
490
+ boundingBox: () => (boundingBox_namespaceObject),
491
+ calibrateImageSpacing: () => (calibrateImageSpacing),
492
+ cine: () => (cine_namespaceObject),
493
+ clip: () => (utilities_clip),
494
+ debounce: () => (utilities_debounce),
495
+ drawing: () => (drawing_namespaceObject),
496
+ dynamicVolume: () => (dynamicVolume_namespaceObject),
497
+ getAnnotationNearPoint: () => (getAnnotationNearPoint),
498
+ getAnnotationNearPointOnEnabledElement: () => (getAnnotationNearPointOnEnabledElement),
499
+ isObject: () => (utilities_isObject),
500
+ jumpToSlice: () => (viewport_jumpToSlice),
501
+ math: () => (math_namespaceObject),
502
+ orientation: () => (orientation_namespaceObject),
503
+ planar: () => (planar_namespaceObject),
504
+ planarFreehandROITool: () => (planarFreehandROITool_namespaceObject),
505
+ pointInShapeCallback: () => (pointInShapeCallback),
506
+ pointInSurroundingSphereCallback: () => (pointInSurroundingSphereCallback),
507
+ rectangleROITool: () => (rectangleROITool_namespaceObject),
508
+ scroll: () => (scroll_scroll),
509
+ segmentation: () => (utilities_segmentation_namespaceObject),
510
+ stackPrefetch: () => (utilities_stackPrefetch_namespaceObject),
511
+ throttle: () => (utilities_throttle),
512
+ touch: () => (touch_namespaceObject),
513
+ triggerAnnotationRender: () => (utilities_triggerAnnotationRender),
514
+ triggerAnnotationRenderForViewportIds: () => (utilities_triggerAnnotationRenderForViewportIds),
515
+ triggerEvent: () => (esm.triggerEvent),
516
+ viewport: () => (viewport_namespaceObject),
517
+ viewportFilters: () => (viewportFilters_namespaceObject)
518
518
  });
519
519
 
520
520
  // NAMESPACE OBJECT: ../../../node_modules/@cornerstonejs/tools/dist/esm/store/SynchronizerManager/index.js
521
521
  var SynchronizerManager_namespaceObject = {};
522
522
  __webpack_require__.r(SynchronizerManager_namespaceObject);
523
523
  __webpack_require__.d(SynchronizerManager_namespaceObject, {
524
- "createSynchronizer": () => (SynchronizerManager_createSynchronizer),
525
- "destroy": () => (SynchronizerManager_destroy),
526
- "destroySynchronizer": () => (SynchronizerManager_destroySynchronizer),
527
- "getAllSynchronizers": () => (SynchronizerManager_getAllSynchronizers),
528
- "getSynchronizer": () => (SynchronizerManager_getSynchronizer),
529
- "getSynchronizersForViewport": () => (SynchronizerManager_getSynchronizersForViewport)
524
+ createSynchronizer: () => (SynchronizerManager_createSynchronizer),
525
+ destroy: () => (SynchronizerManager_destroy),
526
+ destroySynchronizer: () => (SynchronizerManager_destroySynchronizer),
527
+ getAllSynchronizers: () => (SynchronizerManager_getAllSynchronizers),
528
+ getSynchronizer: () => (SynchronizerManager_getSynchronizer),
529
+ getSynchronizersForViewport: () => (SynchronizerManager_getSynchronizersForViewport)
530
530
  });
531
531
 
532
532
  // NAMESPACE OBJECT: ../../../node_modules/@cornerstonejs/tools/dist/esm/store/ToolGroupManager/index.js
533
533
  var ToolGroupManager_namespaceObject = {};
534
534
  __webpack_require__.r(ToolGroupManager_namespaceObject);
535
535
  __webpack_require__.d(ToolGroupManager_namespaceObject, {
536
- "createToolGroup": () => (ToolGroupManager_createToolGroup),
537
- "destroy": () => (ToolGroupManager_destroy),
538
- "destroyToolGroup": () => (ToolGroupManager_destroyToolGroup),
539
- "getAllToolGroups": () => (ToolGroupManager_getAllToolGroups),
540
- "getToolGroup": () => (ToolGroupManager_getToolGroup),
541
- "getToolGroupForViewport": () => (ToolGroupManager_getToolGroupForViewport),
542
- "getToolGroupsWithToolName": () => (ToolGroupManager_getToolGroupsWithToolName)
536
+ createToolGroup: () => (ToolGroupManager_createToolGroup),
537
+ destroy: () => (ToolGroupManager_destroy),
538
+ destroyToolGroup: () => (ToolGroupManager_destroyToolGroup),
539
+ getAllToolGroups: () => (ToolGroupManager_getAllToolGroups),
540
+ getToolGroup: () => (ToolGroupManager_getToolGroup),
541
+ getToolGroupForViewport: () => (ToolGroupManager_getToolGroupForViewport),
542
+ getToolGroupsWithToolName: () => (ToolGroupManager_getToolGroupsWithToolName)
543
543
  });
544
544
 
545
545
  // NAMESPACE OBJECT: ../../../node_modules/@cornerstonejs/tools/dist/esm/stateManagement/annotation/annotationState.js
546
546
  var annotationState_namespaceObject = {};
547
547
  __webpack_require__.r(annotationState_namespaceObject);
548
548
  __webpack_require__.d(annotationState_namespaceObject, {
549
- "addAnnotation": () => (addAnnotation),
550
- "getAnnotation": () => (getAnnotation),
551
- "getAnnotationManager": () => (getAnnotationManager),
552
- "getAnnotations": () => (getAnnotations),
553
- "getNumberOfAnnotations": () => (getNumberOfAnnotations),
554
- "removeAllAnnotations": () => (removeAllAnnotations),
555
- "removeAnnotation": () => (annotationState_removeAnnotation),
556
- "resetAnnotationManager": () => (resetAnnotationManager),
557
- "setAnnotationManager": () => (setAnnotationManager)
549
+ addAnnotation: () => (addAnnotation),
550
+ getAnnotation: () => (getAnnotation),
551
+ getAnnotationManager: () => (getAnnotationManager),
552
+ getAnnotations: () => (getAnnotations),
553
+ getNumberOfAnnotations: () => (getNumberOfAnnotations),
554
+ removeAllAnnotations: () => (removeAllAnnotations),
555
+ removeAnnotation: () => (annotationState_removeAnnotation),
556
+ resetAnnotationManager: () => (resetAnnotationManager),
557
+ setAnnotationManager: () => (setAnnotationManager)
558
558
  });
559
559
 
560
560
  // NAMESPACE OBJECT: ../../../node_modules/@cornerstonejs/tools/dist/esm/constants/index.js
561
561
  var constants_namespaceObject = {};
562
562
  __webpack_require__.r(constants_namespaceObject);
563
563
  __webpack_require__.d(constants_namespaceObject, {
564
- "COLOR_LUT": () => (COLOR_LUT)
564
+ COLOR_LUT: () => (COLOR_LUT)
565
565
  });
566
566
 
567
567
  // NAMESPACE OBJECT: ../../../node_modules/@cornerstonejs/tools/dist/esm/synchronizers/index.js
568
568
  var synchronizers_namespaceObject = {};
569
569
  __webpack_require__.r(synchronizers_namespaceObject);
570
570
  __webpack_require__.d(synchronizers_namespaceObject, {
571
- "createCameraPositionSynchronizer": () => (createCameraPositionSynchronizer),
572
- "createStackImageSynchronizer": () => (createStackImageSynchronizer),
573
- "createVOISynchronizer": () => (createVOISynchronizer),
574
- "createZoomPanSynchronizer": () => (createZoomPanSynchronizer)
571
+ createCameraPositionSynchronizer: () => (createCameraPositionSynchronizer),
572
+ createStackImageSynchronizer: () => (createStackImageSynchronizer),
573
+ createVOISynchronizer: () => (createVOISynchronizer),
574
+ createZoomPanSynchronizer: () => (createZoomPanSynchronizer)
575
575
  });
576
576
 
577
577
  // NAMESPACE OBJECT: ../../../node_modules/@cornerstonejs/tools/dist/esm/types/index.js
@@ -1290,6 +1290,7 @@ function mouseMoveListener(evt) {
1290
1290
 
1291
1291
  const { MOUSE_DOWN, MOUSE_DOWN_ACTIVATE, MOUSE_CLICK, MOUSE_UP, MOUSE_DRAG } = enums_Events;
1292
1292
  const DOUBLE_CLICK_TOLERANCE_MS = 400;
1293
+ const MULTI_BUTTON_TOLERANCE_MS = 150;
1293
1294
  const DOUBLE_CLICK_DRAG_TOLERANCE = 3;
1294
1295
  const mouseDownListener_defaultState = {
1295
1296
  mouseButton: undefined,
@@ -1341,9 +1342,13 @@ const doubleClickState = {
1341
1342
  };
1342
1343
  function mouseDownListener(evt) {
1343
1344
  if (doubleClickState.doubleClickTimeout) {
1345
+ if (evt.buttons === doubleClickState.mouseDownEvent.buttons)
1346
+ return;
1347
+ doubleClickState.mouseDownEvent = evt;
1348
+ _doStateMouseDownAndUp();
1344
1349
  return;
1345
1350
  }
1346
- doubleClickState.doubleClickTimeout = setTimeout(_doStateMouseDownAndUp, evt.buttons === 1 ? DOUBLE_CLICK_TOLERANCE_MS : 0);
1351
+ doubleClickState.doubleClickTimeout = setTimeout(_doStateMouseDownAndUp, evt.buttons === 1 ? DOUBLE_CLICK_TOLERANCE_MS : MULTI_BUTTON_TOLERANCE_MS);
1347
1352
  doubleClickState.mouseDownEvent = evt;
1348
1353
  doubleClickState.ignoreDoubleClick = false;
1349
1354
  mouseDownListener_state.element = evt.currentTarget;
@@ -3429,10 +3434,10 @@ function vtkAppendPolyData(publicAPI, model) {
3429
3434
  }
3430
3435
  }
3431
3436
 
3432
- if (model.outputPointsPrecision === Constants/* DesiredOutputPrecision.SINGLE */.XJ.SINGLE) {
3433
- pointType = DataArray_Constants/* VtkDataTypes.FLOAT */.Tu.FLOAT;
3434
- } else if (model.outputPointsPrecision === Constants/* DesiredOutputPrecision.DOUBLE */.XJ.DOUBLE) {
3435
- pointType = DataArray_Constants/* VtkDataTypes.DOUBLE */.Tu.DOUBLE;
3437
+ if (model.outputPointsPrecision === Constants/* DesiredOutputPrecision */.XJ.SINGLE) {
3438
+ pointType = DataArray_Constants/* VtkDataTypes */.Tu.FLOAT;
3439
+ } else if (model.outputPointsPrecision === Constants/* DesiredOutputPrecision */.XJ.DOUBLE) {
3440
+ pointType = DataArray_Constants/* VtkDataTypes */.Tu.DOUBLE;
3436
3441
  }
3437
3442
 
3438
3443
  var points = Points/* default.newInstance */.ZP.newInstance({
@@ -3546,7 +3551,7 @@ function vtkAppendPolyData(publicAPI, model) {
3546
3551
 
3547
3552
 
3548
3553
  var DEFAULT_VALUES = {
3549
- outputPointsPrecision: Constants/* DesiredOutputPrecision.DEFAULT */.XJ.DEFAULT
3554
+ outputPointsPrecision: Constants/* DesiredOutputPrecision */.XJ.DEFAULT
3550
3555
  }; // ----------------------------------------------------------------------------
3551
3556
 
3552
3557
  function extend(publicAPI, model) {
@@ -9125,7 +9130,8 @@ class CrosshairsTool extends base_AnnotationTool {
9125
9130
  Core_Math/* default.subtract */.ZP.subtract(pointWorld0, pointWorld1, worldUnitVectorFromCenter);
9126
9131
  Core_Math/* default.normalize */.ZP.normalize(worldUnitVectorFromCenter);
9127
9132
  const { viewPlaneNormal } = camera;
9128
- const { matrix } = MatrixBuilder/* default.buildFromDegree */.Z.buildFromDegree()
9133
+ const { matrix } = MatrixBuilder/* default */.Z
9134
+ .buildFromDegree()
9129
9135
  .rotate(90, viewPlaneNormal);
9130
9136
  const worldUnitOrthoVectorFromCenter = [0, 0, 0];
9131
9137
  gl_matrix_esm/* vec3.transformMat4 */.R3.transformMat4(worldUnitOrthoVectorFromCenter, worldUnitVectorFromCenter, matrix);
@@ -9680,7 +9686,8 @@ class CrosshairsTool extends base_AnnotationTool {
9680
9686
  }
9681
9687
  angle = Math.round(angle * 100) / 100;
9682
9688
  const rotationAxis = viewport.getCamera().viewPlaneNormal;
9683
- const { matrix } = MatrixBuilder/* default.buildFromRadian */.Z.buildFromRadian()
9689
+ const { matrix } = MatrixBuilder/* default */.Z
9690
+ .buildFromRadian()
9684
9691
  .translate(center[0], center[1], center[2])
9685
9692
  .rotate(angle, rotationAxis)
9686
9693
  .translate(-center[0], -center[1], -center[2]);
@@ -17176,6 +17183,7 @@ const midPoint2 = midPoint;
17176
17183
 
17177
17184
 
17178
17185
 
17186
+
17179
17187
  class CobbAngleTool extends base_AnnotationTool {
17180
17188
  constructor(toolProps = {}, defaultToolProps = {
17181
17189
  supportedInteractionTypes: ['Mouse', 'Touch'],
@@ -17333,6 +17341,32 @@ class CobbAngleTool extends base_AnnotationTool {
17333
17341
  this.editData = null;
17334
17342
  this.isDrawing = false;
17335
17343
  };
17344
+ this._mouseDownCallback = (evt) => {
17345
+ const { annotation, handleIndex } = this.editData;
17346
+ const eventDetail = evt.detail;
17347
+ const { element, currentPoints } = eventDetail;
17348
+ const worldPos = currentPoints.world;
17349
+ const { data } = annotation;
17350
+ if (handleIndex === 1) {
17351
+ data.handles.points[1] = worldPos;
17352
+ this.editData.hasMoved =
17353
+ data.handles.points[1][0] !== data.handles.points[0][0] ||
17354
+ data.handles.points[1][1] !== data.handles.points[0][0];
17355
+ return;
17356
+ }
17357
+ if (handleIndex === 3) {
17358
+ data.handles.points[3] = worldPos;
17359
+ this.editData.hasMoved =
17360
+ data.handles.points[3][0] !== data.handles.points[2][0] ||
17361
+ data.handles.points[3][1] !== data.handles.points[2][0];
17362
+ this.angleStartedNotYetCompleted = false;
17363
+ return;
17364
+ }
17365
+ this.editData.hasMoved = false;
17366
+ hideElementCursor(element);
17367
+ data.handles.points[2] = data.handles.points[3] = worldPos;
17368
+ this.editData.handleIndex = data.handles.points.length - 1;
17369
+ };
17336
17370
  this._mouseDragCallback = (evt) => {
17337
17371
  this.isDrawing = true;
17338
17372
  const eventDetail = evt.detail;
@@ -17414,6 +17448,7 @@ class CobbAngleTool extends base_AnnotationTool {
17414
17448
  element.addEventListener(enums_Events.MOUSE_DRAG, this._mouseDragCallback);
17415
17449
  element.addEventListener(enums_Events.MOUSE_MOVE, this._mouseDragCallback);
17416
17450
  element.addEventListener(enums_Events.MOUSE_CLICK, this._mouseUpCallback);
17451
+ element.addEventListener(enums_Events.MOUSE_DOWN, this._mouseDownCallback);
17417
17452
  };
17418
17453
  this._deactivateDraw = (element) => {
17419
17454
  state.isInteractingWithTool = false;
@@ -17421,6 +17456,7 @@ class CobbAngleTool extends base_AnnotationTool {
17421
17456
  element.removeEventListener(enums_Events.MOUSE_DRAG, this._mouseDragCallback);
17422
17457
  element.removeEventListener(enums_Events.MOUSE_MOVE, this._mouseDragCallback);
17423
17458
  element.removeEventListener(enums_Events.MOUSE_CLICK, this._mouseUpCallback);
17459
+ element.removeEventListener(enums_Events.MOUSE_DOWN, this._mouseDownCallback);
17424
17460
  };
17425
17461
  this.renderAnnotation = (enabledElement, svgDrawingHelper) => {
17426
17462
  let renderStatus = false;
@@ -17567,15 +17603,26 @@ class CobbAngleTool extends base_AnnotationTool {
17567
17603
  if (data.handles.points.length !== 4) {
17568
17604
  return;
17569
17605
  }
17570
- const worldPos1 = data.handles.points[0];
17571
- const worldPos2 = data.handles.points[1];
17572
- const worldPos3 = data.handles.points[2];
17573
- const worldPos4 = data.handles.points[3];
17606
+ const seg1 = [null, null];
17607
+ const seg2 = [null, null];
17608
+ let minDist = Number.MAX_VALUE;
17609
+ for (let i = 0; i < 2; i += 1) {
17610
+ for (let j = 2; j < 4; j += 1) {
17611
+ const dist = gl_matrix_esm/* vec3.distance */.R3.distance(data.handles.points[i], data.handles.points[j]);
17612
+ if (dist < minDist) {
17613
+ minDist = dist;
17614
+ seg1[1] = data.handles.points[i];
17615
+ seg1[0] = data.handles.points[(i + 1) % 2];
17616
+ seg2[0] = data.handles.points[j];
17617
+ seg2[1] = data.handles.points[2 + ((j - 1) % 2)];
17618
+ }
17619
+ }
17620
+ }
17574
17621
  const { cachedStats } = data;
17575
17622
  const targetIds = Object.keys(cachedStats);
17576
17623
  for (let i = 0; i < targetIds.length; i++) {
17577
17624
  const targetId = targetIds[i];
17578
- const angle = angleBetweenLines([worldPos1, worldPos2], [worldPos3, worldPos4]);
17625
+ const angle = angleBetweenLines(seg1, seg2);
17579
17626
  cachedStats[targetId] = {
17580
17627
  angle,
17581
17628
  };
@@ -21098,13 +21145,14 @@ function getActiveToolForMouseEvent(evt) {
21098
21145
  return null;
21099
21146
  }
21100
21147
  const toolGroupToolNames = Object.keys(toolGroup.toolOptions);
21148
+ const defaultMousePrimary = toolGroup.getDefaultMousePrimary();
21101
21149
  for (let j = 0; j < toolGroupToolNames.length; j++) {
21102
21150
  const toolName = toolGroupToolNames[j];
21103
21151
  const toolOptions = toolGroup.toolOptions[toolName];
21104
21152
  const correctBinding = toolOptions.bindings.length &&
21105
21153
  toolOptions.bindings.some((binding) => {
21106
21154
  return (binding.mouseButton ===
21107
- (mouseEvent ? mouseEvent.buttons : MouseBindings.Primary) &&
21155
+ (mouseEvent ? mouseEvent.buttons : defaultMousePrimary) &&
21108
21156
  binding.modifierKey === modifierKey);
21109
21157
  });
21110
21158
  if (toolOptions.mode === getActiveToolForMouseEvent_Active && correctBinding) {
@@ -21358,11 +21406,12 @@ function getActiveToolForKeyboardEvent(evt) {
21358
21406
  return null;
21359
21407
  }
21360
21408
  const toolGroupToolNames = Object.keys(toolGroup.toolOptions);
21409
+ const defaultMousePrimary = toolGroup.getDefaultMousePrimary();
21361
21410
  for (let j = 0; j < toolGroupToolNames.length; j++) {
21362
21411
  const toolName = toolGroupToolNames[j];
21363
21412
  const toolOptions = toolGroup.toolOptions[toolName];
21364
21413
  const correctBinding = toolOptions.bindings.length &&
21365
- toolOptions.bindings.some((binding) => binding.mouseButton === (mouseButton ?? MouseBindings.Primary) &&
21414
+ toolOptions.bindings.some((binding) => binding.mouseButton === (mouseButton ?? defaultMousePrimary) &&
21366
21415
  binding.modifierKey === modifierKey);
21367
21416
  if (toolOptions.mode === getActiveToolForKeyboardEvent_Active && correctBinding) {
21368
21417
  return toolGroup.getToolInstance(toolName);
@@ -21498,13 +21547,14 @@ function getActiveToolForTouchEvent(evt) {
21498
21547
  const toolGroupToolNames = Object.keys(toolGroup.toolOptions);
21499
21548
  const numTouchPoints = Object.keys(touchEvent.touches).length;
21500
21549
  const modifierKey = getMouseModifier(touchEvent) || keyboard.getModifierKey();
21550
+ const defaultMousePrimary = toolGroup.getDefaultMousePrimary();
21501
21551
  for (let j = 0; j < toolGroupToolNames.length; j++) {
21502
21552
  const toolName = toolGroupToolNames[j];
21503
21553
  const toolOptions = toolGroup.toolOptions[toolName];
21504
21554
  const correctBinding = toolOptions.bindings.length &&
21505
21555
  toolOptions.bindings.some((binding) => (binding.numTouchPoints === numTouchPoints ||
21506
21556
  (numTouchPoints === 1 &&
21507
- binding.mouseButton === MouseBindings.Primary)) &&
21557
+ binding.mouseButton === defaultMousePrimary)) &&
21508
21558
  binding.modifierKey === modifierKey);
21509
21559
  if (toolOptions.mode === getActiveToolForTouchEvent_Active && correctBinding) {
21510
21560
  return toolGroup.getToolInstance(toolName);
@@ -22363,7 +22413,8 @@ class ToolGroup {
22363
22413
  }, prevToolOptions, {
22364
22414
  mode: ToolGroup_Passive,
22365
22415
  });
22366
- toolOptions.bindings = toolOptions.bindings.filter((binding) => binding.mouseButton !== MouseBindings.Primary || binding.modifierKey);
22416
+ const defaultMousePrimary = this.getDefaultMousePrimary();
22417
+ toolOptions.bindings = toolOptions.bindings.filter((binding) => binding.mouseButton !== defaultMousePrimary || binding.modifierKey);
22367
22418
  let mode = ToolGroup_Passive;
22368
22419
  if (toolOptions.bindings.length !== 0) {
22369
22420
  mode = ToolGroup_Active;
@@ -22476,6 +22527,9 @@ class ToolGroup {
22476
22527
  this._renderViewports();
22477
22528
  return true;
22478
22529
  }
22530
+ getDefaultMousePrimary() {
22531
+ return MouseBindings.Primary;
22532
+ }
22479
22533
  getToolConfiguration(toolName, configurationPath) {
22480
22534
  if (this._toolInstances[toolName] === undefined) {
22481
22535
  console.warn(`Tool ${toolName} not present, can't set tool configuration.`);
@@ -22485,7 +22539,8 @@ class ToolGroup {
22485
22539
  return lodash_clonedeep_default()(_configuration);
22486
22540
  }
22487
22541
  _hasMousePrimaryButtonBinding(toolOptions) {
22488
- return toolOptions?.bindings?.some((binding) => binding.mouseButton === MouseBindings.Primary &&
22542
+ const defaultMousePrimary = this.getDefaultMousePrimary();
22543
+ return toolOptions?.bindings?.some((binding) => binding.mouseButton === defaultMousePrimary &&
22489
22544
  binding.modifierKey === undefined);
22490
22545
  }
22491
22546
  _renderViewports() {