Skip to content

@jsvision/ui / ScrollerOptions

Interface: ScrollerOptions

Defined in: ui/src/scroll/scroller.ts:35

Construction options for Scroller.

Properties

content

content: View

Defined in: ui/src/scroll/scroller.ts:37

The oversized content view (clipped to the viewport, offset by -delta).


extent

extent: Size2D | (() => Size2D)

Defined in: ui/src/scroll/scroller.ts:39

The content's natural size = the scroll limit; a thunk is re-read each draw() for dynamic content.


scrollbars?

optional scrollbars?: ScrollbarsMode

Defined in: ui/src/scroll/scroller.ts:41

Which owned bars to create (default 'vertical').