StyleCode - Layout Pipeline
This pipeline computes the final position of each tile on the dashboard. Each tile is placed according to its tilePlacement
:
- All tiles with
tilePlacement: fixed
are placed on the grid at the position specified bytileX
,tileY
,tileW
andtileH
. If this would cause an overlap between two tiles, the tile that appears second in the source code is treated astilePlacement: bottom
instead. - The dashboard width is defined as the smallest width that can accommodate all tiles placed so far. If no tiles were placed so far, a dashboard width of 6 is assumed.
- Starting on the row below the bottom-most tile, all tiles with
tilePlacement: bottom
are placed in the dashboard, filling each row left-to-right (up to the dashboard width) in the order in which they appear in the script, with dimensions 1×1.