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. Defaults to Alignment.Center.
Padding around the zoomable content within the viewport. This will add padding for the. content after it has been clipped, which is not possible via Modifier.padding.
Single source of truth for your content's aspect ratio. Defaults to ContentScale.Fit.
Transformations that should be applied to Modifier.zoomable's content.
Modifier.zoomable()'s coordinate system for representing spatial offsets in CoordinateSpace.Viewport and CoordinateSpace.ZoomableContent.
Whether any zoom, pan (or both) animation is in progress.
The visual bounds of the content with user zoom and pan. This is calculated by applying contentScale and contentAlignment to the value passed to ZoomableState.setContentLocation. This property is intended for drawing decorations around the content or for performing hit tests.
The content's current zoom as a fraction of its min and max allowed zoom limits. Also see: ZoomableContentTransformation.scale and ZoomableContentTransformation.scaleMetadata.
The zoom spec passed to rememberZoomableState.
Functions
Animate pan by offset in pixels and suspend until it's finished.
See panBy.
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 by a ratio of zoomFactor, using focal to determine how the zoom should be anchored, and suspends until the animation (if any) is finished.
Zooms in or out around centroid to achieve a final zoom level specified by zoomFactor, and suspends until it's finished.
Zooms in or out to the specified zoomFactor, using focal to determine how the zoom should be anchored, and suspends until the animation (if any) is finished.