mirror of
https://github.com/penpot/penpot.git
synced 2025-07-27 06:07:18 +02:00
Refactor shapes attributes handling.
This commit is contained in:
parent
b3d995de53
commit
28d18a07a0
14 changed files with 440 additions and 543 deletions
|
@ -31,6 +31,7 @@
|
|||
;; --- Rect Shape
|
||||
|
||||
(defn- rotate
|
||||
;; TODO: revisit, i'm not sure if this function is duplicated.
|
||||
[mt {:keys [x1 y1 x2 y2 width height rotation] :as shape}]
|
||||
(let [x-center (+ x1 (/ width 2))
|
||||
y-center (+ y1 (/ height 2))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue