UNPKG

jointjs

Version:

JavaScript diagramming library

22 lines (18 loc) 703 B
<p>The <code>'rectangle'</code> connection point function places the connection point at the intersection between the link path end segment and the element's unrotated bbox. It accepts one additional argument, which can be passed within the <code>connectionPoint.args</code> property:</p> <table> <tr> <th>stroke</th> <td><i>boolean</i></td> <td>Should the stroke width be included when calculating the connection point? Default is <code>false</code>.</td> </tr> </table> <p>Example:</p> <pre><code>link.source(model, { connectionPoint: { name: 'rectangle', args: { offset: 10, stroke: true } } });</code></pre>