From b704a7da0e7337d1afa5a096c406ed440c819aab Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Wed, 4 Mar 2026 09:09:27 +0100 Subject: [PATCH] :bug: Fix inconsistency between plugins api doc and impl for shadows (#8454) Related to offset-x and offset-y attributes. --- frontend/src/app/plugins/format.cljs | 4 ++-- frontend/src/app/plugins/parser.cljs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/src/app/plugins/format.cljs b/frontend/src/app/plugins/format.cljs index 72652d2574..9af11c2dde 100644 --- a/frontend/src/app/plugins/format.cljs +++ b/frontend/src/app/plugins/format.cljs @@ -164,8 +164,8 @@ (obj/without-empty #js {:id (-> id format-id) :style (-> style format-key) - :offset-x offset-x - :offset-y offset-y + :offsetX offset-x + :offsetY offset-y :blur blur :spread spread :hidden hidden diff --git a/frontend/src/app/plugins/parser.cljs b/frontend/src/app/plugins/parser.cljs index 9b8d811d1e..5d4148662d 100644 --- a/frontend/src/app/plugins/parser.cljs +++ b/frontend/src/app/plugins/parser.cljs @@ -147,7 +147,7 @@ ;; export interface Shadow { ;; id?: string; ;; style?: 'drop-shadow' | 'inner-shadow'; -;; offset--y?: number; +;; offsetX?: number; ;; offsetY?: number; ;; blur?: number; ;; spread?: number; @@ -160,8 +160,8 @@ (d/without-nils {:id (-> (obj/get shadow "id") parse-id) :style (-> (obj/get shadow "style") parse-keyword) - :offset-x (obj/get shadow "offset-x") - :offset-y (obj/get shadow "offset-y") + :offset-x (obj/get shadow "offsetX") + :offset-y (obj/get shadow "offsetY") :blur (obj/get shadow "blur") :spread (obj/get shadow "spread") :hidden (obj/get shadow "hidden")