mermaid.outline.reach

mermaid.outline

reach(dist, point, dx, dy, cw, ch)

Carry a route's end on to an outline

A route ends at the centre of a border cell, and a side that leans or curves runs inside that centre. point is the end, { x, y }, reached in direction (dx, dy). It is moved on in steps of half a unit, up to two cells along a row or one along a column, to the first point not outside the outline. Where none is found it stays.