Function: useSigmaContext()
useSigmaContext<
N,E,G>():SigmaContextInterface<N,E,G>
Defined in: packages/core/src/hooks/context.ts:35
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>