Function: useSetSettings()
useSetSettings<
N
,E
,G
>(): (newSettings
) =>void
React hook that helps you to update Sigma’s settings.
const setSettings = useSetSettings();
...
useEffect(() => {
setSettings({
hideEdgesOnMove: true,
hideLabelsOnMove: true,
});
}, []);
Type Parameters
• N extends Attributes
= Attributes
• E extends Attributes
= Attributes
• G extends Attributes
= Attributes
Returns
Function
Parameters
• newSettings: Partial
<Settings
<N
, E
, G
>>
Returns
void