caretPositionFromPoint method

JSObject? caretPositionFromPoint(
  1. num x,
  2. num y, [
  3. CaretPositionFromPointOptions options
])

The caretPositionFromPoint() method of the Document interface returns a CaretPosition object, containing the DOM node, along with the caret and caret's character offset within that node.

Implementation

external JSObject? caretPositionFromPoint(
  num x,
  num y, [
  CaretPositionFromPointOptions options,
]);