mirror of
https://github.com/penpot/penpot.git
synced 2025-07-24 13:47:18 +02:00
✨ Adds autolayout positions calculations
This commit is contained in:
parent
5050c35257
commit
c01c46041d
37 changed files with 938 additions and 594 deletions
|
@ -29,10 +29,9 @@
|
|||
(defn shape-snap-points
|
||||
[{:keys [hidden blocked] :as shape}]
|
||||
(when (and (not blocked) (not hidden))
|
||||
(let [shape (gsh/transform-shape shape)]
|
||||
(case (:type shape)
|
||||
:frame (-> shape :points gsh/points->selrect frame-snap-points)
|
||||
(into #{(gsh/center-shape shape)} (:points shape))))))
|
||||
(case (:type shape)
|
||||
:frame (-> shape :points gsh/points->selrect frame-snap-points)
|
||||
(into #{(gsh/center-shape shape)} (:points shape)))))
|
||||
|
||||
(defn guide-snap-points
|
||||
[guide frame]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue