Add styles and remove duplicate objects
Changes
-
Styles
- Added known styles and inline styles
- Currently, only basic known styles are supported (types of filters are not considered).
- Stroke styles
- Line cap
- Line join
- Stroke color
- Stroke width
- Stroke alignment (middle, inside, outside)
- Dashed stroke
- Fill styles
- Fill color
- Blend styles
- Opacity
- Support for RGB, CMYK, and GRAY colors.
- Added known styles and inline styles
-
Support unfilled and unstroked objects with a caveat: subsequent objects may inherit no-fill or no-stroke if not explicitly set
-
Remove duplicate objects
- Added functionality to detect duplicate objects marked with pseudo comments (%_).
- The deduplication process now considers the presence of known styles, deferring the deduplication step until the next object is found.
-
Path close/open
- Close/open control paths based on baked object's fill path, use start/end point coincidence as fallback.
-
Added
first_subsection_of_type_recursive
and some parser changes
Checklist
-
Change is tested -
Change is documented.
-
Licenses are up to date
Edited by Manpreet Singh