-
Notifications
You must be signed in to change notification settings - Fork 299
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(core): Improve error handling for scaleOverlayTool (#1623)
- Added null checks for `imageData` and `dimensions` in `getViewportImageCornersInWorld` to prevent runtime errors when these properties are undefined. - Updated the linking documentation to provide a more comprehensive guide on linking Cornerstone libraries with OHIF for development. - Improved the `ScaleOverlayTool` by adding optional chaining for `editData` to avoid errors when accessing `annotation` and `viewport`.
- Loading branch information
Showing
3 changed files
with
100 additions
and
34 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