Skip to content

Commit 63336f6

Browse files
committed
Remove commented-out code in WSIViewport for canvas position transformations
1 parent 57c88c5 commit 63336f6

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

packages/core/src/RenderingEngine/WSIViewport.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -628,15 +628,13 @@ class WSIViewport extends Viewport {
628628
return transform.transformPoint(
629629
canvasPos.map((it) => it * devicePixelRatio) as Point2
630630
);
631-
// return transform.transformPoint(canvasPos);
632631
};
633632

634633
protected indexToCanvas = (indexPos: Point2): Point2 => {
635634
const transform = this.getTransform();
636635
return transform
637636
.transformPoint(indexPos)
638637
.map((it) => it / devicePixelRatio) as Point2;
639-
// return transform.transformPoint(indexPos);
640638
};
641639

642640
/** This can be implemented later when multi-slice WSI is supported */

0 commit comments

Comments
 (0)