LocationFunction: ((n, parentGroup?) => PointXY)

Defines a function that, given some vertex, can provide the x/y location of the vertex on the canvas. During a group layout, the second argument will contain the group that is being laid out, but when running the layout for the main canvas, parentGroup will not be provided.

Type declaration

    • (n, parentGroup?): PointXY
    • Parameters

      • n: Vertex
      • Optional parentGroup: Group

      Returns PointXY