Update 0.4.0
Python application / build (push) Has been cancelled

- Add\Rework UI
- Add Split Table and Listing
- Add Support Customazeble schems
This commit is contained in:
Igor20264
2026-09-04 22:28:39 +03:00
parent 516abe7b83
commit b38661f588
70 changed files with 69532 additions and 413 deletions
+10
View File
@@ -51,3 +51,13 @@ class LayoutTracker:
def new_page(self):
self._state.new_page()
def set_page_size(self, max_height: Length, max_width: Length) -> None:
"""Switch usable area (e.g. portrait ↔ landscape) and start a fresh page."""
self._state.max_height = max_height
self._state.max_width = max_width
# Align to a page boundary under the *new* geometry.
rem = self._state.remaining_page_height
if rem != max_height:
self._state.add_height(rem)
self._is_new_page = True