@geogirafe/lib-geoportal
    Preparing search index...

    Function distributeCells

    • Distributes the Components on the Cells of a Layout. The Components that are already placed keep their Cell as long as it still exists, and the Cells that are added by the new Layout are filled with the Components that are not placed anywhere yet.

      Parameters

      • type: "1x1" | "2x1" | "1x2" | "2x2"
      • currentCells: CellContent[]

      Returns CellContent[]