0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-24 15:56:11 -05:00

📎 Temprary comment some assertions.

This commit is contained in:
Andrey Antukh 2020-12-03 09:04:43 +01:00
parent 34d15e4192
commit ba529b9fd6

View file

@ -13,10 +13,10 @@
[app.common.geom.shapes.common :as gco]))
(defn rect->points [{:keys [x y width height]}]
(assert (number? x))
(assert (number? y))
(assert (and (number? width) (> width 0)))
(assert (and (number? height) (> height 0)))
;; (assert (number? x))
;; (assert (number? y))
;; (assert (and (number? width) (> width 0)))
;; (assert (and (number? height) (> height 0)))
[(gpt/point x y)
(gpt/point (+ x width) y)
(gpt/point (+ x width) (+ y height))