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(),