mirror of
https://github.com/penpot/penpot.git
synced 2025-08-03 17:18:21 +02:00
✨ Changes to snap to pixel
This commit is contained in:
parent
0d96b5b798
commit
c18d3c66a8
12 changed files with 75 additions and 57 deletions
|
@ -203,7 +203,7 @@
|
|||
|
||||
(t/deftest halft-round-point
|
||||
(let [p1 (gpt/point 1.34567 3.34567)
|
||||
rs (gpt/half-round p1)]
|
||||
rs (gpt/round-step p1 0.5)]
|
||||
(t/is (gpt/point? rs))
|
||||
(t/is (mth/close? 1.5 (:x rs)))
|
||||
(t/is (mth/close? 3.5 (:y rs)))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue