CropParams
cropParams selects a rectangular region from the source asset before the element is composed.
interface CropParams {
x: number;
y: number;
width: number;
height: number;
}
| Property | Required | Notes |
|---|---|---|
x | Yes | Left edge of the crop region. |
y | Yes | Top edge of the crop region. |
width | Yes | Crop region width. |
height | Yes | Crop region height. |
Values are measured in pixels and must stay within plan limits.
Example
{
"cropParams": {
"x": 100,
"y": 50,
"width": 800,
"height": 600
}
}