UNPKG

@joint/react

Version:

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

14 lines (13 loc) 451 B
/** * Custom hook to retrieve the graph instance from the graph store. * * Return JointJS graph instance from the graph store. * @see https://docs.jointjs.com/api/dia/Graph/ * @group Hooks * @returns The JointJS graph instance. * @example * ```tsx * const graph = useGraph() * ``` */ export declare function useGraph(): import("@joint/core").dia.Graph<import("@joint/core").dia.Graph.Attributes, import("@joint/core").dia.ModelSetOptions>;