Neo4j Visualization Library
    Preparing search index...

    Type Alias NodeWithClientPosition

    NodeWithClientPosition: Node & Point & { clientPosition: Point }

    A node returned by NVL.getNodes with layout coordinates and screen position. x and y are layout space; clientPosition is in CSS pixels relative to the top-left corner of the container.

    Type Declaration

    • clientPosition: Point

      Screen position in CSS pixels, relative to the top-left corner of the container.

    clientPosition = ((x, y) - pan) * zoom / devicePixelRatio + containerSize / 2, with pan from NVL.getPan and zoom from NVL.getScale.