From d92b200a04ca4e20e9cfb377db3dc47b7b079974 Mon Sep 17 00:00:00 2001 From: Jordi Sala Morales Date: Thu, 13 Jun 2024 10:06:56 +0200 Subject: [PATCH] Send ry on corner-radius (#157) --- plugin-src/transformers/partials/transformCornerRadius.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/plugin-src/transformers/partials/transformCornerRadius.ts b/plugin-src/transformers/partials/transformCornerRadius.ts index f8a876b2..0ac013ee 100644 --- a/plugin-src/transformers/partials/transformCornerRadius.ts +++ b/plugin-src/transformers/partials/transformCornerRadius.ts @@ -8,7 +8,10 @@ const isRectangleCornerMixin = ( export const transformCornerRadius = ( node: CornerMixin | (CornerMixin & RectangleCornerMixin) -): Pick | Pick | undefined => { +): + | Pick + | Pick + | undefined => { if (isRectangleCornerMixin(node)) { return { r1: node.topLeftRadius, @@ -20,7 +23,8 @@ export const transformCornerRadius = ( if (node.cornerRadius !== figma.mixed) { return { - rx: node.cornerRadius + rx: node.cornerRadius, + ry: node.cornerRadius }; } };