Interface EditorLayoutInfo

The internal layout details of the editor.

interface EditorLayoutInfo {
    contentLeft: number;
    contentWidth: number;
    decorationsLeft: number;
    decorationsWidth: number;
    glyphMarginDecorationLaneCount: number;
    glyphMarginLeft: number;
    glyphMarginWidth: number;
    height: number;
    horizontalScrollbarHeight: number;
    isViewportWrapping: boolean;
    isWordWrapMinified: boolean;
    lineNumbersLeft: number;
    lineNumbersWidth: number;
    minimap: EditorMinimapLayoutInfo;
    overviewRuler: OverviewRulerPosition;
    verticalScrollbarWidth: number;
    viewportColumn: number;
    width: number;
    wrappingColumn: number;
}

Properties

contentLeft: number

Left position for the content (actual text)

contentWidth: number

The width of the content (actual text)

decorationsLeft: number

Left position for the line decorations.

decorationsWidth: number

The width of the line decorations.

glyphMarginDecorationLaneCount: number

The number of decoration lanes to render in the glyph margin.

glyphMarginLeft: number

Left position for the glyph margin.

glyphMarginWidth: number

The width of the glyph margin.

height: number

Full editor height.

horizontalScrollbarHeight: number

The height of the horizontal scrollbar.

isViewportWrapping: boolean
isWordWrapMinified: boolean
lineNumbersLeft: number

Left position for the line numbers.

lineNumbersWidth: number

The width of the line numbers.

Layout information for the minimap

overviewRuler: OverviewRulerPosition

The position of the overview ruler.

verticalScrollbarWidth: number

The width of the vertical scrollbar.

viewportColumn: number

The number of columns (of typical characters) fitting on a viewport line.

width: number

Full editor width.

wrappingColumn: number