From 2f4cb1974574cde94f531e383007b32b3d99b116 Mon Sep 17 00:00:00 2001 From: Juanfran Date: Wed, 20 Nov 2024 12:43:51 +0100 Subject: [PATCH] :bug: Fix typo in keepAspectRatio #9336 --- frontend/src/app/plugins/format.cljs | 2 +- frontend/src/app/plugins/parser.cljs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/plugins/format.cljs b/frontend/src/app/plugins/format.cljs index 86a3d0d26..b39f422bc 100644 --- a/frontend/src/app/plugins/format.cljs +++ b/frontend/src/app/plugins/format.cljs @@ -103,7 +103,7 @@ ;; height: number; ;; mtype?: string; ;; id: string; -;; keepApectRatio?: boolean; +;; keepAspectRatio?: boolean; ;; }; (defn format-image [{:keys [name width height mtype id keep-aspect-ratio] :as image}] diff --git a/frontend/src/app/plugins/parser.cljs b/frontend/src/app/plugins/parser.cljs index 8d6137cc1..c58e6f1ea 100644 --- a/frontend/src/app/plugins/parser.cljs +++ b/frontend/src/app/plugins/parser.cljs @@ -66,7 +66,7 @@ ;; height: number; ;; mtype?: string; ;; id: string; -;; keepApectRatio?: boolean; +;; keepAspectRatio?: boolean; ;;} (defn parse-image-data [^js image-data] @@ -77,7 +77,7 @@ :width (obj/get image-data "width") :height (obj/get image-data "height") :mtype (obj/get image-data "mtype") - :keep-aspect-ratio (obj/get image-data "keepApectRatio")}))) + :keep-aspect-ratio (obj/get image-data "keepAspectRatio")}))) ;; export type Gradient = { ;; type: 'linear' | 'radial';