Hey!
I would like that a small specifications on how the algorithm operates gets added to the readme.
The main question is: Does perfectMasonry respect sorting?
In the top of the source code there's the following statement:
Does similar things as the Isotopes "masonry" layoutmode, except that this one will actually go back and plug the holes
Is this statement true? I.e. does it not disregard sorting and rather, does a "normal" masonry layout then recursively goes around the layout and tries to fill the holes?
If we have a grid like this generated by normal masonry (numbers symbolises priority by sort, and X empty space):
[1 BRICK] [2 BRICK] [3 BRICK] [ EMPTY ]
[ 4 BIG BRICK ] [5 BRICK] [6 BRICK]
[7 BRICK] [ 8 BIG BRICK ] [9 BRICK]
Would perfectMasonry iterate through this, move [5 BRICK] to [ EMPTY ], then simply push everything else one step and create this? Or would it not care if it was 5/6/7 that was moved?
[1 BRICK] [2 BRICK] [3 BRICK] [5 BRICK]
[ 4 BIG BRICK ] [6 BRICK] [7 BRICK]
[ 8 BIG BRICK ] [9 BRICK] [ EMPTY ]
Hey!
I would like that a small specifications on how the algorithm operates gets added to the readme.
The main question is: Does perfectMasonry respect sorting?
In the top of the source code there's the following statement:
Is this statement true? I.e. does it not disregard sorting and rather, does a "normal" masonry layout then recursively goes around the layout and tries to fill the holes?
If we have a grid like this generated by normal masonry (numbers symbolises priority by sort, and X empty space):
Would perfectMasonry iterate through this, move
[5 BRICK]to[ EMPTY ], then simply push everything else one step and create this? Or would it not care if it was5/6/7that was moved?