Skip to content

Viewport

Defined in: core/src/layout/window.ts:17

The visible part of the chart (glossary: Viewport): the scroller’s scroll offsets and its client size, in CSS pixels, as the renderer reads them from the scroll container. The sticky header covers the top headerHeight pixels of it.

readonly height: number

Defined in: core/src/layout/window.ts:25

Height of the viewport, header included.


readonly scrollLeft: number

Defined in: core/src/layout/window.ts:19

Horizontal scroll offset: the time scale x at the left edge of the viewport.


readonly scrollTop: number

Defined in: core/src/layout/window.ts:21

Vertical scroll offset: the body y at the bottom edge of the sticky header.


readonly width: number

Defined in: core/src/layout/window.ts:23

Width of the viewport.