|
|
@@ -1,10 +1,3 @@ |
|
|
|
var Position = /** @class */ (function () { |
|
|
|
function Position(x, y) { |
|
|
|
this.x = x; |
|
|
|
this.y = y; |
|
|
|
} |
|
|
|
return Position; |
|
|
|
}()); |
|
|
|
function memoryGap() { |
|
|
|
return memorySide() + memorySpace(); |
|
|
|
} |
|
|
@@ -20,7 +13,8 @@ function memoryItemPositions(c) { |
|
|
|
var row = Math.floor(i / 4); |
|
|
|
var x = memoryGap() + (i - row * 4) * memoryGap(); |
|
|
|
var y = memoryGap() + row * memoryGap(); |
|
|
|
pos.push(new Position(x, y)); |
|
|
|
// @ts-ignore |
|
|
|
pos.push(memoryCreatePosition(x, y)); |
|
|
|
} |
|
|
|
return pos; |
|
|
|
} |