mirror of
https://github.com/penpot/penpot.git
synced 2026-03-09 19:56:05 +00:00
✨ Review changes
This commit is contained in:
@@ -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))]
|
||||
|
||||
Reference in New Issue
Block a user