UNPKG

jointjs

Version:

JavaScript diagramming library

5 lines (3 loc) 398 B
<pre class="docs-method-signature"><code>g.Rect(x, y, width, height)</code></pre> <p>Return a new rectangle object with top left corner at point with coordinates <code>x</code>, <code>y</code> and dimensions <code>width</code> and <code>height</code>.</p> <p>Also accepts a single argument in the form of an object <code>{ x: [number], y: [number], width: [number], height: [number] }</code>.</p>