mirror of
https://github.com/penpot/penpot.git
synced 2025-08-07 14:38:33 +02:00
Activate by default path simplification.
This commit is contained in:
parent
e701793e44
commit
9e904e4247
2 changed files with 9 additions and 5 deletions
|
@ -8,6 +8,8 @@
|
|||
(:require [uxbox.util.geom.path-impl-simplify :as impl-simplify]))
|
||||
|
||||
(defn simplify
|
||||
[points]
|
||||
(let [points (into-array points)]
|
||||
(into [] (impl-simplify/simplify points 10 true))))
|
||||
([points]
|
||||
(simplify points 0.1))
|
||||
([points tolerance]
|
||||
(let [points (into-array points)]
|
||||
(into [] (impl-simplify/simplify points tolerance true)))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue