set_arc
Adjust an ellipse's arc to create pie slices, gauges, or donut rings by setting starting angle, ending angle, and inner radius.
Instructions
Turn an ellipse into a pie slice / gauge or a ring / donut by setting its arc data. startingAngle / endingAngle are in radians and carve out the visible wedge (a full circle is 0 → 2π ≈ 6.28319; a half is π ≈ 3.14159); innerRadius is 0–1 of the radius (0 = a solid disc, > 0 = a ring with a hole, e.g. 0.6 for a donut or progress ring). Only ellipses have arc data. Pass any subset — omitted fields keep their current value. At least one is required. Returns { ok, nodeId }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | Figma node id (must be an ellipse) | |
| endingAngle | No | Arc end angle in radians | |
| innerRadius | No | Inner radius 0–1 of the outer radius (0 = solid disc, > 0 = ring / donut) | |
| startingAngle | No | Arc start angle in radians |