Repository navigation
v0.2.7
This version is a patch. It adds the option graphRouter of layout. A graph router routes all edges together, with all boxes in view. Without the option, each layout stays the same.
- The new option
graphRoutertakes an object with aroutefunction. The function gets all boxes and all edges, and gives a route for each edge. The routercornersRouterof@mark1russell7/highwayshas this shape. ireko has no dependency on highways. - The new types
GraphRouter,GraphRouterInput,GraphRouterResult,GraphNode,GraphEdge,GraphBoxandGraphRoutetell the shape. - The graph router operates after the router of the option
router. Its routes replace the first routes, and theboundsgrow to hold them. - The obstacles are all boxes, also the containers. A root in the nested mode is not an obstacle. An edge between a container and a box inside it keeps its first route.
- A route that goes through a box gives the new warning
EDGE_THROUGH_BOX, with the boxes in itsdetail. The ends of the edge and the containers that hold an end do not count. - A graph router that throws, or a missing or bad route, gives
ROUTER_FAILED. Then the edge keeps its first route. - The gzip size of
layoutgoes from 18.05 kB to 18.57 kB. The size limits of the entries that hold the engine go up by 0.5 kB.