> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stac.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Clip

> Documentation for Clip

# Clip

The `clipBehavior` property determines how the content outside the box is handled:

| Value                    | Description                                                                      |
| ------------------------ | -------------------------------------------------------------------------------- |
| `none`                   | No clipping is applied (default).                                                |
| `hardEdge`               | Clips the content without anti-aliasing.                                         |
| `antiAlias`              | Clips the content with anti-aliasing for smoother edges.                         |
| `antiAliasWithSaveLayer` | Clips the content with anti-aliasing and saves an offscreen buffer for painting. |

## Example

<CodeGroup>
  ```dart Dart theme={null}
  StacFittedBox(clipBehavior: StacClip.hardEdge)
  ```

  ```json JSON theme={null}
  {
    "type": "fittedBox",
    "clipBehavior": "hardEdge"
  }
  ```
</CodeGroup>
