Skip to main content

Home > @jsplumbtoolkit/browser-ui-plugin-drawing-tools > DrawingToolsPlugin > getCoordinates

DrawingToolsPlugin.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.