Skip to content

@serenity-is/sleekgrid / ViewRange

Interface: ViewRange

Defined in: src/core/viewrange.ts:5

Describes the current view/buffer window that is (or should be) rendered. Row bounds are view indices; column bounds are pixel offsets into the virtual canvas.

Properties

bottom?

optional bottom: number

Defined in: src/core/viewrange.ts:9

Bottom row index of the range (exclusive or inclusive depending on caller; typically exclusive).


leftPx?

optional leftPx: number

Defined in: src/core/viewrange.ts:11

Left pixel offset of the visible buffer window.


rightPx?

optional rightPx: number

Defined in: src/core/viewrange.ts:13

Right pixel offset of the visible buffer window.


top?

optional top: number

Defined in: src/core/viewrange.ts:7

Top row index of the range (inclusive).