get rect() {
const offset = { top: $scrollView.scrollTop(), left: $scrollView.scrollLeft() };
const topLeft = displayMode.pageToWindow({ x: annotation.X, y: annotation.Y }, annotation.PageNumber - 1);
const bottomRight = displayMode.pageToWindow({ x: annotation.X + annotation.Width, y: annotation.Y + annotation.Height }, annotation.PageNumber - 1);
return {
x: topLeft.x,
y: topLeft.y - offset.top,
width: bottomRight.x - topLeft.x,
height: (bottomRight.y - offset.top) - (topLeft.y - offset.top),
};
},