Skip to main content

Function: routeRef()

function routeRef(
ref,
ctx,
tables,
offsets?
): RefRoute | null;

Routes one ref, or null when one of its tables has no geometry or both ends are inside one collapsed group. With avoid: 'tables' the route goes round the boxes, without the nudging of shared channels that routeAll adds.

Parameters​

ref​

Ref

ctx​

RouteContext

tables​

Map<string, Table>

offsets?​

EndOffsets = ...

Returns​

RefRoute | null