jointjs
Version:
JavaScript diagramming library
13 lines (8 loc) • 689 B
HTML
<pre class="docs-method-signature"><code>util.shapePerimeterConnectionPoint(linkView, view, magnet, ref)</code></pre>
<p>(<i>Deprecated</i>) This function can be directly used in the <a href="#dia.Paper.prototype.options">dia.Paper</a> <code>linkConnectionPoint</code> parameter. When used, links will try to find the best connection point right on the perimeter of the connected shape rather than only on the bounding box. See the image below.</p>
<p><img width="200" src="images/joint.util.shapePerimeterConnectionPoint.png" alt=""></p>
<pre><code>var paper = new joint.dia.Paper({
// ...
linkConnectionPoint: joint.util.shapePerimeterConnectionPoint
// ...
})</code></pre>