rememberJchuZoomState

fun rememberJchuZoomState(@FloatRange(from = 1.0) maxScale: Float = 5.0f, contentSize: Size = Size.Zero, velocityDecay: DecayAnimationSpec<Float> = exponentialDecay()): JchuZoomState

Creates a JchuZoomState that is remembered across compositions.

Parameters

maxScale

The maximum scale of the content.

contentSize

Size of content (i.e. image size.) If Zero, the composable layout size will be used as content size.

velocityDecay

The decay animation spec for fling behaviour.