jointjs
Version:
JavaScript diagramming library
6 lines (4 loc) • 539 B
HTML
<p><i>alias:</i> <b>atConnectionLength</b></p>
<p>Move and auto-orient the subelement to the point at a given distance along the connection path. Use a positive number to define the distance from the source of the link and a negative number from the target of the link. It is valid only within the LinkView context.</p>
<pre><code>link.attr('rectSelector', { atConnectionLength: 30, width: 10, height: 10, fill: 'red' });
link.attr('rectSelector', { atConnectionLengthKeepGradient: 30, width: 10, height: 10, fill: 'red' });</code></pre>