0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-13 10:38:13 -05:00

Fix outer-rect impl for rect like shapes.

Now is again aware of rotation value.

Signed-off-by: Andrey Antukh <niwi@niwi.nz>
This commit is contained in:
Andrey Antukh 2016-02-29 17:21:29 +02:00
parent 99da1c21d1
commit 5c7188eeba

View file

@ -268,7 +268,8 @@
[{:keys [group] :as shape}] [{:keys [group] :as shape}]
(as-> shape $ (as-> shape $
(assoc $ :x (:x1 shape) :y (:y1 shape)) (assoc $ :x (:x1 shape) :y (:y1 shape))
(merge $ (size $)))) (merge $ (size $))
(container-rect $)))
(defmethod outer-rect' :builtin/line (defmethod outer-rect' :builtin/line
[{:keys [x1 y1 x2 y2 group] :as shape}] [{:keys [x1 y1 x2 y2 group] :as shape}]