Function: getAnnotationNearPoint()
getAnnotationNearPoint(
element
,canvasPoint
,proximity
):Annotation
|null
Get the annotation that is close to the provided canvas point, it will return the first annotation that is found.
Parameters
• element: HTMLDivElement
The element to search for an annotation on.
• canvasPoint: Point2
The canvasPoint on the page where the user clicked.
• proximity: number
= 5
The distance from the canvasPoint to the annotation.
Returns
Annotation
| null
The annotation for the element