Skip to main content

Home > @jsplumbtoolkit/browser-ui > Surface > getPosition

Surface.getPosition() method#

Gets the position of the given vertex, null if no matching vertex found.

Signature:

getPosition(el: string | Element | Node | Group): PointXY | null;

Parameters#

ParameterTypeDescription
elstring | Element | Node | GroupNode/Group, vertex id, or DOM element representing a vertex.

Returns:

PointXY | null