0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-08 08:09:14 -05:00

📎 Add some fixmes for future path changes

This commit is contained in:
Andrey Antukh 2024-08-26 15:41:01 +02:00
parent 67cd855e97
commit 2f68310a7c
2 changed files with 4 additions and 0 deletions

View file

@ -893,6 +893,7 @@
(reduce +)
(not= 0))))
;; FIXME: this should be on upc/ namespace
(defn split-line-to
"Given a point and a line-to command will create a two new line-to commands
that will split the original line into two given a value between 0-1"
@ -901,6 +902,7 @@
sp (gpt/lerp from-p to-p t-val)]
[(upc/make-line-to sp) cmd]))
;; FIXME: this should be on upc/ namespace
(defn split-curve-to
"Given the point and a curve-to command will split the curve into two new
curve-to commands given a value between 0-1"

View file

@ -12,6 +12,8 @@
[app.common.svg.path.command :as upc]
[clojure.set :as set]))
;; FIXME: move to common, there are nothing tied to frontend
(defn remove-line-curves
"Remove all curves that have both handlers in the same position that the
beginning and end points. This makes them really line-to commands"