VicoScrollState
constructor(scrollEnabled: Boolean = true, initialScroll: Scroll.Absolute = Scroll.Absolute.Start, autoScroll: Scroll = initialScroll, autoScrollCondition: AutoScrollCondition = AutoScrollCondition.Never, autoScrollAnimationSpec: AnimationSpec<Float> = spring(), xSnapStep: Double? = null, snapAnimationSpec: AnimationSpec<Float> = spring())
Houses information on a CartesianChart’s scroll value. Allows for scroll customization and programmatic scrolling.
Parameters
scrollEnabled
whether scroll is enabled.
initialScroll
represents the initial scroll value.
autoScroll
represents the scroll value or delta for automatic scrolling.
autoScrollCondition
defines when an automatic scroll should occur.
autoScrollAnimationSpec
the AnimationSpec for automatic scrolling.
xSnapStep
if not null, the scroll will snap to multiples of this x-axis step after the user stops scrolling.
snapAnimationSpec
the AnimationSpec for snap scrolling.