TransformScope


Scope used for suspending transformation operations

Summary

Public functions

Unit
transformBy(zoomChange: Float, panChange: Offset, rotationChange: Float)

This function is deprecated. Prefer calling the version of transformBy by that takes a centroid Offset, especially if the zooming or rotation should happen around a particular point.

Cmn
open Unit
transformBy(
    centroid: Offset,
    zoomChange: Float,
    panChange: Offset,
    rotationChange: Float
)

Attempts to transform by zoomChange in relative multiplied value, by panChange in pixels and by rotationChange in degrees.

Cmn

Public functions

transformBy

fun transformBy(
    zoomChange: Float = 1.0f,
    panChange: Offset = Offset.Zero,
    rotationChange: Float = 0.0f
): Unit

Attempts to transform by zoomChange in relative multiplied value, by panChange in pixels and by rotationChange in degrees.

Parameters
zoomChange: Float = 1.0f

scale factor multiplier change for zoom

panChange: Offset = Offset.Zero

panning offset change, in Offset pixels

rotationChange: Float = 0.0f

change of the rotation in degrees

transformBy

open fun transformBy(
    centroid: Offset,
    zoomChange: Float = 1.0f,
    panChange: Offset = Offset.Zero,
    rotationChange: Float = 0.0f
): Unit

Attempts to transform by zoomChange in relative multiplied value, by panChange in pixels and by rotationChange in degrees.

Parameters
centroid: Offset

the centroid around which the transformation is occurring. This may be Offset.Unspecified if the transformation is not associated with any centroid.

zoomChange: Float = 1.0f

scale factor multiplier change for zoom

panChange: Offset = Offset.Zero

panning offset change, in Offset pixels

rotationChange: Float = 0.0f

change of the rotation in degrees