UNPKG

jointjs

Version:

JavaScript diagramming library

3 lines 341 B
<pre class="docs-method-signature"><code>util.getElementBBox(el)</code></pre><p>Return a bounding box of the element <code>el</code>. The advantage of this method is that it can handle both HTML and SVG elements. The resulting object is of the form <code>{ x: Number, y: Number, width: Number, height: Number }</code>. </p>