Function: useSigmaContext()
useSigmaContext<
N,E,G,NS,ES,GS,P>():SigmaContextInterface<N,E,G,NS,ES,GS,P>
Defined in: packages/core/src/hooks/context.ts:40
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
• NS = unknown
• ES = unknown
• GS = unknown
• P extends PrimitivesDeclaration = PrimitivesDeclaration
Returns
SigmaContextInterface<N, E, G, NS, ES, GS, P>