hasLoopAnchorCollision method
Implementation
bool hasLoopAnchorCollision(int x, int y, int toX, String id) {
if (this.s.length == 0 || y >= this.s.length) {
return false;
}
if (x == 0) return false;
final row = this.s[y];
for (int dx = x - 1; dx >= toX + 1; dx--) {
final cell = row[dx];
if (cell == null) continue;
return true;
}
// check last
final cell = s[y][toX];
if (cell == null) return false;
if (!cell.isFull &&
cell.margin != null &&
cell.margin == AnchorMargin.start) return false;
return true;
}