0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-08 07:50:43 -05:00

🐛 Fix problem with flip properties

This commit is contained in:
alonso.torres 2024-04-03 10:27:48 +02:00
parent b258b05fb2
commit 5fd72cf9d9
2 changed files with 9 additions and 5 deletions

View file

@ -299,12 +299,16 @@
(cond-> shape
(neg? dot-x)
(-> (cr/update! :flip-x not)
(cr/update! :rotation -))
(cr/update! :flip-x not)
(neg? dot-x)
(cr/update! :rotation -)
(neg? dot-y)
(-> (cr/update! :flip-y not)
(cr/update! :rotation -)))))
(cr/update! :flip-y not)
(neg? dot-y)
(cr/update! :rotation -))))
(defn- apply-transform-move
"Given a new set of points transformed, set up the rectangle so it keeps

View file

@ -31,7 +31,7 @@
[app.common.uuid :as uuid]
[clojure.set :as set]))
(cr/defrecord Shape [id name type x y width height rotation selrect points transform transform-inverse parent-id frame-id])
(cr/defrecord Shape [id name type x y width height rotation selrect points transform transform-inverse parent-id frame-id flip-x flip-y])
(defn shape?
[o]