set_magnets
Define connection points on a shape by setting magnet positions. Magnets specify where lines attach relative to the shape's center.
Instructions
Set magnet (connection) points on a shape. Magnets define where lines can attach.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Shape ID | |
| magnets | Yes | Magnet positions relative to shape center. Use (0, -0.5) for top, (0, 0.5) for bottom, (-0.5, 0) for left, (0.5, 0) for right. |