Is it possible to make clipping occur with a certa...
# compose
o
Is it possible to make clipping occur with a certain offset from the measured rectangle? Looking at the
GraphicsLayerScope
, but there is no suitable property as far as I understand. It creates outline for clipping based on the
measuredSize
and I don’t see any way to influence that… It would be nice to have something like
clipInsets
property in the scope, which would be taken into account to calculate clip rectangle. I understand I can use another node around with some padding, but I’d like to do it via
Modifier
a
if I understood it correctly you can create your own Shape which would return a rectangle with (offsetX, offsetY, measuredWidth+offsetX, measuredHeight+offsetY)
☝️ 1