How i can get the box matrix in Compose Multiplatf...
# compose
a
How i can get the box matrix in Compose Multiplatform ? I need to perform some transformation on it.
Copy code
Box(
    modifier = Modifier
        .fillMaxSize()
        .padding(getPaddingSize(scrollDirection))
        .graphicsLayer {
            scaleX = scale
            scaleY = scale
        }
i
There is no public API to do it. Also, implementation differs between Multiplatform and Android. Use
graphicsLayer
to modify transformations. Also mapping functions are available to convert local/parent coordinates based on this matrix.
a
116 Views