mirror of
https://github.com/penpot/penpot.git
synced 2025-04-02 10:01:34 -05:00
🐛 Fixed console error with NaN stroke
This commit is contained in:
parent
5b7ffac74e
commit
04246936d2
1 changed files with 7 additions and 7 deletions
|
@ -63,15 +63,15 @@
|
|||
|
||||
(= stroke-position :outer)
|
||||
(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)
|
||||
(obj/merge! #js {:stroke "white"
|
||||
:strokeWidth (* stroke-width 2)
|
||||
:strokeOpacity 1
|
||||
:strokeDasharray nil
|
||||
:fill "white"
|
||||
:fillOpacity 1
|
||||
:transform nil}))
|
||||
:strokeWidth (* stroke-width 2)
|
||||
:strokeOpacity 1
|
||||
:strokeDasharray nil
|
||||
:fill "white"
|
||||
:fillOpacity 1
|
||||
:transform nil}))
|
||||
mask-props2 (-> (obj/merge! #js {} base-props)
|
||||
(obj/merge! #js {:stroke nil
|
||||
:strokeWidth nil
|
||||
|
|
Loading…
Add table
Reference in a new issue