Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions lib/common/layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,10 @@ export interface CommonComponentProps<PinLabel extends string = string>
* 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
Expand All @@ -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(),
})

Expand Down