Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): update usvg requirement from 0.35.0 to 0.36.0 #434

Merged
merged 1 commit into from
Oct 18, 2023

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Oct 9, 2023

Updates the requirements on usvg to permit the latest version.

Release notes

Sourced from usvg's releases.

v0.35.0

  • viewsvg is a simple application that showcases resvg capabilities
  • resvg-0.*.0.tar.xz is a sources archive with vendored Rust dependencies
  • resvg-explorer-extension.exe is an SVG thumbnailer for Windows Explorer
Changelog

Sourced from usvg's changelog.

[0.35.0] - 2023-06-27

Fixed

  • Panic when an element is completely outside the viewbox.

Removed

  • FillPaint and StrokePaint filter inputs support. It's a mostly undocumented SVG feature that no one supports and no one uses. And it was adding a significant complexity to the codebase.
  • usvg::filter::Filter::fill_paint and usvg::filter::Filter::stroke_paint.
  • BackgroundImage, BackgroundAlpha, FillPaint and StrokePaint from usvg::filter::Input.
  • usvg::Group::filter_fill_paint and usvg::Group::filter_stroke_paint.

[0.34.1] - 2023-05-28

Fixed

  • Transform components order. Affects only usvg SVG output and C API.

[0.34.0] - 2023-05-27

Changed

  • usvg uses tiny-skia geometry primitives now, including the Path container. The main difference compared to the old usvg primitives is that tiny-skia uses f32 instead of f64. So while in theory we could loose some precision, in practice, f32 is used mainly as a storage type and precise math operations are still done using f64. tiny-skia primitives are move robust, strict and have a nicer API. More importantly, this change reduces the peak memory usages for SVGs with large paths (in terms of the number of segments). And removes the need to convert usvg::PathData into tiny-skia::Path before rendering. Which was just a useless reallocation.
  • All numbers are stored as f32 instead of f64 now.
  • Because we use tiny-skia::Path now, we allow quadratic curves as well. This includes usvg CLI output.
  • Because we allow quadratic curves now, text might render slightly differently (better?). This is because TrueType fonts contain only quadratic curves and we were converting them to cubic before.
  • usvg::Path no longer implements Default. Use usvg::Path::new instead.
  • Replace usvg::Rect with tiny_skia::NonZeroRect.
  • Replace usvg::PathBbox with tiny_skia::Rect.
  • Unlike the old usvg::PathBbox, tiny_skia::Rect allows both width and height to be zero. This is not an error.
  • usvg::filter::Turbulence::base_frequency was split into base_frequency_x and base_frequency_y.
  • usvg::NodeExt::calculate_bbox no longer includes stroke bbox.
  • (c-api) Use float instead of double everywhere.
  • The svgfilters crate was merged into resvg.
  • The rosvgtree crate was merged into usvg-parser.
  • usvg::Group::filter_fill moved to usvg::filter::Filter::fill_paint.
  • usvg::Group::filter_stroke moved to usvg::filter::Filter::stroke_paint.

Remove

  • usvg::Point. Use tiny_skia::Point instead.
  • usvg::FuzzyEq. Use usvg::ApproxEqUlps instead.

... (truncated)

Commits

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 merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @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)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file rust Pull requests that update Rust code labels Oct 9, 2023
@dependabot dependabot bot force-pushed the dependabot/cargo/usvg-0.36.0 branch 2 times, most recently from 279deff to 37bb0c2 Compare October 17, 2023 08:02
Updates the requirements on [usvg](https://github.com/RazrFalcon/resvg) to permit the latest version.
- [Release notes](https://github.com/RazrFalcon/resvg/releases)
- [Changelog](https://github.com/RazrFalcon/resvg/blob/master/CHANGELOG.md)
- [Commits](linebender/resvg@v0.35.0...v0.35.0)

---
updated-dependencies:
- dependency-name: usvg
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
@wjian23 wjian23 force-pushed the dependabot/cargo/usvg-0.36.0 branch from 37bb0c2 to dbb865f Compare October 18, 2023 06:54
@codecov
Copy link

codecov bot commented Oct 18, 2023

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (983ea1d) 85.20% compared to head (dbb865f) 85.19%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #434      +/-   ##
==========================================
- Coverage   85.20%   85.19%   -0.01%     
==========================================
  Files         175      175              
  Lines       23142    23144       +2     
==========================================
  Hits        19718    19718              
- Misses       3424     3426       +2     
Files Coverage Δ
painter/src/path.rs 69.29% <ø> (ø)
painter/src/path_builder.rs 58.19% <0.00%> (-0.34%) ⬇️
painter/src/svg.rs 89.76% <0.00%> (-0.42%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@M-Adoo M-Adoo enabled auto-merge October 18, 2023 07:00
@M-Adoo M-Adoo added this pull request to the merge queue Oct 18, 2023
Merged via the queue into master with commit 521ea6c Oct 18, 2023
4 of 6 checks passed
@M-Adoo M-Adoo deleted the dependabot/cargo/usvg-0.36.0 branch October 18, 2023 07:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file rust Pull requests that update Rust code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants