@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 left empty: a Component is only displayed when the user explicitly chooses it, so that the libraries it needs (Cesium, Google Maps, ...) are not loaded unnecessarily.

      Parameters

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

      Returns CellContent[]