Implement Element and ElementSupply ABCs

This commit is contained in:
Joscha 2019-05-10 16:20:01 +00:00
parent 2e56b1b925
commit a3942c6b80
3 changed files with 145 additions and 5 deletions

View file

@ -47,6 +47,10 @@ class TreeList:
def lower_tree_id(self) -> Id:
return self._lower_tree_id
def offset_by(self, offset: int) -> None:
self._upper_offset += offset
self._lower_offset += offset
def _add_first_tree(self,
tree: List[RenderedElement],
anchor_id: Id