Use getClientRects() in linefit to figure out whether we need to linefit or not