remember Zoomable State
fun rememberZoomableState(minScale: Float = 1.0f, maxScale: Float = Float.MAX_VALUE, initialTranslateX: Float = 0.0f, initialTranslateY: Float = 0.0f): ZoomableState
Create a ZoomableState that is remembered across compositions.
Changes to the provided values for minScale and maxScale will not result in the state being recreated or changed in any way if it has already been created.
Parameters
min Scale
the minimum scale value for ZoomableState.minScale
max Scale
the maximum scale value for ZoomableState.maxScale
initial Translate X
initial horizontal offset
initial Translate Y
initial vertical offset