UNPKG

@joint/react

Version:

React bindings and hooks for JointJS to build interactive diagrams and graphs.

11 lines (10 loc) 359 B
import { type StoreContext } from '../context/graph-store-context'; /** * Custom hook to use a JointJS graph store. * It retrieves the graph from the GraphContext. * @group Hooks * @internal * @returns The JointJS graph store. * @throws An error if the hook is used outside of a GraphProvider. */ export declare function useGraphStore(): StoreContext;