@react-sigma/layout-circular
Hook
useLayoutCircular
▸ useLayoutCircular(settings?
): Object
React hook that helps you to manage circle layout.
const { positions, assign } = useLayoutCircular(...);
Parameters
Name | Type |
---|---|
settings? | CircularLayoutOptions |
Returns
Object
Name | Type |
---|---|
assign | () => void |
positions | () => { [node: string] : { [dimension: string] : number ; }; } |