Releases: meerk40t/svgelements
Growing Pains: Use Corrections
Corrects some uses of use specifically #170 which was not previously correctly fixed.
What's Changed
Full Changelog: 1.8.0...1.8.1
Correct Use with Transformations
This version include #160 which fixes #170, #169, and #192. Rather the parsing routine does a semi-parse which allows for the integration of use objects more directly into nodes. This also permits use objects to occur before the object they are using. This adds a Use
object to the list which is a mostly a list containing the one element referred to in the use as a child.
This is a breaking change.
- Where previously you would have directly gotten the object. Now it would have a
Use
object as a parent. - The
values['attributes']
will no longer have processed style elements. These will be processed in thevalues
directly but not inattributes
. - Also, previously the
Use
objects could have given you different results, namely wrong results, and now they would be correct.
What's Changed
Full Changelog: 1.7.5...1.8.0
Correct 0-length path segmentization numpy fallback
This is as rare as it sounds. If you attempted to segment a path like M0,0zM1,1z
with the npoint()
code it would fail. There's a rare fallback when total length equals zero (and there exists segments). But, this was not properly fixed for use with numpy
.
What's Changed
Full Changelog: 1.7.4...1.7.5
Fractional Font Parsing, Issue 174b
What's Changed
- Correct fractional point sizing for fonts by @tatarize in #190
- Fix Issue 174b - Blank Style Tag Crash by @tatarize in #189
Full Changelog: 1.7.2...1.7.4
CSS: FontFamily quoted with ''
While not specifically referenced in CSS the actual testing quickly showed that short hand font names are overwhelmingly tagged with '' quote text. This didn't seem to be indicated in my initial reading of the spec, but in practice is quite common.
sanS-serif, typo
Typo in the default family for fonts without a declared family.
Update and Correct Text Element, Font-Shorthand Parsing, ReDos Error.
What's Changed
All breaking changes (hence 1.7.0) are confined to the text object parsing and interactions with text objects.
- Deprecated Font-Face Text Attribute.
- Correctly implement font-style
- Correctly implement font-variant
- Correct implement font-stretch.
- Fix ReDoS issue with font-shorthand parsing.
- Correct rounding error converting between
pt
andpx
- Text.font_weight may now return a regular str element.
- Text.weight gives parsed value of font weight.
- Text.font_list will provide the list of CSS Font Families in order.
- Text.font_family will provide the font_family (This is a breaking change.)
Full Changelog: 1.6.17...1.7.0
Add option for parsing display:none in SVG.parse
What's Changed
Full Changelog: 1.6.16...1.6.17
Several very minor fixes.
- Correctly process two edge cases of arc parameterization via control points.
- Coincident endpoints does not create degenerate arcs.
- Colinear arcs along the y-axis no longer crash.
- Correct an issue where CSS Style with comments could fail. CSS permits comments and these needed to be removed from
<style>
blocks to avoid processing commented out CSS or failing to find assignments that were otherwise valid.
Font-weight: bolder crash, Matrix rotation attribute
- Font-weight if not an int would be converted but threw the wrong type of error to be caught.
- Matrix.rotation() now exists to estimate the rotation amount of the current matrix.