design_set_pattern_region
Set a pattern layer's clip region to bounds, rectangle, ellipse, or polygon so pattern rendering is constrained to the intended area.
Instructions
Set the clip region for a pattern layer. Supports bounds (full layer), rect, ellipse, and polygon regions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| region | Yes | Region object. Examples: {"type":"bounds"}, {"type":"rect","x":10,"y":10,"width":200,"height":200}, {"type":"ellipse","cx":150,"cy":150,"rx":100,"ry":80}, {"type":"polygon","points":[{"x":0,"y":0},{"x":200,"y":0},{"x":100,"y":200}]} | |
| layerId | Yes | The ID of the pattern layer. |