mirror of
https://github.com/penpot/penpot.git
synced 2025-08-04 03:08:29 +02:00
🐛 Fixed problems with lines selrect
This commit is contained in:
parent
a14686c9f3
commit
ba7b2fd270
2 changed files with 67 additions and 41 deletions
|
@ -120,9 +120,13 @@
|
|||
|
||||
extremities (mapcat calc-extremities
|
||||
content
|
||||
(d/concat [nil] content))]
|
||||
(d/concat [nil] content))
|
||||
|
||||
(gpr/points->selrect extremities)))
|
||||
selrect (gpr/points->selrect extremities)]
|
||||
|
||||
(-> selrect
|
||||
(update :width #(if (mth/almost-zero? %) 1 %))
|
||||
(update :height #(if (mth/almost-zero? %) 1 %)))))
|
||||
|
||||
(defn transform-content [content transform]
|
||||
(let [set-tr (fn [params px py]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue