TransformOriginScope

Known direct subclasses
LayerStyleScope

This interface is deprecated. This scope type is being removed.

Known indirect subclasses
StyleScope

This interface is deprecated. This scope type is being removed.


An interface that introduces the transform origin properties to a Style receiver scope.

See also
StyleScope

Summary

Public functions

Unit

This function is deprecated. This scope type is being removed.

Cmn
Unit

This function is deprecated. This scope type is being removed.

Cmn

Extension functions

Unit

This function is deprecated. This style property is being removed.

Cmn

Public functions

transformOriginX

fun transformOriginX(value: Float): Unit

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: Float

The origin of the transform

transformOriginY

fun transformOriginY(value: Float): Unit

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: Float

The origin of the transform

Extension functions

TransformOriginScope.transformOrigin

@ExperimentalFoundationStyleApi
fun TransformOriginScope.transformOrigin(value: TransformOrigin): Unit

Offset percentage along the x and y-axis for which contents are rotated and scaled. The default value of 0.5f, 0.5f indicates the pivot point will be at the midpoint of the left and right as well as the top and bottom bounds of the layer. Default value is TransformOrigin.Center.

Parameters
value: TransformOrigin

The origin of the transform