0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-27 00:49:28 -05:00

Add update-path-point function to geom ns.

This commit is contained in:
Andrey Antukh 2016-08-21 23:30:01 +03:00
parent 63f6de930d
commit a4f29d25e1
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95

View file

@ -245,6 +245,16 @@
:bottom (assoc shape :ry (max 0 (+ (:ry shape) dy)))
:left (assoc shape :rx (max 0 (+ (:rx shape) dx))))))
;; --- Paths
(defn update-path-point
"Update a concrete point in the path.
The point should exists before, this function
does not adds it automatically."
[shape index point]
(assoc-in shape [:points index] point))
;; --- Resize (Absolute)
(declare resize-rect)