diff --git a/src/bulkAnnotations/utils.js b/src/bulkAnnotations/utils.js index 41824e4..32c66c8 100644 --- a/src/bulkAnnotations/utils.js +++ b/src/bulkAnnotations/utils.js @@ -468,6 +468,12 @@ export const getFeaturesFromBulkAnnotations = ({ const { topLeft, bottomRight } = getViewportBoundingBox({ view, pyramid, affine }) + const affine = getAffineBasedOnPyramidLevel({ + affine, + pyramid, + annotationGroup + }) + const features = [] for ( @@ -492,11 +498,7 @@ export const getFeaturesFromBulkAnnotations = ({ if (annotationCoordinateType === '2D') { firstCoordinate = mapPixelCoordToSlideCoord({ point: [firstCoordinate[0], firstCoordinate[1]], - affine: getAffineBasedOnPyramidLevel({ - affine, - pyramid, - annotationGroup - }) + affine: affine }) }