Skip to main content

Home > @jsplumbtoolkit/core > LocationFunction

LocationFunction type

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.

Signature:

export declare type LocationFunction = (n: Vertex, parentGroup?: Group) => PointXY;

References: Vertex, Group