Practic Force Directed - v1.0.0
    Preparing search index...
    • Show where a node sits: read only for a clicked node, and for a double-clicked one following it while it is dragged and letting it be labelled. Pinned, it stays open across selections and reloads.

      Parameters

      • props: {
            editable: boolean;
            labels: ForceGraphNodePanelLabels;
            node: ForceGraphNode3D | undefined;
            onLabelChange?: (nodeId: string, label: string) => void;
            onOpenChange: (open: boolean) => void;
            open: boolean;
            pinKey?: string;
            position: ForceGraphPosition | undefined;
        }

        Node panel properties.

        • editable: boolean

          Whether the node was double-clicked, so its label can be changed.

        • labels: ForceGraphNodePanelLabels

          Texts of the panel.

        • node: ForceGraphNode3D | undefined

          Shown node, or nothing before one is clicked.

        • OptionalonLabelChange?: (nodeId: string, label: string) => void

          Receives the node's id and its new label; only an editable node can be labelled.

        • onOpenChange: (open: boolean) => void

          Called when the panel opens or closes.

        • open: boolean

          Whether the panel is open.

        • OptionalpinKey?: string

          Storage key the panel keeps its pin under; without one, the pin lasts while it is mounted.

        • position: ForceGraphPosition | undefined

          Coordinates shown, which run ahead of the node's stored ones while it is dragged.

      Returns Element