Comparing version 0.8.1 to 0.8.2
@@ -61,3 +61,6 @@ 'use strict'; | ||
let addNextCell = (cellPos, pos) => { | ||
let cellPos = cellPosStart; | ||
let pos = { x: line.p1.x, y: line.p1.y }; | ||
while (cellPos != null) { | ||
let d = this.getDelta(line, cellPos, gridSize); | ||
@@ -70,8 +73,9 @@ | ||
cellsPos.push(nextCellPos); | ||
addNextCell(nextCellPos, nextPos); | ||
cellPos = nextCellPos; | ||
pos = nextPos; | ||
} else { | ||
cellPos = null; | ||
} | ||
}; | ||
} | ||
addNextCell(cellPosStart, { x: line.p1.x, y: line.p1.y }); | ||
return cellsPos; | ||
@@ -78,0 +82,0 @@ } |
{ | ||
"name": "lr-core", | ||
"version": "0.8.1", | ||
"version": "0.8.2", | ||
"description": "Line Rider core library", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -44,3 +44,6 @@ import {hashIntPair} from '../../utils/hashNumberPair.js' | ||
let addNextCell = (cellPos, pos) => { | ||
let cellPos = cellPosStart | ||
let pos = { x: line.p1.x, y: line.p1.y } | ||
while (cellPos != null) { | ||
let d = this.getDelta(line, cellPos, gridSize) | ||
@@ -53,8 +56,9 @@ | ||
cellsPos.push(nextCellPos) | ||
addNextCell(nextCellPos, nextPos) | ||
cellPos = nextCellPos | ||
pos = nextPos | ||
} else { | ||
cellPos = null | ||
} | ||
} | ||
addNextCell(cellPosStart, { x: line.p1.x, y: line.p1.y }) | ||
return cellsPos | ||
@@ -61,0 +65,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
168601
5527