mirror of
https://github.com/penpot/penpot.git
synced 2025-12-12 06:24:17 +01:00
📎 Temprary comment some assertions.
This commit is contained in:
@@ -13,10 +13,10 @@
|
|||||||
[app.common.geom.shapes.common :as gco]))
|
[app.common.geom.shapes.common :as gco]))
|
||||||
|
|
||||||
(defn rect->points [{:keys [x y width height]}]
|
(defn rect->points [{:keys [x y width height]}]
|
||||||
(assert (number? x))
|
;; (assert (number? x))
|
||||||
(assert (number? y))
|
;; (assert (number? y))
|
||||||
(assert (and (number? width) (> width 0)))
|
;; (assert (and (number? width) (> width 0)))
|
||||||
(assert (and (number? height) (> height 0)))
|
;; (assert (and (number? height) (> height 0)))
|
||||||
[(gpt/point x y)
|
[(gpt/point x y)
|
||||||
(gpt/point (+ x width) y)
|
(gpt/point (+ x width) y)
|
||||||
(gpt/point (+ x width) (+ y height))
|
(gpt/point (+ x width) (+ y height))
|
||||||
|
|||||||
Reference in New Issue
Block a user