Ellipse
Wrapper for the Figma Ellipse.
Props
Prop | Type | Default | Note |
---|---|---|---|
name | String | The name to be displayed in the Figma Layers List | |
arcData | ArcData | ||
style | Style | Not all props | |
onSelectionEnter | Function | Selection enter event callback | |
onSelectionLeave | Function | Selection leave event callback | |
onLayout | Function | Event is fired once the layout has been calculated | |
onNodeId | Fuction | Getting Figma Node ID callback |
Also, most of the EllipseNode fields are supported as props.
Example
<Ellipse
style={{ width: 200, height: 200, backgroundColor: '#c4c4c4' }}
arcData={{ startingAngle: 0, endingAngle: -Math.PI, innerRadius: 0.5 }}
/>