Skip to content

Cm5Editor.charCoords method

Cm5Editor › charCoords

Unofficial

Returns the coordinates for a character position.

Signature:

charCoords(pos: Position, mode?: Cm5CoordsMode | undefined): Cm5EditorCharCoords

Parameters:

ParameterTypeDescription
posPositionThe character position.
mode?Cm5CoordsMode | undefinedThe coordinate system to use.

Returns: Cm5EditorCharCoordsAn object with left, right, top, and bottom properties.