Skip to content

Commit

Permalink
fix minor style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sprocketc committed Dec 24, 2024
1 parent 3e3dff2 commit 3de149b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/renderer/history/handlers.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@
[db id explanation]
(let [new-state {:explanation explanation
:elements (element.h/entities db)
:timestamp (.now js/Date) ; REVIEW; Sideffect
:timestamp (.now js/Date) ; REVIEW: Sideffect
:index (state-count db)
:id id
:children []}]
Expand Down
4 changes: 3 additions & 1 deletion src/renderer/utils/element.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@
(defn snapping-points
[el options]
(let [points (or (when (contains? options :nodes)
(mapv #(with-meta (mat/add % (offset el)) (merge (meta %) {:id (:id el)}))
(mapv #(with-meta
(mat/add % (offset el))
(merge (meta %) {:id (:id el)}))
(element.hierarchy/snapping-points el))) [])]
(cond-> points
(:bounds el)
Expand Down

0 comments on commit 3de149b

Please sign in to comment.