Skip to content

Cm5Editor.heightAtLine method

Cm5Editor › heightAtLine

Unofficial

Computes the height of the top of a line.

Signature:

heightAtLine(line: number | Cm5LineHandle, mode?: Cm5CoordsMode, includeWidgets?: boolean): number

Parameters:

ParameterTypeDescription
linenumber | Cm5LineHandleThe line number or handle.
mode?Cm5CoordsModeThe coordinate system.
includeWidgets?booleanWhether to include line widgets.

Returns: number — The height in pixels.