styles renderer update

This commit is contained in:
Will McGugan
2022-06-30 10:54:37 +01:00
parent b2f0dbb8a2
commit 410fc91a0e
5 changed files with 51 additions and 20 deletions

View File

@@ -139,6 +139,10 @@ class Size(NamedTuple):
width, height = self
return Region(0, 0, width, height)
@property
def lines(self) -> list[int]:
return list(range(self.height))
def __add__(self, other: object) -> Size:
if isinstance(other, tuple):
width, height = self