Practic Force Directed - v1.0.0
    Preparing search index...
    • Take what reaches the graph's background rather than a node or link: a click clears the selection, a double-click adds a node, and a drag with Shift held draws a selection box (a drag without it pans the view instead).

      Parameters

      • props: {
            onAdd: (x: number, y: number) => void;
            onClear: () => void;
            onSelectArea: (area: Box2) => void;
        }

        Background properties.

        • onAdd: (x: number, y: number) => void

          Called with the world point the background was double-clicked at.

        • onClear: () => void

          Called when the background is clicked.

        • onSelectArea: (area: Box2) => void

          Called with the area a selection box covered, in world coordinates.

      Returns Element