If you have an item you need to fit into a shape, you can achieve this by
Mask on it.
Example: Masking other content
You can compose images with other content (like images or videos) to produce different shapes like rounded rectangles or circles.
Example: Adding a wash
If you expect the masked content to be nearly white, you can apply a wash to emphasize the edge of the mask.
If you want to turn off the
willChange:transform property for rendering reasons, you can set this to false.