Skip to content

EditorScrollInfo

Official

Scroll info for the editor

Import:

import type { EditorScrollInfo } from 'obsidian';

Signature:

export interface EditorScrollInfo

Properties

PropertyTypeDescription
clientHeightnumberThe height of the visible area of the editor.
clientWidthnumberThe width of the editor.
heightnumberThe height of the editor.
leftnumberThe horizontal scroll position.
topnumberThe vertical scroll position.
widthnumberThe total width of the scrollable content.