From d6045c80a10e63f240b45829641128a861cae1eb Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Thu, 9 Apr 2026 14:00:04 +0000 Subject: [PATCH] :lipstick: 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 --- common/src/app/common/types/path/segment.cljc | 4 ++-- common/src/app/common/types/path/shape_to_path.cljc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/src/app/common/types/path/segment.cljc b/common/src/app/common/types/path/segment.cljc index 9eb36d7a12..bcbbe8eeda 100644 --- a/common/src/app/common/types/path/segment.cljc +++ b/common/src/app/common/types/path/segment.cljc @@ -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) diff --git a/common/src/app/common/types/path/shape_to_path.cljc b/common/src/app/common/types/path/shape_to_path.cljc index 8641ee556e..cc0f0c9060 100644 --- a/common/src/app/common/types/path/shape_to_path.cljc +++ b/common/src/app/common/types/path/shape_to_path.cljc @@ -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)