diff --git a/lib/common/layout.ts b/lib/common/layout.ts index 7e7e0f5..1f339e3 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.", + ), pinAttributes: z.record(z.string(), pinAttributeMap).optional(), })