|
|
@@ -9,9 +9,11 @@ function memorySpace() { |
|
|
|
} |
|
|
|
function memoryItemPositions(c) { |
|
|
|
var pos = []; |
|
|
|
var ids = Array.from(Array(c.itemsCount).keys()); |
|
|
|
// @ts-ignore |
|
|
|
var ids = utsIndexArray(c.itemsCount); |
|
|
|
ids.forEach(function (i) { |
|
|
|
var row = Math.floor(i / 4); |
|
|
|
// @ts-ignore |
|
|
|
var row = utsFloor(i / 4); |
|
|
|
var x = memoryGap() + (i - row * 4) * memoryGap(); |
|
|
|
var y = memoryGap() + row * memoryGap(); |
|
|
|
// @ts-ignore |
|
|
|