Skip to content

Commit

Permalink
Merge branch 'master' into fix-bounding-box
Browse files Browse the repository at this point in the history
  • Loading branch information
helmut-hoffer-von-ankershoffen authored Nov 13, 2024
2 parents d8b2393 + 2cf1e62 commit 37071d8
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/bulkAnnotations/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,12 @@ export const getFeaturesFromBulkAnnotations = ({

const { topLeft, bottomRight } = getViewportBoundingBox({ view, pyramid, affine })

const cachedAffine = getAffineBasedOnPyramidLevel({
affine,
pyramid,
annotationGroup
})

const features = []

for (
Expand All @@ -470,11 +476,7 @@ export const getFeaturesFromBulkAnnotations = ({
if (annotationCoordinateType === '2D') {
firstCoordinate = mapPixelCoordToSlideCoord({
point: [firstCoordinate[0], firstCoordinate[1]],
affine: getAffineBasedOnPyramidLevel({
affine,
pyramid,
annotationGroup
})
affine: cachedAffine
})
}

Expand Down

0 comments on commit 37071d8

Please sign in to comment.