Skip to content

Editor.posAtCoords method

Editor › posAtCoords

Unofficial

Get the closest character position to the specified coordinates.

Signature:

posAtCoords(x: number, y: number): EditorPosition

Parameters:

Parameter Type Description
x number The x coordinate.
y number The y coordinate.

Returns: EditorPositionThe closest character position to the specified coordinates.