Svgelements

Latest version: v1.9.6

Safety actively analyzes 629788 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 7 of 13

1.5.1

Not secure
* Color can now accept keyword args with colors eg `Color('red', alpha=180)`
* Default use of Color(int) is rgb. Eg. `Color(0xFF0000, 0.5)` is half opaque red.
* Keyword args for Color accepts argb and rgba. Eg. `Color(argb=0xFF00FF)`
* Keyword args added for `hue`, `saturation`, `lightness` and `alpha`.
* Color has `.argb`, `.rgb` and `.rgba` properties. These can be set: `color.argb = 0xFF0000FF`
* `Color.hsl_to_int` does not require creating a Color object. hsl init, calls the function.
* `.hue` had a bug which gave the hue in turns. It should have given hue in degrees.

1.5.0

Not secure
Corrects 109 with PR 110

Lofgren correctly noted the CSS color definitions are RGBA and not ARGB. Especially regarding the parsing of 4 and 8 digit hex values this was parsed contrary to spec.

Major version bump, because this is a slightly breaking change as int(color) will now produce RGBA. If you convert colors with the `.red` `.blue` `.green` and `.alpha` the code will work the same. However if you converted to int(color) using or using `.value` within the color, the internal data value is now RGBA.

Some legacy code was eliminated.

1.4.12

Not secure
The ability to perform `t = Group() * Matrix()` resulted in a crash due to it not initializing the copy() of the Group's `.transform` value.

1.4.11

Not secure
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.

1.4.10

Not secure
Corrects the reification of inverted shapes.
Issue 99

1.4.9

Not secure
* Corrects `.bbox()` for paths with degenerate arcs and degenerate arcs themselves.

Page 7 of 13

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.