mirror of
https://github.com/penpot/penpot.git
synced 2026-03-26 13:20:51 +01:00
🔧 Fix multiple edition
This commit is contained in:
committed by
Alonso Torres
parent
17fc15138a
commit
087d896569
@@ -30,17 +30,11 @@
|
||||
;; shapes that has border radius, and so it hasn't :rx nor :r1.
|
||||
;; In this case operations must leave shape untouched.
|
||||
|
||||
(defn has-radius?
|
||||
[shape]
|
||||
(#{:rect :image :frame} (:type shape)))
|
||||
|
||||
(defn radius-mode
|
||||
[shape]
|
||||
(cond (:rx shape) :radius-1
|
||||
(:r1 shape) :radius-4
|
||||
:else (if (has-radius? shape)
|
||||
:radius-1
|
||||
nil)))
|
||||
(if (:r1 shape)
|
||||
:radius-4
|
||||
:radius-1))
|
||||
|
||||
(defn radius-1?
|
||||
[shape]
|
||||
|
||||
Reference in New Issue
Block a user