@xyflow/react
Version:
React Flow - A highly customizable React library for building node-based editors and interactive flow charts.
14 lines • 523 B
TypeScript
import type { InternalNode } from '../../types';
/**
* Hook to handle the resize observation + internal updates for the passed node.
*
* @internal
* @returns nodeRef - reference to the node element
*/
export declare function useNodeObserver({ node, nodeType, hasDimensions, resizeObserver, }: {
node: InternalNode;
nodeType: string;
hasDimensions: boolean;
resizeObserver: ResizeObserver | null;
}): import("react").MutableRefObject<HTMLDivElement | null>;
//# sourceMappingURL=useNodeObserver.d.ts.map