🐛 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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View File

@ -164,8 +164,8 @@
(obj/without-empty (obj/without-empty
#js {:id (-> id format-id) #js {:id (-> id format-id)
:style (-> style format-key) :style (-> style format-key)
:offset-x offset-x :offsetX offset-x
:offset-y offset-y :offsetY offset-y
:blur blur :blur blur
:spread spread :spread spread
:hidden hidden :hidden hidden

View File

@ -147,7 +147,7 @@
;; export interface Shadow { ;; export interface Shadow {
;; id?: string; ;; id?: string;
;; style?: 'drop-shadow' | 'inner-shadow'; ;; style?: 'drop-shadow' | 'inner-shadow';
;; offset--y?: number; ;; offsetX?: number;
;; offsetY?: number; ;; offsetY?: number;
;; blur?: number; ;; blur?: number;
;; spread?: number; ;; spread?: number;
@ -160,8 +160,8 @@
(d/without-nils (d/without-nils
{:id (-> (obj/get shadow "id") parse-id) {:id (-> (obj/get shadow "id") parse-id)
:style (-> (obj/get shadow "style") parse-keyword) :style (-> (obj/get shadow "style") parse-keyword)
:offset-x (obj/get shadow "offset-x") :offset-x (obj/get shadow "offsetX")
:offset-y (obj/get shadow "offset-y") :offset-y (obj/get shadow "offsetY")
:blur (obj/get shadow "blur") :blur (obj/get shadow "blur")
:spread (obj/get shadow "spread") :spread (obj/get shadow "spread")
:hidden (obj/get shadow "hidden") :hidden (obj/get shadow "hidden")