outline fix

This commit is contained in:
GotPPay
2017-12-21 02:20:52 +01:00
parent 2ea9e2e702
commit edcfcb4aac
3 changed files with 12 additions and 12 deletions

View File

@@ -50,9 +50,10 @@ class ProjectPresenter(object):
self.offset = height
for panel in table_data:
panel['y'] = height - panel['y'] + first_cell
return table_data
def get_buildings(self, buildings):
def get_buildings(self, buildings, max_y):
if self.offset is None:
self.offset = 0
@@ -67,7 +68,7 @@ class ProjectPresenter(object):
# origin = self.find_origin(building)
for point in building:
point.x = point.x * spacing_x
point.y = point.y * spacing_y
point.y = abs((point.y * spacing_y - max_y))
presentable_building.append(point.__dict__)
return result