mirror of
https://github.com/penpot/penpot.git
synced 2026-04-25 11:18:36 +00:00
💄 Fix docstrings and clarify filter expression in path namespaces
- Fix 'conten' typo to 'content' in path.cljc docstring
- Fix 'curvle' typo to 'curve' in shape_to_path.cljc docstring
- Replace confusing XOR-style filter with readable
(contains? #{:line-to :curve-to} ...) in bool.cljc
- Align handler-indices and opposite-index docstrings with
matching API in path.cljc
This commit is contained in:
parent
8d1906f56e
commit
d6045c80a1
@ -62,7 +62,7 @@
|
||||
(map (fn [[index _]] index))))
|
||||
|
||||
(defn handler-indices
|
||||
"Return an index where the key is the positions and the values the handlers"
|
||||
"Returns [[index prefix] ...] of all handlers associated with point."
|
||||
[content point]
|
||||
(->> (d/with-prev content)
|
||||
(d/enumerate)
|
||||
@ -76,7 +76,7 @@
|
||||
[])))))
|
||||
|
||||
(defn opposite-index
|
||||
"Calculates the opposite index given a prefix and an index"
|
||||
"Calculates the opposite handler index given a content, index and prefix."
|
||||
[content index prefix]
|
||||
|
||||
(let [point (if (= prefix :c2)
|
||||
|
||||
@ -32,7 +32,7 @@
|
||||
(d/without-keys shape dissoc-attrs))
|
||||
|
||||
(defn- make-corner-arc
|
||||
"Creates a curvle corner for border radius"
|
||||
"Creates a curve corner for border radius"
|
||||
[from to corner radius]
|
||||
(let [x (case corner
|
||||
:top-left (:x from)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user