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
Parameter | Type | Description |
---|---|---|
el | string | Element | Vertex | Vertex id, element, or Vertex to get position for. |
Returns:
RectangleXY
A RectangleXY if element was found, otherwise null.