Zoomable State
Properties
Determines whether the resulting scale and translation of pan and zoom gestures should be automatically applied to by Modifier.zoomable to its content. This can be disabled if your content prefers applying the transformations in a bespoke manner.
Alignment of the content.
Single source of truth for your content's aspect ratio. If you're using Modifier.zoomable() with Image() or other composables that also accept ContentScale, they should not be used to avoid any conflicts.
Transformations that should be applied to Modifier.zoomable's content.
The visual bounds of the content, calculated by applying the scale and translation of pan and zoom gestures to the value given to ZoomableState.setContentLocation. Useful for drawing decorations around the content or performing hit tests.
The content's current zoom as a fraction of its min and max allowed zoom factors.
The zoom spec passed to rememberZoomableState.
Functions
Zooms in or out around centroid by a ratio of zoomFactor relative to the current size, and suspends until it's finished.
Zooms in or out around centroid to achieve a final zoom level specified by zoomFactor, and suspends until it's finished.