主权项 |
1. A computer-implemented method of arranging digital report elements on a target layout region, the method comprising:
invoking original layout information for the digital report elements rendered on an original layout region, wherein the original layout information comprises coordinate values and original dimensions including width and height values of the digital report elements; automatically generating, by the computer, an optimized layout plan for rendering, the digital report elements on the target layout region comprising:
determining an order of the digital report elements, along a first coordinate axis;classifying the digital report elements into multiple arrays based on the original layout information and the determined order;deriving origin values for the digital report elements in the multiple arrays based on the original dimensions of the digital report elements, wherein the origin values are derived along at least the first coordinate axis and the second coordinate axis, wherein deriving the origin values for the digital report elements along the first coordinate axis comprises:
traversing at least one of the multiple arrays sequentially along the first coordinate axis; anddividing a sum of maximum of width values of the digital report elements in the at least one of the multiple arrays that are traversed by a sum of maximum of width values of the digital report elements in the multiple arrays;further wherein deriving the origin values for the digital report elements along the second coordinate axis comprises:
traversing at least one of the digital report elements sequentially along each array of the multiple arrays; anddividing a sum of height values of the at least one of the digital report elements that are traversed in a corresponding array by a sum of height values of the digital report elements in the corresponding array;determining fractional values for scaling the original dimensions of the digital report elements in the multiple arrays based on the derived origin values, along the first coordinate axis and the second coordinate axis; anddetermining target layout values as a function of the derived origin values and the determined fractional values; and arranging the digital report elements on the target layout region based on the determined target layout values. |