Skip to content

Can PackingInfiniteGrid retrieve only squares? #570

@Mirkadoi

Description

@Mirkadoi

Description

I am working with the PackingInfiniteGrid and need to configure it to retrieve only squares in two specific ways:

  1. All Squares: I want to get all square items without any exceptions.
  2. All Squares with Selective Dimension Assignment: I need to manually assign specific dimensions to certain squares, such as configuring some squares to have dimensions like 1x2, 2x2, 3x2, etc., based on my choice, rather than excluding them.

And Is it possible to configure the grid so that upon resizing, the cells adjust to occupy all available space without leaving any gaps?

Steps to check or reproduce

What I Achieved (Code):
Link to codesandbox
2. Desired Outcome 1 (Screenshot):
image
4. Desired Outcome 2 (Screenshot):
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions