Loading
Updating page definitions for Inkscape 1.5 compatibility
What does the merge request do?
Updates multipage behaviour for compatibility with Inkscape 1.5, closing #639 (closed).
Implementation notes
Pages are redefined as SVG view elements instead of custom Inkscape page elements
The various page functions are moved from NamedView to SvgElement. The changes are not backwards-compatible with pre-1.5 authored files, but the NamedView functions are left in place and deprecated to avoid any breaking API changes.
Summary for release notes
Moving forward, the various page methods (like new_page and get_pages) should be accessed from the root element instead of the namedview. The deprecated namedview methods call the corresponding svg method.
Checklist
- Add unit tests (if applicable)
- Changes to
inkex/are well documented - Clean merge request history
- Fix broken test files that assume pre-1.5 page structure
Edited by Charlotte Curtis