ohif-viewer/extensions
Alireza c9d3c08cb6
feat(cst): Add new command to get nearby annotation tools (#3327)
* feat(cst): Add new command to get nearby annotation tools
This commit adds a new command `getNearbyAnnotation` to the `commandsModule.ts` file that identifies nearby annotation tools excluding Crosshairs and ReferenceLines. It also removes an unused mapping to `Crosshairs` in `initMeasurementService.js` and changes the command run in `findNearbyToolData.ts` to `getNearbyAnnotation`.

* perf(cornerstone): Improve performance by optimizing tools

Removes unnecessary imports to improve app's performance. Changes how annotations are detected on the `commandsModule.js` file by fetching the `isAnnotation` property of the tool instance if available. Updates `CrosshairsTool` and `ReferenceLinesTool` to not be annotations anymore. Adjusts the `localhost` URL ports for the `dcm4chee-arc` service interface on `local_dcm4chee.js` to allow for more efficient server communication.

* feat(cornerstone): Add CornerstoneServices type and ToolGroupService.getToolGroup to get tool group by ID or active viewport

This commit introduces the new CornerstoneServices interface to the code and adds the ToolGroupService.getToolGroup method, which can retrieve a specific tool group by ID or from the active viewport. The older _getToolGroup method has also been removed from commandsModule. When no tool group ID is provided, this method now retrieves the tool group from the currently active viewport with the help of getActiveViewportEnabledElement. Additionally, the required reference to @ohif/core has been removed.
2023-04-28 10:14:14 -04:00
..
_example/src feat(cli): Ohif cli for modes and extensions modification (#2696) 2022-04-06 13:28:42 -04:00
cornerstone feat(cst): Add new command to get nearby annotation tools (#3327) 2023-04-28 10:14:14 -04:00
cornerstone-dicom-rt feat(RT): add dicom RT support via volume viewports (#3310) 2023-04-26 12:21:08 -04:00
cornerstone-dicom-seg feat(RT): add dicom RT support via volume viewports (#3310) 2023-04-26 12:21:08 -04:00
cornerstone-dicom-sr feat(dicomImageLoader): replace wado image loader with the new library (#3339) 2023-04-26 20:55:56 -04:00
default feat(microscopy): add dicom microscopy extension and mode (#3247) 2023-04-27 20:53:52 -04:00
dicom-microscopy feat(microscopy): add dicom microscopy extension and mode (#3247) 2023-04-27 20:53:52 -04:00
dicom-pdf fix(SR): When loading DICOM SR, only one measurement is shown with no way to show others (#3228) 2023-04-25 17:25:10 -04:00
dicom-video fix(SR): When loading DICOM SR, only one measurement is shown with no way to show others (#3228) 2023-04-25 17:25:10 -04:00
measurement-tracking feat(microscopy): add dicom microscopy extension and mode (#3247) 2023-04-27 20:53:52 -04:00
test-extension feat: Add a new hanging protocol @ohif/mn (#3305) 2023-04-18 11:55:25 -04:00
tmtv feat(dicomImageLoader): replace wado image loader with the new library (#3339) 2023-04-26 20:55:56 -04:00