Practic Force Directed - v1.0.0
    Preparing search index...
    • Place every label of a ForceGraphLabels layer centred beneath its node each frame, showing it only while the node is drawn large enough for its label to belong to it, and hiding labels of nodes behind the camera.

      Parameters

      • props: {
            labels: ForceGraphSceneLabel[];
            layerRef: RefObject<HTMLDivElement | null>;
            minNodePixels?: number;
            nodeSize?: number;
            offset?: number;
        }

        Placer properties.

        • labels: ForceGraphSceneLabel[]

          Labels in the order the layer renders them.

        • layerRef: RefObject<HTMLDivElement | null>

          Label layer laid over the canvas.

        • OptionalminNodePixels?: number

          Width, in pixels, a node must be drawn at for its label to show.

        • OptionalnodeSize?: number

          Size of a node in scene units, as drawn by the geometries.

        • Optionaloffset?: number

          How many node sizes a label hangs below its node's centre.

      Returns null