Skip to content

chore(deps): Bump svglib from 2.0.2 to 2.1.0 - #15441

Open
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/pip/master/svglib-2.1.0
Open

chore(deps): Bump svglib from 2.0.2 to 2.1.0#15441
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/pip/master/svglib-2.1.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 12, 2026

Copy link
Copy Markdown
Contributor

Bumps svglib from 2.0.2 to 2.1.0.

Release notes

Sourced from svglib's releases.

svglib 2.1.0

Added

  • Declared support for Python 3.14 (added the classifier and CI matrix entry across Ubuntu, macOS, and Windows, alongside the existing 3.9–3.13).
  • Clipping paths now support <circle>, <ellipse>, and <polygon> clip shapes, in addition to paths and rectangles, and clipping masks referenced from within a <use> element.
  • Transforms are now applied to clipping-path shapes, fixing clip paths that relied on previously unsupported transforms (issue #366).
  • The gradient shape classes now implement getBounds(), so drawings that contain gradient fills can be measured — for example when used as a flowable by rst2pdf (issue #466).

Changed

  • Renamed the gradient shape classes _LinearGradientShape and _RadialGradientShape to LinearGradientShape and RadialGradientShape. They appear in the rendered Drawing tree and were never meant to be private, so the leading underscore was misleading.

Removed

  • Removed the deprecated _LinearGradientShape and _RadialGradientShape aliases. Use LinearGradientShape and RadialGradientShape instead.

Fixed

  • The visibility property is now respected on shapes. Elements with visibility="hidden" (or collapse), set directly or inherited from an ancestor, were still rendered (issue #359).

  • display: none set through a style attribute is now respected. Only the display presentation attribute was read, so <g style="display:none"> and <rect style="display:none"/> were still rendered (issue #401).

  • Embedded <image> geometry is no longer truncated to whole points. The x, y, width, and height of an SVG <image> were each passed through int(), so a raster placed at fractional coordinates landed up to ~1pt away from a vector element with identical coordinates. Because width/height were truncated too, the error grew across the image rather than being a constant shift (issue #490).

  • font-family values are now split per CSS instead of on whitespace. An unquoted multi-word name such as font-family: Cascadia Code was split into Cascadia and Code, so a font registered under its full name was never found (issue #374). Commas inside a quoted name (font-family: "Foo, Bar", Arial) no longer split the list either; that previously handed shlex an unbalanced quote and raised ValueError: No closing quotation, aborting the conversion of a valid value.

  • Replaced locale.getdefaultlocale() (used for <switch> systemLanguage

... (truncated)

Changelog

Sourced from svglib's changelog.

2.1.0 (2026-08-01)

Added

  • Declared support for Python 3.14 (added the classifier and CI matrix entry across Ubuntu, macOS, and Windows, alongside the existing 3.9–3.13).
  • Clipping paths now support <circle>, <ellipse>, and <polygon> clip shapes, in addition to paths and rectangles, and clipping masks referenced from within a <use> element.
  • Transforms are now applied to clipping-path shapes, fixing clip paths that relied on previously unsupported transforms (issue #366).
  • The gradient shape classes now implement getBounds(), so drawings that contain gradient fills can be measured — for example when used as a flowable by rst2pdf (issue #466).

Changed

  • Renamed the gradient shape classes _LinearGradientShape and _RadialGradientShape to LinearGradientShape and RadialGradientShape. They appear in the rendered Drawing tree and were never meant to be private, so the leading underscore was misleading.

Removed

  • Removed the deprecated _LinearGradientShape and _RadialGradientShape aliases. Use LinearGradientShape and RadialGradientShape instead.

Fixed

  • The visibility property is now respected on shapes. Elements with visibility="hidden" (or collapse), set directly or inherited from an ancestor, were still rendered (issue #359).

  • display: none set through a style attribute is now respected. Only the display presentation attribute was read, so <g style="display:none"> and <rect style="display:none"/> were still rendered (issue #401).

  • Embedded <image> geometry is no longer truncated to whole points. The x, y, width, and height of an SVG <image> were each passed through int(), so a raster placed at fractional coordinates landed up to ~1pt away from a vector element with identical coordinates. Because width/height were truncated too, the error grew across the image rather than being a constant shift (issue #490).

  • font-family values are now split per CSS instead of on whitespace. An unquoted multi-word name such as font-family: Cascadia Code was split into Cascadia and Code, so a font registered under its full name was never found (issue #374). Commas inside a quoted name (font-family: "Foo, Bar", Arial) no longer split the list either; that previously handed shlex an unbalanced quote and raised ValueError: No closing quotation, aborting the conversion of a valid value.

... (truncated)

Commits
  • eee9a45 Merge pull request #500 from deeplook/release-2.1.0
  • fc84af9 Prepare 2.1.0 release
  • d4a8708 Merge pull request #498 from CZ-NIC/fix-svg-canvas
  • 7ae1599 Merge pull request #499 from Sanjays2402/fix/respect-visibility-hidden
  • 345af78 fix: respect the visibility property on shapes
  • dbb02ec Fix AttributeError: 'SVGCanvas' object has no attribute 'beginPath'.
  • dcc2fe5 Merge pull request #494 from Sanjays2402/fix/font-family-unquoted-space
  • 7cfb105 docs: add changelog entry for the font-family splitting fix
  • dfacd2c test: do not assert an environment-dependent font fallback name
  • cd8875e Merge pull request #497 from CZ-NIC/fix-gradient-url-re
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [svglib](https://github.com/deeplook/svglib) from 2.0.2 to 2.1.0.
- [Release notes](https://github.com/deeplook/svglib/releases)
- [Changelog](https://github.com/deeplook/svglib/blob/main/CHANGELOG.md)
- [Commits](deeplook/svglib@v2.0.2...v2.1.0)

---
updated-dependencies:
- dependency-name: svglib
  dependency-version: 2.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Aug 12, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📖 Documentation Preview

⚠️ Preview deployment failed or was skipped.

No RST documentation pages changed in this PR.

Last updated: Wed, 12 Aug 2026 06:14:13 GMT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review dependencies Pull requests that update a dependency file python Pull requests that update Python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants