🐛 Fix a problem with input rotation for shapes

This commit is contained in:
alonso.torres 2024-02-20 12:13:12 +01:00 committed by Andrey Antukh
parent 9e6db257cc
commit 74cc8079bb
2 changed files with 1 additions and 2 deletions

View file

@ -153,7 +153,6 @@
(get-object-bounds objects shape nil)) (get-object-bounds objects shape nil))
([objects shape {:keys [ignore-margin?] :or {ignore-margin? true}}] ([objects shape {:keys [ignore-margin?] :or {ignore-margin? true}}]
(let [base-bounds (calculate-base-bounds shape ignore-margin?) (let [base-bounds (calculate-base-bounds shape ignore-margin?)
_ (prn ">" (:name shape) base-bounds)
bounds bounds
(cond (cond
(or (empty? (:shapes shape)) (or (empty? (:shapes shape))

View file

@ -452,7 +452,7 @@
[:span {:class (stl/css :icon)} i/rotation-refactor] [:span {:class (stl/css :icon)} i/rotation-refactor]
[:> numeric-input* [:> numeric-input*
{:no-validate true {:no-validate true
:min 0 :min -359
:max 359 :max 359
:data-wrap true :data-wrap true
:placeholder (if (= :multiple (:rotation values)) (tr "settings.multiple") "--") :placeholder (if (= :multiple (:rotation values)) (tr "settings.multiple") "--")