🐛 Fix inconsistency between plugins api doc and impl for shadows (#8454)

Related to offset-x and offset-y attributes.
This commit is contained in:
Andrey Antukh
2026-03-04 09:09:27 +01:00
committed by GitHub
parent 478f631df5
commit b704a7da0e
2 changed files with 5 additions and 5 deletions

View File

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

View File

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