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

Property Type Description
clientHeight number The visible area height (minus scrollbars).
clientWidth number The visible area width (minus scrollbars).
height number Total scrollable height.
left number Current horizontal scroll position.
top number Current vertical scroll position.
width number Total scrollable width.

Links to this page: