Skip to main content

Function: routeAll()

function routeAll(ctx, cache?): RouteResult;

Routes every ref. Refs whose ends meet at the same port (same table, row and side) are fanned out vertically (fanOffsets) so each end keeps its own cardinality marker; the ends are ordered by where their lines go (upper line on top), so the fanned lines do not cross.

With cache (drag frames) only the routes a change can affect are searched again: refs with an end on a dirty node or on a node whose box changed, and refs whose search window a changed box touches. Everything else (fan-out, nudging) is redone, so the result always equals a full routeAll of ctx.

Parameters​

ctx​

RouteContext

cache?​

dirty​

ReadonlySet<string>

previous​

RouteCache

Returns​

RouteResult