Skip to content

Releases: meerk40t/svgelements

Bug Fixes

22 Apr 20:04
00e638e
Compare
Choose a tag to compare

Corrects #101, #103, #104, #105 .

Degenerate objects are now omitted. If they should not be rendered they are not parsed.
Path bbox is corrected. The library previously used a short-hand method that did not work.
CSS classes value sharing and overwriting now works correctly.
ID within value but not attribute does not crash the element_by_id lookup.

Reify Inverted Shapes

24 Mar 03:56
26b68c9
Compare
Choose a tag to compare

Corrects the reification of inverted shapes.
Issue #99

Issue 97: Degenerate Arc Bounding Box

11 Mar 10:55
3becf2a
Compare
Choose a tag to compare
  • Corrects .bbox() for paths with degenerate arcs and degenerate arcs themselves.

Issue 95. Color.value change.

07 Mar 13:43
14598bd
Compare
Choose a tag to compare
  • Corrects Issue 95. Multiple Reification of Stroke-Width for Skewed Matrices.
  • Gives Group a static function for bbox.
  • Color now can use long and correct for it rather than cheating and keeping shorts.
  • Color accepts String of integer.

Merge pull request #93 from meerk40t/1.4.7

26 Feb 12:44
594566c
Compare
Choose a tag to compare
Add Group.bbox and Matrix Multiply of Groups.

Temporary Python 2.7 Support.

24 Dec 18:33
10242a5
Compare
Choose a tag to compare

Enacting very temporary support of Python 2.7. Merry Christmas!

This will be removed from the next version. (though the code will likely not be changed).

Fix Fill Opacity Bug

23 Dec 01:05
6f31d70
Compare
Choose a tag to compare
  • Fix a small Fill Opacity bug.

ClipPath and Parsing Tweaks.

22 Dec 20:35
ec9e487
Compare
Choose a tag to compare
  • Adds ClipPath
  • Adds SVG Fill/Clip Rules
  • IRI Parsing
  • Stoke-Width to first class parsed citizen of all Graphics Objects
  • Groups are Transformable
  • Transformable operates on stroke width
  • Stroke width is processed like real Length/Percentage
  • Corrected Width and Height when ViewBox is not added for percent based objects. (These must use the Width and Height given to construct a non-scaling transformation, but also not overwrite the width or height with None).
  • Corrected Edge case Def Use Use nesting which pushed the second nested Use to the regular dom.
  • Corrected Use Use Styling objects. Now propagates the shadow-dom node sequences.
  • Added render() as common function among all objects, since Length objects are pretty common.
  • XY values are set specifically on SVGImage objects.
  • Desc added. SVGDesc is deprecated.
  • Added Title element.
  • Stroke Width elements set to 1 by default. Per spec.
  • Capped shadow dom recursion stops working if infinite loop occurs.

Soft Numpy Softened

30 Nov 01:18
e277870
Compare
Choose a tag to compare

Numpy in header was too inclusive. Moved the includes to the npoint blocks, so it will not try to do the include if the program being used doesn't try to use those features.

Cubic Length Scipy

20 Nov 01:40
07a9d9c
Compare
Choose a tag to compare
  • Speedup for Cubic Length if Scipy is installed. (Thanks to @abey79)
  • arc_angle() function now accepts ccw kwargs. The default is still whether angle a0 is greater than angle a1. However, in some cases the it's correct to insist on a strict chirality.
  • Structural Parsing of style blocks within def blocks will pass that element to the main parsing routine. So that <style/> code isn't omitted. This lead to a bug in some files.
  • Appending two different CSS classes doesn't fail the assignment. These would strictly concatenate rather than include the ; token between them.