zoomBy
Source set: Common
@Deprecated(message = "Maintained for binary compatibility", level = DeprecationLevel.HIDDEN)
public suspend fun TransformableState.zoomBy(zoomFactor: Float): Unit
Zoom without animation by a ratio of zoomFactor over the current size and suspend until it's set.
Parameters
| zoomFactor | ratio over the current size by which to zoom |
zoomBy
Source set: Common
public suspend fun TransformableState.zoomBy(
zoomFactor: Float,
centroid: Offset = Offset.Unspecified,
): Unit
Zoom without animation by a ratio of zoomFactor over the current size and suspend until it's set.
Parameters
| zoomFactor | ratio over the current size by which to zoom |
| centroid | the Offset around which the zoom should occur, if any. The default value is Offset.Unspecified, which leaves the behavior up to the implementation of the TransformableState. |