🐛 Fixed console error with NaN stroke

This commit is contained in:
alonso.torres 2021-01-29 21:46:03 +01:00
parent 5b7ffac74e
commit 04246936d2

View file

@ -63,7 +63,7 @@
(= stroke-position :outer) (= stroke-position :outer)
(let [stroke-mask-id (str "mask-" @stroke-id) (let [stroke-mask-id (str "mask-" @stroke-id)
stroke-width (.-strokeWidth ^js base-props) stroke-width (or (.-strokeWidth ^js base-props) 0)
mask-props1 (-> (obj/merge! #js {} base-props) mask-props1 (-> (obj/merge! #js {} base-props)
(obj/merge! #js {:stroke "white" (obj/merge! #js {:stroke "white"
:strokeWidth (* stroke-width 2) :strokeWidth (* stroke-width 2)