0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-02 20:39:09 -05:00

🐛 Fix typo in keepAspectRatio #9336

This commit is contained in:
Juanfran 2024-11-20 12:43:51 +01:00
parent b80ccbec0f
commit 2f4cb19745
2 changed files with 3 additions and 3 deletions

View file

@ -103,7 +103,7 @@
;; height: number; ;; height: number;
;; mtype?: string; ;; mtype?: string;
;; id: string; ;; id: string;
;; keepApectRatio?: boolean; ;; keepAspectRatio?: boolean;
;; }; ;; };
(defn format-image (defn format-image
[{:keys [name width height mtype id keep-aspect-ratio] :as image}] [{:keys [name width height mtype id keep-aspect-ratio] :as image}]

View file

@ -66,7 +66,7 @@
;; height: number; ;; height: number;
;; mtype?: string; ;; mtype?: string;
;; id: string; ;; id: string;
;; keepApectRatio?: boolean; ;; keepAspectRatio?: boolean;
;;} ;;}
(defn parse-image-data (defn parse-image-data
[^js image-data] [^js image-data]
@ -77,7 +77,7 @@
:width (obj/get image-data "width") :width (obj/get image-data "width")
:height (obj/get image-data "height") :height (obj/get image-data "height")
:mtype (obj/get image-data "mtype") :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 = { ;; export type Gradient = {
;; type: 'linear' | 'radial'; ;; type: 'linear' | 'radial';