Signature
Interface UseRangeScrollbarResultProperties
| Name | Signature | Description |
|---|---|---|
domainSpan | domainSpan: number | Full domain span, equal to `max - min` when positive. |
max | max: number | Maximum value in the full scrollable domain. |
min | min: number | Minimum value in the full scrollable domain. |
minSpan | minSpan: number | Smallest allowed visible range span after clamping to the domain span. |
panBy | (delta: number, details?: RangeScrollbarValueChangeDetails): void | Requests a pan by a domain-unit delta while preserving the current span. |
rangeSpan | rangeSpan: number | Visible range span, equal to `value.end - value.start`. |
resizeBy | (side: RangeScrollbarHandleSide, delta: number, details?: RangeScrollbarValueChangeDetails): void | Requests a resize by moving one side by a domain-unit delta. |
setValue | (value: RangeScrollbarValue, details?: RangeScrollbarValueChangeDetails): void | Requests an explicit visible range. |
thumbLeftPercent | thumbLeftPercent: number | CSS percent offset for the visible range thumb. |
thumbOffsetPercent | thumbOffsetPercent: number | CSS percent offset for the visible range thumb on the active axis. |
thumbSizePercent | thumbSizePercent: number | CSS percent size for the visible range thumb on the active axis. |
thumbWidthPercent | thumbWidthPercent: number | CSS percent width for the visible range thumb. |
value | value: RangeScrollbarValue | Controlled visible range after clamping to the domain. |