Practic Force Directed - v1.0.0
    Preparing search index...
    • Edit the selected link's label, color, curve and animation, reverse its direction, or remove it.

      Parameters

      • props: {
            graph: ForceGraphCoords3DRes;
            index: number;
            labels: LinkEditorLabels;
            onDelete: () => void;
            onReverse: () => void;
            setGraph: NodesGraphSetGraph;
            themeColor: string;
        }

        Link editor properties.

        • graph: ForceGraphCoords3DRes

          Current graph content.

        • index: number

          Index of the link being edited.

        • labels: LinkEditorLabels

          Texts of the editor.

        • onDelete: () => void

          Called after the link is removed.

        • onReverse: () => void

          Called after the link is reversed, so the selection can follow it.

        • setGraph: NodesGraphSetGraph

          Updates the persisted graph content.

        • themeColor: string

          Color shown for a link without its own.

      Returns Element | null