Skip to content

Cm5Viewport

Unofficial

The currently rendered viewport range in a CodeMirror 5 editor.

Import:

import type { Cm5Viewport } from '@obsidian-typings/obsidian-public-latest';

Signature:

export interface Cm5Viewport

Properties

Property Type Description
from number The start line of the viewport (inclusive).
to number The end line of the viewport (exclusive).

Links to this page: