Skip to main content

Clip

The clipBehavior property determines how the content outside the box is handled:
ValueDescription
noneNo clipping is applied (default).
hardEdgeClips the content without anti-aliasing.
antiAliasClips the content with anti-aliasing for smoother edges.
antiAliasWithSaveLayerClips the content with anti-aliasing and saves an offscreen buffer for painting.

Example JSON

{
  "type": "fittedBox",
  "clipBehavior": "hardEdge"
}
I