Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

svg-connect-area

trinary70.0.2

javascript library for creating areas to join four points

readme

svg-connect-area

A library for generating connecting areas between svg elements.

Usage

// Draw a line from start to finish.
var myConnectionFn = svgConnector()
  .type(function(d) { return "M " + d[0] + " L " + d[1]; });

The default does a horizontal/vertical step that tries to keep out of your way.

An example, drag the handles.