mirror of
https://github.com/penpot/penpot.git
synced 2025-02-13 10:38:13 -05:00
✨ Review changes
This commit is contained in:
parent
55c92da286
commit
e9bf3624b7
2 changed files with 5 additions and 7 deletions
|
@ -198,10 +198,10 @@
|
|||
show-distance?
|
||||
(fn [dist]
|
||||
(let [distances-to-show
|
||||
(->> (d/concat (mapv first distance-coincidences)
|
||||
(filterv #(check-in-set % lt-distances) gt-distances)
|
||||
(filterv #(check-in-set % gt-distances) lt-distances))
|
||||
(into #{}))]
|
||||
(->> (d/concat #{}
|
||||
(map first distance-coincidences)
|
||||
(filter #(check-in-set % lt-distances) gt-distances)
|
||||
(filter #(check-in-set % gt-distances) lt-distances)))]
|
||||
(check-in-set dist distances-to-show)))
|
||||
|
||||
;; These are the segments whose distance will be displayed
|
||||
|
|
|
@ -110,9 +110,7 @@
|
|||
|
||||
;; We use sets to store points/lines so there are no points/lines repeated
|
||||
;; can cause problems with react keys
|
||||
snap-points (->> @state
|
||||
(mapcat add-point-to-snaps)
|
||||
(into #{}))
|
||||
snap-points (into #{} (mapcat add-point-to-snaps) @state)
|
||||
|
||||
snap-lines (into (process-snap-lines @state :x)
|
||||
(process-snap-lines @state :y))]
|
||||
|
|
Loading…
Add table
Reference in a new issue