Find the character nearest to a document position. Exact hits win; otherwise the closest character within hitTestMargin (document units) is used.
hitTestMargin
The point to process.
The pages to process, in document order.
The hitTestMargin value (number).
The resolved SelectionPoint or null.
null
Find the character nearest to a document position. Exact hits win; otherwise the closest character within
hitTestMargin(document units) is used.