From 874704cfb7bb242e791d729bffe35ae4e1cf41a8 Mon Sep 17 00:00:00 2001 From: imrishabh18 Date: Fri, 24 Oct 2025 16:29:09 +0530 Subject: [PATCH 1/2] fix: facing_direction mapped to the side_of_component values --- .../Group/Group_doInitialSchematicLayoutMatchPack.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/components/primitive-components/Group/Group_doInitialSchematicLayoutMatchPack.ts b/lib/components/primitive-components/Group/Group_doInitialSchematicLayoutMatchPack.ts index 6e61bcd39..b8e536c42 100644 --- a/lib/components/primitive-components/Group/Group_doInitialSchematicLayoutMatchPack.ts +++ b/lib/components/primitive-components/Group/Group_doInitialSchematicLayoutMatchPack.ts @@ -775,7 +775,9 @@ export function Group_doInitialSchematicLayoutMatchPack< placement.ccwRotationDegrees, ) port.side_of_component = - (port.facing_direction as "left" | "right" | "top" | "bottom") || + (port.facing_direction === "up" ? "top" : + port.facing_direction === "down" ? "bottom" : + port.facing_direction as "left" | "right" | "top" | "bottom") || port.side_of_component } From efcadf6b2bbbd32530e8361d7d33ab8696b11736 Mon Sep 17 00:00:00 2001 From: tscircuitbot Date: Fri, 24 Oct 2025 11:00:00 +0000 Subject: [PATCH 2/2] formatbot: Automatically format code --- .../Group_doInitialSchematicLayoutMatchPack.ts | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/lib/components/primitive-components/Group/Group_doInitialSchematicLayoutMatchPack.ts b/lib/components/primitive-components/Group/Group_doInitialSchematicLayoutMatchPack.ts index b8e536c42..bb5e16c1d 100644 --- a/lib/components/primitive-components/Group/Group_doInitialSchematicLayoutMatchPack.ts +++ b/lib/components/primitive-components/Group/Group_doInitialSchematicLayoutMatchPack.ts @@ -775,10 +775,15 @@ export function Group_doInitialSchematicLayoutMatchPack< placement.ccwRotationDegrees, ) port.side_of_component = - (port.facing_direction === "up" ? "top" : - port.facing_direction === "down" ? "bottom" : - port.facing_direction as "left" | "right" | "top" | "bottom") || - port.side_of_component + (port.facing_direction === "up" + ? "top" + : port.facing_direction === "down" + ? "bottom" + : (port.facing_direction as + | "left" + | "right" + | "top" + | "bottom")) || port.side_of_component } // Also rotate text positions