Skip to content

Commit

Permalink
remove id from common attrs
Browse files Browse the repository at this point in the history
  • Loading branch information
sprocketc committed Nov 29, 2023
1 parent 468998c commit f1cbead
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/renderer/element/subs.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
#(map/merge-common-with (fn [v1 v2] (if (= v1 v2) v1 nil))
%1
(tools/attributes %2))
attrs
(dissoc attrs :id)
(rest selected-elements))

(sort-by (fn [[k _]]
Expand Down Expand Up @@ -167,11 +167,11 @@
(let [[x1 y1 x2 y2] (tools/adjusted-bounds element elements)
[cx cy] (bounds/center [x1 y1 x2 y2])]
(conj points [x1 y1]
[x1 y2]
[x1 cy]
[x2 y1]
[x2 y2]
[x2 cy]
[cx y1]
[cx y2]
[cx cy]))) [] visible-elements)))
[x1 y2]
[x1 cy]
[x2 y1]
[x2 y2]
[x2 cy]
[cx y1]
[cx y2]
[cx cy]))) [] visible-elements)))

0 comments on commit f1cbead

Please sign in to comment.