Skip to content

Commit

Permalink
Fixing incorrect placements
Browse files Browse the repository at this point in the history
  • Loading branch information
dagmike committed Aug 13, 2019
1 parent 0e9f909 commit 19d009b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
7 changes: 0 additions & 7 deletions src/WindowedRectangle.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,6 @@ public function __construct(
$windowHeight = $height - (2 * $this->bottomBorder);
}

// die(var_dump([
// 'outerWidth' => $this->width,
// 'otherHeight' => $this->height,
// 'innerWidth' => $windowWidth - (2 * self::INNERBORDER),
// 'innerHeight' => $windowHeight - (2 * self::INNERBORDER)
// ]));

$this->window = new Rectangle($windowWidth - (2 * self::INNERBORDER), $windowHeight - (2 * self::INNERBORDER));
}

Expand Down
3 changes: 0 additions & 3 deletions test/test.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
new Rectangle(100, 150)
];

// die(var_dump($toPack));

// While there are still things to pack, attempt to pack them
while (!empty($toPack)) {
// Create a new bin
Expand All @@ -38,7 +36,6 @@

// Draw each of the bins
foreach ($bins as $key => $bin) {
// die(var_dump($bin->getFreeRectangles()));
$image = VisualisationHelper::generateVisualisation($bin);
$data = $image->getImageBlob();
file_put_contents("viz-{$key}.png", $data);
Expand Down

0 comments on commit 19d009b

Please sign in to comment.