We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 628555a commit 2cf1e62Copy full SHA for 2cf1e62
src/bulkAnnotations/utils.js
@@ -468,6 +468,12 @@ export const getFeaturesFromBulkAnnotations = ({
468
469
const { topLeft, bottomRight } = getViewportBoundingBox({ view, pyramid, affine })
470
471
+ const cachedAffine = getAffineBasedOnPyramidLevel({
472
+ affine,
473
+ pyramid,
474
+ annotationGroup
475
+ })
476
+
477
const features = []
478
479
for (
@@ -492,11 +498,7 @@ export const getFeaturesFromBulkAnnotations = ({
492
498
if (annotationCoordinateType === '2D') {
493
499
firstCoordinate = mapPixelCoordToSlideCoord({
494
500
point: [firstCoordinate[0], firstCoordinate[1]],
495
- affine: getAffineBasedOnPyramidLevel({
496
- affine,
497
- pyramid,
- annotationGroup
- })
501
+ affine: cachedAffine
502
})
503
}
504
0 commit comments