mermaid.frame.cells

mermaid.frame

cells(points) -> cells

List the cells of a route's points

points are { c, r } pairs as a route holds them. Returns each cell the line through them passes, once and in order, as { c, r } pairs: the first point, the cells of each segment, a corner once. Two points in a row must differ in one coordinate, as check asks of a route.