Skip to content

Cm5ScrollInfo

Unofficial

Scroll position information for a CodeMirror 5 editor.

Import:

import type { Cm5ScrollInfo } from '@obsidian-typings/obsidian-catalyst-latest';

Signature:

export interface Cm5ScrollInfo

Properties

PropertyTypeDescription
clientHeightnumberThe visible area height (minus scrollbars).
clientWidthnumberThe visible area width (minus scrollbars).
heightnumberTotal scrollable height.
leftnumberCurrent horizontal scroll position.
topnumberCurrent vertical scroll position.
widthnumberTotal scrollable width.

Links to this page: