From 16df6712d1462af84188ab93d62bd8e0d05b9e7c Mon Sep 17 00:00:00 2001 From: Muhammad Ragib Hasin Date: Fri, 25 Oct 2024 23:29:15 +0600 Subject: [PATCH] Fix kurbo::BezPath d attribute for xilem_web::svg::path element (#715) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Regressed in #699 cc @Philipp-M 🦆 --- xilem_web/src/svg/kurbo_shape.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xilem_web/src/svg/kurbo_shape.rs b/xilem_web/src/svg/kurbo_shape.rs index 8a9795387..cbfbe697a 100644 --- a/xilem_web/src/svg/kurbo_shape.rs +++ b/xilem_web/src/svg/kurbo_shape.rs @@ -196,7 +196,7 @@ impl OrphanView (Self::OrphanElement, Self::OrphanViewState) { create_element("path", ctx, 1, |element, ctx| { let mut element = Self::OrphanElement::from_with_ctx(element, ctx); - element.props.attributes().push(("path", view.to_svg())); + element.props.attributes().push(("d", view.to_svg())); (element, ()) }) } @@ -211,9 +211,9 @@ impl OrphanView