MCPcopy
hub / github.com/e-oj/Magic-Grid / nextCol

Method nextCol

src/index.js:142–148  ·  view source on GitHub ↗

* Gets the next available column. * * @param cols list of columns * @param i index of dom element * * @return {*} next available column * @private

(cols, i)

Source from the content-addressed store, hash-verified

140 * @private
141 */
142 nextCol (cols, i) {
143 if (this.useMin) {
144 return getMin(cols);
145 }
146
147 return cols[i % cols.length];
148 }
149
150 /**
151 * Positions each item in the grid, based

Callers 1

positionItemsMethod · 0.95

Calls 1

getMinFunction · 0.85

Tested by

no test coverage detected