diff --git a/frontend/src/app/render_wasm/api.cljs b/frontend/src/app/render_wasm/api.cljs index 6646fdc0b1..cfcd403870 100644 --- a/frontend/src/app/render_wasm/api.cljs +++ b/frontend/src/app/render_wasm/api.cljs @@ -468,14 +468,14 @@ [attrs] (let [style (:style attrs) ;; Filter to only supported attributes - allowed-keys #{:fill :fillRule :strokeLinecap :strokeLinejoin} + allowed-keys #{:fill :fillRule :fill-rule :strokeLinecap :stroke-linecap :strokeLinejoin :stroke-linejoin} attrs (-> attrs (dissoc :style) (merge style) (select-keys allowed-keys)) - fill-rule (-> attrs :fillRule sr/translate-fill-rule) - stroke-linecap (-> attrs :strokeLinecap sr/translate-stroke-linecap) - stroke-linejoin (-> attrs :strokeLinejoin sr/translate-stroke-linejoin) + fill-rule (or (-> attrs :fill-rule sr/translate-fill-rule) (-> attrs :fillRule sr/translate-fill-rule)) + stroke-linecap (or (-> attrs :stroke-linecap sr/translate-stroke-linecap) (-> attrs :strokeLinecap sr/translate-stroke-linecap)) + stroke-linejoin (or (-> attrs :stroke-linejoin sr/translate-stroke-linejoin) (-> attrs :strokeLinejoin sr/translate-stroke-linejoin)) fill-none (= "none" (-> attrs :fill))] (h/call wasm/internal-module "_set_shape_svg_attrs" fill-rule stroke-linecap stroke-linejoin fill-none)))