UNPKG

@joint/react

Version:

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

36 lines (35 loc) 1.2 kB
import { type GraphProps, type PaperProps } from '../components'; /** * This wrapper is used to render a graph provider. * It is used in the tests to render a graph provider. * @param props - The props for the graph provider. * @returns - The wrapper. * @internal * @group utils * @description * This wrapper is used to render a graph provider. */ export declare function graphProviderWrapper(props: GraphProps): React.JSXElementConstructor<{ children: React.ReactNode; }>; interface Options { paperProps?: PaperProps; graphProps?: GraphProps; } /** * This wrapper is used to render a paper with a graph provider. * It is used in the tests to render a paper with a graph provider. * @param options - The options for the wrapper. * @param options.paperProps - The props for the paper. * @param options.graphProps - The props for the graph provider. * @returns - The wrapper. * @internal * @group utils */ export declare function paperRenderElementWrapper(options: Options): React.JSXElementConstructor<{ children: React.ReactNode; }>; export declare const simpleRenderElementWrapper: import("react").JSXElementConstructor<{ children: React.ReactNode; }>; export {};