function doTilesOverlap()

in scripts/dashboard-importer/src/dashboards/converter/testing/overlap_test_utils.ts [34:43]


function doTilesOverlap(t1: Tile, t2: Tile): boolean {
  if (t1.xPos! >= t2.xPos! + t2.width! || t2.xPos! >= t1.xPos! + t1.width!) {
    return false;
  }

  if (t1.yPos! >= t2.yPos! + t2.height! || t2.yPos! >= t1.yPos! + t1.height!) {
    return false;
  }
  return true;
}