Use the idea of magnetic points for linking the different objects on a canvas, so the lines come from the closer points in a table by example, we can have on magnetic point per row per side, or per selected block.