What does the merge request do?
Remove some circular dependencies from Inkex, and remove the corresponding non-toplevel imports.
The only remaining non-toplevel import from within Inkex is between
elements._polygons due to
ShapeElement.to_path_element, which creates a
PathElement, which derives from
ShapeElement. No idea how to fix this except moving both classes into one file.
Also some non-toplevel imports of tween remain, which was discussed below.
- There are now interfaces for
SvgDocumentElementso when only used for
isinstance, not the entire module is needed
- Some utilities have been moved into their own modules (deprecated_meta, svg_parser, css)
- The most problematic module was
tweenbecause it imported a lot of elements, but the elements also imported tween to define an interpolate method. This will be deprecated at some point after 1.2 since using tween directly is a one-liner as well.
Summary for release notes
Add unit tests (if applicable)
inkex/are well documented
Clean merge request history