Function: useSigmaContext()
useSigmaContext<
N
,E
,G
>():SigmaContextInterface
<N
,E
,G
>
React hook that store the sigma and html container reference.
const {sigma, container} = useSigmaContext();
See [[SigmaContextInterface]] for more information.
Type Parameters
• N extends Attributes
= Attributes
• E extends Attributes
= Attributes
• G extends Attributes
= Attributes
Returns
SigmaContextInterface
<N
, E
, G
>