Skip to content

Commit

Permalink
refactor: Update extractWindowLevelRegionToolData argument types
Browse files Browse the repository at this point in the history
Use exported IVolumeViewport and IStackViewport
  • Loading branch information
jmannau committed Dec 12, 2024
1 parent f6a5962 commit 2c7d840
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common/reviews/api/tools.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -2462,7 +2462,7 @@ declare namespace EventTypes_2 {
function extend2DBoundingBoxInViewAxis(boundsIJK: [Types_2.Point2, Types_2.Point2, Types_2.Point2], numSlicesToProject: number): [Types_2.Point2, Types_2.Point2, Types_2.Point2];

// @public (undocumented)
function extractWindowLevelRegionToolData(viewport: VolumeViewport | StackViewport): {
function extractWindowLevelRegionToolData(viewport: Types_2.IVolumeViewport | Types_2.IStackViewport): {
scalarData: Types_2.PixelDataTypedArray;
minPixelValue: number;
maxPixelValue: number;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
} from '@cornerstonejs/core';

function extractWindowLevelRegionToolData(
viewport: VolumeViewport | StackViewport
viewport: Types.IVolumeViewport | Types.IStackViewport
) {
if (viewport instanceof VolumeViewport) {
return extractImageDataVolume(viewport);
Expand Down

0 comments on commit 2c7d840

Please sign in to comment.