摘要 |
Disclosed are apparatus and methods for generating displays based on a layout specifying rectangular components. A computing device can determine grid lines from the layout, with each rectangular component associated with at least two grid lines. The computing device generates a system of constraints, each constraint related to at least two grid lines, including one or more normal-order constraints that specify a normal order for the grid lines. The computing device solves the system of constraints to determine a first location for each grid line. The computing device can identify a relaxable normal-order constraint. The computing device solves the system of constraints based on the relaxing the relaxable normal-order constraint to determine a second location for each grid line. The computing device generates a display of at least some rectangular components based on the second locations of the grid lines. |