Editor.posAtCoords method
Editor › posAtCoords
Unofficial
Get the closest character position to the specified coordinates.Signature:
posAtCoords(x: number, y: number): EditorPositionParameters:
| Parameter | Type | Description |
|---|---|---|
| x | number | The x coordinate. |
| y | number | The y coordinate. |
Returns: EditorPosition — The closest character position to the specified coordinates.