From dbb865fa448c2ed46af41fa706aebb3ebba2891b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 17 Oct 2023 08:02:20 +0000 Subject: [PATCH] build(deps): update usvg requirement from 0.35.0 to 0.36.0 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](https://github.com/RazrFalcon/resvg/compare/v0.35.0...v0.35.0) --- updated-dependencies: - dependency-name: usvg dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- Cargo.toml | 2 +- painter/src/path.rs | 2 ++ painter/src/path_builder.rs | 1 + painter/src/svg.rs | 1 + 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 0d3a4ead8..b3338571c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -82,7 +82,7 @@ tiny-skia-path = {version = "0.11.0"} unicode-bidi = "0.3.7" unicode-script = "0.5.4" unicode-segmentation = "1.9.0" -usvg = { version= "0.35.0", default-features = false } +usvg = { version= "0.36.0", default-features = false } webbrowser = "0.8.8" wgpu = {version = "0.16.0"} winit = {version = "0.28.5", default-features = false, features = ["x11", "wayland", "wayland-dlopen"]} diff --git a/painter/src/path.rs b/painter/src/path.rs index c3f0cd4dc..f8a8c5c46 100644 --- a/painter/src/path.rs +++ b/painter/src/path.rs @@ -70,6 +70,8 @@ pub enum LineJoin { /// Extends to miter limit. #[default] Miter, + /// Extends to miter limit, then clips the corner. + MiterClip, /// Adds circle. Round, /// Connects outside edges. diff --git a/painter/src/path_builder.rs b/painter/src/path_builder.rs index d93e46c3c..9e262f5b2 100644 --- a/painter/src/path_builder.rs +++ b/painter/src/path_builder.rs @@ -253,6 +253,7 @@ impl From for tiny_skia_path::Stroke { LineJoin::Miter => tiny_skia_path::LineJoin::Miter, LineJoin::Round => tiny_skia_path::LineJoin::Round, LineJoin::Bevel => tiny_skia_path::LineJoin::Bevel, + LineJoin::MiterClip => tiny_skia_path::LineJoin::MiterClip, }, dash: None, } diff --git a/painter/src/svg.rs b/painter/src/svg.rs index 439f8e2c5..5bb737ca2 100644 --- a/painter/src/svg.rs +++ b/painter/src/svg.rs @@ -70,6 +70,7 @@ impl Svg { usvg::LineJoin::Miter => LineJoin::Miter, usvg::LineJoin::Bevel => LineJoin::Bevel, usvg::LineJoin::Round => LineJoin::Round, + usvg::LineJoin::MiterClip => LineJoin::MiterClip, }; let options = StrokeOptions { width: stroke.width.get(),