Update layout comments.

pull/187/merge
Glen Cheney 7 years ago
parent 720abd3f33
commit 4c206db2d2

5
dist/shuffle.js vendored

@ -674,11 +674,10 @@ function getAvailablePositions(positions, columnSpan, columns) {
//
// Next, find the first smallest number (the short column).
// [20, 10, 10]
// |
// *
// |
// *
//
// And that's where it should be placed!
// The index is the column and the value is the y-position.
//
// Another example where the second column's item extends past the first:
// [10, 20, 10, 0] => [20, 20, 10] => 10

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -670,12 +670,12 @@ function getAvailablePositions(positions, columnSpan, columns) {
// * * *
//
// Then take the places which fit and get the bigger of the two:
// max([20, 10]), max([10, 10]), max([10, 0]) = [20, 10, 0]
// max([20, 10]), max([10, 10]), max([10, 0]) = [20, 10, 10]
//
// Next, find the first smallest number (the short column).
// [20, 10, 0]
// |
// *
// [20, 10, 10]
// |
// *
//
// And that's where it should be placed!
//

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -53,11 +53,10 @@ export function getAvailablePositions(positions, columnSpan, columns) {
//
// Next, find the first smallest number (the short column).
// [20, 10, 10]
// |
// *
// |
// *
//
// And that's where it should be placed!
// The index is the column and the value is the y-position.
//
// Another example where the second column's item extends past the first:
// [10, 20, 10, 0] => [20, 20, 10] => 10

Loading…
Cancel
Save