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