jointjs
Version:
JavaScript diagramming library
4 lines (2 loc) • 374 B
HTML
<p>Move the subelement to the point at a given ratio of the connection total length but do not auto-orient it according to the path's gradient. It accepts a number in the <code>[0,1]</code> range. It is valid only within the LinkView context.</p>
<pre><code>link.attr('rectSelector', { atConnectionRatioKeepGradient: .5, width: 10, height: 10, fill: 'red' });</code></pre>