💄 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:
Andrey Antukh 2026-04-09 14:00:04 +00:00 committed by Belén Albeza
parent 8d1906f56e
commit d6045c80a1
2 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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)