Skip to main content

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

Surface.getCoordinates() method#

Gets the origin and size of an element that is being managed by the Surface.

Signature:

getCoordinates(el: string | Element | Vertex): RectangleXY;

Parameters#

ParameterTypeDescription
elstring | Element | VertexVertex id, element, or Vertex to get position for.

Returns:

RectangleXY

A RectangleXY if element was found, otherwise null.