outline fix
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user