Skip to content

Releases: meerk40t/svgelements

Growing Pains: Use Corrections

07 Sep 04:41
3fc3755
Compare
Choose a tag to compare

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

06 Sep 03:02
ecc5e3b
Compare
Choose a tag to compare

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 the values directly but not in attributes.
  • 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

29 Aug 04:15
b207744
Compare
Choose a tag to compare

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

27 Aug 03:14
a281283
Compare
Choose a tag to compare

What's Changed

Full Changelog: 1.7.2...1.7.4

CSS: FontFamily quoted with ''

21 Jul 21:43
Compare
Choose a tag to compare

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

20 Jul 10:55
Compare
Choose a tag to compare

Typo in the default family for fonts without a declared family.

Update and Correct Text Element, Font-Shorthand Parsing, ReDos Error.

19 Jul 11:47
Compare
Choose a tag to compare

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 and px
  • 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

13 Jun 15:09
d830cae
Compare
Choose a tag to compare

What's Changed

  • Add option for parsing display none in SVG.parse by @tatarize in #184

Full Changelog: 1.6.16...1.6.17

Several very minor fixes.

12 Jun 12:59
e11d22a
Compare
Choose a tag to compare
  • 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

31 May 02:18
Compare
Choose a tag to compare
  • 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.