metafizzy / metafizzy/packery

Let user leave gaps between tiles and disable stacking stamped items (packery 2 or 1)

Open
#554 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
4.3k
Forks
324
PR merge metrics
No merged PRs in 30d

Description

Hello.
I am trying to use packery but i need to let user put the tile wherever he wants.
1. Is it possible with packery 2? (i dont think so - it always pull up or left - layout, or shiftLayout)
2. I almost got it working with packery 1 (test case below) where I stamp an item after dragging it, so it can be even in bottom right corner. The problem is, that stamping an item, lets user to put another item in the same place. Is there a workaround for that, so user should not be able to stack another items on stamped tiles?

Test case: https://codepen.io/Kedor/pen/qBqPPjq

![image](https://user-images.githubusercontent.com/38385594/108693185-d2603380-74fd-11eb-82b7-914df8cba85d.png)
![image](https://user-images.githubusercontent.com/38385594/108693212-dbe99b80-74fd-11eb-85a8-4638fe28b3a7.png)

Contributor guide

Open the contributing guide

Research direction

Start with the linked CodePen test case and compare the Packery 1 and Packery 2 behavior described in the issue. Read the relevant layout, dragging, and stamping entry points to determine whether user-positioned gaps and non-overlapping stamped items are supported. Done means a confirmed implementation path or a clearly documented limitation and workaround.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.