摘要 |
A layout that specifies rectangular components within a container rectangle may be specified. Each rectangular component has at least one size and a gravity parameter, and can be classified as flexible or non-flexible based on the gravity parameter. The computing device determines a plurality of grid lines from the layout. Each rectangular component of the set of rectangular components is associated with at least two grid lines. The at least two grid lines are based on the at least one size of the rectangular component. The computing device generates a system of constraints, where each constraint is related to at least two grid lines of the plurality of grid lines. The computing device solves the system of constraints to determine a location for each grid line. The computing device generates a display of the rectangular components based on the locations of the grid lines. |