VicoScrollState

Houses information on a CartesianChart’s scroll value. Allows for scroll customization and programmatic scrolling.

Constructors

Link copied to clipboard
constructor(scrollEnabled: Boolean, initialScroll: Scroll.Absolute, autoScroll: Scroll, autoScrollCondition: AutoScrollCondition, autoScrollAnimationSpec: AnimationSpec<Float>)

Houses information on a CartesianChart’s scroll value. Allows for scroll customization and programmatic scrolling.

Properties

Link copied to clipboard

The maximum scroll value (in pixels).

Link copied to clipboard

The current scroll value (in pixels).

Functions

Link copied to clipboard
suspend fun animateScroll(scroll: Scroll, animationSpec: AnimationSpec<Float> = spring())

Triggers an animated scroll.

Link copied to clipboard
suspend fun scroll(scroll: Scroll)

Triggers a scroll.