@ExperimentalFoundationStyleApi
interface TransformOriginScope
An interface that introduces the transform origin properties to a Style receiver scope.
Functions
transformOriginX
fun transformOriginX(value: Float)
Offset percentage along the x-axis for which contents are rotated and scaled. The default value of 0.5f indicates the pivot point will be at the midpoint of the left and right bounds of the layer. Default value is TransformOrigin.Center.
Parameters
| value | The origin of the transform |
transformOriginY
fun transformOriginY(value: Float)
Offset percentage along the y-axis for which contents are rotated and scaled. The default value of 0.5f indicates the pivot point will be at the midpoint of the top and bottom bounds of the layer. Default value is TransformOrigin.Center.
Parameters
| value | The origin of the transform |