mirror of
https://github.com/penpot/penpot.git
synced 2026-04-28 20:58:06 +00:00
Rename local bindings, function names, parameters, and public API functions that reference path content to use path-data consistently across the codebase (Phase 2 + Phase 3 of the rename effort): Phase 2 - Local bindings and data-layer functions: - Rename functions: set-content -> set-path-data, save-path-content -> save-path-data, check-changed-content -> check-changed-path-data, apply-content-modifiers -> apply-path-data-modifiers, modify-content-point -> modify-path-data-point, path-content-ref -> path-data-ref, content->string -> path-data->string, get-content -> get-path-data, content-stream -> path-data-stream - Fix 4 bugs where :content was still used instead of :path-data - Fix extra closing paren in edition.cljs Phase 3 - Path module public API functions: - path.cljc facade: content? -> path-data?, content -> path-data, check-content -> check-path-data, schema:content -> schema:path-data, apply-content-modifiers -> apply-path-data-modifiers, transform-content -> transform-path-data, move-content -> move-path-data, calc-bool-content -> calc-bool-path-data - segment.cljc: transform-content -> transform-path-data, move-content -> move-path-data, content->selrect -> path-data->selrect, content-center -> path-data-center, points->content -> points->path-data - subpath.cljc: reverse-content -> reverse-path-data - bool.cljc: content-intersect-split -> path-data-intersect-split, close-content -> close-path-data, content->geom-data -> path-data->geom-data, content-bool-pair -> path-data-bool-pair, calculate-content -> calculate-path-data - impl.cljc: schema:content -> schema:path-data, check-content -> check-path-data - Update all callers across common, frontend, and legacy migrations - Update all test files for renamed functions Signed-off-by: Andrey Antukh <niwi@niwi.nz>