A React component that creates a static picture of a graph using NVL. This component is useful for generating static visualizations of graphs without requiring user interaction. The component automatically fits all nodes in the viewport before capturing the image NVL is automatically destroyed after capturing the image to free up resources.

<StaticPictureWrapper
nodes={nodes}
rels={relationships}
width={500}
height={500}
/>
  • Parameters

    Returns null | Element

    An img element displaying the graph visualization, or null during rendering