-
Notifications
You must be signed in to change notification settings - Fork 337
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(tools): CrosshairsTool and viewport functionality with documentat…
…ion updates (#1562) * Core: Update ImageVolume load method and refactor imports - Made the `callback` parameter in `ImageVolume.load` method optional - Refactored import statements in `BaseStreamingImageVolume.ts` for better readability and separation of concerns - Removed registration of unknown volume loader in `cornerstoneStreamingImageVolumeLoader.ts` - Updated `volumeLoader.ts` to handle the unknown volume loader using `cornerstoneStreamingImageVolumeLoader` - Cleaned up package exports in `wadors/index.ts` and `wadouri/index.ts` to allow named exports - Removed unused UMD export path from `dicomImageLoader/package.json` * fix playwright * docs * fix * RenderingEngine: Refactor volume actor retrieval and VOI range calculation - Simplified the retrieval of the volume actor by directly finding the actor entry using the volume ID - Removed unnecessary mapping and filtering of actors to obtain VOI ranges - Streamlined the logic for determining the VOI range based on the volume's RGB transfer function - Ensured that the code handles cases where the volume actor is not found by returning early * CrosshairsTool: Refactor computeToolCenter method - Renamed computeToolCenter to _computeToolCenter to indicate a private method - Updated all references to computeToolCenter to use the new _computeToolCenter name - Added a new computeToolCenter method that retrieves viewportsInfo and calls _computeToolCenter - Ensured consistency in method naming for better code readability and maintainability * api * Testing: Remove custom headers and refactor image comparison in tests - Removed `Cross-Origin-Opener-Policy` and `Cross-Origin-Embedder-Policy` custom headers from `karma.conf.js` to simplify configuration - Eliminated the use of `setTimeout` in `stackSegmentation_test.js` to streamline the image comparison process - Directly compared images using `compareImages` for more efficient test execution - Cleaned up code in `jpegLossless.js` by removing unnecessary export statement
- Loading branch information
Showing
8 changed files
with
64 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2059,5 +2059,3 @@ | |
[6] | ||
)(6); | ||
}); | ||
|
||
export default JpegImage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters