The 'oneSide' router is a restricted version of the 'orthogonal' router. Exactly three route segments are generated. The route leaves the start element in a specified direction (the args.side property), transitions with a single segment towards the end element, and then enters the end element from the specified direction again. Note that this router does not support link vertices. The router does not avoid obstacles. Two arguments are accepted, which can be passed within the router.args property.

side string The direction of the route. Either 'left', 'right', 'top' or 'bottom'. Default is 'bottom'.
padding number Minimal gap between a connection point and the first/last vertex. It defaults to 40.

Example:

link.router('oneSide', {
    side: 'top',
    padding: 30
});