From 015e4d764a386605645301f66663c1d4b92d768d Mon Sep 17 00:00:00 2001 From: Ayush Jhawar Date: Wed, 26 Nov 2025 21:10:00 +0530 Subject: [PATCH 1/2] Add showAsTranslucentModel prop --- lib/common/layout.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/common/layout.ts b/lib/common/layout.ts index 7e7e0f5..46ac1dc 100644 --- a/lib/common/layout.ts +++ b/lib/common/layout.ts @@ -227,6 +227,10 @@ export interface CommonComponentProps * chips can be placed between the pin headers) or for tall modules where chips fit underneath. */ obstructsWithinBounds?: boolean + /** + * Whether to show this component's CAD model as translucent in the 3D viewer. + */ + showAsTranslucentModel?: boolean } export const commonComponentProps = commonLayoutProps @@ -244,6 +248,12 @@ export const commonComponentProps = commonLayoutProps .describe( "Does this component take up all the space within its bounds on a layer. This is generally true except for when separated pin headers are being represented by a single component (in which case, chips can be placed between the pin headers) or for tall modules where chips fit underneath", ), + showAsTranslucentModel: z + .boolean() + .optional() + .describe( + "Whether to show this component's CAD model as translucent in the 3D viewer. When true, the component can be toggled with the 'v' key in the 3D viewer.", + ), pinAttributes: z.record(z.string(), pinAttributeMap).optional(), }) From 7a11a833ab84e1878fc1a7a367b924dd0b158efa Mon Sep 17 00:00:00 2001 From: Ayush Jhawar Date: Wed, 26 Nov 2025 21:12:08 +0530 Subject: [PATCH 2/2] Fix --- lib/common/layout.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common/layout.ts b/lib/common/layout.ts index 46ac1dc..1f339e3 100644 --- a/lib/common/layout.ts +++ b/lib/common/layout.ts @@ -252,7 +252,7 @@ export const commonComponentProps = commonLayoutProps .boolean() .optional() .describe( - "Whether to show this component's CAD model as translucent in the 3D viewer. When true, the component can be toggled with the 'v' key in the 3D viewer.", + "Whether to show this component's CAD model as translucent in the 3D viewer.", ), pinAttributes: z.record(z.string(), pinAttributeMap).optional(), })